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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c4cee305808bc93b6e5ab8f74559bc619710cac0
| 608
|
py
|
Python
|
deeplabcut/refine_training_dataset/__init__.py
|
serre-lab/deeplabcut_mgh
|
aa37b104ba4967932528d4f79665648474f51112
|
[
"MIT"
] | null | null | null |
deeplabcut/refine_training_dataset/__init__.py
|
serre-lab/deeplabcut_mgh
|
aa37b104ba4967932528d4f79665648474f51112
|
[
"MIT"
] | 1
|
2019-12-15T00:37:15.000Z
|
2019-12-15T00:37:15.000Z
|
deeplabcut/refine_training_dataset/__init__.py
|
kalpitthakkar/deeplabcut_mgh_pose
|
8fa4a59f422ff0357552e290230838239edcfe1b
|
[
"MIT"
] | null | null | null |
"""
DeepLabCut2.0 Toolbox (deeplabcut.org)
© A. & M. Mathis Labs
https://github.com/AlexEMG/DeepLabCut
Please see AUTHORS for contributors.
https://github.com/AlexEMG/DeepLabCut/blob/master/AUTHORS
Licensed under GNU Lesser General Public License v3.0
"""
import os
if os.environ.get('DLClight', default=False) == 'True':
print("DLC loaded in light mode; you cannot use the relabeling GUI!")
pass
else:
from deeplabcut.refine_training_dataset.refinement import *
from deeplabcut.refine_training_dataset.auxfun_drag import *
from deeplabcut.refine_training_dataset.outlier_frames import *
| 28.952381
| 73
| 0.773026
| 84
| 608
| 5.511905
| 0.72619
| 0.090713
| 0.12959
| 0.181425
| 0.386609
| 0.177106
| 0
| 0
| 0
| 0
| 0
| 0.007547
| 0.128289
| 608
| 20
| 74
| 30.4
| 0.864151
| 0.407895
| 0
| 0
| 0
| 0
| 0.204545
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.125
| 0.5
| 0
| 0.5
| 0.125
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 0
|
0
| 4
|
c4d6bd7419f05eef213d829a2d12699945ced974
| 32
|
py
|
Python
|
data/studio21_generated/introductory/4843/starter_code.py
|
vijaykumawat256/Prompt-Summarization
|
614f5911e2acd2933440d909de2b4f86653dc214
|
[
"Apache-2.0"
] | null | null | null |
data/studio21_generated/introductory/4843/starter_code.py
|
vijaykumawat256/Prompt-Summarization
|
614f5911e2acd2933440d909de2b4f86653dc214
|
[
"Apache-2.0"
] | null | null | null |
data/studio21_generated/introductory/4843/starter_code.py
|
vijaykumawat256/Prompt-Summarization
|
614f5911e2acd2933440d909de2b4f86653dc214
|
[
"Apache-2.0"
] | null | null | null |
def choose_best_sum(t, k, ls):
| 16
| 30
| 0.6875
| 7
| 32
| 2.857143
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.15625
| 32
| 2
| 31
| 16
| 0.740741
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0
| null | null | 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
c4e58ad2553ea84a4041e013ef3462ccd7f2cb56
| 171
|
py
|
Python
|
redhawk/__init__.py
|
spranesh/Redhawk
|
e2be5a6553df8449acecee2239b60c7bca0f22bc
|
[
"BSD-2-Clause-FreeBSD"
] | 2
|
2016-10-04T11:46:32.000Z
|
2017-07-09T15:23:55.000Z
|
redhawk/__init__.py
|
spranesh/Redhawk
|
e2be5a6553df8449acecee2239b60c7bca0f22bc
|
[
"BSD-2-Clause-FreeBSD"
] | 4
|
2016-03-07T13:16:48.000Z
|
2018-03-21T00:25:04.000Z
|
redhawk/__init__.py
|
spranesh/Redhawk
|
e2be5a6553df8449acecee2239b60c7bca0f22bc
|
[
"BSD-2-Clause-FreeBSD"
] | 3
|
2016-04-06T08:04:34.000Z
|
2020-03-17T20:59:47.000Z
|
from __future__ import absolute_import
import os
__version__ = '1.2.3'
DB_NAME = '.redhawk_db'
def GetVersion():
return __version__
def GetDBName():
return DB_NAME
| 14.25
| 38
| 0.754386
| 24
| 171
| 4.708333
| 0.666667
| 0.106195
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.020833
| 0.157895
| 171
| 11
| 39
| 15.545455
| 0.763889
| 0
| 0
| 0
| 0
| 0
| 0.093567
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0.25
| 0.25
| 0.75
| 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
| 1
| 1
| 0
|
0
| 4
|
1eedc11f5925e67f8f7645acdf2987eb147b2bdc
| 229
|
py
|
Python
|
core/models/modules/ops/__init__.py
|
zuimeiyujianni/MobileStyleGAN.pytorch
|
2d18a80bed6be3ec0eec703cc9be50616f2401ee
|
[
"Apache-2.0"
] | 540
|
2021-04-13T03:59:30.000Z
|
2022-03-30T08:05:04.000Z
|
core/models/modules/ops/__init__.py
|
zuimeiyujianni/MobileStyleGAN.pytorch
|
2d18a80bed6be3ec0eec703cc9be50616f2401ee
|
[
"Apache-2.0"
] | 32
|
2021-04-13T17:39:38.000Z
|
2022-03-24T22:48:02.000Z
|
core/models/ops/__init__.py
|
bes-dev/vqvae_dwt_distiller.pytorch
|
616bd6df16577adb6e133b36b09bd09849701223
|
[
"Apache-2.0"
] | 61
|
2021-04-13T09:30:05.000Z
|
2022-03-30T05:28:06.000Z
|
import torch
from .fused_act import FusedLeakyReLU, fused_leaky_relu
from .upfirdn2d import upfirdn2d
if torch.cuda.is_available():
from .fused_act_cuda import FusedLeakyReLUFunction
from .upfirdn2d_cuda import UpFirDn2d
| 32.714286
| 55
| 0.829694
| 30
| 229
| 6.1
| 0.466667
| 0.098361
| 0.131148
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.02
| 0.126638
| 229
| 6
| 56
| 38.166667
| 0.895
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.833333
| 0
| 0.833333
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
481fe9b4e637da3a428ff5fb80e465aef1c1fcd2
| 286
|
py
|
Python
|
tests/basics/slots_bool_len.py
|
learnforpractice/micropython-cpp
|
004bc8382f74899e7b876cc29bfa6a9cc976ba10
|
[
"MIT"
] | 13,648
|
2015-01-01T01:34:51.000Z
|
2022-03-31T16:19:53.000Z
|
tests/basics/slots_bool_len.py
|
learnforpractice/micropython-cpp
|
004bc8382f74899e7b876cc29bfa6a9cc976ba10
|
[
"MIT"
] | 7,092
|
2015-01-01T07:59:11.000Z
|
2022-03-31T23:52:18.000Z
|
tests/basics/slots_bool_len.py
|
learnforpractice/micropython-cpp
|
004bc8382f74899e7b876cc29bfa6a9cc976ba10
|
[
"MIT"
] | 4,942
|
2015-01-02T11:48:50.000Z
|
2022-03-31T19:57:10.000Z
|
class A:
def __bool__(self):
print('__bool__')
return True
def __len__(self):
print('__len__')
return 1
class B:
def __len__(self):
print('__len__')
return 0
print(bool(A()))
print(len(A()))
print(bool(B()))
print(len(B()))
| 15.888889
| 25
| 0.538462
| 37
| 286
| 3.513514
| 0.324324
| 0.246154
| 0.153846
| 0.230769
| 0.369231
| 0.369231
| 0
| 0
| 0
| 0
| 0
| 0.00995
| 0.297203
| 286
| 17
| 26
| 16.823529
| 0.636816
| 0
| 0
| 0.266667
| 0
| 0
| 0.076923
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.2
| false
| 0
| 0
| 0
| 0.533333
| 0.466667
| 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
| 1
| 1
|
0
| 4
|
48233f65f7b946b9e224f809c68ee11b9cd1f865
| 479
|
py
|
Python
|
libtbx/command_line/sphinx_build.py
|
rimmartin/cctbx_project
|
644090f9432d9afc22cfb542fc3ab78ca8e15e5d
|
[
"BSD-3-Clause-LBNL"
] | 2
|
2021-03-18T12:31:57.000Z
|
2022-03-14T06:27:06.000Z
|
libtbx/command_line/sphinx_build.py
|
rimmartin/cctbx_project
|
644090f9432d9afc22cfb542fc3ab78ca8e15e5d
|
[
"BSD-3-Clause-LBNL"
] | null | null | null |
libtbx/command_line/sphinx_build.py
|
rimmartin/cctbx_project
|
644090f9432d9afc22cfb542fc3ab78ca8e15e5d
|
[
"BSD-3-Clause-LBNL"
] | 1
|
2021-03-26T12:52:30.000Z
|
2021-03-26T12:52:30.000Z
|
from __future__ import absolute_import, division, print_function
# LIBTBX_SET_DISPATCHER_NAME sphinx.build
import sys
try:
# try importing scipy.linalg before any cctbx modules, otherwise we
# sometimes get a segmentation fault/core dump if it is imported after.
# scipy.linalg is a dependency of e.g. xfel/clustering
import scipy.linalg # import dependency
except ImportError:
pass
if __name__ == '__main__':
from sphinx import main
sys.exit(main(sys.argv))
| 29.9375
| 73
| 0.772443
| 69
| 479
| 5.115942
| 0.695652
| 0.093484
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.164927
| 479
| 15
| 74
| 31.933333
| 0.8825
| 0.51357
| 0
| 0
| 0
| 0
| 0.035242
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.111111
| 0.555556
| 0
| 0.555556
| 0.111111
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 1
| 0
|
0
| 4
|
4840d115cc486a1192f80e3078000397ed29ae95
| 11,501
|
py
|
Python
|
pybind/nos/v7_1_0/rbridge_id/evpn_instance/vni/__init__.py
|
shivharis/pybind
|
4e1c6d54b9fd722ccec25546ba2413d79ce337e6
|
[
"Apache-2.0"
] | null | null | null |
pybind/nos/v7_1_0/rbridge_id/evpn_instance/vni/__init__.py
|
shivharis/pybind
|
4e1c6d54b9fd722ccec25546ba2413d79ce337e6
|
[
"Apache-2.0"
] | null | null | null |
pybind/nos/v7_1_0/rbridge_id/evpn_instance/vni/__init__.py
|
shivharis/pybind
|
4e1c6d54b9fd722ccec25546ba2413d79ce337e6
|
[
"Apache-2.0"
] | 1
|
2021-11-05T22:15:42.000Z
|
2021-11-05T22:15:42.000Z
|
from operator import attrgetter
import pyangbind.lib.xpathhelper as xpathhelper
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType
from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType
from pyangbind.lib.base import PybindBase
from decimal import Decimal
from bitarray import bitarray
import __builtin__
import vni_add
import evpn_vni
class vni(PybindBase):
"""
This class was auto-generated by the PythonClass plugin for PYANG
from YANG module brocade-rbridge - based on the path /rbridge-id/evpn-instance/vni. Each member element of
the container is represented as a class variable - with a specific
YANG type.
"""
__slots__ = ('_pybind_generated_by', '_path_helper', '_yang_name', '_rest_name', '_extmethods', '__vni_add','__evpn_vni',)
_yang_name = 'vni'
_rest_name = 'vni'
_pybind_generated_by = 'container'
def __init__(self, *args, **kwargs):
path_helper_ = kwargs.pop("path_helper", None)
if path_helper_ is False:
self._path_helper = False
elif path_helper_ is not None and isinstance(path_helper_, xpathhelper.YANGPathHelper):
self._path_helper = path_helper_
elif hasattr(self, "_parent"):
path_helper_ = getattr(self._parent, "_path_helper", False)
self._path_helper = path_helper_
else:
self._path_helper = False
extmethods = kwargs.pop("extmethods", None)
if extmethods is False:
self._extmethods = False
elif extmethods is not None and isinstance(extmethods, dict):
self._extmethods = extmethods
elif hasattr(self, "_parent"):
extmethods = getattr(self._parent, "_extmethods", None)
self._extmethods = extmethods
else:
self._extmethods = False
self.__evpn_vni = YANGDynClass(base=YANGListType("vni_number",evpn_vni.evpn_vni, yang_name="evpn-vni", rest_name="evpn-vni", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='vni-number', extensions={u'tailf-common': {u'info': u'VNI configuration', u'cli-no-key-completion': None, u'callpoint': u'EvpnVniConfig', u'cli-suppress-list-no': None, u'cli-drop-node-name': None, u'cli-suppress-key-abbreviation': None, u'cli-full-command': None, u'cli-full-no': None, u'cli-mode-name': u'evpn-vni-$(vni-number)'}}), is_container='list', yang_name="evpn-vni", rest_name="evpn-vni", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'info': u'VNI configuration', u'cli-no-key-completion': None, u'callpoint': u'EvpnVniConfig', u'cli-suppress-list-no': None, u'cli-drop-node-name': None, u'cli-suppress-key-abbreviation': None, u'cli-full-command': None, u'cli-full-no': None, u'cli-mode-name': u'evpn-vni-$(vni-number)'}}, namespace='urn:brocade.com:mgmt:brocade-bgp', defining_module='brocade-bgp', yang_type='list', is_config=True)
self.__vni_add = YANGDynClass(base=vni_add.vni_add, is_container='container', presence=False, yang_name="vni-add", rest_name="", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'info': u'Add/Remove VNIs from EVPN Instance', u'cli-drop-node-name': None}}, namespace='urn:brocade.com:mgmt:brocade-bgp', defining_module='brocade-bgp', yang_type='container', is_config=True)
load = kwargs.pop("load", None)
if args:
if len(args) > 1:
raise TypeError("cannot create a YANG container with >1 argument")
all_attr = True
for e in self._pyangbind_elements:
if not hasattr(args[0], e):
all_attr = False
break
if not all_attr:
raise ValueError("Supplied object did not have the correct attributes")
for e in self._pyangbind_elements:
nobj = getattr(args[0], e)
if nobj._changed() is False:
continue
setmethod = getattr(self, "_set_%s" % e)
if load is None:
setmethod(getattr(args[0], e))
else:
setmethod(getattr(args[0], e), load=load)
def _path(self):
if hasattr(self, "_parent"):
return self._parent._path()+[self._yang_name]
else:
return [u'rbridge-id', u'evpn-instance', u'vni']
def _rest_path(self):
if hasattr(self, "_parent"):
if self._rest_name:
return self._parent._rest_path()+[self._rest_name]
else:
return self._parent._rest_path()
else:
return [u'rbridge-id', u'evpn-instance', u'vni']
def _get_vni_add(self):
"""
Getter method for vni_add, mapped from YANG variable /rbridge_id/evpn_instance/vni/vni_add (container)
"""
return self.__vni_add
def _set_vni_add(self, v, load=False):
"""
Setter method for vni_add, mapped from YANG variable /rbridge_id/evpn_instance/vni/vni_add (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_vni_add is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_vni_add() directly.
"""
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=vni_add.vni_add, is_container='container', presence=False, yang_name="vni-add", rest_name="", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'info': u'Add/Remove VNIs from EVPN Instance', u'cli-drop-node-name': None}}, namespace='urn:brocade.com:mgmt:brocade-bgp', defining_module='brocade-bgp', yang_type='container', is_config=True)
except (TypeError, ValueError):
raise ValueError({
'error-string': """vni_add must be of a type compatible with container""",
'defined-type': "container",
'generated-type': """YANGDynClass(base=vni_add.vni_add, is_container='container', presence=False, yang_name="vni-add", rest_name="", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'info': u'Add/Remove VNIs from EVPN Instance', u'cli-drop-node-name': None}}, namespace='urn:brocade.com:mgmt:brocade-bgp', defining_module='brocade-bgp', yang_type='container', is_config=True)""",
})
self.__vni_add = t
if hasattr(self, '_set'):
self._set()
def _unset_vni_add(self):
self.__vni_add = YANGDynClass(base=vni_add.vni_add, is_container='container', presence=False, yang_name="vni-add", rest_name="", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'info': u'Add/Remove VNIs from EVPN Instance', u'cli-drop-node-name': None}}, namespace='urn:brocade.com:mgmt:brocade-bgp', defining_module='brocade-bgp', yang_type='container', is_config=True)
def _get_evpn_vni(self):
"""
Getter method for evpn_vni, mapped from YANG variable /rbridge_id/evpn_instance/vni/evpn_vni (list)
YANG Description: EVPN instance config
"""
return self.__evpn_vni
def _set_evpn_vni(self, v, load=False):
"""
Setter method for evpn_vni, mapped from YANG variable /rbridge_id/evpn_instance/vni/evpn_vni (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_evpn_vni is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_evpn_vni() directly.
YANG Description: EVPN instance config
"""
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=YANGListType("vni_number",evpn_vni.evpn_vni, yang_name="evpn-vni", rest_name="evpn-vni", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='vni-number', extensions={u'tailf-common': {u'info': u'VNI configuration', u'cli-no-key-completion': None, u'callpoint': u'EvpnVniConfig', u'cli-suppress-list-no': None, u'cli-drop-node-name': None, u'cli-suppress-key-abbreviation': None, u'cli-full-command': None, u'cli-full-no': None, u'cli-mode-name': u'evpn-vni-$(vni-number)'}}), is_container='list', yang_name="evpn-vni", rest_name="evpn-vni", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'info': u'VNI configuration', u'cli-no-key-completion': None, u'callpoint': u'EvpnVniConfig', u'cli-suppress-list-no': None, u'cli-drop-node-name': None, u'cli-suppress-key-abbreviation': None, u'cli-full-command': None, u'cli-full-no': None, u'cli-mode-name': u'evpn-vni-$(vni-number)'}}, namespace='urn:brocade.com:mgmt:brocade-bgp', defining_module='brocade-bgp', yang_type='list', is_config=True)
except (TypeError, ValueError):
raise ValueError({
'error-string': """evpn_vni must be of a type compatible with list""",
'defined-type': "list",
'generated-type': """YANGDynClass(base=YANGListType("vni_number",evpn_vni.evpn_vni, yang_name="evpn-vni", rest_name="evpn-vni", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='vni-number', extensions={u'tailf-common': {u'info': u'VNI configuration', u'cli-no-key-completion': None, u'callpoint': u'EvpnVniConfig', u'cli-suppress-list-no': None, u'cli-drop-node-name': None, u'cli-suppress-key-abbreviation': None, u'cli-full-command': None, u'cli-full-no': None, u'cli-mode-name': u'evpn-vni-$(vni-number)'}}), is_container='list', yang_name="evpn-vni", rest_name="evpn-vni", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'info': u'VNI configuration', u'cli-no-key-completion': None, u'callpoint': u'EvpnVniConfig', u'cli-suppress-list-no': None, u'cli-drop-node-name': None, u'cli-suppress-key-abbreviation': None, u'cli-full-command': None, u'cli-full-no': None, u'cli-mode-name': u'evpn-vni-$(vni-number)'}}, namespace='urn:brocade.com:mgmt:brocade-bgp', defining_module='brocade-bgp', yang_type='list', is_config=True)""",
})
self.__evpn_vni = t
if hasattr(self, '_set'):
self._set()
def _unset_evpn_vni(self):
self.__evpn_vni = YANGDynClass(base=YANGListType("vni_number",evpn_vni.evpn_vni, yang_name="evpn-vni", rest_name="evpn-vni", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='vni-number', extensions={u'tailf-common': {u'info': u'VNI configuration', u'cli-no-key-completion': None, u'callpoint': u'EvpnVniConfig', u'cli-suppress-list-no': None, u'cli-drop-node-name': None, u'cli-suppress-key-abbreviation': None, u'cli-full-command': None, u'cli-full-no': None, u'cli-mode-name': u'evpn-vni-$(vni-number)'}}), is_container='list', yang_name="evpn-vni", rest_name="evpn-vni", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'info': u'VNI configuration', u'cli-no-key-completion': None, u'callpoint': u'EvpnVniConfig', u'cli-suppress-list-no': None, u'cli-drop-node-name': None, u'cli-suppress-key-abbreviation': None, u'cli-full-command': None, u'cli-full-no': None, u'cli-mode-name': u'evpn-vni-$(vni-number)'}}, namespace='urn:brocade.com:mgmt:brocade-bgp', defining_module='brocade-bgp', yang_type='list', is_config=True)
vni_add = __builtin__.property(_get_vni_add, _set_vni_add)
evpn_vni = __builtin__.property(_get_evpn_vni, _set_evpn_vni)
_pyangbind_elements = {'vni_add': vni_add, 'evpn_vni': evpn_vni, }
| 70.128049
| 1,163
| 0.717503
| 1,714
| 11,501
| 4.611435
| 0.107351
| 0.030364
| 0.040486
| 0.020243
| 0.768978
| 0.726468
| 0.711538
| 0.699646
| 0.699646
| 0.691549
| 0
| 0.000601
| 0.131467
| 11,501
| 163
| 1,164
| 70.558282
| 0.79067
| 0.103295
| 0
| 0.381818
| 0
| 0.018182
| 0.399235
| 0.151197
| 0
| 0
| 0
| 0
| 0
| 1
| 0.081818
| false
| 0
| 0.090909
| 0
| 0.309091
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
484a43ca6bdb62d902e7b3d3e7f71353d36224c0
| 574
|
py
|
Python
|
accounts/apps.py
|
enrobyn/lookit-api
|
621fbb8b25100a21fd94721d39003b5d4f651dc5
|
[
"MIT"
] | null | null | null |
accounts/apps.py
|
enrobyn/lookit-api
|
621fbb8b25100a21fd94721d39003b5d4f651dc5
|
[
"MIT"
] | null | null | null |
accounts/apps.py
|
enrobyn/lookit-api
|
621fbb8b25100a21fd94721d39003b5d4f651dc5
|
[
"MIT"
] | null | null | null |
from django.apps import AppConfig
from django.db.models.signals import post_migrate
from accounts.signals import (post_migrate_create_organization,
post_migrate_create_social_app,
post_migrate_create_flatpages)
class AccountsConfig(AppConfig):
name = 'accounts'
def ready(self):
post_migrate.connect(post_migrate_create_organization, sender=self)
post_migrate.connect(post_migrate_create_social_app, sender=self)
post_migrate.connect(post_migrate_create_flatpages, sender=self)
| 35.875
| 75
| 0.728223
| 66
| 574
| 5.969697
| 0.363636
| 0.279188
| 0.258883
| 0.167513
| 0.416244
| 0.327411
| 0.327411
| 0.228426
| 0
| 0
| 0
| 0
| 0.214286
| 574
| 15
| 76
| 38.266667
| 0.873614
| 0
| 0
| 0
| 0
| 0
| 0.013937
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.090909
| false
| 0
| 0.272727
| 0
| 0.545455
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
48512031c019888cab471e54967b9d69c470bf38
| 176
|
py
|
Python
|
Chapter 07/Chap07_Example7.122.py
|
bpbpublications/Programming-Techniques-using-Python
|
49b785f37e95a3aad1d36cef51e219ac56e5e9f0
|
[
"MIT"
] | null | null | null |
Chapter 07/Chap07_Example7.122.py
|
bpbpublications/Programming-Techniques-using-Python
|
49b785f37e95a3aad1d36cef51e219ac56e5e9f0
|
[
"MIT"
] | null | null | null |
Chapter 07/Chap07_Example7.122.py
|
bpbpublications/Programming-Techniques-using-Python
|
49b785f37e95a3aad1d36cef51e219ac56e5e9f0
|
[
"MIT"
] | null | null | null |
d1 = {1:'Sugandh', 2:'Divya', 3:'Mintoo'}
print("deleting a key from the dictionary...")
del d1[3]
print(d1)
print("deleting the same key again...")
del d1[3]
print(d1)
| 22
| 47
| 0.630682
| 30
| 176
| 3.7
| 0.566667
| 0.234234
| 0.108108
| 0.198198
| 0.234234
| 0
| 0
| 0
| 0
| 0
| 0
| 0.068027
| 0.164773
| 176
| 7
| 48
| 25.142857
| 0.687075
| 0
| 0
| 0.571429
| 0
| 0
| 0.502959
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.571429
| 0
| 0
| 0
| null | 1
| 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
| 1
|
0
| 4
|
485810ce700ed922c18de2fc7c213cc403024fe3
| 506
|
py
|
Python
|
web_flask/2-c_route.py
|
jj131204/AirBnB_clone_v2
|
f7e89b97a8a07f67fe0a3cc6dc13f5cd7458103e
|
[
"MIT"
] | null | null | null |
web_flask/2-c_route.py
|
jj131204/AirBnB_clone_v2
|
f7e89b97a8a07f67fe0a3cc6dc13f5cd7458103e
|
[
"MIT"
] | null | null | null |
web_flask/2-c_route.py
|
jj131204/AirBnB_clone_v2
|
f7e89b97a8a07f67fe0a3cc6dc13f5cd7458103e
|
[
"MIT"
] | 1
|
2021-08-28T16:06:40.000Z
|
2021-08-28T16:06:40.000Z
|
#!/usr/bin/python3
"""web_flask"""
from flask import Flask
app = Flask(__name__)
@app.route("/", strict_slashes=False)
def index():
"""index"""
return "Hello HBNB!"
@app.route('/hbnb', strict_slashes=False)
def hbnb():
"""hbnb"""
return 'HBNB'
@app.route('/c/<text>', strict_slashes=False)
def text(text):
"""display “C ” followed by the value of the text variable"""
return ('C ' + text.replace('_', ' '))
if __name__ == '__main__':
app.run(host='0.0.0.0', port=5000)
| 18.071429
| 65
| 0.612648
| 70
| 506
| 4.185714
| 0.5
| 0.081911
| 0.1843
| 0.215017
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.021583
| 0.175889
| 506
| 27
| 66
| 18.740741
| 0.681055
| 0.185771
| 0
| 0
| 0
| 0
| 0.12532
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.230769
| false
| 0
| 0.076923
| 0
| 0.538462
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
4869f3d7503d011a03922217dd36e526ff97e4da
| 419
|
py
|
Python
|
country/management/commands/generate_country_contract_excel.py
|
bikramtuladhar/covid-19-procurement-explorer-admin
|
9bba473c8b83c8651e3178b6fba01af74d8b27dc
|
[
"BSD-3-Clause"
] | null | null | null |
country/management/commands/generate_country_contract_excel.py
|
bikramtuladhar/covid-19-procurement-explorer-admin
|
9bba473c8b83c8651e3178b6fba01af74d8b27dc
|
[
"BSD-3-Clause"
] | null | null | null |
country/management/commands/generate_country_contract_excel.py
|
bikramtuladhar/covid-19-procurement-explorer-admin
|
9bba473c8b83c8651e3178b6fba01af74d8b27dc
|
[
"BSD-3-Clause"
] | null | null | null |
from django.core.management.base import BaseCommand
from country.tasks import country_contract_excel
class Command(BaseCommand):
help = "Generate Country Contract Excel"
def add_arguments(self, parser):
parser.add_argument("--country", type=str)
def handle(self, *args, **kwargs):
country = kwargs["country"]
country_contract_excel.apply_async(args=(country,), queue="covid19")
| 27.933333
| 76
| 0.718377
| 50
| 419
| 5.88
| 0.6
| 0.153061
| 0.204082
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.005747
| 0.169451
| 419
| 14
| 77
| 29.928571
| 0.83908
| 0
| 0
| 0
| 1
| 0
| 0.128878
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.222222
| false
| 0
| 0.222222
| 0
| 0.666667
| 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
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
6fb3c66ed94261fb3901224c6e317d2575919f1b
| 343
|
py
|
Python
|
fakeit/basics/uuids/__init__.py
|
RCheese/fakeit
|
1e7dda51da31a64a46eedde308782d26b73273ca
|
[
"MIT"
] | 12
|
2019-01-30T05:00:49.000Z
|
2021-11-29T22:09:17.000Z
|
fakeit/basics/uuids/__init__.py
|
RCheese/fakeit
|
1e7dda51da31a64a46eedde308782d26b73273ca
|
[
"MIT"
] | 11
|
2020-05-11T02:39:17.000Z
|
2021-06-25T15:30:24.000Z
|
fakeit/basics/uuids/__init__.py
|
RCheese/fakeit
|
1e7dda51da31a64a46eedde308782d26b73273ca
|
[
"MIT"
] | null | null | null |
from uuid import uuid1, uuid3, uuid4, uuid5
def fake_uuid1(node=None, clock_seq=None):
return uuid1(node, clock_seq)
def fake_uuid3(namespace, name):
return uuid3(namespace, name)
def fake_uuid4():
return uuid4()
def fake_uuid5(namespace, name):
return uuid5(namespace, name)
def fake_uuid():
return fake_uuid4()
| 15.590909
| 43
| 0.71137
| 49
| 343
| 4.816327
| 0.326531
| 0.148305
| 0.152542
| 0.169492
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.046429
| 0.183673
| 343
| 21
| 44
| 16.333333
| 0.796429
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.454545
| false
| 0
| 0.090909
| 0.454545
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
6fc3ceb7416ac53783fbb78dcfdae731970bf1dd
| 660
|
py
|
Python
|
tests/test_kaggleKernel.py
|
pennz/kaggle_runner
|
19b979ae86f1fcaff5d17f55f4d8bc3d3f2a4ced
|
[
"MIT"
] | 1
|
2020-08-06T09:07:49.000Z
|
2020-08-06T09:07:49.000Z
|
tests/test_kaggleKernel.py
|
pennz/kaggle_runner
|
19b979ae86f1fcaff5d17f55f4d8bc3d3f2a4ced
|
[
"MIT"
] | 1
|
2020-05-13T10:49:42.000Z
|
2020-05-15T22:52:37.000Z
|
tests/test_kaggleKernel.py
|
pennz/kaggle_runner
|
19b979ae86f1fcaff5d17f55f4d8bc3d3f2a4ced
|
[
"MIT"
] | null | null | null |
from unittest import TestCase
class TestKaggleKernel(TestCase):
def test_install_dependency(self):
self.fail()
def test_set_logger(self):
self.fail()
def test_set_random_seed(self):
self.fail()
def test_save_model(self):
self.fail()
def test_train_model(self):
self.fail()
def test_set_model(self):
self.fail()
def test_prepare_train_dev_data(self):
self.fail()
def test_prepare_test_data(self):
self.fail()
def test_run(self):
self.fail()
def test_continue_run(self):
self.fail()
def test_submit(self):
self.fail()
| 17.837838
| 42
| 0.618182
| 86
| 660
| 4.465116
| 0.290698
| 0.200521
| 0.34375
| 0.390625
| 0.630208
| 0.580729
| 0
| 0
| 0
| 0
| 0
| 0
| 0.277273
| 660
| 36
| 43
| 18.333333
| 0.805031
| 0
| 0
| 0.458333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.458333
| false
| 0
| 0.041667
| 0
| 0.541667
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
6fdc387997387b099cfb7e52b7abd0be728777d5
| 327
|
py
|
Python
|
loops/mult_table.py
|
Rhoynar/pysel
|
7a283cfdcaea3b1e33e615d1e655b6bd1f23f09f
|
[
"MIT"
] | 1
|
2019-09-09T12:58:36.000Z
|
2019-09-09T12:58:36.000Z
|
loops/mult_table.py
|
Rhoynar/pysel
|
7a283cfdcaea3b1e33e615d1e655b6bd1f23f09f
|
[
"MIT"
] | null | null | null |
loops/mult_table.py
|
Rhoynar/pysel
|
7a283cfdcaea3b1e33e615d1e655b6bd1f23f09f
|
[
"MIT"
] | null | null | null |
# Print multiplication tables
# 1 2 3 4 .. 10
# 2 4 6 8 20
# 3 6 9 12 30
# .. .. .. .. ..
for i in range(1, 11):
for j in range(1, 11):
print(str(j * i) + '\t', end='')
print('')
| 23.357143
| 46
| 0.278287
| 37
| 327
| 2.459459
| 0.621622
| 0.153846
| 0.175824
| 0.21978
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.18797
| 0.593272
| 327
| 13
| 47
| 25.153846
| 0.496241
| 0.633028
| 0
| 0
| 0
| 0
| 0.017544
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.5
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 4
|
6ff5643693adfc1193ff8d61518808628f6016f2
| 130
|
py
|
Python
|
semanticmapping/__init__.py
|
nsdumont/SemanticMapping
|
af97a452b3de30a9670536c7fa92c28a70fae44d
|
[
"MIT"
] | null | null | null |
semanticmapping/__init__.py
|
nsdumont/SemanticMapping
|
af97a452b3de30a9670536c7fa92c28a70fae44d
|
[
"MIT"
] | null | null | null |
semanticmapping/__init__.py
|
nsdumont/SemanticMapping
|
af97a452b3de30a9670536c7fa92c28a70fae44d
|
[
"MIT"
] | null | null | null |
from . import networks
from . import utils
from .ssp import SSP
from .sspspace import SSPSpace, RandomSSPSpace, HexagonalSSPSpace
| 26
| 65
| 0.815385
| 16
| 130
| 6.625
| 0.5
| 0.188679
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.138462
| 130
| 4
| 66
| 32.5
| 0.946429
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
6ff5c7c978825ac608e4da0d397cc0ec86fbebb6
| 82
|
py
|
Python
|
programming/python/aula11/ex02.py
|
Vinicius-Moraes20/personal-projects
|
c041909ab1c66eeca11768f8f7944eb351c8b8e7
|
[
"MIT"
] | null | null | null |
programming/python/aula11/ex02.py
|
Vinicius-Moraes20/personal-projects
|
c041909ab1c66eeca11768f8f7944eb351c8b8e7
|
[
"MIT"
] | null | null | null |
programming/python/aula11/ex02.py
|
Vinicius-Moraes20/personal-projects
|
c041909ab1c66eeca11768f8f7944eb351c8b8e7
|
[
"MIT"
] | null | null | null |
n1 = 3
n2 = 4
print("Os numeros são \033[1;37;45m {} e {} \033[m".format(n1, n2))
| 20.5
| 67
| 0.573171
| 18
| 82
| 2.611111
| 0.833333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.253731
| 0.182927
| 82
| 4
| 67
| 20.5
| 0.447761
| 0
| 0
| 0
| 0
| 0
| 0.518072
| 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
| 1
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
b50912dfe4e4e03087955bd6d7bd185e6ee8e5dc
| 106
|
py
|
Python
|
src/myproject/settings/smtp_iso2022jp.py
|
thinkAmi/DjangoCongress_JP_2019_talk
|
0b746f62808d979c1570de80084686f709996e1d
|
[
"Unlicense"
] | 1
|
2019-05-18T04:34:59.000Z
|
2019-05-18T04:34:59.000Z
|
src/myproject/settings/smtp_iso2022jp.py
|
thinkAmi/DjangoCongress_JP_2019_talk
|
0b746f62808d979c1570de80084686f709996e1d
|
[
"Unlicense"
] | null | null | null |
src/myproject/settings/smtp_iso2022jp.py
|
thinkAmi/DjangoCongress_JP_2019_talk
|
0b746f62808d979c1570de80084686f709996e1d
|
[
"Unlicense"
] | null | null | null |
from .my_smtp import *
# EMAIL_BACKENDを差し替え
EMAIL_BACKEND = 'myapp.email_backends.Iso2022JpEmailBackend'
| 21.2
| 60
| 0.830189
| 12
| 106
| 7
| 0.833333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.041667
| 0.09434
| 106
| 4
| 61
| 26.5
| 0.833333
| 0.169811
| 0
| 0
| 0
| 0
| 0.488372
| 0.488372
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
82feac2fda5df8f018fd52a7ee6f43c9577ff67f
| 13,940
|
py
|
Python
|
tests/model/test_register_cache.py
|
zaheerm/givenergy-modbus
|
db0cf5c6580737f157e1d0fdea4e471477eb04bd
|
[
"Apache-2.0"
] | null | null | null |
tests/model/test_register_cache.py
|
zaheerm/givenergy-modbus
|
db0cf5c6580737f157e1d0fdea4e471477eb04bd
|
[
"Apache-2.0"
] | null | null | null |
tests/model/test_register_cache.py
|
zaheerm/givenergy-modbus
|
db0cf5c6580737f157e1d0fdea4e471477eb04bd
|
[
"Apache-2.0"
] | null | null | null |
import datetime
import pytest
from givenergy_modbus.model.register import HoldingRegister, InputRegister # type: ignore # shut up mypy
from givenergy_modbus.model.register_cache import RegisterCache
from tests.model.test_register import HOLDING_REGISTERS, INPUT_REGISTERS # type: ignore # shut up mypy
JSON_INVERTER_DAYTIME_DISCHARGING_WITH_SOLAR_GENERATION = (
'{"HR:0": 8193, "HR:1": 3, "HR:2": 2098, "HR:3": 513, "HR:4": 0, "HR:5": 50000, "HR:6": 3600, "HR:7": 1, '
'"HR:8": 16967, "HR:9": 12594, "HR:10": 13108, "HR:11": 18229, "HR:12": 13879, "HR:13": 21313, "HR:14": 12594, '
'"HR:15": 13108, "HR:16": 18229, "HR:17": 13879, "HR:18": 3005, "HR:19": 449, "HR:20": 0, "HR:21": 449, '
'"HR:22": 2, "HR:23": 0, "HR:24": 32768, "HR:25": 30235, "HR:26": 6000, "HR:27": 1, "HR:28": 0, "HR:29": 0, '
'"HR:30": 17, "HR:31": 0, "HR:32": 4, "HR:33": 7, "HR:34": 140, "HR:35": 22, "HR:36": 1, "HR:37": 11, '
'"HR:38": 11, "HR:39": 51, "HR:40": 46, "HR:41": 1, "HR:42": 2, "HR:43": 0, "HR:44": 0, "HR:45": 0, '
'"HR:46": 101, "HR:47": 1, "HR:48": 0, "HR:49": 0, "HR:50": 100, "HR:51": 0, "HR:52": 0, "HR:53": 1, '
'"HR:54": 1, "HR:55": 160, "HR:56": 0, "HR:57": 0, "HR:58": 1, "HR:59": 0, "HR:60": 1500, "HR:61": 30, '
'"HR:62": 30, "HR:63": 1840, "HR:64": 2740, "HR:65": 4700, "HR:66": 5198, "HR:67": 126, "HR:68": 27, '
'"HR:69": 24, "HR:70": 28, "HR:71": 1840, "HR:72": 2620, "HR:73": 4745, "HR:74": 5200, "HR:75": 126, '
'"HR:76": 52, "HR:77": 1, "HR:78": 28, "HR:79": 1755, "HR:80": 2837, "HR:81": 4700, "HR:82": 5200, '
'"HR:83": 2740, "HR:84": 0, "HR:85": 0, "HR:86": 0, "HR:87": 0, "HR:88": 0, "HR:89": 0, "HR:90": 0, '
'"HR:91": 0, "HR:92": 0, "HR:93": 0, "HR:94": 30, "HR:95": 430, "HR:96": 1, "HR:97": 4320, "HR:98": 5850, '
'"HR:99": 0, "HR:100": 0, "HR:101": 0, "HR:102": 0, "HR:103": 0, "HR:104": 0, "HR:105": 0, "HR:106": 0, '
'"HR:107": 0, "HR:108": 6, "HR:109": 1, "HR:110": 4, "HR:111": 50, "HR:112": 50, "HR:113": 0, "HR:114": 4, '
'"HR:115": 0, "HR:116": 100, "HR:117": 0, "HR:118": 0, "HR:119": 0, "HR:120": 0, "HR:121": 0, "HR:122": 0, '
'"HR:123": 24, "HR:124": 0, "HR:125": 1, "HR:126": 0, "HR:127": 0, "HR:128": 1, "HR:129": 1, "HR:130": 255, '
'"HR:131": 20000, "HR:132": 255, "HR:133": 20000, "HR:134": 255, "HR:135": 20000, "HR:136": 255, '
'"HR:137": 20000, "HR:138": 2484, "HR:139": 2530, "HR:140": 2116, "HR:141": 2070, "HR:142": 20, "HR:143": 5, '
'"HR:144": 2415, "HR:145": 2300, "HR:146": 0, "HR:147": 0, "HR:148": 0, "HR:149": 0, "HR:150": 0, "HR:151": 0, '
'"HR:152": 0, "HR:153": 0, "HR:154": 0, "HR:155": 0, "HR:156": 0, "HR:157": 0, "HR:158": 0, "HR:159": 0, '
'"HR:160": 0, "HR:161": 0, "HR:162": 0, "HR:163": 0, "HR:164": 0, "HR:165": 0, "HR:166": 0, "HR:167": 0, '
'"HR:168": 0, "HR:169": 0, "HR:170": 0, "HR:171": 0, "HR:172": 0, "HR:173": 0, "HR:174": 0, "HR:175": 0, '
'"HR:176": 0, "HR:177": 0, "HR:178": 0, "HR:179": 0, "IR:0": 1, "IR:1": 3570, "IR:2": 3697, "IR:3": 3830, '
'"IR:4": 0, "IR:5": 2363, "IR:6": 0, "IR:7": 3565, "IR:8": 3, "IR:9": 3, "IR:10": 27, "IR:11": 0, '
'"IR:12": 263, "IR:13": 4996, "IR:14": 5, "IR:15": 2829, "IR:16": 9531, "IR:17": 4, "IR:18": 117, "IR:19": 6, '
'"IR:20": 128, "IR:21": 0, "IR:22": 9, "IR:23": 0, "IR:24": 536, "IR:25": 0, "IR:26": 198, "IR:27": 0, '
'"IR:28": 1881, "IR:29": 0, "IR:30": 21, "IR:31": 0, "IR:32": 0, "IR:33": 6242, "IR:34": 0, "IR:35": 93, '
'"IR:36": 91, "IR:37": 34, "IR:38": 0, "IR:39": 0, "IR:40": 0, "IR:41": 244, "IR:42": 515, "IR:43": 554, '
'"IR:44": 38, "IR:45": 0, "IR:46": 1725, "IR:47": 0, "IR:48": 385, "IR:49": 1, "IR:50": 5173, "IR:51": 647, '
'"IR:52": 360, "IR:53": 2351, "IR:54": 4992, "IR:55": 241, "IR:56": 160, "IR:57": 0, "IR:58": 257, '
'"IR:59": 68, "IR:105": 34, "IR:106": 91, "IR:120": 0, "IR:121": 0, "IR:122": 0, "IR:123": 0, "IR:124": 0, '
'"IR:125": 0, "IR:126": 0, '
'"IR:127": 0, "IR:128": 0, "IR:129": 0, "IR:130": 0, "IR:131": 0, "IR:132": 0, "IR:133": 0, "IR:134": 0, '
'"IR:135": 0, "IR:136": 0, "IR:137": 0, "IR:138": 0, "IR:139": 0, "IR:140": 0, "IR:141": 0, "IR:142": 0, '
'"IR:143": 0, "IR:144": 0, "IR:145": 0, "IR:146": 0, "IR:147": 0, "IR:148": 0, "IR:149": 0, "IR:150": 0, '
'"IR:151": 0, "IR:152": 0, "IR:153": 0, "IR:154": 0, "IR:155": 0, "IR:156": 0, "IR:157": 0, "IR:158": 0, '
'"IR:159": 0, "IR:160": 0, "IR:161": 0, "IR:162": 0, "IR:163": 0, "IR:164": 0, "IR:165": 0, "IR:166": 0, '
'"IR:167": 0, "IR:168": 0, "IR:169": 0, "IR:170": 0, "IR:171": 0, "IR:172": 0, "IR:173": 0, "IR:174": 0, '
'"IR:175": 0, "IR:176": 0, "IR:177": 0, "IR:178": 0, "IR:179": 0, "IR:180": 1730, "IR:181": 1835, '
'"IR:182": 34, "IR:183": 91, "IR:184": 0, "IR:185": 0, "IR:186": 0, "IR:187": 0, "IR:188": 0, "IR:189": 0, '
'"IR:190": 0, "IR:191": 0, "IR:192": 0, "IR:193": 0, "IR:194": 0, "IR:195": 0, "IR:196": 0, "IR:197": 0, '
'"IR:198": 0, "IR:199": 0, "IR:200": 0, "IR:201": 0, "IR:202": 0, "IR:203": 0, "IR:204": 0, "IR:205": 0, '
'"IR:206": 0, "IR:207": 0, "IR:208": 0, "IR:209": 0, "IR:210": 0, "IR:211": 0, "IR:212": 0, "IR:213": 0, '
'"IR:214": 0, "IR:215": 0, "IR:216": 0, "IR:217": 0, "IR:218": 0, "IR:219": 0, "IR:220": 0, "IR:221": 0, '
'"IR:222": 0, "IR:223": 0, "IR:224": 0, "IR:225": 0, "IR:226": 0, "IR:227": 300, "IR:228": 0, "IR:229": 0, '
'"IR:230": 0, "IR:231": 0, "IR:232": 0, "IR:233": 0, "IR:234": 0, "IR:235": 0, "IR:236": 0, "IR:237": 0, '
'"IR:238": 0, "IR:239": 0, "IR:240": 2331, "IR:241": 0, "IR:242": 0, "IR:243": 0, "IR:244": 0, "IR:245": 0, '
'"IR:246": 90, "IR:247": 0, "IR:248": 0, "IR:249": 0, "IR:250": 0, "IR:251": 0, "IR:252": 0, "IR:253": 0, '
'"IR:254": 0, "IR:255": 0, "IR:256": 0, "IR:257": 0, "IR:258": 0, "IR:259": 0, "IR:260": 0, "IR:261": 0, '
'"IR:262": 0, "IR:263": 0, "IR:264": 0, "IR:265": 0, "IR:266": 0, "IR:267": 0, "IR:268": 0, "IR:269": 0, '
'"IR:270": 0, "IR:271": 0, "IR:272": 0, "IR:273": 0, "IR:274": 0, "IR:275": 0, "IR:276": 0, "IR:277": 0, '
'"IR:278": 0, "IR:279": 0, "IR:280": 0, "IR:281": 0, "IR:282": 0, "IR:283": 0, "IR:284": 0, "IR:285": 0, '
'"IR:286": 0, "IR:287": 0, "IR:288": 0, "IR:289": 0, "IR:290": 0, "IR:291": 0, "IR:292": 0, "IR:293": 0, '
'"IR:294": 0, "IR:295": 0, "IR:296": 0, "IR:297": 0, "IR:298": 0, "IR:299": 0}'
)
JSON_BATTERY_DAYTIME_DISCHARGING = (
'{"IR:60": 3232, "IR:61": 3237, "IR:62": 3235, "IR:63": 3232, "IR:64": 3235, "IR:65": 3229, "IR:66": 3237, '
'"IR:67": 3233, "IR:68": 3238, "IR:69": 3237, "IR:70": 3235, "IR:71": 3235, "IR:72": 3235, "IR:73": 3235, '
'"IR:74": 3240, "IR:75": 3238, "IR:76": 168, "IR:77": 157, "IR:78": 165, "IR:79": 146, "IR:80": 51832, '
'"IR:81": 172, "IR:82": 0, "IR:83": 51816, "IR:84": 0, "IR:85": 19513, "IR:86": 0, "IR:87": 16000, "IR:88": 0, '
'"IR:89": 13142, "IR:90": 0, "IR:91": 3600, "IR:92": 256, "IR:93": 0, "IR:94": 0, "IR:95": 0, "IR:96": 23, '
'"IR:97": 16, "IR:98": 3005, "IR:99": 0, "IR:100": 67, "IR:101": 0, "IR:102": 16000, "IR:103": 168, "IR:104": 157, '
'"IR:105": 0, "IR:106": 0, "IR:107": 0, "IR:108": 0, "IR:109": 0, "IR:110": 16967, "IR:111": 12594, '
'"IR:112": 13108, "IR:113": 18229, "IR:114": 13879, "IR:115": 8, "IR:116": 0, "IR:117": 0, "IR:118": 0, '
'"IR:119": 0}'
)
JSON_BATTERY_UNSURE = (
'{"IR:60": 0, "IR:61": 0, "IR:62": 0, "IR:63": 0, "IR:64": 0, "IR:65": 0, "IR:66": 0, "IR:67": 0, "IR:68": 0, '
'"IR:69": 0, "IR:70": 0, "IR:71": 0, "IR:72": 0, "IR:73": 0, "IR:74": 0, "IR:75": 0, "IR:76": 52, "IR:77": 0, '
'"IR:78": 0, "IR:79": 0, "IR:80": 0, "IR:81": 256, "IR:82": 0, "IR:83": 0, "IR:84": 0, "IR:85": 0, "IR:86": 0, '
'"IR:87": 0, "IR:88": 0, "IR:89": 0, "IR:90": 0, "IR:91": 0, "IR:92": 0, "IR:93": 0, "IR:94": 0, "IR:95": 0, '
'"IR:96": 0, "IR:97": 0, "IR:98": 0, "IR:99": 0, "IR:100": 0, "IR:101": 0, "IR:102": 0, "IR:103": 0, "IR:104": 0, '
'"IR:105": 0, "IR:106": 0, "IR:107": 0, "IR:108": 0, "IR:109": 0, "IR:110": 0, "IR:111": 0, "IR:112": 0, '
'"IR:113": 0, "IR:114": 0, "IR:115": 0, "IR:116": 0, "IR:117": 0, "IR:118": 0, "IR:119": 0}'
)
JSON_BATTERY_MISSING = (
'{"IR:60": 0, "IR:61": 0, "IR:62": 0, "IR:63": 0, "IR:64": 0, "IR:65": 0, "IR:66": 0, "IR:67": 0, "IR:68": 0, '
'"IR:69": 0, "IR:70": 0, "IR:71": 0, "IR:72": 0, "IR:73": 0, "IR:74": 0, "IR:75": 0, "IR:76": 0, "IR:77": 0, '
'"IR:78": 0, "IR:79": 0, "IR:80": 0, "IR:81": 0, "IR:82": 0, "IR:83": 0, "IR:84": 0, "IR:85": 0, "IR:86": 0, '
'"IR:87": 0, "IR:88": 0, "IR:89": 0, "IR:90": 0, "IR:91": 0, "IR:92": 0, "IR:93": 0, "IR:94": 0, "IR:95": 0, '
'"IR:96": 0, "IR:97": 0, "IR:98": 0, "IR:99": 0, "IR:100": 0, "IR:101": 0, "IR:102": 0, "IR:103": 0, "IR:104": 0, '
'"IR:105": 0, "IR:106": 0, "IR:107": 0, "IR:108": 0, "IR:109": 0, "IR:110": 0, "IR:111": 0, "IR:112": 0, '
'"IR:113": 0, "IR:114": 0, "IR:115": 0, "IR:116": 0, "IR:117": 0, "IR:118": 0, "IR:119": 0}'
)
@pytest.fixture
def register_cache() -> RegisterCache:
"""Ensure we can instantiate a RegisterCache and set registers in it."""
i = RegisterCache()
i.set_registers(HoldingRegister, HOLDING_REGISTERS)
i.set_registers(InputRegister, INPUT_REGISTERS)
return i
@pytest.fixture
def register_cache_inverter_daytime_discharging_with_solar_generation() -> RegisterCache:
"""Ensure we can instantiate a RegisterCache and set registers in it."""
return RegisterCache.from_json(JSON_INVERTER_DAYTIME_DISCHARGING_WITH_SOLAR_GENERATION)
@pytest.fixture
def register_cache_battery_daytime_discharging() -> RegisterCache:
"""Ensure we can instantiate a RegisterCache and set registers in it."""
return RegisterCache.from_json(JSON_BATTERY_DAYTIME_DISCHARGING)
@pytest.fixture
def register_cache_battery_unsure() -> RegisterCache:
"""Ensure we can instantiate a RegisterCache and set registers in it."""
return RegisterCache.from_json(JSON_BATTERY_UNSURE)
@pytest.fixture
def register_cache_battery_missing() -> RegisterCache:
"""Ensure we can instantiate a RegisterCache and set registers in it."""
return RegisterCache.from_json(JSON_BATTERY_MISSING)
def test_register_cache(register_cache):
"""Ensure we can instantiate a RegisterCache and set registers in it."""
expected = {HoldingRegister(k): v for k, v in HOLDING_REGISTERS.items()}
expected.update({InputRegister(k): v for k, v in INPUT_REGISTERS.items()})
assert register_cache._registers == expected
def test_attributes(register_cache):
"""Ensure we can instantiate a RegisterCache and derive correct attributes from it."""
for k in (
'inverter_serial_number',
'model',
'battery_serial_number',
'system_time',
'charge_slot_1',
'charge_slot_2',
'discharge_slot_1',
'discharge_slot_2',
):
with pytest.raises(KeyError) as e:
assert getattr(register_cache, k)
assert e.value.args[0] == k
assert register_cache.device_type_code == '2001'
assert register_cache.inverter_module == 198706
assert register_cache.bms_firmware_version == 3005
assert register_cache.dsp_firmware_version == 449
assert register_cache.arm_firmware_version == 449
assert register_cache.enable_charge_target
# assert register_cache.system_time == datetime.datetime(2022, 1, 1, 23, 57, 19)
# time slots are BCD-encoded: 30 == 00:30, 430 == 04:30
assert register_cache.charge_slot_1_start == datetime.time(0, 30)
assert register_cache.charge_slot_1_end == datetime.time(4, 30)
# assert register_cache.charge_slot_1 == (datetime.time(0, 30), datetime.time(4, 30))
assert register_cache.charge_slot_2_start == datetime.time(0, 0)
assert register_cache.charge_slot_2_end == datetime.time(0, 4)
# assert register_cache.charge_slot_2 == (datetime.time(0, 0), datetime.time(0, 4))
assert register_cache.discharge_slot_1_start == datetime.time(0, 0)
assert register_cache.discharge_slot_1_end == datetime.time(0, 0)
# assert register_cache.discharge_slot_1 == (datetime.time(0, 0), datetime.time(0, 0))
assert register_cache.discharge_slot_2_start == datetime.time(0, 0)
assert register_cache.discharge_slot_2_end == datetime.time(0, 0)
# assert register_cache.discharge_slot_2 == (datetime.time(0, 0), datetime.time(0, 0))
assert register_cache.v_pv1 == 1.4
assert register_cache.v_pv2 == 1.0
assert register_cache.v_p_bus == 7.0
assert register_cache.v_n_bus == 0.0
assert register_cache.v_ac1 == 236.7
assert register_cache.e_pv1_day == 0.4
assert register_cache.e_pv2_day == 0.5
assert register_cache.e_grid_out_total_l == 0.6
assert register_cache.battery_percent == 4
assert register_cache.e_battery_discharge_total == 169.6
assert register_cache.e_battery_charge_total == 174.4
assert register_cache.e_battery_throughput_total_h == 0
assert register_cache.e_battery_throughput_total_l == 183.2
assert register_cache.e_battery_throughput_total == 183.2
assert register_cache.v_battery_cell_01 == 3.117
assert register_cache.v_battery_cell_16 == 3.119
def test_to_from_json_quick():
"""Ensure we can serialize and unserialize a RegisterCache to and from JSON."""
registers = {HoldingRegister(1): 2, InputRegister(3): 4}
json = RegisterCache(registers=registers).to_json()
assert json == '{"HR:1": 2, "IR:3": 4}'
rc = RegisterCache.from_json(json)
assert rc._registers == registers
assert len(rc._register_lookup_table) > 100 # ensure we have all registers ready to look up
def test_to_from_json_actual_data():
"""Ensure we can serialize and unserialize a RegisterCache to and from JSON."""
rc = RegisterCache.from_json(JSON_INVERTER_DAYTIME_DISCHARGING_WITH_SOLAR_GENERATION)
assert len(rc._registers) == 422
assert len(rc._register_lookup_table) > 100 # ensure we have all registers ready to look up
| 65.754717
| 120
| 0.5599
| 2,569
| 13,940
| 2.950564
| 0.192682
| 0.128232
| 0.090237
| 0.029024
| 0.435224
| 0.381662
| 0.327441
| 0.288786
| 0.288786
| 0.264908
| 0
| 0.234074
| 0.176829
| 13,940
| 211
| 121
| 66.066351
| 0.426492
| 0.089527
| 0
| 0.10119
| 0
| 0.452381
| 0.639414
| 0.003403
| 0
| 0
| 0
| 0
| 0.22619
| 1
| 0.053571
| false
| 0
| 0.029762
| 0
| 0.113095
| 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
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
d21354f5b84eaada93dcf3d19448fc7f74db6eb6
| 102
|
py
|
Python
|
kattis/greetings2.py
|
kamal1316/competitive-programming
|
1443fb4bd1c92c2acff64ba2828abb21b067e6e0
|
[
"WTFPL"
] | 506
|
2018-08-22T10:30:38.000Z
|
2022-03-31T10:01:49.000Z
|
kattis/greetings2.py
|
diegordzr/competitive-programming
|
1443fb4bd1c92c2acff64ba2828abb21b067e6e0
|
[
"WTFPL"
] | 13
|
2019-08-07T18:31:18.000Z
|
2020-12-15T21:54:41.000Z
|
kattis/greetings2.py
|
diegordzr/competitive-programming
|
1443fb4bd1c92c2acff64ba2828abb21b067e6e0
|
[
"WTFPL"
] | 234
|
2018-08-06T17:11:41.000Z
|
2022-03-26T10:56:42.000Z
|
#!/usr/bin/env python3
# https://open.kattis.com/problems/greetings2
print(input().replace('e','ee'))
| 25.5
| 45
| 0.705882
| 15
| 102
| 4.8
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.020619
| 0.04902
| 102
| 3
| 46
| 34
| 0.721649
| 0.637255
| 0
| 0
| 0
| 0
| 0.085714
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
|
0
| 4
|
d2407543c69888cec62274788b1e57174d72f689
| 2,332
|
py
|
Python
|
src/scs_core/aws/client/api_auth.py
|
south-coast-science/scs_core
|
81ad4010abb37ca935f3a31ac805639ef53b1bcf
|
[
"MIT"
] | 3
|
2019-03-12T01:59:58.000Z
|
2020-09-12T07:27:42.000Z
|
src/scs_core/aws/client/api_auth.py
|
south-coast-science/scs_core
|
81ad4010abb37ca935f3a31ac805639ef53b1bcf
|
[
"MIT"
] | 1
|
2018-04-20T07:58:38.000Z
|
2021-03-27T08:52:45.000Z
|
src/scs_core/aws/client/api_auth.py
|
south-coast-science/scs_core
|
81ad4010abb37ca935f3a31ac805639ef53b1bcf
|
[
"MIT"
] | 4
|
2017-09-29T13:08:43.000Z
|
2019-10-09T09:13:58.000Z
|
"""
Created on 2 Apr 2018
@author: Bruno Beloff (bruno.beloff@southcoastscience.com)
example document:
{"endpoint": "xy1eszuu23.execute-api.us-west-2.amazonaws.com", "api-key": "de92c5ff-b47a-4cc4-a04c-62d684d74a1f"}
"""
from collections import OrderedDict
from scs_core.data.json import PersistentJSONable
# --------------------------------------------------------------------------------------------------------------------
class APIAuth(PersistentJSONable):
"""
classdocs
"""
__FILENAME = "aws_api_auth.json"
@classmethod
def persistence_location(cls):
return cls.aws_dir(), cls.__FILENAME
# ----------------------------------------------------------------------------------------------------------------
@classmethod
def construct_from_jdict(cls, jdict, skeleton=False):
if not jdict:
return None
endpoint = jdict.get('endpoint')
api_key = jdict.get('api-key')
return cls(endpoint, api_key)
# ----------------------------------------------------------------------------------------------------------------
def __init__(self, endpoint, api_key):
"""
Constructor
"""
super().__init__()
self.__endpoint = endpoint # String
self.__api_key = api_key # String
def __eq__(self, other):
try:
return self.endpoint == other.endpoint and self.api_key == other.api_key
except (TypeError, AttributeError):
return False
# ----------------------------------------------------------------------------------------------------------------
def as_json(self):
jdict = OrderedDict()
jdict['endpoint'] = self.endpoint
jdict['api-key'] = self.api_key
return jdict
# ----------------------------------------------------------------------------------------------------------------
@property
def endpoint(self):
return self.__endpoint
@property
def api_key(self):
return self.__api_key
# ----------------------------------------------------------------------------------------------------------------
def __str__(self, *args, **kwargs):
return "APIAuth:{endpoint:%s, api_key:%s}" % (self.endpoint, self.api_key)
| 26.202247
| 118
| 0.424957
| 182
| 2,332
| 5.181319
| 0.401099
| 0.09544
| 0.053022
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.014039
| 0.205832
| 2,332
| 88
| 119
| 26.5
| 0.49514
| 0.400086
| 0
| 0.111111
| 0
| 0
| 0.059435
| 0.015602
| 0
| 0
| 0
| 0
| 0
| 1
| 0.222222
| false
| 0
| 0.055556
| 0.111111
| 0.583333
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
d240afcfd081673552178ea2f5668641834f2010
| 99
|
py
|
Python
|
wordorderapp/apps.py
|
stackaccount1/Django-Work-Order-Site-for-Business
|
24f1d61c8f6aa10de7a78ae52a8eb727169a8fab
|
[
"MIT"
] | null | null | null |
wordorderapp/apps.py
|
stackaccount1/Django-Work-Order-Site-for-Business
|
24f1d61c8f6aa10de7a78ae52a8eb727169a8fab
|
[
"MIT"
] | null | null | null |
wordorderapp/apps.py
|
stackaccount1/Django-Work-Order-Site-for-Business
|
24f1d61c8f6aa10de7a78ae52a8eb727169a8fab
|
[
"MIT"
] | null | null | null |
from django.apps import AppConfig
class WordorderappConfig(AppConfig):
name = 'wordorderapp'
| 16.5
| 36
| 0.777778
| 10
| 99
| 7.7
| 0.9
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.151515
| 99
| 5
| 37
| 19.8
| 0.916667
| 0
| 0
| 0
| 0
| 0
| 0.121212
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
d24452673c64f956bbf3e61fd38b1b543fb32057
| 1,041
|
py
|
Python
|
tests/processinst/test_processinst.py
|
asyncee/pycamunda
|
f4834d224ff99fcf80874efeaedf68a8a2efa926
|
[
"MIT"
] | null | null | null |
tests/processinst/test_processinst.py
|
asyncee/pycamunda
|
f4834d224ff99fcf80874efeaedf68a8a2efa926
|
[
"MIT"
] | null | null | null |
tests/processinst/test_processinst.py
|
asyncee/pycamunda
|
f4834d224ff99fcf80874efeaedf68a8a2efa926
|
[
"MIT"
] | null | null | null |
# -*- coding: utf-8 -*-
import pytest
import pycamunda.processinst
def test_processinstance_load(my_process_instance_json):
process_instance = pycamunda.processinst.ProcessInstance.load(my_process_instance_json)
assert process_instance.id_ == my_process_instance_json['id']
assert process_instance.definition_id == my_process_instance_json['definitionId']
assert process_instance.business_key == my_process_instance_json['businessKey']
assert process_instance.case_instance_id == my_process_instance_json['caseInstanceId']
assert process_instance.suspended == my_process_instance_json['suspended']
assert process_instance.tenant_id == my_process_instance_json['tenantId']
assert process_instance.links == tuple()
def test_processinstance_load_raises_keyerror(my_process_instance_json):
for key in my_process_instance_json:
json_ = dict(my_process_instance_json)
del json_[key]
with pytest.raises(KeyError):
pycamunda.processinst.ProcessInstance.load(data=json_)
| 40.038462
| 91
| 0.788665
| 126
| 1,041
| 6.071429
| 0.293651
| 0.372549
| 0.244444
| 0.301961
| 0.245752
| 0.185621
| 0
| 0
| 0
| 0
| 0
| 0.001104
| 0.129683
| 1,041
| 25
| 92
| 41.64
| 0.843267
| 0.020173
| 0
| 0
| 0
| 0
| 0.05501
| 0
| 0
| 0
| 0
| 0
| 0.411765
| 1
| 0.117647
| false
| 0
| 0.117647
| 0
| 0.235294
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
d25539de77bf60d763cb3b5f2f436b03624f5467
| 161
|
py
|
Python
|
Python/pywarpx/Interpolation.py
|
mrowan137/amrex
|
cafcb6bd5902fc72a4d6fa51b99fe837f5eb5381
|
[
"BSD-3-Clause-LBNL"
] | 131
|
2018-09-29T08:11:40.000Z
|
2022-03-28T23:24:22.000Z
|
Python/pywarpx/Interpolation.py
|
mrowan137/amrex
|
cafcb6bd5902fc72a4d6fa51b99fe837f5eb5381
|
[
"BSD-3-Clause-LBNL"
] | 1,656
|
2018-10-02T01:49:24.000Z
|
2022-03-31T21:27:31.000Z
|
Python/pywarpx/Interpolation.py
|
mrowan137/amrex
|
cafcb6bd5902fc72a4d6fa51b99fe837f5eb5381
|
[
"BSD-3-Clause-LBNL"
] | 100
|
2018-10-01T20:41:14.000Z
|
2022-03-10T10:30:42.000Z
|
# Copyright 2016 David Grote
#
# This file is part of WarpX.
#
# License: BSD-3-Clause-LBNL
from .Bucket import Bucket
interpolation = Bucket('interpolation')
| 16.1
| 39
| 0.73913
| 22
| 161
| 5.409091
| 0.863636
| 0.319328
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.037037
| 0.161491
| 161
| 9
| 40
| 17.888889
| 0.844444
| 0.503106
| 0
| 0
| 0
| 0
| 0.175676
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
d25d09933a8d5702983f663b9e7e8473bc93a2ea
| 236
|
py
|
Python
|
vsl-extension/cpp/setup.py
|
georgezzzh/bpr
|
dd2f39d99f7f06ebb305b66363c89c3606a811a1
|
[
"MIT"
] | null | null | null |
vsl-extension/cpp/setup.py
|
georgezzzh/bpr
|
dd2f39d99f7f06ebb305b66363c89c3606a811a1
|
[
"MIT"
] | null | null | null |
vsl-extension/cpp/setup.py
|
georgezzzh/bpr
|
dd2f39d99f7f06ebb305b66363c89c3606a811a1
|
[
"MIT"
] | null | null | null |
from setuptools import setup, Extension
from torch.utils import cpp_extension
setup(name='vsl_cpp',
ext_modules=[cpp_extension.CppExtension('vsl_cpp', ['vsl_cpp.cpp'])],
cmdclass={'build_ext': cpp_extension.BuildExtension})
| 39.333333
| 75
| 0.762712
| 31
| 236
| 5.548387
| 0.516129
| 0.209302
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.110169
| 236
| 6
| 76
| 39.333333
| 0.819048
| 0
| 0
| 0
| 0
| 0
| 0.14346
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.4
| 0
| 0.4
| 0
| 0
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
d260cd6e82c45674b89ff743a3f4c3a084086de8
| 147
|
wsgi
|
Python
|
server/ahaminsight.wsgi
|
Rhcsky/InsightFace_Pytorch
|
b2ba0f57e7bf3876c48d6fe9e46e5815a546cbdf
|
[
"MIT"
] | null | null | null |
server/ahaminsight.wsgi
|
Rhcsky/InsightFace_Pytorch
|
b2ba0f57e7bf3876c48d6fe9e46e5815a546cbdf
|
[
"MIT"
] | null | null | null |
server/ahaminsight.wsgi
|
Rhcsky/InsightFace_Pytorch
|
b2ba0f57e7bf3876c48d6fe9e46e5815a546cbdf
|
[
"MIT"
] | null | null | null |
#!/usr/bin/python
import sys
sys.path.insert(0,"/home/user/Project/ocr/InsightFace_Pytorch/server")
from ahaminsight import app as application
| 29.4
| 71
| 0.782313
| 22
| 147
| 5.181818
| 0.909091
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.007519
| 0.095238
| 147
| 5
| 72
| 29.4
| 0.849624
| 0.108844
| 0
| 0
| 0
| 0
| 0.385827
| 0.385827
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.666667
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
d278ce6c0dee6a2ab79138f1c5f8174a7bf194b0
| 165
|
py
|
Python
|
jupytercontrib/__init__.py
|
Carreau/jupytercontrib
|
283353a51c8e0a6ac4ca187ed0046284f260861f
|
[
"MIT"
] | 3
|
2016-11-05T03:06:43.000Z
|
2019-12-03T13:36:06.000Z
|
jupytercontrib/__init__.py
|
DalavanCloud/jupytercontrib
|
283353a51c8e0a6ac4ca187ed0046284f260861f
|
[
"MIT"
] | 3
|
2016-04-01T09:52:25.000Z
|
2018-10-23T23:50:11.000Z
|
jupytercontrib/__init__.py
|
DalavanCloud/jupytercontrib
|
283353a51c8e0a6ac4ca187ed0046284f260861f
|
[
"MIT"
] | 2
|
2016-06-03T03:26:55.000Z
|
2019-01-31T02:37:26.000Z
|
"""
Some Jupyter contrib extensions
"""
__version__ = '0.0.7'
from .py2to3exporter import Python2to3Exporter
from .mdoutputexporter import MarkdownOutputExporter
| 16.5
| 52
| 0.8
| 16
| 165
| 8
| 0.8125
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.048276
| 0.121212
| 165
| 9
| 53
| 18.333333
| 0.834483
| 0.187879
| 0
| 0
| 0
| 0
| 0.039683
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.666667
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
968300da67183ddd93f19a217e9645113fcc07f8
| 1,739
|
py
|
Python
|
neural_testbed/real_data/__init__.py
|
SamuelGabriel/neural_testbed
|
cc2e3de49c29f29852c8cd5885ab54fb6e664e2e
|
[
"Apache-2.0"
] | null | null | null |
neural_testbed/real_data/__init__.py
|
SamuelGabriel/neural_testbed
|
cc2e3de49c29f29852c8cd5885ab54fb6e664e2e
|
[
"Apache-2.0"
] | null | null | null |
neural_testbed/real_data/__init__.py
|
SamuelGabriel/neural_testbed
|
cc2e3de49c29f29852c8cd5885ab54fb6e664e2e
|
[
"Apache-2.0"
] | null | null | null |
# python3
# pylint: disable=g-bad-file-header
# Copyright 2021 DeepMind Technologies Limited. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ============================================================================
"""Exposing the public methods of real data."""
from neural_testbed.real_data.data_sampler import RealDataSampler
from neural_testbed.real_data.datasets import CLASSIFICATION_DATASETS
from neural_testbed.real_data.datasets import DatasetInfo
from neural_testbed.real_data.datasets import DATASETS
from neural_testbed.real_data.datasets import DATASETS_SETTINGS
from neural_testbed.real_data.datasets import IMAGE_DATASETS
from neural_testbed.real_data.datasets import ORIGINAL_CLASSIFICATION_DATASETS
from neural_testbed.real_data.datasets import ORIGINAL_IMAGE_DATASETS
from neural_testbed.real_data.datasets import ORIGINAL_STRUCTURED_DATASETS
from neural_testbed.real_data.datasets import REGRESSION_DATASETS
from neural_testbed.real_data.datasets import STRUCTURED_DATASETS
from neural_testbed.real_data.load import problem_from_id
from neural_testbed.real_data.load_classification import load as load_classification
from neural_testbed.real_data.load_regression import load as load_regression
| 52.69697
| 84
| 0.806786
| 242
| 1,739
| 5.607438
| 0.392562
| 0.08843
| 0.175387
| 0.216654
| 0.483419
| 0.464996
| 0.419307
| 0.322771
| 0.18423
| 0.08843
| 0
| 0.005766
| 0.102358
| 1,739
| 32
| 85
| 54.34375
| 0.863549
| 0.431282
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
96b7048ca8a2968a50778a2b2e587ac554c3a6db
| 209
|
py
|
Python
|
chatbot_api/message/serializers.py
|
Paul-Jouhaud/ChatbotDemo
|
a0eb2b0ed5119438dde29399e2b197c1f66fb9d2
|
[
"MIT"
] | null | null | null |
chatbot_api/message/serializers.py
|
Paul-Jouhaud/ChatbotDemo
|
a0eb2b0ed5119438dde29399e2b197c1f66fb9d2
|
[
"MIT"
] | null | null | null |
chatbot_api/message/serializers.py
|
Paul-Jouhaud/ChatbotDemo
|
a0eb2b0ed5119438dde29399e2b197c1f66fb9d2
|
[
"MIT"
] | null | null | null |
from rest_framework import serializers
from message.models import Message
class MessageSerializer(serializers.ModelSerializer):
class Meta:
model = Message
fields = ('text', 'firstname')
| 26.125
| 53
| 0.732057
| 21
| 209
| 7.238095
| 0.714286
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.196172
| 209
| 7
| 54
| 29.857143
| 0.904762
| 0
| 0
| 0
| 0
| 0
| 0.062201
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
736ac83cd81e361740819cb02596c2cf25ba37e3
| 5,671
|
py
|
Python
|
datahub/search/omis/test/test_signals.py
|
Staberinde/data-hub-api
|
3d0467dbceaf62a47158eea412a3dba827073300
|
[
"MIT"
] | 6
|
2019-12-02T16:11:24.000Z
|
2022-03-18T10:02:02.000Z
|
datahub/search/omis/test/test_signals.py
|
Staberinde/data-hub-api
|
3d0467dbceaf62a47158eea412a3dba827073300
|
[
"MIT"
] | 1,696
|
2019-10-31T14:08:37.000Z
|
2022-03-29T12:35:57.000Z
|
datahub/search/omis/test/test_signals.py
|
Staberinde/data-hub-api
|
3d0467dbceaf62a47158eea412a3dba827073300
|
[
"MIT"
] | 9
|
2019-11-22T12:42:03.000Z
|
2021-09-03T14:25:05.000Z
|
import pytest
from datahub.omis.order.test.factories import (
OrderAssigneeFactory,
OrderFactory,
OrderSubscriberFactory,
OrderWithOpenQuoteFactory,
)
from datahub.search.omis import OrderSearchApp
pytestmark = pytest.mark.django_db
def test_creating_order_syncs_to_es(es_with_signals):
"""Test that when I create an order, it gets synced to ES."""
order = OrderFactory()
es_with_signals.indices.refresh()
assert es_with_signals.get(
index=OrderSearchApp.es_model.get_write_index(),
id=order.pk,
)
def test_updating_order_updates_es(es_with_signals):
"""Test that when I update an order, the updated version gets synced to ES."""
order = OrderFactory()
new_description = 'lorem'
order.description = new_description
order.save()
es_with_signals.indices.refresh()
result = es_with_signals.get(
index=OrderSearchApp.es_model.get_write_index(),
id=order.pk,
)
assert result['_source']['description'] == new_description
def test_accepting_quote_updates_es(es_with_signals):
"""
Test that when a quote is accepted and the invoice created, the payment_due_date field
in ES gets updated.
"""
order = OrderWithOpenQuoteFactory()
es_with_signals.indices.refresh()
result = es_with_signals.get(
index=OrderSearchApp.es_model.get_write_index(),
id=order.pk,
)
assert not result['_source']['payment_due_date']
order.accept_quote(by=None)
es_with_signals.indices.refresh()
result = es_with_signals.get(
index=OrderSearchApp.es_model.get_write_index(),
id=order.pk,
)
assert result['_source']['payment_due_date'] == order.invoice.payment_due_date.isoformat()
def test_adding_subscribers_syncs_order_to_es(es_with_signals):
"""
Test that when a subscriber is added to an order,
the linked order gets synced to ES.
"""
order = OrderFactory()
subscribers = OrderSubscriberFactory.create_batch(2, order=order)
es_with_signals.indices.refresh()
result = es_with_signals.get(
index=OrderSearchApp.es_model.get_write_index(),
id=order.pk,
)
indexed = {str(subscriber['id']) for subscriber in result['_source']['subscribers']}
expected = {str(subscriber.adviser.pk) for subscriber in subscribers}
assert indexed == expected
assert len(indexed) == 2
def test_removing_subscribers_syncs_order_to_es(es_with_signals):
"""
Test that when a subscriber is removed from an order,
the linked order gets synced to ES.
"""
order = OrderFactory()
subscribers = OrderSubscriberFactory.create_batch(2, order=order)
subscribers.pop().delete()
es_with_signals.indices.refresh()
result = es_with_signals.get(
index=OrderSearchApp.es_model.get_write_index(),
id=order.pk,
)
indexed = {str(subscriber['id']) for subscriber in result['_source']['subscribers']}
expected = {str(subscriber.adviser.pk) for subscriber in subscribers}
assert indexed == expected
assert len(indexed) == 1
def test_adding_assignees_syncs_order_to_es(es_with_signals):
"""
Test that when an assignee is added to an order,
the linked order gets synced to ES.
"""
order = OrderFactory(assignees=[])
assignees = OrderAssigneeFactory.create_batch(2, order=order)
es_with_signals.indices.refresh()
result = es_with_signals.get(
index=OrderSearchApp.es_model.get_write_index(),
id=order.pk,
)
indexed = {str(assignee['id']) for assignee in result['_source']['assignees']}
expected = {str(assignee.adviser.pk) for assignee in assignees}
assert indexed == expected
assert len(indexed) == 2
def test_removing_assignees_syncs_order_to_es(es_with_signals):
"""
Test that when an assignee is removed from an order,
the linked order gets synced to ES.
"""
order = OrderFactory(assignees=[])
assignees = OrderAssigneeFactory.create_batch(2, order=order)
assignees.pop().delete()
es_with_signals.indices.refresh()
result = es_with_signals.get(
index=OrderSearchApp.es_model.get_write_index(),
id=order.pk,
)
indexed = {str(assignee['id']) for assignee in result['_source']['assignees']}
expected = {str(assignee.adviser.pk) for assignee in assignees}
assert indexed == expected
assert len(indexed) == 1
def test_updating_company_name_updates_orders(es_with_signals):
"""Test that when a company name is updated, the company's orders are synced to ES."""
order = OrderFactory()
new_company_name = 'exogenous'
order.company.name = new_company_name
order.company.save()
es_with_signals.indices.refresh()
result = es_with_signals.get(
index=OrderSearchApp.es_model.get_write_index(),
id=order.pk,
)
assert result['_source']['company']['name'] == new_company_name
def test_updating_contact_name_updates_orders(es_with_signals):
"""Test that when a contact's name is updated, the contacts's orders are synced to ES."""
order = OrderFactory()
new_first_name = 'Jamie'
new_last_name = 'Bloggs'
contact = order.contact
contact.first_name = new_first_name
contact.last_name = new_last_name
contact.save()
es_with_signals.indices.refresh()
result = es_with_signals.get(
index=OrderSearchApp.es_model.get_write_index(),
id=order.pk,
)
assert result['_source']['contact'] == {
'id': str(contact.pk),
'first_name': new_first_name,
'last_name': new_last_name,
'name': f'{new_first_name} {new_last_name}',
}
| 30.989071
| 94
| 0.699171
| 732
| 5,671
| 5.161202
| 0.143443
| 0.046056
| 0.099788
| 0.052938
| 0.777925
| 0.736368
| 0.705929
| 0.705929
| 0.67946
| 0.65405
| 0
| 0.001754
| 0.195733
| 5,671
| 182
| 95
| 31.159341
| 0.826573
| 0.132252
| 0
| 0.54918
| 0
| 0
| 0.052862
| 0
| 0
| 0
| 0
| 0
| 0.114754
| 1
| 0.07377
| false
| 0
| 0.02459
| 0
| 0.098361
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
737fae856f9c105214e89ada33ada4dde38c6e03
| 196
|
py
|
Python
|
py/cidoc_crm_types/properties/p137i_is_exemplified_by.py
|
minorg/cidoc-crm-types
|
9018bdbf0658e4d28a87bc94543e467be45d8aa5
|
[
"Apache-2.0"
] | null | null | null |
py/cidoc_crm_types/properties/p137i_is_exemplified_by.py
|
minorg/cidoc-crm-types
|
9018bdbf0658e4d28a87bc94543e467be45d8aa5
|
[
"Apache-2.0"
] | null | null | null |
py/cidoc_crm_types/properties/p137i_is_exemplified_by.py
|
minorg/cidoc-crm-types
|
9018bdbf0658e4d28a87bc94543e467be45d8aa5
|
[
"Apache-2.0"
] | null | null | null |
from .p2i_is_type_of import P2iIsTypeOf
from dataclasses import dataclass
@dataclass
class P137iIsExemplifiedBy(P2iIsTypeOf):
URI = "http://erlangen-crm.org/current/P137i_is_exemplified_by"
| 24.5
| 67
| 0.821429
| 25
| 196
| 6.2
| 0.8
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.051136
| 0.102041
| 196
| 7
| 68
| 28
| 0.829545
| 0
| 0
| 0
| 0
| 0
| 0.280612
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.4
| 0
| 0.8
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
73be50a5ea80ee774c05ea2c223f81961aac64ee
| 58
|
py
|
Python
|
test/fixtures/python/analysis/main2.py
|
matsubara0507/semantic
|
67899f701abc0f1f0cb4374d8d3c249afc33a272
|
[
"MIT"
] | 8,844
|
2019-05-31T15:47:12.000Z
|
2022-03-31T18:33:51.000Z
|
test/fixtures/python/analysis/main2.py
|
matsubara0507/semantic
|
67899f701abc0f1f0cb4374d8d3c249afc33a272
|
[
"MIT"
] | 401
|
2019-05-31T18:30:26.000Z
|
2022-03-31T16:32:29.000Z
|
test/fixtures/python/analysis/main2.py
|
matsubara0507/semantic
|
67899f701abc0f1f0cb4374d8d3c249afc33a272
|
[
"MIT"
] | 504
|
2019-05-31T17:55:03.000Z
|
2022-03-30T04:15:04.000Z
|
from a import *
from b.c import baz as bar
foo(1)
bar(1)
| 9.666667
| 26
| 0.672414
| 14
| 58
| 2.785714
| 0.714286
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.044444
| 0.224138
| 58
| 5
| 27
| 11.6
| 0.822222
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
73cd823b0e0ab0b4b30604f30efa10afdf6c50d8
| 1,418
|
py
|
Python
|
qf_lib/common/utils/dateutils/timer.py
|
webclinic017/qf-lib
|
96463876719bba8a76c8269cef76addf3a2d836d
|
[
"Apache-2.0"
] | 198
|
2019-08-16T15:09:23.000Z
|
2022-03-30T12:44:00.000Z
|
qf_lib/common/utils/dateutils/timer.py
|
webclinic017/qf-lib
|
96463876719bba8a76c8269cef76addf3a2d836d
|
[
"Apache-2.0"
] | 13
|
2021-01-07T10:15:19.000Z
|
2022-03-29T13:01:47.000Z
|
qf_lib/common/utils/dateutils/timer.py
|
webclinic017/qf-lib
|
96463876719bba8a76c8269cef76addf3a2d836d
|
[
"Apache-2.0"
] | 29
|
2019-08-16T15:21:28.000Z
|
2022-02-23T09:53:49.000Z
|
# Copyright 2016-present CERN – European Organization for Nuclear Research
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import abc
from datetime import datetime
class Timer(object):
"""
Timer object which is a component in IOC. Used for getting information about time.
"""
@abc.abstractmethod
def now(self) -> datetime:
pass
class RealTimer(Timer):
"""
Timer which gives the real current time.
"""
def now(self) -> datetime:
return datetime.now()
class SettableTimer(Timer):
"""
Timer object which doesn't give the real current time, but is "faking" it (current time can be set).
"""
def __init__(self, initial_time: datetime = None):
self.time = initial_time
def now(self) -> datetime:
return self.time
def set_current_time(self, time: datetime):
self.time = time
| 27.803922
| 104
| 0.676305
| 193
| 1,418
| 4.932642
| 0.549223
| 0.063025
| 0.031513
| 0.056723
| 0.058824
| 0.058824
| 0
| 0
| 0
| 0
| 0
| 0.00747
| 0.244711
| 1,418
| 50
| 105
| 28.36
| 0.880486
| 0.606488
| 0
| 0.1875
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.3125
| false
| 0.0625
| 0.125
| 0.125
| 0.75
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 1
| 0
|
0
| 4
|
fb68c1b10a1c82fd67ad453623c3abcab60199dd
| 284
|
py
|
Python
|
npbench/benchmarks/compute/compute_numba_o.py
|
frahlg/npbench
|
1bc4d9e2e22f3ca67fa2bc7f40e2e751a9c8dd26
|
[
"BSD-3-Clause"
] | 27
|
2021-05-10T11:49:13.000Z
|
2022-03-22T18:07:19.000Z
|
npbench/benchmarks/compute/compute_numba_o.py
|
frahlg/npbench
|
1bc4d9e2e22f3ca67fa2bc7f40e2e751a9c8dd26
|
[
"BSD-3-Clause"
] | 3
|
2021-12-01T13:03:17.000Z
|
2022-03-17T10:53:00.000Z
|
npbench/benchmarks/compute/compute_numba_o.py
|
frahlg/npbench
|
1bc4d9e2e22f3ca67fa2bc7f40e2e751a9c8dd26
|
[
"BSD-3-Clause"
] | 7
|
2021-06-24T03:40:25.000Z
|
2022-01-26T09:04:33.000Z
|
# https://cython.readthedocs.io/en/latest/src/userguide/numpy_tutorial.html
import numpy as np
import numba as nb
@nb.jit(nopython=False, forceobj=True, parallel=False, fastmath=True)
def compute(array_1, array_2, a, b, c):
return np.clip(array_1, 2, 10) * a + array_2 * b + c
| 28.4
| 75
| 0.725352
| 50
| 284
| 4.02
| 0.68
| 0.059701
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.028571
| 0.137324
| 284
| 9
| 76
| 31.555556
| 0.791837
| 0.257042
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.2
| false
| 0
| 0.4
| 0.2
| 0.8
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
|
0
| 4
|
fb71fa00ece727dddcdfb1ebfa9d1e41b2b41815
| 282
|
py
|
Python
|
PCRNet_Code/losses/__init__.py
|
tzodge/PCR-CMU
|
6ddfc78bf0ee2638e2c512e905edb2d0eb0d89ee
|
[
"MIT"
] | 15
|
2020-11-02T02:17:46.000Z
|
2021-05-12T06:55:28.000Z
|
PCRNet_Code/losses/__init__.py
|
tzodge/PCR-CMU
|
6ddfc78bf0ee2638e2c512e905edb2d0eb0d89ee
|
[
"MIT"
] | 1
|
2021-06-09T10:20:19.000Z
|
2021-06-09T10:20:19.000Z
|
PCRNet_Code/losses/__init__.py
|
tzodge/PCR-CMU
|
6ddfc78bf0ee2638e2c512e905edb2d0eb0d89ee
|
[
"MIT"
] | 3
|
2020-11-13T06:27:00.000Z
|
2021-04-26T04:54:51.000Z
|
try:
from .emd import EMDLoss
except:
print("Sorry EMD loss is not compatible with your system!")
try:
from .chamfer_distance import ChamferDistanceLoss
except:
print("Sorry ChamferDistance loss is not compatible with your system!")
from .frobenius_norm import FrobeniusNormLoss
| 31.333333
| 72
| 0.808511
| 38
| 282
| 5.947368
| 0.578947
| 0.061947
| 0.141593
| 0.168142
| 0.292035
| 0.292035
| 0.292035
| 0
| 0
| 0
| 0
| 0
| 0.131206
| 282
| 9
| 73
| 31.333333
| 0.922449
| 0
| 0
| 0.444444
| 0
| 0
| 0.39576
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.333333
| 0
| 0.333333
| 0.222222
| 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
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
fba1be391a3bb5ac500603f07c6eef77d1491490
| 160
|
py
|
Python
|
docker/flask_cfg.py
|
churnik/async-feedback-bot
|
49e1f2d24d337cadaf0b3c5cf84c90e1e9f2af41
|
[
"MIT"
] | null | null | null |
docker/flask_cfg.py
|
churnik/async-feedback-bot
|
49e1f2d24d337cadaf0b3c5cf84c90e1e9f2af41
|
[
"MIT"
] | null | null | null |
docker/flask_cfg.py
|
churnik/async-feedback-bot
|
49e1f2d24d337cadaf0b3c5cf84c90e1e9f2af41
|
[
"MIT"
] | null | null | null |
from environs import Env
env = Env()
env.read_env()
YOUR_ENV_VARIABLE = env("YOUR_ENV_VARIABLE", "DEFAULT_VALUE")
FLASK_ENV = env("FLASK_ENV", "production")
| 17.777778
| 61
| 0.74375
| 24
| 160
| 4.625
| 0.458333
| 0.216216
| 0.162162
| 0.324324
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.11875
| 160
| 8
| 62
| 20
| 0.787234
| 0
| 0
| 0
| 0
| 0
| 0.30625
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.2
| 0
| 0.2
| 0
| 1
| 0
| 0
| null | 1
| 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
| 4
|
83ee1e02d2c32292422e440a6b58ef64163a232b
| 52
|
py
|
Python
|
challenge_1/python/dlutsch/reverse_string.py
|
rchicoli/2017-challenges
|
44f0b672e5dea34de1dde131b6df837d462f8e29
|
[
"Apache-2.0"
] | 271
|
2017-01-01T22:58:36.000Z
|
2021-11-28T23:05:29.000Z
|
challenge_1/python/dlutsch/reverse_string.py
|
AakashOfficial/2017Challenges
|
a8f556f1d5b43c099a0394384c8bc2d826f9d287
|
[
"Apache-2.0"
] | 283
|
2017-01-01T23:26:05.000Z
|
2018-03-23T00:48:55.000Z
|
challenge_1/python/dlutsch/reverse_string.py
|
AakashOfficial/2017Challenges
|
a8f556f1d5b43c099a0394384c8bc2d826f9d287
|
[
"Apache-2.0"
] | 311
|
2017-01-01T22:59:23.000Z
|
2021-09-23T00:29:12.000Z
|
print(input("Enter string to be reversed: ")[::-1])
| 26
| 51
| 0.653846
| 8
| 52
| 4.25
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.021739
| 0.115385
| 52
| 1
| 52
| 52
| 0.717391
| 0
| 0
| 0
| 0
| 0
| 0.557692
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
|
0
| 4
|
f7a33c74273bf5553ab05d0a0e290ee119641d64
| 318
|
py
|
Python
|
thefuck/rules/java.py
|
Archstacker/thefuck
|
ebe53f0d181c28ec2f7a86f46d7d51a7d48bbd9e
|
[
"MIT"
] | null | null | null |
thefuck/rules/java.py
|
Archstacker/thefuck
|
ebe53f0d181c28ec2f7a86f46d7d51a7d48bbd9e
|
[
"MIT"
] | null | null | null |
thefuck/rules/java.py
|
Archstacker/thefuck
|
ebe53f0d181c28ec2f7a86f46d7d51a7d48bbd9e
|
[
"MIT"
] | 1
|
2021-06-21T09:01:08.000Z
|
2021-06-21T09:01:08.000Z
|
"""Fixes common java command mistake
Example:
> java foo.java
Error: Could not find or load main class foo.java
"""
from thefuck.utils import for_app
@for_app('java')
def match(command, settings):
return command.script.endswith('.java')
def get_new_command(command, settings):
return command.script[:-5]
| 17.666667
| 49
| 0.732704
| 47
| 318
| 4.87234
| 0.638298
| 0.061135
| 0.183406
| 0.244541
| 0.296943
| 0
| 0
| 0
| 0
| 0
| 0
| 0.003704
| 0.150943
| 318
| 17
| 50
| 18.705882
| 0.844444
| 0.342767
| 0
| 0
| 0
| 0
| 0.044776
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0.166667
| 0.333333
| 0.833333
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
|
0
| 4
|
f7b61eabc09d54126a739442e4399510e73c44d8
| 24
|
py
|
Python
|
[ATI] Misfenterest/Frontend/venv/lib/python2.6/os.py
|
Conflei/ATI
|
b6aa9d449242525c8cf63039d304e69da2794f71
|
[
"MIT"
] | 1
|
2016-07-06T13:00:53.000Z
|
2016-07-06T13:00:53.000Z
|
.virtualenv/lib/python2.6/os.py
|
ngokevin/cyder
|
8bc0e4aea9ec4b7ac9260b083839bbb1174441d3
|
[
"BSD-3-Clause"
] | null | null | null |
.virtualenv/lib/python2.6/os.py
|
ngokevin/cyder
|
8bc0e4aea9ec4b7ac9260b083839bbb1174441d3
|
[
"BSD-3-Clause"
] | null | null | null |
/usr/lib/python2.6/os.py
| 24
| 24
| 0.75
| 6
| 24
| 3
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.083333
| 0
| 24
| 1
| 24
| 24
| 0.666667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0
| null | null | 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
f7e4c59e95a96b0b10f5c17390027a512b868079
| 235
|
py
|
Python
|
simpleRaft/messages/append_entries.py
|
adsharma/simpleRaft
|
9952be0273cb4e983b88d098fd538855447c3509
|
[
"MIT"
] | 1
|
2021-06-18T08:24:19.000Z
|
2021-06-18T08:24:19.000Z
|
simpleRaft/messages/append_entries.py
|
adsharma/simpleRaft
|
9952be0273cb4e983b88d098fd538855447c3509
|
[
"MIT"
] | null | null | null |
simpleRaft/messages/append_entries.py
|
adsharma/simpleRaft
|
9952be0273cb4e983b88d098fd538855447c3509
|
[
"MIT"
] | 1
|
2018-02-26T18:08:57.000Z
|
2018-02-26T18:08:57.000Z
|
from dataclasses import dataclass
from serde import deserialize, serialize
from .base import BaseMessage
@deserialize
@serialize
@dataclass
class AppendEntriesMessage(BaseMessage):
_type = BaseMessage.MessageType.AppendEntries
| 18.076923
| 49
| 0.829787
| 23
| 235
| 8.434783
| 0.608696
| 0.206186
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.123404
| 235
| 12
| 50
| 19.583333
| 0.941748
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.375
| 0
| 0.625
| 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
| 1
| 0
| 1
| 0
|
0
| 4
|
f7ef4db0e2f5db2c0182ff6cd52d5fe42b4a0bbe
| 25
|
py
|
Python
|
ci/build/prop/LATEST_PYTHON_VERSION.py
|
LolexInc/Lolex-Tools
|
cfe43e450c0b2d3d2bc936508711a13630493bf5
|
[
"Unlicense"
] | 1
|
2018-06-05T14:29:52.000Z
|
2018-06-05T14:29:52.000Z
|
ci/build/prop/LATEST_PYTHON_VERSION.py
|
LolexInc/Lolex-Tools
|
cfe43e450c0b2d3d2bc936508711a13630493bf5
|
[
"Unlicense"
] | 2
|
2018-06-11T14:51:52.000Z
|
2018-08-11T11:46:43.000Z
|
ci/build/prop/LATEST_PYTHON_VERSION.py
|
LolexInc/Lolex-Tools
|
cfe43e450c0b2d3d2bc936508711a13630493bf5
|
[
"Unlicense"
] | 1
|
2020-05-01T13:55:05.000Z
|
2020-05-01T13:55:05.000Z
|
#! python3
version = 3740
| 12.5
| 14
| 0.72
| 3
| 25
| 6
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.238095
| 0.16
| 25
| 2
| 14
| 12.5
| 0.619048
| 0.36
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
79113717e29145b494f99c49f94dcd195dc264eb
| 83
|
py
|
Python
|
backend/fec/forms.py
|
Tag-Strategies/Tag_Strategies
|
0d747c7d353c23082722b7ddefcd9ed912ac48f1
|
[
"MIT"
] | null | null | null |
backend/fec/forms.py
|
Tag-Strategies/Tag_Strategies
|
0d747c7d353c23082722b7ddefcd9ed912ac48f1
|
[
"MIT"
] | null | null | null |
backend/fec/forms.py
|
Tag-Strategies/Tag_Strategies
|
0d747c7d353c23082722b7ddefcd9ed912ac48f1
|
[
"MIT"
] | null | null | null |
from django import forms
class SubmitEmbed(forms.Form):
url = forms.URLField()
| 20.75
| 30
| 0.746988
| 11
| 83
| 5.636364
| 0.818182
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.156627
| 83
| 4
| 31
| 20.75
| 0.885714
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
7930a2683162fb935e63114e2421b5904ced543c
| 747
|
py
|
Python
|
atlas/settings/__init__.py
|
kiae-grid/panda-bigmon-atlas
|
babb883430de489e68c774bafe6c5f44f99d9a2d
|
[
"Apache-2.0"
] | null | null | null |
atlas/settings/__init__.py
|
kiae-grid/panda-bigmon-atlas
|
babb883430de489e68c774bafe6c5f44f99d9a2d
|
[
"Apache-2.0"
] | null | null | null |
atlas/settings/__init__.py
|
kiae-grid/panda-bigmon-atlas
|
babb883430de489e68c774bafe6c5f44f99d9a2d
|
[
"Apache-2.0"
] | null | null | null |
"""
Settings package to replace standard django project settings.py.
It separates
A) base.py: general project configuration, should not change this one
B) config.py: machine-specific environment config with sensible defaults
C) local.py: settings to override machine-specific environment config
"""
# Load base configuration for the whole application
from core.common.settings.base import *
from atlas.settings.base import *
# Load dev env config
from core.common.settings.config import *
from atlas.settings.config import *
# Load any settings for local development
try:
from core.common.settings.local import *
except ImportError:
pass
try:
from atlas.settings.local import *
except ImportError:
pass
| 25.758621
| 76
| 0.756359
| 100
| 747
| 5.65
| 0.48
| 0.042478
| 0.074336
| 0.116814
| 0.141593
| 0.141593
| 0
| 0
| 0
| 0
| 0
| 0
| 0.179384
| 747
| 28
| 77
| 26.678571
| 0.921697
| 0.539491
| 0
| 0.5
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.166667
| 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
| 1
| 1
| 1
| 0
| 1
| 0
|
0
| 4
|
f746115ff1558ffec2e205d5842a764ab530704b
| 160
|
py
|
Python
|
program_examples/utilities_main.py
|
Maelstrom6/mandelpy
|
f5b541258fcb1518d7c46a24553bf1749ae976f3
|
[
"Apache-2.0"
] | null | null | null |
program_examples/utilities_main.py
|
Maelstrom6/mandelpy
|
f5b541258fcb1518d7c46a24553bf1749ae976f3
|
[
"Apache-2.0"
] | null | null | null |
program_examples/utilities_main.py
|
Maelstrom6/mandelpy
|
f5b541258fcb1518d7c46a24553bf1749ae976f3
|
[
"Apache-2.0"
] | null | null | null |
from user_utilities import make_gif
# you must create a folder `increasing_powers` in images
make_gif(r"../images/increasing_powers",
"test.mp4", 30)
| 26.666667
| 56
| 0.7375
| 24
| 160
| 4.708333
| 0.791667
| 0.123894
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.022388
| 0.1625
| 160
| 5
| 57
| 32
| 0.820896
| 0.3375
| 0
| 0
| 0
| 0
| 0.336538
| 0.259615
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.333333
| 0
| 0.333333
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
f74713d046f0f74301aae8b800d900e161551d5f
| 2,936
|
py
|
Python
|
python/orp/orp/content_enrichment/test/test_deontic_language.py
|
UKGovernmentBEIS/open-regulation-platform-alpha
|
c1170fc7d9563cbdeda094df87c606ad622bfcf2
|
[
"MIT"
] | null | null | null |
python/orp/orp/content_enrichment/test/test_deontic_language.py
|
UKGovernmentBEIS/open-regulation-platform-alpha
|
c1170fc7d9563cbdeda094df87c606ad622bfcf2
|
[
"MIT"
] | null | null | null |
python/orp/orp/content_enrichment/test/test_deontic_language.py
|
UKGovernmentBEIS/open-regulation-platform-alpha
|
c1170fc7d9563cbdeda094df87c606ad622bfcf2
|
[
"MIT"
] | null | null | null |
#
# Copyright (C) Analytics Engines 2021
# Lauren Stephens (l.stephens@analyticsengines.com)
#
from re import X
import sys
import pytest
import os
sys.path.append('python/orp')
from orp.content_enrichment.deontic_language import *
@pytest.fixture
def xml_doc():
with open('python/orp/orp/content_enrichment/test/data/test_akomaNtoso.xml','r') as f:
xml_doc = f.read()
return xml_doc
def test_extract_obligations_from_string(xml_doc):
sections = extract_obligations_from_string(xml_doc)
#print('hello')
sections_array = [
(
'You must do x, y and z:',
{'type': 'xml',
'sections': [{
'extent_start': '{http://docs.oasis-open.org/legaldocml/ns/akn/3.0}act/{http://docs.oasis-open.org/legaldocml/ns/akn/3.0}body/{http://docs.oasis-open.org/legaldocml/ns/akn/3.0}section/{http://docs.oasis-open.org/legaldocml/ns/akn/3.0}subsection[1]',
'extent_end': '{http://docs.oasis-open.org/legaldocml/ns/akn/3.0}act/{http://docs.oasis-open.org/legaldocml/ns/akn/3.0}body/{http://docs.oasis-open.org/legaldocml/ns/akn/3.0}section/{http://docs.oasis-open.org/legaldocml/ns/akn/3.0}subsection[1]',
'extent_char_start': None,
'extent_char_end': None}]}
),
(
'A protection order shall- mean x stop you from doing y',
{'type': 'xml',
'sections': [{
'extent_start': '{http://docs.oasis-open.org/legaldocml/ns/akn/3.0}act/{http://docs.oasis-open.org/legaldocml/ns/akn/3.0}body/{http://docs.oasis-open.org/legaldocml/ns/akn/3.0}section/{http://docs.oasis-open.org/legaldocml/ns/akn/3.0}subsection[2]',
'extent_end': '{http://docs.oasis-open.org/legaldocml/ns/akn/3.0}act/{http://docs.oasis-open.org/legaldocml/ns/akn/3.0}body/{http://docs.oasis-open.org/legaldocml/ns/akn/3.0}section/{http://docs.oasis-open.org/legaldocml/ns/akn/3.0}subsection[2]',
'extent_char_start': None,
'extent_char_end': None}]}
),
(
'The Secretary of State shall not make a protection order unless— you must have x or y you have one of the following- abc def ghi',
{'type': 'xml',
'sections': [{
'extent_start': '{http://docs.oasis-open.org/legaldocml/ns/akn/3.0}act/{http://docs.oasis-open.org/legaldocml/ns/akn/3.0}body/{http://docs.oasis-open.org/legaldocml/ns/akn/3.0}section/{http://docs.oasis-open.org/legaldocml/ns/akn/3.0}subsection[3]',
'extent_end': '{http://docs.oasis-open.org/legaldocml/ns/akn/3.0}act/{http://docs.oasis-open.org/legaldocml/ns/akn/3.0}body/{http://docs.oasis-open.org/legaldocml/ns/akn/3.0}section/{http://docs.oasis-open.org/legaldocml/ns/akn/3.0}subsection[3]',
'extent_char_start': None,
'extent_char_end': None}]}
)
]
assert sections == sections_array
| 45.875
| 265
| 0.637262
| 443
| 2,936
| 4.14447
| 0.214447
| 0.104575
| 0.169935
| 0.222222
| 0.71841
| 0.71841
| 0.681373
| 0.681373
| 0.632353
| 0.632353
| 0
| 0.024187
| 0.183243
| 2,936
| 63
| 266
| 46.603175
| 0.741034
| 0.03406
| 0
| 0.325581
| 0
| 0.162791
| 0.660999
| 0.022317
| 0
| 0
| 0
| 0
| 0.023256
| 1
| 0.046512
| false
| 0
| 0.116279
| 0
| 0.186047
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
f74da1bafcc1a43d9c99e681731c4296fafbefbb
| 189
|
py
|
Python
|
openwisp_ipam/management/commands/export_subnet.py
|
nepython/openwisp-ipam
|
43a6fd6c710ef5be3b324412bb9a479572f0d5d4
|
[
"BSD-3-Clause"
] | 1
|
2021-07-20T22:27:21.000Z
|
2021-07-20T22:27:21.000Z
|
openwisp_ipam/management/commands/export_subnet.py
|
nepython/openwisp-ipam
|
43a6fd6c710ef5be3b324412bb9a479572f0d5d4
|
[
"BSD-3-Clause"
] | null | null | null |
openwisp_ipam/management/commands/export_subnet.py
|
nepython/openwisp-ipam
|
43a6fd6c710ef5be3b324412bb9a479572f0d5d4
|
[
"BSD-3-Clause"
] | null | null | null |
import swapper
from django_ipam.management.commands import BaseExportSubnetCommand
class Command(BaseExportSubnetCommand):
subnet_model = swapper.load_model('django_ipam', 'Subnet')
| 23.625
| 67
| 0.825397
| 20
| 189
| 7.6
| 0.65
| 0.131579
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.100529
| 189
| 7
| 68
| 27
| 0.894118
| 0
| 0
| 0
| 0
| 0
| 0.089947
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.5
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
f77ef5377a50082d3231c8817799c8685ff8cb8b
| 17
|
py
|
Python
|
catboost/python-package/catboost/version.py
|
zahidaramai/catboost
|
7934ab14cceb9a9e0becbf173536077a2882152d
|
[
"Apache-2.0"
] | null | null | null |
catboost/python-package/catboost/version.py
|
zahidaramai/catboost
|
7934ab14cceb9a9e0becbf173536077a2882152d
|
[
"Apache-2.0"
] | null | null | null |
catboost/python-package/catboost/version.py
|
zahidaramai/catboost
|
7934ab14cceb9a9e0becbf173536077a2882152d
|
[
"Apache-2.0"
] | null | null | null |
VERSION = '0.20'
| 8.5
| 16
| 0.588235
| 3
| 17
| 3.333333
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.214286
| 0.176471
| 17
| 1
| 17
| 17
| 0.5
| 0
| 0
| 0
| 0
| 0
| 0.235294
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
e3b445701b06224730a9139cc177a69bc91fc861
| 244
|
py
|
Python
|
exercicios/desafio14.py
|
grimario-andre/Python
|
c1e3a7cb60a9c4fce9e650b449bf0d555c0fb59a
|
[
"MIT"
] | null | null | null |
exercicios/desafio14.py
|
grimario-andre/Python
|
c1e3a7cb60a9c4fce9e650b449bf0d555c0fb59a
|
[
"MIT"
] | null | null | null |
exercicios/desafio14.py
|
grimario-andre/Python
|
c1e3a7cb60a9c4fce9e650b449bf0d555c0fb59a
|
[
"MIT"
] | null | null | null |
print('============== Conversor de Temperaturas ===============')
tc = float(input('Informe a temperatura em C° '))
tf = (((9 * tc) / 5) + 32)
print('\n')
print('A temperatura em graus {:.1f}C° convertida em graus será {:.1f}F° '.format(tc,tf))
| 48.8
| 89
| 0.561475
| 38
| 244
| 3.684211
| 0.631579
| 0.171429
| 0.2
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.028436
| 0.135246
| 244
| 5
| 89
| 48.8
| 0.620853
| 0
| 0
| 0
| 0
| 0
| 0.620408
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.6
| 0
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 4
|
e3b80f60a4e1ae68b2be83950261a44a85960900
| 288
|
py
|
Python
|
torchdistill/models/custom/__init__.py
|
AhmedHussKhalifa/torchdistill
|
071089765f95aa09da9573039ac2bd54f47cea1e
|
[
"MIT"
] | 576
|
2020-11-26T03:20:50.000Z
|
2022-03-31T16:42:49.000Z
|
torchdistill/models/custom/__init__.py
|
AhmedHussKhalifa/torchdistill
|
071089765f95aa09da9573039ac2bd54f47cea1e
|
[
"MIT"
] | 24
|
2020-12-02T12:16:44.000Z
|
2022-02-17T16:14:49.000Z
|
torchdistill/models/custom/__init__.py
|
AhmedHussKhalifa/torchdistill
|
071089765f95aa09da9573039ac2bd54f47cea1e
|
[
"MIT"
] | 60
|
2020-11-26T03:27:04.000Z
|
2022-03-30T09:49:00.000Z
|
from torchdistill.models.custom import bottleneck
from torchdistill.models.registry import MODEL_CLASS_DICT, MODEL_FUNC_DICT
CUSTOM_MODEL_CLASS_DICT = dict()
CUSTOM_MODEL_FUNC_DICT = dict()
CUSTOM_MODEL_CLASS_DICT.update(MODEL_CLASS_DICT)
CUSTOM_MODEL_FUNC_DICT.update(MODEL_FUNC_DICT)
| 32
| 74
| 0.875
| 43
| 288
| 5.395349
| 0.27907
| 0.172414
| 0.241379
| 0.172414
| 0.405172
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.065972
| 288
| 8
| 75
| 36
| 0.862454
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 0.333333
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
e3ce634ed01c2894a5c02dc4823066c305ad021b
| 439
|
py
|
Python
|
marmython/serialize/interface.py
|
hyyking/marmython
|
4fdd9e8f0a1acb09ad636e596e1319becf05c2a2
|
[
"Unlicense"
] | null | null | null |
marmython/serialize/interface.py
|
hyyking/marmython
|
4fdd9e8f0a1acb09ad636e596e1319becf05c2a2
|
[
"Unlicense"
] | null | null | null |
marmython/serialize/interface.py
|
hyyking/marmython
|
4fdd9e8f0a1acb09ad636e596e1319becf05c2a2
|
[
"Unlicense"
] | null | null | null |
import abc
from ..recipe import Recipe
class Serializer(abc.ABC):
@abc.abstractstaticmethod
def dump(self, path: str, recipe: Recipe):
pass
@abc.abstractstaticmethod
def dumps(self, recipe: Recipe) -> str:
pass
class Deserializer(abc.ABC):
@abc.abstractstaticmethod
def load(self, path: str) -> Recipe:
pass
@abc.abstractstaticmethod
def loads(self, inp: str):
pass
| 19.954545
| 46
| 0.642369
| 50
| 439
| 5.64
| 0.36
| 0.085106
| 0.368794
| 0.205674
| 0.48227
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.257403
| 439
| 21
| 47
| 20.904762
| 0.865031
| 0
| 0
| 0.5
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0.25
| 0.125
| 0
| 0.5
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 4
|
e3da6538a2a2b89ecf95d2a0e33971f7e8186e8c
| 68
|
py
|
Python
|
__main__.py
|
tk421storm/shotgunEvents
|
5c602edce929480453e53009f98ceff68e9c0b28
|
[
"MIT"
] | null | null | null |
__main__.py
|
tk421storm/shotgunEvents
|
5c602edce929480453e53009f98ceff68e9c0b28
|
[
"MIT"
] | null | null | null |
__main__.py
|
tk421storm/shotgunEvents
|
5c602edce929480453e53009f98ceff68e9c0b28
|
[
"MIT"
] | null | null | null |
from src.shotgunEventDaemon import mainForeground
mainForeground()
| 17
| 49
| 0.867647
| 6
| 68
| 9.833333
| 0.833333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.088235
| 68
| 4
| 50
| 17
| 0.951613
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
e3e453fb5c7db9077f083b5f926d642689391ae3
| 1,579
|
py
|
Python
|
neat/activations.py
|
joel-simon/neat-python
|
a1f58841d2708ccaceb6bead861262bb212e10ea
|
[
"BSD-3-Clause"
] | 1
|
2021-09-21T21:53:15.000Z
|
2021-09-21T21:53:15.000Z
|
neat/activations.py
|
joel-simon/neat-python
|
a1f58841d2708ccaceb6bead861262bb212e10ea
|
[
"BSD-3-Clause"
] | null | null | null |
neat/activations.py
|
joel-simon/neat-python
|
a1f58841d2708ccaceb6bead861262bb212e10ea
|
[
"BSD-3-Clause"
] | 1
|
2021-09-21T21:53:17.000Z
|
2021-09-21T21:53:17.000Z
|
import math
def sigmoid_activation(z):
z = max(-60.0, min(60.0, z))
return 1.0 / (1.0 + math.exp(-z))
def tanh_activation(z):
z = max(-60.0, min(60.0, z))
return math.tanh(z)
def sin_activation(z):
z = max(-60.0, min(60.0, z))
return math.sin(z)
def gauss_activation(z):
z = max(-60.0, min(60.0, z))
return math.exp(-0.5 * z**2) / math.sqrt(2 * math.pi)
def relu_activation(z):
return z if z > 0.0 else 0
def identity_activation(z):
return z
def clamped_activation(z):
return max(-1.0, min(1.0, z))
def inv_activation(z):
if z == 0:
return 0.0
return 1.0 / z
def log_activation(z):
z = max(1e-7, z)
return math.log(z)
def exp_activation(z):
z = max(-60.0, min(60.0, z))
return math.exp(z)
def abs_activation(z):
return abs(z)
def hat_activation(z):
return max(0.0, 1 - abs(z))
def square_activation(z):
return z ** 2
def cube_activation(z):
return z ** 3
class InvalidActivationFunction(Exception):
pass
class ActivationFunctionSet(object):
def __init__(self):
self.functions = {}
def add(self, config_name, function):
# TODO: Verify that the given function has the correct signature.
self.functions[config_name] = function
def get(self, config_name):
f = self.functions.get(config_name)
if f is None:
raise InvalidActivationFunction("No such function: {0!r}".format(config_name))
return f
def is_valid(self, config_name):
return config_name in self.functions
| 17.163043
| 90
| 0.616846
| 255
| 1,579
| 3.717647
| 0.258824
| 0.162447
| 0.125527
| 0.094937
| 0.186709
| 0.186709
| 0.186709
| 0.186709
| 0.186709
| 0.186709
| 0
| 0.048822
| 0.247625
| 1,579
| 91
| 91
| 17.351648
| 0.749158
| 0.039899
| 0
| 0.098039
| 0
| 0
| 0.015212
| 0
| 0
| 0
| 0
| 0.010989
| 0
| 1
| 0.352941
| false
| 0.019608
| 0.019608
| 0.156863
| 0.745098
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
e3e58c197a7a84367ea0b9c5c721425f7a53bb54
| 144
|
py
|
Python
|
math/0x00-linear_algebra/11-the_western_exchange.py
|
sebaslherrera/holbertonschool-machine_learning
|
a4c09230688700aee199f4099de32261104918be
|
[
"MIT"
] | null | null | null |
math/0x00-linear_algebra/11-the_western_exchange.py
|
sebaslherrera/holbertonschool-machine_learning
|
a4c09230688700aee199f4099de32261104918be
|
[
"MIT"
] | null | null | null |
math/0x00-linear_algebra/11-the_western_exchange.py
|
sebaslherrera/holbertonschool-machine_learning
|
a4c09230688700aee199f4099de32261104918be
|
[
"MIT"
] | null | null | null |
#!/usr/bin/env python3
"""The Western Exchange module"""
def np_transpose(matrix):
"""transposes matrix"""
return matrix.transpose()
| 16
| 33
| 0.680556
| 17
| 144
| 5.705882
| 0.823529
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.008264
| 0.159722
| 144
| 8
| 34
| 18
| 0.793388
| 0.465278
| 0
| 0
| 0
| 0
| 0
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
e3eae87d767b2194d6b15c5a9b9621f3e9ab02f0
| 48
|
py
|
Python
|
storage/pycopia/db/importers/__init__.py
|
kdart/pycopia
|
1446fabaedf8c6bdd4ab1fc3f0ea731e0ef8da9d
|
[
"Apache-2.0"
] | 89
|
2015-03-26T11:25:20.000Z
|
2022-01-12T06:25:14.000Z
|
storage/pycopia/db/importers/__init__.py
|
kdart/pycopia
|
1446fabaedf8c6bdd4ab1fc3f0ea731e0ef8da9d
|
[
"Apache-2.0"
] | 1
|
2015-07-05T03:27:43.000Z
|
2015-07-11T06:21:20.000Z
|
storage/pycopia/db/importers/__init__.py
|
kdart/pycopia
|
1446fabaedf8c6bdd4ab1fc3f0ea731e0ef8da9d
|
[
"Apache-2.0"
] | 30
|
2015-04-30T01:35:54.000Z
|
2022-01-12T06:19:49.000Z
|
"""
Import from other sources to database.
"""
| 9.6
| 38
| 0.666667
| 6
| 48
| 5.333333
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.1875
| 48
| 4
| 39
| 12
| 0.820513
| 0.791667
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
e3f40c3e081591307694a23ba3d5d33cd8a93cb6
| 75
|
py
|
Python
|
xortool/__init__.py
|
hellman/xortool
|
4d8deb884848a8be82bc9b65cda998c2991a7b7b
|
[
"MIT"
] | 1,005
|
2015-01-08T14:23:20.000Z
|
2022-03-29T19:45:37.000Z
|
xortool/__init__.py
|
bkerler/xortool
|
4d8deb884848a8be82bc9b65cda998c2991a7b7b
|
[
"MIT"
] | 23
|
2015-03-16T14:31:14.000Z
|
2022-01-27T09:19:35.000Z
|
xortool/__init__.py
|
bkerler/xortool
|
4d8deb884848a8be82bc9b65cda998c2991a7b7b
|
[
"MIT"
] | 176
|
2015-01-20T09:20:16.000Z
|
2022-03-10T04:15:16.000Z
|
from importlib_metadata import version
__version__ = version(__package__)
| 18.75
| 38
| 0.853333
| 8
| 75
| 6.875
| 0.75
| 0.509091
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.106667
| 75
| 3
| 39
| 25
| 0.820896
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
e3f93457ff7f318436b540df7215455402455771
| 107
|
py
|
Python
|
infobip_channels/web_rtc/models/path_parameters/core.py
|
infobip-community/infobip-api-python-sdk
|
5ffc5ab877ee1748aa29391f991c8c5324387487
|
[
"MIT"
] | null | null | null |
infobip_channels/web_rtc/models/path_parameters/core.py
|
infobip-community/infobip-api-python-sdk
|
5ffc5ab877ee1748aa29391f991c8c5324387487
|
[
"MIT"
] | null | null | null |
infobip_channels/web_rtc/models/path_parameters/core.py
|
infobip-community/infobip-api-python-sdk
|
5ffc5ab877ee1748aa29391f991c8c5324387487
|
[
"MIT"
] | null | null | null |
from infobip_channels.core.models import CamelCaseModel
class PathParameter(CamelCaseModel):
id: str
| 17.833333
| 55
| 0.813084
| 12
| 107
| 7.166667
| 0.916667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.130841
| 107
| 5
| 56
| 21.4
| 0.924731
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.333333
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
54056591a22d8034a4f3b4f0826805b94c3b9981
| 184
|
py
|
Python
|
web/doors/__init__.py
|
DronMDF/doors
|
4e2069159c5edf1d55933480307c127b853255e0
|
[
"MIT"
] | null | null | null |
web/doors/__init__.py
|
DronMDF/doors
|
4e2069159c5edf1d55933480307c127b853255e0
|
[
"MIT"
] | 205
|
2019-02-22T15:37:26.000Z
|
2019-07-21T21:20:00.000Z
|
web/doors/tests/__init__.py
|
DronMDF/doors
|
4e2069159c5edf1d55933480307c127b853255e0
|
[
"MIT"
] | null | null | null |
# Copyright (c) 2019 Andrey Valyaev <dron.valyaev@gmail.com>
#
# This software may be modified and distributed under the terms
# of the MIT license. See the LICENSE file for details.
| 36.8
| 63
| 0.76087
| 29
| 184
| 4.827586
| 0.862069
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.026144
| 0.168478
| 184
| 4
| 64
| 46
| 0.888889
| 0.951087
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
5405853aa1d24f051b4aa4a21c5fb539d3a37b2c
| 327
|
py
|
Python
|
Textbook/Chapter 5/evenNumbers.py
|
hunterluepke/Learn-Python-for-Stats-and-Econ
|
d580a8e27ba937fc8401ac6d0714b6488ac8bbb6
|
[
"MIT"
] | 16
|
2019-01-10T18:54:13.000Z
|
2022-01-28T20:07:20.000Z
|
Textbook/Chapter 5/evenNumbers.py
|
hunterluepke/Learn-Python-for-Stats-and-Econ
|
d580a8e27ba937fc8401ac6d0714b6488ac8bbb6
|
[
"MIT"
] | null | null | null |
Textbook/Chapter 5/evenNumbers.py
|
hunterluepke/Learn-Python-for-Stats-and-Econ
|
d580a8e27ba937fc8401ac6d0714b6488ac8bbb6
|
[
"MIT"
] | 15
|
2019-01-24T17:11:20.000Z
|
2021-12-11T01:53:57.000Z
|
#evenNumbers.py
import numpy as np
even_nums = [i for i in range(100) if i % 2 == 0]
print(even_nums)
even_nums = np.arange(100)
print(even_nums)
index_array = even_nums % 2 == 0
print(index_array)
even_nums = even_nums[index_array]
print(even_nums)
even_nums_types = [type(val) for val in even_nums]
print(even_nums_types)
| 21.8
| 50
| 0.749235
| 61
| 327
| 3.754098
| 0.377049
| 0.384279
| 0.227074
| 0.209607
| 0.183406
| 0
| 0
| 0
| 0
| 0
| 0
| 0.035587
| 0.140673
| 327
| 15
| 51
| 21.8
| 0.779359
| 0.042813
| 0
| 0.272727
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.090909
| 0
| 0.090909
| 0.454545
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 4
|
540754a50363edf05c08142a203b79fb39c4e643
| 397
|
py
|
Python
|
geolib/models/__init__.py
|
Deltares/geolib
|
d38aab35a034e977bb7684322395458986bda059
|
[
"MIT"
] | 4
|
2021-10-29T21:30:47.000Z
|
2022-03-18T13:15:17.000Z
|
geolib/models/__init__.py
|
cemsbv/GEOLib
|
54de109460a836caed51f0f26974a51f39edcfa3
|
[
"MIT"
] | 3
|
2021-11-05T07:56:16.000Z
|
2022-03-27T13:27:05.000Z
|
geolib/models/__init__.py
|
cemsbv/GEOLib
|
54de109460a836caed51f0f26974a51f39edcfa3
|
[
"MIT"
] | 4
|
2021-10-29T21:30:51.000Z
|
2022-01-17T13:20:40.000Z
|
from .base_model_structure import BaseDataClass, BaseModelStructure # isort:skip
from .base_model import BaseModel, BaseModelList
from .dfoundations import DFoundationsModel
from .dsettlement import DSettlementModel
from .dsheetpiling import DSheetPilingModel
from .dstability import DStabilityModel
from .meta import MetaData
from .model_enums import Color
from .validators import BaseValidator
| 39.7
| 81
| 0.86398
| 44
| 397
| 7.704545
| 0.568182
| 0.047198
| 0.076696
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.103275
| 397
| 9
| 82
| 44.111111
| 0.952247
| 0.025189
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
5831e191f4042ce5c1f16b6a2ed48ff7a31d0f3d
| 2,349
|
py
|
Python
|
datascience.py
|
mburkertt/DatascienceTraining
|
827ea2c75a00a8bac28c905faf0f156eee747196
|
[
"MIT"
] | null | null | null |
datascience.py
|
mburkertt/DatascienceTraining
|
827ea2c75a00a8bac28c905faf0f156eee747196
|
[
"MIT"
] | null | null | null |
datascience.py
|
mburkertt/DatascienceTraining
|
827ea2c75a00a8bac28c905faf0f156eee747196
|
[
"MIT"
] | 3
|
2019-01-18T10:35:06.000Z
|
2019-02-20T08:54:40.000Z
|
# -*- coding: utf-8 -*-
"""
01 TODO: Why do we need the imports ? Find it out yourself, or ask the instructor.
Be Aware the these import could be replaced with a lot of other doing the same thing.
"""
import numpy as np
import pandas as pd
import matplotlib as mpl
import matplotlib.pyplot as plt
import matplotlib.gridspec as gridspec
"""
02 TODO: Load the dataset for breast cancer located in the repository, into your python file.
Pandas is delivering the functionality for this task.
"""
"""
03 TODO: Check the Dataset is everythin ok ? Is something missing?
If yes please add the missing information to the dataset you will find all information here:
https://archive.ics.uci.edu/ml/machine-learning-databases/breast-cancer/
"""
"""
04 TODO: Generate csv with corrected Data: Python does not really have a reliable in memory.
To be sure that we do not loose information, let us export the corrected dataset with a suitable name.
"""
"""
05 TODO: Generate an exel from the Data to offer this to 'non developer'. We can not be sure that our data are always readed by an developer,
so lets generate a exel file out of our dataset as well.
"""
"""
06 TODO: Get first entries for our data: so lets have a look what our data look like and lets print the first 5 entries.
"""
"""
07 TODO: Get an first overview about the Data: We would like to know the base values for our data.
Lets look how there shape is and how they are described (commands allmost the same) and print them out.
"""
"""
08 TODO: matplotlib: We have to konfigure matplotlib to be sure to get later what we would like to have.
"""
"""
09 TODO: First Figure: Now we will do a first figure: please implement a bar diagram of the age distribution of all patients.
Do not forget that we will also need a suitable description for x and y.
"""
"""
10 TODO: Shaping datasets for plotting it: Most of the data are strings, this wont work for plotting.
So think about changing the data in a way we can use to plot them.
Change the type of age and tumor-size. (Advice use a scatterplot for this task)
"""
"""
11 TODO: Shaping datasets for plotting it: If you finished TODO 10 you have the tools now to produce any other figures.
Produce this figures and try to find as much abnormalities as possible. You can use all kinds of different plots.
"""
| 37.285714
| 142
| 0.739889
| 407
| 2,349
| 4.27027
| 0.476658
| 0.01611
| 0.012658
| 0.01496
| 0.036824
| 0.036824
| 0
| 0
| 0
| 0
| 0
| 0.013808
| 0.198382
| 2,349
| 62
| 143
| 37.887097
| 0.909187
| 0.088974
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.177419
| 0
| 1
| 0
| true
| 0
| 1
| 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
| 1
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
5839ee6265c512c0c266e0787e5690b8306a7a8e
| 52
|
py
|
Python
|
periodic_event/__init__.py
|
davidjb/sensor.periodic_event
|
832ac9b2461532725bf4b46de409e636f6417f09
|
[
"MIT"
] | null | null | null |
periodic_event/__init__.py
|
davidjb/sensor.periodic_event
|
832ac9b2461532725bf4b46de409e636f6417f09
|
[
"MIT"
] | null | null | null |
periodic_event/__init__.py
|
davidjb/sensor.periodic_event
|
832ac9b2461532725bf4b46de409e636f6417f09
|
[
"MIT"
] | null | null | null |
"""Datetime sensor for any type of perodic event"""
| 26
| 51
| 0.730769
| 8
| 52
| 4.75
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.153846
| 52
| 1
| 52
| 52
| 0.863636
| 0.865385
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
583e0f5068c2635c42a4a3dbca05e20456caf04e
| 263
|
py
|
Python
|
booking/admin.py
|
ripoul/SC-test
|
2102b7821307d81260f183f21ca57bdde0d6f2f9
|
[
"MIT"
] | 1
|
2020-04-16T15:35:46.000Z
|
2020-04-16T15:35:46.000Z
|
booking/admin.py
|
ripoul/SC-test
|
2102b7821307d81260f183f21ca57bdde0d6f2f9
|
[
"MIT"
] | 20
|
2020-02-24T12:07:02.000Z
|
2022-02-10T14:15:15.000Z
|
booking/admin.py
|
ripoul/SC-test
|
2102b7821307d81260f183f21ca57bdde0d6f2f9
|
[
"MIT"
] | 2
|
2020-02-29T13:55:47.000Z
|
2020-12-02T10:06:25.000Z
|
from django.contrib import admin
from booking.models import Reservation, Resource, ResourceType, Location
# Register your models here.
admin.site.register(Reservation)
admin.site.register(Resource)
admin.site.register(ResourceType)
admin.site.register(Location)
| 29.222222
| 72
| 0.8327
| 33
| 263
| 6.636364
| 0.454545
| 0.164384
| 0.310502
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.079848
| 263
| 8
| 73
| 32.875
| 0.904959
| 0.098859
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.333333
| 0
| 0.333333
| 0
| 0
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
5853ba54542b4eaa6190b7c19981eed85b9e8cd1
| 27
|
py
|
Python
|
build/lib/drone-awe/__init__.py
|
rymanderson/Drone-Models
|
396ed030f277a96365c7cbfaffb3d2006e5b12a8
|
[
"MIT"
] | 2
|
2019-12-01T10:27:54.000Z
|
2019-12-01T10:28:07.000Z
|
build/lib/drone-awe/__init__.py
|
rymanderson/drone_awe
|
396ed030f277a96365c7cbfaffb3d2006e5b12a8
|
[
"MIT"
] | null | null | null |
build/lib/drone-awe/__init__.py
|
rymanderson/drone_awe
|
396ed030f277a96365c7cbfaffb3d2006e5b12a8
|
[
"MIT"
] | null | null | null |
'''
Hello, drone world!
'''
| 9
| 19
| 0.555556
| 3
| 27
| 5
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.148148
| 27
| 3
| 20
| 9
| 0.652174
| 0.703704
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
587cf7166595ba3d36de1c6964a11fb6b6548a35
| 7,193
|
py
|
Python
|
launch.py
|
aypan17/lm-human-preferences
|
93a6f61ad2876941d370dcfefc6e960dc4828a40
|
[
"MIT"
] | null | null | null |
launch.py
|
aypan17/lm-human-preferences
|
93a6f61ad2876941d370dcfefc6e960dc4828a40
|
[
"MIT"
] | null | null | null |
launch.py
|
aypan17/lm-human-preferences
|
93a6f61ad2876941d370dcfefc6e960dc4828a40
|
[
"MIT"
] | null | null | null |
#!/usr/bin/env python3
from lm_human_preferences.utils import launch
from lm_human_preferences.utils.combos import bind, combos, each, label, options_shortdesc, bind_nested
from lm_human_preferences import train_policy, train_reward
books_task = combos(
bind('query_length', 64),
bind('query_dataset', 'books'),
bind('response_length', 24),
bind('start_text', '.'), # Start the context at the beginning of a sentence
bind('end_text', '.'), # End the context at the end of a sentence.
bind('truncate_token', 13), # Encoding of '.' -- end completions at the end of a sentence.
bind('truncate_after', 16), # Make sure completions are at least 16 tokens long.
bind('policy.temperature', 0.7),
bind('policy.initial_model', '124M'),
)
summarize_cnndm_task = combos(
bind('query_prefix', 'Article:\n\n'),
bind('query_suffix', '\n\nTL;DR:'),
bind('end_text', '\n'),
bind('query_dataset', 'cnndm'),
bind('query_length', 500),
bind('response_length', 75),
bind('start_text', None),
bind('truncate_after', 55),
bind('truncate_token', 198), # '\n'
bind('policy.temperature', 0.5),
bind('policy.initial_model', '124M'),
)
summarize_tldr_task = combos(
bind('query_suffix', '\n\nTL;DR:'),
bind('query_dataset', 'tldr'),
bind('query_length', 500),
bind('response_length', 75),
bind('start_text', None),
bind('truncate_after', 55),
bind('truncate_token', 198), # '\n'
bind('policy.temperature', 0.7),
bind('policy.initial_model', '124M'),
)
def get_train_reward_experiments():
_shared = combos(
bind('labels.type', 'best_of_4'),
bind('normalize_after', True),
bind('normalize_before', True),
bind('normalize_samples', 256),
)
_books_task = combos(
bind_nested('task', books_task),
_shared,
bind('batch_size', 32),
bind('lr', 5e-5),
bind('rollout_batch_size', 512),
)
sentiment = combos(
_books_task,
bind('labels.source', 'https://openaipublic.blob.core.windows.net/lm-human-preferences/labels/sentiment/offline_5k.json'),
bind('labels.num_train', 4_992),
bind('run.seed', 1)
)
descriptiveness = combos(
_books_task,
bind('labels.source', 'https://openaipublic.blob.core.windows.net/lm-human-preferences/labels/descriptiveness/offline_5k.json'),
bind('labels.num_train', 4_992),
bind('run.seed', 1)
)
cnndm = combos(
bind_nested('task', summarize_cnndm_task),
_shared,
# bind('labels.source', 'https://openaipublic.blob.core.windows.net/lm-human-preferences/labels/cnndm/offline_60k.json'),
# bind('labels.num_train', 60_000),
bind('labels.source', 'https://openaipublic.blob.core.windows.net/lm-human-preferences/labels/cnndm/online_45k.json'),
bind('labels.num_train', 46_000),
bind('batch_size', 2 * 8),
bind('lr', 2.5e-5),
bind('rollout_batch_size', 128),
bind('run.seed', 1)
)
tldr = combos(
bind_nested('task', summarize_tldr_task),
_shared,
# bind('labels.source', 'https://openaipublic.blob.core.windows.net/lm-human-preferences/labels/tldr/offline_60k.json'),
# bind('labels.num_train', 60_000),
bind('labels.source', 'https://openaipublic.blob.core.windows.net/lm-human-preferences/labels/tldr/online_45k.json'),
bind('labels.num_train', 46_000),
bind('batch_size', 2 * 8),
bind('lr', 2.5e-5),
bind('rollout_batch_size', 128),
bind('run.seed', 1)
)
return locals()
def get_experiments():
train_reward_experiments = get_train_reward_experiments()
_books_task = combos(
bind_nested('task', books_task),
bind('ppo.lr', 1e-5),
bind('ppo.total_episodes', 1_000_000),
bind('ppo.batch_size', 512),
)
sentiment = combos(
_books_task,
bind('rewards.kl_coef', 0.15),
bind('rewards.adaptive_kl', 'on'),
bind('rewards.adaptive_kl.target', 6.0),
bind('rewards.train_new_model', 'on'),
bind_nested('rewards.train_new_model', train_reward_experiments['sentiment']),
# bind('rewards.trained_model', '/your/directory/here/reward_model/'),
bind('run.seed', 1)
)
descriptiveness = combos(
_books_task,
bind('rewards.kl_coef', 0.15),
bind('rewards.adaptive_kl', 'on'),
bind('rewards.adaptive_kl.target', 6.0),
bind('rewards.train_new_model', 'on'),
bind_nested('rewards.train_new_model', train_reward_experiments['descriptiveness']),
# bind('rewards.trained_model', '/your/directory/here/reward_model/'),
bind('run.seed', 1)
)
cnndm = combos(
bind_nested('task', summarize_cnndm_task),
bind('rewards.train_new_model', 'on'),
bind_nested('rewards.train_new_model', train_reward_experiments['cnndm']),
# bind('rewards.trained_model', '/your/directory/here/reward_model/'),
bind('ppo.total_episodes', 1_000_000),
bind('ppo.lr', 2e-6),
bind('rewards.kl_coef', 0.01),
# bind('rewards.adaptive_kl', 'on'),
# bind('rewards.adaptive_kl.target', 18.0),
bind('ppo.batch_size', 32),
bind('rewards.whiten', False),
bind('run.seed', 1)
)
tldr = combos(
bind_nested('task', summarize_tldr_task),
bind('rewards.train_new_model', 'on'),
bind_nested('rewards.train_new_model', train_reward_experiments['tldr']),
# bind('rewards.trained_model', '/your/directory/here/reward_model/'),
bind('ppo.total_episodes', 1_000_000),
bind('ppo.lr', 2e-6),
bind('rewards.kl_coef', 0.03), # 0.01 too low
# bind('rewards.adaptive_kl', 'on'),
# bind('rewards.adaptive_kl.target', 18.0),
bind('ppo.batch_size', 32),
bind('rewards.whiten', False),
bind('run.seed', 1)
)
return locals()
def launch_train_policy(exp, name, dry_run=False, mpi=2, mode='local', save_dir='/tmp/save/train_policy', **extra_hparams):
experiment_dict = get_experiments()
try:
trials = experiment_dict[exp]
except KeyError:
raise ValueError(f"Couldn't find experiment '{exp}'")
launch.launch_trials(
name, fn=train_policy.train, trials=trials, mpi=mpi, mode=mode, save_dir=save_dir,
hparam_class=train_policy.HParams, extra_hparams=extra_hparams, dry_run=dry_run)
def launch_train_reward(exp, name, dry_run=False, mpi=2, mode='local', save_dir='/tmp/save/train_reward', **extra_hparams):
experiment_dict = get_train_reward_experiments()
try:
trials = experiment_dict[exp]
except KeyError:
raise ValueError(f"Couldn't find experiment '{exp}'")
launch.launch_trials(
name, fn=train_reward.train, trials=trials, mpi=mpi, mode=mode, save_dir=save_dir,
hparam_class=train_reward.HParams, extra_hparams=extra_hparams, dry_run=dry_run)
if __name__ == '__main__':
launch.main(dict(
train_policy=launch_train_policy,
train_reward=launch_train_reward
))
| 32.547511
| 136
| 0.637008
| 925
| 7,193
| 4.707027
| 0.188108
| 0.055581
| 0.037207
| 0.022049
| 0.787322
| 0.761599
| 0.748277
| 0.729904
| 0.688562
| 0.654111
| 0
| 0.03148
| 0.20506
| 7,193
| 220
| 137
| 32.695455
| 0.729976
| 0.1368
| 0
| 0.566879
| 0
| 0.025478
| 0.299241
| 0.045242
| 0
| 0
| 0
| 0
| 0
| 1
| 0.025478
| false
| 0
| 0.019108
| 0
| 0.057325
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
5880421c73dd45875b08c4239a45ed18b0e48764
| 22
|
py
|
Python
|
shapely/__init__.py
|
IncoCura/Shapely
|
5d18af283e485a427d121e05fbf8e9968db4a569
|
[
"BSD-3-Clause"
] | 1
|
2019-07-02T03:59:07.000Z
|
2019-07-02T03:59:07.000Z
|
shapely/__init__.py
|
AtrCheema/Shapely
|
2c39f871341ddd82c24ec42f1ac1c5a16663729b
|
[
"BSD-3-Clause"
] | 1
|
2021-02-23T23:32:17.000Z
|
2021-02-23T23:32:17.000Z
|
shapely/__init__.py
|
AtrCheema/Shapely
|
2c39f871341ddd82c24ec42f1ac1c5a16663729b
|
[
"BSD-3-Clause"
] | 1
|
2019-12-27T16:56:38.000Z
|
2019-12-27T16:56:38.000Z
|
__version__ = "1.7a1"
| 11
| 21
| 0.681818
| 3
| 22
| 3.666667
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.157895
| 0.136364
| 22
| 1
| 22
| 22
| 0.421053
| 0
| 0
| 0
| 0
| 0
| 0.227273
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
588fbc6a3b73b64d1ad9c7d4e9fda167749acc50
| 73
|
py
|
Python
|
test/test_del_group.py
|
MerzlovDA/QA_python
|
406492347e52a5cffdca59a2b4f058b2ea9e5319
|
[
"Apache-2.0"
] | null | null | null |
test/test_del_group.py
|
MerzlovDA/QA_python
|
406492347e52a5cffdca59a2b4f058b2ea9e5319
|
[
"Apache-2.0"
] | null | null | null |
test/test_del_group.py
|
MerzlovDA/QA_python
|
406492347e52a5cffdca59a2b4f058b2ea9e5319
|
[
"Apache-2.0"
] | null | null | null |
def test_del_first_group(app):
app.group.delete_first_group()
| 12.166667
| 38
| 0.712329
| 11
| 73
| 4.272727
| 0.636364
| 0.425532
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.191781
| 73
| 5
| 39
| 14.6
| 0.79661
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| false
| 0
| 0
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
589db5eb290e70a7ffd89354ddbd252a2278b5b4
| 177
|
py
|
Python
|
landing/apps.py
|
mucahitnezir/django-starter
|
2b5b571da19c37941ae1634d0bd26ac8b0063b7d
|
[
"MIT"
] | 5
|
2019-01-09T13:17:09.000Z
|
2021-04-12T19:26:11.000Z
|
landing/apps.py
|
mucahitnezir/django-blog
|
2b5b571da19c37941ae1634d0bd26ac8b0063b7d
|
[
"MIT"
] | 9
|
2019-06-10T18:52:42.000Z
|
2021-06-10T17:36:44.000Z
|
landing/apps.py
|
mucahitnezir/django-blog
|
2b5b571da19c37941ae1634d0bd26ac8b0063b7d
|
[
"MIT"
] | null | null | null |
from django.apps import AppConfig
from django.utils.translation import ugettext_lazy as _
class LandingConfig(AppConfig):
name = 'landing'
verbose_name = _('Landing')
| 22.125
| 55
| 0.762712
| 21
| 177
| 6.238095
| 0.714286
| 0.152672
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.158192
| 177
| 7
| 56
| 25.285714
| 0.879195
| 0
| 0
| 0
| 0
| 0
| 0.079096
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.4
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
544a3f55dafe03c1e0574f6a669f35c05475b43d
| 186
|
py
|
Python
|
EXERCICIOS/Exercicio_listcomprehension_join.py
|
raphael-d-cordeiro/Python_Public
|
56d0080393dab5f80ad650e27cb993006b17ac1b
|
[
"MIT"
] | null | null | null |
EXERCICIOS/Exercicio_listcomprehension_join.py
|
raphael-d-cordeiro/Python_Public
|
56d0080393dab5f80ad650e27cb993006b17ac1b
|
[
"MIT"
] | null | null | null |
EXERCICIOS/Exercicio_listcomprehension_join.py
|
raphael-d-cordeiro/Python_Public
|
56d0080393dab5f80ad650e27cb993006b17ac1b
|
[
"MIT"
] | null | null | null |
string = '012345678901234567890123456789012345678901234567890123456789'
n = 10
lista = [string[i:i+n] for i in range(0, len(string), n)]
listastring = '.'.join(lista)
print(listastring)
| 31
| 71
| 0.758065
| 22
| 186
| 6.409091
| 0.636364
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.377246
| 0.102151
| 186
| 6
| 72
| 31
| 0.467066
| 0
| 0
| 0
| 0
| 0
| 0.326203
| 0.320856
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.2
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
5468aff245a63ee7170020e176d22f148b1cd7ef
| 80
|
py
|
Python
|
finpandas/core/__init__.py
|
mattbev/finpandas
|
9ff08b7eace01ce8353a83f1daab6dcc18d0d5d2
|
[
"MIT"
] | 1
|
2022-01-20T22:11:13.000Z
|
2022-01-20T22:11:13.000Z
|
finpandas/core/__init__.py
|
mattbev/finpandas
|
9ff08b7eace01ce8353a83f1daab6dcc18d0d5d2
|
[
"MIT"
] | 2
|
2022-01-08T22:28:56.000Z
|
2022-01-08T22:31:44.000Z
|
finpandas/core/__init__.py
|
mattbev/finpandas
|
9ff08b7eace01ce8353a83f1daab6dcc18d0d5d2
|
[
"MIT"
] | null | null | null |
"""
finpandas core utilities
"""
from .datasources import Fundamentals, Stocks
| 13.333333
| 45
| 0.7625
| 8
| 80
| 7.625
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.1375
| 80
| 5
| 46
| 16
| 0.884058
| 0.3
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
5480bd95366785a0dd95e09f4a33f0ead36e85c0
| 55
|
py
|
Python
|
pyutilib/misc/tests/import_exception.py
|
PyUtilib/PyUtilib
|
d99406f2af1fb62268c34453a2fbe6bd4a7348f0
|
[
"BSD-3-Clause"
] | 24
|
2016-04-02T10:00:02.000Z
|
2021-03-02T16:40:18.000Z
|
pyutilib/misc/tests/import_exception.py
|
PyUtilib/PyUtilib
|
d99406f2af1fb62268c34453a2fbe6bd4a7348f0
|
[
"BSD-3-Clause"
] | 105
|
2015-10-29T03:29:58.000Z
|
2021-12-30T22:00:45.000Z
|
pyutilib/misc/tests/import_exception.py
|
PyUtilib/PyUtilib
|
d99406f2af1fb62268c34453a2fbe6bd4a7348f0
|
[
"BSD-3-Clause"
] | 22
|
2016-01-21T15:35:25.000Z
|
2021-05-15T20:17:44.000Z
|
import sys
raise RuntimeError("raised during import")
| 13.75
| 42
| 0.8
| 7
| 55
| 6.285714
| 0.857143
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.127273
| 55
| 3
| 43
| 18.333333
| 0.916667
| 0
| 0
| 0
| 0
| 0
| 0.363636
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
49c6484d8ebf64a6475891c0aff768f55ac3a9d5
| 86
|
py
|
Python
|
omniview.py
|
Tristan-Anderson/Slifer_Lab
|
5a463f2ebd7f495bce70b12252dbfffac35445f1
|
[
"MIT"
] | null | null | null |
omniview.py
|
Tristan-Anderson/Slifer_Lab
|
5a463f2ebd7f495bce70b12252dbfffac35445f1
|
[
"MIT"
] | null | null | null |
omniview.py
|
Tristan-Anderson/Slifer_Lab
|
5a463f2ebd7f495bce70b12252dbfffac35445f1
|
[
"MIT"
] | null | null | null |
from slifercal import slifercal as sc
instance = sc()
instance.omniview_in_terminal()
| 21.5
| 37
| 0.813953
| 12
| 86
| 5.666667
| 0.75
| 0.294118
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.116279
| 86
| 4
| 38
| 21.5
| 0.894737
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 0.333333
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
49f0c4ab775112ae3a3bb3dc14df0d1b5501fef0
| 110
|
py
|
Python
|
Codeforces/A_96.py
|
ahakouz17/Competitive-Programming-Practice
|
5f4daaf491ab03bb86387e491ecc5634b7f99433
|
[
"MIT"
] | null | null | null |
Codeforces/A_96.py
|
ahakouz17/Competitive-Programming-Practice
|
5f4daaf491ab03bb86387e491ecc5634b7f99433
|
[
"MIT"
] | null | null | null |
Codeforces/A_96.py
|
ahakouz17/Competitive-Programming-Practice
|
5f4daaf491ab03bb86387e491ecc5634b7f99433
|
[
"MIT"
] | null | null | null |
football = raw_input()
if '1111111' in football or '0000000' in football:
print "YES"
else:
print "NO"
| 22
| 50
| 0.672727
| 16
| 110
| 4.5625
| 0.75
| 0.273973
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.16092
| 0.209091
| 110
| 5
| 51
| 22
| 0.678161
| 0
| 0
| 0
| 0
| 0
| 0.171171
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0
| null | null | 0.4
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
49f23b8eb468128a9fd7bfa5229028ee3c8623d9
| 221
|
py
|
Python
|
tests/migrations/migrations_test_apps/unmigrated_app_simple/models.py
|
Yoann-Vie/esgi-hearthstone
|
115d03426c7e8e80d89883b78ac72114c29bed12
|
[
"PSF-2.0",
"BSD-3-Clause"
] | null | null | null |
tests/migrations/migrations_test_apps/unmigrated_app_simple/models.py
|
Yoann-Vie/esgi-hearthstone
|
115d03426c7e8e80d89883b78ac72114c29bed12
|
[
"PSF-2.0",
"BSD-3-Clause"
] | null | null | null |
tests/migrations/migrations_test_apps/unmigrated_app_simple/models.py
|
Yoann-Vie/esgi-hearthstone
|
115d03426c7e8e80d89883b78ac72114c29bed12
|
[
"PSF-2.0",
"BSD-3-Clause"
] | null | null | null |
from django.db import models
class UnmigratedModel(models.Model):
"""
A model that is in a migration-less app (which this app is
if its migrations directory has not been repointed)
"""
pass
| 22.1
| 63
| 0.665158
| 31
| 221
| 4.741935
| 0.83871
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.271493
| 221
| 9
| 64
| 24.555556
| 0.913043
| 0.497738
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.333333
| 0.333333
| 0
| 0.666667
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 0
|
0
| 4
|
b7107a21bc9071e65ac07b04efbd093d37eda35f
| 666
|
py
|
Python
|
src/adminfilters/filters.py
|
Simon4d/django-adminfilters
|
87eb086ea763bc36cb5f0139c2e01bed7cc674a8
|
[
"BSD-1-Clause"
] | null | null | null |
src/adminfilters/filters.py
|
Simon4d/django-adminfilters
|
87eb086ea763bc36cb5f0139c2e01bed7cc674a8
|
[
"BSD-1-Clause"
] | null | null | null |
src/adminfilters/filters.py
|
Simon4d/django-adminfilters
|
87eb086ea763bc36cb5f0139c2e01bed7cc674a8
|
[
"BSD-1-Clause"
] | null | null | null |
from .autocomplete import AutoCompleteFilter
from .checkbox import RelatedFieldCheckBoxFilter
from .combo import (AllValuesComboFilter, ChoicesFieldComboFilter,
RelatedFieldComboFilter,)
from .dj import DjangoLookupFilter
from .extra import PermissionPrefixFilter
from .json import JsonFieldFilter
from .multiselect import IntersectionFieldListFilter, UnionFieldListFilter
from .numbers import MaxMinFilter, NumberFilter
from .querystring import QueryStringFilter
from .radio import (AllValuesRadioFilter, BooleanRadioFilter,
ChoicesFieldRadioFilter, RelatedFieldRadioFilter,)
from .value import MultiValueFilter, ValueFilter
| 47.571429
| 74
| 0.824324
| 52
| 666
| 10.557692
| 0.615385
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.138138
| 666
| 13
| 75
| 51.230769
| 0.956446
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.846154
| 0
| 0.846154
| 0
| 0
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
3fb97c881c85959537b8a2aaf4c90f6a3db9f93e
| 36
|
py
|
Python
|
lib/python3.5/tempfile.py
|
hwroitzsch/BikersLifeSaver
|
469c738fdd6352c44a3f20689b17fa8ac04ad8a2
|
[
"MIT"
] | 1
|
2020-08-16T04:04:23.000Z
|
2020-08-16T04:04:23.000Z
|
lib/python3.5/tempfile.py
|
hwroitzsch/BikersLifeSaver
|
469c738fdd6352c44a3f20689b17fa8ac04ad8a2
|
[
"MIT"
] | 5
|
2020-06-05T18:53:24.000Z
|
2021-12-13T19:49:15.000Z
|
lib/python3.5/tempfile.py
|
hwroitzsch/BikersLifeSaver
|
469c738fdd6352c44a3f20689b17fa8ac04ad8a2
|
[
"MIT"
] | null | null | null |
/usr/local/lib/python3.5/tempfile.py
| 36
| 36
| 0.805556
| 7
| 36
| 4.142857
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.055556
| 0
| 36
| 1
| 36
| 36
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0
| null | null | 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
3fc40cc288bc508df20c247039d38c55b11d7fbc
| 82
|
py
|
Python
|
com/banma/demo/module.py
|
liuyangyang2015/PythonDemo
|
a72c009a31ff833dd12405bb97e688ae91ceda6c
|
[
"MIT"
] | null | null | null |
com/banma/demo/module.py
|
liuyangyang2015/PythonDemo
|
a72c009a31ff833dd12405bb97e688ae91ceda6c
|
[
"MIT"
] | null | null | null |
com/banma/demo/module.py
|
liuyangyang2015/PythonDemo
|
a72c009a31ff833dd12405bb97e688ae91ceda6c
|
[
"MIT"
] | null | null | null |
class MyClass:
var = "hello"
def say(a,b):
print("hello"+a.var+b)
| 16.4
| 30
| 0.52439
| 13
| 82
| 3.307692
| 0.692308
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.292683
| 82
| 5
| 30
| 16.4
| 0.741379
| 0
| 0
| 0
| 0
| 0
| 0.120482
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0
| 0
| 0.75
| 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
| 1
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
3fc5e3fade3cb67836f98b271a0a65f5a52a86e5
| 66
|
py
|
Python
|
tests/plotting/test_plotting_results.py
|
nismod/energy_demand
|
247fcea074a846026710ed9b039b22f8b9835643
|
[
"MIT"
] | 14
|
2018-02-23T10:03:45.000Z
|
2022-03-03T13:59:30.000Z
|
tests/plotting/test_plotting_results.py
|
nismod/energy_demand
|
247fcea074a846026710ed9b039b22f8b9835643
|
[
"MIT"
] | 59
|
2017-02-22T15:03:30.000Z
|
2020-12-16T12:26:17.000Z
|
tests/plotting/test_plotting_results.py
|
nismod/energy_demand
|
247fcea074a846026710ed9b039b22f8b9835643
|
[
"MIT"
] | 5
|
2017-08-22T11:31:42.000Z
|
2020-06-24T18:30:12.000Z
|
"""testing
"""
from energy_demand.plotting import plotting_results
| 22
| 51
| 0.818182
| 8
| 66
| 6.5
| 0.875
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.075758
| 66
| 3
| 51
| 22
| 0.852459
| 0.106061
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
3fe864f27739e6ce70b1009e69695d9e4173969b
| 140
|
py
|
Python
|
src/util/parse_iteration.py
|
YorkUCVIL/Wavelet-Flow
|
8d6d63fa116ec44299c32f37e66817594510f644
|
[
"MIT"
] | 59
|
2020-10-28T03:09:05.000Z
|
2022-01-29T22:10:04.000Z
|
src/util/parse_iteration.py
|
YorkUCVIL/Wavelet-Flow
|
8d6d63fa116ec44299c32f37e66817594510f644
|
[
"MIT"
] | 4
|
2020-12-24T11:00:40.000Z
|
2021-05-22T06:14:27.000Z
|
src/util/parse_iteration.py
|
YorkUCVIL/Wavelet-Flow
|
8d6d63fa116ec44299c32f37e66817594510f644
|
[
"MIT"
] | 2
|
2020-10-29T01:15:03.000Z
|
2021-04-20T11:55:51.000Z
|
def parse_iteration(s):
if s[-1] == 'k':
return int(s[:-1])*1000
elif s[-1] == 'm':
return int(s[:-1])*1000000
else:
return int(s)
| 17.5
| 28
| 0.557143
| 26
| 140
| 2.961538
| 0.538462
| 0.103896
| 0.38961
| 0.285714
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.131579
| 0.185714
| 140
| 7
| 29
| 20
| 0.54386
| 0
| 0
| 0
| 0
| 0
| 0.014286
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.142857
| false
| 0
| 0
| 0
| 0.571429
| 0
| 1
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
b74ad4122eaff788b30b9ac5f9eb9e2cd4273755
| 1,240
|
py
|
Python
|
metaopt/core/returnspec/util/wrapper.py
|
cigroup-ol/metaopt
|
6dfd5105d3c6eaf00f96670175cae16021069514
|
[
"BSD-3-Clause"
] | 8
|
2015-02-02T21:42:23.000Z
|
2019-06-30T18:12:43.000Z
|
metaopt/core/returnspec/util/wrapper.py
|
cigroup-ol/metaopt
|
6dfd5105d3c6eaf00f96670175cae16021069514
|
[
"BSD-3-Clause"
] | 4
|
2015-09-24T14:12:38.000Z
|
2021-12-08T22:42:52.000Z
|
metaopt/core/returnspec/util/wrapper.py
|
cigroup-ol/metaopt
|
6dfd5105d3c6eaf00f96670175cae16021069514
|
[
"BSD-3-Clause"
] | 6
|
2015-02-27T12:35:33.000Z
|
2020-10-15T21:04:02.000Z
|
class ReturnValuesWrapper(object):
"""
Wraps a return specification and a set of corresponding return values.
Enables comparison between value sets.
"""
def __init__(self, return_spec, values):
self.return_spec = return_spec
self.values = values
# TODO: Use something like functools.total_ordering
def __lt__(self, other):
if self.minimization:
return self.values < other.values
else:
return self.values > other.values
def __eq__(self, other):
return not self < other and not other < self
def __ne__(self, other):
return self < other or other < self
def __gt__(self, other):
return other < self
def __ge__(self, other):
return not self < other
def __le__(self, other):
return not other < self
def __str__(self):
return str(self.values)
def __repr__(self):
return repr(self.values)
@property
def raw_values(self):
"""The unwrapped values"""
return self.values
@property
def minimization(self):
if not self.return_spec:
return True
else:
return self.return_spec.return_values[0]["minimize"]
| 24.8
| 74
| 0.616129
| 148
| 1,240
| 4.864865
| 0.331081
| 0.1125
| 0.104167
| 0.083333
| 0.15
| 0.075
| 0
| 0
| 0
| 0
| 0
| 0.001156
| 0.302419
| 1,240
| 49
| 75
| 25.306122
| 0.831214
| 0.146774
| 0
| 0.125
| 0
| 0
| 0.007744
| 0
| 0
| 0
| 0
| 0.020408
| 0
| 1
| 0.34375
| false
| 0
| 0
| 0.21875
| 0.75
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
b7663cdffb56719e7b1acb31fab5a1ef296bf1b1
| 1,632
|
py
|
Python
|
tests/test_tools.py
|
Lewiscowles1986/bearlib
|
30f9b8ba4b7a8db4cd2f4c6e07966ae51d0a00dd
|
[
"CC0-1.0"
] | null | null | null |
tests/test_tools.py
|
Lewiscowles1986/bearlib
|
30f9b8ba4b7a8db4cd2f4c6e07966ae51d0a00dd
|
[
"CC0-1.0"
] | null | null | null |
tests/test_tools.py
|
Lewiscowles1986/bearlib
|
30f9b8ba4b7a8db4cd2f4c6e07966ae51d0a00dd
|
[
"CC0-1.0"
] | null | null | null |
# -*- coding: utf-8 -*-
"""
:copyright: (c) 2012-2016 by Mike Taylor
:license: CC0 1.0 Universal, see LICENSE for more details.
"""
import os
import datetime
from bearlib.tools import normalizeFilename, relativeDelta
def test_normalize():
cwd = os.getcwd()
home = os.environ['HOME']
assert normalizeFilename('foo.txt') == os.path.join(cwd, 'foo.txt')
assert normalizeFilename('~/foo.txt') == os.path.join(home, 'foo.txt')
assert normalizeFilename('./foo.txt') == os.path.join(cwd, 'foo.txt')
def TestRelativeDelta():
assert relativeDelta(datetime.timedelta(0, 10)) == 'just now'
assert relativeDelta(datetime.timedelta(0, 50)) == 'in 50 seconds'
assert relativeDelta(datetime.timedelta(0, 100)) == 'in a minute'
assert relativeDelta(datetime.timedelta(0, 3000)) == 'in 50 minutes'
assert relativeDelta(datetime.timedelta(0, 7000)) == 'in an hour'
assert relativeDelta(datetime.timedelta(0, 8000)) == 'in 2 hours'
assert relativeDelta(datetime.timedelta(0, -50)) == '50 seconds ago'
assert relativeDelta(datetime.timedelta(0, -100)) == 'a minute ago'
assert relativeDelta(datetime.timedelta(0, -3000)) == '50 minutes ago'
assert relativeDelta(datetime.timedelta(0, -7000)) == 'an hour ago'
assert relativeDelta(datetime.timedelta(0, -8000)) == '2 hours ago'
assert relativeDelta(datetime.timedelta(1)) == 'tomorrow'
assert relativeDelta(datetime.timedelta(2)) == 'in 2 days'
assert relativeDelta(datetime.timedelta(8)) == 'in 1 weeks'
assert relativeDelta(datetime.timedelta(40)) == 'in 1 months'
| 41.846154
| 74
| 0.673407
| 200
| 1,632
| 5.49
| 0.32
| 0.259563
| 0.368852
| 0.491803
| 0.576503
| 0.507286
| 0.128415
| 0.128415
| 0.128415
| 0.087432
| 0
| 0.057377
| 0.177696
| 1,632
| 38
| 75
| 42.947368
| 0.760805
| 0.074755
| 0
| 0
| 0
| 0
| 0.143142
| 0
| 0
| 0
| 0
| 0
| 0.72
| 1
| 0.08
| false
| 0
| 0.12
| 0
| 0.2
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
b7db62f7a65db67d60891e30c310a754c69541bc
| 281
|
py
|
Python
|
bot_project/buzzbot/__init__.py
|
pbarton666/buzz_bot
|
9f44c66e8ecb10e231f70989421f164d7a55029a
|
[
"MIT"
] | null | null | null |
bot_project/buzzbot/__init__.py
|
pbarton666/buzz_bot
|
9f44c66e8ecb10e231f70989421f164d7a55029a
|
[
"MIT"
] | null | null | null |
bot_project/buzzbot/__init__.py
|
pbarton666/buzz_bot
|
9f44c66e8ecb10e231f70989421f164d7a55029a
|
[
"MIT"
] | null | null | null |
import buzzbot.background_runner
import buzzbot.bot
import buzzbot.botUtilities
import buzzbot.commands
import buzzbot.cpu_core_counter
import buzzbot.crawler
import buzzbot.feedparser
import buzzbot.model
import buzzbot.searcher
import buzzbot.visitor
import logging
| 21.615385
| 33
| 0.839858
| 35
| 281
| 6.657143
| 0.457143
| 0.55794
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.124555
| 281
| 12
| 34
| 23.416667
| 0.947154
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
b7e7ac16123c851ced4ca6b652392b1dc338c8a7
| 230
|
py
|
Python
|
articles/admin.py
|
Ilyes-Hammadi/help-js
|
f2e7f6688631700c4ee270276ebc7d5aae26cc76
|
[
"MIT"
] | 11
|
2017-03-20T14:00:34.000Z
|
2019-09-17T13:10:37.000Z
|
articles/admin.py
|
Ilyes-Hammadi/help-js
|
f2e7f6688631700c4ee270276ebc7d5aae26cc76
|
[
"MIT"
] | null | null | null |
articles/admin.py
|
Ilyes-Hammadi/help-js
|
f2e7f6688631700c4ee270276ebc7d5aae26cc76
|
[
"MIT"
] | null | null | null |
from django.contrib import admin
# Register your models here.
from .models import Article, Session, Message, Topic
admin.site.register(Article)
admin.site.register(Session)
admin.site.register(Message)
admin.site.register(Topic)
| 25.555556
| 52
| 0.808696
| 32
| 230
| 5.8125
| 0.4375
| 0.193548
| 0.365591
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.091304
| 230
| 9
| 53
| 25.555556
| 0.889952
| 0.113043
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.333333
| 0
| 0.333333
| 0
| 0
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
b7edcfac71f48f38f01c5d9356c11558401cece8
| 123
|
py
|
Python
|
roles/ansible/tower/config-ansible-tower-ocp-ldap-ca/files/ldap.py
|
amattio/infra-ansible
|
27abbce8d3b4513b42cb07965f7fa4eecddd1bec
|
[
"Apache-2.0"
] | 190
|
2017-06-20T18:54:57.000Z
|
2022-03-30T03:51:58.000Z
|
roles/ansible/tower/config-ansible-tower-ocp-ldap-ca/files/ldap.py
|
amattio/infra-ansible
|
27abbce8d3b4513b42cb07965f7fa4eecddd1bec
|
[
"Apache-2.0"
] | 356
|
2017-05-31T16:21:20.000Z
|
2022-01-06T19:27:34.000Z
|
roles/ansible/tower/config-ansible-tower-ocp-ldap-ca/files/ldap.py
|
amattio/infra-ansible
|
27abbce8d3b4513b42cb07965f7fa4eecddd1bec
|
[
"Apache-2.0"
] | 138
|
2017-04-13T22:27:52.000Z
|
2022-02-17T19:05:28.000Z
|
AUTH_LDAP_GLOBAL_OPTIONS = {
ldap.OPT_X_TLS_REQUIRE_CERT: True,
ldap.OPT_X_TLS_CACERTFILE: "/etc/certs/ldap.pem"
}
| 24.6
| 52
| 0.756098
| 20
| 123
| 4.15
| 0.7
| 0.168675
| 0.192771
| 0.26506
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.130081
| 123
| 4
| 53
| 30.75
| 0.775701
| 0
| 0
| 0
| 0
| 0
| 0.154472
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
4d4495cbe0ec9f685050b4ade323d3ab7dfa8867
| 228
|
py
|
Python
|
lib/JumpScale/baselib/serializers/SerializerUJson.py
|
rudecs/jumpscale_core7
|
30c03f26f1cdad3edbb9d79d50fbada8acc974f5
|
[
"Apache-2.0"
] | 1
|
2015-10-26T10:38:13.000Z
|
2015-10-26T10:38:13.000Z
|
lib/JumpScale/baselib/serializers/SerializerUJson.py
|
rudecs/jumpscale_core7
|
30c03f26f1cdad3edbb9d79d50fbada8acc974f5
|
[
"Apache-2.0"
] | 4
|
2016-08-25T12:08:39.000Z
|
2018-04-12T12:36:01.000Z
|
lib/JumpScale/baselib/serializers/SerializerUJson.py
|
rudecs/jumpscale_core7
|
30c03f26f1cdad3edbb9d79d50fbada8acc974f5
|
[
"Apache-2.0"
] | 3
|
2016-03-08T07:49:34.000Z
|
2018-10-19T13:56:43.000Z
|
try:
import ujson as json
except ImportError:
import json
class SerializerUJson(object):
def dumps(self,obj):
return json.dumps(obj, ensure_ascii=False)
def loads(self,s):
return json.loads(s)
| 19
| 50
| 0.666667
| 31
| 228
| 4.870968
| 0.645161
| 0.13245
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.241228
| 228
| 11
| 51
| 20.727273
| 0.872832
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.222222
| false
| 0
| 0.333333
| 0.222222
| 0.888889
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 1
| 1
| 0
|
0
| 4
|
4d5a6b40fc0497a3aea222c1d392fa59b5a971d2
| 376
|
py
|
Python
|
flaskcrm/config.py
|
Sergey-Rogalskiy/flask_Corey-Schafer_study
|
926ae4ab324e8b328d0bf80a39d7777d36889503
|
[
"Unlicense"
] | null | null | null |
flaskcrm/config.py
|
Sergey-Rogalskiy/flask_Corey-Schafer_study
|
926ae4ab324e8b328d0bf80a39d7777d36889503
|
[
"Unlicense"
] | 1
|
2021-06-23T22:11:49.000Z
|
2021-06-23T22:11:49.000Z
|
flaskcrm/config.py
|
Sergey-Rogalskiy/flask_Corey-Schafer_study
|
926ae4ab324e8b328d0bf80a39d7777d36889503
|
[
"Unlicense"
] | null | null | null |
import os
class Config:
SECRET_KEY = os.environ.get('MY_SECRET_KEY')
SQLALCHEMY_DATABASE_URI = os.environ.get('MY_SQLALCHEMY_DATABASE_URI')
SQLALCHEMY_TRACK_MODIFICATIONS = False
MAIL_SERVER = 'smtp.googlemail.com'
MAIL_PORT = 587
MAIL_USE_TLS = True
MAIL_USERNAME = os.environ.get('MY_EMAIL')
MAIL_PASSWORD = os.environ.get('MY_EMAIL_PASS')
| 28.923077
| 74
| 0.736702
| 53
| 376
| 4.867925
| 0.54717
| 0.139535
| 0.186047
| 0.217054
| 0.147287
| 0
| 0
| 0
| 0
| 0
| 0
| 0.009554
| 0.164894
| 376
| 12
| 75
| 31.333333
| 0.812102
| 0
| 0
| 0
| 0
| 0
| 0.210106
| 0.069149
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0.1
| 0.1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
|
0
| 4
|
4d8575ee07533dfb9bc89943bf9ecd933886f873
| 621
|
py
|
Python
|
zmeiwork/movie/views.py
|
saturn-drm/learning_django_dev
|
e6941e86e298ccd193f82508657a5fc027dc50ef
|
[
"MIT"
] | null | null | null |
zmeiwork/movie/views.py
|
saturn-drm/learning_django_dev
|
e6941e86e298ccd193f82508657a5fc027dc50ef
|
[
"MIT"
] | null | null | null |
zmeiwork/movie/views.py
|
saturn-drm/learning_django_dev
|
e6941e86e298ccd193f82508657a5fc027dc50ef
|
[
"MIT"
] | null | null | null |
from django.shortcuts import render
from django.shortcuts import redirect
from django.contrib import messages
# Create your views here.
def index(request):
return render(request, 'index.html')
def login(request):
if request.method == 'POST':
username = request.POST.get('username')
password = request.POST.get('password')
return redirect('/movie/index')
return render(request, 'login.html')
def register(request):
return render(request, 'register.html')
def logout(request):
messages.add_message(request, messages.SUCCESS, 'Logged out!')
return redirect('/movie/index')
| 29.571429
| 66
| 0.711755
| 76
| 621
| 5.802632
| 0.421053
| 0.068027
| 0.129252
| 0.113379
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.165862
| 621
| 21
| 67
| 29.571429
| 0.851351
| 0.037037
| 0
| 0.125
| 0
| 0
| 0.147404
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0.0625
| 0.1875
| 0.125
| 0.75
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 1
| 0
|
0
| 4
|
4d8d7d652d3c3ccc2c7d6b6f70a41f862c7384ed
| 372
|
py
|
Python
|
imjoy_jupyter_extension/__init__.py
|
thewtex/imjoy-jupyter-extension
|
fefe5966c8f584ff08b94866230d98defe087f23
|
[
"MIT"
] | null | null | null |
imjoy_jupyter_extension/__init__.py
|
thewtex/imjoy-jupyter-extension
|
fefe5966c8f584ff08b94866230d98defe087f23
|
[
"MIT"
] | null | null | null |
imjoy_jupyter_extension/__init__.py
|
thewtex/imjoy-jupyter-extension
|
fefe5966c8f584ff08b94866230d98defe087f23
|
[
"MIT"
] | null | null | null |
# Jupyter Extension points
def _jupyter_nbextension_paths():
return [
dict(
section="notebook",
src="static",
# directory in the `nbextension/` namespace
dest="imjoy_jupyter_extension",
# _also_ in the `nbextension/` namespace
require="imjoy_jupyter_extension/imjoy-rpc",
)
]
| 28.615385
| 56
| 0.577957
| 33
| 372
| 6.242424
| 0.636364
| 0.23301
| 0.15534
| 0.242718
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.330645
| 372
| 12
| 57
| 31
| 0.827309
| 0.282258
| 0
| 0
| 0
| 0
| 0.26616
| 0.212928
| 0
| 0
| 0
| 0
| 0
| 1
| 0.111111
| true
| 0
| 0
| 0.111111
| 0.222222
| 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
| 1
| 0
| 0
| 1
| 0
| 0
|
0
| 4
|
4da9ab069eb4ffa84098ef95979bb910e67420fd
| 337
|
py
|
Python
|
ee/clickhouse/queries/__init__.py
|
thinhnguyenuit/posthog
|
4758e66790485587d29a617174158d07341342f8
|
[
"MIT"
] | 1
|
2021-04-09T09:13:23.000Z
|
2021-04-09T09:13:23.000Z
|
ee/clickhouse/queries/__init__.py
|
thinhnguyenuit/posthog
|
4758e66790485587d29a617174158d07341342f8
|
[
"MIT"
] | 1
|
2022-02-15T00:47:35.000Z
|
2022-02-15T00:47:35.000Z
|
ee/clickhouse/queries/__init__.py
|
thinhnguyenuit/posthog
|
4758e66790485587d29a617174158d07341342f8
|
[
"MIT"
] | 1
|
2021-09-08T19:45:03.000Z
|
2021-09-08T19:45:03.000Z
|
from ee.clickhouse.queries.funnels.funnel import ClickhouseFunnel
from .clickhouse_paths import ClickhousePaths
from .clickhouse_retention import ClickhouseRetention
from .clickhouse_session_recording import SessionRecording
from .clickhouse_stickiness import ClickhouseStickiness
from .trends.clickhouse_trends import ClickhouseTrends
| 42.125
| 65
| 0.896142
| 35
| 337
| 8.457143
| 0.542857
| 0.189189
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.074184
| 337
| 7
| 66
| 48.142857
| 0.948718
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
4dc7402922c5299ddcf6d844b9eafd3341f427a0
| 15
|
py
|
Python
|
{{ cookiecutter.repo_name }}/src/score.py
|
alexkyllo/workbench-py
|
c0f56450a416fda6905b2f8ee087d414bcc0dd95
|
[
"MIT"
] | null | null | null |
{{ cookiecutter.repo_name }}/src/score.py
|
alexkyllo/workbench-py
|
c0f56450a416fda6905b2f8ee087d414bcc0dd95
|
[
"MIT"
] | null | null | null |
{{ cookiecutter.repo_name }}/src/score.py
|
alexkyllo/workbench-py
|
c0f56450a416fda6905b2f8ee087d414bcc0dd95
|
[
"MIT"
] | null | null | null |
"""score.py"""
| 7.5
| 14
| 0.466667
| 2
| 15
| 3.5
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.066667
| 15
| 1
| 15
| 15
| 0.5
| 0.533333
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
4df767bfd0750704d808cb95cf30119f7b8ccc71
| 551
|
py
|
Python
|
salt/grains/rest_sample.py
|
vamshi98/salt-formulas
|
30edeadafd5d173efe4e1f767a8d562547ad128a
|
[
"Apache-2.0"
] | null | null | null |
salt/grains/rest_sample.py
|
vamshi98/salt-formulas
|
30edeadafd5d173efe4e1f767a8d562547ad128a
|
[
"Apache-2.0"
] | 1
|
2015-09-02T12:49:48.000Z
|
2015-09-02T19:22:58.000Z
|
salt/grains/rest_sample.py
|
vamshi98/salt-formulas
|
30edeadafd5d173efe4e1f767a8d562547ad128a
|
[
"Apache-2.0"
] | null | null | null |
# -*- coding: utf-8 -*-
'''
Generate baseline proxy minion grains
'''
__proxyenabled__ = ['rest_sample']
__virtualname__ = 'rest_sample'
def __virtual__():
if 'proxy' not in __opts__:
return False
else:
return __virtualname__
def kernel():
return {'kernel': 'proxy'}
def os():
return {'os': 'proxy'}
def location():
return {'location': 'In this darn virtual machine. Let me out!'}
def os_family():
return {'os_family': 'proxy'}
def os_data():
return {'os_data': 'funkyHttp release 1.0.a.4.g'}
| 15.742857
| 69
| 0.622505
| 68
| 551
| 4.661765
| 0.573529
| 0.07571
| 0.063091
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.009324
| 0.221416
| 551
| 34
| 70
| 16.205882
| 0.729604
| 0.108893
| 0
| 0
| 1
| 0
| 0.296066
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.352941
| false
| 0
| 0
| 0.294118
| 0.764706
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
4dfc3a7c23eee612a99d9b55ca10e226256aad35
| 215
|
py
|
Python
|
odoo-14.0/odoo/addons/test_auth_custom/__manifest__.py
|
Yomy1996/P1
|
59e24cdd5f7f82005fe15bd7a7ff54dd5364dd29
|
[
"CC-BY-3.0"
] | null | null | null |
odoo-14.0/odoo/addons/test_auth_custom/__manifest__.py
|
Yomy1996/P1
|
59e24cdd5f7f82005fe15bd7a7ff54dd5364dd29
|
[
"CC-BY-3.0"
] | null | null | null |
odoo-14.0/odoo/addons/test_auth_custom/__manifest__.py
|
Yomy1996/P1
|
59e24cdd5f7f82005fe15bd7a7ff54dd5364dd29
|
[
"CC-BY-3.0"
] | null | null | null |
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
{
'name': 'Tests that custom auth works & is not impaired by CORS',
'category': 'Hidden',
'data': [],
}
| 26.875
| 74
| 0.623256
| 29
| 215
| 4.62069
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.005988
| 0.223256
| 215
| 7
| 75
| 30.714286
| 0.796407
| 0.437209
| 0
| 0
| 0
| 0
| 0.644068
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
1275e79dcfc54a9a9bd0524391ded4602a038b25
| 92,999
|
py
|
Python
|
vivisect/impapi/windows/user_32.py
|
4k4xs4pH1r3/vivisect
|
dea425eed796176309a3be46936eb682598271aa
|
[
"ECL-2.0",
"Apache-2.0"
] | null | null | null |
vivisect/impapi/windows/user_32.py
|
4k4xs4pH1r3/vivisect
|
dea425eed796176309a3be46936eb682598271aa
|
[
"ECL-2.0",
"Apache-2.0"
] | null | null | null |
vivisect/impapi/windows/user_32.py
|
4k4xs4pH1r3/vivisect
|
dea425eed796176309a3be46936eb682598271aa
|
[
"ECL-2.0",
"Apache-2.0"
] | null | null | null |
# APIs for Windows 32-bit user32 library.
# Format: retval, rettype, callconv, exactname, arglist(type, name)
# arglist type is one of ['int', 'void *']
# arglist name is one of [None, 'funcptr', 'obj', 'ptr']
api_defs = {
'user32.main_entry':( 'int', None, 'stdcall', 'user32.main_entry', (('int', None), ('int', None), ('int', None)) ),
'user32.activatekeyboardlayout':( 'int', None, 'stdcall', 'user32.ActivateKeyboardLayout', (('int', None), ('int', None)) ),
'user32.adjustwindowrect':( 'int', None, 'stdcall', 'user32.AdjustWindowRect', (('void *', 'ptr'), ('int', None), ('int', None)) ),
'user32.adjustwindowrectex':( 'int', None, 'stdcall', 'user32.AdjustWindowRectEx', (('void *', 'ptr'), ('int', None), ('int', None), ('int', None)) ),
'user32.alignrects':( 'int', None, 'stdcall', 'user32.AlignRects', (('void *', 'ptr'), ('int', None), ('int', None), ('int', None)) ),
'user32.allowforegroundactivation':( 'int', None, 'cdecl', 'user32.AllowForegroundActivation', () ),
'user32.allowsetforegroundwindow':( 'int', None, 'stdcall', 'user32.AllowSetForegroundWindow', (('int', None),) ),
'user32.animatewindow':( 'int', None, 'stdcall', 'user32.AnimateWindow', ( ('int', None), ('int', None)) ),
'user32.anypopup':( 'int', None, 'cdecl', 'user32.AnyPopup', () ),
'user32.appendmenua':( 'int', None, 'stdcall', 'user32.AppendMenuA', ( ('int', None), ('int', None), ('int', None)) ),
'user32.appendmenuw':( 'int', None, 'stdcall', 'user32.AppendMenuW', ( ('int', None), ('int', None), ('int', None)) ),
'user32.arrangeiconicwindows':( 'int', None, 'stdcall', 'user32.ArrangeIconicWindows', (('int', None),) ),
'user32.attachthreadinput':( 'int', None, 'stdcall', 'user32.AttachThreadInput', (('int', None), ('int', None), ('int', None)) ),
'user32.begindeferwindowpos':( 'int', None, 'stdcall', 'user32.BeginDeferWindowPos', (('int', None),) ),
'user32.beginpaint':( 'int', None, 'stdcall', 'user32.BeginPaint', (('int', None), ('void *', 'ptr')) ),
'user32.blockinput':( 'int', None, 'stdcall', 'user32.BlockInput', (('int', None),) ),
'user32.bringwindowtotop':( 'int', None, 'stdcall', 'user32.BringWindowToTop', (('int', None),) ),
'user32.broadcastsystemmessage':( 'int', None, 'stdcall', 'user32.BroadcastSystemMessage', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.broadcastsystemmessagea':( 'int', None, 'stdcall', 'user32.BroadcastSystemMessageA', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.broadcastsystemmessageexa':( 'int', None, 'stdcall', 'user32.BroadcastSystemMessageExA', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.broadcastsystemmessageexw':( 'int', None, 'stdcall', 'user32.BroadcastSystemMessageExW', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.broadcastsystemmessagew':( 'int', None, 'stdcall', 'user32.BroadcastSystemMessageW', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.buildreasonarray':( 'int', None, 'stdcall', 'user32.BuildReasonArray', (('int', None), ('int', None), ('int', None)) ),
'user32.calcmenubar':( 'int', None, 'stdcall', 'user32.CalcMenuBar', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.callmsgfilter':( 'int', None, 'stdcall', 'user32.CallMsgFilter', (('int', None), ('int', None)) ),
'user32.callmsgfiltera':( 'int', None, 'stdcall', 'user32.CallMsgFilterA', (('int', None), ('int', None)) ),
'user32.callmsgfilterw':( 'int', None, 'stdcall', 'user32.CallMsgFilterW', (('void *', 'ptr'), ('int', None)) ),
'user32.callnexthookex':( 'int', None, 'stdcall', 'user32.CallNextHookEx', (('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.callwindowproca':( 'int', None, 'stdcall', 'user32.CallWindowProcA', ( ('void *', 'obj'), ('int', None), ('int', None), ('int', None)) ),
'user32.callwindowprocw':( 'int', None, 'stdcall', 'user32.CallWindowProcW', ( ('void *', 'obj'), ('int', None), ('int', None), ('int', None)) ),
'user32.cascadechildwindows':( 'int', None, 'stdcall', 'user32.CascadeChildWindows', ( ('int', None),) ),
'user32.cascadewindows':( 'int', None, 'stdcall', 'user32.CascadeWindows', ( ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.changeclipboardchain':( 'int', None, 'stdcall', 'user32.ChangeClipboardChain', (('int', None), ('int', None)) ),
'user32.changedisplaysettingsa':( 'int', None, 'stdcall', 'user32.ChangeDisplaySettingsA', (('int', None), ('int', None)) ),
'user32.changedisplaysettingsexa':( 'int', None, 'stdcall', 'user32.ChangeDisplaySettingsExA', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.changedisplaysettingsexw':( 'int', None, 'stdcall', 'user32.ChangeDisplaySettingsExW', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.changedisplaysettingsw':( 'int', None, 'stdcall', 'user32.ChangeDisplaySettingsW', (('int', None), ('int', None)) ),
'user32.changemenua':( 'int', None, 'stdcall', 'user32.ChangeMenuA', ( ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.changemenuw':( 'int', None, 'stdcall', 'user32.ChangeMenuW', ( ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.charlowera':( 'int', None, 'stdcall', 'user32.CharLowerA', (('int', None),) ),
'user32.charlowerbuffa':( 'int', None, 'stdcall', 'user32.CharLowerBuffA', (('int', None), ('int', None)) ),
'user32.charlowerbuffw':( 'int', None, 'stdcall', 'user32.CharLowerBuffW', (('void *', 'ptr'), ('int', None)) ),
'user32.charlowerw':( 'int', None, 'stdcall', 'user32.CharLowerW', (('void *', 'ptr'),) ),
'user32.charnexta':( 'int', None, 'stdcall', 'user32.CharNextA', (('int', None),) ),
'user32.charnextexa':( 'int', None, 'stdcall', 'user32.CharNextExA', (('int', None), ('int', None), ('int', None)) ),
'user32.charnextw':( 'int', None, 'stdcall', 'user32.CharNextW', (('int', None),) ),
'user32.charpreva':( 'int', None, 'stdcall', 'user32.CharPrevA', (('int', None), ('int', None)) ),
'user32.charprevexa':( 'int', None, 'stdcall', 'user32.CharPrevExA', (('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.charprevw':( 'int', None, 'stdcall', 'user32.CharPrevW', (('int', None), ('int', None)) ),
'user32.chartooema':( 'int', None, 'stdcall', 'user32.CharToOemA', (('int', None), ('int', None)) ),
'user32.chartooembuffa':( 'int', None, 'stdcall', 'user32.CharToOemBuffA', (('int', None), ('int', None), ('int', None)) ),
'user32.chartooembuffw':( 'int', None, 'stdcall', 'user32.CharToOemBuffW', (('int', None), ('int', None), ('int', None)) ),
'user32.chartooemw':( 'int', None, 'stdcall', 'user32.CharToOemW', (('int', None), ('int', None)) ),
'user32.charuppera':( 'int', None, 'stdcall', 'user32.CharUpperA', (('int', None),) ),
'user32.charupperbuffa':( 'int', None, 'stdcall', 'user32.CharUpperBuffA', (('int', None), ('int', None)) ),
'user32.charupperbuffw':( 'int', None, 'stdcall', 'user32.CharUpperBuffW', (('void *', 'ptr'), ('int', None)) ),
'user32.charupperw':( 'int', None, 'stdcall', 'user32.CharUpperW', (('void *', 'ptr'),) ),
'user32.checkdlgbutton':( 'int', None, 'stdcall', 'user32.CheckDlgButton', ( ('int', None), ('int', None)) ),
'user32.checkmenuitem':( 'int', None, 'stdcall', 'user32.CheckMenuItem', ( ('int', None), ('int', None)) ),
'user32.checkmenuradioitem':( 'int', None, 'stdcall', 'user32.CheckMenuRadioItem', ( ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.checkradiobutton':( 'int', None, 'stdcall', 'user32.CheckRadioButton', ( ('int', None), ('int', None), ('int', None)) ),
'user32.childwindowfrompoint':( 'int', None, 'stdcall', 'user32.ChildWindowFromPoint', ( ('int', None), ('int', None)) ),
'user32.childwindowfrompointex':( 'int', None, 'stdcall', 'user32.ChildWindowFromPointEx', (('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.cliimmsethotkey':( 'int', None, 'stdcall', 'user32.CliImmSetHotKey', (('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.clientthreadsetup':( 'int', None, 'cdecl', 'user32.ClientThreadSetup', () ),
'user32.clienttoscreen':( 'int', None, 'stdcall', 'user32.ClientToScreen', ( ('void *', 'ptr'),) ),
'user32.clipcursor':( 'int', None, 'stdcall', 'user32.ClipCursor', (('int', None),) ),
'user32.closeclipboard':( 'int', None, 'cdecl', 'user32.CloseClipboard', () ),
'user32.closedesktop':( 'int', None, 'stdcall', 'user32.CloseDesktop', (('int', None),) ),
'user32.closewindow':( 'int', None, 'stdcall', 'user32.CloseWindow', () ),
'user32.closewindowstation':( 'int', None, 'stdcall', 'user32.CloseWindowStation', (('int', None),) ),
'user32.copyacceleratortablea':( 'int', None, 'stdcall', 'user32.CopyAcceleratorTableA', (('int', None), ('int', None), ('int', None)) ),
'user32.copyacceleratortablew':( 'int', None, 'stdcall', 'user32.CopyAcceleratorTableW', (('int', None), ('int', None), ('int', None)) ),
'user32.copyicon':( 'int', None, 'stdcall', 'user32.CopyIcon', (('int', None),) ),
'user32.copyimage':( 'int', None, 'stdcall', 'user32.CopyImage', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.copyrect':( 'int', None, 'stdcall', 'user32.CopyRect', (('int', None), ('int', None)) ),
'user32.countclipboardformats':( 'int', None, 'cdecl', 'user32.CountClipboardFormats', () ),
'user32.createacceleratortablea':( 'int', None, 'stdcall', 'user32.CreateAcceleratorTableA', (('int', None), ('int', None)) ),
'user32.createacceleratortablew':( 'int', None, 'stdcall', 'user32.CreateAcceleratorTableW', (('int', None), ('int', None)) ),
'user32.createcaret':( 'int', None, 'stdcall', 'user32.CreateCaret', (('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.createcursor':( 'int', None, 'stdcall', 'user32.CreateCursor', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.createdesktopa':( 'int', None, 'stdcall', 'user32.CreateDesktopA', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.createdesktopw':( 'int', None, 'stdcall', 'user32.CreateDesktopW', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.createdialogindirectparama':( 'int', None, 'stdcall', 'user32.CreateDialogIndirectParamA', (('FileNameW', None), ('int', None), ('void *', 'obj'), ('int', None), ('void *', 'obj')) ),
'user32.createdialogindirectparamaorw':( 'int', None, 'stdcall', 'user32.CreateDialogIndirectParamAorW', (('FileNameW', None), ('int', None), ('void *', 'obj'), ('int', None), ('void *', 'obj'), ('int', None)) ),
'user32.createdialogindirectparamw':( 'int', None, 'stdcall', 'user32.CreateDialogIndirectParamW', (('FileNameW', None), ('int', None), ('void *', 'obj'), ('int', None), ('void *', 'obj')) ),
'user32.createdialogparama':( 'int', None, 'stdcall', 'user32.CreateDialogParamA', (('FileNameW', None), ('int', None), ('void *', 'obj'), ('int', None), ('void *', 'obj')) ),
'user32.createdialogparamw':( 'int', None, 'stdcall', 'user32.CreateDialogParamW', (('FileNameW', None), ('int', None), ('void *', 'obj'), ('int', None), ('void *', 'obj')) ),
'user32.createicon':( 'int', None, 'stdcall', 'user32.CreateIcon', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.createiconfromresource':( 'int', None, 'stdcall', 'user32.CreateIconFromResource', (('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.createiconfromresourceex':( 'int', None, 'stdcall', 'user32.CreateIconFromResourceEx', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.createiconindirect':( 'int', None, 'stdcall', 'user32.CreateIconIndirect', (('void *', 'ptr'),) ),
'user32.createmdiwindowa':( 'int', None, 'stdcall', 'user32.CreateMDIWindowA', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('void *', 'obj'), ('int', None), ('int', None)) ),
'user32.createmdiwindoww':( 'int', None, 'stdcall', 'user32.CreateMDIWindowW', (('void *', 'ptr'), ('void *', 'ptr'), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('void *', 'obj'), ('int', None), ('int', None)) ),
'user32.createmenu':( 'int', None, 'cdecl', 'user32.CreateMenu', () ),
'user32.createpopupmenu':( 'int', None, 'cdecl', 'user32.CreatePopupMenu', () ),
'user32.createsystemthreads':( 'int', None, 'stdcall', 'user32.CreateSystemThreads', (('int', None), ('int', None)) ),
'user32.createwindowexa':( 'int', None, 'stdcall', 'user32.CreateWindowExA', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('void *', 'obj'), ('int', None), ('int', None), ('int', None)) ),
'user32.createwindowexw':( 'int', None, 'stdcall', 'user32.CreateWindowExW', (('int', None), ('void *', 'ptr'), ('void *', 'ptr'), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('void *', 'obj'), ('int', None), ('int', None), ('int', None)) ),
'user32.createwindowstationa':( 'int', None, 'stdcall', 'user32.CreateWindowStationA', (('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.createwindowstationw':( 'int', None, 'stdcall', 'user32.CreateWindowStationW', (('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.csrbroadcastsystemmessageexw':( 'int', None, 'stdcall', 'user32.CsrBroadcastSystemMessageExW', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.ctxinituser32':( 'int', None, 'cdecl', 'user32.CtxInitUser32', () ),
'user32.ddeabandontransaction':( 'int', None, 'stdcall', 'user32.DdeAbandonTransaction', (('int', None), ('int', None), ('int', None)) ),
'user32.ddeaccessdata':( 'int', None, 'stdcall', 'user32.DdeAccessData', (('int', None), ('int', None)) ),
'user32.ddeadddata':( 'int', None, 'stdcall', 'user32.DdeAddData', (('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.ddeclienttransaction':( 'int', None, 'stdcall', 'user32.DdeClientTransaction', (('int', None), ('DWORD', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.ddecmpstringhandles':( 'int', None, 'stdcall', 'user32.DdeCmpStringHandles', (('int', None), ('int', None)) ),
'user32.ddeconnect':( 'int', None, 'stdcall', 'user32.DdeConnect', (('int', None), ('int', None), ('int', None), ('void *', 'ptr')) ),
'user32.ddeconnectlist':( 'int', None, 'stdcall', 'user32.DdeConnectList', (('int', None), ('int', None), ('int', None), ('int', None), ('void *', 'ptr')) ),
'user32.ddecreatedatahandle':( 'int', None, 'stdcall', 'user32.DdeCreateDataHandle', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.ddecreatestringhandlea':( 'int', None, 'stdcall', 'user32.DdeCreateStringHandleA', (('int', None), ('int', None), ('int', None)) ),
'user32.ddecreatestringhandlew':( 'int', None, 'stdcall', 'user32.DdeCreateStringHandleW', (('int', None), ('int', None), ('int', None)) ),
'user32.ddedisconnect':( 'int', None, 'stdcall', 'user32.DdeDisconnect', (('int', None),) ),
'user32.ddedisconnectlist':( 'int', None, 'stdcall', 'user32.DdeDisconnectList', (('int', None),) ),
'user32.ddeenablecallback':( 'int', None, 'stdcall', 'user32.DdeEnableCallback', (('int', None), ('int', None), ('void *', 'obj')) ),
'user32.ddefreedatahandle':( 'int', None, 'stdcall', 'user32.DdeFreeDataHandle', (('int', None),) ),
'user32.ddefreestringhandle':( 'int', None, 'stdcall', 'user32.DdeFreeStringHandle', (('int', None), ('int', None)) ),
'user32.ddegetdata':( 'int', None, 'stdcall', 'user32.DdeGetData', (('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.ddegetlasterror':( 'int', None, 'stdcall', 'user32.DdeGetLastError', (('int', None),) ),
'user32.ddegetqualityofservice':( 'int', None, 'stdcall', 'user32.DdeGetQualityOfService', (('int', None), ('int', None), ('void *', 'ptr')) ),
'user32.ddeimpersonateclient':( 'int', None, 'stdcall', 'user32.DdeImpersonateClient', (('int', None),) ),
'user32.ddeinitializea':( 'int', None, 'stdcall', 'user32.DdeInitializeA', (('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.ddeinitializew':( 'int', None, 'stdcall', 'user32.DdeInitializeW', (('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.ddekeepstringhandle':( 'int', None, 'stdcall', 'user32.DdeKeepStringHandle', (('int', None), ('int', None)) ),
'user32.ddenameservice':( 'int', None, 'stdcall', 'user32.DdeNameService', (('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.ddepostadvise':( 'int', None, 'stdcall', 'user32.DdePostAdvise', (('int', None), ('int', None), ('int', None)) ),
'user32.ddequeryconvinfo':( 'int', None, 'stdcall', 'user32.DdeQueryConvInfo', (('int', None), ('int', None), ('int', None)) ),
'user32.ddequerynextserver':( 'int', None, 'stdcall', 'user32.DdeQueryNextServer', (('int', None), ('int', None)) ),
'user32.ddequerystringa':( 'int', None, 'stdcall', 'user32.DdeQueryStringA', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.ddequerystringw':( 'int', None, 'stdcall', 'user32.DdeQueryStringW', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.ddereconnect':( 'int', None, 'stdcall', 'user32.DdeReconnect', (('int', None),) ),
'user32.ddesetqualityofservice':( 'int', None, 'stdcall', 'user32.DdeSetQualityOfService', (('int', None), ('int', None), ('int', None)) ),
'user32.ddesetuserhandle':( 'int', None, 'stdcall', 'user32.DdeSetUserHandle', (('int', None), ('int', None), ('int', None)) ),
'user32.ddeunaccessdata':( 'int', None, 'stdcall', 'user32.DdeUnaccessData', (('int', None),) ),
'user32.ddeuninitialize':( 'int', None, 'stdcall', 'user32.DdeUninitialize', (('int', None),) ),
'user32.defdlgproca':( 'int', None, 'stdcall', 'user32.DefDlgProcA', ( ('void *', 'obj'), ('void *', 'obj'), ('void *', 'obj')) ),
'user32.defdlgprocw':( 'int', None, 'stdcall', 'user32.DefDlgProcW', ( ('void *', 'obj'), ('void *', 'obj'), ('void *', 'obj')) ),
'user32.defframeproca':( 'int', None, 'stdcall', 'user32.DefFrameProcA', ( ('void *', 'obj'), ('void *', 'obj'), ('int', None), ('void *', 'obj')) ),
'user32.defframeprocw':( 'int', None, 'stdcall', 'user32.DefFrameProcW', ( ('void *', 'obj'), ('void *', 'obj'), ('int', None), ('void *', 'obj')) ),
'user32.defmdichildproca':( 'int', None, 'stdcall', 'user32.DefMDIChildProcA', ( ('void *', 'obj'), ('int', None), ('void *', 'obj')) ),
'user32.defmdichildprocw':( 'int', None, 'stdcall', 'user32.DefMDIChildProcW', ( ('void *', 'obj'), ('int', None), ('void *', 'obj')) ),
'user32.defrawinputproc':( 'int', None, 'stdcall', 'user32.DefRawInputProc', (('int', None), ('int', None), ('int', None)) ),
'user32.defwindowproca':( 'int', None, 'stdcall', 'user32.DefWindowProcA', ( ('void *', 'obj'), ('int', None), ('void *', 'obj')) ),
'user32.defwindowprocw':( 'int', None, 'stdcall', 'user32.DefWindowProcW', ( ('void *', 'obj'), ('int', None), ('void *', 'obj')) ),
'user32.deferwindowpos':( 'int', None, 'stdcall', 'user32.DeferWindowPos', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.deletemenu':( 'int', None, 'stdcall', 'user32.DeleteMenu', (('int', None), ('int', None), ('int', None)) ),
'user32.deregistershellhookwindow':( 'int', None, 'stdcall', 'user32.DeregisterShellHookWindow', (('int', None),) ),
'user32.destroyacceleratortable':( 'int', None, 'stdcall', 'user32.DestroyAcceleratorTable', (('int', None),) ),
'user32.destroycaret':( 'int', None, 'cdecl', 'user32.DestroyCaret', () ),
'user32.destroycursor':( 'int', None, 'stdcall', 'user32.DestroyCursor', (('int', None),) ),
'user32.destroyicon':( 'int', None, 'stdcall', 'user32.DestroyIcon', (('int', None),) ),
'user32.destroymenu':( 'int', None, 'stdcall', 'user32.DestroyMenu', (('int', None),) ),
'user32.destroyreasons':( 'int', None, 'stdcall', 'user32.DestroyReasons', (('int', None),) ),
'user32.destroywindow':( 'int', None, 'stdcall', 'user32.DestroyWindow', (('int', None),) ),
'user32.deviceeventworker':( 'int', None, 'stdcall', 'user32.DeviceEventWorker', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.dialogboxindirectparama':( 'int', None, 'stdcall', 'user32.DialogBoxIndirectParamA', (('FileNameW', None), ('int', None), ('void *', 'obj'), ('int', None), ('void *', 'obj')) ),
'user32.dialogboxindirectparamaorw':( 'int', None, 'stdcall', 'user32.DialogBoxIndirectParamAorW', (('FileNameW', None), ('int', None), ('void *', 'obj'), ('int', None), ('void *', 'obj'), ('int', None)) ),
'user32.dialogboxindirectparamw':( 'int', None, 'stdcall', 'user32.DialogBoxIndirectParamW', (('FileNameW', None), ('int', None), ('void *', 'obj'), ('int', None), ('void *', 'obj')) ),
'user32.dialogboxparama':( 'int', None, 'stdcall', 'user32.DialogBoxParamA', (('FileNameW', None), ('int', None), ('void *', 'obj'), ('int', None), ('void *', 'obj')) ),
'user32.dialogboxparamw':( 'int', None, 'stdcall', 'user32.DialogBoxParamW', (('FileNameW', None), ('int', None), ('void *', 'obj'), ('int', None), ('void *', 'obj')) ),
'user32.disableprocesswindowsghosting':( 'int', None, 'cdecl', 'user32.DisableProcessWindowsGhosting', () ),
'user32.dispatchmessagea':( 'int', None, 'stdcall', 'user32.DispatchMessageA', (('int', None),) ),
'user32.dispatchmessagew':( 'int', None, 'stdcall', 'user32.DispatchMessageW', (('void *', 'ptr'),) ),
'user32.displayexitwindowswarnings':( 'int', None, 'stdcall', 'user32.DisplayExitWindowsWarnings', (('int', None),) ),
'user32.dlgdirlista':( 'int', None, 'stdcall', 'user32.DlgDirListA', ( ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.dlgdirlistcomboboxa':( 'int', None, 'stdcall', 'user32.DlgDirListComboBoxA', ( ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.dlgdirlistcomboboxw':( 'int', None, 'stdcall', 'user32.DlgDirListComboBoxW', ( ('void *', 'obj'), ('int', None), ('int', None), ('int', None)) ),
'user32.dlgdirlistw':( 'int', None, 'stdcall', 'user32.DlgDirListW', ( ('void *', 'obj'), ('int', None), ('int', None), ('int', None)) ),
'user32.dlgdirselectcomboboxexa':( 'int', None, 'stdcall', 'user32.DlgDirSelectComboBoxExA', ( ('int', None), ('int', None), ('int', None)) ),
'user32.dlgdirselectcomboboxexw':( 'int', None, 'stdcall', 'user32.DlgDirSelectComboBoxExW', ( ('void *', 'ptr'), ('int', None), ('int', None)) ),
'user32.dlgdirselectexa':( 'int', None, 'stdcall', 'user32.DlgDirSelectExA', ( ('int', None), ('int', None), ('int', None)) ),
'user32.dlgdirselectexw':( 'int', None, 'stdcall', 'user32.DlgDirSelectExW', ( ('void *', 'ptr'), ('int', None), ('int', None)) ),
'user32.dragdetect':( 'int', None, 'stdcall', 'user32.DragDetect', (('int', None), ('int', None), ('int', None)) ),
'user32.dragobject':( 'int', None, 'stdcall', 'user32.DragObject', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.drawanimatedrects':( 'int', None, 'stdcall', 'user32.DrawAnimatedRects', (('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.drawcaption':( 'int', None, 'stdcall', 'user32.DrawCaption', (('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.drawcaptiontempa':( 'int', None, 'stdcall', 'user32.DrawCaptionTempA', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('void *', 'ptr'), ('int', None)) ),
'user32.drawcaptiontempw':( 'int', None, 'stdcall', 'user32.DrawCaptionTempW', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.drawedge':( 'int', None, 'stdcall', 'user32.DrawEdge', (('int', None), ('void *', 'ptr'), ('int', None), ('int', None)) ),
'user32.drawfocusrect':( 'int', None, 'stdcall', 'user32.DrawFocusRect', (('int', None), ('void *', 'ptr')) ),
'user32.drawframe':( 'int', None, 'stdcall', 'user32.DrawFrame', (('int', None), ('void *', 'ptr'), ('int', None), ('int', None)) ),
'user32.drawframecontrol':( 'int', None, 'stdcall', 'user32.DrawFrameControl', (('int', None), ('void *', 'ptr'), ('int', None), ('int', None)) ),
'user32.drawicon':( 'int', None, 'stdcall', 'user32.DrawIcon', (('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.drawiconex':( 'int', None, 'stdcall', 'user32.DrawIconEx', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.drawmenubar':( 'int', None, 'stdcall', 'user32.DrawMenuBar', (('int', None),) ),
'user32.drawmenubartemp':( 'int', None, 'stdcall', 'user32.DrawMenuBarTemp', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.drawstatea':( 'int', None, 'stdcall', 'user32.DrawStateA', (('int', None), ('int', None), ('void *', 'funcptr'), ('void *', 'ptr'), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.drawstatew':( 'int', None, 'stdcall', 'user32.DrawStateW', (('int', None), ('int', None), ('void *', 'funcptr'), ('void *', 'ptr'), ('DWORD', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.drawtexta':( 'int', None, 'stdcall', 'user32.DrawTextA', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.drawtextexa':( 'int', None, 'stdcall', 'user32.DrawTextExA', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('void *', 'ptr')) ),
'user32.drawtextexw':( 'int', None, 'stdcall', 'user32.DrawTextExW', (('int', None), ('int', None), ('int', None), ('void *', 'ptr'), ('int', None), ('void *', 'ptr')) ),
'user32.drawtextw':( 'int', None, 'stdcall', 'user32.DrawTextW', (('int', None), ('int', None), ('int', None), ('void *', 'ptr'), ('int', None)) ),
'user32.editwndproc':( 'int', None, 'stdcall', 'user32.EditWndProc', (('int', None), ('void *', 'obj'), ('void *', 'obj'), ('void *', 'obj')) ),
'user32.emptyclipboard':( 'int', None, 'cdecl', 'user32.EmptyClipboard', () ),
'user32.enablemenuitem':( 'int', None, 'stdcall', 'user32.EnableMenuItem', ( ('int', None), ('int', None)) ),
'user32.enablescrollbar':( 'int', None, 'stdcall', 'user32.EnableScrollBar', (('int', None), ('int', None), ('int', None)) ),
'user32.enablewindow':( 'int', None, 'stdcall', 'user32.EnableWindow', (('int', None), ('int', None)) ),
'user32.enddeferwindowpos':( 'int', None, 'stdcall', 'user32.EndDeferWindowPos', (('int', None),) ),
'user32.enddialog':( 'int', None, 'stdcall', 'user32.EndDialog', ( ('int', None),) ),
'user32.endmenu':( 'int', None, 'cdecl', 'user32.EndMenu', () ),
'user32.endpaint':( 'int', None, 'stdcall', 'user32.EndPaint', (('int', None), ('void *', 'ptr')) ),
'user32.endtask':( 'int', None, 'stdcall', 'user32.EndTask', (('int', None), ('int', None), ('int', None)) ),
'user32.enterreadermodehelper':( 'int', None, 'stdcall', 'user32.EnterReaderModeHelper', () ),
'user32.enumchildwindows':( 'int', None, 'stdcall', 'user32.EnumChildWindows', (('int', None), ('void *', 'funcptr'), ('void *', 'ptr')) ),
'user32.enumclipboardformats':( 'int', None, 'stdcall', 'user32.EnumClipboardFormats', (('int', None),) ),
'user32.enumdesktopwindows':( 'int', None, 'stdcall', 'user32.EnumDesktopWindows', (('int', None), ('void *', 'funcptr'), ('int', None)) ),
'user32.enumdesktopsa':( 'int', None, 'stdcall', 'user32.EnumDesktopsA', (('int', None), ('void *', 'funcptr'), ('int', None)) ),
'user32.enumdesktopsw':( 'int', None, 'stdcall', 'user32.EnumDesktopsW', (('int', None), ('void *', 'funcptr'), ('int', None)) ),
'user32.enumdisplaydevicesa':( 'int', None, 'stdcall', 'user32.EnumDisplayDevicesA', (('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.enumdisplaydevicesw':( 'int', None, 'stdcall', 'user32.EnumDisplayDevicesW', (('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.enumdisplaymonitors':( 'int', None, 'stdcall', 'user32.EnumDisplayMonitors', (('int', None), ('int', None), ('int', None), ('void *', 'ptr')) ),
'user32.enumdisplaysettingsa':( 'int', None, 'stdcall', 'user32.EnumDisplaySettingsA', (('int', None), ('int', None), ('int', None)) ),
'user32.enumdisplaysettingsexa':( 'int', None, 'stdcall', 'user32.EnumDisplaySettingsExA', (('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.enumdisplaysettingsexw':( 'int', None, 'stdcall', 'user32.EnumDisplaySettingsExW', (('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.enumdisplaysettingsw':( 'int', None, 'stdcall', 'user32.EnumDisplaySettingsW', (('int', None), ('int', None), ('int', None)) ),
'user32.enumpropsa':( 'int', None, 'stdcall', 'user32.EnumPropsA', (('int', None), ('void *', 'funcptr')) ),
'user32.enumpropsexa':( 'int', None, 'stdcall', 'user32.EnumPropsExA', (('int', None), ('void *', 'funcptr'), ('int', None)) ),
'user32.enumpropsexw':( 'int', None, 'stdcall', 'user32.EnumPropsExW', (('int', None), ('void *', 'funcptr'), ('int', None)) ),
'user32.enumpropsw':( 'int', None, 'stdcall', 'user32.EnumPropsW', (('int', None), ('void *', 'funcptr')) ),
'user32.enumthreadwindows':( 'int', None, 'stdcall', 'user32.EnumThreadWindows', (('int', None), ('void *', 'funcptr'), ('int', None)) ),
'user32.enumwindowstationsa':( 'int', None, 'stdcall', 'user32.EnumWindowStationsA', (('void *', 'funcptr'), ('int', None)) ),
'user32.enumwindowstationsw':( 'int', None, 'stdcall', 'user32.EnumWindowStationsW', (('void *', 'funcptr'), ('int', None)) ),
'user32.enumwindows':( 'int', None, 'stdcall', 'user32.EnumWindows', (('void *', 'funcptr'), ('void *', 'ptr')) ),
'user32.equalrect':( 'int', None, 'stdcall', 'user32.EqualRect', (('int', None), ('int', None)) ),
'user32.excludeupdatergn':( 'int', None, 'stdcall', 'user32.ExcludeUpdateRgn', (('int', None), ('int', None)) ),
'user32.exitwindowsex':( 'int', None, 'stdcall', 'user32.ExitWindowsEx', ( ('int', None), ('int', None)) ),
'user32.fillrect':( 'int', None, 'stdcall', 'user32.FillRect', (('int', None), ('void *', 'ptr'), ('int', None)) ),
'user32.findwindowa':( 'int', None, 'stdcall', 'user32.FindWindowA', (('int', None), ('int', None)) ),
'user32.findwindowexa':( 'int', None, 'stdcall', 'user32.FindWindowExA', (('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.findwindowexw':( 'int', None, 'stdcall', 'user32.FindWindowExW', (('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.findwindoww':( 'int', None, 'stdcall', 'user32.FindWindowW', (('int', None), ('int', None)) ),
'user32.flashwindow':( 'int', None, 'stdcall', 'user32.FlashWindow', (('int', None), ('int', None)) ),
'user32.flashwindowex':( 'int', None, 'stdcall', 'user32.FlashWindowEx', (('void *', 'ptr'),) ),
'user32.framerect':( 'int', None, 'stdcall', 'user32.FrameRect', (('int', None), ('int', None), ('int', None)) ),
'user32.freeddelparam':( 'int', None, 'stdcall', 'user32.FreeDDElParam', (('int', None), ('void *', 'ptr')) ),
'user32.getactivewindow':( 'int', None, 'cdecl', 'user32.GetActiveWindow', () ),
'user32.getalttabinfo':( 'int', None, 'stdcall', 'user32.GetAltTabInfo', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.getalttabinfoa':( 'int', None, 'stdcall', 'user32.GetAltTabInfoA', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.getalttabinfow':( 'int', None, 'stdcall', 'user32.GetAltTabInfoW', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.getancestor':( 'int', None, 'stdcall', 'user32.GetAncestor', (('int', None), ('int', None)) ),
'user32.getappcompatflags':( 'int', None, 'stdcall', 'user32.GetAppCompatFlags', (('int', None),) ),
'user32.getappcompatflags2':( 'int', None, 'stdcall', 'user32.GetAppCompatFlags2', (('int', None),) ),
'user32.getasynckeystate':( 'int', None, 'stdcall', 'user32.GetAsyncKeyState', (('int', None),) ),
'user32.getcapture':( 'int', None, 'cdecl', 'user32.GetCapture', () ),
'user32.getcaretblinktime':( 'int', None, 'cdecl', 'user32.GetCaretBlinkTime', () ),
'user32.getcaretpos':( 'int', None, 'stdcall', 'user32.GetCaretPos', (('void *', 'ptr'),) ),
'user32.getclassinfoa':( 'int', None, 'stdcall', 'user32.GetClassInfoA', (('int', None), ('int', None), ('int', None)) ),
'user32.getclassinfoexa':( 'int', None, 'stdcall', 'user32.GetClassInfoExA', (('int', None), ('int', None), ('void *', 'ptr')) ),
'user32.getclassinfoexw':( 'int', None, 'stdcall', 'user32.GetClassInfoExW', (('int', None), ('int', None), ('void *', 'ptr')) ),
'user32.getclassinfow':( 'int', None, 'stdcall', 'user32.GetClassInfoW', (('int', None), ('void *', 'ptr'), ('void *', 'ptr')) ),
'user32.getclasslonga':( 'int', None, 'stdcall', 'user32.GetClassLongA', ( ('int', None),) ),
'user32.getclasslongw':( 'int', None, 'stdcall', 'user32.GetClassLongW', ( ('int', None),) ),
'user32.getclassnamea':( 'int', None, 'stdcall', 'user32.GetClassNameA', ( ('int', None), ('int', None)) ),
'user32.getclassnamew':( 'int', None, 'stdcall', 'user32.GetClassNameW', (('int', None), ('int', None), ('int', None)) ),
'user32.getclassword':( 'int', None, 'stdcall', 'user32.GetClassWord', ( ('int', None),) ),
'user32.getclientrect':( 'int', None, 'stdcall', 'user32.GetClientRect', ( ('void *', 'ptr'),) ),
'user32.getclipcursor':( 'int', None, 'stdcall', 'user32.GetClipCursor', (('int', None),) ),
'user32.getclipboarddata':( 'int', None, 'stdcall', 'user32.GetClipboardData', ( ('int', None),) ),
'user32.getclipboardformatnamea':( 'int', None, 'stdcall', 'user32.GetClipboardFormatNameA', (('int', None), ('int', None), ('int', None)) ),
'user32.getclipboardformatnamew':( 'int', None, 'stdcall', 'user32.GetClipboardFormatNameW', (('int', None), ('int', None), ('int', None)) ),
'user32.getclipboardowner':( 'int', None, 'cdecl', 'user32.GetClipboardOwner', () ),
'user32.getclipboardsequencenumber':( 'int', None, 'cdecl', 'user32.GetClipboardSequenceNumber', () ),
'user32.getclipboardviewer':( 'int', None, 'cdecl', 'user32.GetClipboardViewer', () ),
'user32.getcomboboxinfo':( 'int', None, 'stdcall', 'user32.GetComboBoxInfo', (('int', None), ('int', None)) ),
'user32.getcursor':( 'int', None, 'cdecl', 'user32.GetCursor', () ),
'user32.getcursorframeinfo':( 'int', None, 'stdcall', 'user32.GetCursorFrameInfo', (('int', None), ('int', None), ('int', None), ('int', None), ('void *', 'ptr')) ),
'user32.getcursorinfo':( 'int', None, 'stdcall', 'user32.GetCursorInfo', (('int', None),) ),
'user32.getcursorpos':( 'int', None, 'stdcall', 'user32.GetCursorPos', (('void *', 'ptr'),) ),
'user32.getdc':( 'int', None, 'stdcall', 'user32.GetDC', (('int', None),) ),
'user32.getdcex':( 'int', None, 'stdcall', 'user32.GetDCEx', (('int', None), ('int', None), ('int', None)) ),
'user32.getdesktopwindow':( 'int', None, 'cdecl', 'user32.GetDesktopWindow', () ),
'user32.getdialogbaseunits':( 'int', None, 'cdecl', 'user32.GetDialogBaseUnits', () ),
'user32.getdlgctrlid':( 'int', None, 'stdcall', 'user32.GetDlgCtrlID', () ),
'user32.getdlgitem':( 'int', None, 'stdcall', 'user32.GetDlgItem', ( ('int', None),) ),
'user32.getdlgitemint':( 'int', None, 'stdcall', 'user32.GetDlgItemInt', ( ('int', None), ('int', None), ('int', None)) ),
'user32.getdlgitemtexta':( 'int', None, 'stdcall', 'user32.GetDlgItemTextA', ( ('int', None), ('void *', 'obj'), ('int', None)) ),
'user32.getdlgitemtextw':( 'int', None, 'stdcall', 'user32.GetDlgItemTextW', ( ('int', None), ('void *', 'obj'), ('int', None)) ),
'user32.getdoubleclicktime':( 'int', None, 'cdecl', 'user32.GetDoubleClickTime', () ),
'user32.getfocus':( 'int', None, 'cdecl', 'user32.GetFocus', () ),
'user32.getforegroundwindow':( 'int', None, 'cdecl', 'user32.GetForegroundWindow', () ),
'user32.getguithreadinfo':( 'int', None, 'stdcall', 'user32.GetGUIThreadInfo', (('int', None), ('int', None)) ),
'user32.getguiresources':( 'int', None, 'stdcall', 'user32.GetGuiResources', (('int', None), ('int', None)) ),
'user32.geticoninfo':( 'int', None, 'stdcall', 'user32.GetIconInfo', (('int', None), ('void *', 'ptr')) ),
'user32.getinputdesktop':( 'int', None, 'cdecl', 'user32.GetInputDesktop', () ),
'user32.getinputstate':( 'int', None, 'cdecl', 'user32.GetInputState', () ),
'user32.getinternalwindowpos':( 'int', None, 'stdcall', 'user32.GetInternalWindowPos', (('int', None), ('int', None), ('int', None)) ),
'user32.getkbcodepage':( 'int', None, 'stdcall', 'user32.GetKBCodePage', () ),
'user32.getkeynametexta':( 'int', None, 'stdcall', 'user32.GetKeyNameTextA', (('int', None), ('int', None), ('int', None)) ),
'user32.getkeynametextw':( 'int', None, 'stdcall', 'user32.GetKeyNameTextW', (('int', None), ('int', None), ('int', None)) ),
'user32.getkeystate':( 'int', None, 'stdcall', 'user32.GetKeyState', (('int', None),) ),
'user32.getkeyboardlayout':( 'int', None, 'stdcall', 'user32.GetKeyboardLayout', (('int', None),) ),
'user32.getkeyboardlayoutlist':( 'int', None, 'stdcall', 'user32.GetKeyboardLayoutList', (('int', None), ('int', None)) ),
'user32.getkeyboardlayoutnamea':( 'int', None, 'stdcall', 'user32.GetKeyboardLayoutNameA', (('int', None),) ),
'user32.getkeyboardlayoutnamew':( 'int', None, 'stdcall', 'user32.GetKeyboardLayoutNameW', (('int', None),) ),
'user32.getkeyboardstate':( 'int', None, 'stdcall', 'user32.GetKeyboardState', (('int', None),) ),
'user32.getkeyboardtype':( 'int', None, 'stdcall', 'user32.GetKeyboardType', (('int', None),) ),
'user32.getlastactivepopup':( 'int', None, 'stdcall', 'user32.GetLastActivePopup', () ),
'user32.getlastinputinfo':( 'int', None, 'stdcall', 'user32.GetLastInputInfo', (('int', None),) ),
'user32.getlayeredwindowattributes':( 'int', None, 'stdcall', 'user32.GetLayeredWindowAttributes', (('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.getlistboxinfo':( 'int', None, 'stdcall', 'user32.GetListBoxInfo', (('int', None),) ),
'user32.getmenu':( 'int', None, 'stdcall', 'user32.GetMenu', () ),
'user32.getmenubarinfo':( 'int', None, 'stdcall', 'user32.GetMenuBarInfo', (('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.getmenucheckmarkdimensions':( 'int', None, 'cdecl', 'user32.GetMenuCheckMarkDimensions', () ),
'user32.getmenucontexthelpid':( 'int', None, 'stdcall', 'user32.GetMenuContextHelpId', () ),
'user32.getmenudefaultitem':( 'int', None, 'stdcall', 'user32.GetMenuDefaultItem', ( ('int', None), ('int', None)) ),
'user32.getmenuinfo':( 'int', None, 'stdcall', 'user32.GetMenuInfo', ( ('int', None),) ),
'user32.getmenuitemcount':( 'int', None, 'stdcall', 'user32.GetMenuItemCount', () ),
'user32.getmenuitemid':( 'int', None, 'stdcall', 'user32.GetMenuItemID', ( ('int', None),) ),
'user32.getmenuiteminfoa':( 'int', None, 'stdcall', 'user32.GetMenuItemInfoA', ( ('void *', 'obj'), ('int', None), ('int', None), ('int', None)) ),
'user32.getmenuiteminfow':( 'int', None, 'stdcall', 'user32.GetMenuItemInfoW', ( ('int', None), ('int', None), ('int', None)) ),
'user32.getmenuitemrect':( 'int', None, 'stdcall', 'user32.GetMenuItemRect', (('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.getmenustate':( 'int', None, 'stdcall', 'user32.GetMenuState', ( ('int', None), ('int', None)) ),
'user32.getmenustringa':( 'int', None, 'stdcall', 'user32.GetMenuStringA', ( ('int', None), ('int', None), ('void *', 'obj'), ('int', None)) ),
'user32.getmenustringw':( 'int', None, 'stdcall', 'user32.GetMenuStringW', ( ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.getmessagea':( 'int', None, 'stdcall', 'user32.GetMessageA', (('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.getmessageextrainfo':( 'int', None, 'cdecl', 'user32.GetMessageExtraInfo', () ),
'user32.getmessagepos':( 'int', None, 'cdecl', 'user32.GetMessagePos', () ),
'user32.getmessagetime':( 'int', None, 'cdecl', 'user32.GetMessageTime', () ),
'user32.getmessagew':( 'int', None, 'stdcall', 'user32.GetMessageW', (('void *', 'ptr'), ('int', None), ('int', None), ('int', None)) ),
'user32.getmonitorinfoa':( 'int', None, 'stdcall', 'user32.GetMonitorInfoA', (('void *', 'ptr'), ('int', None)) ),
'user32.getmonitorinfow':( 'int', None, 'stdcall', 'user32.GetMonitorInfoW', (('void *', 'ptr'), ('void *', 'ptr')) ),
'user32.getmousemovepointsex':( 'int', None, 'stdcall', 'user32.GetMouseMovePointsEx', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.getnextdlggroupitem':( 'int', None, 'stdcall', 'user32.GetNextDlgGroupItem', ( ('void *', 'obj'), ('int', None)) ),
'user32.getnextdlgtabitem':( 'int', None, 'stdcall', 'user32.GetNextDlgTabItem', ( ('void *', 'obj'), ('int', None)) ),
'user32.getopenclipboardwindow':( 'int', None, 'cdecl', 'user32.GetOpenClipboardWindow', () ),
'user32.getparent':( 'int', None, 'stdcall', 'user32.GetParent', () ),
'user32.getpriorityclipboardformat':( 'int', None, 'stdcall', 'user32.GetPriorityClipboardFormat', (('int', None), ('int', None)) ),
'user32.getprocessdefaultlayout':( 'int', None, 'stdcall', 'user32.GetProcessDefaultLayout', (('int', None),) ),
'user32.getprocesswindowstation':( 'int', None, 'cdecl', 'user32.GetProcessWindowStation', () ),
'user32.getprogmanwindow':( 'int', None, 'cdecl', 'user32.GetProgmanWindow', () ),
'user32.getpropa':( 'int', None, 'stdcall', 'user32.GetPropA', ( ('int', None),) ),
'user32.getpropw':( 'int', None, 'stdcall', 'user32.GetPropW', ( ('int', None),) ),
'user32.getqueuestatus':( 'int', None, 'stdcall', 'user32.GetQueueStatus', (('int', None),) ),
'user32.getrawinputbuffer':( 'int', None, 'stdcall', 'user32.GetRawInputBuffer', (('int', None), ('int', None), ('int', None)) ),
'user32.getrawinputdata':( 'int', None, 'stdcall', 'user32.GetRawInputData', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.getrawinputdeviceinfoa':( 'int', None, 'stdcall', 'user32.GetRawInputDeviceInfoA', (('int', None), ('int', None), ('void *', 'ptr'), ('int', None)) ),
'user32.getrawinputdeviceinfow':( 'int', None, 'stdcall', 'user32.GetRawInputDeviceInfoW', (('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.getrawinputdevicelist':( 'int', None, 'stdcall', 'user32.GetRawInputDeviceList', (('int', None), ('int', None), ('int', None)) ),
'user32.getreasontitlefromreasoncode':( 'int', None, 'stdcall', 'user32.GetReasonTitleFromReasonCode', (('int', None), ('void *', 'ptr'), ('int', None)) ),
'user32.getregisteredrawinputdevices':( 'int', None, 'stdcall', 'user32.GetRegisteredRawInputDevices', (('int', None), ('int', None), ('int', None)) ),
'user32.getscrollbarinfo':( 'int', None, 'stdcall', 'user32.GetScrollBarInfo', (('int', None), ('int', None), ('int', None)) ),
'user32.getscrollinfo':( 'int', None, 'stdcall', 'user32.GetScrollInfo', ( ('int', None), ('void *', 'obj')) ),
'user32.getscrollpos':( 'int', None, 'stdcall', 'user32.GetScrollPos', ( ('int', None),) ),
'user32.getscrollrange':( 'int', None, 'stdcall', 'user32.GetScrollRange', ( ('int', None), ('int', None), ('void *', 'obj')) ),
'user32.getshellwindow':( 'int', None, 'cdecl', 'user32.GetShellWindow', () ),
'user32.getsubmenu':( 'int', None, 'stdcall', 'user32.GetSubMenu', ( ('int', None),) ),
'user32.getsyscolor':( 'int', None, 'stdcall', 'user32.GetSysColor', (('int', None),) ),
'user32.getsyscolorbrush':( 'int', None, 'stdcall', 'user32.GetSysColorBrush', (('int', None),) ),
'user32.getsystemmenu':( 'int', None, 'stdcall', 'user32.GetSystemMenu', (('int', None), ('int', None)) ),
'user32.getsystemmetrics':( 'int', None, 'stdcall', 'user32.GetSystemMetrics', (('int', None),) ),
'user32.gettabbedtextextenta':( 'int', None, 'stdcall', 'user32.GetTabbedTextExtentA', ( ('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.gettabbedtextextentw':( 'int', None, 'stdcall', 'user32.GetTabbedTextExtentW', (('int', None), ('void *', 'ptr'), ('int', None), ('int', None), ('int', None)) ),
'user32.gettaskmanwindow':( 'int', None, 'cdecl', 'user32.GetTaskmanWindow', () ),
'user32.getthreaddesktop':( 'int', None, 'stdcall', 'user32.GetThreadDesktop', (('int', None),) ),
'user32.gettitlebarinfo':( 'int', None, 'stdcall', 'user32.GetTitleBarInfo', (('int', None), ('int', None)) ),
'user32.gettopwindow':( 'int', None, 'stdcall', 'user32.GetTopWindow', () ),
'user32.getupdaterect':( 'int', None, 'stdcall', 'user32.GetUpdateRect', ( ('int', None), ('int', None)) ),
'user32.getupdatergn':( 'int', None, 'stdcall', 'user32.GetUpdateRgn', ( ('int', None), ('int', None)) ),
'user32.getuserobjectinformationa':( 'int', None, 'stdcall', 'user32.GetUserObjectInformationA', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.getuserobjectinformationw':( 'int', None, 'stdcall', 'user32.GetUserObjectInformationW', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.getuserobjectsecurity':( 'int', None, 'stdcall', 'user32.GetUserObjectSecurity', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.getwinstationinfo':( 'int', None, 'stdcall', 'user32.GetWinStationInfo', (('int', None),) ),
'user32.getwindow':( 'int', None, 'stdcall', 'user32.GetWindow', ( ('int', None),) ),
'user32.getwindowcontexthelpid':( 'int', None, 'stdcall', 'user32.GetWindowContextHelpId', (('int', None),) ),
'user32.getwindowdc':( 'int', None, 'stdcall', 'user32.GetWindowDC', (('int', None),) ),
'user32.getwindowinfo':( 'int', None, 'stdcall', 'user32.GetWindowInfo', ( ('int', None),) ),
'user32.getwindowlonga':( 'int', None, 'stdcall', 'user32.GetWindowLongA', ( ('int', None),) ),
'user32.getwindowlongw':( 'int', None, 'stdcall', 'user32.GetWindowLongW', ( ('int', None),) ),
'user32.getwindowmodulefilename':( 'int', None, 'stdcall', 'user32.GetWindowModuleFileName', ( ('int', None), ('int', None)) ),
'user32.getwindowmodulefilenamea':( 'int', None, 'stdcall', 'user32.GetWindowModuleFileNameA', ( ('int', None), ('int', None)) ),
'user32.getwindowmodulefilenamew':( 'int', None, 'stdcall', 'user32.GetWindowModuleFileNameW', ( ('int', None), ('int', None)) ),
'user32.getwindowplacement':( 'int', None, 'stdcall', 'user32.GetWindowPlacement', (('int', None), ('void *', 'ptr')) ),
'user32.getwindowrect':( 'int', None, 'stdcall', 'user32.GetWindowRect', ( ('void *', 'ptr'),) ),
'user32.getwindowrgn':( 'int', None, 'stdcall', 'user32.GetWindowRgn', ( ('int', None),) ),
'user32.getwindowrgnbox':( 'int', None, 'stdcall', 'user32.GetWindowRgnBox', ( ('int', None),) ),
'user32.getwindowtexta':( 'int', None, 'stdcall', 'user32.GetWindowTextA', ( ('void *', 'obj'), ('int', None)) ),
'user32.getwindowtextlengtha':( 'int', None, 'stdcall', 'user32.GetWindowTextLengthA', () ),
'user32.getwindowtextlengthw':( 'int', None, 'stdcall', 'user32.GetWindowTextLengthW', () ),
'user32.getwindowtextw':( 'int', None, 'stdcall', 'user32.GetWindowTextW', ( ('void *', 'obj'), ('int', None)) ),
'user32.getwindowthreadprocessid':( 'int', None, 'stdcall', 'user32.GetWindowThreadProcessId', (('int', None), ('void *', 'ptr')) ),
'user32.getwindowword':( 'int', None, 'stdcall', 'user32.GetWindowWord', ( ('int', None),) ),
'user32.graystringa':( 'int', None, 'stdcall', 'user32.GrayStringA', (('int', None), ('int', None), ('void *', 'funcptr'), ('void *', 'ptr'), ('DWORD', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.graystringw':( 'int', None, 'stdcall', 'user32.GrayStringW', (('int', None), ('int', None), ('void *', 'funcptr'), ('void *', 'ptr'), ('DWORD', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.hidecaret':( 'int', None, 'stdcall', 'user32.HideCaret', (('int', None),) ),
'user32.hilitemenuitem':( 'int', None, 'stdcall', 'user32.HiliteMenuItem', (('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.impgetimea':( 'int', None, 'stdcall', 'user32.IMPGetIMEA', (('int', None), ('int', None)) ),
'user32.impgetimew':( 'int', None, 'stdcall', 'user32.IMPGetIMEW', (('int', None), ('int', None)) ),
'user32.impqueryimea':( 'int', None, 'stdcall', 'user32.IMPQueryIMEA', (('int', None),) ),
'user32.impqueryimew':( 'int', None, 'stdcall', 'user32.IMPQueryIMEW', (('int', None),) ),
'user32.impsetimea':( 'int', None, 'stdcall', 'user32.IMPSetIMEA', (('int', None), ('int', None)) ),
'user32.impsetimew':( 'int', None, 'stdcall', 'user32.IMPSetIMEW', (('int', None), ('int', None)) ),
'user32.impersonateddeclientwindow':( 'int', None, 'stdcall', 'user32.ImpersonateDdeClientWindow', (('int', None), ('int', None)) ),
'user32.insendmessage':( 'int', None, 'cdecl', 'user32.InSendMessage', () ),
'user32.insendmessageex':( 'int', None, 'stdcall', 'user32.InSendMessageEx', (('int', None),) ),
'user32.inflaterect':( 'int', None, 'stdcall', 'user32.InflateRect', (('void *', 'ptr'), ('int', None), ('int', None)) ),
'user32.initializelpkhooks':( 'int', None, 'stdcall', 'user32.InitializeLpkHooks', (('int', None),) ),
'user32.initializewin32entrytable':( 'int', None, 'stdcall', 'user32.InitializeWin32EntryTable', (('int', None),) ),
'user32.insertmenua':( 'int', None, 'stdcall', 'user32.InsertMenuA', ( ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.insertmenuitema':( 'int', None, 'stdcall', 'user32.InsertMenuItemA', (('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.insertmenuitemw':( 'int', None, 'stdcall', 'user32.InsertMenuItemW', (('int', None), ('int', None), ('int', None), ('void *', 'ptr')) ),
'user32.insertmenuw':( 'int', None, 'stdcall', 'user32.InsertMenuW', ( ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.internalgetwindowtext':( 'int', None, 'stdcall', 'user32.InternalGetWindowText', (('int', None), ('int', None), ('int', None)) ),
'user32.intersectrect':( 'int', None, 'stdcall', 'user32.IntersectRect', (('void *', 'ptr'), ('void *', 'ptr'), ('void *', 'ptr')) ),
'user32.invalidaterect':( 'int', None, 'stdcall', 'user32.InvalidateRect', (('int', None), ('void *', 'ptr'), ('int', None)) ),
'user32.invalidatergn':( 'int', None, 'stdcall', 'user32.InvalidateRgn', (('int', None), ('int', None), ('int', None)) ),
'user32.invertrect':( 'int', None, 'stdcall', 'user32.InvertRect', (('int', None), ('int', None)) ),
'user32.ischaralphaa':( 'int', None, 'stdcall', 'user32.IsCharAlphaA', (('int', None),) ),
'user32.ischaralphanumerica':( 'int', None, 'stdcall', 'user32.IsCharAlphaNumericA', (('int', None),) ),
'user32.ischaralphanumericw':( 'int', None, 'stdcall', 'user32.IsCharAlphaNumericW', (('int', None),) ),
'user32.ischaralphaw':( 'int', None, 'stdcall', 'user32.IsCharAlphaW', (('int', None),) ),
'user32.ischarlowera':( 'int', None, 'stdcall', 'user32.IsCharLowerA', (('int', None),) ),
'user32.ischarlowerw':( 'int', None, 'stdcall', 'user32.IsCharLowerW', (('int', None),) ),
'user32.ischaruppera':( 'int', None, 'stdcall', 'user32.IsCharUpperA', (('int', None),) ),
'user32.ischarupperw':( 'int', None, 'stdcall', 'user32.IsCharUpperW', (('int', None),) ),
'user32.ischild':( 'int', None, 'stdcall', 'user32.IsChild', ( ('void *', 'obj'),) ),
'user32.isclipboardformatavailable':( 'int', None, 'stdcall', 'user32.IsClipboardFormatAvailable', (('int', None),) ),
'user32.isdialogmessage':( 'int', None, 'stdcall', 'user32.IsDialogMessage', ( ('void *', 'obj'),) ),
'user32.isdialogmessagea':( 'int', None, 'stdcall', 'user32.IsDialogMessageA', ( ('void *', 'obj'),) ),
'user32.isdialogmessagew':( 'int', None, 'stdcall', 'user32.IsDialogMessageW', ( ('void *', 'obj'),) ),
'user32.isdlgbuttonchecked':( 'int', None, 'stdcall', 'user32.IsDlgButtonChecked', ( ('int', None),) ),
'user32.isguithread':( 'int', None, 'stdcall', 'user32.IsGUIThread', (('int', None),) ),
'user32.ishungappwindow':( 'int', None, 'stdcall', 'user32.IsHungAppWindow', (('int', None),) ),
'user32.isiconic':( 'int', None, 'stdcall', 'user32.IsIconic', () ),
'user32.ismenu':( 'int', None, 'stdcall', 'user32.IsMenu', () ),
'user32.isrectempty':( 'int', None, 'stdcall', 'user32.IsRectEmpty', (('int', None),) ),
'user32.isserversidewindow':( 'int', None, 'stdcall', 'user32.IsServerSideWindow', () ),
'user32.iswineventhookinstalled':( 'int', None, 'stdcall', 'user32.IsWinEventHookInstalled', (('int', None),) ),
'user32.iswindow':( 'int', None, 'stdcall', 'user32.IsWindow', () ),
'user32.iswindowenabled':( 'int', None, 'stdcall', 'user32.IsWindowEnabled', () ),
'user32.iswindowindestroy':( 'int', None, 'stdcall', 'user32.IsWindowInDestroy', () ),
'user32.iswindowunicode':( 'int', None, 'stdcall', 'user32.IsWindowUnicode', () ),
'user32.iswindowvisible':( 'int', None, 'stdcall', 'user32.IsWindowVisible', () ),
'user32.iszoomed':( 'int', None, 'stdcall', 'user32.IsZoomed', () ),
'user32.killsystemtimer':( 'int', None, 'stdcall', 'user32.KillSystemTimer', (('int', None), ('int', None)) ),
'user32.killtimer':( 'int', None, 'stdcall', 'user32.KillTimer', (('int', None), ('int', None)) ),
'user32.loadacceleratorsa':( 'int', None, 'stdcall', 'user32.LoadAcceleratorsA', (('void *', 'ptr'), ('int', None)) ),
'user32.loadacceleratorsw':( 'int', None, 'stdcall', 'user32.LoadAcceleratorsW', (('void *', 'ptr'), ('int', None)) ),
'user32.loadbitmapa':( 'int', None, 'stdcall', 'user32.LoadBitmapA', (('int', None), ('void *', 'ptr')) ),
'user32.loadbitmapw':( 'int', None, 'stdcall', 'user32.LoadBitmapW', (('int', None), ('int', None)) ),
'user32.loadcursora':( 'int', None, 'stdcall', 'user32.LoadCursorA', (('int', None), ('void *', 'ptr')) ),
'user32.loadcursorfromfilea':( 'int', None, 'stdcall', 'user32.LoadCursorFromFileA', (('void *', 'ptr'),) ),
'user32.loadcursorfromfilew':( 'int', None, 'stdcall', 'user32.LoadCursorFromFileW', (('int', None),) ),
'user32.loadcursorw':( 'int', None, 'stdcall', 'user32.LoadCursorW', (('int', None), ('int', None)) ),
'user32.loadicona':( 'int', None, 'stdcall', 'user32.LoadIconA', (('int', None), ('void *', 'ptr')) ),
'user32.loadiconw':( 'int', None, 'stdcall', 'user32.LoadIconW', (('int', None), ('int', None)) ),
'user32.loadimagea':( 'int', None, 'stdcall', 'user32.LoadImageA', (('int', None), ('void *', 'ptr'), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.loadimagew':( 'int', None, 'stdcall', 'user32.LoadImageW', (('int', None), ('void *', 'ptr'), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.loadkeyboardlayouta':( 'int', None, 'stdcall', 'user32.LoadKeyboardLayoutA', (('int', None), ('int', None)) ),
'user32.loadkeyboardlayoutex':( 'int', None, 'stdcall', 'user32.LoadKeyboardLayoutEx', (('int', None), ('int', None), ('int', None)) ),
'user32.loadkeyboardlayoutw':( 'int', None, 'stdcall', 'user32.LoadKeyboardLayoutW', (('void *', 'ptr'), ('int', None)) ),
'user32.loadlocalfonts':( 'int', None, 'cdecl', 'user32.LoadLocalFonts', () ),
'user32.loadmenua':( 'int', None, 'stdcall', 'user32.LoadMenuA', (('int', None), ('int', None)) ),
'user32.loadmenuindirecta':( 'int', None, 'stdcall', 'user32.LoadMenuIndirectA', (('int', None),) ),
'user32.loadmenuindirectw':( 'int', None, 'stdcall', 'user32.LoadMenuIndirectW', (('int', None),) ),
'user32.loadmenuw':( 'int', None, 'stdcall', 'user32.LoadMenuW', (('int', None), ('int', None)) ),
'user32.loadremotefonts':( 'int', None, 'cdecl', 'user32.LoadRemoteFonts', () ),
'user32.loadstringa':( 'int', None, 'stdcall', 'user32.LoadStringA', (('int', None), ('void *', 'ptr'), ('int', None), ('int', None)) ),
'user32.loadstringw':( 'int', None, 'stdcall', 'user32.LoadStringW', (('int', None), ('int', None), ('void *', 'ptr'), ('int', None)) ),
'user32.locksetforegroundwindow':( 'int', None, 'stdcall', 'user32.LockSetForegroundWindow', (('int', None),) ),
'user32.lockwindowstation':( 'int', None, 'stdcall', 'user32.LockWindowStation', (('int', None),) ),
'user32.lockwindowupdate':( 'int', None, 'stdcall', 'user32.LockWindowUpdate', (('int', None),) ),
'user32.lockworkstation':( 'int', None, 'cdecl', 'user32.LockWorkStation', () ),
'user32.lookupiconidfromdirectory':( 'int', None, 'stdcall', 'user32.LookupIconIdFromDirectory', (('int', None), ('int', None)) ),
'user32.lookupiconidfromdirectoryex':( 'int', None, 'stdcall', 'user32.LookupIconIdFromDirectoryEx', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.mbtowcsex':( 'int', None, 'stdcall', 'user32.MBToWCSEx', (('int', None), ('void *', 'ptr'), ('int', None), ('void *', 'ptr'), ('int', None), ('int', None)) ),
'user32.mb_getstring':( 'int', None, 'stdcall', 'user32.MB_GetString', (('int', None),) ),
'user32.mapdialogrect':( 'int', None, 'stdcall', 'user32.MapDialogRect', ( ('int', None),) ),
'user32.mapvirtualkeya':( 'int', None, 'stdcall', 'user32.MapVirtualKeyA', (('int', None), ('int', None)) ),
'user32.mapvirtualkeyexa':( 'int', None, 'stdcall', 'user32.MapVirtualKeyExA', (('int', None), ('int', None), ('int', None)) ),
'user32.mapvirtualkeyexw':( 'int', None, 'stdcall', 'user32.MapVirtualKeyExW', (('int', None), ('int', None), ('int', None)) ),
'user32.mapvirtualkeyw':( 'int', None, 'stdcall', 'user32.MapVirtualKeyW', (('int', None), ('int', None)) ),
'user32.mapwindowpoints':( 'int', None, 'stdcall', 'user32.MapWindowPoints', ( ('void *', 'obj'), ('void *', 'ptr'), ('int', None)) ),
'user32.menuitemfrompoint':( 'int', None, 'stdcall', 'user32.MenuItemFromPoint', (('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.menuwindowproca':( 'int', None, 'stdcall', 'user32.MenuWindowProcA', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.menuwindowprocw':( 'int', None, 'stdcall', 'user32.MenuWindowProcW', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.messagebeep':( 'int', None, 'stdcall', 'user32.MessageBeep', (('int', None),) ),
'user32.messageboxa':( 'int', None, 'stdcall', 'user32.MessageBoxA', (('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.messageboxexa':( 'int', None, 'stdcall', 'user32.MessageBoxExA', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.messageboxexw':( 'int', None, 'stdcall', 'user32.MessageBoxExW', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.messageboxindirecta':( 'int', None, 'stdcall', 'user32.MessageBoxIndirectA', (('int', None),) ),
'user32.messageboxindirectw':( 'int', None, 'stdcall', 'user32.MessageBoxIndirectW', (('int', None),) ),
'user32.messageboxtimeouta':( 'int', None, 'stdcall', 'user32.MessageBoxTimeoutA', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.messageboxtimeoutw':( 'int', None, 'stdcall', 'user32.MessageBoxTimeoutW', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.messageboxw':( 'int', None, 'stdcall', 'user32.MessageBoxW', (('int', None), ('void *', 'ptr'), ('void *', 'ptr'), ('int', None)) ),
'user32.modifymenua':( 'int', None, 'stdcall', 'user32.ModifyMenuA', ( ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.modifymenuw':( 'int', None, 'stdcall', 'user32.ModifyMenuW', ( ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.monitorfrompoint':( 'int', None, 'stdcall', 'user32.MonitorFromPoint', (('int', None), ('int', None), ('int', None)) ),
'user32.monitorfromrect':( 'int', None, 'stdcall', 'user32.MonitorFromRect', (('void *', 'ptr'), ('int', None)) ),
'user32.monitorfromwindow':( 'int', None, 'stdcall', 'user32.MonitorFromWindow', ( ('int', None),) ),
'user32.movewindow':( 'int', None, 'stdcall', 'user32.MoveWindow', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.msgwaitformultipleobjects':( 'int', None, 'stdcall', 'user32.MsgWaitForMultipleObjects', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.msgwaitformultipleobjectsex':( 'int', None, 'stdcall', 'user32.MsgWaitForMultipleObjectsEx', (('int', None), ('void *', 'ptr'), ('int', None), ('int', None), ('int', None)) ),
'user32.notifywinevent':( 'int', None, 'stdcall', 'user32.NotifyWinEvent', (('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.oemkeyscan':( 'int', None, 'stdcall', 'user32.OemKeyScan', ( ('int', None),) ),
'user32.oemtochara':( 'int', None, 'stdcall', 'user32.OemToCharA', (('int', None), ('int', None)) ),
'user32.oemtocharbuffa':( 'int', None, 'stdcall', 'user32.OemToCharBuffA', (('int', None), ('int', None), ('int', None)) ),
'user32.oemtocharbuffw':( 'int', None, 'stdcall', 'user32.OemToCharBuffW', (('int', None), ('void *', 'ptr'), ('int', None)) ),
'user32.oemtocharw':( 'int', None, 'stdcall', 'user32.OemToCharW', (('int', None), ('int', None)) ),
'user32.offsetrect':( 'int', None, 'stdcall', 'user32.OffsetRect', (('void *', 'ptr'), ('int', None), ('int', None)) ),
'user32.openclipboard':( 'int', None, 'stdcall', 'user32.OpenClipboard', (('int', None),) ),
'user32.opendesktopa':( 'int', None, 'stdcall', 'user32.OpenDesktopA', (('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.opendesktopw':( 'int', None, 'stdcall', 'user32.OpenDesktopW', (('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.openicon':( 'int', None, 'stdcall', 'user32.OpenIcon', () ),
'user32.openinputdesktop':( 'int', None, 'stdcall', 'user32.OpenInputDesktop', (('int', None), ('int', None), ('int', None)) ),
'user32.openwindowstationa':( 'int', None, 'stdcall', 'user32.OpenWindowStationA', (('int', None), ('int', None), ('int', None)) ),
'user32.openwindowstationw':( 'int', None, 'stdcall', 'user32.OpenWindowStationW', (('int', None), ('int', None), ('int', None)) ),
'user32.packddelparam':( 'int', None, 'stdcall', 'user32.PackDDElParam', (('int', None), ('int', None), ('int', None)) ),
'user32.paintdesktop':( 'int', None, 'stdcall', 'user32.PaintDesktop', (('int', None),) ),
'user32.paintmenubar':( 'int', None, 'stdcall', 'user32.PaintMenuBar', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.peekmessagea':( 'int', None, 'stdcall', 'user32.PeekMessageA', (('void *', 'ptr'), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.peekmessagew':( 'int', None, 'stdcall', 'user32.PeekMessageW', (('void *', 'ptr'), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.postmessagea':( 'int', None, 'stdcall', 'user32.PostMessageA', ( ('int', None), ('int', None), ('int', None)) ),
'user32.postmessagew':( 'int', None, 'stdcall', 'user32.PostMessageW', (('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.postquitmessage':( 'int', None, 'stdcall', 'user32.PostQuitMessage', (('int', None),) ),
'user32.postthreadmessagea':( 'int', None, 'stdcall', 'user32.PostThreadMessageA', (('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.postthreadmessagew':( 'int', None, 'stdcall', 'user32.PostThreadMessageW', (('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.printwindow':( 'int', None, 'stdcall', 'user32.PrintWindow', (('int', None), ('int', None), ('int', None)) ),
'user32.privateextracticonexa':( 'int', None, 'stdcall', 'user32.PrivateExtractIconExA', (('void *', 'ptr'), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.privateextracticonexw':( 'int', None, 'stdcall', 'user32.PrivateExtractIconExW', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.privateextracticonsa':( 'int', None, 'stdcall', 'user32.PrivateExtractIconsA', (('void *', 'ptr'), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.privateextracticonsw':( 'int', None, 'stdcall', 'user32.PrivateExtractIconsW', (('int', None), ('int', None), ('int', None), ('int', None), ('void *', 'ptr'), ('int', None), ('int', None), ('int', None)) ),
'user32.privatesetdbgtag':( 'int', None, 'stdcall', 'user32.PrivateSetDbgTag', (('int', None), ('int', None)) ),
'user32.privatesetripflags':( 'int', None, 'stdcall', 'user32.PrivateSetRipFlags', (('int', None), ('int', None)) ),
'user32.ptinrect':( 'int', None, 'stdcall', 'user32.PtInRect', (('void *', 'ptr'), ('int', None), ('int', None)) ),
'user32.querysendmessage':( 'int', None, 'stdcall', 'user32.QuerySendMessage', (('int', None),) ),
'user32.queryusercounters':( 'int', None, 'stdcall', 'user32.QueryUserCounters', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.realchildwindowfrompoint':( 'int', None, 'stdcall', 'user32.RealChildWindowFromPoint', (('int', None), ('int', None), ('int', None)) ),
'user32.realgetwindowclass':( 'int', None, 'stdcall', 'user32.RealGetWindowClass', (('int', None), ('int', None), ('int', None)) ),
'user32.realgetwindowclassa':( 'int', None, 'stdcall', 'user32.RealGetWindowClassA', (('int', None), ('int', None), ('int', None)) ),
'user32.realgetwindowclassw':( 'int', None, 'stdcall', 'user32.RealGetWindowClassW', (('int', None), ('int', None), ('int', None)) ),
'user32.reasoncodeneedsbugid':( 'int', None, 'stdcall', 'user32.ReasonCodeNeedsBugID', (('int', None),) ),
'user32.reasoncodeneedscomment':( 'int', None, 'stdcall', 'user32.ReasonCodeNeedsComment', (('int', None),) ),
'user32.recordshutdownreason':( 'int', None, 'stdcall', 'user32.RecordShutdownReason', ( ('void *', 'ptr'),) ),
'user32.redrawwindow':( 'int', None, 'stdcall', 'user32.RedrawWindow', (('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.registerclassa':( 'int', None, 'stdcall', 'user32.RegisterClassA', (('int', None),) ),
'user32.registerclassexa':( 'int', None, 'stdcall', 'user32.RegisterClassExA', (('void *', 'ptr'),) ),
'user32.registerclassexw':( 'int', None, 'stdcall', 'user32.RegisterClassExW', (('void *', 'ptr'),) ),
'user32.registerclassw':( 'int', None, 'stdcall', 'user32.RegisterClassW', (('int', None),) ),
'user32.registerclipboardformata':( 'int', None, 'stdcall', 'user32.RegisterClipboardFormatA', (('int', None),) ),
'user32.registerclipboardformatw':( 'int', None, 'stdcall', 'user32.RegisterClipboardFormatW', (('int', None),) ),
'user32.registerdevicenotificationa':( 'int', None, 'stdcall', 'user32.RegisterDeviceNotificationA', (('int', None), ('int', None), ('int', None)) ),
'user32.registerdevicenotificationw':( 'int', None, 'stdcall', 'user32.RegisterDeviceNotificationW', (('int', None), ('int', None), ('int', None)) ),
'user32.registerhotkey':( 'int', None, 'stdcall', 'user32.RegisterHotKey', (('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.registerlogonprocess':( 'int', None, 'stdcall', 'user32.RegisterLogonProcess', (('void *', 'ptr'), ('void *', 'ptr')) ),
'user32.registermessagepumphook':( 'int', None, 'stdcall', 'user32.RegisterMessagePumpHook', (('void *', 'funcptr'),) ),
'user32.registerrawinputdevices':( 'int', None, 'stdcall', 'user32.RegisterRawInputDevices', (('int', None), ('int', None), ('int', None)) ),
'user32.registerservicesprocess':( 'int', None, 'stdcall', 'user32.RegisterServicesProcess', (('int', None),) ),
'user32.registershellhookwindow':( 'int', None, 'stdcall', 'user32.RegisterShellHookWindow', (('int', None),) ),
'user32.registersystemthread':( 'int', None, 'stdcall', 'user32.RegisterSystemThread', (('void *', 'ptr'), ('void *', 'ptr')) ),
'user32.registertasklist':( 'int', None, 'stdcall', 'user32.RegisterTasklist', (('int', None),) ),
'user32.registeruserapihook':( 'int', None, 'stdcall', 'user32.RegisterUserApiHook', (('int', None), ('int', None)) ),
'user32.registerwindowmessagea':( 'int', None, 'stdcall', 'user32.RegisterWindowMessageA', (('int', None),) ),
'user32.registerwindowmessagew':( 'int', None, 'stdcall', 'user32.RegisterWindowMessageW', (('int', None),) ),
'user32.releasecapture':( 'int', None, 'cdecl', 'user32.ReleaseCapture', () ),
'user32.releasedc':( 'int', None, 'stdcall', 'user32.ReleaseDC', (('int', None), ('int', None)) ),
'user32.removemenu':( 'int', None, 'stdcall', 'user32.RemoveMenu', (('int', None), ('int', None), ('int', None)) ),
'user32.removepropa':( 'int', None, 'stdcall', 'user32.RemovePropA', (('int', None), ('int', None)) ),
'user32.removepropw':( 'int', None, 'stdcall', 'user32.RemovePropW', (('int', None), ('int', None)) ),
'user32.replymessage':( 'int', None, 'stdcall', 'user32.ReplyMessage', (('int', None),) ),
'user32.resolvedesktopforwow':( 'int', None, 'stdcall', 'user32.ResolveDesktopForWOW', (('int', None),) ),
'user32.reuseddelparam':( 'int', None, 'stdcall', 'user32.ReuseDDElParam', (('void *', 'ptr'), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.screentoclient':( 'int', None, 'stdcall', 'user32.ScreenToClient', ( ('void *', 'ptr'),) ),
'user32.scrollchildren':( 'int', None, 'stdcall', 'user32.ScrollChildren', ( ('int', None), ('int', None)) ),
'user32.scrolldc':( 'int', None, 'stdcall', 'user32.ScrollDC', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.scrollwindow':( 'int', None, 'stdcall', 'user32.ScrollWindow', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.scrollwindowex':( 'int', None, 'stdcall', 'user32.ScrollWindowEx', ( ('int', None), ('int', None), ('int', None), ('void *', 'ptr'), ('int', None), ('void *', 'ptr'), ('int', None)) ),
'user32.senddlgitemmessagea':( 'int', None, 'stdcall', 'user32.SendDlgItemMessageA', ( ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.senddlgitemmessagew':( 'int', None, 'stdcall', 'user32.SendDlgItemMessageW', ( ('int', None), ('void *', 'obj'), ('int', None), ('void *', 'obj')) ),
'user32.sendimemessageexa':( 'int', None, 'stdcall', 'user32.SendIMEMessageExA', (('int', None), ('int', None)) ),
'user32.sendimemessageexw':( 'int', None, 'stdcall', 'user32.SendIMEMessageExW', (('int', None), ('int', None)) ),
'user32.sendinput':( 'int', None, 'stdcall', 'user32.SendInput', (('int', None), ('void *', 'ptr'), ('int', None)) ),
'user32.sendmessagea':( 'int', None, 'stdcall', 'user32.SendMessageA', ( ('int', None), ('int', None), ('int', None)) ),
'user32.sendmessagecallbacka':( 'int', None, 'stdcall', 'user32.SendMessageCallbackA', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.sendmessagecallbackw':( 'int', None, 'stdcall', 'user32.SendMessageCallbackW', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.sendmessagetimeouta':( 'int', None, 'stdcall', 'user32.SendMessageTimeoutA', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.sendmessagetimeoutw':( 'int', None, 'stdcall', 'user32.SendMessageTimeoutW', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('void *', 'ptr')) ),
'user32.sendmessagew':( 'int', None, 'stdcall', 'user32.SendMessageW', ( ('void *', 'obj'), ('int', None), ('void *', 'obj')) ),
'user32.sendnotifymessagea':( 'int', None, 'stdcall', 'user32.SendNotifyMessageA', (('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.sendnotifymessagew':( 'int', None, 'stdcall', 'user32.SendNotifyMessageW', (('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.setactivewindow':( 'int', None, 'stdcall', 'user32.SetActiveWindow', (('int', None),) ),
'user32.setcapture':( 'int', None, 'stdcall', 'user32.SetCapture', (('int', None),) ),
'user32.setcaretblinktime':( 'int', None, 'stdcall', 'user32.SetCaretBlinkTime', (('int', None),) ),
'user32.setcaretpos':( 'int', None, 'stdcall', 'user32.SetCaretPos', (('void *', 'ptr'), ('void *', 'ptr')) ),
'user32.setclasslonga':( 'int', None, 'stdcall', 'user32.SetClassLongA', (('int', None), ('int', None), ('int', None)) ),
'user32.setclasslongw':( 'int', None, 'stdcall', 'user32.SetClassLongW', (('int', None), ('int', None), ('void *', 'ptr')) ),
'user32.setclassword':( 'int', None, 'stdcall', 'user32.SetClassWord', (('int', None), ('int', None), ('int', None)) ),
'user32.setclipboarddata':( 'int', None, 'stdcall', 'user32.SetClipboardData', (('int', None), ('int', None)) ),
'user32.setclipboardviewer':( 'int', None, 'stdcall', 'user32.SetClipboardViewer', (('int', None),) ),
'user32.setconsolereservekeys':( 'int', None, 'stdcall', 'user32.SetConsoleReserveKeys', (('int', None), ('int', None)) ),
'user32.setcursor':( 'int', None, 'stdcall', 'user32.SetCursor', (('int', None),) ),
'user32.setcursorcontents':( 'int', None, 'stdcall', 'user32.SetCursorContents', (('int', None), ('int', None)) ),
'user32.setcursorpos':( 'int', None, 'stdcall', 'user32.SetCursorPos', (('void *', 'ptr'), ('void *', 'ptr')) ),
'user32.setdebugerrorlevel':( 'int', None, 'stdcall', 'user32.SetDebugErrorLevel', (('int', None),) ),
'user32.setdeskwallpaper':( 'int', None, 'stdcall', 'user32.SetDeskWallpaper', (('void *', 'ptr'),) ),
'user32.setdlgitemint':( 'int', None, 'stdcall', 'user32.SetDlgItemInt', ( ('int', None), ('int', None), ('int', None)) ),
'user32.setdlgitemtexta':( 'int', None, 'stdcall', 'user32.SetDlgItemTextA', ( ('int', None), ('void *', 'obj')) ),
'user32.setdlgitemtextw':( 'int', None, 'stdcall', 'user32.SetDlgItemTextW', ( ('int', None), ('void *', 'obj')) ),
'user32.setdoubleclicktime':( 'int', None, 'stdcall', 'user32.SetDoubleClickTime', (('int', None),) ),
'user32.setfocus':( 'int', None, 'stdcall', 'user32.SetFocus', (('int', None),) ),
'user32.setforegroundwindow':( 'int', None, 'stdcall', 'user32.SetForegroundWindow', (('int', None),) ),
'user32.setinternalwindowpos':( 'int', None, 'stdcall', 'user32.SetInternalWindowPos', (('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.setkeyboardstate':( 'int', None, 'stdcall', 'user32.SetKeyboardState', (('int', None),) ),
'user32.setlasterrorex':( 'int', None, 'stdcall', 'user32.SetLastErrorEx', (('int', None), ('int', None)) ),
'user32.setlayeredwindowattributes':( 'int', None, 'stdcall', 'user32.SetLayeredWindowAttributes', (('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.setlogonnotifywindow':( 'int', None, 'stdcall', 'user32.SetLogonNotifyWindow', (('int', None),) ),
'user32.setmenu':( 'int', None, 'stdcall', 'user32.SetMenu', (('int', None), ('int', None)) ),
'user32.setmenucontexthelpid':( 'int', None, 'stdcall', 'user32.SetMenuContextHelpId', (('int', None), ('int', None)) ),
'user32.setmenudefaultitem':( 'int', None, 'stdcall', 'user32.SetMenuDefaultItem', (('int', None), ('int', None), ('int', None)) ),
'user32.setmenuinfo':( 'int', None, 'stdcall', 'user32.SetMenuInfo', (('int', None), ('int', None)) ),
'user32.setmenuitembitmaps':( 'int', None, 'stdcall', 'user32.SetMenuItemBitmaps', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.setmenuiteminfoa':( 'int', None, 'stdcall', 'user32.SetMenuItemInfoA', (('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.setmenuiteminfow':( 'int', None, 'stdcall', 'user32.SetMenuItemInfoW', (('int', None), ('int', None), ('int', None), ('void *', 'ptr')) ),
'user32.setmessageextrainfo':( 'int', None, 'stdcall', 'user32.SetMessageExtraInfo', (('int', None),) ),
'user32.setmessagequeue':( 'int', None, 'stdcall', 'user32.SetMessageQueue', (('int', None),) ),
'user32.setparent':( 'int', None, 'stdcall', 'user32.SetParent', (('int', None), ('int', None)) ),
'user32.setprocessdefaultlayout':( 'int', None, 'stdcall', 'user32.SetProcessDefaultLayout', (('int', None),) ),
'user32.setprocesswindowstation':( 'int', None, 'stdcall', 'user32.SetProcessWindowStation', (('int', None),) ),
'user32.setprogmanwindow':( 'int', None, 'stdcall', 'user32.SetProgmanWindow', (('int', None),) ),
'user32.setpropa':( 'int', None, 'stdcall', 'user32.SetPropA', (('int', None), ('int', None), ('int', None)) ),
'user32.setpropw':( 'int', None, 'stdcall', 'user32.SetPropW', (('int', None), ('int', None), ('int', None)) ),
'user32.setrect':( 'int', None, 'stdcall', 'user32.SetRect', (('void *', 'ptr'), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.setrectempty':( 'int', None, 'stdcall', 'user32.SetRectEmpty', (('int', None),) ),
'user32.setscrollinfo':( 'int', None, 'stdcall', 'user32.SetScrollInfo', (('int', None), ('int', None), ('void *', 'ptr'), ('int', None)) ),
'user32.setscrollpos':( 'int', None, 'stdcall', 'user32.SetScrollPos', (('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.setscrollrange':( 'int', None, 'stdcall', 'user32.SetScrollRange', ( ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.setshellwindow':( 'int', None, 'stdcall', 'user32.SetShellWindow', (('int', None),) ),
'user32.setshellwindowex':( 'int', None, 'stdcall', 'user32.SetShellWindowEx', (('int', None), ('int', None)) ),
'user32.setsyscolors':( 'int', None, 'stdcall', 'user32.SetSysColors', (('int', None), ('void *', 'ptr'), ('int', None)) ),
'user32.setsyscolorstemp':( 'int', None, 'stdcall', 'user32.SetSysColorsTemp', (('int', None), ('int', None), ('int', None)) ),
'user32.setsystemcursor':( 'int', None, 'stdcall', 'user32.SetSystemCursor', (('int', None), ('int', None)) ),
'user32.setsystemmenu':( 'int', None, 'stdcall', 'user32.SetSystemMenu', (('int', None), ('int', None)) ),
'user32.setsystemtimer':( 'int', None, 'stdcall', 'user32.SetSystemTimer', (('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.settaskmanwindow':( 'int', None, 'stdcall', 'user32.SetTaskmanWindow', (('int', None),) ),
'user32.setthreaddesktop':( 'int', None, 'stdcall', 'user32.SetThreadDesktop', (('int', None),) ),
'user32.settimer':( 'int', None, 'stdcall', 'user32.SetTimer', (('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.setuserobjectinformationa':( 'int', None, 'stdcall', 'user32.SetUserObjectInformationA', (('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.setuserobjectinformationw':( 'int', None, 'stdcall', 'user32.SetUserObjectInformationW', (('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.setuserobjectsecurity':( 'int', None, 'stdcall', 'user32.SetUserObjectSecurity', (('int', None), ('int', None), ('int', None)) ),
'user32.setwineventhook':( 'int', None, 'stdcall', 'user32.SetWinEventHook', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.setwindowcontexthelpid':( 'int', None, 'stdcall', 'user32.SetWindowContextHelpId', (('int', None), ('int', None)) ),
'user32.setwindowlonga':( 'int', None, 'stdcall', 'user32.SetWindowLongA', ( ('int', None), ('void *', 'obj')) ),
'user32.setwindowlongw':( 'int', None, 'stdcall', 'user32.SetWindowLongW', ( ('int', None), ('void *', 'obj')) ),
'user32.setwindowplacement':( 'int', None, 'stdcall', 'user32.SetWindowPlacement', (('int', None), ('int', None)) ),
'user32.setwindowpos':( 'int', None, 'stdcall', 'user32.SetWindowPos', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.setwindowrgn':( 'int', None, 'stdcall', 'user32.SetWindowRgn', (('int', None), ('int', None), ('int', None)) ),
'user32.setwindowstationuser':( 'int', None, 'stdcall', 'user32.SetWindowStationUser', (('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.setwindowtexta':( 'int', None, 'stdcall', 'user32.SetWindowTextA', ( ('void *', 'obj'),) ),
'user32.setwindowtextw':( 'int', None, 'stdcall', 'user32.SetWindowTextW', ( ('void *', 'obj'),) ),
'user32.setwindowword':( 'int', None, 'stdcall', 'user32.SetWindowWord', (('int', None), ('int', None), ('int', None)) ),
'user32.setwindowshooka':( 'int', None, 'stdcall', 'user32.SetWindowsHookA', (('int', None), ('int', None)) ),
'user32.setwindowshookexa':( 'int', None, 'stdcall', 'user32.SetWindowsHookExA', (('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.setwindowshookexw':( 'int', None, 'stdcall', 'user32.SetWindowsHookExW', (('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.setwindowshookw':( 'int', None, 'stdcall', 'user32.SetWindowsHookW', (('int', None), ('int', None)) ),
'user32.showcaret':( 'int', None, 'stdcall', 'user32.ShowCaret', (('int', None),) ),
'user32.showcursor':( 'int', None, 'stdcall', 'user32.ShowCursor', (('int', None),) ),
'user32.showownedpopups':( 'int', None, 'stdcall', 'user32.ShowOwnedPopups', (('int', None), ('int', None)) ),
'user32.showscrollbar':( 'int', None, 'stdcall', 'user32.ShowScrollBar', (('int', None), ('int', None), ('int', None)) ),
'user32.showstartglass':( 'int', None, 'stdcall', 'user32.ShowStartGlass', (('int', None),) ),
'user32.showwindow':( 'int', None, 'stdcall', 'user32.ShowWindow', (('int', None), ('int', None)) ),
'user32.showwindowasync':( 'int', None, 'stdcall', 'user32.ShowWindowAsync', (('int', None), ('int', None)) ),
'user32.softmodalmessagebox':( 'int', None, 'stdcall', 'user32.SoftModalMessageBox', () ),
'user32.subtractrect':( 'int', None, 'stdcall', 'user32.SubtractRect', (('int', None), ('void *', 'ptr'), ('void *', 'ptr')) ),
'user32.swapmousebutton':( 'int', None, 'stdcall', 'user32.SwapMouseButton', (('int', None),) ),
'user32.switchdesktop':( 'int', None, 'stdcall', 'user32.SwitchDesktop', (('int', None),) ),
'user32.switchtothiswindow':( 'int', None, 'stdcall', 'user32.SwitchToThisWindow', (('int', None), ('int', None)) ),
'user32.systemparametersinfoa':( 'int', None, 'stdcall', 'user32.SystemParametersInfoA', (('int', None), ('int', None), ('void *', 'ptr'), ('int', None)) ),
'user32.systemparametersinfow':( 'int', None, 'stdcall', 'user32.SystemParametersInfoW', (('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.tabbedtextouta':( 'int', None, 'stdcall', 'user32.TabbedTextOutA', ( ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.tabbedtextoutw':( 'int', None, 'stdcall', 'user32.TabbedTextOutW', (('int', None), ('int', None), ('int', None), ('void *', 'ptr'), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.tilechildwindows':( 'int', None, 'stdcall', 'user32.TileChildWindows', ( ('int', None),) ),
'user32.tilewindows':( 'int', None, 'stdcall', 'user32.TileWindows', ( ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.toascii':( 'int', None, 'stdcall', 'user32.ToAscii', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.toasciiex':( 'int', None, 'stdcall', 'user32.ToAsciiEx', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.tounicode':( 'int', None, 'stdcall', 'user32.ToUnicode', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.tounicodeex':( 'int', None, 'stdcall', 'user32.ToUnicodeEx', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.trackmouseevent':( 'int', None, 'stdcall', 'user32.TrackMouseEvent', (('int', None),) ),
'user32.trackpopupmenu':( 'int', None, 'stdcall', 'user32.TrackPopupMenu', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.trackpopupmenuex':( 'int', None, 'stdcall', 'user32.TrackPopupMenuEx', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.translateaccelerator':( 'int', None, 'stdcall', 'user32.TranslateAccelerator', (('int', None), ('int', None), ('int', None)) ),
'user32.translateacceleratora':( 'int', None, 'stdcall', 'user32.TranslateAcceleratorA', (('int', None), ('int', None), ('int', None)) ),
'user32.translateacceleratorw':( 'int', None, 'stdcall', 'user32.TranslateAcceleratorW', (('int', None), ('int', None), ('int', None)) ),
'user32.translatemdisysaccel':( 'int', None, 'stdcall', 'user32.TranslateMDISysAccel', ( ('int', None),) ),
'user32.translatemessage':( 'int', None, 'stdcall', 'user32.TranslateMessage', (('void *', 'ptr'),) ),
'user32.translatemessageex':( 'int', None, 'stdcall', 'user32.TranslateMessageEx', (('int', None), ('int', None)) ),
'user32.unhookwinevent':( 'int', None, 'stdcall', 'user32.UnhookWinEvent', (('int', None),) ),
'user32.unhookwindowshook':( 'int', None, 'stdcall', 'user32.UnhookWindowsHook', (('void *', 'ptr'), ('void *', 'ptr')) ),
'user32.unhookwindowshookex':( 'int', None, 'stdcall', 'user32.UnhookWindowsHookEx', (('int', None),) ),
'user32.unionrect':( 'int', None, 'stdcall', 'user32.UnionRect', (('void *', 'ptr'), ('void *', 'ptr'), ('void *', 'ptr')) ),
'user32.unloadkeyboardlayout':( 'int', None, 'stdcall', 'user32.UnloadKeyboardLayout', (('int', None),) ),
'user32.unlockwindowstation':( 'int', None, 'stdcall', 'user32.UnlockWindowStation', (('int', None),) ),
'user32.unpackddelparam':( 'int', None, 'stdcall', 'user32.UnpackDDElParam', (('int', None), ('int', None), ('void *', 'ptr'), ('void *', 'ptr')) ),
'user32.unregisterclassa':( 'int', None, 'stdcall', 'user32.UnregisterClassA', (('int', None), ('int', None)) ),
'user32.unregisterclassw':( 'int', None, 'stdcall', 'user32.UnregisterClassW', (('int', None), ('int', None)) ),
'user32.unregisterdevicenotification':( 'int', None, 'stdcall', 'user32.UnregisterDeviceNotification', (('int', None),) ),
'user32.unregisterhotkey':( 'int', None, 'stdcall', 'user32.UnregisterHotKey', (('int', None), ('int', None)) ),
'user32.unregistermessagepumphook':( 'int', None, 'cdecl', 'user32.UnregisterMessagePumpHook', () ),
'user32.unregisteruserapihook':( 'int', None, 'cdecl', 'user32.UnregisterUserApiHook', () ),
'user32.updatelayeredwindow':( 'int', None, 'stdcall', 'user32.UpdateLayeredWindow', (('int', None), ('int', None), ('void *', 'ptr'), ('void *', 'ptr'), ('int', None), ('void *', 'ptr'), ('int', None), ('int', None), ('int', None)) ),
'user32.updateperusersystemparameters':( 'int', None, 'stdcall', 'user32.UpdatePerUserSystemParameters', (('int', None), ('int', None)) ),
'user32.updatewindow':( 'int', None, 'stdcall', 'user32.UpdateWindow', () ),
'user32.user32initializeimmentrytable':( 'int', None, 'stdcall', 'user32.User32InitializeImmEntryTable', (('int', None),) ),
'user32.userclientdllinitialize':( 'int', None, 'stdcall', 'user32.UserClientDllInitialize', (('int', None), ('int', None), ('int', None)) ),
'user32.userhandlegrantaccess':( 'int', None, 'stdcall', 'user32.UserHandleGrantAccess', (('int', None), ('int', None), ('int', None)) ),
'user32.userlpkpsmtextout':( 'int', None, 'stdcall', 'user32.UserLpkPSMTextOut', (('int', None), ('int', None), ('DWORD', None), ('int', None), ('int', None), ('int', None)) ),
'user32.userlpktabbedtextout':( 'int', None, 'stdcall', 'user32.UserLpkTabbedTextOut', (('int', None), ('int', None), ('int', None), ('void *', 'ptr'), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.userrealizepalette':( 'int', None, 'stdcall', 'user32.UserRealizePalette', (('int', None),) ),
'user32.userregisterwowhandlers':( 'int', None, 'stdcall', 'user32.UserRegisterWowHandlers', (('int', None), ('int', None)) ),
'user32.vripoutput':( 'int', None, 'cdecl', 'user32.VRipOutput', () ),
'user32.vtagoutput':( 'int', None, 'cdecl', 'user32.VTagOutput', () ),
'user32.validaterect':( 'int', None, 'stdcall', 'user32.ValidateRect', (('int', None), ('int', None)) ),
'user32.validatergn':( 'int', None, 'stdcall', 'user32.ValidateRgn', (('int', None), ('int', None)) ),
'user32.vkkeyscana':( 'int', None, 'stdcall', 'user32.VkKeyScanA', ( ('int', None),) ),
'user32.vkkeyscanexa':( 'int', None, 'stdcall', 'user32.VkKeyScanExA', ( ('int', None), ('int', None)) ),
'user32.vkkeyscanexw':( 'int', None, 'stdcall', 'user32.VkKeyScanExW', (('int', None), ('int', None)) ),
'user32.vkkeyscanw':( 'int', None, 'stdcall', 'user32.VkKeyScanW', (('int', None),) ),
'user32.wcstombex':( 'int', None, 'stdcall', 'user32.WCSToMBEx', (('int', None), ('void *', 'ptr'), ('int', None), ('void *', 'ptr'), ('int', None), ('int', None)) ),
'user32.winnlsenableime':( 'int', None, 'stdcall', 'user32.WINNLSEnableIME', (('int', None), ('int', None)) ),
'user32.winnlsgetenablestatus':( 'int', None, 'stdcall', 'user32.WINNLSGetEnableStatus', (('int', None),) ),
'user32.winnlsgetimehotkey':( 'int', None, 'stdcall', 'user32.WINNLSGetIMEHotkey', (('int', None),) ),
'user32.waitforinputidle':( 'int', None, 'stdcall', 'user32.WaitForInputIdle', (('int', None), ('int', None)) ),
'user32.waitmessage':( 'int', None, 'cdecl', 'user32.WaitMessage', () ),
'user32.win32poolallocationstats':( 'int', None, 'stdcall', 'user32.Win32PoolAllocationStats', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.winhelpa':( 'int', None, 'stdcall', 'user32.WinHelpA', ( ('int', None), ('int', None), ('int', None)) ),
'user32.winhelpw':( 'int', None, 'stdcall', 'user32.WinHelpW', ( ('int', None), ('int', None), ('int', None)) ),
'user32.windowfromdc':( 'int', None, 'stdcall', 'user32.WindowFromDC', (('int', None),) ),
'user32.windowfrompoint':( 'int', None, 'stdcall', 'user32.WindowFromPoint', (('int', None), ('int', None)) ),
'user32.keybd_event':( 'int', None, 'stdcall', 'user32.keybd_event', (('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.mouse_event':( 'int', None, 'stdcall', 'user32.mouse_event', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.wsprintfa':( 'int', None, 'cdecl', 'user32.wsprintfA', (('int', None), ('int', None)) ),
'user32.wsprintfw':( 'int', None, 'cdecl', 'user32.wsprintfW', (('void *', 'ptr'), ('int', None)) ),
'user32.wvsprintfa':( 'int', None, 'stdcall', 'user32.wvsprintfA', (('int', None), ('int', None), ('int', None)) ),
'user32.wvsprintfw':( 'int', None, 'stdcall', 'user32.wvsprintfW', (('int', None), ('int', None), ('int', None)) ),
}
| 125.504723
| 278
| 0.592458
| 8,970
| 92,999
| 6.141472
| 0.085396
| 0.303563
| 0.194885
| 0.244223
| 0.273612
| 0.21576
| 0.214925
| 0.154859
| 0.152263
| 0.095918
| 0
| 0.036291
| 0.124743
| 92,999
| 740
| 279
| 125.674324
| 0.640495
| 0.002366
| 0
| 0
| 0
| 0
| 0.509335
| 0.245953
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.006803
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
1276d659b888dc750672d94b2a3f29dc4a287fb4
| 65
|
py
|
Python
|
src/he/data/__init__.py
|
Laurentiu-Andronache/he
|
5e22d1c112e3db9c9893f7512c9bcef106bceb72
|
[
"MIT"
] | 1
|
2019-02-25T12:38:25.000Z
|
2019-02-25T12:38:25.000Z
|
src/he/data/__init__.py
|
Laurentiu-Andronache/he
|
5e22d1c112e3db9c9893f7512c9bcef106bceb72
|
[
"MIT"
] | null | null | null |
src/he/data/__init__.py
|
Laurentiu-Andronache/he
|
5e22d1c112e3db9c9893f7512c9bcef106bceb72
|
[
"MIT"
] | null | null | null |
"""This directory holds resources, like .txt files or images."""
| 32.5
| 64
| 0.723077
| 9
| 65
| 5.222222
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.138462
| 65
| 1
| 65
| 65
| 0.839286
| 0.892308
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
1279c6c366061039d7802e74d3cd5a2d9083e12f
| 258
|
py
|
Python
|
__init__.py
|
Andrew1021/Comparison-QRS-Detectors
|
6f77b7aa6b48fc79c5aa62f2546cbfb0a794ab9d
|
[
"BSD-3-Clause"
] | null | null | null |
__init__.py
|
Andrew1021/Comparison-QRS-Detectors
|
6f77b7aa6b48fc79c5aa62f2546cbfb0a794ab9d
|
[
"BSD-3-Clause"
] | 2
|
2021-09-02T08:31:27.000Z
|
2021-09-06T09:28:13.000Z
|
__init__.py
|
Andrew1021/Comparison-QRS-Detectors
|
6f77b7aa6b48fc79c5aa62f2546cbfb0a794ab9d
|
[
"BSD-3-Clause"
] | null | null | null |
# # Main function file - entry point into project execution
from .comparison_qrs_detectors import main
# Download libs for files from databases
from .mit_bih_download import get_data_anno, read_mit_bit_files
from .ludb_download import read_ludb_files
| 36.857143
| 64
| 0.821705
| 39
| 258
| 5.128205
| 0.666667
| 0.09
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.147287
| 258
| 6
| 65
| 43
| 0.909091
| 0.364341
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
127ee51d6502edf7f0bd05ba86e8f8ffcd9a64aa
| 558
|
py
|
Python
|
core/cdag/node/std.py
|
prorevizor/noc
|
37e44b8afc64318b10699c06a1138eee9e7d6a4e
|
[
"BSD-3-Clause"
] | 84
|
2017-10-22T11:01:39.000Z
|
2022-02-27T03:43:48.000Z
|
core/cdag/node/std.py
|
prorevizor/noc
|
37e44b8afc64318b10699c06a1138eee9e7d6a4e
|
[
"BSD-3-Clause"
] | 22
|
2017-12-11T07:21:56.000Z
|
2021-09-23T02:53:50.000Z
|
core/cdag/node/std.py
|
prorevizor/noc
|
37e44b8afc64318b10699c06a1138eee9e7d6a4e
|
[
"BSD-3-Clause"
] | 23
|
2017-12-06T06:59:52.000Z
|
2022-02-24T00:02:25.000Z
|
# ----------------------------------------------------------------------
# StdNode
# ----------------------------------------------------------------------
# Copyright (C) 2007-2020 The NOC Project
# See LICENSE for details
# ----------------------------------------------------------------------
# Third-party modules
import numpy as np
# NOC modules
from .mean import MeanNode
class StdNode(MeanNode):
"""
Calculate standard deviation
"""
name = "std"
def get_stats(self, values: np.array) -> float:
return np.std(values)
| 23.25
| 72
| 0.405018
| 45
| 558
| 5
| 0.8
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.016949
| 0.154122
| 558
| 23
| 73
| 24.26087
| 0.459746
| 0.620072
| 0
| 0
| 0
| 0
| 0.015873
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.166667
| false
| 0
| 0.333333
| 0.166667
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
|
0
| 4
|
129ac95b494b1cd3f1303744384e0f24ad811394
| 130
|
py
|
Python
|
model/validator/base_validator.py
|
dgkncelik/clausius
|
917bd02e888a2e8fb7dbccdd797b0a73a60ec7ba
|
[
"WTFPL"
] | null | null | null |
model/validator/base_validator.py
|
dgkncelik/clausius
|
917bd02e888a2e8fb7dbccdd797b0a73a60ec7ba
|
[
"WTFPL"
] | null | null | null |
model/validator/base_validator.py
|
dgkncelik/clausius
|
917bd02e888a2e8fb7dbccdd797b0a73a60ec7ba
|
[
"WTFPL"
] | null | null | null |
from .exception import ValidatorError
class BaseValidator(object):
@staticmethod
def validate(value):
return True
| 21.666667
| 37
| 0.730769
| 13
| 130
| 7.307692
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.207692
| 130
| 6
| 38
| 21.666667
| 0.92233
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.2
| false
| 0
| 0.2
| 0.2
| 0.8
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
12ed7f8ab7b65cecc75d6a5b0e3a52f05392cd34
| 105
|
py
|
Python
|
count_calls/urls.py
|
InquiridorTechie/Telegram-Bot-Project
|
ce2d0f5b56e7bdb0661a813aaf295f1dcf0cfa79
|
[
"MIT"
] | null | null | null |
count_calls/urls.py
|
InquiridorTechie/Telegram-Bot-Project
|
ce2d0f5b56e7bdb0661a813aaf295f1dcf0cfa79
|
[
"MIT"
] | null | null | null |
count_calls/urls.py
|
InquiridorTechie/Telegram-Bot-Project
|
ce2d0f5b56e7bdb0661a813aaf295f1dcf0cfa79
|
[
"MIT"
] | null | null | null |
from django.conf.urls import url
from . import views
urlpatterns = [url('', views.users, name='users')]
| 21
| 50
| 0.714286
| 15
| 105
| 5
| 0.666667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.133333
| 105
| 4
| 51
| 26.25
| 0.824176
| 0
| 0
| 0
| 0
| 0
| 0.047619
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.666667
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
12ef6a4fc16bcf16f3629da1efdf5ee9299477ea
| 51
|
py
|
Python
|
tests/test/run_tests.py
|
deadsurgeon42/StarryPy3k
|
9291e5a7ca97004675a4868165ce5690c111c492
|
[
"WTFPL"
] | 44
|
2015-11-18T07:45:11.000Z
|
2022-03-30T06:32:18.000Z
|
tests/test/run_tests.py
|
deadsurgeon42/StarryPy3k
|
9291e5a7ca97004675a4868165ce5690c111c492
|
[
"WTFPL"
] | 110
|
2016-08-01T06:45:13.000Z
|
2021-11-30T18:45:36.000Z
|
tests/test/run_tests.py
|
deadsurgeon42/StarryPy3k
|
9291e5a7ca97004675a4868165ce5690c111c492
|
[
"WTFPL"
] | 32
|
2015-01-31T09:54:38.000Z
|
2022-03-31T06:12:21.000Z
|
import nose
import nose.config
result = nose.run()
| 12.75
| 19
| 0.764706
| 8
| 51
| 4.875
| 0.625
| 0.512821
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.137255
| 51
| 4
| 19
| 12.75
| 0.886364
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.666667
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
42089e5063f957e30cd4c31938aeaa621982b202
| 419
|
py
|
Python
|
palet/ServiceCategory.py
|
tmsis/palet
|
6d2483ce19dd9289e82a4bcb78404f1f8399be28
|
[
"CC0-1.0"
] | 1
|
2022-02-10T21:15:55.000Z
|
2022-02-10T21:15:55.000Z
|
palet/ServiceCategory.py
|
tmsis/palet
|
6d2483ce19dd9289e82a4bcb78404f1f8399be28
|
[
"CC0-1.0"
] | null | null | null |
palet/ServiceCategory.py
|
tmsis/palet
|
6d2483ce19dd9289e82a4bcb78404f1f8399be28
|
[
"CC0-1.0"
] | null | null | null |
# -------------------------------------------------------
#
#
#
# -------------------------------------------------------
class ServiceCategory():
inpatient = 'inpatient'
other_services = 'other_services'
long_term = 'long_term'
prescription = 'prescription'
# -------------------------------------------------------
#
#
#
# -------------------------------------------------------
| 23.277778
| 61
| 0.257757
| 14
| 419
| 7.428571
| 0.571429
| 0.25
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.157518
| 419
| 17
| 62
| 24.647059
| 0.294618
| 0.53222
| 0
| 0
| 0
| 0
| 0.237838
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
420e49d66fcd80d0df2d749701a70ce31e0c8f8f
| 1,354
|
py
|
Python
|
recordsearch_data_scraper/_nbdev.py
|
wragge/recordsearch_tools_new
|
b1a8b9d8f7c68107f186cfc69d601489fb4110e1
|
[
"Apache-2.0"
] | null | null | null |
recordsearch_data_scraper/_nbdev.py
|
wragge/recordsearch_tools_new
|
b1a8b9d8f7c68107f186cfc69d601489fb4110e1
|
[
"Apache-2.0"
] | 1
|
2021-04-27T01:27:38.000Z
|
2021-04-27T01:27:38.000Z
|
recordsearch_data_scraper/_nbdev.py
|
wragge/recordsearch_tools_new
|
b1a8b9d8f7c68107f186cfc69d601489fb4110e1
|
[
"Apache-2.0"
] | 1
|
2021-07-14T08:23:29.000Z
|
2021-07-14T08:23:29.000Z
|
# AUTOGENERATED BY NBDEV! DO NOT EDIT!
__all__ = ["index", "modules", "custom_doc_links", "git_url"]
index = {"make_session": "00_scrapers.ipynb",
"make_browser": "00_scrapers.ipynb",
"s": "00_scrapers.ipynb",
"browsers": "00_scrapers.ipynb",
"cache_db": "00_scrapers.ipynb",
"RS_URLS": "00_scrapers.ipynb",
"ITEM_FORM": "00_scrapers.ipynb",
"KW_OPTIONS": "00_scrapers.ipynb",
"FORMATS": "00_scrapers.ipynb",
"LOCATIONS": "00_scrapers.ipynb",
"ACCESS": "00_scrapers.ipynb",
"AGENCY_FORM": "00_scrapers.ipynb",
"AGENCY_LOCATIONS": "00_scrapers.ipynb",
"AGENCY_STATUS": "00_scrapers.ipynb",
"SERIES_FORM": "00_scrapers.ipynb",
"RSBase": "00_scrapers.ipynb",
"RSEntity": "00_scrapers.ipynb",
"RSSearch": "00_scrapers.ipynb",
"RSItem": "00_scrapers.ipynb",
"RSItemSearch": "00_scrapers.ipynb",
"RSSeries": "00_scrapers.ipynb",
"RSSeriesSearch": "00_scrapers.ipynb",
"RSAgency": "00_scrapers.ipynb",
"RSAgencySearch": "00_scrapers.ipynb"}
modules = ["scrapers.py"]
doc_url = "https://wragge.github.io/recordsearch_data_scraper/"
git_url = "https://github.com/wragge/recordsearch_data_scraper/tree/master/"
def custom_doc_links(name): return None
| 36.594595
| 76
| 0.625554
| 151
| 1,354
| 5.284768
| 0.397351
| 0.300752
| 0.451128
| 0.071429
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.04507
| 0.213442
| 1,354
| 36
| 77
| 37.611111
| 0.704225
| 0.026588
| 0
| 0
| 1
| 0
| 0.602584
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.034483
| false
| 0
| 0
| 0.034483
| 0.034483
| 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
| 1
| 0
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
42185b88f261971f3797c51173b1d3331def041b
| 116
|
py
|
Python
|
sc_utils/__init__.py
|
jkulawik/ServiceChecker
|
8dd4885ab0188dd88d93d82b685ab37e00d167ac
|
[
"BSD-3-Clause"
] | null | null | null |
sc_utils/__init__.py
|
jkulawik/ServiceChecker
|
8dd4885ab0188dd88d93d82b685ab37e00d167ac
|
[
"BSD-3-Clause"
] | null | null | null |
sc_utils/__init__.py
|
jkulawik/ServiceChecker
|
8dd4885ab0188dd88d93d82b685ab37e00d167ac
|
[
"BSD-3-Clause"
] | null | null | null |
# ServiceChecker utilities
# This is kinda a fake package, I just wanted
# to have less clutter in the main folder
| 23.2
| 45
| 0.767241
| 19
| 116
| 4.684211
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.198276
| 116
| 4
| 46
| 29
| 0.956989
| 0.931034
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.