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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
72c513e601c5239356a8463c736d5b78ab39df34
| 3,866
|
py
|
Python
|
resources/dot_PyCharm/system/python_stubs/-762174762/PySide/QtGui/QStyleOption.py
|
basepipe/developer_onboarding
|
05b6a776f8974c89517868131b201f11c6c2a5ad
|
[
"MIT"
] | 1
|
2020-04-20T02:27:20.000Z
|
2020-04-20T02:27:20.000Z
|
resources/dot_PyCharm/system/python_stubs/cache/8cdc475d469a13122bc4bc6c3ac1c215d93d5f120f5cc1ef33a8f3088ee54d8e/PySide/QtGui/QStyleOption.py
|
basepipe/developer_onboarding
|
05b6a776f8974c89517868131b201f11c6c2a5ad
|
[
"MIT"
] | null | null | null |
resources/dot_PyCharm/system/python_stubs/cache/8cdc475d469a13122bc4bc6c3ac1c215d93d5f120f5cc1ef33a8f3088ee54d8e/PySide/QtGui/QStyleOption.py
|
basepipe/developer_onboarding
|
05b6a776f8974c89517868131b201f11c6c2a5ad
|
[
"MIT"
] | null | null | null |
# encoding: utf-8
# module PySide.QtGui
# from C:\Python27\lib\site-packages\PySide\QtGui.pyd
# by generator 1.147
# no doc
# imports
import PySide.QtCore as __PySide_QtCore
import Shiboken as __Shiboken
class QStyleOption(__Shiboken.Object):
# no doc
def initFrom(self, *args, **kwargs): # real signature unknown
pass
def __init__(self, *args, **kwargs): # real signature unknown
pass
@staticmethod # known case of __new__
def __new__(S, *more): # real signature unknown; restored from __doc__
""" T.__new__(S, ...) -> a new object with type S, a subtype of T """
pass
def __repr__(self): # real signature unknown; restored from __doc__
""" x.__repr__() <==> repr(x) """
pass
direction = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
fontMetrics = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
palette = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
rect = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
state = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
type = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
version = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
OptionType = None # (!) real value is "<type 'PySide.QtGui.QStyleOption.OptionType'>"
SO_Button = PySide.QtGui.QStyleOption.OptionType.SO_Button
SO_ComboBox = PySide.QtGui.QStyleOption.OptionType.SO_ComboBox
SO_Complex = PySide.QtGui.QStyleOption.OptionType.SO_Complex
SO_ComplexCustomBase = PySide.QtGui.QStyleOption.OptionType.SO_ComplexCustomBase
SO_CustomBase = PySide.QtGui.QStyleOption.OptionType.SO_CustomBase
SO_Default = PySide.QtGui.QStyleOption.OptionType.SO_Default
SO_DockWidget = PySide.QtGui.QStyleOption.OptionType.SO_DockWidget
SO_FocusRect = PySide.QtGui.QStyleOption.OptionType.SO_FocusRect
SO_Frame = PySide.QtGui.QStyleOption.OptionType.SO_Frame
SO_GraphicsItem = PySide.QtGui.QStyleOption.OptionType.SO_GraphicsItem
SO_GroupBox = PySide.QtGui.QStyleOption.OptionType.SO_GroupBox
SO_Header = PySide.QtGui.QStyleOption.OptionType.SO_Header
SO_MenuItem = PySide.QtGui.QStyleOption.OptionType.SO_MenuItem
SO_ProgressBar = PySide.QtGui.QStyleOption.OptionType.SO_ProgressBar
SO_Q3DockWindow = PySide.QtGui.QStyleOption.OptionType.SO_Q3DockWindow
SO_Q3ListView = PySide.QtGui.QStyleOption.OptionType.SO_Q3ListView
SO_Q3ListViewItem = PySide.QtGui.QStyleOption.OptionType.SO_Q3ListViewItem
SO_RubberBand = PySide.QtGui.QStyleOption.OptionType.SO_RubberBand
SO_SizeGrip = PySide.QtGui.QStyleOption.OptionType.SO_SizeGrip
SO_Slider = PySide.QtGui.QStyleOption.OptionType.SO_Slider
SO_SpinBox = PySide.QtGui.QStyleOption.OptionType.SO_SpinBox
SO_Tab = PySide.QtGui.QStyleOption.OptionType.SO_Tab
SO_TabBarBase = PySide.QtGui.QStyleOption.OptionType.SO_TabBarBase
SO_TabWidgetFrame = PySide.QtGui.QStyleOption.OptionType.SO_TabWidgetFrame
SO_TitleBar = PySide.QtGui.QStyleOption.OptionType.SO_TitleBar
SO_ToolBar = PySide.QtGui.QStyleOption.OptionType.SO_ToolBar
SO_ToolBox = PySide.QtGui.QStyleOption.OptionType.SO_ToolBox
SO_ToolButton = PySide.QtGui.QStyleOption.OptionType.SO_ToolButton
SO_ViewItem = PySide.QtGui.QStyleOption.OptionType.SO_ViewItem
StyleOptionType = None # (!) real value is "<type 'PySide.QtGui.QStyleOption.StyleOptionType'>"
StyleOptionVersion = None # (!) real value is "<type 'PySide.QtGui.QStyleOption.StyleOptionVersion'>"
Type = PySide.QtGui.QStyleOption.StyleOptionType.Type
Version = PySide.QtGui.QStyleOption.StyleOptionVersion.Version
| 48.325
| 105
| 0.755561
| 464
| 3,866
| 6.086207
| 0.209052
| 0.140227
| 0.276912
| 0.350567
| 0.633144
| 0.265935
| 0.220255
| 0.193343
| 0.148725
| 0.148725
| 0
| 0.003953
| 0.14925
| 3,866
| 79
| 106
| 48.936709
| 0.854667
| 0.167098
| 0
| 0.075472
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.075472
| false
| 0.075472
| 0.037736
| 0
| 0.90566
| 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
|
72ca16b82f0d24fc9dcf042ee8f0e729829630f2
| 919
|
py
|
Python
|
github3/gists/comment.py
|
j2sol/github3.py
|
1edaca378a11b5e03c9b472676912c4cacc3693a
|
[
"BSD-3-Clause"
] | null | null | null |
github3/gists/comment.py
|
j2sol/github3.py
|
1edaca378a11b5e03c9b472676912c4cacc3693a
|
[
"BSD-3-Clause"
] | null | null | null |
github3/gists/comment.py
|
j2sol/github3.py
|
1edaca378a11b5e03c9b472676912c4cacc3693a
|
[
"BSD-3-Clause"
] | 1
|
2019-01-02T09:58:57.000Z
|
2019-01-02T09:58:57.000Z
|
# -*- coding: utf-8 -*-
"""
github3.gists.comment
---------------------
Module containing the logic for a GistComment
"""
from __future__ import unicode_literals
from ..models import BaseComment
from ..users import User
class GistComment(BaseComment):
"""This object represents a comment on a gist.
Two comment instances can be checked like so::
c1 == c2
c1 != c2
And is equivalent to::
c1.id == c2.id
c1.id != c2.id
See also: http://developer.github.com/v3/gists/comments/
"""
def _update_attributes(self, comment):
self._api = self._get_attribute(comment, 'url')
#: :class:`User <github3.users.User>` who made the comment
#: Unless it is not associated with an account
self.user = self._class_attribute(comment, 'user', User, self)
def _repr(self):
return '<Gist Comment [{0}]>'.format(self.user.login)
| 22.414634
| 70
| 0.626768
| 119
| 919
| 4.731092
| 0.605042
| 0.01421
| 0.021314
| 0.028419
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.018466
| 0.23395
| 919
| 40
| 71
| 22.975
| 0.78125
| 0.495103
| 0
| 0
| 0
| 0
| 0.065217
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.222222
| false
| 0
| 0.333333
| 0.111111
| 0.777778
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 1
| 1
| 0
|
0
| 4
|
72da43098b1b1268bf03584f64055835a99e0060
| 293
|
py
|
Python
|
frappe/email/doctype/auto_email_report/test_auto_email_report.py
|
jsukrut/latest_lumajuan_frappe
|
4d38ef0f548c6398a38a9d77ac678c9e829f32cf
|
[
"MIT"
] | null | null | null |
frappe/email/doctype/auto_email_report/test_auto_email_report.py
|
jsukrut/latest_lumajuan_frappe
|
4d38ef0f548c6398a38a9d77ac678c9e829f32cf
|
[
"MIT"
] | 7
|
2016-05-30T04:03:38.000Z
|
2019-02-03T03:10:03.000Z
|
frappe/email/doctype/auto_email_report/test_auto_email_report.py
|
jsukrut/latest_lumajuan_frappe
|
4d38ef0f548c6398a38a9d77ac678c9e829f32cf
|
[
"MIT"
] | 5
|
2015-07-22T04:52:43.000Z
|
2016-10-07T01:51:21.000Z
|
# -*- coding: utf-8 -*-
# Copyright (c) 2015, Frappe Technologies and Contributors
# See license.txt
from __future__ import unicode_literals
import frappe
import unittest, json
# test_records = frappe.get_test_records('Auto Email Report')
class TestAutoEmailReport(unittest.TestCase):
pass
| 24.416667
| 61
| 0.78157
| 37
| 293
| 5.972973
| 0.810811
| 0.099548
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.019531
| 0.12628
| 293
| 12
| 62
| 24.416667
| 0.84375
| 0.525597
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.2
| 0.6
| 0
| 0.8
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 1
| 0
|
0
| 4
|
72f72ad8c7a551ba69cc68566dd886e9c91acd92
| 197
|
py
|
Python
|
ingredients/serializers.py
|
jmhubbard/cocktail_api
|
47c2cca699f02dc14af04b989beeee9855a797f0
|
[
"Unlicense"
] | 1
|
2020-11-25T04:57:34.000Z
|
2020-11-25T04:57:34.000Z
|
ingredients/serializers.py
|
jmhubbard/cocktail_api
|
47c2cca699f02dc14af04b989beeee9855a797f0
|
[
"Unlicense"
] | null | null | null |
ingredients/serializers.py
|
jmhubbard/cocktail_api
|
47c2cca699f02dc14af04b989beeee9855a797f0
|
[
"Unlicense"
] | null | null | null |
from rest_framework import serializers
from .models import Ingredient
class IngredientSerializer(serializers.ModelSerializer):
class Meta:
model = Ingredient
fields = '__all__'
| 28.142857
| 56
| 0.756345
| 19
| 197
| 7.578947
| 0.736842
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.192893
| 197
| 7
| 57
| 28.142857
| 0.90566
| 0
| 0
| 0
| 0
| 0
| 0.035354
| 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
|
f40f4372f8a3eb971b2312c356dff9dd688f56eb
| 916
|
py
|
Python
|
py-pkg/tests/test_clients.py
|
paulokenza/uptasticsearch
|
47108a0d75a9e4b9cb5260206dda13fe1c4a3f7e
|
[
"BSD-3-Clause"
] | 35
|
2017-06-29T03:23:12.000Z
|
2019-04-02T14:02:12.000Z
|
py-pkg/tests/test_clients.py
|
paulokenza/uptasticsearch
|
47108a0d75a9e4b9cb5260206dda13fe1c4a3f7e
|
[
"BSD-3-Clause"
] | 127
|
2017-07-13T05:09:32.000Z
|
2019-05-26T01:16:38.000Z
|
py-pkg/tests/test_clients.py
|
paulokenza/uptasticsearch
|
47108a0d75a9e4b9cb5260206dda13fe1c4a3f7e
|
[
"BSD-3-Clause"
] | 26
|
2017-07-11T21:58:01.000Z
|
2018-10-25T00:58:26.000Z
|
"""Integration Tests - test against each version of Elasticsearch
"""
import pytest
import json
import pandas as pd
from uptasticsearch.clients import Uptasticsearch1
from uptasticsearch.clients import Uptasticsearch2
from uptasticsearch.clients import Uptasticsearch5
from uptasticsearch.clients import Uptasticsearch6
from uptasticsearch.clients import Uptasticsearch7
from uptasticsearch.clients import uptasticsearch_factory
from uptasticsearch.fetch_all import es_search
class TestEsSearch(object):
"""
es_search should work and return a pandas DataFrame
"""
host = "http://127.0.0.1:9200"
def test_rectangle(self):
result = es_search(
self.host,
"shakespeare",
query_body=json.dumps({}),
size=10000,
max_hits=10,
scroll="1m"
)
print(result)
assert isinstance(result, pd.DataFrame)
| 26.941176
| 65
| 0.70524
| 101
| 916
| 6.316832
| 0.594059
| 0.197492
| 0.23511
| 0.291536
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.032394
| 0.224891
| 916
| 33
| 66
| 27.757576
| 0.866197
| 0.124454
| 0
| 0
| 0
| 0
| 0.04359
| 0
| 0
| 0
| 0
| 0
| 0.043478
| 1
| 0.043478
| false
| 0
| 0.434783
| 0
| 0.565217
| 0.043478
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
f43e2436b5fb0ea792469028ff84d2b1786bb455
| 1,306
|
py
|
Python
|
scripts/misc/config_abl_3dpush_alpha_asr.py
|
clvrai/mopa-pd
|
ac55f568149d8e79c28326bcd9b63336ed065a61
|
[
"MIT"
] | 6
|
2021-11-04T01:38:17.000Z
|
2022-02-20T11:42:42.000Z
|
scripts/misc/config_abl_3dpush_alpha_asr.py
|
clvrai/mopa-pd
|
ac55f568149d8e79c28326bcd9b63336ed065a61
|
[
"MIT"
] | null | null | null |
scripts/misc/config_abl_3dpush_alpha_asr.py
|
clvrai/mopa-pd
|
ac55f568149d8e79c28326bcd9b63336ed065a61
|
[
"MIT"
] | 2
|
2021-11-29T14:15:48.000Z
|
2021-12-18T15:10:05.000Z
|
filename_prefix = 'SawyerPush-Abl-Alpha-ASR'
xlabel = 'Environment steps (1.2M)'
ylabel = "Average Success Rate"
max_step = 1200000
max_y_axis_value = 1.0
legend = True
data_key = "train_ep/episode_success"
bc_y_value = 0
plot_labels = {
r'log($\alpha$): 0.5': ['abl._3DPush_ours_log_alpha_0.5_upbeat-serenity-599'],
r'log($\alpha$): 0': ['abl._3DPush_ours_log_alpha_0_rose-bird-600'],
# r'log($\alpha$): -0.5': ['abl._3DPush_ours_log_alpha_-0.5_vague-cosmos-601'],
# r'log($\alpha$): -1': ['abl._3DPush_ours_log_alpha_-1_breezy-moon-602'],
r'log($\alpha$): -3': ['abl._3DPush_ours_log_alpha_-3_devoted-serenity-603'],
# r'log($\alpha$): -5': ['abl._3DPush_ours_log_alpha_-5_major-resonance-604'],
r'log($\alpha$): -10': ['abl._3DPush_ours_log_alpha_-10_fluent-glitter-605'],
r'log($\alpha$): -20': ['abl._3DPush_ours_log_alpha_-20_valiant-deluge-606'],
r'log($\alpha$): -40': ['abl._3DPush_ours_log_alpha_-40_olive-elevator-607'],
}
line_labels = {}
line_colors = {
r'log($\alpha$): 0.5': 'C0',
r'log($\alpha$): 0': 'C1',
# r'log($\alpha$): -0.5': 'C2',
# r'log($\alpha$): -1': 'C3',
r'log($\alpha$): -3': 'C4',
# r'log($\alpha$): -5': 'C5',
r'log($\alpha$): -10': 'C6',
r'log($\alpha$): -20': 'C7',
r'log($\alpha$): -40': 'C8',
}
| 38.411765
| 83
| 0.617152
| 210
| 1,306
| 3.519048
| 0.371429
| 0.292287
| 0.219215
| 0.194858
| 0.32341
| 0.151556
| 0.092016
| 0.092016
| 0.092016
| 0.092016
| 0
| 0.087379
| 0.132466
| 1,306
| 34
| 84
| 38.411765
| 0.564872
| 0.239663
| 0
| 0
| 0
| 0
| 0.610942
| 0.341439
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
f47299b849e6abcf7b739e4019122f8ade84c62b
| 93
|
py
|
Python
|
bokeh-app/scripts/__init__.py
|
ciaran-grant/bokeh-binder
|
d171a2aae64d190ff3ec0ca7dd110ccdb8913045
|
[
"BSD-3-Clause"
] | null | null | null |
bokeh-app/scripts/__init__.py
|
ciaran-grant/bokeh-binder
|
d171a2aae64d190ff3ec0ca7dd110ccdb8913045
|
[
"BSD-3-Clause"
] | null | null | null |
bokeh-app/scripts/__init__.py
|
ciaran-grant/bokeh-binder
|
d171a2aae64d190ff3ec0ca7dd110ccdb8913045
|
[
"BSD-3-Clause"
] | null | null | null |
# -*- coding: utf-8 -*-
"""
Created on Thu May 7 07:27:08 2020
@author: Ciaran
"""
| 11.625
| 36
| 0.516129
| 14
| 93
| 3.428571
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.179104
| 0.27957
| 93
| 7
| 37
| 13.285714
| 0.537313
| 0.806452
| 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
|
f478ee7eb9568854b0f46a7be9626917010485bc
| 1,296
|
py
|
Python
|
stubs/3.2/zipfile.py
|
TimSimpsonR/mypy
|
5e6fd6335e0662b0477e1d678269f33e6f4194ba
|
[
"PSF-2.0"
] | null | null | null |
stubs/3.2/zipfile.py
|
TimSimpsonR/mypy
|
5e6fd6335e0662b0477e1d678269f33e6f4194ba
|
[
"PSF-2.0"
] | null | null | null |
stubs/3.2/zipfile.py
|
TimSimpsonR/mypy
|
5e6fd6335e0662b0477e1d678269f33e6f4194ba
|
[
"PSF-2.0"
] | null | null | null |
# TODO these are incomplete
from typing import overload, List, Undefined, Tuple, BinaryIO
ZIP_STORED = 0
ZIP_DEFLATED = 0
@overload
def is_zipfile(filename: str) -> bool: pass
@overload
def is_zipfile(filename: BinaryIO) -> bool: pass
class ZipInfo:
filename = ''
date_time = Undefined(Tuple[int, int, int, int, int, int])
compressed_size = 0
file_size = 0
class ZipFile:
@overload
def __init__(self, file: str, mode: str = 'r',
compression: int = ZIP_STORED,
allowZip64: bool = False) -> None: pass
@overload
def __init__(self, file: BinaryIO, mode: str = 'r',
compression: int = ZIP_STORED,
allowZip64: bool = False) -> None: pass
def close(self) -> None: pass
def getinfo(name: str) -> ZipInfo: pass
def infolist(self) -> List[ZipInfo]: pass
def namelist(self) -> List[str]: pass
@overload
def read(self, name: str, pwd: str = None) -> bytes: pass
@overload
def read(self, name: ZipInfo, pwd: str = None) -> bytes: pass
def write(self, filename: str, arcname: str = None,
compress_type: int = None) -> None: pass
def __enter__(self) -> 'ZipFile': pass
def __exit__(self, type, value, traceback) -> bool: pass
| 29.454545
| 65
| 0.612654
| 163
| 1,296
| 4.711656
| 0.337423
| 0.063802
| 0.078125
| 0.046875
| 0.421875
| 0.221354
| 0.151042
| 0.151042
| 0.151042
| 0.151042
| 0
| 0.008466
| 0.270833
| 1,296
| 43
| 66
| 30.139535
| 0.804233
| 0.01929
| 0
| 0.30303
| 0
| 0
| 0.007092
| 0
| 0
| 0
| 0
| 0.023256
| 0
| 1
| 0.393939
| false
| 0.393939
| 0.030303
| 0
| 0.606061
| 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
| 1
| 0
| 0
| 1
| 0
|
0
| 4
|
f4800aebb90a11b9051bbbd64db058b5c9638294
| 376
|
py
|
Python
|
src/study/190128_gen.py
|
jaeorin/Python
|
366f84b96cfa0ae7dabf7fdfd48c18535997e2f4
|
[
"MIT"
] | null | null | null |
src/study/190128_gen.py
|
jaeorin/Python
|
366f84b96cfa0ae7dabf7fdfd48c18535997e2f4
|
[
"MIT"
] | null | null | null |
src/study/190128_gen.py
|
jaeorin/Python
|
366f84b96cfa0ae7dabf7fdfd48c18535997e2f4
|
[
"MIT"
] | null | null | null |
def iot_gen():
print("iot_gen 1")
yield 'a'
print("iot_gen 2")
print("iot_gen 2")
yield 'b'
print("iot_gen 3")
print("iot_gen 3")
print("iot_gen 3")
yield 'c'
print(next(iot_gen()))
print(next(iot_gen()))
print(next(iot_gen()))
gen = iot_gen()
print(next(gen))
print(next(gen))
print(next(gen))
for element in [1, 2, 3]: print(element)
| 16.347826
| 40
| 0.603723
| 65
| 376
| 3.323077
| 0.230769
| 0.305556
| 0.305556
| 0.166667
| 0.555556
| 0.555556
| 0.555556
| 0.375
| 0
| 0
| 0
| 0.03
| 0.202128
| 376
| 22
| 41
| 17.090909
| 0.69
| 0
| 0
| 0.611111
| 0
| 0
| 0.151596
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.055556
| false
| 0
| 0
| 0
| 0.055556
| 0.722222
| 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
|
be2e4081100947d4a550f297c485cea93002cabc
| 60,898
|
py
|
Python
|
trains/backend_api/services/v2_2/projects.py
|
doliveralg/trains
|
c99d3f36ba621153ff3c35859b8b6c946cdbc80b
|
[
"Apache-2.0"
] | 2
|
2021-07-30T13:42:46.000Z
|
2021-11-17T11:01:45.000Z
|
trains/backend_api/services/v2_2/projects.py
|
doliveralg/trains
|
c99d3f36ba621153ff3c35859b8b6c946cdbc80b
|
[
"Apache-2.0"
] | 4
|
2020-09-26T00:55:57.000Z
|
2022-02-10T01:18:20.000Z
|
trains/backend_api/services/v2_2/projects.py
|
doliveralg/trains
|
c99d3f36ba621153ff3c35859b8b6c946cdbc80b
|
[
"Apache-2.0"
] | 1
|
2019-08-19T04:17:15.000Z
|
2019-08-19T04:17:15.000Z
|
"""
projects service
Provides support for defining Projects containing Tasks, Models and Dataset Versions.
"""
from datetime import datetime
import six
from dateutil.parser import parse as parse_datetime
from ....backend_api.session import Request, Response, NonStrictDataModel, schema_property, StringEnum
class MultiFieldPatternData(NonStrictDataModel):
"""
:param pattern: Pattern string (regex)
:type pattern: str
:param fields: List of field names
:type fields: Sequence[str]
"""
_schema = {
'properties': {
'fields': {
'description': 'List of field names',
'items': {'type': 'string'},
'type': ['array', 'null'],
},
'pattern': {
'description': 'Pattern string (regex)',
'type': ['string', 'null'],
},
},
'type': 'object',
}
def __init__(
self, pattern=None, fields=None, **kwargs):
super(MultiFieldPatternData, self).__init__(**kwargs)
self.pattern = pattern
self.fields = fields
@schema_property('pattern')
def pattern(self):
return self._property_pattern
@pattern.setter
def pattern(self, value):
if value is None:
self._property_pattern = None
return
self.assert_isinstance(value, "pattern", six.string_types)
self._property_pattern = value
@schema_property('fields')
def fields(self):
return self._property_fields
@fields.setter
def fields(self, value):
if value is None:
self._property_fields = None
return
self.assert_isinstance(value, "fields", (list, tuple))
self.assert_isinstance(value, "fields", six.string_types, is_array=True)
self._property_fields = value
class ProjectTagsEnum(StringEnum):
archived = "archived"
public = "public"
default = "default"
class Project(NonStrictDataModel):
"""
:param id: Project id
:type id: str
:param name: Project name
:type name: str
:param description: Project description
:type description: str
:param user: Associated user id
:type user: str
:param company: Company id
:type company: str
:param created: Creation time
:type created: datetime.datetime
:param tags: Tags
:type tags: Sequence[ProjectTagsEnum]
:param default_output_destination: The default output destination URL for new
tasks under this project
:type default_output_destination: str
:param last_update: Last project update time. Reflects the last time the
project metadata was changed or a task in this project has changed status
:type last_update: datetime.datetime
"""
_schema = {
'properties': {
'company': {'description': 'Company id', 'type': ['string', 'null']},
'created': {
'description': 'Creation time',
'format': 'date-time',
'type': ['string', 'null'],
},
'default_output_destination': {
'description': 'The default output destination URL for new tasks under this project',
'type': ['string', 'null'],
},
'description': {
'description': 'Project description',
'type': ['string', 'null'],
},
'id': {'description': 'Project id', 'type': ['string', 'null']},
'last_update': {
'description': 'Last project update time. Reflects the last time the project metadata was changed or a task in this project has changed status',
'format': 'date-time',
'type': ['string', 'null'],
},
'name': {'description': 'Project name', 'type': ['string', 'null']},
'tags': {
'description': 'Tags',
'items': {'$ref': '#/definitions/project_tags_enum'},
'type': ['array', 'null'],
},
'user': {
'description': 'Associated user id',
'type': ['string', 'null'],
},
},
'type': 'object',
}
def __init__(
self, id=None, name=None, description=None, user=None, company=None, created=None, tags=None, default_output_destination=None, last_update=None, **kwargs):
super(Project, self).__init__(**kwargs)
self.id = id
self.name = name
self.description = description
self.user = user
self.company = company
self.created = created
self.tags = tags
self.default_output_destination = default_output_destination
self.last_update = last_update
@schema_property('id')
def id(self):
return self._property_id
@id.setter
def id(self, value):
if value is None:
self._property_id = None
return
self.assert_isinstance(value, "id", six.string_types)
self._property_id = value
@schema_property('name')
def name(self):
return self._property_name
@name.setter
def name(self, value):
if value is None:
self._property_name = None
return
self.assert_isinstance(value, "name", six.string_types)
self._property_name = value
@schema_property('description')
def description(self):
return self._property_description
@description.setter
def description(self, value):
if value is None:
self._property_description = None
return
self.assert_isinstance(value, "description", six.string_types)
self._property_description = value
@schema_property('user')
def user(self):
return self._property_user
@user.setter
def user(self, value):
if value is None:
self._property_user = None
return
self.assert_isinstance(value, "user", six.string_types)
self._property_user = value
@schema_property('company')
def company(self):
return self._property_company
@company.setter
def company(self, value):
if value is None:
self._property_company = None
return
self.assert_isinstance(value, "company", six.string_types)
self._property_company = value
@schema_property('created')
def created(self):
return self._property_created
@created.setter
def created(self, value):
if value is None:
self._property_created = None
return
self.assert_isinstance(value, "created", six.string_types + (datetime,))
if not isinstance(value, datetime):
value = parse_datetime(value)
self._property_created = value
@schema_property('tags')
def tags(self):
return self._property_tags
@tags.setter
def tags(self, value):
if value is None:
self._property_tags = None
return
self.assert_isinstance(value, "tags", (list, tuple))
if any(isinstance(v, six.string_types) for v in value):
value = [ProjectTagsEnum(v) if isinstance(v, six.string_types) else v for v in value]
else:
self.assert_isinstance(value, "tags", ProjectTagsEnum, is_array=True)
self._property_tags = value
@schema_property('default_output_destination')
def default_output_destination(self):
return self._property_default_output_destination
@default_output_destination.setter
def default_output_destination(self, value):
if value is None:
self._property_default_output_destination = None
return
self.assert_isinstance(value, "default_output_destination", six.string_types)
self._property_default_output_destination = value
@schema_property('last_update')
def last_update(self):
return self._property_last_update
@last_update.setter
def last_update(self, value):
if value is None:
self._property_last_update = None
return
self.assert_isinstance(value, "last_update", six.string_types + (datetime,))
if not isinstance(value, datetime):
value = parse_datetime(value)
self._property_last_update = value
class StatsStatusCount(NonStrictDataModel):
"""
:param total_runtime: Total run time of all tasks in project (in seconds)
:type total_runtime: int
:param status_count: Status counts
:type status_count: dict
"""
_schema = {
'properties': {
'status_count': {
'description': 'Status counts',
'properties': {
'closed': {
'description': "Number of 'closed' tasks in project",
'type': 'integer',
},
'created': {
'description': "Number of 'created' tasks in project",
'type': 'integer',
},
'failed': {
'description': "Number of 'failed' tasks in project",
'type': 'integer',
},
'in_progress': {
'description': "Number of 'in_progress' tasks in project",
'type': 'integer',
},
'published': {
'description': "Number of 'published' tasks in project",
'type': 'integer',
},
'queued': {
'description': "Number of 'queued' tasks in project",
'type': 'integer',
},
'stopped': {
'description': "Number of 'stopped' tasks in project",
'type': 'integer',
},
'unknown': {
'description': "Number of 'unknown' tasks in project",
'type': 'integer',
},
},
'type': ['object', 'null'],
},
'total_runtime': {
'description': 'Total run time of all tasks in project (in seconds)',
'type': ['integer', 'null'],
},
},
'type': 'object',
}
def __init__(
self, total_runtime=None, status_count=None, **kwargs):
super(StatsStatusCount, self).__init__(**kwargs)
self.total_runtime = total_runtime
self.status_count = status_count
@schema_property('total_runtime')
def total_runtime(self):
return self._property_total_runtime
@total_runtime.setter
def total_runtime(self, value):
if value is None:
self._property_total_runtime = None
return
if isinstance(value, float) and value.is_integer():
value = int(value)
self.assert_isinstance(value, "total_runtime", six.integer_types)
self._property_total_runtime = value
@schema_property('status_count')
def status_count(self):
return self._property_status_count
@status_count.setter
def status_count(self, value):
if value is None:
self._property_status_count = None
return
self.assert_isinstance(value, "status_count", (dict,))
self._property_status_count = value
class Stats(NonStrictDataModel):
"""
:param active: Stats for active tasks
:type active: StatsStatusCount
:param archived: Stats for archived tasks
:type archived: StatsStatusCount
"""
_schema = {
'properties': {
'active': {
'description': 'Stats for active tasks',
'oneOf': [
{'$ref': '#/definitions/stats_status_count'},
{'type': 'null'},
],
},
'archived': {
'description': 'Stats for archived tasks',
'oneOf': [
{'$ref': '#/definitions/stats_status_count'},
{'type': 'null'},
],
},
},
'type': 'object',
}
def __init__(
self, active=None, archived=None, **kwargs):
super(Stats, self).__init__(**kwargs)
self.active = active
self.archived = archived
@schema_property('active')
def active(self):
return self._property_active
@active.setter
def active(self, value):
if value is None:
self._property_active = None
return
if isinstance(value, dict):
value = StatsStatusCount.from_dict(value)
else:
self.assert_isinstance(value, "active", StatsStatusCount)
self._property_active = value
@schema_property('archived')
def archived(self):
return self._property_archived
@archived.setter
def archived(self, value):
if value is None:
self._property_archived = None
return
if isinstance(value, dict):
value = StatsStatusCount.from_dict(value)
else:
self.assert_isinstance(value, "archived", StatsStatusCount)
self._property_archived = value
class ProjectsGetAllResponseSingle(NonStrictDataModel):
"""
:param id: Project id
:type id: str
:param name: Project name
:type name: str
:param description: Project description
:type description: str
:param user: Associated user id
:type user: str
:param company: Company id
:type company: str
:param created: Creation time
:type created: datetime.datetime
:param tags: Tags
:type tags: Sequence[ProjectTagsEnum]
:param default_output_destination: The default output destination URL for new
tasks under this project
:type default_output_destination: str
:param stats: Additional project stats
:type stats: Stats
"""
_schema = {
'properties': {
'company': {'description': 'Company id', 'type': ['string', 'null']},
'created': {
'description': 'Creation time',
'format': 'date-time',
'type': ['string', 'null'],
},
'default_output_destination': {
'description': 'The default output destination URL for new tasks under this project',
'type': ['string', 'null'],
},
'description': {
'description': 'Project description',
'type': ['string', 'null'],
},
'id': {'description': 'Project id', 'type': ['string', 'null']},
'name': {'description': 'Project name', 'type': ['string', 'null']},
'stats': {
'description': 'Additional project stats',
'oneOf': [{'$ref': '#/definitions/stats'}, {'type': 'null'}],
},
'tags': {
'description': 'Tags',
'items': {'$ref': '#/definitions/project_tags_enum'},
'type': ['array', 'null'],
},
'user': {
'description': 'Associated user id',
'type': ['string', 'null'],
},
},
'type': 'object',
}
def __init__(
self, id=None, name=None, description=None, user=None, company=None, created=None, tags=None, default_output_destination=None, stats=None, **kwargs):
super(ProjectsGetAllResponseSingle, self).__init__(**kwargs)
self.id = id
self.name = name
self.description = description
self.user = user
self.company = company
self.created = created
self.tags = tags
self.default_output_destination = default_output_destination
self.stats = stats
@schema_property('id')
def id(self):
return self._property_id
@id.setter
def id(self, value):
if value is None:
self._property_id = None
return
self.assert_isinstance(value, "id", six.string_types)
self._property_id = value
@schema_property('name')
def name(self):
return self._property_name
@name.setter
def name(self, value):
if value is None:
self._property_name = None
return
self.assert_isinstance(value, "name", six.string_types)
self._property_name = value
@schema_property('description')
def description(self):
return self._property_description
@description.setter
def description(self, value):
if value is None:
self._property_description = None
return
self.assert_isinstance(value, "description", six.string_types)
self._property_description = value
@schema_property('user')
def user(self):
return self._property_user
@user.setter
def user(self, value):
if value is None:
self._property_user = None
return
self.assert_isinstance(value, "user", six.string_types)
self._property_user = value
@schema_property('company')
def company(self):
return self._property_company
@company.setter
def company(self, value):
if value is None:
self._property_company = None
return
self.assert_isinstance(value, "company", six.string_types)
self._property_company = value
@schema_property('created')
def created(self):
return self._property_created
@created.setter
def created(self, value):
if value is None:
self._property_created = None
return
self.assert_isinstance(value, "created", six.string_types + (datetime,))
if not isinstance(value, datetime):
value = parse_datetime(value)
self._property_created = value
@schema_property('tags')
def tags(self):
return self._property_tags
@tags.setter
def tags(self, value):
if value is None:
self._property_tags = None
return
self.assert_isinstance(value, "tags", (list, tuple))
if any(isinstance(v, six.string_types) for v in value):
value = [ProjectTagsEnum(v) if isinstance(v, six.string_types) else v for v in value]
else:
self.assert_isinstance(value, "tags", ProjectTagsEnum, is_array=True)
self._property_tags = value
@schema_property('default_output_destination')
def default_output_destination(self):
return self._property_default_output_destination
@default_output_destination.setter
def default_output_destination(self, value):
if value is None:
self._property_default_output_destination = None
return
self.assert_isinstance(value, "default_output_destination", six.string_types)
self._property_default_output_destination = value
@schema_property('stats')
def stats(self):
return self._property_stats
@stats.setter
def stats(self, value):
if value is None:
self._property_stats = None
return
if isinstance(value, dict):
value = Stats.from_dict(value)
else:
self.assert_isinstance(value, "stats", Stats)
self._property_stats = value
class MetricVariantResult(NonStrictDataModel):
"""
:param metric: Metric name
:type metric: str
:param metric_hash: Metric name hash. Used instead of the metric name when
categorizing last metrics events in task objects.
:type metric_hash: str
:param variant: Variant name
:type variant: str
:param variant_hash: Variant name hash. Used instead of the variant name when
categorizing last metrics events in task objects.
:type variant_hash: str
"""
_schema = {
'properties': {
'metric': {'description': 'Metric name', 'type': ['string', 'null']},
'metric_hash': {
'description': 'Metric name hash. Used instead of the metric name when categorizing\n last metrics events in task objects.',
'type': ['string', 'null'],
},
'variant': {'description': 'Variant name', 'type': ['string', 'null']},
'variant_hash': {
'description': 'Variant name hash. Used instead of the variant name when categorizing\n last metrics events in task objects.',
'type': ['string', 'null'],
},
},
'type': 'object',
}
def __init__(
self, metric=None, metric_hash=None, variant=None, variant_hash=None, **kwargs):
super(MetricVariantResult, self).__init__(**kwargs)
self.metric = metric
self.metric_hash = metric_hash
self.variant = variant
self.variant_hash = variant_hash
@schema_property('metric')
def metric(self):
return self._property_metric
@metric.setter
def metric(self, value):
if value is None:
self._property_metric = None
return
self.assert_isinstance(value, "metric", six.string_types)
self._property_metric = value
@schema_property('metric_hash')
def metric_hash(self):
return self._property_metric_hash
@metric_hash.setter
def metric_hash(self, value):
if value is None:
self._property_metric_hash = None
return
self.assert_isinstance(value, "metric_hash", six.string_types)
self._property_metric_hash = value
@schema_property('variant')
def variant(self):
return self._property_variant
@variant.setter
def variant(self, value):
if value is None:
self._property_variant = None
return
self.assert_isinstance(value, "variant", six.string_types)
self._property_variant = value
@schema_property('variant_hash')
def variant_hash(self):
return self._property_variant_hash
@variant_hash.setter
def variant_hash(self, value):
if value is None:
self._property_variant_hash = None
return
self.assert_isinstance(value, "variant_hash", six.string_types)
self._property_variant_hash = value
class CreateRequest(Request):
"""
Create a new project
:param name: Project name Unique within the company.
:type name: str
:param description: Project description.
:type description: str
:param tags: Tags
:type tags: Sequence[ProjectTagsEnum]
:param default_output_destination: The default output destination URL for new
tasks under this project
:type default_output_destination: str
"""
_service = "projects"
_action = "create"
_version = "1.5"
_schema = {
'definitions': {
'project_tags_enum': {'enum': ['archived', 'public', 'default'], 'type': 'string'},
},
'properties': {
'default_output_destination': {
'description': 'The default output destination URL for new tasks under this project',
'type': 'string',
},
'description': {
'description': 'Project description. ',
'type': 'string',
},
'name': {
'description': 'Project name Unique within the company.',
'type': 'string',
},
'tags': {
'description': 'Tags',
'items': {'$ref': '#/definitions/project_tags_enum'},
'type': 'array',
},
},
'required': ['name', 'description'],
'type': 'object',
}
def __init__(
self, name, description, tags=None, default_output_destination=None, **kwargs):
super(CreateRequest, self).__init__(**kwargs)
self.name = name
self.description = description
self.tags = tags
self.default_output_destination = default_output_destination
@schema_property('name')
def name(self):
return self._property_name
@name.setter
def name(self, value):
if value is None:
self._property_name = None
return
self.assert_isinstance(value, "name", six.string_types)
self._property_name = value
@schema_property('description')
def description(self):
return self._property_description
@description.setter
def description(self, value):
if value is None:
self._property_description = None
return
self.assert_isinstance(value, "description", six.string_types)
self._property_description = value
@schema_property('tags')
def tags(self):
return self._property_tags
@tags.setter
def tags(self, value):
if value is None:
self._property_tags = None
return
self.assert_isinstance(value, "tags", (list, tuple))
if any(isinstance(v, six.string_types) for v in value):
value = [ProjectTagsEnum(v) if isinstance(v, six.string_types) else v for v in value]
else:
self.assert_isinstance(value, "tags", ProjectTagsEnum, is_array=True)
self._property_tags = value
@schema_property('default_output_destination')
def default_output_destination(self):
return self._property_default_output_destination
@default_output_destination.setter
def default_output_destination(self, value):
if value is None:
self._property_default_output_destination = None
return
self.assert_isinstance(value, "default_output_destination", six.string_types)
self._property_default_output_destination = value
class CreateResponse(Response):
"""
Response of projects.create endpoint.
:param id: Project id
:type id: str
"""
_service = "projects"
_action = "create"
_version = "1.5"
_schema = {
'definitions': {},
'properties': {
'id': {'description': 'Project id', 'type': ['string', 'null']},
},
'type': 'object',
}
def __init__(
self, id=None, **kwargs):
super(CreateResponse, self).__init__(**kwargs)
self.id = id
@schema_property('id')
def id(self):
return self._property_id
@id.setter
def id(self, value):
if value is None:
self._property_id = None
return
self.assert_isinstance(value, "id", six.string_types)
self._property_id = value
class DeleteRequest(Request):
"""
Deletes a project
:param project: Project id
:type project: str
:param force: If not true, fails if project has tasks. If true, and project has
tasks, they will be unassigned
:type force: bool
"""
_service = "projects"
_action = "delete"
_version = "1.5"
_schema = {
'definitions': {},
'properties': {
'force': {
'default': False,
'description': 'If not true, fails if project has tasks.\n If true, and project has tasks, they will be unassigned',
'type': 'boolean',
},
'project': {'description': 'Project id', 'type': 'string'},
},
'required': ['project'],
'type': 'object',
}
def __init__(
self, project, force=False, **kwargs):
super(DeleteRequest, self).__init__(**kwargs)
self.project = project
self.force = force
@schema_property('project')
def project(self):
return self._property_project
@project.setter
def project(self, value):
if value is None:
self._property_project = None
return
self.assert_isinstance(value, "project", six.string_types)
self._property_project = value
@schema_property('force')
def force(self):
return self._property_force
@force.setter
def force(self, value):
if value is None:
self._property_force = None
return
self.assert_isinstance(value, "force", (bool,))
self._property_force = value
class DeleteResponse(Response):
"""
Response of projects.delete endpoint.
:param deleted: Number of projects deleted (0 or 1)
:type deleted: int
:param disassociated_tasks: Number of tasks disassociated from the deleted
project
:type disassociated_tasks: int
"""
_service = "projects"
_action = "delete"
_version = "1.5"
_schema = {
'definitions': {},
'properties': {
'deleted': {
'description': 'Number of projects deleted (0 or 1)',
'type': ['integer', 'null'],
},
'disassociated_tasks': {
'description': 'Number of tasks disassociated from the deleted project',
'type': ['integer', 'null'],
},
},
'type': 'object',
}
def __init__(
self, deleted=None, disassociated_tasks=None, **kwargs):
super(DeleteResponse, self).__init__(**kwargs)
self.deleted = deleted
self.disassociated_tasks = disassociated_tasks
@schema_property('deleted')
def deleted(self):
return self._property_deleted
@deleted.setter
def deleted(self, value):
if value is None:
self._property_deleted = None
return
if isinstance(value, float) and value.is_integer():
value = int(value)
self.assert_isinstance(value, "deleted", six.integer_types)
self._property_deleted = value
@schema_property('disassociated_tasks')
def disassociated_tasks(self):
return self._property_disassociated_tasks
@disassociated_tasks.setter
def disassociated_tasks(self, value):
if value is None:
self._property_disassociated_tasks = None
return
if isinstance(value, float) and value.is_integer():
value = int(value)
self.assert_isinstance(value, "disassociated_tasks", six.integer_types)
self._property_disassociated_tasks = value
class GetAllRequest(Request):
"""
Get all the company's projects and all public projects
:param id: List of IDs to filter by
:type id: Sequence[str]
:param name: Get only projects whose name matches this pattern (python regular
expression syntax)
:type name: str
:param description: Get only projects whose description matches this pattern
(python regular expression syntax)
:type description: str
:param tags: Tags list used to filter results. Prepend '-' to tag name to
indicate exclusion
:type tags: Sequence[str]
:param order_by: List of field names to order by. When search_text is used,
'@text_score' can be used as a field representing the text score of returned
documents. Use '-' prefix to specify descending order. Optional, recommended
when using page
:type order_by: Sequence[str]
:param page: Page number, returns a specific page out of the resulting list of
dataviews
:type page: int
:param page_size: Page size, specifies the number of results returned in each
page (last page may contain fewer results)
:type page_size: int
:param search_text: Free text search query
:type search_text: str
:param only_fields: List of document's field names (nesting is supported using
'.', e.g. execution.model_labels). If provided, this list defines the query's
projection (only these fields will be returned for each result entry)
:type only_fields: Sequence[str]
:param _all_: Multi-field pattern condition (all fields match pattern)
:type _all_: MultiFieldPatternData
:param _any_: Multi-field pattern condition (any field matches pattern)
:type _any_: MultiFieldPatternData
"""
_service = "projects"
_action = "get_all"
_version = "1.5"
_schema = {
'definitions': {
'multi_field_pattern_data': {
'properties': {
'fields': {
'description': 'List of field names',
'items': {'type': 'string'},
'type': ['array', 'null'],
},
'pattern': {
'description': 'Pattern string (regex)',
'type': ['string', 'null'],
},
},
'type': 'object',
},
},
'properties': {
'_all_': {
'description': 'Multi-field pattern condition (all fields match pattern)',
'oneOf': [
{'$ref': '#/definitions/multi_field_pattern_data'},
{'type': 'null'},
],
},
'_any_': {
'description': 'Multi-field pattern condition (any field matches pattern)',
'oneOf': [
{'$ref': '#/definitions/multi_field_pattern_data'},
{'type': 'null'},
],
},
'description': {
'description': 'Get only projects whose description matches this pattern (python regular expression syntax)',
'type': ['string', 'null'],
},
'id': {
'description': 'List of IDs to filter by',
'items': {'type': 'string'},
'type': ['array', 'null'],
},
'name': {
'description': 'Get only projects whose name matches this pattern (python regular expression syntax)',
'type': ['string', 'null'],
},
'only_fields': {
'description': "List of document's field names (nesting is supported using '.', e.g. execution.model_labels). If provided, this list defines the query's projection (only these fields will be returned for each result entry)",
'items': {'type': 'string'},
'type': ['array', 'null'],
},
'order_by': {
'description': "List of field names to order by. When search_text is used, '@text_score' can be used as a field representing the text score of returned documents. Use '-' prefix to specify descending order. Optional, recommended when using page",
'items': {'type': 'string'},
'type': ['array', 'null'],
},
'page': {
'description': 'Page number, returns a specific page out of the resulting list of dataviews',
'minimum': 0,
'type': ['integer', 'null'],
},
'page_size': {
'description': 'Page size, specifies the number of results returned in each page (last page may contain fewer results)',
'minimum': 1,
'type': ['integer', 'null'],
},
'search_text': {
'description': 'Free text search query',
'type': ['string', 'null'],
},
'tags': {
'description': "Tags list used to filter results. Prepend '-' to tag name to indicate exclusion",
'items': {'type': 'string'},
'type': ['array', 'null'],
},
},
'type': 'object',
}
def __init__(
self, id=None, name=None, description=None, tags=None, order_by=None, page=None, page_size=None, search_text=None, only_fields=None, _all_=None, _any_=None, **kwargs):
super(GetAllRequest, self).__init__(**kwargs)
self.id = id
self.name = name
self.description = description
self.tags = tags
self.order_by = order_by
self.page = page
self.page_size = page_size
self.search_text = search_text
self.only_fields = only_fields
self._all_ = _all_
self._any_ = _any_
@schema_property('id')
def id(self):
return self._property_id
@id.setter
def id(self, value):
if value is None:
self._property_id = None
return
self.assert_isinstance(value, "id", (list, tuple))
self.assert_isinstance(value, "id", six.string_types, is_array=True)
self._property_id = value
@schema_property('name')
def name(self):
return self._property_name
@name.setter
def name(self, value):
if value is None:
self._property_name = None
return
self.assert_isinstance(value, "name", six.string_types)
self._property_name = value
@schema_property('description')
def description(self):
return self._property_description
@description.setter
def description(self, value):
if value is None:
self._property_description = None
return
self.assert_isinstance(value, "description", six.string_types)
self._property_description = value
@schema_property('tags')
def tags(self):
return self._property_tags
@tags.setter
def tags(self, value):
if value is None:
self._property_tags = None
return
self.assert_isinstance(value, "tags", (list, tuple))
self.assert_isinstance(value, "tags", six.string_types, is_array=True)
self._property_tags = value
@schema_property('order_by')
def order_by(self):
return self._property_order_by
@order_by.setter
def order_by(self, value):
if value is None:
self._property_order_by = None
return
self.assert_isinstance(value, "order_by", (list, tuple))
self.assert_isinstance(value, "order_by", six.string_types, is_array=True)
self._property_order_by = value
@schema_property('page')
def page(self):
return self._property_page
@page.setter
def page(self, value):
if value is None:
self._property_page = None
return
if isinstance(value, float) and value.is_integer():
value = int(value)
self.assert_isinstance(value, "page", six.integer_types)
self._property_page = value
@schema_property('page_size')
def page_size(self):
return self._property_page_size
@page_size.setter
def page_size(self, value):
if value is None:
self._property_page_size = None
return
if isinstance(value, float) and value.is_integer():
value = int(value)
self.assert_isinstance(value, "page_size", six.integer_types)
self._property_page_size = value
@schema_property('search_text')
def search_text(self):
return self._property_search_text
@search_text.setter
def search_text(self, value):
if value is None:
self._property_search_text = None
return
self.assert_isinstance(value, "search_text", six.string_types)
self._property_search_text = value
@schema_property('only_fields')
def only_fields(self):
return self._property_only_fields
@only_fields.setter
def only_fields(self, value):
if value is None:
self._property_only_fields = None
return
self.assert_isinstance(value, "only_fields", (list, tuple))
self.assert_isinstance(value, "only_fields", six.string_types, is_array=True)
self._property_only_fields = value
@schema_property('_all_')
def _all_(self):
return self._property__all_
@_all_.setter
def _all_(self, value):
if value is None:
self._property__all_ = None
return
if isinstance(value, dict):
value = MultiFieldPatternData.from_dict(value)
else:
self.assert_isinstance(value, "_all_", MultiFieldPatternData)
self._property__all_ = value
@schema_property('_any_')
def _any_(self):
return self._property__any_
@_any_.setter
def _any_(self, value):
if value is None:
self._property__any_ = None
return
if isinstance(value, dict):
value = MultiFieldPatternData.from_dict(value)
else:
self.assert_isinstance(value, "_any_", MultiFieldPatternData)
self._property__any_ = value
class GetAllResponse(Response):
"""
Response of projects.get_all endpoint.
:param projects: Projects list
:type projects: Sequence[ProjectsGetAllResponseSingle]
"""
_service = "projects"
_action = "get_all"
_version = "1.5"
_schema = {
'definitions': {
'project_tags_enum': {'enum': ['archived', 'public', 'default'], 'type': 'string'},
'projects_get_all_response_single': {
'properties': {
'company': {
'description': 'Company id',
'type': ['string', 'null'],
},
'created': {
'description': 'Creation time',
'format': 'date-time',
'type': ['string', 'null'],
},
'default_output_destination': {
'description': 'The default output destination URL for new tasks under this project',
'type': ['string', 'null'],
},
'description': {
'description': 'Project description',
'type': ['string', 'null'],
},
'id': {'description': 'Project id', 'type': ['string', 'null']},
'name': {
'description': 'Project name',
'type': ['string', 'null'],
},
'stats': {
'description': 'Additional project stats',
'oneOf': [
{'$ref': '#/definitions/stats'},
{'type': 'null'},
],
},
'tags': {
'description': 'Tags',
'items': {'$ref': '#/definitions/project_tags_enum'},
'type': ['array', 'null'],
},
'user': {
'description': 'Associated user id',
'type': ['string', 'null'],
},
},
'type': 'object',
},
'stats': {
'properties': {
'active': {
'description': 'Stats for active tasks',
'oneOf': [
{'$ref': '#/definitions/stats_status_count'},
{'type': 'null'},
],
},
'archived': {
'description': 'Stats for archived tasks',
'oneOf': [
{'$ref': '#/definitions/stats_status_count'},
{'type': 'null'},
],
},
},
'type': 'object',
},
'stats_status_count': {
'properties': {
'status_count': {
'description': 'Status counts',
'properties': {
'closed': {
'description': "Number of 'closed' tasks in project",
'type': 'integer',
},
'created': {
'description': "Number of 'created' tasks in project",
'type': 'integer',
},
'failed': {
'description': "Number of 'failed' tasks in project",
'type': 'integer',
},
'in_progress': {
'description': "Number of 'in_progress' tasks in project",
'type': 'integer',
},
'published': {
'description': "Number of 'published' tasks in project",
'type': 'integer',
},
'queued': {
'description': "Number of 'queued' tasks in project",
'type': 'integer',
},
'stopped': {
'description': "Number of 'stopped' tasks in project",
'type': 'integer',
},
'unknown': {
'description': "Number of 'unknown' tasks in project",
'type': 'integer',
},
},
'type': ['object', 'null'],
},
'total_runtime': {
'description': 'Total run time of all tasks in project (in seconds)',
'type': ['integer', 'null'],
},
},
'type': 'object',
},
},
'properties': {
'projects': {
'description': 'Projects list',
'items': {
'$ref': '#/definitions/projects_get_all_response_single',
},
'type': ['array', 'null'],
},
},
'type': 'object',
}
def __init__(
self, projects=None, **kwargs):
super(GetAllResponse, self).__init__(**kwargs)
self.projects = projects
@schema_property('projects')
def projects(self):
return self._property_projects
@projects.setter
def projects(self, value):
if value is None:
self._property_projects = None
return
self.assert_isinstance(value, "projects", (list, tuple))
if any(isinstance(v, dict) for v in value):
value = [ProjectsGetAllResponseSingle.from_dict(v) if isinstance(v, dict) else v for v in value]
else:
self.assert_isinstance(value, "projects", ProjectsGetAllResponseSingle, is_array=True)
self._property_projects = value
class GetByIdRequest(Request):
"""
:param project: Project id
:type project: str
"""
_service = "projects"
_action = "get_by_id"
_version = "1.5"
_schema = {
'definitions': {},
'properties': {'project': {'description': 'Project id', 'type': 'string'}},
'required': ['project'],
'type': 'object',
}
def __init__(
self, project, **kwargs):
super(GetByIdRequest, self).__init__(**kwargs)
self.project = project
@schema_property('project')
def project(self):
return self._property_project
@project.setter
def project(self, value):
if value is None:
self._property_project = None
return
self.assert_isinstance(value, "project", six.string_types)
self._property_project = value
class GetByIdResponse(Response):
"""
Response of projects.get_by_id endpoint.
:param project: Project info
:type project: Project
"""
_service = "projects"
_action = "get_by_id"
_version = "1.5"
_schema = {
'definitions': {
'project': {
'properties': {
'company': {
'description': 'Company id',
'type': ['string', 'null'],
},
'created': {
'description': 'Creation time',
'format': 'date-time',
'type': ['string', 'null'],
},
'default_output_destination': {
'description': 'The default output destination URL for new tasks under this project',
'type': ['string', 'null'],
},
'description': {
'description': 'Project description',
'type': ['string', 'null'],
},
'id': {'description': 'Project id', 'type': ['string', 'null']},
'last_update': {
'description': 'Last project update time. Reflects the last time the project metadata was changed or a task in this project has changed status',
'format': 'date-time',
'type': ['string', 'null'],
},
'name': {
'description': 'Project name',
'type': ['string', 'null'],
},
'tags': {
'description': 'Tags',
'items': {'$ref': '#/definitions/project_tags_enum'},
'type': ['array', 'null'],
},
'user': {
'description': 'Associated user id',
'type': ['string', 'null'],
},
},
'type': 'object',
},
'project_tags_enum': {'enum': ['archived', 'public', 'default'], 'type': 'string'},
},
'properties': {
'project': {
'description': 'Project info',
'oneOf': [{'$ref': '#/definitions/project'}, {'type': 'null'}],
},
},
'type': 'object',
}
def __init__(
self, project=None, **kwargs):
super(GetByIdResponse, self).__init__(**kwargs)
self.project = project
@schema_property('project')
def project(self):
return self._property_project
@project.setter
def project(self, value):
if value is None:
self._property_project = None
return
if isinstance(value, dict):
value = Project.from_dict(value)
else:
self.assert_isinstance(value, "project", Project)
self._property_project = value
class GetUniqueMetricVariantsRequest(Request):
"""
Get all metric/variant pairs reported for tasks in a specific project.
If no project is specified, metrics/variant paris reported for all tasks will be returned.
If the project does not exist, an empty list will be returned.
:param project: Project ID
:type project: str
"""
_service = "projects"
_action = "get_unique_metric_variants"
_version = "1.6"
_schema = {
'definitions': {},
'properties': {
'project': {'description': 'Project ID', 'type': ['string', 'null']},
},
'type': 'object',
}
def __init__(
self, project=None, **kwargs):
super(GetUniqueMetricVariantsRequest, self).__init__(**kwargs)
self.project = project
@schema_property('project')
def project(self):
return self._property_project
@project.setter
def project(self, value):
if value is None:
self._property_project = None
return
self.assert_isinstance(value, "project", six.string_types)
self._property_project = value
class GetUniqueMetricVariantsResponse(Response):
"""
Response of projects.get_unique_metric_variants endpoint.
:param metrics: A list of metric variants reported for tasks in this project
:type metrics: Sequence[MetricVariantResult]
"""
_service = "projects"
_action = "get_unique_metric_variants"
_version = "1.6"
_schema = {
'definitions': {
'metric_variant_result': {
'properties': {
'metric': {
'description': 'Metric name',
'type': ['string', 'null'],
},
'metric_hash': {
'description': 'Metric name hash. Used instead of the metric name when categorizing\n last metrics events in task objects.',
'type': ['string', 'null'],
},
'variant': {
'description': 'Variant name',
'type': ['string', 'null'],
},
'variant_hash': {
'description': 'Variant name hash. Used instead of the variant name when categorizing\n last metrics events in task objects.',
'type': ['string', 'null'],
},
},
'type': 'object',
},
},
'properties': {
'metrics': {
'description': 'A list of metric variants reported for tasks in this project',
'items': {'$ref': '#/definitions/metric_variant_result'},
'type': ['array', 'null'],
},
},
'type': 'object',
}
def __init__(
self, metrics=None, **kwargs):
super(GetUniqueMetricVariantsResponse, self).__init__(**kwargs)
self.metrics = metrics
@schema_property('metrics')
def metrics(self):
return self._property_metrics
@metrics.setter
def metrics(self, value):
if value is None:
self._property_metrics = None
return
self.assert_isinstance(value, "metrics", (list, tuple))
if any(isinstance(v, dict) for v in value):
value = [MetricVariantResult.from_dict(v) if isinstance(v, dict) else v for v in value]
else:
self.assert_isinstance(value, "metrics", MetricVariantResult, is_array=True)
self._property_metrics = value
class UpdateRequest(Request):
"""
Update project information
:param project: Project id
:type project: str
:param name: Project name. Unique within the company.
:type name: str
:param description: Project description
:type description: str
:param tags: Tags list
:type tags: Sequence[str]
:param default_output_destination: The default output destination URL for new
tasks under this project
:type default_output_destination: str
"""
_service = "projects"
_action = "update"
_version = "1.5"
_schema = {
'definitions': {},
'properties': {
'default_output_destination': {
'description': 'The default output destination URL for new tasks under this project',
'type': 'string',
},
'description': {
'description': 'Project description',
'type': 'string',
},
'name': {
'description': 'Project name. Unique within the company.',
'type': 'string',
},
'project': {'description': 'Project id', 'type': 'string'},
'tags': {'description': 'Tags list', 'items': {'type': 'string'}, 'type': 'array'},
},
'required': ['project'],
'type': 'object',
}
def __init__(
self, project, name=None, description=None, tags=None, default_output_destination=None, **kwargs):
super(UpdateRequest, self).__init__(**kwargs)
self.project = project
self.name = name
self.description = description
self.tags = tags
self.default_output_destination = default_output_destination
@schema_property('project')
def project(self):
return self._property_project
@project.setter
def project(self, value):
if value is None:
self._property_project = None
return
self.assert_isinstance(value, "project", six.string_types)
self._property_project = value
@schema_property('name')
def name(self):
return self._property_name
@name.setter
def name(self, value):
if value is None:
self._property_name = None
return
self.assert_isinstance(value, "name", six.string_types)
self._property_name = value
@schema_property('description')
def description(self):
return self._property_description
@description.setter
def description(self, value):
if value is None:
self._property_description = None
return
self.assert_isinstance(value, "description", six.string_types)
self._property_description = value
@schema_property('tags')
def tags(self):
return self._property_tags
@tags.setter
def tags(self, value):
if value is None:
self._property_tags = None
return
self.assert_isinstance(value, "tags", (list, tuple))
self.assert_isinstance(value, "tags", six.string_types, is_array=True)
self._property_tags = value
@schema_property('default_output_destination')
def default_output_destination(self):
return self._property_default_output_destination
@default_output_destination.setter
def default_output_destination(self, value):
if value is None:
self._property_default_output_destination = None
return
self.assert_isinstance(value, "default_output_destination", six.string_types)
self._property_default_output_destination = value
class UpdateResponse(Response):
"""
Response of projects.update endpoint.
:param updated: Number of projects updated (0 or 1)
:type updated: int
:param fields: Updated fields names and values
:type fields: dict
"""
_service = "projects"
_action = "update"
_version = "1.5"
_schema = {
'definitions': {},
'properties': {
'fields': {
'additionalProperties': True,
'description': 'Updated fields names and values',
'type': ['object', 'null'],
},
'updated': {
'description': 'Number of projects updated (0 or 1)',
'enum': [0, 1],
'type': ['integer', 'null'],
},
},
'type': 'object',
}
def __init__(
self, updated=None, fields=None, **kwargs):
super(UpdateResponse, self).__init__(**kwargs)
self.updated = updated
self.fields = fields
@schema_property('updated')
def updated(self):
return self._property_updated
@updated.setter
def updated(self, value):
if value is None:
self._property_updated = None
return
if isinstance(value, float) and value.is_integer():
value = int(value)
self.assert_isinstance(value, "updated", six.integer_types)
self._property_updated = value
@schema_property('fields')
def fields(self):
return self._property_fields
@fields.setter
def fields(self, value):
if value is None:
self._property_fields = None
return
self.assert_isinstance(value, "fields", (dict,))
self._property_fields = value
response_mapping = {
CreateRequest: CreateResponse,
GetByIdRequest: GetByIdResponse,
GetAllRequest: GetAllResponse,
UpdateRequest: UpdateResponse,
DeleteRequest: DeleteResponse,
GetUniqueMetricVariantsRequest: GetUniqueMetricVariantsResponse,
}
| 32.989166
| 262
| 0.543171
| 5,790
| 60,898
| 5.511399
| 0.045423
| 0.067688
| 0.044499
| 0.055623
| 0.77948
| 0.749209
| 0.721131
| 0.704115
| 0.658958
| 0.643258
| 0
| 0.00091
| 0.350094
| 60,898
| 1,845
| 263
| 33.007046
| 0.805372
| 0.097458
| 0
| 0.641791
| 0
| 0.006397
| 0.19402
| 0.018061
| 0
| 0
| 0
| 0
| 0.050462
| 1
| 0.098081
| false
| 0
| 0.002843
| 0.042644
| 0.240227
| 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
|
be4137afe331f5a0fe0cbc2e51f8d32672087a38
| 315
|
py
|
Python
|
data/signals.py
|
noirbizarre/pelican-data
|
4be92437ea8aa40f604ae0fdc4d731ecc64f0e79
|
[
"MIT"
] | 1
|
2020-03-17T21:34:26.000Z
|
2020-03-17T21:34:26.000Z
|
data/signals.py
|
noirbizarre/pelican-data
|
4be92437ea8aa40f604ae0fdc4d731ecc64f0e79
|
[
"MIT"
] | 2
|
2020-03-17T21:35:15.000Z
|
2022-03-13T01:04:54.000Z
|
data/signals.py
|
noirbizarre/pelican-data
|
4be92437ea8aa40f604ae0fdc4d731ecc64f0e79
|
[
"MIT"
] | null | null | null |
from blinker import signal
data_generator_init = signal('data_generator_init')
data_generator_finalized = signal('data_generator_finalized')
data_writer_finalized = signal('data_writer_finalized')
data_generator_preread = signal('data_generator_preread')
data_generator_context = signal('data_generator_context')
| 35
| 61
| 0.853968
| 39
| 315
| 6.384615
| 0.282051
| 0.417671
| 0.381526
| 0.184739
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.066667
| 315
| 8
| 62
| 39.375
| 0.846939
| 0
| 0
| 0
| 0
| 0
| 0.342857
| 0.28254
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.166667
| 0
| 0.166667
| 0
| 0
| 0
| 0
| null | 1
| 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
|
be46f64ab983369f01986178aed14e039e0758da
| 75
|
py
|
Python
|
src/google_music_proto/musicmanager/constants.py
|
hedgepigdaniel/google-music-proto
|
37fab538c7d6ca939736047e5137d46e0ff2f85f
|
[
"MIT"
] | 10
|
2018-10-20T01:06:10.000Z
|
2021-10-05T12:05:36.000Z
|
src/google_music_proto/musicmanager/constants.py
|
hedgepigdaniel/google-music-proto
|
37fab538c7d6ca939736047e5137d46e0ff2f85f
|
[
"MIT"
] | 11
|
2018-12-28T00:00:11.000Z
|
2020-07-13T13:03:25.000Z
|
src/google_music_proto/musicmanager/constants.py
|
hedgepigdaniel/google-music-proto
|
37fab538c7d6ca939736047e5137d46e0ff2f85f
|
[
"MIT"
] | 3
|
2019-05-15T17:58:33.000Z
|
2020-08-17T13:53:41.000Z
|
__all__ = ['API_URL']
API_URL = 'https://android.clients.google.com/upsj'
| 18.75
| 51
| 0.706667
| 11
| 75
| 4.272727
| 0.818182
| 0.255319
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.093333
| 75
| 3
| 52
| 25
| 0.691176
| 0
| 0
| 0
| 0
| 0
| 0.613333
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 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
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
be470142369cd319e31439260aa35482bfcbaa59
| 91
|
py
|
Python
|
purchase/apps.py
|
kissops/ERPv
|
e5772f5e254d178bb29661d22401c9edcb6067ce
|
[
"MIT"
] | 2
|
2019-07-25T10:58:59.000Z
|
2020-11-08T02:32:44.000Z
|
purchase/apps.py
|
kissops/ERPv-server
|
e5772f5e254d178bb29661d22401c9edcb6067ce
|
[
"MIT"
] | 21
|
2021-01-01T14:08:41.000Z
|
2021-09-01T16:04:20.000Z
|
purchase/apps.py
|
kissops/ERPv-server
|
e5772f5e254d178bb29661d22401c9edcb6067ce
|
[
"MIT"
] | 1
|
2020-10-05T03:35:28.000Z
|
2020-10-05T03:35:28.000Z
|
from django.apps import AppConfig
class PurchaseConfig(AppConfig):
name = "purchase"
| 15.166667
| 33
| 0.758242
| 10
| 91
| 6.9
| 0.9
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.164835
| 91
| 5
| 34
| 18.2
| 0.907895
| 0
| 0
| 0
| 0
| 0
| 0.087912
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
be64336fe6d7b491ca24525d4bb71f44cb7492ef
| 5,089
|
py
|
Python
|
networkscanners/models.py
|
GMedian/archerysec
|
9591fdb6b21ca56d77364d1433acbaff84437c7f
|
[
"BSD-3-Clause"
] | 1
|
2018-11-10T22:34:27.000Z
|
2018-11-10T22:34:27.000Z
|
networkscanners/models.py
|
GMedian/archerysec
|
9591fdb6b21ca56d77364d1433acbaff84437c7f
|
[
"BSD-3-Clause"
] | 8
|
2020-02-12T00:43:21.000Z
|
2022-03-11T23:25:08.000Z
|
networkscanners/models.py
|
GMedian/archerysec
|
9591fdb6b21ca56d77364d1433acbaff84437c7f
|
[
"BSD-3-Clause"
] | 1
|
2018-08-12T17:29:35.000Z
|
2018-08-12T17:29:35.000Z
|
# -*- coding: utf-8 -*-
# _
# /\ | |
# / \ _ __ ___| |__ ___ _ __ _ _
# / /\ \ | '__/ __| '_ \ / _ \ '__| | | |
# / ____ \| | | (__| | | | __/ | | |_| |
#/_/ \_\_| \___|_| |_|\___|_| \__, |
# __/ |
# |___/
# Copyright (C) 2017-2018 ArcherySec
# This file is part of ArcherySec Project.
from __future__ import unicode_literals
from django.db import models
from fernet_fields import EncryptedTextField
class ov_scan_result_db(models.Model):
scan_id = models.TextField(blank=True)
rescan_id = models.TextField(blank=True, null=True)
project_id = models.UUIDField(null=True)
vul_id = models.TextField(blank=True)
name = models.TextField(blank=True)
owner = models.TextField(blank=True)
comment = models.TextField(blank=True)
creation_time = models.TextField(blank=True)
modification_time = models.TextField(blank=True)
user_tags = models.TextField(blank=True)
host = models.TextField(blank=True)
port = models.TextField(blank=True)
nvt = models.TextField(blank=True)
scan_nvt_version = models.TextField(blank=True)
threat = models.TextField(blank=True)
severity = models.TextField(blank=True)
qod = models.TextField(blank=True)
description = models.TextField(blank=True)
term = models.TextField(blank=True)
keywords = models.TextField(blank=True)
field = models.TextField(blank=True)
filtered = models.TextField(blank=True)
page = models.TextField(blank=True)
vuln_color = models.TextField(blank=True)
family = models.TextField(blank=True)
cvss_base = models.TextField(blank=True)
cve = models.TextField(blank=True)
bid = models.TextField(blank=True)
xref = models.TextField(blank=True)
tags = models.TextField(blank=True)
banner = models.TextField(blank=True)
date_time = models.DateTimeField(null=True)
false_positive = models.TextField(null=True, blank=True)
jira_ticket = models.TextField(null=True, blank=True)
class scan_save_db(models.Model):
scan_id = models.TextField(blank=True)
rescan_id = models.TextField(blank=True, null=True)
scan_ip = models.TextField(blank=True)
target_id = models.TextField(blank=True)
scan_status = models.TextField(blank=True)
total_vul = models.TextField(blank=True)
high_total = models.TextField(blank=True)
medium_total = models.TextField(blank=True)
low_total = models.TextField(blank=True)
project_id = models.TextField(blank=True)
date_time = models.DateTimeField(null=True)
class task_schedule_db(models.Model):
task_id = models.TextField(blank=True, null=True)
target = models.TextField(blank=True, null=True)
schedule_time = models.TextField(blank=True, null=True)
project_id = models.TextField(blank=True, null=True)
scanner = models.TextField(blank=True, null=True)
periodic_task = models.TextField(blank=True, null=True)
class nessus_report_db(models.Model):
project_id = models.UUIDField(null=True)
scan_id = models.TextField(blank=True)
vul_id = models.TextField(blank=True)
agent = models.TextField(blank=True, null=True)
description = models.TextField(blank=True, null=True)
fname = models.TextField(blank=True, null=True)
plugin_modification_date = models.TextField(blank=True, null=True)
plugin_name = models.TextField(blank=True, null=True)
plugin_publication_date = models.TextField(blank=True, null=True)
plugin_type = models.TextField(blank=True, null=True)
risk_factor = models.TextField(blank=True, null=True)
script_version = models.TextField(blank=True, null=True)
see_also = models.TextField(blank=True, null=True)
solution = models.TextField(blank=True, null=True)
synopsis = models.TextField(blank=True, null=True)
plugin_output = models.TextField(blank=True, null=True)
false_positive = models.TextField(blank=True, null=True)
pluginName = models.TextField(blank=True, null=True)
pluginID = models.TextField(blank=True, null=True)
protocol = models.TextField(blank=True, null=True)
severity = models.TextField(blank=True, null=True)
svc_name = models.TextField(blank=True, null=True)
pluginFamily = models.TextField(blank=True, null=True)
port = models.TextField(blank=True, null=True)
scan_ip = models.TextField(blank=True, null=True)
jira_ticket = models.TextField(null=True, blank=True)
class nessus_scan_db(models.Model):
scan_id = models.TextField(blank=True)
rescan_id = models.TextField(blank=True, null=True)
scan_ip = models.TextField(blank=True)
target_id = models.TextField(blank=True)
scan_status = models.TextField(blank=True)
total_vul = models.TextField(blank=True)
critical_total = models.TextField(blank=True)
high_total = models.TextField(blank=True)
medium_total = models.TextField(blank=True)
low_total = models.TextField(blank=True)
project_id = models.TextField(blank=True)
date_time = models.DateTimeField(null=True)
| 42.408333
| 70
| 0.704264
| 632
| 5,089
| 5.468354
| 0.169304
| 0.364583
| 0.46875
| 0.5625
| 0.732639
| 0.670428
| 0.438079
| 0.35706
| 0.332755
| 0.314815
| 0
| 0.002142
| 0.174298
| 5,089
| 120
| 71
| 42.408333
| 0.820324
| 0.075064
| 0
| 0.329897
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.030928
| 0
| 1
| 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
|
be911cdba75bbf9da0519aaf876628747580d1c5
| 168
|
py
|
Python
|
calculos.py
|
tiagopariz/FaztCursoPythonParaPrincipiantes
|
4a9e1c24baf4a60424791f5b80b18e89395839a1
|
[
"MIT"
] | null | null | null |
calculos.py
|
tiagopariz/FaztCursoPythonParaPrincipiantes
|
4a9e1c24baf4a60424791f5b80b18e89395839a1
|
[
"MIT"
] | null | null | null |
calculos.py
|
tiagopariz/FaztCursoPythonParaPrincipiantes
|
4a9e1c24baf4a60424791f5b80b18e89395839a1
|
[
"MIT"
] | null | null | null |
import matematica
matematica.add(1, 2)
matematica.subtract(1, 2)
from matematica import add
add(1, 2)
from matematica import add, subtract
subtract(1, 2)
add(1, 2)
| 12.923077
| 36
| 0.744048
| 28
| 168
| 4.464286
| 0.25
| 0.08
| 0.12
| 0.256
| 0.4
| 0.4
| 0
| 0
| 0
| 0
| 0
| 0.06993
| 0.14881
| 168
| 13
| 37
| 12.923077
| 0.804196
| 0
| 0
| 0.25
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.375
| 0
| 0.375
| 0
| 1
| 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
| 0
| 0
|
0
| 4
|
bea134192e6be0731226c8ce0884fd3efe181140
| 315
|
py
|
Python
|
analysis/cec_python_library/cec2013/__init__.py
|
stevenjson/ALife2018-Lineage
|
43ac2de8e9fa36dbbffda626cb4bc08780dc8e49
|
[
"MIT"
] | 65
|
2016-04-07T10:53:45.000Z
|
2022-03-21T00:48:32.000Z
|
analysis/cec_python_library/cec2013/__init__.py
|
stevenjson/ALife2018-Lineage
|
43ac2de8e9fa36dbbffda626cb4bc08780dc8e49
|
[
"MIT"
] | 5
|
2016-08-29T01:52:20.000Z
|
2020-09-04T04:10:54.000Z
|
analysis/cec_python_library/cec2013/__init__.py
|
stevenjson/ALife2018-Lineage
|
43ac2de8e9fa36dbbffda626cb4bc08780dc8e49
|
[
"MIT"
] | 56
|
2015-08-08T04:24:05.000Z
|
2022-02-28T08:43:11.000Z
|
###############################################################################
# Version: 1.1
# Last modified on: 3 April, 2016
# Developers: Michael G. Epitropakis
# email: m_(DOT)_epitropakis_(AT)_lancaster_(DOT)_ac_(DOT)_uk
###############################################################################
| 45
| 79
| 0.352381
| 23
| 315
| 4.478261
| 0.826087
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.024306
| 0.085714
| 315
| 6
| 80
| 52.5
| 0.333333
| 0.460317
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
beaeb74afa35292fac7af82f13506c9f3d37db60
| 116
|
py
|
Python
|
examples/ftplib.py
|
mikelolasagasti/bandit
|
3dca7820158ea04668878186a29d34e81bbd7fe3
|
[
"Apache-2.0"
] | 4,016
|
2018-04-26T13:01:54.000Z
|
2022-03-31T15:57:41.000Z
|
examples/ftplib.py
|
lweslen/bandit
|
2bd1ffaae1b83102af8587dcbeecd0b402dbec4e
|
[
"Apache-2.0"
] | 570
|
2018-04-26T10:07:41.000Z
|
2022-03-29T18:55:09.000Z
|
examples/ftplib.py
|
lweslen/bandit
|
2bd1ffaae1b83102af8587dcbeecd0b402dbec4e
|
[
"Apache-2.0"
] | 484
|
2018-04-26T09:59:46.000Z
|
2022-03-31T18:00:50.000Z
|
from ftplib import FTP
ftp = FTP('ftp.debian.org')
ftp.login()
ftp.cwd('debian')
ftp.retrlines('LIST')
ftp.quit()
| 12.888889
| 27
| 0.689655
| 19
| 116
| 4.210526
| 0.578947
| 0.225
| 0.225
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.112069
| 116
| 9
| 28
| 12.888889
| 0.776699
| 0
| 0
| 0
| 0
| 0
| 0.205128
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.166667
| 0
| 0.166667
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
fe2385d81a80af74b3b37952cfb29d23f7f63ff5
| 1,282
|
py
|
Python
|
encode.py
|
xiahualiu/AI-Cube
|
5795306a2abde53d1000e71fa5b60e3c7532bfe6
|
[
"MIT"
] | 1
|
2021-02-22T21:33:09.000Z
|
2021-02-22T21:33:09.000Z
|
encode.py
|
xiahualiu/AI-Cube
|
5795306a2abde53d1000e71fa5b60e3c7532bfe6
|
[
"MIT"
] | null | null | null |
encode.py
|
xiahualiu/AI-Cube
|
5795306a2abde53d1000e71fa5b60e3c7532bfe6
|
[
"MIT"
] | null | null | null |
import numpy as np
def encode(state):
# This is the function that encode one single state
# We need to encode the [7,2] shaped state array into [1,168] shaped array
# befor we feed it to the RL network
#
# Input Size: 1 Input Type: cube.state (np.array.shape=[7,2])
# Output: 1) encoded_state Size: [1,168] Type:np.array Dtype=np.float64
#
def f(x):
result=np.zeros([24],dtype=np.float64)
result[x[0]+x[1]*8]=1
return result
return np.array([f(xi) for xi in state],dtype=np.float64).flatten() # 1x168 array
def encode_batch(batch):
# This is the function that encode a batch of states
# We need to encode the [n,7,2] shaped state array into [n,1,168] shaped array
# befor we feed it to the RL network
#
# Input Size: 1 Input Type: a batch of cube.state (np.array.shape=[n,7,2])
# Output: 1) encoded_state_bathc Size: [n,1,168] Type:np.array Dtype=np.float64
def f(x):
result=np.zeros([24],dtype=np.float64)
result[x[0]+x[1]*8]=1
return result
return np.array([np.array([f(xi) for xi in state],dtype=np.float64).flatten() for state in batch],\
dtype=np.float64)
| 38.848485
| 103
| 0.593604
| 209
| 1,282
| 3.62201
| 0.272727
| 0.064729
| 0.129458
| 0.044914
| 0.815059
| 0.714663
| 0.529723
| 0.529723
| 0.529723
| 0.529723
| 0
| 0.063319
| 0.285491
| 1,282
| 33
| 104
| 38.848485
| 0.7631
| 0.50624
| 0
| 0.571429
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.285714
| false
| 0
| 0.071429
| 0
| 0.642857
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
fe26cd422d2daa21b30dbfb8685eab1cc0ad71f1
| 1,773
|
py
|
Python
|
python/alchemy/examples/alchemy_language_v1.py
|
semplea/characters-meta
|
bf5a066b203648fec8658a76b79ddb3e5159b1ae
|
[
"MIT"
] | null | null | null |
python/alchemy/examples/alchemy_language_v1.py
|
semplea/characters-meta
|
bf5a066b203648fec8658a76b79ddb3e5159b1ae
|
[
"MIT"
] | null | null | null |
python/alchemy/examples/alchemy_language_v1.py
|
semplea/characters-meta
|
bf5a066b203648fec8658a76b79ddb3e5159b1ae
|
[
"MIT"
] | null | null | null |
import json
from os.path import join, dirname
from watson_developer_cloud import AlchemyLanguageV1
alchemy_language = AlchemyLanguageV1(api_key='c851400276c1acbd020210847f8677e6d1577c26')
url = 'https://developer.ibm.com/watson/blog/2015/11/03/price-reduction-for-watson-personality-insights/'
print(json.dumps(alchemy_language.targeted_sentiment(text='I love cats! Dogs are smelly.',
targets=['cats', 'dogs'], language='english'), indent=2))
# print(json.dumps(alchemy_language.author(url=url), indent=2))
# print(json.dumps(alchemy_language.keywords(max_items=5, url=url), indent=2))
# print(json.dumps(alchemy_language.concepts(max_items=2, url=url), indent=2))
# print(json.dumps(alchemy_language.entities(url=url), indent=2))
# print(json.dumps(alchemy_language.category(url=url), indent=2))
# print(json.dumps(alchemy_language.typed_relations(url=url), indent=2))
# print(json.dumps(alchemy_language.relations(url=url), indent=2))
# print(json.dumps(alchemy_language.language(url=url), indent=2))
# print(json.dumps(alchemy_language.text(url=url), indent=2))
# print(json.dumps(alchemy_language.raw_text(url=url), indent=2))
# print(json.dumps(alchemy_language.title(url=url), indent=2))
# print(json.dumps(alchemy_language.feeds(url=url), indent=2))
# print(json.dumps(alchemy_language.microformats(url='http://microformats.org/wiki/hcard-examples'), indent=2))
# print(json.dumps(alchemy_language.publication_date(url=url), indent=2))
# print(json.dumps(alchemy_language.taxonomy(url=url), indent=2))
combined_operations = ['page-image', 'entity', 'keyword', 'title', 'author', 'taxonomy', 'concept', 'doc-emotion']
print(json.dumps(alchemy_language.combined(url=url, extract=combined_operations), indent=2))
| 63.321429
| 114
| 0.755781
| 246
| 1,773
| 5.329268
| 0.308943
| 0.20595
| 0.181541
| 0.272311
| 0.535469
| 0.491228
| 0.491228
| 0.436308
| 0.436308
| 0.147979
| 0
| 0.036196
| 0.080654
| 1,773
| 27
| 115
| 65.666667
| 0.768098
| 0.583756
| 0
| 0
| 0
| 0.111111
| 0.333795
| 0.055402
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 0.333333
| 0.222222
| 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
| 1
| 0
| 0
| 0
|
0
| 4
|
fe4cb3b9c7cad912d15766637cd5865a691507c9
| 657
|
py
|
Python
|
tests/test_provider.py
|
ksu-is/spotify-downloader
|
1a08703b8beff98540d6a7052d8393fe2c6fa551
|
[
"MIT"
] | 6
|
2021-05-27T08:25:48.000Z
|
2022-02-08T21:37:24.000Z
|
tests/test_provider.py
|
ksu-is/spotify-downloader
|
1a08703b8beff98540d6a7052d8393fe2c6fa551
|
[
"MIT"
] | null | null | null |
tests/test_provider.py
|
ksu-is/spotify-downloader
|
1a08703b8beff98540d6a7052d8393fe2c6fa551
|
[
"MIT"
] | 1
|
2021-03-16T11:40:37.000Z
|
2021-03-16T11:40:37.000Z
|
from spotdl.search.provider import _parse_duration
def test_parse_duration():
"""
Test the duration parsing
"""
assert _parse_duration("3:16") == float(196.0) # 3 min song
assert _parse_duration("20") == float(20.0) # 20 second song
assert _parse_duration("25:59") == float(1559.0) # 26 min result
assert _parse_duration("25:59:59") == float(93599.0) # 26 hour result
assert _parse_duration("likes") == float(0.0) # bad values
assert _parse_duration("views") == float(0.0)
assert _parse_duration([1, 2, 3]) == float(0.0)
assert _parse_duration({"json": "data"}) == float(0.0)
| 43.8
| 75
| 0.625571
| 92
| 657
| 4.25
| 0.391304
| 0.332481
| 0.388747
| 0.117647
| 0.250639
| 0.132992
| 0
| 0
| 0
| 0
| 0
| 0.1
| 0.223744
| 657
| 15
| 76
| 43.8
| 0.666667
| 0.14003
| 0
| 0
| 0
| 0
| 0.067766
| 0
| 0
| 0
| 0
| 0
| 0.8
| 1
| 0.1
| true
| 0
| 0.1
| 0
| 0.2
| 0
| 0
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
fe62f967664bafd322cfa82e9b1ae148d3a1f48a
| 254
|
py
|
Python
|
output/models/nist_data/atomic/duration/schema_instance/nistschema_sv_iv_atomic_duration_pattern_2_xsd/__init__.py
|
tefra/xsdata-w3c-tests
|
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
|
[
"MIT"
] | 1
|
2021-08-14T17:59:21.000Z
|
2021-08-14T17:59:21.000Z
|
output/models/nist_data/atomic/duration/schema_instance/nistschema_sv_iv_atomic_duration_pattern_2_xsd/__init__.py
|
tefra/xsdata-w3c-tests
|
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
|
[
"MIT"
] | 4
|
2020-02-12T21:30:44.000Z
|
2020-04-15T20:06:46.000Z
|
output/models/nist_data/atomic/duration/schema_instance/nistschema_sv_iv_atomic_duration_pattern_2_xsd/__init__.py
|
tefra/xsdata-w3c-tests
|
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
|
[
"MIT"
] | null | null | null |
from output.models.nist_data.atomic.duration.schema_instance.nistschema_sv_iv_atomic_duration_pattern_2_xsd.nistschema_sv_iv_atomic_duration_pattern_2 import NistschemaSvIvAtomicDurationPattern2
__all__ = [
"NistschemaSvIvAtomicDurationPattern2",
]
| 42.333333
| 194
| 0.893701
| 28
| 254
| 7.428571
| 0.642857
| 0.201923
| 0.134615
| 0.192308
| 0.346154
| 0.346154
| 0.346154
| 0
| 0
| 0
| 0
| 0.016667
| 0.055118
| 254
| 5
| 195
| 50.8
| 0.85
| 0
| 0
| 0
| 0
| 0
| 0.141732
| 0.141732
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.25
| 0
| 0.25
| 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
|
fe7aae96ddfbe426af0215f6832659a1f80a4755
| 208
|
py
|
Python
|
codeChef/practice/easy/decstr.py
|
ferhatelmas/algo
|
a7149c7a605708bc01a5cd30bf5455644cefd04d
|
[
"WTFPL"
] | 25
|
2015-01-21T16:39:18.000Z
|
2021-05-24T07:01:24.000Z
|
codeChef/practice/easy/decstr.py
|
ferhatelmas/algo
|
a7149c7a605708bc01a5cd30bf5455644cefd04d
|
[
"WTFPL"
] | 2
|
2020-09-30T19:39:36.000Z
|
2020-10-01T17:15:16.000Z
|
codeChef/practice/easy/decstr.py
|
ferhatelmas/algo
|
a7149c7a605708bc01a5cd30bf5455644cefd04d
|
[
"WTFPL"
] | 15
|
2015-01-21T16:39:27.000Z
|
2020-10-01T17:00:22.000Z
|
for _ in xrange(int(raw_input())):
n = int(raw_input())
r = map(chr, (range(97, 123) * (n / 25)))
if n % 25 > 0:
r += map(chr, range(97, 98 + n % 25))
r.reverse()
print "".join(r)
| 26
| 45
| 0.480769
| 35
| 208
| 2.771429
| 0.571429
| 0.092784
| 0.226804
| 0.247423
| 0.28866
| 0
| 0
| 0
| 0
| 0
| 0
| 0.109589
| 0.298077
| 208
| 7
| 46
| 29.714286
| 0.554795
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0
| null | null | 0.142857
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
fe8140c7a7ae5b1e761a51bf9bf84aac396bea70
| 79
|
py
|
Python
|
sklearnModel.py
|
panthename/python
|
03b56bb9d9eb477127cd7596bde965ab11af8bdf
|
[
"Apache-2.0"
] | null | null | null |
sklearnModel.py
|
panthename/python
|
03b56bb9d9eb477127cd7596bde965ab11af8bdf
|
[
"Apache-2.0"
] | null | null | null |
sklearnModel.py
|
panthename/python
|
03b56bb9d9eb477127cd7596bde965ab11af8bdf
|
[
"Apache-2.0"
] | null | null | null |
from preprogress import get_dataset_XY
trainX,trainY,testX,testY,validX,validY
| 26.333333
| 39
| 0.873418
| 12
| 79
| 5.583333
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.063291
| 79
| 3
| 39
| 26.333333
| 0.905405
| 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
|
fe864c535a838ee4e5c7d263c19d872b98b33e85
| 94
|
py
|
Python
|
deduplipy/active_learning/__init__.py
|
koaning/deduplipy
|
bf6392af5d846c60083f9ac1d120a25281d13ceb
|
[
"MIT"
] | 51
|
2021-05-07T10:09:33.000Z
|
2022-03-17T08:09:04.000Z
|
deduplipy/active_learning/__init__.py
|
koaning/deduplipy
|
bf6392af5d846c60083f9ac1d120a25281d13ceb
|
[
"MIT"
] | 7
|
2021-10-14T10:48:36.000Z
|
2022-02-28T19:28:46.000Z
|
deduplipy/active_learning/__init__.py
|
koaning/deduplipy
|
bf6392af5d846c60083f9ac1d120a25281d13ceb
|
[
"MIT"
] | 7
|
2021-05-07T10:08:53.000Z
|
2022-02-08T23:12:06.000Z
|
__all__ = ['ActiveStringMatchLearner']
from .active_learning import ActiveStringMatchLearner
| 23.5
| 53
| 0.851064
| 7
| 94
| 10.714286
| 0.857143
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.085106
| 94
| 3
| 54
| 31.333333
| 0.872093
| 0
| 0
| 0
| 0
| 0
| 0.255319
| 0.255319
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
fe8e74d65b47e2850573a19f573962754e17ed04
| 1,888
|
py
|
Python
|
fuser/migrations/0013_auto_20210531_1129.py
|
Mustazur1234/Movement-Pass-Clone
|
c1d9805bdb3e0fe881b9631c594cacfe4009bd94
|
[
"MIT"
] | 29
|
2021-06-01T20:38:00.000Z
|
2021-09-14T05:02:07.000Z
|
fuser/migrations/0013_auto_20210531_1129.py
|
Mustazur1234/Movement-Pass-Clone
|
c1d9805bdb3e0fe881b9631c594cacfe4009bd94
|
[
"MIT"
] | 1
|
2021-06-20T13:50:12.000Z
|
2021-06-20T14:43:08.000Z
|
fuser/migrations/0013_auto_20210531_1129.py
|
Mustazur1234/Movement-Pass-Clone
|
c1d9805bdb3e0fe881b9631c594cacfe4009bd94
|
[
"MIT"
] | 25
|
2021-06-03T13:29:47.000Z
|
2021-08-31T16:04:43.000Z
|
# Generated by Django 3.1.5 on 2021-05-31 05:29
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('fuser', '0012_auto_20210531_1114'),
]
operations = [
migrations.RemoveField(
model_name='movementpassmodel',
name='district_name',
),
migrations.RemoveField(
model_name='movementpassmodel',
name='movement_reason',
),
migrations.RemoveField(
model_name='movementpassmodel',
name='movement_type',
),
migrations.RemoveField(
model_name='movementpassmodel',
name='time_duration',
),
migrations.RemoveField(
model_name='movementpassmodel',
name='user',
),
migrations.RemoveField(
model_name='subdistrict',
name='district',
),
migrations.AlterModelOptions(
name='movementreason',
options={'verbose_name_plural': 'Movement Reason'},
),
migrations.AlterModelOptions(
name='movetype',
options={'verbose_name_plural': 'Movement Type'},
),
migrations.AlterModelOptions(
name='timespend',
options={'verbose_name_plural': 'Time Spending'},
),
migrations.RemoveField(
model_name='movementpass',
name='car_number',
),
migrations.RemoveField(
model_name='movementpass',
name='take_car',
),
migrations.DeleteModel(
name='Movement_type',
),
migrations.DeleteModel(
name='MovementPassModel',
),
migrations.DeleteModel(
name='Subdistrict',
),
migrations.DeleteModel(
name='TakeCar',
),
]
| 26.971429
| 63
| 0.538665
| 137
| 1,888
| 7.248175
| 0.364964
| 0.169184
| 0.209466
| 0.241692
| 0.43001
| 0.365559
| 0.118832
| 0
| 0
| 0
| 0
| 0.025389
| 0.353284
| 1,888
| 69
| 64
| 27.362319
| 0.787879
| 0.023835
| 0
| 0.587302
| 1
| 0
| 0.222162
| 0.012493
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0.126984
| 0.015873
| 0
| 0.063492
| 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
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 4
|
fe91b684a0ddd2fe7627a892c62bedc730302f0c
| 224
|
py
|
Python
|
Mundo 1/Aula 8/EX020-Sorteando a Ordem da Lista.py
|
mandamg/Exercicios-de-Python-do-Curso-em-Video
|
3f818c11c3c10213bebc1dfb6a740adee468ea3a
|
[
"MIT"
] | null | null | null |
Mundo 1/Aula 8/EX020-Sorteando a Ordem da Lista.py
|
mandamg/Exercicios-de-Python-do-Curso-em-Video
|
3f818c11c3c10213bebc1dfb6a740adee468ea3a
|
[
"MIT"
] | null | null | null |
Mundo 1/Aula 8/EX020-Sorteando a Ordem da Lista.py
|
mandamg/Exercicios-de-Python-do-Curso-em-Video
|
3f818c11c3c10213bebc1dfb6a740adee468ea3a
|
[
"MIT"
] | null | null | null |
import random
n1= input('nome do aluno')
n2 = input('nome do aluno')
n3 = input('nome do aluno')
n4 = input('nome do aluno')
list = [n1, n2, n3, n4]
random.shuffle(list)
print('A ordem da lista de alunos será: ')
print(list)
| 24.888889
| 42
| 0.678571
| 40
| 224
| 3.8
| 0.5
| 0.236842
| 0.289474
| 0.421053
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.042553
| 0.160714
| 224
| 9
| 43
| 24.888889
| 0.765957
| 0
| 0
| 0
| 0
| 0
| 0.377778
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.111111
| 0
| 0.111111
| 0.222222
| 0
| 0
| 0
| null | 1
| 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
|
fe91dba0fd04c86203e8b395785c7dbecd34ae6f
| 238
|
py
|
Python
|
backend/DjangoRestAuth/serializers.py
|
wutiancai/electron-vue-admin
|
81528ea4a1a4dddf9fd6af28a104b6a1a0151169
|
[
"MIT"
] | 2
|
2020-10-19T11:13:45.000Z
|
2021-08-23T12:28:13.000Z
|
backend/DjangoRestAuth/serializers.py
|
wutiancai/electron-vue-admin
|
81528ea4a1a4dddf9fd6af28a104b6a1a0151169
|
[
"MIT"
] | null | null | null |
backend/DjangoRestAuth/serializers.py
|
wutiancai/electron-vue-admin
|
81528ea4a1a4dddf9fd6af28a104b6a1a0151169
|
[
"MIT"
] | null | null | null |
from rest_framework import serializers
from DjangoRestAuth.models import Mods
# output serializer class for 'Mods' model
class ModSerializer(serializers.ModelSerializer):
class Meta:
model = Mods
fields = '__all__'
| 23.8
| 49
| 0.743697
| 26
| 238
| 6.615385
| 0.692308
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.201681
| 238
| 9
| 50
| 26.444444
| 0.905263
| 0.172269
| 0
| 0
| 0
| 0
| 0.035897
| 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
|
22aaec7453febbb4ad32a6ccdad14f437d830504
| 144
|
py
|
Python
|
build/scripts/overnight/python/test.py
|
brezillon/opensplice
|
725ae9d949c83fce1746bd7d8a154b9d0a81fe3e
|
[
"Apache-2.0"
] | 133
|
2017-11-09T02:10:00.000Z
|
2022-03-29T09:45:10.000Z
|
build/scripts/overnight/python/test.py
|
brezillon/opensplice
|
725ae9d949c83fce1746bd7d8a154b9d0a81fe3e
|
[
"Apache-2.0"
] | 131
|
2017-11-07T14:48:43.000Z
|
2022-03-13T15:30:47.000Z
|
build/scripts/overnight/python/test.py
|
brezillon/opensplice
|
725ae9d949c83fce1746bd7d8a154b9d0a81fe3e
|
[
"Apache-2.0"
] | 94
|
2017-11-09T02:26:19.000Z
|
2022-02-24T06:38:25.000Z
|
#!/usr/bin/python
import os
print "Content-Type: text/plain\n\n"
for key in os.environ.keys():
print "%30s %s \n" % (key,os.environ[key])
| 18
| 46
| 0.645833
| 26
| 144
| 3.576923
| 0.692308
| 0.193548
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.016393
| 0.152778
| 144
| 7
| 47
| 20.571429
| 0.745902
| 0.111111
| 0
| 0
| 0
| 0
| 0.299213
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0.25
| null | null | 0.5
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 4
|
22b624ac639ed53ab8b4f0b6f2ab172646601c88
| 112
|
py
|
Python
|
plugins/Example/Example.py
|
giruenf/GRIPy-3
|
ea0f5175bbdd966ca2df956f4667a806d035e532
|
[
"Apache-2.0"
] | null | null | null |
plugins/Example/Example.py
|
giruenf/GRIPy-3
|
ea0f5175bbdd966ca2df956f4667a806d035e532
|
[
"Apache-2.0"
] | null | null | null |
plugins/Example/Example.py
|
giruenf/GRIPy-3
|
ea0f5175bbdd966ca2df956f4667a806d035e532
|
[
"Apache-2.0"
] | null | null | null |
from plugins import DefaultPlugin
class ExamplePlugin(DefaultPlugin):
def run(self):
print("oi")
| 14
| 35
| 0.696429
| 12
| 112
| 6.5
| 0.916667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.214286
| 112
| 7
| 36
| 16
| 0.886364
| 0
| 0
| 0
| 0
| 0
| 0.017857
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0.25
| 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
|
22b83757751349678f27b1483d5e824510cb202c
| 84
|
py
|
Python
|
Code/Python/__init__.py
|
MatuMikey/Project
|
873e9b7cd1c1d4fe7c6fd922caf11046539debe7
|
[
"MIT"
] | null | null | null |
Code/Python/__init__.py
|
MatuMikey/Project
|
873e9b7cd1c1d4fe7c6fd922caf11046539debe7
|
[
"MIT"
] | null | null | null |
Code/Python/__init__.py
|
MatuMikey/Project
|
873e9b7cd1c1d4fe7c6fd922caf11046539debe7
|
[
"MIT"
] | null | null | null |
# -*- coding: utf-8 -*-
"""
Created on Sun Sep 16 15:58:22 2018
@author: user
"""
| 10.5
| 35
| 0.559524
| 14
| 84
| 3.357143
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.19697
| 0.214286
| 84
| 7
| 36
| 12
| 0.515152
| 0.869048
| 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
|
22caa254de386f225bed68d4ce21b54104443cc2
| 41
|
py
|
Python
|
src/models/model.py
|
frenziek/pga_scraper
|
7fb018d32a186eb4267663af276058c5831c7d67
|
[
"MIT"
] | null | null | null |
src/models/model.py
|
frenziek/pga_scraper
|
7fb018d32a186eb4267663af276058c5831c7d67
|
[
"MIT"
] | null | null | null |
src/models/model.py
|
frenziek/pga_scraper
|
7fb018d32a186eb4267663af276058c5831c7d67
|
[
"MIT"
] | null | null | null |
from pony.orm import *
db = Database()
| 8.2
| 22
| 0.658537
| 6
| 41
| 4.5
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.219512
| 41
| 4
| 23
| 10.25
| 0.84375
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
22f8bf34e2ff18b8b5d1ef853a15d08329c9a692
| 602
|
py
|
Python
|
fbm/__init__.py
|
OSliusarenko/fbm
|
049b56b8a15cd661d9c72048b14ba27c1bce0fb0
|
[
"MIT"
] | null | null | null |
fbm/__init__.py
|
OSliusarenko/fbm
|
049b56b8a15cd661d9c72048b14ba27c1bce0fb0
|
[
"MIT"
] | null | null | null |
fbm/__init__.py
|
OSliusarenko/fbm
|
049b56b8a15cd661d9c72048b14ba27c1bce0fb0
|
[
"MIT"
] | null | null | null |
# flake8: noqa
from .__version__ import __version__
from .__version__ import __description__
from .__version__ import __url__
from .__version__ import __title__
from .__version__ import __author__
from .__version__ import __author_email__
from .__version__ import __license__
from .__version__ import __copyright__
from .__version__ import __docs_copyright__
from .fbm import FBM
from .fbm import fbm
from .fbm import fgn
from .fbm import times
from .mbm import MBM
from .mbm import mbm
from .mbm import mgn
__all__ = [
"FBM",
"fbm",
"fgn",
"times",
"MBM",
"mbm",
"mgn",
]
| 21.5
| 43
| 0.752492
| 76
| 602
| 4.934211
| 0.25
| 0.264
| 0.408
| 0.122667
| 0.24
| 0.24
| 0.24
| 0
| 0
| 0
| 0
| 0.00202
| 0.177741
| 602
| 27
| 44
| 22.296296
| 0.755556
| 0.019934
| 0
| 0
| 0
| 0
| 0.039116
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.64
| 0
| 0.64
| 0
| 0
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
22f99cacb1a7eef23dfc443ae45e2928f106acd1
| 2,387
|
py
|
Python
|
src/hdx/freshness/testdata/dbtestdataset.py
|
mcarans/hdx-data-freshness
|
b378e68ba8f1f66aaea49fefb2b0cc209df45080
|
[
"MIT"
] | null | null | null |
src/hdx/freshness/testdata/dbtestdataset.py
|
mcarans/hdx-data-freshness
|
b378e68ba8f1f66aaea49fefb2b0cc209df45080
|
[
"MIT"
] | null | null | null |
src/hdx/freshness/testdata/dbtestdataset.py
|
mcarans/hdx-data-freshness
|
b378e68ba8f1f66aaea49fefb2b0cc209df45080
|
[
"MIT"
] | null | null | null |
"""SQLAlchemy class representing DBTestDataset row. Holds test data for datasets with
the aim of mimicking what would come from HDX.
"""
from hdx.database import Base
from sqlalchemy import Boolean, Column, String
class DBTestDataset(Base):
"""
id = Column(String, primary_key=True)\
organization_id = Column(String, nullable=False)\
organization_name = Column(String, nullable=False)\
organization_title = Column(String, nullable=False)\
dataset_name = Column(String, nullable=False)\
dataset_title = Column(String, nullable=False)\
dataset_private = Column(Boolean, nullable=False)\
dataset_maintainer = Column(String)\
dataset_date = Column(String)\
update_frequency = Column(String)\
review_date = Column(String)\
last_modified = Column(String, nullable=False)\
updated_by_script = Column(String)\
metadata_modified = Column(String, nullable=False)\
is_requestdata_type = Column(Boolean)\
dataset_location = Column(String)
"""
id = Column(String, primary_key=True)
organization_id = Column(String, nullable=False)
organization_name = Column(String, nullable=False)
organization_title = Column(String, nullable=False)
dataset_name = Column(String, nullable=False)
dataset_title = Column(String, nullable=False)
dataset_private = Column(Boolean, nullable=False)
dataset_maintainer = Column(String)
dataset_date = Column(String)
update_frequency = Column(String)
review_date = Column(String)
last_modified = Column(String, nullable=False)
updated_by_script = Column(String)
metadata_modified = Column(String, nullable=False)
is_requestdata_type = Column(Boolean)
dataset_location = Column(String)
def __repr__(self) -> str:
"""String representation of DBTestDataset row
Returns:
str: String representation of DBTestDataset row
"""
output = f"<Dataset(id={self.id}, name={self.dataset_name}"
output += f"organisation name={self.organization_name},\n"
output += f"dataset date={self.dataset_date}, update frequency={self.update_frequency}, "
output += f"review_date={str(self.review_date)}, last_modified={str(self.last_modified)},"
output += f"updated_by_script={str(self.updated_by_script)}, metadata_modified={str(self.metadata_modified)})>"
return output
| 41.877193
| 119
| 0.717218
| 280
| 2,387
| 5.921429
| 0.225
| 0.209891
| 0.168878
| 0.211098
| 0.683957
| 0.683957
| 0.634499
| 0.634499
| 0.634499
| 0.634499
| 0
| 0
| 0.175953
| 2,387
| 56
| 120
| 42.625
| 0.842908
| 0.396313
| 0
| 0
| 0
| 0
| 0.252391
| 0.228109
| 0
| 0
| 0
| 0
| 0
| 1
| 0.038462
| false
| 0
| 0.076923
| 0
| 0.807692
| 0
| 0
| 0
| 0
| null | 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
22fa2e6ae60f47845b185b050fadbb54e8f0d243
| 83
|
py
|
Python
|
src/masonite/demo_package/__init__.py
|
girardinsamuel/masonite-demo-package
|
95c47c3cfed70862fd12023ef41240ac7a508ccd
|
[
"MIT"
] | null | null | null |
src/masonite/demo_package/__init__.py
|
girardinsamuel/masonite-demo-package
|
95c47c3cfed70862fd12023ef41240ac7a508ccd
|
[
"MIT"
] | 3
|
2021-10-30T13:58:32.000Z
|
2022-03-07T11:15:42.000Z
|
src/masonite/demo_package/__init__.py
|
girardinsamuel/masonite-demo-package
|
95c47c3cfed70862fd12023ef41240ac7a508ccd
|
[
"MIT"
] | null | null | null |
# flake8: noqa F401
from .providers.DemoPackageProvider import DemoPackageProvider
| 27.666667
| 62
| 0.855422
| 8
| 83
| 8.875
| 0.875
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.053333
| 0.096386
| 83
| 2
| 63
| 41.5
| 0.893333
| 0.204819
| 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
|
fe1e8be6a0c24aa2d0e31229c5f58a8978c6b832
| 183
|
py
|
Python
|
0x03-python-data_structures/dev/9-main.py
|
johncoleman83/bootcampschool-higher_level_programming
|
a83c3b7092cfe893c87e495f8d8eec9228c9b808
|
[
"MIT"
] | null | null | null |
0x03-python-data_structures/dev/9-main.py
|
johncoleman83/bootcampschool-higher_level_programming
|
a83c3b7092cfe893c87e495f8d8eec9228c9b808
|
[
"MIT"
] | null | null | null |
0x03-python-data_structures/dev/9-main.py
|
johncoleman83/bootcampschool-higher_level_programming
|
a83c3b7092cfe893c87e495f8d8eec9228c9b808
|
[
"MIT"
] | 1
|
2020-09-25T17:54:36.000Z
|
2020-09-25T17:54:36.000Z
|
#!/usr/bin/python3
max_integer = __import__('9-max_integer').max_integer
my_list = [1, 90, 2, 13, 34, 5, -13, 3]
max_value = max_integer(my_list)
print("Max: {}".format(max_value))
| 22.875
| 53
| 0.688525
| 32
| 183
| 3.5625
| 0.59375
| 0.350877
| 0.210526
| 0.280702
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.08642
| 0.114754
| 183
| 7
| 54
| 26.142857
| 0.617284
| 0.092896
| 0
| 0
| 0
| 0
| 0.121951
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.25
| 0
| 0.25
| 0.25
| 0
| 0
| 0
| null | 1
| 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
|
a3cc7e956754e2324dc114917f323b305f721dd4
| 52
|
py
|
Python
|
onepiece/__main__.py
|
wangyung/TencentComicBook
|
570dfac19fc04b328209bc8e6821748559522e52
|
[
"MIT"
] | 1
|
2019-04-09T13:09:15.000Z
|
2019-04-09T13:09:15.000Z
|
onepiece/__main__.py
|
wangyung/TencentComicBook
|
570dfac19fc04b328209bc8e6821748559522e52
|
[
"MIT"
] | null | null | null |
onepiece/__main__.py
|
wangyung/TencentComicBook
|
570dfac19fc04b328209bc8e6821748559522e52
|
[
"MIT"
] | null | null | null |
#!/usr/bin/env python
from .cli import main
main()
| 10.4
| 21
| 0.692308
| 9
| 52
| 4
| 0.888889
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.153846
| 52
| 4
| 22
| 13
| 0.818182
| 0.384615
| 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
|
a3dd1a8dd04a88e1af49e3e7a65561c36049f2f2
| 91
|
py
|
Python
|
django_gotolong/dematsum/apps.py
|
ParikhKadam/gotolong
|
839beb8aa37055a2078eaa289b8ae05b62e8905e
|
[
"BSD-2-Clause",
"BSD-3-Clause"
] | 15
|
2019-12-06T16:19:45.000Z
|
2021-08-20T13:22:22.000Z
|
django_gotolong/dematsum/apps.py
|
ParikhKadam/gotolong
|
839beb8aa37055a2078eaa289b8ae05b62e8905e
|
[
"BSD-2-Clause",
"BSD-3-Clause"
] | 14
|
2020-12-08T10:45:05.000Z
|
2021-09-21T17:23:45.000Z
|
django_gotolong/dematsum/apps.py
|
ParikhKadam/gotolong
|
839beb8aa37055a2078eaa289b8ae05b62e8905e
|
[
"BSD-2-Clause",
"BSD-3-Clause"
] | 9
|
2020-01-01T03:04:29.000Z
|
2021-04-18T08:42:30.000Z
|
from django.apps import AppConfig
class DematsumConfig(AppConfig):
name = 'dematsum'
| 15.166667
| 33
| 0.758242
| 10
| 91
| 6.9
| 0.9
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.164835
| 91
| 5
| 34
| 18.2
| 0.907895
| 0
| 0
| 0
| 0
| 0
| 0.087912
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
a3e1bf9b98737c6504ffdfdcb8fd29731b0ce414
| 12,493
|
py
|
Python
|
sdk/python/pulumi_sysdig/user.py
|
Sysdig-Hackathon-Picasso/pulumi-sysdig
|
e25b655f6ad4a5f52678bc445be2d59f28f5bb4b
|
[
"ECL-2.0",
"Apache-2.0"
] | null | null | null |
sdk/python/pulumi_sysdig/user.py
|
Sysdig-Hackathon-Picasso/pulumi-sysdig
|
e25b655f6ad4a5f52678bc445be2d59f28f5bb4b
|
[
"ECL-2.0",
"Apache-2.0"
] | null | null | null |
sdk/python/pulumi_sysdig/user.py
|
Sysdig-Hackathon-Picasso/pulumi-sysdig
|
e25b655f6ad4a5f52678bc445be2d59f28f5bb4b
|
[
"ECL-2.0",
"Apache-2.0"
] | 1
|
2021-12-01T08:57:09.000Z
|
2021-12-01T08:57:09.000Z
|
# coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from . import _utilities
__all__ = ['UserArgs', 'User']
@pulumi.input_type
class UserArgs:
def __init__(__self__, *,
email: pulumi.Input[str],
first_name: Optional[pulumi.Input[str]] = None,
last_name: Optional[pulumi.Input[str]] = None,
system_role: Optional[pulumi.Input[str]] = None):
"""
The set of arguments for constructing a User resource.
:param pulumi.Input[str] email: The email for the user to invite.
:param pulumi.Input[str] first_name: The name of the user.
:param pulumi.Input[str] last_name: The last name of the user.
:param pulumi.Input[str] system_role: The privileges for the user. It can be either "ROLE_USER" or "ROLE_CUSTOMER".
If set to "ROLE_CUSTOMER", the user will be known as an admin.
"""
pulumi.set(__self__, "email", email)
if first_name is not None:
pulumi.set(__self__, "first_name", first_name)
if last_name is not None:
pulumi.set(__self__, "last_name", last_name)
if system_role is not None:
pulumi.set(__self__, "system_role", system_role)
@property
@pulumi.getter
def email(self) -> pulumi.Input[str]:
"""
The email for the user to invite.
"""
return pulumi.get(self, "email")
@email.setter
def email(self, value: pulumi.Input[str]):
pulumi.set(self, "email", value)
@property
@pulumi.getter(name="firstName")
def first_name(self) -> Optional[pulumi.Input[str]]:
"""
The name of the user.
"""
return pulumi.get(self, "first_name")
@first_name.setter
def first_name(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "first_name", value)
@property
@pulumi.getter(name="lastName")
def last_name(self) -> Optional[pulumi.Input[str]]:
"""
The last name of the user.
"""
return pulumi.get(self, "last_name")
@last_name.setter
def last_name(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "last_name", value)
@property
@pulumi.getter(name="systemRole")
def system_role(self) -> Optional[pulumi.Input[str]]:
"""
The privileges for the user. It can be either "ROLE_USER" or "ROLE_CUSTOMER".
If set to "ROLE_CUSTOMER", the user will be known as an admin.
"""
return pulumi.get(self, "system_role")
@system_role.setter
def system_role(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "system_role", value)
@pulumi.input_type
class _UserState:
def __init__(__self__, *,
email: Optional[pulumi.Input[str]] = None,
first_name: Optional[pulumi.Input[str]] = None,
last_name: Optional[pulumi.Input[str]] = None,
system_role: Optional[pulumi.Input[str]] = None,
version: Optional[pulumi.Input[int]] = None):
"""
Input properties used for looking up and filtering User resources.
:param pulumi.Input[str] email: The email for the user to invite.
:param pulumi.Input[str] first_name: The name of the user.
:param pulumi.Input[str] last_name: The last name of the user.
:param pulumi.Input[str] system_role: The privileges for the user. It can be either "ROLE_USER" or "ROLE_CUSTOMER".
If set to "ROLE_CUSTOMER", the user will be known as an admin.
"""
if email is not None:
pulumi.set(__self__, "email", email)
if first_name is not None:
pulumi.set(__self__, "first_name", first_name)
if last_name is not None:
pulumi.set(__self__, "last_name", last_name)
if system_role is not None:
pulumi.set(__self__, "system_role", system_role)
if version is not None:
pulumi.set(__self__, "version", version)
@property
@pulumi.getter
def email(self) -> Optional[pulumi.Input[str]]:
"""
The email for the user to invite.
"""
return pulumi.get(self, "email")
@email.setter
def email(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "email", value)
@property
@pulumi.getter(name="firstName")
def first_name(self) -> Optional[pulumi.Input[str]]:
"""
The name of the user.
"""
return pulumi.get(self, "first_name")
@first_name.setter
def first_name(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "first_name", value)
@property
@pulumi.getter(name="lastName")
def last_name(self) -> Optional[pulumi.Input[str]]:
"""
The last name of the user.
"""
return pulumi.get(self, "last_name")
@last_name.setter
def last_name(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "last_name", value)
@property
@pulumi.getter(name="systemRole")
def system_role(self) -> Optional[pulumi.Input[str]]:
"""
The privileges for the user. It can be either "ROLE_USER" or "ROLE_CUSTOMER".
If set to "ROLE_CUSTOMER", the user will be known as an admin.
"""
return pulumi.get(self, "system_role")
@system_role.setter
def system_role(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "system_role", value)
@property
@pulumi.getter
def version(self) -> Optional[pulumi.Input[int]]:
return pulumi.get(self, "version")
@version.setter
def version(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "version", value)
class User(pulumi.CustomResource):
@overload
def __init__(__self__,
resource_name: str,
opts: Optional[pulumi.ResourceOptions] = None,
email: Optional[pulumi.Input[str]] = None,
first_name: Optional[pulumi.Input[str]] = None,
last_name: Optional[pulumi.Input[str]] = None,
system_role: Optional[pulumi.Input[str]] = None,
__props__=None):
"""
## Import
Sysdig users can be imported using the ID, e.g.
```sh
$ pulumi import sysdig:index/user:User example 12345
```
:param str resource_name: The name of the resource.
:param pulumi.ResourceOptions opts: Options for the resource.
:param pulumi.Input[str] email: The email for the user to invite.
:param pulumi.Input[str] first_name: The name of the user.
:param pulumi.Input[str] last_name: The last name of the user.
:param pulumi.Input[str] system_role: The privileges for the user. It can be either "ROLE_USER" or "ROLE_CUSTOMER".
If set to "ROLE_CUSTOMER", the user will be known as an admin.
"""
...
@overload
def __init__(__self__,
resource_name: str,
args: UserArgs,
opts: Optional[pulumi.ResourceOptions] = None):
"""
## Import
Sysdig users can be imported using the ID, e.g.
```sh
$ pulumi import sysdig:index/user:User example 12345
```
:param str resource_name: The name of the resource.
:param UserArgs args: The arguments to use to populate this resource's properties.
:param pulumi.ResourceOptions opts: Options for the resource.
"""
...
def __init__(__self__, resource_name: str, *args, **kwargs):
resource_args, opts = _utilities.get_resource_args_opts(UserArgs, pulumi.ResourceOptions, *args, **kwargs)
if resource_args is not None:
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
else:
__self__._internal_init(resource_name, *args, **kwargs)
def _internal_init(__self__,
resource_name: str,
opts: Optional[pulumi.ResourceOptions] = None,
email: Optional[pulumi.Input[str]] = None,
first_name: Optional[pulumi.Input[str]] = None,
last_name: Optional[pulumi.Input[str]] = None,
system_role: Optional[pulumi.Input[str]] = None,
__props__=None):
if opts is None:
opts = pulumi.ResourceOptions()
if not isinstance(opts, pulumi.ResourceOptions):
raise TypeError('Expected resource options to be a ResourceOptions instance')
if opts.version is None:
opts.version = _utilities.get_version()
if opts.id is None:
if __props__ is not None:
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
__props__ = UserArgs.__new__(UserArgs)
if email is None and not opts.urn:
raise TypeError("Missing required property 'email'")
__props__.__dict__["email"] = email
__props__.__dict__["first_name"] = first_name
__props__.__dict__["last_name"] = last_name
__props__.__dict__["system_role"] = system_role
__props__.__dict__["version"] = None
super(User, __self__).__init__(
'sysdig:index/user:User',
resource_name,
__props__,
opts)
@staticmethod
def get(resource_name: str,
id: pulumi.Input[str],
opts: Optional[pulumi.ResourceOptions] = None,
email: Optional[pulumi.Input[str]] = None,
first_name: Optional[pulumi.Input[str]] = None,
last_name: Optional[pulumi.Input[str]] = None,
system_role: Optional[pulumi.Input[str]] = None,
version: Optional[pulumi.Input[int]] = None) -> 'User':
"""
Get an existing User resource's state with the given name, id, and optional extra
properties used to qualify the lookup.
:param str resource_name: The unique name of the resulting resource.
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
:param pulumi.ResourceOptions opts: Options for the resource.
:param pulumi.Input[str] email: The email for the user to invite.
:param pulumi.Input[str] first_name: The name of the user.
:param pulumi.Input[str] last_name: The last name of the user.
:param pulumi.Input[str] system_role: The privileges for the user. It can be either "ROLE_USER" or "ROLE_CUSTOMER".
If set to "ROLE_CUSTOMER", the user will be known as an admin.
"""
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
__props__ = _UserState.__new__(_UserState)
__props__.__dict__["email"] = email
__props__.__dict__["first_name"] = first_name
__props__.__dict__["last_name"] = last_name
__props__.__dict__["system_role"] = system_role
__props__.__dict__["version"] = version
return User(resource_name, opts=opts, __props__=__props__)
@property
@pulumi.getter
def email(self) -> pulumi.Output[str]:
"""
The email for the user to invite.
"""
return pulumi.get(self, "email")
@property
@pulumi.getter(name="firstName")
def first_name(self) -> pulumi.Output[Optional[str]]:
"""
The name of the user.
"""
return pulumi.get(self, "first_name")
@property
@pulumi.getter(name="lastName")
def last_name(self) -> pulumi.Output[Optional[str]]:
"""
The last name of the user.
"""
return pulumi.get(self, "last_name")
@property
@pulumi.getter(name="systemRole")
def system_role(self) -> pulumi.Output[Optional[str]]:
"""
The privileges for the user. It can be either "ROLE_USER" or "ROLE_CUSTOMER".
If set to "ROLE_CUSTOMER", the user will be known as an admin.
"""
return pulumi.get(self, "system_role")
@property
@pulumi.getter
def version(self) -> pulumi.Output[int]:
return pulumi.get(self, "version")
| 37.972644
| 134
| 0.613544
| 1,550
| 12,493
| 4.703226
| 0.098065
| 0.090535
| 0.103704
| 0.099588
| 0.777366
| 0.752538
| 0.722771
| 0.696845
| 0.689849
| 0.668587
| 0
| 0.001219
| 0.277756
| 12,493
| 328
| 135
| 38.088415
| 0.806716
| 0.269031
| 0
| 0.670157
| 1
| 0
| 0.079126
| 0.002614
| 0
| 0
| 0
| 0
| 0
| 1
| 0.157068
| false
| 0.005236
| 0.026178
| 0.010471
| 0.277487
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
430b57a36f264593e664e67adabb9a7630af6980
| 955
|
py
|
Python
|
armulator/armv6/all_registers/vtcr.py
|
matan1008/armulator
|
04d24dcec6ab42326018f5e09331e5b4738d6b52
|
[
"MIT"
] | 16
|
2018-01-22T14:36:49.000Z
|
2021-12-17T15:39:52.000Z
|
armulator/armv6/all_registers/vtcr.py
|
AhmedMounir/armulator
|
04d24dcec6ab42326018f5e09331e5b4738d6b52
|
[
"MIT"
] | 3
|
2019-02-19T17:51:47.000Z
|
2022-03-31T20:45:21.000Z
|
armulator/armv6/all_registers/vtcr.py
|
AhmedMounir/armulator
|
04d24dcec6ab42326018f5e09331e5b4738d6b52
|
[
"MIT"
] | 4
|
2020-06-18T23:51:03.000Z
|
2022-02-09T17:43:13.000Z
|
from armulator.armv6.all_registers.abstract_register import AbstractRegister
class VTCR(AbstractRegister):
"""
Virtualization Translation Control Register
"""
def __init__(self):
super(VTCR, self).__init__()
def set_sh0(self, sh0):
self.value[18:20] = sh0
def get_sh0(self):
return self.value[18:20]
def set_orgn0(self, orgn0):
self.value[20:22] = orgn0
def get_orgn0(self):
return self.value[20:22]
def set_irgn0(self, irgn0):
self.value[22:24] = irgn0
def get_irgn0(self):
return self.value[22:24]
def set_sl0(self, sl0):
self.value[24:26] = sl0
def get_sl0(self):
return self.value[24:26]
def set_s(self, flag):
self.value[27] = flag
def get_s(self):
return self.value[27]
def set_t0sz(self, t0sz):
self.value[28:32] = t0sz
def get_t0sz(self):
return self.value[28:32]
| 20.319149
| 76
| 0.608377
| 135
| 955
| 4.140741
| 0.274074
| 0.193202
| 0.150268
| 0.203936
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.093391
| 0.271204
| 955
| 46
| 77
| 20.76087
| 0.70977
| 0.045026
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.464286
| false
| 0
| 0.035714
| 0.214286
| 0.75
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
43361f67bff3ccf062302e763a5c85b9a61faf29
| 46
|
py
|
Python
|
docs/docs/editing_wikidata/wikidata.py
|
UB-Mannheim/NFDI
|
a66d3bdbf967ea508f5281dec4595a6005fb8f21
|
[
"MIT"
] | 1
|
2021-10-01T18:37:17.000Z
|
2021-10-01T18:37:17.000Z
|
docs/docs/editing_wikidata/wikidata.py
|
UB-Mannheim/NFDI
|
a66d3bdbf967ea508f5281dec4595a6005fb8f21
|
[
"MIT"
] | null | null | null |
docs/docs/editing_wikidata/wikidata.py
|
UB-Mannheim/NFDI
|
a66d3bdbf967ea508f5281dec4595a6005fb8f21
|
[
"MIT"
] | 1
|
2021-09-29T15:51:55.000Z
|
2021-09-29T15:51:55.000Z
|
wduser = "" # username
wdpass = "" # password
| 15.333333
| 22
| 0.608696
| 4
| 46
| 7
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.217391
| 46
| 2
| 23
| 23
| 0.777778
| 0.369565
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0.5
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 4
|
433ef699ae18f1435d1d1881581b98d018134dff
| 2,951
|
py
|
Python
|
ravem/indico_ravem/api.py
|
ThiefMaster/indico-plugins-cern
|
0082a66dd21ac093c1a31316d12c338f52ffe2d0
|
[
"MIT"
] | 4
|
2019-02-12T05:08:56.000Z
|
2022-03-09T23:43:18.000Z
|
ravem/indico_ravem/api.py
|
ThiefMaster/indico-plugins-cern
|
0082a66dd21ac093c1a31316d12c338f52ffe2d0
|
[
"MIT"
] | 40
|
2017-11-08T15:08:50.000Z
|
2022-03-28T15:09:51.000Z
|
ravem/indico_ravem/api.py
|
ThiefMaster/indico-plugins-cern
|
0082a66dd21ac093c1a31316d12c338f52ffe2d0
|
[
"MIT"
] | 15
|
2017-11-08T12:35:59.000Z
|
2022-01-13T15:16:42.000Z
|
# This file is part of the CERN Indico plugins.
# Copyright (C) 2014 - 2021 CERN
#
# The CERN Indico plugins are free software; you can redistribute
# them and/or modify them under the terms of the MIT License; see
# the LICENSE file for more details.
from abc import ABCMeta, abstractmethod
from indico_ravem.util import ravem_api_call
__all__ = ('BaseAPI', 'ZoomAPI')
class BaseAPI(metaclass=ABCMeta):
@staticmethod
def get_endpoint_status(room_name):
"""Returns the status of an physical room.
This call returns the status of a room equipped with videoconference capable device
:param room_name: str -- the name of the physical room
"""
room_name = room_name.replace('/', '-', 1)
return ravem_api_call('rooms/details', method='GET',
params={'where': 'room_name', 'value': room_name})
@abstractmethod
def get_room_id(self, vc_room_data):
"""Returns the provider specific room ID."""
pass
@abstractmethod
def connect_endpoint(self, room_name, vc_room_id):
"""Connects a physical room to a videoconference room using the RAVEM API.
This call will return "OK" as a result immediately if RAVEM can (or has
started to) perform the operation. This does not mean the operation has
actually succeeded. One should poll for the status of the room afterwards
using the `get_endpoint_status` method after some delay to allow the
operation to be performed..
:param room_name: str -- the name of the physical room
:param vc_room_id: str -- the provider specific id of the
videoconference room
"""
pass
@abstractmethod
def disconnect_endpoint(self, room_name, vc_room_id):
"""Disconnects a physical room from a videoconference room using the RAVEM API.
This call will return "OK" as a result immediately if RAVEM can (or has
started to) perform the operation. This does not mean the operation has
actually succeeded. One should poll for the status of the room afterwards
using the `get_endpoint_status` method after some delay to allow the
operation to be performed.
:param room_name: str -- the name of the physical room
:param vc_room_id: str -- the provider specific id of the
videoconference room
"""
pass
class ZoomAPI(BaseAPI):
SERVICE_TYPE = 'zoom'
def get_room_id(self, vc_room_data):
return str(vc_room_data["zoom_id"])
def connect_endpoint(self, room_name, vc_room_id):
return ravem_api_call('%s/connect' % self.SERVICE_TYPE, method='POST',
json={'meetingId': vc_room_id, 'roomName': room_name})
def disconnect_endpoint(self, room_name, vc_room_id):
return ravem_api_call('%s/disconnect' % self.SERVICE_TYPE, method='POST', json={'roomName': room_name})
| 37.35443
| 111
| 0.675025
| 410
| 2,951
| 4.7
| 0.285366
| 0.058121
| 0.029061
| 0.041515
| 0.586404
| 0.586404
| 0.556305
| 0.556305
| 0.52932
| 0.476388
| 0
| 0.004072
| 0.251101
| 2,951
| 78
| 112
| 37.833333
| 0.867873
| 0.514402
| 0
| 0.444444
| 0
| 0
| 0.095469
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.259259
| false
| 0.111111
| 0.074074
| 0.111111
| 0.592593
| 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
|
4341be406540f0273797ecec9186c36afda054dc
| 297
|
py
|
Python
|
pages/locators.py
|
edwlad/stepik-test-final
|
c6e46e1ace867b3d9bc8f74802d7f6e4591c2a52
|
[
"MIT"
] | null | null | null |
pages/locators.py
|
edwlad/stepik-test-final
|
c6e46e1ace867b3d9bc8f74802d7f6e4591c2a52
|
[
"MIT"
] | null | null | null |
pages/locators.py
|
edwlad/stepik-test-final
|
c6e46e1ace867b3d9bc8f74802d7f6e4591c2a52
|
[
"MIT"
] | null | null | null |
from selenium.webdriver.common.by import By
class MainPageLocators():
LOGIN_LINK = (By.CSS_SELECTOR, '#login_link')
class LoginPageLocators():
LOGIN_FORM = (By.CSS_SELECTOR, '#login_form')
REGISTER_FORM = (By.CSS_SELECTOR, '#register_form')
class ProductPageLocators():
pass
| 19.8
| 55
| 0.727273
| 35
| 297
| 5.914286
| 0.485714
| 0.072464
| 0.188406
| 0.173913
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.151515
| 297
| 14
| 56
| 21.214286
| 0.821429
| 0
| 0
| 0
| 0
| 0
| 0.121212
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0.125
| 0.125
| 0
| 0.875
| 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
|
4348e354901b31b244568efe5c310e05cd045da6
| 28
|
py
|
Python
|
esmvalcore/cmor/_fixes/cmip6/__init__.py
|
Peter9192/ESMValCore
|
febd96a39480cc837afbf4e1f5b0ef61571af76a
|
[
"Apache-2.0"
] | 26
|
2019-06-07T07:50:07.000Z
|
2022-03-22T21:04:01.000Z
|
esmvalcore/cmor/_fixes/cmip6/__init__.py
|
Peter9192/ESMValCore
|
febd96a39480cc837afbf4e1f5b0ef61571af76a
|
[
"Apache-2.0"
] | 1,370
|
2019-06-06T09:03:07.000Z
|
2022-03-31T04:37:20.000Z
|
esmvalcore/cmor/_fixes/cmip6/__init__.py
|
Peter9192/ESMValCore
|
febd96a39480cc837afbf4e1f5b0ef61571af76a
|
[
"Apache-2.0"
] | 26
|
2019-07-03T13:08:48.000Z
|
2022-03-02T16:08:47.000Z
|
"""Fixes for CMIP6 data."""
| 14
| 27
| 0.607143
| 4
| 28
| 4.25
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.041667
| 0.142857
| 28
| 1
| 28
| 28
| 0.666667
| 0.75
| 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
|
4a29e6c7a4a2b7d4bdaa36b49bb1a5cd3898e0f6
| 176
|
py
|
Python
|
dssm/__init__.py
|
luozhouyang/dssm
|
fedde30b79f96467a22568df083d2bd5d5b21a84
|
[
"Apache-2.0"
] | 18
|
2019-06-24T02:32:54.000Z
|
2022-01-12T09:31:55.000Z
|
dssm/__init__.py
|
luozhouyang/dssm
|
fedde30b79f96467a22568df083d2bd5d5b21a84
|
[
"Apache-2.0"
] | 3
|
2020-11-13T18:37:25.000Z
|
2022-02-10T00:29:43.000Z
|
dssm/__init__.py
|
luozhouyang/dssm
|
fedde30b79f96467a22568df083d2bd5d5b21a84
|
[
"Apache-2.0"
] | 9
|
2019-10-31T03:22:32.000Z
|
2022-03-07T05:49:41.000Z
|
from easylib.log import TimedRotatingLoggerInitializer
name = 'dssm'
initializer = TimedRotatingLoggerInitializer(name='dssm', path='/tmp/dssm.log')
initializer.initialize()
| 25.142857
| 79
| 0.806818
| 17
| 176
| 8.352941
| 0.647059
| 0.478873
| 0.535211
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.079545
| 176
| 6
| 80
| 29.333333
| 0.876543
| 0
| 0
| 0
| 0
| 0
| 0.119318
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.25
| 0
| 0.25
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
4a37e6c8c1e92f5f1cf5864c95af19626231a40c
| 502
|
py
|
Python
|
tests/test_import.py
|
rathnadeep/cbapi-python
|
55375d8796a9d88d00bd16df13d71a2d8d76dd9c
|
[
"MIT"
] | 3
|
2019-01-23T19:11:33.000Z
|
2022-02-25T02:06:51.000Z
|
tests/test_import.py
|
rathnadeep/cbapi-python
|
55375d8796a9d88d00bd16df13d71a2d8d76dd9c
|
[
"MIT"
] | 1
|
2021-03-31T19:51:07.000Z
|
2021-03-31T19:51:07.000Z
|
tests/test_import.py
|
jjfallete/cbapi-python
|
8b92584edca5605cd94afa7656fd04c282b875b8
|
[
"MIT"
] | 3
|
2019-03-12T23:01:28.000Z
|
2021-07-23T03:57:22.000Z
|
import unittest
from nose.tools import assert_raises
from cbapi import CbEnterpriseProtectionAPI, CbEnterpriseResponseAPI
from cbapi.errors import CredentialError
class TestBasicImport(unittest.TestCase):
def setUp(self):
pass
def test_import(self):
pass
def test_cbep_credential_error(self):
assert_raises(CredentialError, CbEnterpriseProtectionAPI)
def test_cber_credential_error(self):
assert_raises(CredentialError, CbEnterpriseProtectionAPI)
| 23.904762
| 68
| 0.778884
| 51
| 502
| 7.470588
| 0.470588
| 0.094488
| 0.057743
| 0.07874
| 0.372703
| 0.372703
| 0.372703
| 0
| 0
| 0
| 0
| 0
| 0.171315
| 502
| 20
| 69
| 25.1
| 0.915865
| 0
| 0
| 0.307692
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.230769
| 1
| 0.307692
| false
| 0.153846
| 0.461538
| 0
| 0.846154
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 1
| 0
| 1
| 0
|
0
| 4
|
4a451cc7d23ed1fe9d92ae767884df32c7311fb6
| 293
|
py
|
Python
|
server/inference_api/__init__.py
|
TreeinRandomForest/logo-detector
|
c957032b1fcbce32dfd55a3a21e2ace44ee0ee4b
|
[
"MIT"
] | 1
|
2021-03-25T17:09:40.000Z
|
2021-03-25T17:09:40.000Z
|
server/inference_api/__init__.py
|
TreeinRandomForest/logo-detector
|
c957032b1fcbce32dfd55a3a21e2ace44ee0ee4b
|
[
"MIT"
] | 6
|
2021-03-10T09:57:47.000Z
|
2022-03-12T00:21:00.000Z
|
server/inference_api/__init__.py
|
TreeinRandomForest/logo-detector
|
c957032b1fcbce32dfd55a3a21e2ace44ee0ee4b
|
[
"MIT"
] | 1
|
2020-04-06T14:20:31.000Z
|
2020-04-06T14:20:31.000Z
|
from flask import Flask
from inference_api.config import Config
def create_app(app_name):
inference_api = Flask(app_name)
inference_api.config.from_object(Config)
from inference_api.v1 import v1
inference_api.register_blueprint(v1, url_prefix='')
return inference_api
| 20.928571
| 55
| 0.774744
| 42
| 293
| 5.119048
| 0.404762
| 0.334884
| 0.148837
| 0.176744
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.012195
| 0.16041
| 293
| 13
| 56
| 22.538462
| 0.861789
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.125
| false
| 0
| 0.375
| 0
| 0.625
| 0.125
| 0
| 0
| 0
| null | 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
4a6423a10f7b208bff075f5fd2eb5d9e056e544d
| 289
|
py
|
Python
|
ex5-6.py
|
yiyidhuang/PythonCrashCrouse2nd
|
3512f9ab8fcf32c6145604a37e2a62feddf174d1
|
[
"MIT"
] | null | null | null |
ex5-6.py
|
yiyidhuang/PythonCrashCrouse2nd
|
3512f9ab8fcf32c6145604a37e2a62feddf174d1
|
[
"MIT"
] | null | null | null |
ex5-6.py
|
yiyidhuang/PythonCrashCrouse2nd
|
3512f9ab8fcf32c6145604a37e2a62feddf174d1
|
[
"MIT"
] | null | null | null |
age = 99
if age < 2:
print("This man is a baby.")
elif age < 4:
print("This man is child.")
elif age < 13:
print("This man is children.")
elif age < 20:
print("This man is teenagers.")
elif age < 65:
print("This man is adult.")
else:
print("This man is old man.")
| 19.266667
| 35
| 0.595156
| 50
| 289
| 3.44
| 0.42
| 0.313953
| 0.418605
| 0.488372
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.046729
| 0.259516
| 289
| 14
| 36
| 20.642857
| 0.757009
| 0
| 0
| 0
| 0
| 0
| 0.408305
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.461538
| 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
|
4a775e3e7ce963800717e4cf8c375629e61f6aac
| 13,353
|
py
|
Python
|
test/regression/daily/chaincodeTests/envsetup/testYourChaincode.py
|
trust-tech/fabric
|
1cdbfc04fc9d65b58b13718b78585dae48c1b69c
|
[
"Apache-2.0"
] | 1
|
2021-04-29T09:03:01.000Z
|
2021-04-29T09:03:01.000Z
|
test/regression/daily/chaincodeTests/envsetup/testYourChaincode.py
|
trust-tech/fabric
|
1cdbfc04fc9d65b58b13718b78585dae48c1b69c
|
[
"Apache-2.0"
] | null | null | null |
test/regression/daily/chaincodeTests/envsetup/testYourChaincode.py
|
trust-tech/fabric
|
1cdbfc04fc9d65b58b13718b78585dae48c1b69c
|
[
"Apache-2.0"
] | null | null | null |
#!/usr/bin/python2.7
import subprocess
import unittest
from subprocess import check_output
class ChaincodeAPI(unittest.TestCase):
@classmethod
def setUpClass(cls):
cls.CHANNEL_NAME = "channel"
cls.CHANNELS = '2'
cls.CHAINCODES = '1'
cls.ENDORSERS = '4'
check_output(["./network_setup.sh up {0} {1} {2} {3}".format(cls.CHANNEL_NAME, cls.CHANNELS, cls.CHAINCODES, cls.ENDORSERS)],
shell=True)
@classmethod
def tearDownClass(cls):
check_output(["./network_setup.sh down"], shell=True)
#################################################################################
def runIt(self, command, scriptName):
cmd = "/opt/gopath/src/github.com/hyperledger/fabric/test/regression/daily/chaincodeTests/%s %s %s %s %s %s"% (scriptName, self.CHANNEL_NAME, self.CHANNELS, self.CHAINCODES, self.ENDORSERS, command)
output = check_output(["docker exec cli {0}".format(cmd)], shell=True)
return output
#####Begin tests for different chaincode samples that exist in fabricExamples folder ###################
def test_AFAB3843_Create_Join_Channel(self):
''' Create_Join_Channel must be run as the first test. Each chaincode test is dependent on this test
So make sure when adding new tests this is picked up as the first one by py.test
'''
output = self.runIt("create", "fabricFeatureChaincodes/create_join_channel.sh")
self.assertIn('Channel "channel0" is created successfully', output)
self.assertIn('Channel "channel1" is created successfully', output)
output = self.runIt("join", "fabricFeatureChaincodes/create_join_channel.sh")
self.assertIn('PEER0 joined on the channel "channel0" successfully', output)
self.assertIn('PEER0 joined on the channel "channel1" successfully', output)
self.assertIn('PEER1 joined on the channel "channel0" successfully', output)
self.assertIn('PEER1 joined on the channel "channel1" successfully', output)
self.assertIn('PEER2 joined on the channel "channel0" successfully', output)
self.assertIn('PEER2 joined on the channel "channel1" successfully', output)
self.assertIn('PEER3 joined on the channel "channel0" successfully', output)
self.assertIn('PEER3 joined on the channel "channel1" successfully', output)
#@unittest.skip("skipping")
def test_FAB3794_example02_invoke_query_inaloop_onallpeers(self):
''' This tests example02 chaincode where transfer values from assets
"a" and "b" via Invoke and then verify values by Querying on Ledger.
'''
output = self.runIt("install", "fabricFeatureChaincodes/e2e_test_example02.sh")
self.assertIn("Chaincode 'myccex020' is installed on PEER0 successfully", output)
self.assertIn("Chaincode 'myccex020' is installed on PEER1 successfully", output)
self.assertIn("Chaincode 'myccex020' is installed on PEER2 successfully", output)
self.assertIn("Chaincode 'myccex020' is installed on PEER3 successfully", output)
output = self.runIt("instantiate", "fabricFeatureChaincodes/e2e_test_example02.sh")
self.assertIn("Chaincode 'myccex020' Instantiation on PEER2 on 'channel0' is successful", output)
self.assertIn("Chaincode 'myccex020' Instantiation on PEER2 on 'channel1' is successful", output)
output = self.runIt("invokeQuery", "fabricFeatureChaincodes/e2e_test_example02.sh")
self.assertIn('Query on PEER0 on channel0/myccex020 is successful', output)
countPeer0Ch0 = output.count('Query on PEER0 on channel0/myccex020 is successful')
self.assertEquals(countPeer0Ch0, 2)
self.assertIn('Query on PEER1 on channel0/myccex020 is successful', output)
countPeer1Ch0 = output.count('Query on PEER1 on channel0/myccex020 is successful')
self.assertEquals(countPeer1Ch0, 2)
self.assertIn('Query on PEER2 on channel0/myccex020 is successful', output)
countPeer2Ch0 = output.count('Query on PEER2 on channel0/myccex020 is successful')
self.assertEquals(countPeer2Ch0, 2)
self.assertIn('Query on PEER3 on channel0/myccex020 is successful', output)
countPeer3Ch0 = output.count('Query on PEER3 on channel0/myccex020 is successful')
self.assertEquals(countPeer3Ch0, 2)
self.assertIn('Query on PEER0 on channel1/myccex020 is successful', output)
countPeer0Ch1 = output.count('Query on PEER0 on channel1/myccex020 is successful')
self.assertEquals(countPeer0Ch1, 2)
self.assertIn('Query on PEER1 on channel1/myccex020 is successful', output)
countPeer1Ch1 = output.count('Query on PEER1 on channel1/myccex020 is successful')
self.assertEquals(countPeer1Ch1, 2)
self.assertIn('Query on PEER2 on channel1/myccex020 is successful', output)
countPeer2Ch1 = output.count('Query on PEER2 on channel1/myccex020 is successful')
self.assertEquals(countPeer2Ch1, 2)
self.assertIn('Query on PEER3 on channel1/myccex020 is successful', output)
countPeer3Ch1 = output.count('Query on PEER3 on channel1/myccex020 is successful')
self.assertEquals(countPeer3Ch1, 2)
self.assertIn('Invoke transaction on PEER0 on channel0/myccex020 is successful', output)
self.assertIn('Invoke transaction on PEER1 on channel0/myccex020 is successful', output)
self.assertIn('Invoke transaction on PEER2 on channel0/myccex020 is successful', output)
self.assertIn('Invoke transaction on PEER3 on channel0/myccex020 is successful', output)
self.assertIn('Invoke transaction on PEER0 on channel1/myccex020 is successful', output)
self.assertIn('Invoke transaction on PEER1 on channel1/myccex020 is successful', output)
self.assertIn('Invoke transaction on PEER2 on channel1/myccex020 is successful', output)
self.assertIn('Invoke transaction on PEER3 on channel1/myccex020 is successful', output)
self.assertIn('End-2-End for chaincode example02 completed successfully', output)
#@unittest.skip("skipping")
def test_FAB3791_example03_negative_test_disallow_write_attempt_in_query(self):
''' Test writing to ledger via query fails as expected
'''
output = self.runIt("install", "fabricFeatureChaincodes/e2e_test_example03.sh")
self.assertIn("successfully", output)
output = self.runIt("instantiate", "fabricFeatureChaincodes/e2e_test_example03.sh")
self.assertIn("successfully", output)
output = self.runIt("invokeQuery", "fabricFeatureChaincodes/e2e_test_example03.sh")
self.assertIn('Query result on PEER0 is INVALID', output)
#@unittest.skip("skipping")
def test_FAB3796_example04_chaincode_to_chaincode_call_on_occurrence_of_an_event(self):
''' Test chaincode to chaincode calling when an event is generated.
'''
output = self.runIt("install", "fabricFeatureChaincodes/e2e_test_example04.sh")
self.assertIn("successfully", output)
output = self.runIt("instantiate", "fabricFeatureChaincodes/e2e_test_example04.sh")
self.assertIn("successfully", output)
output = self.runIt("invokeQuery", "fabricFeatureChaincodes/e2e_test_example04.sh")
self.assertIn("successfully", output)
#@unittest.skip("skipping")
def test_FAB3797_example05_chaincode_to_chaincode_call_on_same_and_different_channel(self):
''' Test chaincode to chaincode calling, when second chaincode exists
on a different channel.
'''
output = self.runIt("install", "fabricFeatureChaincodes/e2e_test_example05.sh")
self.assertIn("Chaincode 'myccex05' is installed on PEER0 successfully", output)
self.assertIn("Chaincode 'myccex05' is installed on PEER1 successfully", output)
self.assertIn("Chaincode 'myccex05' is installed on PEER2 successfully", output)
self.assertIn("Chaincode 'myccex05' is installed on PEER3 successfully", output)
self.assertIn("Chaincode 'ex02_b' is installed on PEER0 successfully", output)
self.assertIn("Chaincode 'ex02_b' is installed on PEER1 successfully", output)
self.assertIn("Chaincode 'ex02_b' is installed on PEER2 successfully", output)
self.assertIn("Chaincode 'ex02_b' is installed on PEER3 successfully", output)
output = self.runIt("instantiate", "fabricFeatureChaincodes/e2e_test_example05.sh")
self.assertIn("successfully", output)
output = self.runIt("invokeQuery", "fabricFeatureChaincodes/e2e_test_example05.sh")
self.assertIn("successfully", output)
#@unittest.skip("skipping")
def test_FAB3792_marbles02_init_query_transfer_marbles(self):
''' This test few basic operations from marbles02 chaincode.
'''
output = self.runIt("install", "fabricFeatureChaincodes/e2e_test_marbles02.sh")
self.assertIn("successfully", output)
output = self.runIt("instantiate", "fabricFeatureChaincodes/e2e_test_marbles02.sh")
self.assertIn("successfully", output)
output = self.runIt("initMarble1", "fabricFeatureChaincodes/e2e_test_marbles02.sh")
self.assertIn("successful", output)
output = self.runIt("queryMarble1", "fabricFeatureChaincodes/e2e_test_marbles02.sh")
self.assertIn("successful", output)
output = self.runIt("initMarble2", "fabricFeatureChaincodes/e2e_test_marbles02.sh")
self.assertIn("successful", output)
output = self.runIt("queryMarble2", "fabricFeatureChaincodes/e2e_test_marbles02.sh")
self.assertIn("Query marble2 on PEER2 on channel0 on chaincode mymarbles020 is successful", output)
output = self.runIt("txfrMarble", "fabricFeatureChaincodes/e2e_test_marbles02.sh")
self.assertIn("Txfr marble1 on PEER2 on channel0 on chaincode mymarbles020 to JERRY is successful", output)
output = self.runIt("queryAfterTxfrMarble", "fabricFeatureChaincodes/e2e_test_marbles02.sh")
self.assertIn("Query marble1 on PEER2 on channel0 on chaincode mymarbles020 is successful", output)
#@unittest.skip("skipping")
def test_FAB3793_chaincodeAPIDriver_exercise_chaincode_api_calls_as_invoke_functions(self):
''' Calling functions in shim/chaincode.go.
'''
output = self.runIt("install", "fabricFeatureChaincodes/e2e_test_ccapidriver.sh")
self.assertIn("successfully", output)
output = self.runIt("instantiate", "fabricFeatureChaincodes/e2e_test_ccapidriver.sh")
self.assertIn("successfully", output)
output = self.runIt("invoke_getTxTimeStamp", "fabricFeatureChaincodes/e2e_test_ccapidriver.sh")
self.assertIn("successful", output)
output = self.runIt("invoke_getBinding", "fabricFeatureChaincodes/e2e_test_ccapidriver.sh")
self.assertIn("successful", output)
output = self.runIt("invoke_getCreator", "fabricFeatureChaincodes/e2e_test_ccapidriver.sh")
self.assertIn("successful", output)
output = self.runIt("invoke_getSignedProposal", "fabricFeatureChaincodes/e2e_test_ccapidriver.sh")
self.assertIn("successful", output)
output = self.runIt("invoke_getTransient", "fabricFeatureChaincodes/e2e_test_ccapidriver.sh")
self.assertIn("successful", output)
#@unittest.skip("skipping")
def test_FAB3793_chaincodeAPIDriver_2_exercise_chaincode_api_calls_as_direct_calls(self):
''' Calling functions in shim/chaincode.go.
'''
output = self.runIt("install", "fabricFeatureChaincodes/e2e_test_ccapidriver_two.sh")
self.assertIn("successfully", output)
output = self.runIt("instantiate", "fabricFeatureChaincodes/e2e_test_ccapidriver_two.sh")
self.assertIn("successfully", output)
output = self.runIt("invoke_getTxTimeStamp", "fabricFeatureChaincodes/e2e_test_ccapidriver_two.sh")
self.assertIn("successful", output)
output = self.runIt("invoke_getBinding", "fabricFeatureChaincodes/e2e_test_ccapidriver_two.sh")
self.assertIn("successful", output)
output = self.runIt("invoke_getCreator", "fabricFeatureChaincodes/e2e_test_ccapidriver_two.sh")
self.assertIn("successful", output)
output = self.runIt("invoke_getSignedProposal", "fabricFeatureChaincodes/e2e_test_ccapidriver_two.sh")
self.assertIn("successful", output)
output = self.runIt("invoke_getTransient", "fabricFeatureChaincodes/e2e_test_ccapidriver_two.sh")
self.assertIn("successful", output)
@unittest.skip("skipping")
def test_FABXXXX_Joe_Chaincode(self):
''' Calling functions in shim/chaincode.go.
'''
pass
@unittest.skip("skipping")
def test_FABXXXX_Laurie_Chaincode(self):
''' Calling functions in shim/chaincode.go.
'''
pass
@unittest.skip("skipping")
def test_FABXXXX_Alpha_Chaincode(self):
''' Calling functions in shim/chaincode.go.
'''
pass
@unittest.skip("skipping")
def test_FABXXXX_XYZ_Chaincode(self):
''' Calling functions in shim/chaincode.go.
'''
pass
@unittest.skip("skipping")
def test_FABXXXX_ABC_Chaincode(self):
''' Calling functions in shim/chaincode.go.
'''
pass
| 59.084071
| 206
| 0.709503
| 1,484
| 13,353
| 6.259434
| 0.143531
| 0.091721
| 0.058133
| 0.063301
| 0.805899
| 0.782861
| 0.760792
| 0.673808
| 0.55528
| 0.433954
| 0
| 0.035279
| 0.18273
| 13,353
| 225
| 207
| 59.346667
| 0.815908
| 0.09174
| 0
| 0.230303
| 0
| 0.006061
| 0.468166
| 0.156055
| 0
| 0
| 0
| 0
| 0.478788
| 1
| 0.09697
| false
| 0.030303
| 0.018182
| 0
| 0.127273
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
4a9ab0d3846e29c56b6317db67b519c5141841d6
| 367
|
py
|
Python
|
venv-skin/lib/python3.6/site-packages/hashes/ops/md5.py
|
nobi1007/flask-apis
|
9ae5d676be5fe7d0669415089bd032f43abda2d8
|
[
"MIT"
] | null | null | null |
venv-skin/lib/python3.6/site-packages/hashes/ops/md5.py
|
nobi1007/flask-apis
|
9ae5d676be5fe7d0669415089bd032f43abda2d8
|
[
"MIT"
] | 3
|
2020-06-03T08:09:39.000Z
|
2021-04-30T21:17:43.000Z
|
venv-skin/lib/python3.6/site-packages/hashes/ops/md5.py
|
nobi1007/flask-apis
|
9ae5d676be5fe7d0669415089bd032f43abda2d8
|
[
"MIT"
] | null | null | null |
'''
This module generates md5 hashes
'''
import hashlib
class Algorithm:
def __init__(self):
self.hash_type = "md5"
self.description = "This module generates md5 hashes"
def generate(self, cli_object):
hash_object = getattr(hashlib, "md5")()
hash_object.update(cli_object.plaintext)
return hash_object.hexdigest()
| 20.388889
| 61
| 0.66485
| 43
| 367
| 5.44186
| 0.534884
| 0.128205
| 0.162393
| 0.188034
| 0.239316
| 0
| 0
| 0
| 0
| 0
| 0
| 0.014235
| 0.234332
| 367
| 17
| 62
| 21.588235
| 0.818505
| 0.087193
| 0
| 0
| 1
| 0
| 0.116208
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.222222
| false
| 0
| 0.111111
| 0
| 0.555556
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
4ac97a314e9adcf12bac5c7b9f5e60f10a0ecb64
| 70
|
py
|
Python
|
latam/norte/__init__.py
|
tacosdedatos/latam
|
6baf6ed70a8bdb2e7de4e2bdb596bef85727301b
|
[
"BSD-3-Clause"
] | 4
|
2020-10-12T07:58:39.000Z
|
2020-12-29T21:44:11.000Z
|
latam/norte/__init__.py
|
tacosdedatos/latam
|
6baf6ed70a8bdb2e7de4e2bdb596bef85727301b
|
[
"BSD-3-Clause"
] | 126
|
2020-10-08T01:09:41.000Z
|
2022-03-22T01:05:03.000Z
|
latam/norte/__init__.py
|
tacosdedatos/latam
|
6baf6ed70a8bdb2e7de4e2bdb596bef85727301b
|
[
"BSD-3-Clause"
] | null | null | null |
"""Módulo con los paises de norteamérica."""
from .mexico import MEX
| 17.5
| 44
| 0.728571
| 10
| 70
| 5.1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.157143
| 70
| 3
| 45
| 23.333333
| 0.864407
| 0.542857
| 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
|
436dae7219dd647c9d68babe5df3c9f1e177f2a3
| 85
|
py
|
Python
|
src/pathme/kegg/__init__.py
|
brucetony/PathMe
|
c7d758ff76f6787a4eb349b95f9c06bf1afb0754
|
[
"Apache-2.0"
] | 12
|
2019-01-24T11:00:55.000Z
|
2022-01-26T19:39:00.000Z
|
src/pathme/kegg/__init__.py
|
brucetony/PathMe
|
c7d758ff76f6787a4eb349b95f9c06bf1afb0754
|
[
"Apache-2.0"
] | 17
|
2019-01-24T12:33:01.000Z
|
2021-06-09T07:08:50.000Z
|
src/pathme/kegg/__init__.py
|
brucetony/PathMe
|
c7d758ff76f6787a4eb349b95f9c06bf1afb0754
|
[
"Apache-2.0"
] | 2
|
2019-07-29T08:29:33.000Z
|
2021-04-13T02:13:40.000Z
|
# -*- coding: utf-8 -*-
"""Part of the package dedicated to convert KEGG to BEL."""
| 21.25
| 59
| 0.623529
| 13
| 85
| 4.076923
| 0.923077
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.014493
| 0.188235
| 85
| 3
| 60
| 28.333333
| 0.753623
| 0.894118
| 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
|
4377fa09f3205f039140c5e7d7982bbcfbdfa7b6
| 307
|
py
|
Python
|
spiketag/base/SpkWav.py
|
aliddell/spiketag
|
f5600126c2c6c9be319e8b808d51ea33be843909
|
[
"BSD-3-Clause"
] | 4
|
2018-04-23T18:08:39.000Z
|
2020-03-10T19:06:28.000Z
|
spiketag/base/SpkWav.py
|
aliddell/spiketag
|
f5600126c2c6c9be319e8b808d51ea33be843909
|
[
"BSD-3-Clause"
] | 69
|
2017-02-17T19:27:52.000Z
|
2022-03-30T04:06:53.000Z
|
spiketag/base/SpkWav.py
|
aliddell/spiketag
|
f5600126c2c6c9be319e8b808d51ea33be843909
|
[
"BSD-3-Clause"
] | 5
|
2017-02-01T16:11:32.000Z
|
2021-02-05T20:10:43.000Z
|
import numpy as np
def get_spkwav(filename):
'''
spk_wav.bin
'''
spkwav = np.fromfile(filename, dtype=np.int32).reshape(-1, 20, 4)
return spkwav
def get_spkinfo(filename):
'''
spk.bin
'''
spkinfo = np.fromfile(filename, dtype=np.int32).reshape(-1,2)
return spkinfo
| 20.466667
| 70
| 0.625407
| 42
| 307
| 4.5
| 0.5
| 0.063492
| 0.190476
| 0.243386
| 0.402116
| 0.402116
| 0.402116
| 0.402116
| 0
| 0
| 0
| 0.042194
| 0.228013
| 307
| 15
| 71
| 20.466667
| 0.755274
| 0.061889
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.285714
| false
| 0
| 0.142857
| 0
| 0.714286
| 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
|
438a29db12e4dc8560c38b9a926ed1f269f8f753
| 142
|
py
|
Python
|
apps/benefactor/admin.py
|
alejandrobolivar/sist_inv_coesbicop
|
36a068f21adb28f1f711b540841786538dbf8411
|
[
"CC0-1.0"
] | null | null | null |
apps/benefactor/admin.py
|
alejandrobolivar/sist_inv_coesbicop
|
36a068f21adb28f1f711b540841786538dbf8411
|
[
"CC0-1.0"
] | null | null | null |
apps/benefactor/admin.py
|
alejandrobolivar/sist_inv_coesbicop
|
36a068f21adb28f1f711b540841786538dbf8411
|
[
"CC0-1.0"
] | null | null | null |
from django.contrib import admin
# Register your models here.
from apps.benefactor.models import Benefactor
admin.site.register(Benefactor)
| 20.285714
| 45
| 0.823944
| 19
| 142
| 6.157895
| 0.631579
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.112676
| 142
| 7
| 46
| 20.285714
| 0.928571
| 0.183099
| 0
| 0
| 0
| 0
| 0
| 0
| 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
|
43a8f4aedc138f9d2e32e36adf2015082cf63afb
| 216
|
py
|
Python
|
api/serializers.py
|
pearlpandz/storyseller-api
|
0db7bcb9be8b808e7dec62da180279ca720df312
|
[
"MIT"
] | null | null | null |
api/serializers.py
|
pearlpandz/storyseller-api
|
0db7bcb9be8b808e7dec62da180279ca720df312
|
[
"MIT"
] | null | null | null |
api/serializers.py
|
pearlpandz/storyseller-api
|
0db7bcb9be8b808e7dec62da180279ca720df312
|
[
"MIT"
] | null | null | null |
from rest_framework import serializers
from .models import Story
class StorySerializer(serializers.HyperlinkedModelSerializer):
class Meta:
model = Story
fields = ('name', 'description', 'file')
| 27
| 62
| 0.726852
| 21
| 216
| 7.428571
| 0.761905
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.189815
| 216
| 8
| 63
| 27
| 0.891429
| 0
| 0
| 0
| 0
| 0
| 0.087558
| 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
|
43adac9c685db3a42693526afbb92d4b0a2acd4b
| 101
|
py
|
Python
|
a1_t5_1.py
|
Jimmyjtc001/assignment1
|
597f6c2e9803fe74bf2efba0ffaa00afba7bf1bc
|
[
"BSD-3-Clause"
] | null | null | null |
a1_t5_1.py
|
Jimmyjtc001/assignment1
|
597f6c2e9803fe74bf2efba0ffaa00afba7bf1bc
|
[
"BSD-3-Clause"
] | null | null | null |
a1_t5_1.py
|
Jimmyjtc001/assignment1
|
597f6c2e9803fe74bf2efba0ffaa00afba7bf1bc
|
[
"BSD-3-Clause"
] | null | null | null |
import statistics
power_arr = [4, 5, 2, 6, 3, 7, 8, 9, 6, 5, 2]
print(statistics.median(power_arr))
| 20.2
| 45
| 0.653465
| 20
| 101
| 3.2
| 0.7
| 0.25
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.130952
| 0.168317
| 101
| 4
| 46
| 25.25
| 0.630952
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 0.333333
| 0.333333
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
43b6809634ee083a16f272a55f21edef8b58c879
| 1,604
|
py
|
Python
|
ugentlist.py
|
DW-yejing/ssq_analyzer
|
2b8a021e39bd99fdd1a84727c0ea18f1a9f78da2
|
[
"MIT"
] | null | null | null |
ugentlist.py
|
DW-yejing/ssq_analyzer
|
2b8a021e39bd99fdd1a84727c0ea18f1a9f78da2
|
[
"MIT"
] | null | null | null |
ugentlist.py
|
DW-yejing/ssq_analyzer
|
2b8a021e39bd99fdd1a84727c0ea18f1a9f78da2
|
[
"MIT"
] | null | null | null |
#encoding: utf-8
userAgents=["Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Avant Browser)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; 360SE)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; SE 2.X MetaSr 1.0; SE 2.X MetaSr 1.0; .NET CLR 2.0.50727; SE 2.X MetaSr 1.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; The World)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; TencentTraveler 4.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Maxthon 2.0)",
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_0) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.56 Safari/535.11",
"Opera/9.80 (Windows NT 6.1; U; en) Presto/2.8.131 Version/11.11",
"Opera/9.80 (Macintosh; Intel Mac OS X 10.6.8; U; en) Presto/2.8.131 Version/11.11",
"Mozilla/5.0 (Windows NT 6.1; rv:2.0.1) Gecko/20100101 Firefox/4.0.1",
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:2.0.1) Gecko/20100101 Firefox/4.0.1",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0)",
"Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0",
"Mozilla/5.0 (Windows; U; Windows NT 6.1; en-us) AppleWebKit/534.50 (KHTML, like Gecko) Version/5.1 Safari/534.50",
"Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_8; en-us) AppleWebKit/534.50 (KHTML, like Gecko) Version/5.1 Safari/534.50"
]
| 76.380952
| 147
| 0.65586
| 326
| 1,604
| 3.214724
| 0.184049
| 0.030534
| 0.124046
| 0.199427
| 0.736641
| 0.701336
| 0.652672
| 0.590649
| 0.590649
| 0.490458
| 0
| 0.169151
| 0.163342
| 1,604
| 21
| 148
| 76.380952
| 0.611773
| 0.009352
| 0
| 0
| 0
| 0.75
| 0.898049
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
43ca852d3abc658d52c40cbb96ca28a2c0908a47
| 11,782
|
py
|
Python
|
tests/fetch/test_fetch_centos.py
|
AurelienLourot/charm-helpers
|
b5725ac546372e7d4004d15095f79cdd5e7da687
|
[
"Apache-2.0"
] | 15
|
2017-09-20T13:37:10.000Z
|
2021-11-03T13:31:15.000Z
|
tests/fetch/test_fetch_centos.py
|
AurelienLourot/charm-helpers
|
b5725ac546372e7d4004d15095f79cdd5e7da687
|
[
"Apache-2.0"
] | 313
|
2017-09-15T13:22:58.000Z
|
2022-02-25T17:55:01.000Z
|
tests/fetch/test_fetch_centos.py
|
AurelienLourot/charm-helpers
|
b5725ac546372e7d4004d15095f79cdd5e7da687
|
[
"Apache-2.0"
] | 136
|
2017-09-19T13:37:33.000Z
|
2022-03-29T11:08:00.000Z
|
import subprocess
import os
from tests.helpers import patch_open
from testtools import TestCase
from mock import (
patch,
MagicMock,
call,
)
from charmhelpers.fetch import centos as fetch
def getenv(update=None):
# return a copy of os.environ with update applied.
# this was necessary because some modules modify os.environment directly
copy = os.environ.copy()
if update is not None:
copy.update(update)
return copy
class FetchTest(TestCase):
@patch("charmhelpers.fetch.log")
@patch('yum.YumBase.doPackageLists')
def test_filter_packages_missing_centos(self, yumBase, log):
class MockPackage:
def __init__(self, name):
self.base_package_name = name
yum_dict = {
'installed': {
MockPackage('vim')
},
'available': {
MockPackage('vim')
}
}
import yum
yum.YumBase.return_value.doPackageLists.return_value = yum_dict
result = fetch.filter_installed_packages(['vim', 'emacs'])
self.assertEquals(result, ['emacs'])
@patch("charmhelpers.fetch.log")
def test_filter_packages_none_missing_centos(self, log):
class MockPackage:
def __init__(self, name):
self.base_package_name = name
yum_dict = {
'installed': {
MockPackage('vim')
},
'available': {
MockPackage('vim')
}
}
import yum
yum.yumBase.return_value.doPackageLists.return_value = yum_dict
result = fetch.filter_installed_packages(['vim'])
self.assertEquals(result, [])
@patch('charmhelpers.fetch.centos.log')
@patch('yum.YumBase.doPackageLists')
def test_filter_packages_not_available_centos(self, yumBase, log):
class MockPackage:
def __init__(self, name):
self.base_package_name = name
yum_dict = {
'installed': {
MockPackage('vim')
}
}
import yum
yum.YumBase.return_value.doPackageLists.return_value = yum_dict
result = fetch.filter_installed_packages(['vim', 'joe'])
self.assertEquals(result, ['joe'])
@patch('charmhelpers.fetch.centos.log')
def test_add_source_none_centos(self, log):
fetch.add_source(source=None)
self.assertTrue(log.called)
@patch('charmhelpers.fetch.centos.log')
@patch('os.listdir')
def test_add_source_http_centos(self, listdir, log):
source = "http://archive.ubuntu.com/ubuntu raring-backports main"
with patch_open() as (mock_open, mock_file):
fetch.add_source(source=source)
listdir.assert_called_with('/etc/yum.repos.d/')
mock_file.write.assert_has_calls([
call("[archive.ubuntu.com_ubuntu raring-backports main]\n"),
call("name=archive.ubuntu.com/ubuntu raring-backports main\n"),
call("baseurl=http://archive.ubuntu.com/ubuntu raring"
"-backports main\n\n")])
@patch('charmhelpers.fetch.centos.log')
@patch('os.listdir')
@patch('subprocess.check_call')
def test_add_source_http_and_key_id_centos(self, check_call,
listdir, log):
source = "http://archive.ubuntu.com/ubuntu raring-backports main"
key_id = "akey"
with patch_open() as (mock_open, mock_file):
fetch.add_source(source=source, key=key_id)
listdir.assert_called_with('/etc/yum.repos.d/')
mock_file.write.assert_has_calls([
call("[archive.ubuntu.com_ubuntu raring-backports main]\n"),
call("name=archive.ubuntu.com/ubuntu raring-backports main\n"),
call("baseurl=http://archive.ubuntu.com/ubuntu raring"
"-backports main\n\n")])
check_call.assert_called_with(['rpm', '--import', key_id])
@patch('charmhelpers.fetch.centos.log')
@patch('os.listdir')
@patch('subprocess.check_call')
def test_add_source_https_and_key_id_centos(self, check_call,
listdir, log):
source = "https://USER:PASS@private-ppa.launchpad.net/project/awesome"
key_id = "GPGPGP"
with patch_open() as (mock_open, mock_file):
fetch.add_source(source=source, key=key_id)
listdir.assert_called_with('/etc/yum.repos.d/')
mock_file.write.assert_has_calls([
call("[_USER:PASS@private-ppa.launchpad"
".net_project_awesome]\n"),
call("name=/USER:PASS@private-ppa.launchpad.net"
"/project/awesome\n"),
call("baseurl=https://USER:PASS@private-ppa.launchpad.net"
"/project/awesome\n\n")])
check_call.assert_called_with(['rpm', '--import', key_id])
@patch('charmhelpers.fetch.centos.log')
@patch.object(fetch, 'NamedTemporaryFile')
@patch('os.listdir')
@patch('subprocess.check_call')
def test_add_source_http_and_key_centos(self, check_call,
listdir, temp_file, log):
source = "http://archive.ubuntu.com/ubuntu raring-backports main"
key = '''
-----BEGIN PGP PUBLIC KEY BLOCK-----
[...]
-----END PGP PUBLIC KEY BLOCK-----
'''
file_mock = MagicMock()
file_mock.name = 'temporary_file'
temp_file.return_value.__enter__.return_value = file_mock
listdir.return_value = []
with patch_open() as (mock_open, mock_file):
fetch.add_source(source=source, key=key)
listdir.assert_called_with('/etc/yum.repos.d/')
self.assertTrue(log.called)
check_call.assert_called_with(['rpm', '--import', file_mock.name])
file_mock.write.assert_called_once_with(key)
file_mock.flush.assert_called_once_with()
file_mock.seek.assert_called_once_with(0)
class YumTests(TestCase):
@patch('subprocess.call')
@patch('charmhelpers.fetch.centos.log')
def test_yum_upgrade_non_fatal(self, log, mock_call):
options = ['--foo', '--bar']
fetch.upgrade(options)
mock_call.assert_called_with(['yum', '--assumeyes',
'--foo', '--bar', 'upgrade'],
env=getenv())
@patch('subprocess.check_call')
@patch('charmhelpers.fetch.centos.log')
def test_yum_upgrade_fatal(self, log, mock_call):
options = ['--foo', '--bar']
fetch.upgrade(options, fatal=True)
mock_call.assert_called_with(['yum', '--assumeyes',
'--foo', '--bar', 'upgrade'],
env=getenv())
@patch('subprocess.call')
@patch('charmhelpers.fetch.centos.log')
def test_installs_yum_packages(self, log, mock_call):
packages = ['foo', 'bar']
options = ['--foo', '--bar']
fetch.install(packages, options)
mock_call.assert_called_with(['yum', '--assumeyes',
'--foo', '--bar', 'install',
'foo', 'bar'],
env=getenv())
@patch('subprocess.call')
@patch('charmhelpers.fetch.centos.log')
def test_installs_yum_packages_without_options(self, log, mock_call):
packages = ['foo', 'bar']
fetch.install(packages)
mock_call.assert_called_with(['yum', '--assumeyes',
'install', 'foo', 'bar'],
env=getenv())
@patch('subprocess.call')
@patch('charmhelpers.fetch.centos.log')
def test_installs_yum_packages_as_string(self, log, mock_call):
packages = 'foo bar'
fetch.install(packages)
mock_call.assert_called_with(['yum', '--assumeyes',
'install', 'foo bar'],
env=getenv())
@patch('subprocess.check_call')
@patch('charmhelpers.fetch.centos.log')
def test_installs_yum_packages_with_possible_errors(self, log, mock_call):
packages = ['foo', 'bar']
options = ['--foo', '--bar']
fetch.install(packages, options, fatal=True)
mock_call.assert_called_with(['yum', '--assumeyes',
'--foo', '--bar',
'install', 'foo', 'bar'],
env=getenv())
@patch('subprocess.check_call')
@patch('charmhelpers.fetch.centos.log')
def test_purges_yum_packages_as_string_fatal(self, log, mock_call):
packages = 'irrelevant names'
mock_call.side_effect = OSError('fail')
self.assertRaises(OSError, fetch.purge, packages, fatal=True)
self.assertTrue(log.called)
@patch('subprocess.check_call')
@patch('charmhelpers.fetch.centos.log')
def test_purges_yum_packages_fatal(self, log, mock_call):
packages = ['irrelevant', 'names']
mock_call.side_effect = OSError('fail')
self.assertRaises(OSError, fetch.purge, packages, fatal=True)
self.assertTrue(log.called)
@patch('subprocess.call')
@patch('charmhelpers.fetch.centos.log')
def test_purges_yum_packages_as_string_nofatal(self, log, mock_call):
packages = 'foo bar'
fetch.purge(packages)
self.assertTrue(log.called)
mock_call.assert_called_with(['yum', '--assumeyes',
'remove', 'foo bar'],
env=getenv())
@patch('subprocess.call')
@patch('charmhelpers.fetch.centos.log')
def test_purges_yum_packages_nofatal(self, log, mock_call):
packages = ['foo', 'bar']
fetch.purge(packages)
self.assertTrue(log.called)
mock_call.assert_called_with(['yum', '--assumeyes',
'remove', 'foo', 'bar'],
env=getenv())
@patch('subprocess.check_call')
@patch('charmhelpers.fetch.centos.log')
def test_yum_update_fatal(self, log, check_call):
fetch.update(fatal=True)
check_call.assert_called_with(['yum', '--assumeyes', 'update'],
env=getenv())
self.assertTrue(log.called)
@patch('subprocess.check_output')
@patch('charmhelpers.fetch.centos.log')
def test_yum_search(self, log, check_output):
package = ['irrelevant']
from charmhelpers.fetch.centos import yum_search
yum_search(package)
check_output.assert_called_with(['yum', 'search', 'irrelevant'])
self.assertTrue(log.called)
@patch('subprocess.check_call')
@patch('time.sleep')
def test_run_yum_command_retries_if_fatal(self, check_call, sleep):
"""The _run_yum_command function retries the command if it can't get
the YUM lock."""
self.called = False
def side_effect(*args, **kwargs):
"""
First, raise an exception (can't acquire lock), then return 0
(the lock is grabbed).
"""
if not self.called:
self.called = True
raise subprocess.CalledProcessError(
returncode=1, cmd="some command")
else:
return 0
check_call.side_effect = side_effect
check_call.return_value = 0
from charmhelpers.fetch.centos import _run_yum_command
_run_yum_command(["some", "command"], fatal=True)
self.assertTrue(sleep.called)
| 37.28481
| 79
| 0.579698
| 1,277
| 11,782
| 5.119029
| 0.135474
| 0.059813
| 0.067309
| 0.0771
| 0.748508
| 0.727092
| 0.717913
| 0.700321
| 0.681811
| 0.64265
| 0
| 0.000601
| 0.293923
| 11,782
| 315
| 80
| 37.403175
| 0.785191
| 0.024189
| 0
| 0.558594
| 0
| 0
| 0.219163
| 0.09083
| 0
| 0
| 0
| 0
| 0.144531
| 1
| 0.101563
| false
| 0.015625
| 0.054688
| 0
| 0.183594
| 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
|
78de34db1136d45b305fa61e25c62b02195ed359
| 168
|
py
|
Python
|
Pcolors/shortcuts/__init__.py
|
rafalou38/Pcolors
|
a4dc57c57d6a142a23a8ce8bc422581028fc8abd
|
[
"MIT"
] | 1
|
2020-08-31T09:45:28.000Z
|
2020-08-31T09:45:28.000Z
|
Pcolors/shortcuts/__init__.py
|
rafalou38/Pcolors
|
a4dc57c57d6a142a23a8ce8bc422581028fc8abd
|
[
"MIT"
] | null | null | null |
Pcolors/shortcuts/__init__.py
|
rafalou38/Pcolors
|
a4dc57c57d6a142a23a8ce8bc422581028fc8abd
|
[
"MIT"
] | null | null | null |
from . import dark, light, format
def to_bg(id):
"""
:param id: id of a color (light or dark)
:return: id of the color for background
"""
return str(int(id) + 10)
| 21
| 41
| 0.654762
| 30
| 168
| 3.633333
| 0.7
| 0.073395
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.015038
| 0.208333
| 168
| 8
| 42
| 21
| 0.804511
| 0.47619
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0.333333
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
78e568c23d66693f6d4dccd6af4353e23505e975
| 1,110
|
py
|
Python
|
virtual/lib/python3.6/site-packages/pylint/test/functional/too_many_lines.py
|
drewheathens/The-Moringa-Tribune
|
98ee4d63c9df6f1f7497fc6876960a822d914500
|
[
"MIT"
] | 463
|
2015-01-15T08:17:42.000Z
|
2022-03-28T15:10:20.000Z
|
virtual/lib/python3.6/site-packages/pylint/test/functional/too_many_lines.py
|
drewheathens/The-Moringa-Tribune
|
98ee4d63c9df6f1f7497fc6876960a822d914500
|
[
"MIT"
] | 52
|
2015-01-06T02:43:59.000Z
|
2022-03-14T11:15:21.000Z
|
virtual/lib/python3.6/site-packages/pylint/test/functional/too_many_lines.py
|
drewheathens/The-Moringa-Tribune
|
98ee4d63c9df6f1f7497fc6876960a822d914500
|
[
"MIT"
] | 249
|
2015-01-07T22:49:49.000Z
|
2022-03-18T02:32:06.000Z
|
# pylint: disable=missing-docstring
# -1: [too-many-lines]
__revision__ = 0
ZERFZAER = 3
HEHEHE = 2
| 1.09252
| 35
| 0.063964
| 14
| 1,110
| 4.785714
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.047059
| 0.923423
| 1,110
| 1,015
| 36
| 1.093596
| 0.741176
| 0.048649
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
78e885ac77ec43e4441c5ab6f6155328418357e1
| 170
|
py
|
Python
|
docs/examples/flags.py
|
jamezpolley/begins
|
7dfac6f7c9f5cb04ee1f44993709895a4ea60d31
|
[
"Apache-2.0"
] | 120
|
2015-03-11T19:36:57.000Z
|
2021-03-28T05:02:34.000Z
|
docs/examples/flags.py
|
jamezpolley/begins
|
7dfac6f7c9f5cb04ee1f44993709895a4ea60d31
|
[
"Apache-2.0"
] | 22
|
2015-02-24T22:41:18.000Z
|
2020-06-10T06:27:49.000Z
|
docs/examples/flags.py
|
jamezpolley/begins
|
7dfac6f7c9f5cb04ee1f44993709895a4ea60d31
|
[
"Apache-2.0"
] | 23
|
2015-05-22T12:56:24.000Z
|
2020-05-29T01:34:03.000Z
|
from __future__ import print_function
import begin
@begin.start
def question(enabled=False, disabled=True):
print("enable:", enabled)
print("disable:", disabled)
| 24.285714
| 43
| 0.752941
| 21
| 170
| 5.857143
| 0.714286
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.129412
| 170
| 6
| 44
| 28.333333
| 0.831081
| 0
| 0
| 0
| 0
| 0
| 0.088235
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.166667
| false
| 0
| 0.333333
| 0
| 0.5
| 0.5
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
|
0
| 4
|
6006724a6492df63f191ff7dbbf70fb78aa84cb7
| 94
|
py
|
Python
|
C18/18-5/meal_plans/apps.py
|
Triple-Z/Python-Crash-Course
|
7e59104420f6110e4d60668314264105534016ce
|
[
"MIT"
] | null | null | null |
C18/18-5/meal_plans/apps.py
|
Triple-Z/Python-Crash-Course
|
7e59104420f6110e4d60668314264105534016ce
|
[
"MIT"
] | null | null | null |
C18/18-5/meal_plans/apps.py
|
Triple-Z/Python-Crash-Course
|
7e59104420f6110e4d60668314264105534016ce
|
[
"MIT"
] | null | null | null |
from django.apps import AppConfig
class MealPlansConfig(AppConfig):
name = 'meal_plans'
| 15.666667
| 33
| 0.765957
| 11
| 94
| 6.454545
| 0.909091
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.159574
| 94
| 5
| 34
| 18.8
| 0.898734
| 0
| 0
| 0
| 0
| 0
| 0.106383
| 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
|
601b0c0ad5658c76ee0211ddfaa42944b19788e1
| 770
|
py
|
Python
|
bajra/engines/base.py
|
Spratiher9/Bajra
|
c668ab8879356cca7eff8b8e66f28bae34f8f6e6
|
[
"Apache-2.0"
] | null | null | null |
bajra/engines/base.py
|
Spratiher9/Bajra
|
c668ab8879356cca7eff8b8e66f28bae34f8f6e6
|
[
"Apache-2.0"
] | null | null | null |
bajra/engines/base.py
|
Spratiher9/Bajra
|
c668ab8879356cca7eff8b8e66f28bae34f8f6e6
|
[
"Apache-2.0"
] | null | null | null |
class EngineBase:
def __init__(self, *args, **kwargs):
raise NotImplementedError()
def connection(self, *args, **kwargs):
raise NotImplementedError()
def execute(self, query, params):
raise NotImplementedError()
def fetchone(self, query, params):
raise NotImplementedError()
def fetchall(self, query, params):
raise NotImplementedError()
def reset(self):
raise NotImplementedError()
def commit(self):
raise NotImplementedError()
def begin(self):
raise NotImplementedError()
def rollback(self):
raise NotImplementedError()
def mogrify(self, query, params):
raise NotImplementedError()
def close(self):
raise NotImplementedError()
| 23.333333
| 42
| 0.645455
| 69
| 770
| 7.144928
| 0.304348
| 0.535497
| 0.547667
| 0.162272
| 0.507099
| 0.507099
| 0
| 0
| 0
| 0
| 0
| 0
| 0.258442
| 770
| 33
| 43
| 23.333333
| 0.863398
| 0
| 0
| 0.478261
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.478261
| false
| 0
| 0
| 0
| 0.521739
| 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
|
60205ffd5fb34b6dbb7ab14bf4636b69acf718e8
| 126
|
py
|
Python
|
URI2765.py
|
rashidulhasanhridoy/URI-Online-Judge-Problem-Solve-with-Python-3
|
c7db434e2e6e40c2ca3bd56db0d04cf79f69de12
|
[
"Apache-2.0"
] | 2
|
2020-07-21T18:01:37.000Z
|
2021-11-29T01:08:14.000Z
|
URI2765.py
|
rashidulhasanhridoy/URI-Online-Judge-Problem-Solve-with-Python-3
|
c7db434e2e6e40c2ca3bd56db0d04cf79f69de12
|
[
"Apache-2.0"
] | null | null | null |
URI2765.py
|
rashidulhasanhridoy/URI-Online-Judge-Problem-Solve-with-Python-3
|
c7db434e2e6e40c2ca3bd56db0d04cf79f69de12
|
[
"Apache-2.0"
] | null | null | null |
C = 0
X = str(input(''))
for i in X:
if i == ',':
C = X.index(i)
break
print(X[:C])
print(X[C+1 : len(X)])
| 15.75
| 22
| 0.420635
| 25
| 126
| 2.12
| 0.56
| 0.226415
| 0.264151
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.023529
| 0.325397
| 126
| 8
| 23
| 15.75
| 0.6
| 0
| 0
| 0
| 0
| 0
| 0.007874
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.25
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
6022311a821bc8f46b05c081cf1010a3543a253e
| 106
|
py
|
Python
|
Chapter 04 - Repetition Structures/Assignments/4.4 - Calculating a Running Total/51095.py
|
EllisBarnes00/COP-1000
|
8509e59e8a566c77295c714ddcb0f557c470358b
|
[
"Unlicense"
] | null | null | null |
Chapter 04 - Repetition Structures/Assignments/4.4 - Calculating a Running Total/51095.py
|
EllisBarnes00/COP-1000
|
8509e59e8a566c77295c714ddcb0f557c470358b
|
[
"Unlicense"
] | 1
|
2021-06-07T03:55:29.000Z
|
2021-06-07T03:56:47.000Z
|
Chapter 04 - Repetition Structures/Assignments/4.4 - Calculating a Running Total/51095.py
|
EllisBarnes00/COP-1000
|
8509e59e8a566c77295c714ddcb0f557c470358b
|
[
"Unlicense"
] | null | null | null |
# given the variable profits, write a statment that
# increases its value by a factor of 10
profits *= 10
| 26.5
| 51
| 0.754717
| 18
| 106
| 4.444444
| 0.833333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.047059
| 0.198113
| 106
| 4
| 52
| 26.5
| 0.894118
| 0.820755
| 0
| 0
| 0
| 0
| 0
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
602a36c3f114ef25b062d1f9963ae19bede0752f
| 182
|
py
|
Python
|
solutions/1st-operators/l1_a3.py
|
Jhynn/programming-concepts-and-logic
|
0ffa71c6259296813d3951f21e8d0d69dd523545
|
[
"CC-BY-4.0"
] | 4
|
2021-08-03T01:13:34.000Z
|
2021-09-29T21:47:41.000Z
|
solutions/1st-operators/l1_a3.py
|
Jhynn/programming-concepts-and-logic
|
0ffa71c6259296813d3951f21e8d0d69dd523545
|
[
"CC-BY-4.0"
] | null | null | null |
solutions/1st-operators/l1_a3.py
|
Jhynn/programming-concepts-and-logic
|
0ffa71c6259296813d3951f21e8d0d69dd523545
|
[
"CC-BY-4.0"
] | null | null | null |
height = float(input('Type your height, please: '))
wheight = float(input('Type your wheight, please: '))
bmi = wheight / height ** 2
print(f'Your Body Mass Index ─ BMI is {bmi}')
| 26
| 53
| 0.67033
| 28
| 182
| 4.392857
| 0.571429
| 0.162602
| 0.227642
| 0.292683
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.006623
| 0.17033
| 182
| 6
| 54
| 30.333333
| 0.801325
| 0
| 0
| 0
| 0
| 0
| 0.483516
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.25
| 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
|
602f2fe88cd6262602853e3d0eb2a443c5dd9fa7
| 188
|
py
|
Python
|
hello.py
|
musegros/projectManagement
|
6f556b232e8a5ca46b015d955b49e0b3bb9d0406
|
[
"WTFPL"
] | null | null | null |
hello.py
|
musegros/projectManagement
|
6f556b232e8a5ca46b015d955b49e0b3bb9d0406
|
[
"WTFPL"
] | null | null | null |
hello.py
|
musegros/projectManagement
|
6f556b232e8a5ca46b015d955b49e0b3bb9d0406
|
[
"WTFPL"
] | null | null | null |
import random
from flask import Flask
app = Flask(__name__)
def coin_toss( ):
return ['Heads', 'Tails'][random.randint(0,1)]
@app.route("/")
def hello():
return "Hello, World!"
| 15.666667
| 50
| 0.654255
| 26
| 188
| 4.538462
| 0.692308
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.012821
| 0.170213
| 188
| 11
| 51
| 17.090909
| 0.74359
| 0
| 0
| 0
| 0
| 0
| 0.12766
| 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
|
6036750e70bbd7c7acef16f6c5b204c8c29c04b0
| 120
|
py
|
Python
|
pbProj/__init__.py
|
samdmarshall/pbProj
|
bda50db74778097410b1d748227282961d25b4af
|
[
"BSD-3-Clause"
] | 9
|
2015-10-31T16:50:32.000Z
|
2019-11-13T18:48:19.000Z
|
pbProj/__init__.py
|
samdmarshall/pbProj
|
bda50db74778097410b1d748227282961d25b4af
|
[
"BSD-3-Clause"
] | null | null | null |
pbProj/__init__.py
|
samdmarshall/pbProj
|
bda50db74778097410b1d748227282961d25b4af
|
[
"BSD-3-Clause"
] | null | null | null |
import sys
import os
sys.path.append(os.path.join(os.path.dirname(os.path.abspath(__file__)), 'pbPlist'))
import pbPlist
| 30
| 84
| 0.783333
| 20
| 120
| 4.5
| 0.5
| 0.2
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.058333
| 120
| 4
| 85
| 30
| 0.79646
| 0
| 0
| 0
| 0
| 0
| 0.057851
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.75
| 0
| 0.75
| 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
|
605b856f47eb434d8ae087902d7dc4def7b42cde
| 464
|
py
|
Python
|
freerider/freeridersocial/admin.py
|
Katzesama/CMPUT404-project-socialdistribution
|
e8e7f5dc89cfbabb9eebfe09e55b382eac8a0520
|
[
"Apache-2.0"
] | null | null | null |
freerider/freeridersocial/admin.py
|
Katzesama/CMPUT404-project-socialdistribution
|
e8e7f5dc89cfbabb9eebfe09e55b382eac8a0520
|
[
"Apache-2.0"
] | null | null | null |
freerider/freeridersocial/admin.py
|
Katzesama/CMPUT404-project-socialdistribution
|
e8e7f5dc89cfbabb9eebfe09e55b382eac8a0520
|
[
"Apache-2.0"
] | null | null | null |
from django.contrib import admin
from .models import *
from django.contrib.auth.models import User
from django.contrib.auth.admin import UserAdmin
from django.contrib.auth.models import User
# Register your models here.
admin.site.unregister(User)
admin.site.register(User, UserAdmin)
admin.site.register(Author)
admin.site.register(Post)
admin.site.register(Images)
admin.site.register(Comment)
admin.site.register(FriendRequest)
admin.site.register(ServerNode)
| 29
| 47
| 0.823276
| 66
| 464
| 5.787879
| 0.30303
| 0.188482
| 0.311518
| 0.164921
| 0.193717
| 0.193717
| 0.193717
| 0
| 0
| 0
| 0
| 0
| 0.075431
| 464
| 15
| 48
| 30.933333
| 0.890443
| 0.056034
| 0
| 0.153846
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.384615
| 0
| 0.384615
| 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
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
607fd490e996c080d08fe5618b32284a7fac578e
| 260
|
py
|
Python
|
Curso Python/ex026.py
|
IgorEnricoFP/Curso-em-Video
|
473f9f2450cd95243567682a7624d1e84e48b922
|
[
"MIT"
] | null | null | null |
Curso Python/ex026.py
|
IgorEnricoFP/Curso-em-Video
|
473f9f2450cd95243567682a7624d1e84e48b922
|
[
"MIT"
] | null | null | null |
Curso Python/ex026.py
|
IgorEnricoFP/Curso-em-Video
|
473f9f2450cd95243567682a7624d1e84e48b922
|
[
"MIT"
] | null | null | null |
frase = str(input('Digite uma frase: ')).strip().upper()
print(f'A letra A aparece {frase.count("A")} vezes na frase')
print(f'A primeira letra A apareceu na posição {(frase.find("A")+1)}')
print(f'A Última letra A apareceu na posição {(frase.rfind("A")+1)}')
| 52
| 70
| 0.680769
| 46
| 260
| 3.847826
| 0.478261
| 0.101695
| 0.118644
| 0.180791
| 0.316384
| 0.316384
| 0
| 0
| 0
| 0
| 0
| 0.008696
| 0.115385
| 260
| 4
| 71
| 65
| 0.76087
| 0
| 0
| 0
| 0
| 0
| 0.723077
| 0.165385
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.75
| 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
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 4
|
880d57ea0813aa368a8c70bba6abe8056929f77c
| 129
|
py
|
Python
|
server/athenian/api/models/persistentdata/__main__.py
|
athenianco/athenian-api
|
dd5556101a8c49703d6b0516e4268b9e8d8eda5b
|
[
"RSA-MD"
] | 9
|
2020-10-11T22:12:03.000Z
|
2022-02-26T02:16:45.000Z
|
server/athenian/api/models/persistentdata/__main__.py
|
athenianco/athenian-api
|
dd5556101a8c49703d6b0516e4268b9e8d8eda5b
|
[
"RSA-MD"
] | 246
|
2019-12-05T06:37:30.000Z
|
2022-03-29T10:00:07.000Z
|
server/athenian/api/models/persistentdata/__main__.py
|
athenianco/athenian-api
|
dd5556101a8c49703d6b0516e4268b9e8d8eda5b
|
[
"RSA-MD"
] | 5
|
2019-12-04T22:38:05.000Z
|
2021-02-26T00:50:04.000Z
|
import sys
from athenian.api.models import migrate
if __name__ == "__main__":
exit(migrate("persistentdata", sys.argv[1]))
| 18.428571
| 48
| 0.728682
| 17
| 129
| 5.058824
| 0.823529
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.009009
| 0.139535
| 129
| 6
| 49
| 21.5
| 0.765766
| 0
| 0
| 0
| 0
| 0
| 0.170543
| 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
|
71608e8095fc54a1b408be4940b9fb19de14fc2d
| 705
|
py
|
Python
|
analytics/migrations/0008_add_count_indexes.py
|
TylerPham2000/zulip
|
2e7aaba0dde5517b4a55cb0bd782f009be45e3ba
|
[
"Apache-2.0"
] | 17,004
|
2015-09-25T18:27:24.000Z
|
2022-03-31T22:02:32.000Z
|
analytics/migrations/0008_add_count_indexes.py
|
TylerPham2000/zulip
|
2e7aaba0dde5517b4a55cb0bd782f009be45e3ba
|
[
"Apache-2.0"
] | 20,344
|
2015-09-25T19:02:42.000Z
|
2022-03-31T23:54:40.000Z
|
analytics/migrations/0008_add_count_indexes.py
|
TylerPham2000/zulip
|
2e7aaba0dde5517b4a55cb0bd782f009be45e3ba
|
[
"Apache-2.0"
] | 7,271
|
2015-09-25T18:48:39.000Z
|
2022-03-31T21:06:11.000Z
|
# Generated by Django 1.10.5 on 2017-02-01 22:28
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
("zerver", "0050_userprofile_avatar_version"),
("analytics", "0007_remove_interval"),
]
operations = [
migrations.AlterIndexTogether(
name="realmcount",
index_together={("property", "end_time")},
),
migrations.AlterIndexTogether(
name="streamcount",
index_together={("property", "realm", "end_time")},
),
migrations.AlterIndexTogether(
name="usercount",
index_together={("property", "realm", "end_time")},
),
]
| 27.115385
| 63
| 0.58156
| 61
| 705
| 6.540984
| 0.655738
| 0.210526
| 0.240602
| 0.175439
| 0.343358
| 0.165414
| 0
| 0
| 0
| 0
| 0
| 0.047431
| 0.28227
| 705
| 25
| 64
| 28.2
| 0.741107
| 0.065248
| 0
| 0.4
| 1
| 0
| 0.234399
| 0.047184
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.05
| 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
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
71638fabdb4a47d310dcc4175b60c1cfb80895af
| 187
|
py
|
Python
|
agenda/views.py
|
Centro-Reino-da-Mata/ISFU
|
aa0d2f8da68026dfffc27ca05dabbc95fe70f971
|
[
"Apache-2.0"
] | null | null | null |
agenda/views.py
|
Centro-Reino-da-Mata/ISFU
|
aa0d2f8da68026dfffc27ca05dabbc95fe70f971
|
[
"Apache-2.0"
] | 2
|
2021-09-16T12:04:01.000Z
|
2022-03-23T17:34:21.000Z
|
agenda/views.py
|
Centro-Reino-da-Mata/ISFU
|
aa0d2f8da68026dfffc27ca05dabbc95fe70f971
|
[
"Apache-2.0"
] | null | null | null |
from django.shortcuts import render
from django.views.generic import ListView
from .models import Agenda
class AddAgenda(ListView):
model = Agenda
template_name = 'agenda.html'
| 20.777778
| 41
| 0.775401
| 24
| 187
| 6
| 0.666667
| 0.138889
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.160428
| 187
| 8
| 42
| 23.375
| 0.917197
| 0
| 0
| 0
| 0
| 0
| 0.058824
| 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
|
7172543decdbe4da1607d7c8eef8089930f63a82
| 514
|
py
|
Python
|
GPy/plotting/__init__.py
|
beckdaniel/GPy
|
37e835aa36b18c32bc500684cc10dd2b74240e1f
|
[
"BSD-3-Clause"
] | null | null | null |
GPy/plotting/__init__.py
|
beckdaniel/GPy
|
37e835aa36b18c32bc500684cc10dd2b74240e1f
|
[
"BSD-3-Clause"
] | null | null | null |
GPy/plotting/__init__.py
|
beckdaniel/GPy
|
37e835aa36b18c32bc500684cc10dd2b74240e1f
|
[
"BSD-3-Clause"
] | 1
|
2020-02-21T02:40:18.000Z
|
2020-02-21T02:40:18.000Z
|
# Copyright (c) 2014, GPy authors (see AUTHORS.txt).
# Licensed under the BSD 3-clause license (see LICENSE.txt)
try:
from . import matplot_dep
except (ImportError, NameError):
# Matplotlib not available
import warnings
warnings.warn(ImportWarning("Matplotlib not available, install newest version of Matplotlib for plotting"))
#sys.modules['matplotlib'] =
#sys.modules[__name__+'.matplot_dep'] = ImportWarning("Matplotlib not available, install newest version of Matplotlib for plotting")
| 46.727273
| 136
| 0.750973
| 63
| 514
| 6.031746
| 0.587302
| 0.102632
| 0.173684
| 0.184211
| 0.410526
| 0.410526
| 0.410526
| 0.410526
| 0.410526
| 0.410526
| 0
| 0.011494
| 0.153697
| 514
| 11
| 136
| 46.727273
| 0.862069
| 0.566148
| 0
| 0
| 0
| 0
| 0.344037
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.8
| 0
| 0.8
| 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
|
71bf0283dfa91cedb4cac5fd65f9b09b5cc8c096
| 1,253
|
py
|
Python
|
global_finprint/annotation/migrations/0065_dummy_column.py
|
GlobalFinPrint/global_finprint
|
8a91ceaaed42aaa716d8c9f27518ba673ebf351c
|
[
"Apache-2.0"
] | null | null | null |
global_finprint/annotation/migrations/0065_dummy_column.py
|
GlobalFinPrint/global_finprint
|
8a91ceaaed42aaa716d8c9f27518ba673ebf351c
|
[
"Apache-2.0"
] | 6
|
2020-06-05T18:42:32.000Z
|
2022-01-13T00:48:57.000Z
|
global_finprint/annotation/migrations/0065_dummy_column.py
|
GlobalFinPrint/global_finprint
|
8a91ceaaed42aaa716d8c9f27518ba673ebf351c
|
[
"Apache-2.0"
] | null | null | null |
# -*- coding: utf-8 -*-
# Generated by Django 1.10.7 on 2018-09-20 19:50
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('annotation', '0064_dummy_column'),
]
operations = [
migrations.AlterField(
model_name='animalobservation',
name='sex',
field=models.CharField(choices=[('U', 'Unknown'), ('M', 'Male'), ('F', 'Female')], default='U', max_length=1),
),
migrations.AlterField(
model_name='animalobservation',
name='stage',
field=models.CharField(choices=[('AD', 'Adult'), ('U', 'Unknown'), ('JU', 'Juvenile')], default='U', max_length=2),
),
migrations.AlterField(
model_name='masteranimalobservation',
name='sex',
field=models.CharField(choices=[('U', 'Unknown'), ('M', 'Male'), ('F', 'Female')], default='U', max_length=1),
),
migrations.AlterField(
model_name='masteranimalobservation',
name='stage',
field=models.CharField(choices=[('AD', 'Adult'), ('U', 'Unknown'), ('JU', 'Juvenile')], default='U', max_length=2),
),
]
| 34.805556
| 127
| 0.561053
| 124
| 1,253
| 5.548387
| 0.443548
| 0.116279
| 0.145349
| 0.168605
| 0.723837
| 0.723837
| 0.523256
| 0.523256
| 0.523256
| 0.523256
| 0
| 0.026767
| 0.254589
| 1,253
| 35
| 128
| 35.8
| 0.70985
| 0.05427
| 0
| 0.714286
| 1
| 0
| 0.183587
| 0.038917
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.071429
| 0
| 0.178571
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
71c0ee572f25caee8133c67542b9623e1387186c
| 145
|
py
|
Python
|
src/codekata/supermarket_pricing.py
|
mrshridhara/python_trials
|
47f03833805d8016bcd70221111ce04297737d9a
|
[
"MIT"
] | 1
|
2021-10-30T13:12:48.000Z
|
2021-10-30T13:12:48.000Z
|
src/codekata/supermarket_pricing.py
|
mrshridhara/python_trials
|
47f03833805d8016bcd70221111ce04297737d9a
|
[
"MIT"
] | null | null | null |
src/codekata/supermarket_pricing.py
|
mrshridhara/python_trials
|
47f03833805d8016bcd70221111ce04297737d9a
|
[
"MIT"
] | null | null | null |
"""
http://codekata.com/kata/kata01-supermarket-pricing/
"""
def run():
raise NotImplementedError("This function is not yet implemented.")
| 18.125
| 70
| 0.717241
| 17
| 145
| 6.117647
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.015748
| 0.124138
| 145
| 7
| 71
| 20.714286
| 0.80315
| 0.358621
| 0
| 0
| 0
| 0
| 0.435294
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| true
| 0
| 0
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
71e0bee9101db7464fd9aa387783ba56f1e27e69
| 64
|
py
|
Python
|
cacbarcode/__init__.py
|
mgallig/smartcard-signin
|
1928041442e5155894e56d02cfbbf6c5ba17245d
|
[
"MIT"
] | 1
|
2019-07-24T13:30:07.000Z
|
2019-07-24T13:30:07.000Z
|
cacbarcode/__init__.py
|
mgallig/smartcard-signin
|
1928041442e5155894e56d02cfbbf6c5ba17245d
|
[
"MIT"
] | 2
|
2019-07-11T03:26:35.000Z
|
2019-07-12T02:58:34.000Z
|
cacbarcode/__init__.py
|
mgallig/smartcard-signin
|
1928041442e5155894e56d02cfbbf6c5ba17245d
|
[
"MIT"
] | 2
|
2019-07-10T20:39:34.000Z
|
2019-07-11T00:26:23.000Z
|
from .cacbarcode import CACBarcode, PDF417Barcode, Code39Barcode
| 64
| 64
| 0.875
| 6
| 64
| 9.333333
| 0.833333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.084746
| 0.078125
| 64
| 1
| 64
| 64
| 0.864407
| 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
|
e0962241f92628b0e7ff209d061b15b154ad729f
| 858
|
py
|
Python
|
src/ash/core/ashException.py
|
Rolando-Zarate/ash
|
6672ec5d2931d39689e712fa476bbadb8733a739
|
[
"MIT"
] | 40
|
2020-07-24T06:36:25.000Z
|
2022-03-29T11:25:37.000Z
|
src/ash/core/ashException.py
|
Rolando-Zarate/ash
|
6672ec5d2931d39689e712fa476bbadb8733a739
|
[
"MIT"
] | 12
|
2020-12-22T02:56:05.000Z
|
2022-02-18T17:59:16.000Z
|
src/ash/core/ashException.py
|
Rolando-Zarate/ash
|
6672ec5d2931d39689e712fa476bbadb8733a739
|
[
"MIT"
] | 3
|
2021-02-12T11:49:39.000Z
|
2021-07-23T21:17:26.000Z
|
# ---------------------------------------------------------------------------------------------
# Copyright (c) Akash Nag. All rights reserved.
# Licensed under the MIT License. See LICENSE.md in the project root for license information.
# ---------------------------------------------------------------------------------------------
# This module implements the custom exception class
from ash.core.logger import *
class AshException(Exception):
def __init__(self, error_msg):
super().__init__(error_msg)
self.error_msg = error_msg
log_error(self.error_msg)
def __str__(self):
return self.error_msg
class AshFileReadAbortedException(Exception):
def __init__(self, filename):
self.error_msg = f"Error in reading file: {filename}"
super().__init__(self.error_msg)
log_error(self.error_msg)
def __str__(self):
return self.error_msg
| 31.777778
| 95
| 0.594406
| 96
| 858
| 4.9375
| 0.46875
| 0.168776
| 0.202532
| 0.084388
| 0.236287
| 0.236287
| 0.236287
| 0.236287
| 0.236287
| 0.236287
| 0
| 0
| 0.115385
| 858
| 26
| 96
| 33
| 0.624506
| 0.439394
| 0
| 0.4
| 0
| 0
| 0.069474
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.266667
| false
| 0
| 0.066667
| 0.133333
| 0.6
| 0
| 0
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
e0a0ca59f6984a59ce12991467c583828cbdc21e
| 31,809
|
py
|
Python
|
map_label_tool/py_proto/modules/perception/camera/lib/obstacle/tracker/omt/omt_pb2.py
|
freeclouds/OpenHDMap
|
b61c159fbdf4f50ae1d1650421596b28863f39be
|
[
"Apache-2.0"
] | null | null | null |
map_label_tool/py_proto/modules/perception/camera/lib/obstacle/tracker/omt/omt_pb2.py
|
freeclouds/OpenHDMap
|
b61c159fbdf4f50ae1d1650421596b28863f39be
|
[
"Apache-2.0"
] | null | null | null |
map_label_tool/py_proto/modules/perception/camera/lib/obstacle/tracker/omt/omt_pb2.py
|
freeclouds/OpenHDMap
|
b61c159fbdf4f50ae1d1650421596b28863f39be
|
[
"Apache-2.0"
] | 1
|
2021-05-26T08:42:11.000Z
|
2021-05-26T08:42:11.000Z
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: modules/perception/camera/lib/obstacle/tracker/omt/omt.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_database
from google.protobuf import descriptor_pb2
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
DESCRIPTOR = _descriptor.FileDescriptor(
name='modules/perception/camera/lib/obstacle/tracker/omt/omt.proto',
package='apollo.perception.camera.omt',
syntax='proto2',
serialized_pb=_b('\n<modules/perception/camera/lib/obstacle/tracker/omt/omt.proto\x12\x1c\x61pollo.perception.camera.omt\"X\n\x0bKalmanParam\x12\x15\n\rinit_variance\x18\x01 \x01(\x02\x12\x18\n\x10process_variance\x18\x02 \x01(\x02\x12\x18\n\x10measure_variance\x18\x03 \x01(\x02\"\x88\t\n\x0bTargetParam\x12\x1d\n\x12velocity_threshold\x18\x01 \x01(\x02:\x01\x32\x12 \n\x15velocity_output_delay\x18\x02 \x01(\x05:\x01\x32\x12?\n\x0cworld_center\x18\x03 \x01(\x0b\x32).apollo.perception.camera.omt.KalmanParam\x12?\n\x0cimage_center\x18\x04 \x01(\x0b\x32).apollo.perception.camera.omt.KalmanParam\x12\x1c\n\x14image_wh_update_rate\x18\x05 \x01(\x02\x12\x1d\n\x11world_lhw_history\x18\x06 \x01(\x05:\x02\x31\x35\x12\x1e\n\x11height_diff_ratio\x18\x07 \x01(\x02:\x03\x30.1\x12\x1f\n\x13world_state_history\x18\x08 \x01(\x05:\x02\x33\x30\x12.\n#min_cached_world_state_history_size\x18\t \x01(\x05:\x01\x35\x12$\n\x18min_cached_velocity_size\x18\n \x01(\x05:\x02\x31\x30\x12$\n\x18min_cached_position_size\x18\x0b \x01(\x05:\x02\x32\x35\x12(\n\x1d\x63\x61lc_avg_position_window_size\x18\x0c \x01(\x05:\x01\x37\x12#\n\x16static_speed_threshold\x18\r \x01(\x02:\x03\x30.5\x12\'\n\x1astatic_speed_threshold_ped\x18\x0e \x01(\x02:\x03\x30.3\x12\x1f\n\x14min_moving_avg_speed\x18\x0f \x01(\x02:\x01\x31\x12%\n\x18min_moving_avg_speed_ped\x18\x10 \x01(\x02:\x03\x30.5\x12!\n\x16\x61\x62normal_acc_threshold\x18\x11 \x01(\x02:\x01\x36\x12%\n\x1a\x61\x62normal_acc_threshold_ped\x18\x12 \x01(\x02:\x01\x33\x12\x39\n)abnormal_velocity_heading_angle_threshold\x18\x13 \x01(\x02:\x06\x30.7854\x12 \n\x11\x63lapping_velocity\x18\x14 \x01(\x08:\x05\x66\x61lse\x12(\n\x1cworld_mean_velocity_duration\x18\x15 \x01(\x05:\x02\x31\x30\x12\x17\n\x0ctracked_life\x18\x16 \x01(\x05:\x01\x33\x12\x1c\n\x0ftype_filter_var\x18\x17 \x01(\x02:\x03\x30.3\x12!\n\x14large_velocity_ratio\x18\x18 \x01(\x02:\x03\x32.5\x12%\n\x18too_large_velocity_ratio\x18\x19 \x01(\x02:\x03\x31.5\x12\x1e\n\x12mean_filter_window\x18\x1a \x01(\x05:\x02\x31\x30\x12#\n\x16\x64irection_filter_ratio\x18\x1b \x01(\x02:\x03\x30.7\x12$\n\x16\x64isplacement_theta_var\x18\x1c \x01(\x02:\x04\x30.25\x12\x1f\n\x12velocity_theta_var\x18\x1d \x01(\x02:\x03\x30.5\x12\x1e\n\x13stable_moving_speed\x18\x1e \x01(\x02:\x01\x32\"\x96\x01\n\x0eReferenceParam\x12\x11\n\x06margin\x18\x01 \x01(\x05:\x01\x32\x12\x1c\n\x10min_allow_height\x18\x02 \x01(\x05:\x02\x35\x30\x12\x18\n\narea_decay\x18\x03 \x01(\x02:\x04\x30.99\x12\x19\n\rdown_sampling\x18\x04 \x01(\x05:\x02\x34\x30\x12\x1e\n\x11height_diff_ratio\x18\x05 \x01(\x02:\x03\x30.1\"r\n\x0bWeightParam\x12\x15\n\nappearance\x18\x01 \x01(\x02:\x01\x30\x12\x11\n\x06motion\x18\x02 \x01(\x02:\x01\x30\x12\x10\n\x05shape\x18\x03 \x01(\x02:\x01\x30\x12\x13\n\x08tracklet\x18\x04 \x01(\x02:\x01\x30\x12\x12\n\x07overlap\x18\x05 \x01(\x02:\x01\x30\"\x97\x05\n\x08OmtParam\x12\x19\n\x0eimg_capability\x18\x01 \x01(\x05:\x01\x37\x12\x13\n\x08lost_age\x18\x02 \x01(\x05:\x01\x32\x12\x16\n\x0breserve_age\x18\x03 \x01(\x05:\x01\x33\x12\x45\n\x12weight_same_camera\x18\x04 \x01(\x0b\x32).apollo.perception.camera.omt.WeightParam\x12\x45\n\x12weight_diff_camera\x18\x05 \x01(\x0b\x32).apollo.perception.camera.omt.WeightParam\x12\x12\n\x06\x62order\x18\t \x01(\x02:\x02\x33\x30\x12\x1b\n\rtarget_thresh\x18\n \x01(\x02:\x04\x30.65\x12\x1b\n\x0c\x63orrect_type\x18\x0b \x01(\x08:\x05\x66\x61lse\x12?\n\x0ctarget_param\x18\x0c \x01(\x0b\x32).apollo.perception.camera.omt.TargetParam\x12!\n\x15min_init_height_ratio\x18\r \x01(\x02:\x02\x31\x37\x12)\n\x1ctarget_combine_iou_threshold\x18\x0e \x01(\x02:\x03\x30.5\x12\"\n\x14\x66usion_target_thresh\x18\x0f \x01(\x02:\x04\x30.45\x12\x1e\n\x12image_displacement\x18\x10 \x01(\x02:\x02\x35\x30\x12\x1e\n\x11\x61\x62normal_movement\x18\x11 \x01(\x02:\x03\x30.3\x12\x19\n\x0bsame_ts_eps\x18\x12 \x01(\x01:\x04\x30.05\x12?\n\treference\x18\x13 \x01(\x0b\x32,.apollo.perception.camera.omt.ReferenceParam\x12\x18\n\x10type_change_cost\x18\x14 \x01(\t')
)
_KALMANPARAM = _descriptor.Descriptor(
name='KalmanParam',
full_name='apollo.perception.camera.omt.KalmanParam',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='init_variance', full_name='apollo.perception.camera.omt.KalmanParam.init_variance', index=0,
number=1, type=2, cpp_type=6, label=1,
has_default_value=False, default_value=float(0),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='process_variance', full_name='apollo.perception.camera.omt.KalmanParam.process_variance', index=1,
number=2, type=2, cpp_type=6, label=1,
has_default_value=False, default_value=float(0),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='measure_variance', full_name='apollo.perception.camera.omt.KalmanParam.measure_variance', index=2,
number=3, type=2, cpp_type=6, label=1,
has_default_value=False, default_value=float(0),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
syntax='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=94,
serialized_end=182,
)
_TARGETPARAM = _descriptor.Descriptor(
name='TargetParam',
full_name='apollo.perception.camera.omt.TargetParam',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='velocity_threshold', full_name='apollo.perception.camera.omt.TargetParam.velocity_threshold', index=0,
number=1, type=2, cpp_type=6, label=1,
has_default_value=True, default_value=float(2),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='velocity_output_delay', full_name='apollo.perception.camera.omt.TargetParam.velocity_output_delay', index=1,
number=2, type=5, cpp_type=1, label=1,
has_default_value=True, default_value=2,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='world_center', full_name='apollo.perception.camera.omt.TargetParam.world_center', index=2,
number=3, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='image_center', full_name='apollo.perception.camera.omt.TargetParam.image_center', index=3,
number=4, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='image_wh_update_rate', full_name='apollo.perception.camera.omt.TargetParam.image_wh_update_rate', index=4,
number=5, type=2, cpp_type=6, label=1,
has_default_value=False, default_value=float(0),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='world_lhw_history', full_name='apollo.perception.camera.omt.TargetParam.world_lhw_history', index=5,
number=6, type=5, cpp_type=1, label=1,
has_default_value=True, default_value=15,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='height_diff_ratio', full_name='apollo.perception.camera.omt.TargetParam.height_diff_ratio', index=6,
number=7, type=2, cpp_type=6, label=1,
has_default_value=True, default_value=float(0.1),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='world_state_history', full_name='apollo.perception.camera.omt.TargetParam.world_state_history', index=7,
number=8, type=5, cpp_type=1, label=1,
has_default_value=True, default_value=30,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='min_cached_world_state_history_size', full_name='apollo.perception.camera.omt.TargetParam.min_cached_world_state_history_size', index=8,
number=9, type=5, cpp_type=1, label=1,
has_default_value=True, default_value=5,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='min_cached_velocity_size', full_name='apollo.perception.camera.omt.TargetParam.min_cached_velocity_size', index=9,
number=10, type=5, cpp_type=1, label=1,
has_default_value=True, default_value=10,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='min_cached_position_size', full_name='apollo.perception.camera.omt.TargetParam.min_cached_position_size', index=10,
number=11, type=5, cpp_type=1, label=1,
has_default_value=True, default_value=25,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='calc_avg_position_window_size', full_name='apollo.perception.camera.omt.TargetParam.calc_avg_position_window_size', index=11,
number=12, type=5, cpp_type=1, label=1,
has_default_value=True, default_value=7,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='static_speed_threshold', full_name='apollo.perception.camera.omt.TargetParam.static_speed_threshold', index=12,
number=13, type=2, cpp_type=6, label=1,
has_default_value=True, default_value=float(0.5),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='static_speed_threshold_ped', full_name='apollo.perception.camera.omt.TargetParam.static_speed_threshold_ped', index=13,
number=14, type=2, cpp_type=6, label=1,
has_default_value=True, default_value=float(0.3),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='min_moving_avg_speed', full_name='apollo.perception.camera.omt.TargetParam.min_moving_avg_speed', index=14,
number=15, type=2, cpp_type=6, label=1,
has_default_value=True, default_value=float(1),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='min_moving_avg_speed_ped', full_name='apollo.perception.camera.omt.TargetParam.min_moving_avg_speed_ped', index=15,
number=16, type=2, cpp_type=6, label=1,
has_default_value=True, default_value=float(0.5),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='abnormal_acc_threshold', full_name='apollo.perception.camera.omt.TargetParam.abnormal_acc_threshold', index=16,
number=17, type=2, cpp_type=6, label=1,
has_default_value=True, default_value=float(6),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='abnormal_acc_threshold_ped', full_name='apollo.perception.camera.omt.TargetParam.abnormal_acc_threshold_ped', index=17,
number=18, type=2, cpp_type=6, label=1,
has_default_value=True, default_value=float(3),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='abnormal_velocity_heading_angle_threshold', full_name='apollo.perception.camera.omt.TargetParam.abnormal_velocity_heading_angle_threshold', index=18,
number=19, type=2, cpp_type=6, label=1,
has_default_value=True, default_value=float(0.7854),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='clapping_velocity', full_name='apollo.perception.camera.omt.TargetParam.clapping_velocity', index=19,
number=20, type=8, cpp_type=7, label=1,
has_default_value=True, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='world_mean_velocity_duration', full_name='apollo.perception.camera.omt.TargetParam.world_mean_velocity_duration', index=20,
number=21, type=5, cpp_type=1, label=1,
has_default_value=True, default_value=10,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='tracked_life', full_name='apollo.perception.camera.omt.TargetParam.tracked_life', index=21,
number=22, type=5, cpp_type=1, label=1,
has_default_value=True, default_value=3,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='type_filter_var', full_name='apollo.perception.camera.omt.TargetParam.type_filter_var', index=22,
number=23, type=2, cpp_type=6, label=1,
has_default_value=True, default_value=float(0.3),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='large_velocity_ratio', full_name='apollo.perception.camera.omt.TargetParam.large_velocity_ratio', index=23,
number=24, type=2, cpp_type=6, label=1,
has_default_value=True, default_value=float(2.5),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='too_large_velocity_ratio', full_name='apollo.perception.camera.omt.TargetParam.too_large_velocity_ratio', index=24,
number=25, type=2, cpp_type=6, label=1,
has_default_value=True, default_value=float(1.5),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='mean_filter_window', full_name='apollo.perception.camera.omt.TargetParam.mean_filter_window', index=25,
number=26, type=5, cpp_type=1, label=1,
has_default_value=True, default_value=10,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='direction_filter_ratio', full_name='apollo.perception.camera.omt.TargetParam.direction_filter_ratio', index=26,
number=27, type=2, cpp_type=6, label=1,
has_default_value=True, default_value=float(0.7),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='displacement_theta_var', full_name='apollo.perception.camera.omt.TargetParam.displacement_theta_var', index=27,
number=28, type=2, cpp_type=6, label=1,
has_default_value=True, default_value=float(0.25),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='velocity_theta_var', full_name='apollo.perception.camera.omt.TargetParam.velocity_theta_var', index=28,
number=29, type=2, cpp_type=6, label=1,
has_default_value=True, default_value=float(0.5),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='stable_moving_speed', full_name='apollo.perception.camera.omt.TargetParam.stable_moving_speed', index=29,
number=30, type=2, cpp_type=6, label=1,
has_default_value=True, default_value=float(2),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
syntax='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=185,
serialized_end=1345,
)
_REFERENCEPARAM = _descriptor.Descriptor(
name='ReferenceParam',
full_name='apollo.perception.camera.omt.ReferenceParam',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='margin', full_name='apollo.perception.camera.omt.ReferenceParam.margin', index=0,
number=1, type=5, cpp_type=1, label=1,
has_default_value=True, default_value=2,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='min_allow_height', full_name='apollo.perception.camera.omt.ReferenceParam.min_allow_height', index=1,
number=2, type=5, cpp_type=1, label=1,
has_default_value=True, default_value=50,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='area_decay', full_name='apollo.perception.camera.omt.ReferenceParam.area_decay', index=2,
number=3, type=2, cpp_type=6, label=1,
has_default_value=True, default_value=float(0.99),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='down_sampling', full_name='apollo.perception.camera.omt.ReferenceParam.down_sampling', index=3,
number=4, type=5, cpp_type=1, label=1,
has_default_value=True, default_value=40,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='height_diff_ratio', full_name='apollo.perception.camera.omt.ReferenceParam.height_diff_ratio', index=4,
number=5, type=2, cpp_type=6, label=1,
has_default_value=True, default_value=float(0.1),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
syntax='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=1348,
serialized_end=1498,
)
_WEIGHTPARAM = _descriptor.Descriptor(
name='WeightParam',
full_name='apollo.perception.camera.omt.WeightParam',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='appearance', full_name='apollo.perception.camera.omt.WeightParam.appearance', index=0,
number=1, type=2, cpp_type=6, label=1,
has_default_value=True, default_value=float(0),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='motion', full_name='apollo.perception.camera.omt.WeightParam.motion', index=1,
number=2, type=2, cpp_type=6, label=1,
has_default_value=True, default_value=float(0),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='shape', full_name='apollo.perception.camera.omt.WeightParam.shape', index=2,
number=3, type=2, cpp_type=6, label=1,
has_default_value=True, default_value=float(0),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='tracklet', full_name='apollo.perception.camera.omt.WeightParam.tracklet', index=3,
number=4, type=2, cpp_type=6, label=1,
has_default_value=True, default_value=float(0),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='overlap', full_name='apollo.perception.camera.omt.WeightParam.overlap', index=4,
number=5, type=2, cpp_type=6, label=1,
has_default_value=True, default_value=float(0),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
syntax='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=1500,
serialized_end=1614,
)
_OMTPARAM = _descriptor.Descriptor(
name='OmtParam',
full_name='apollo.perception.camera.omt.OmtParam',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='img_capability', full_name='apollo.perception.camera.omt.OmtParam.img_capability', index=0,
number=1, type=5, cpp_type=1, label=1,
has_default_value=True, default_value=7,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='lost_age', full_name='apollo.perception.camera.omt.OmtParam.lost_age', index=1,
number=2, type=5, cpp_type=1, label=1,
has_default_value=True, default_value=2,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='reserve_age', full_name='apollo.perception.camera.omt.OmtParam.reserve_age', index=2,
number=3, type=5, cpp_type=1, label=1,
has_default_value=True, default_value=3,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='weight_same_camera', full_name='apollo.perception.camera.omt.OmtParam.weight_same_camera', index=3,
number=4, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='weight_diff_camera', full_name='apollo.perception.camera.omt.OmtParam.weight_diff_camera', index=4,
number=5, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='border', full_name='apollo.perception.camera.omt.OmtParam.border', index=5,
number=9, type=2, cpp_type=6, label=1,
has_default_value=True, default_value=float(30),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='target_thresh', full_name='apollo.perception.camera.omt.OmtParam.target_thresh', index=6,
number=10, type=2, cpp_type=6, label=1,
has_default_value=True, default_value=float(0.65),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='correct_type', full_name='apollo.perception.camera.omt.OmtParam.correct_type', index=7,
number=11, type=8, cpp_type=7, label=1,
has_default_value=True, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='target_param', full_name='apollo.perception.camera.omt.OmtParam.target_param', index=8,
number=12, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='min_init_height_ratio', full_name='apollo.perception.camera.omt.OmtParam.min_init_height_ratio', index=9,
number=13, type=2, cpp_type=6, label=1,
has_default_value=True, default_value=float(17),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='target_combine_iou_threshold', full_name='apollo.perception.camera.omt.OmtParam.target_combine_iou_threshold', index=10,
number=14, type=2, cpp_type=6, label=1,
has_default_value=True, default_value=float(0.5),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='fusion_target_thresh', full_name='apollo.perception.camera.omt.OmtParam.fusion_target_thresh', index=11,
number=15, type=2, cpp_type=6, label=1,
has_default_value=True, default_value=float(0.45),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='image_displacement', full_name='apollo.perception.camera.omt.OmtParam.image_displacement', index=12,
number=16, type=2, cpp_type=6, label=1,
has_default_value=True, default_value=float(50),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='abnormal_movement', full_name='apollo.perception.camera.omt.OmtParam.abnormal_movement', index=13,
number=17, type=2, cpp_type=6, label=1,
has_default_value=True, default_value=float(0.3),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='same_ts_eps', full_name='apollo.perception.camera.omt.OmtParam.same_ts_eps', index=14,
number=18, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(0.05),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='reference', full_name='apollo.perception.camera.omt.OmtParam.reference', index=15,
number=19, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='type_change_cost', full_name='apollo.perception.camera.omt.OmtParam.type_change_cost', index=16,
number=20, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
syntax='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=1617,
serialized_end=2280,
)
_TARGETPARAM.fields_by_name['world_center'].message_type = _KALMANPARAM
_TARGETPARAM.fields_by_name['image_center'].message_type = _KALMANPARAM
_OMTPARAM.fields_by_name['weight_same_camera'].message_type = _WEIGHTPARAM
_OMTPARAM.fields_by_name['weight_diff_camera'].message_type = _WEIGHTPARAM
_OMTPARAM.fields_by_name['target_param'].message_type = _TARGETPARAM
_OMTPARAM.fields_by_name['reference'].message_type = _REFERENCEPARAM
DESCRIPTOR.message_types_by_name['KalmanParam'] = _KALMANPARAM
DESCRIPTOR.message_types_by_name['TargetParam'] = _TARGETPARAM
DESCRIPTOR.message_types_by_name['ReferenceParam'] = _REFERENCEPARAM
DESCRIPTOR.message_types_by_name['WeightParam'] = _WEIGHTPARAM
DESCRIPTOR.message_types_by_name['OmtParam'] = _OMTPARAM
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
KalmanParam = _reflection.GeneratedProtocolMessageType('KalmanParam', (_message.Message,), dict(
DESCRIPTOR = _KALMANPARAM,
__module__ = 'modules.perception.camera.lib.obstacle.tracker.omt.omt_pb2'
# @@protoc_insertion_point(class_scope:apollo.perception.camera.omt.KalmanParam)
))
_sym_db.RegisterMessage(KalmanParam)
TargetParam = _reflection.GeneratedProtocolMessageType('TargetParam', (_message.Message,), dict(
DESCRIPTOR = _TARGETPARAM,
__module__ = 'modules.perception.camera.lib.obstacle.tracker.omt.omt_pb2'
# @@protoc_insertion_point(class_scope:apollo.perception.camera.omt.TargetParam)
))
_sym_db.RegisterMessage(TargetParam)
ReferenceParam = _reflection.GeneratedProtocolMessageType('ReferenceParam', (_message.Message,), dict(
DESCRIPTOR = _REFERENCEPARAM,
__module__ = 'modules.perception.camera.lib.obstacle.tracker.omt.omt_pb2'
# @@protoc_insertion_point(class_scope:apollo.perception.camera.omt.ReferenceParam)
))
_sym_db.RegisterMessage(ReferenceParam)
WeightParam = _reflection.GeneratedProtocolMessageType('WeightParam', (_message.Message,), dict(
DESCRIPTOR = _WEIGHTPARAM,
__module__ = 'modules.perception.camera.lib.obstacle.tracker.omt.omt_pb2'
# @@protoc_insertion_point(class_scope:apollo.perception.camera.omt.WeightParam)
))
_sym_db.RegisterMessage(WeightParam)
OmtParam = _reflection.GeneratedProtocolMessageType('OmtParam', (_message.Message,), dict(
DESCRIPTOR = _OMTPARAM,
__module__ = 'modules.perception.camera.lib.obstacle.tracker.omt.omt_pb2'
# @@protoc_insertion_point(class_scope:apollo.perception.camera.omt.OmtParam)
))
_sym_db.RegisterMessage(OmtParam)
# @@protoc_insertion_point(module_scope)
| 51.554295
| 3,967
| 0.746455
| 4,435
| 31,809
| 5.089741
| 0.074408
| 0.065565
| 0.065654
| 0.085279
| 0.766225
| 0.735923
| 0.725025
| 0.660524
| 0.615603
| 0.577991
| 0
| 0.05518
| 0.125468
| 31,809
| 616
| 3,968
| 51.637987
| 0.756273
| 0.018643
| 0
| 0.683305
| 1
| 0.005164
| 0.24319
| 0.213517
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.010327
| 0
| 0.010327
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
460313ea7617ccef361a73b296544463d3919eca
| 71
|
py
|
Python
|
app/main/__init__.py
|
NickPTaylor/imbtools
|
2874c0cdaea311c3559a3634c9f383d81fde8a06
|
[
"MIT"
] | null | null | null |
app/main/__init__.py
|
NickPTaylor/imbtools
|
2874c0cdaea311c3559a3634c9f383d81fde8a06
|
[
"MIT"
] | 8
|
2020-03-24T16:40:22.000Z
|
2022-03-11T23:42:36.000Z
|
app/main/__init__.py
|
NickPTaylor/imbtools
|
2874c0cdaea311c3559a3634c9f383d81fde8a06
|
[
"MIT"
] | null | null | null |
"""
Blueprint for main content.
"""
from .routes import BP as MAIN_BP
| 11.833333
| 33
| 0.704225
| 11
| 71
| 4.454545
| 0.818182
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.183099
| 71
| 5
| 34
| 14.2
| 0.844828
| 0.380282
| 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
|
460c2c74c426a5b31c563388767c31e670968fe7
| 166
|
py
|
Python
|
Bitlock manager/Payload.py
|
jsangli3r/Bitlock
|
8101a0e4446eec5d7bb2711bcf915a68c09e4191
|
[
"MIT"
] | null | null | null |
Bitlock manager/Payload.py
|
jsangli3r/Bitlock
|
8101a0e4446eec5d7bb2711bcf915a68c09e4191
|
[
"MIT"
] | null | null | null |
Bitlock manager/Payload.py
|
jsangli3r/Bitlock
|
8101a0e4446eec5d7bb2711bcf915a68c09e4191
|
[
"MIT"
] | null | null | null |
class Payload:
def __init__(self, website, username, password):
self.website = website
self.username = username
self.password = password
| 23.714286
| 52
| 0.650602
| 17
| 166
| 6.117647
| 0.470588
| 0.211538
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.271084
| 166
| 6
| 53
| 27.666667
| 0.859504
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.2
| false
| 0.4
| 0
| 0
| 0.4
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 4
|
1cc3a8bdfde4d303fa57b73436b3629dc0fb17f4
| 2,460
|
py
|
Python
|
tests/boardfarm_plugins/boardfarm_prplmesh/devices/prplmesh_base.py
|
SWRT-dev/easymesh
|
12d902edde77599e074c0535f7256499b08f7494
|
[
"BSD-3-Clause",
"BSD-2-Clause-Patent",
"MIT"
] | null | null | null |
tests/boardfarm_plugins/boardfarm_prplmesh/devices/prplmesh_base.py
|
SWRT-dev/easymesh
|
12d902edde77599e074c0535f7256499b08f7494
|
[
"BSD-3-Clause",
"BSD-2-Clause-Patent",
"MIT"
] | null | null | null |
tests/boardfarm_plugins/boardfarm_prplmesh/devices/prplmesh_base.py
|
SWRT-dev/easymesh
|
12d902edde77599e074c0535f7256499b08f7494
|
[
"BSD-3-Clause",
"BSD-2-Clause-Patent",
"MIT"
] | null | null | null |
# SPDX-License-Identifier: BSD-2-Clause-Patent
# SPDX-FileCopyrightText: 2020 the prplMesh contributors (see AUTHORS.md)
# This code is subject to the terms of the BSD+Patent license.
# See LICENSE file for more details.
import pexpect
from typing import Dict
from boardfarm.devices import linux
from environment import ALEntity
class CommandError(Exception):
"""Raised on failed execution"""
pass
class PrplMeshBase(linux.LinuxDevice):
"""PrplMesh abstract device."""
def _run_shell_cmd(self, cmd: str = "", args: list = None, timeout: int = 30,
env: Dict[str, str] = None):
"""Wrapper that executes command with specified args on host machine and logs output."""
args = args or []
res, exitstatus = pexpect.run(cmd, args=args, timeout=timeout, encoding="utf-8",
withexitstatus=1, env=env)
entry = " ".join((cmd, " ".join(args)))
if exitstatus != 0:
raise CommandError("Error executing {}:\n{}".format(entry, res))
self.log_calls += entry
self.log += "$ " + entry + "\r\n" + res
def check_status(self):
"""Method required by boardfarm.
It is used by boardfarm to indicate that spawned device instance is ready for test
and also after test - to insure that device still operational.
Currently always returns True.
"""
# TODO: enable actual check
# entity = self.get_active_entity()
# entity.ucc_socket.cmd_reply("device_get_info")
return True
def close(self):
"""Method required by boardfarm.
Purpose is to close connection to device's consoles.
"""
self.copy_logs()
def isalive(self):
"""Method required by boardfarm.
States that device is operational and its consoles are accessible.
"""
pass
def touch(self):
"""Method required by boardfarm.
Purpose is to keep consoles active, so they don't disconnect for long running activities.
"""
pass
def get_active_entity(self) -> ALEntity:
"""Returns the active ALEntityDocker instance based on the
class role so the entity call can be abstracted"""
if self.role == "controller":
return self.controller_entity
return self.agent_entity
def copy_logs(self):
"""Copy logs from the device"""
pass
| 29.285714
| 97
| 0.624797
| 301
| 2,460
| 5.049834
| 0.511628
| 0.036184
| 0.047368
| 0.052632
| 0.090789
| 0.052632
| 0.052632
| 0.052632
| 0
| 0
| 0
| 0.005666
| 0.28252
| 2,460
| 83
| 98
| 29.638554
| 0.855524
| 0.446341
| 0
| 0.129032
| 0
| 0
| 0.037767
| 0
| 0
| 0
| 0
| 0.012048
| 0
| 1
| 0.225806
| false
| 0.129032
| 0.129032
| 0
| 0.516129
| 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
| 1
| 0
| 0
| 1
| 0
|
0
| 4
|
1cd0cdeac91ff9089f9855295cd22aaa3b411ea3
| 87
|
py
|
Python
|
egyszer/parsers.py
|
fogasl/egyszer
|
e82a5f92afe10b79b3b106dcb79a3ce2a67d09f2
|
[
"BSD-3-Clause"
] | null | null | null |
egyszer/parsers.py
|
fogasl/egyszer
|
e82a5f92afe10b79b3b106dcb79a3ce2a67d09f2
|
[
"BSD-3-Clause"
] | null | null | null |
egyszer/parsers.py
|
fogasl/egyszer
|
e82a5f92afe10b79b3b106dcb79a3ce2a67d09f2
|
[
"BSD-3-Clause"
] | null | null | null |
"""Metadata and other parsers.
"""
class Parser:
def __init__(self):
pass
| 12.428571
| 30
| 0.609195
| 10
| 87
| 4.9
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.264368
| 87
| 6
| 31
| 14.5
| 0.765625
| 0.310345
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0.333333
| 0
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 4
|
1ce15fe9975622b3f955ee2783bad087279f93ee
| 145
|
py
|
Python
|
utils/is-sorted.py
|
9andresc/dena
|
9315905c7e597344fa2c33773bf875cdaf38021f
|
[
"MIT"
] | null | null | null |
utils/is-sorted.py
|
9andresc/dena
|
9315905c7e597344fa2c33773bf875cdaf38021f
|
[
"MIT"
] | 18
|
2019-01-24T21:19:11.000Z
|
2019-02-08T19:25:49.000Z
|
utils/is-sorted.py
|
9andresc/dsna
|
9315905c7e597344fa2c33773bf875cdaf38021f
|
[
"MIT"
] | null | null | null |
def is_sorted(items):
"""Checks whether the list is sorted or not"""
return all(items[i] <= items[i + 1] for i in range(len(items) - 1))
| 36.25
| 71
| 0.634483
| 26
| 145
| 3.5
| 0.692308
| 0.175824
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.017391
| 0.206897
| 145
| 3
| 72
| 48.333333
| 0.773913
| 0.275862
| 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
|
1ceeec1ef0eb82342141d80b583775dbefad90d0
| 127
|
py
|
Python
|
django_odesk/auth/__init__.py
|
reputation/django-odesk
|
1353ead0b0f37ba530787fdd46ac8e937fde4226
|
[
"BSD-3-Clause"
] | null | null | null |
django_odesk/auth/__init__.py
|
reputation/django-odesk
|
1353ead0b0f37ba530787fdd46ac8e937fde4226
|
[
"BSD-3-Clause"
] | 1
|
2020-02-21T16:05:04.000Z
|
2020-02-21T16:05:04.000Z
|
django_odesk/auth/__init__.py
|
reputation/django-odesk
|
1353ead0b0f37ba530787fdd46ac8e937fde4226
|
[
"BSD-3-Clause"
] | 1
|
2019-09-01T09:25:16.000Z
|
2019-09-01T09:25:16.000Z
|
ODESK_REDIRECT_SESSION_KEY = '_odesk_redirect_url'
ODESK_TOKEN_SESSION_KEY = '_odesk_api_token'
ENCRYPTION_KEY_NAME = 'oekey'
| 25.4
| 50
| 0.850394
| 18
| 127
| 5.222222
| 0.555556
| 0.276596
| 0.319149
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.07874
| 127
| 4
| 51
| 31.75
| 0.803419
| 0
| 0
| 0
| 0
| 0
| 0.314961
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
e82288423832809114e8f1e7262eb4bc3edfe598
| 134
|
py
|
Python
|
tmake.py
|
tomken/tmake
|
ee4f2c709a3e021fb04427bd7ae72f99d2714176
|
[
"MIT"
] | 2
|
2020-01-11T04:26:27.000Z
|
2022-01-10T06:35:22.000Z
|
tmake.py
|
tomken/tmake
|
ee4f2c709a3e021fb04427bd7ae72f99d2714176
|
[
"MIT"
] | null | null | null |
tmake.py
|
tomken/tmake
|
ee4f2c709a3e021fb04427bd7ae72f99d2714176
|
[
"MIT"
] | 1
|
2020-04-25T01:06:39.000Z
|
2020-04-25T01:06:39.000Z
|
#!/usr/bin/python2
# -*- coding: UTF-8 -*-
import core
if __name__ == "__main__":
TMAKE_MAIN = core.Main()
TMAKE_MAIN.run()
| 14.888889
| 28
| 0.61194
| 18
| 134
| 4
| 0.722222
| 0.25
| 0.361111
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.018519
| 0.19403
| 134
| 8
| 29
| 16.75
| 0.648148
| 0.291045
| 0
| 0
| 0
| 0
| 0.086022
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.25
| 0
| 0.25
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
e82cc026787ad3f4ea5d3f402fb78c6e968b4626
| 53
|
py
|
Python
|
projects/authorization.py
|
RENCI-NRIG/notary-service
|
5d519d925d011004aefd6a4acdfc8565f5b76a94
|
[
"MIT"
] | 8
|
2019-05-27T23:00:18.000Z
|
2022-03-01T11:10:39.000Z
|
projects/authorization.py
|
RENCI-NRIG/notary-service
|
f8b3ed91f9ea4e36ba007a3eaac7373905475a37
|
[
"MIT"
] | 52
|
2018-10-12T18:59:43.000Z
|
2022-03-28T21:16:35.000Z
|
projects/authorization.py
|
RENCI-NRIG/notary-service
|
5d519d925d011004aefd6a4acdfc8565f5b76a94
|
[
"MIT"
] | 1
|
2020-04-30T19:34:54.000Z
|
2020-04-30T19:34:54.000Z
|
# placeholder for project based authorization checks
| 26.5
| 52
| 0.849057
| 6
| 53
| 7.5
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.132075
| 53
| 1
| 53
| 53
| 0.978261
| 0.943396
| 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
|
1c1dc11c579b236ee029b61ce5590e1b1d238476
| 173
|
py
|
Python
|
dropbox_app/__init__.py
|
manish001in/custom-zapier-cli
|
00fe865b0ad0d06d4a18388011a1b1ff9f2c72a2
|
[
"MIT"
] | null | null | null |
dropbox_app/__init__.py
|
manish001in/custom-zapier-cli
|
00fe865b0ad0d06d4a18388011a1b1ff9f2c72a2
|
[
"MIT"
] | null | null | null |
dropbox_app/__init__.py
|
manish001in/custom-zapier-cli
|
00fe865b0ad0d06d4a18388011a1b1ff9f2c72a2
|
[
"MIT"
] | null | null | null |
from django.conf import settings
import os
DOWNLOADS_DIR = settings.BASE_DIR+'/downloads/dropbox_app/'
if not os.path.exists(DOWNLOADS_DIR):
os.makedirs(DOWNLOADS_DIR)
| 24.714286
| 59
| 0.797688
| 26
| 173
| 5.115385
| 0.615385
| 0.270677
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.104046
| 173
| 7
| 60
| 24.714286
| 0.858065
| 0
| 0
| 0
| 0
| 0
| 0.132184
| 0.132184
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.4
| 0
| 0.4
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
1c25288aa73f5f5426227115485c987c693844c3
| 3,234
|
py
|
Python
|
test/find_exe.py
|
stormrust/wabtest
|
e7266f7576a70f4b50782a21dc3d0969ed7b0c26
|
[
"Apache-2.0"
] | null | null | null |
test/find_exe.py
|
stormrust/wabtest
|
e7266f7576a70f4b50782a21dc3d0969ed7b0c26
|
[
"Apache-2.0"
] | null | null | null |
test/find_exe.py
|
stormrust/wabtest
|
e7266f7576a70f4b50782a21dc3d0969ed7b0c26
|
[
"Apache-2.0"
] | 2
|
2021-07-08T18:47:43.000Z
|
2021-07-08T20:17:58.000Z
|
#!/usr/bin/env python3
#
# Copyright 2016 WebAssembly Community Group participants
#
# 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 os
import sys
from utils import Error
IS_WINDOWS = sys.platform == 'win32'
SCRIPT_DIR = '/mia/wabt/'
REPO_ROOT_DIR = os.path.dirname(SCRIPT_DIR)
EXECUTABLES = [
'wat2wasm', 'wast2json', 'wasm2wat', 'wasm-objdump', 'wasm-interp',
'wasm-opcodecnt', 'wat-desugar', 'spectest-interp', 'wasm-validate',
'wasm2c', 'wasm-strip', 'wasm-decompile'
]
def GetDefaultPath():
return os.path.join(REPO_ROOT_DIR, 'bin')
def GetDefaultExe(basename):
result = os.path.join(GetDefaultPath(), basename)
if IS_WINDOWS:
result += '.exe'
return result
def FindExeWithFallback(name, default_exe_list, override_exe=None):
result = override_exe
if result is not None:
if os.path.isdir(result):
result = os.path.join(result, name)
if IS_WINDOWS and os.path.splitext(result)[1] != '.exe':
result += '.exe'
if os.path.exists(result):
return os.path.abspath(result)
raise Error('%s executable not found.\nsearch path: %s\n' % (name, result))
for result in default_exe_list:
if os.path.exists(result):
return os.path.abspath(result)
raise Error('%s executable not found.\n%s\n' %
(name, '\n'.join('search path: %s' % path
for path in default_exe_list)))
def FindExecutable(basename, override=None):
return FindExeWithFallback(basename, [GetDefaultExe(basename)], override)
def GetWat2WasmExecutable(override=None):
return FindExecutable('wat2wasm', override)
def GetWast2JsonExecutable(override=None):
return FindExecutable('wast2json', override)
def GetWasm2WatExecutable(override=None):
return FindExecutable('wasm2wat', override)
def GetWasmdumpExecutable(override=None):
return FindExecutable('wasm-objdump', override)
def GetWasmInterpExecutable(override=None):
return FindExecutable('wasm-interp', override)
def GetSpectestInterpExecutable(override=None):
return FindExecutable('spectest-interp', override)
def GetWasmOpcodeCntExecutable(override=None):
return FindExecutable('wasm-opcodecnt', override)
def GetWatDesugarExecutable(override=None):
return FindExecutable('wat-desugar', override)
def GetWasmValidateExecutable(override=None):
return FindExecutable('wasm-validate', override)
def GetWasm2CExecutable(override=None):
return FindExecutable('wasm2c', override)
def GetWasmStripExecutable(override=None):
return FindExecutable('wasm-strip', override)
def GetWasmDecompileExecutable(override=None):
return FindExecutable('wasm-decompile', override)
| 28.368421
| 83
| 0.719233
| 383
| 3,234
| 6.028721
| 0.368146
| 0.067562
| 0.101343
| 0.166306
| 0.157644
| 0.064097
| 0.064097
| 0.064097
| 0.064097
| 0.064097
| 0
| 0.008949
| 0.170686
| 3,234
| 113
| 84
| 28.619469
| 0.851976
| 0.18522
| 0
| 0.1
| 0
| 0
| 0.145857
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.266667
| false
| 0
| 0.05
| 0.233333
| 0.6
| 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
|
1c4191007d0a6c4b0419d38678ca62d430bd0f52
| 184
|
py
|
Python
|
Scripts/django-admin.py
|
dragonrathony/zed_market
|
c73f17501608c8fe86692c3c4f6e03fc8ba03286
|
[
"bzip2-1.0.6"
] | 1
|
2020-06-17T13:45:54.000Z
|
2020-06-17T13:45:54.000Z
|
Scripts/django-admin.py
|
Honey4251996/zed_market
|
c73f17501608c8fe86692c3c4f6e03fc8ba03286
|
[
"bzip2-1.0.6"
] | 11
|
2021-03-19T07:55:39.000Z
|
2022-03-12T00:34:55.000Z
|
Scripts/django-admin.py
|
Honey4251996/zed_market
|
c73f17501608c8fe86692c3c4f6e03fc8ba03286
|
[
"bzip2-1.0.6"
] | null | null | null |
#!d:\projects\eric\python\django\zed-market\dev\zed-market\scripts\python.exe
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| 30.666667
| 77
| 0.788043
| 26
| 184
| 5.153846
| 0.769231
| 0.134328
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.081522
| 184
| 5
| 78
| 36.8
| 0.792899
| 0.413043
| 0
| 0
| 0
| 0
| 0.074766
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.333333
| 0
| 0.333333
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
1c494530de31aff8b8204b0ef28d50b5b3cad91c
| 113
|
py
|
Python
|
tcex/sessions/__init__.py
|
brikardtc/tcex
|
78680f055f4259e31f0b4989a5695604108d9fdd
|
[
"Apache-2.0"
] | null | null | null |
tcex/sessions/__init__.py
|
brikardtc/tcex
|
78680f055f4259e31f0b4989a5695604108d9fdd
|
[
"Apache-2.0"
] | null | null | null |
tcex/sessions/__init__.py
|
brikardtc/tcex
|
78680f055f4259e31f0b4989a5695604108d9fdd
|
[
"Apache-2.0"
] | null | null | null |
# -*- coding: utf-8 -*-
"""Session module for TcEx Framework"""
# flake8: noqa
from .tc_session import TcSession
| 22.6
| 39
| 0.690265
| 15
| 113
| 5.133333
| 0.933333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.020833
| 0.150442
| 113
| 4
| 40
| 28.25
| 0.78125
| 0.610619
| 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
|
1c51b88e6ff165d752c3979486af2dc3c39b6205
| 230
|
py
|
Python
|
src/data/descriptions/sample/params.py
|
dmitry-s-danilov/kaggle-house-prices-advanced-regression-techniques
|
ab5130ea6d5b1c7373a886b9289cf0fde4f7c27d
|
[
"MIT"
] | 1
|
2022-02-08T11:54:16.000Z
|
2022-02-08T11:54:16.000Z
|
src/data/descriptions/sample/params.py
|
dmitry-s-danilov/kaggle-house-prices-advanced-regression-techniques
|
ab5130ea6d5b1c7373a886b9289cf0fde4f7c27d
|
[
"MIT"
] | null | null | null |
src/data/descriptions/sample/params.py
|
dmitry-s-danilov/kaggle-house-prices-advanced-regression-techniques
|
ab5130ea6d5b1c7373a886b9289cf0fde4f7c27d
|
[
"MIT"
] | null | null | null |
n = (3, 6, 3)
transformers = [
lambda _: _.transpose(),
lambda _: _.rename_axis(
mapper='variable',
axis='index',
),
lambda _: _.rename_axis(
mapper='id',
axis='columns',
),
]
| 15.333333
| 28
| 0.491304
| 21
| 230
| 5
| 0.619048
| 0.228571
| 0.304762
| 0.419048
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.019737
| 0.33913
| 230
| 14
| 29
| 16.428571
| 0.671053
| 0
| 0
| 0.333333
| 0
| 0
| 0.095652
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
1c55d7249f85744b96ff1315285cb69e7b5f1a0c
| 10,792
|
py
|
Python
|
src/compas/geometry/_core/angles.py
|
Sam-Bouten/compas
|
011c7779ded9b69bb602568b470bb0443e336f62
|
[
"MIT"
] | null | null | null |
src/compas/geometry/_core/angles.py
|
Sam-Bouten/compas
|
011c7779ded9b69bb602568b470bb0443e336f62
|
[
"MIT"
] | null | null | null |
src/compas/geometry/_core/angles.py
|
Sam-Bouten/compas
|
011c7779ded9b69bb602568b470bb0443e336f62
|
[
"MIT"
] | null | null | null |
from __future__ import print_function
from __future__ import absolute_import
from __future__ import division
from math import pi
from math import degrees
from math import acos
from compas.geometry._core import subtract_vectors
from compas.geometry._core import subtract_vectors_xy
from compas.geometry._core import dot_vectors
from compas.geometry._core import dot_vectors_xy
from compas.geometry._core import length_vector
from compas.geometry._core import length_vector_xy
from compas.geometry._core import cross_vectors
__all__ = [
'angles_vectors',
'angles_vectors_xy',
'angles_vectors',
'angles_vectors_xy',
'angles_points',
'angles_points_xy',
'angle_vectors',
'angle_vectors_signed',
'angle_vectors_xy',
'angle_points',
'angle_points_xy',
'angle_planes',
]
def angle_vectors(u, v, deg=False, tol=0.0):
"""Compute the smallest angle between two vectors.
Parameters
----------
u : [float, float, float] | :class:`compas.geometry.Vector`
XYZ components of the first vector.
v : [float, float, float] | :class:`compas.geometry.Vector`
XYZ components of the second vector.
deg : bool, optional
If True, returns the angle in degrees.
tol : float, optional
Tolerance for the length of the vectors.
Returns
-------
float
The smallest angle in radians (in degrees if ``deg == True``).
The angle is always positive.
Examples
--------
>>> angle_vectors([0.0, 1.0, 0.0], [1.0, 0.0, 0.0])
1.57079
"""
L = length_vector(u) * length_vector(v)
if tol and L < tol:
return 0
a = dot_vectors(u, v) / L
a = max(min(a, 1), -1)
if deg:
return degrees(acos(a))
return acos(a)
def angle_vectors_signed(u, v, normal, deg=False, threshold=1e-3):
"""Computes the signed angle between two vectors.
It calculates the angle such that rotating vector u about the normal by
angle would result in a vector that looks into the same direction as v.
Parameters
----------
u : [float, float, float] | :class:`compas.geometry.Vector`
XYZ components of the first vector.
v : [float, float, float] | :class:`compas.geometry.Vector`
XYZ components of the second vector.
normal : [float, float, float] | :class:`compas.geometry.Vector`
XYZ components of the plane's normal spanned by u and v.
deg : bool, optional
If True, returns the angle in degrees.
threshold : float, optional
The threshold (radians) used to consider if the angle is zero.
Returns
-------
float
The signed angle in radians (in degrees if deg == True).
Examples
--------
>>> normal = [0.0, 0.0, 1.0]
>>> angle_vectors_signed([0.0, 1.0, 0.0], [1.0, 0.0, 0.0], normal)
-1.57079
"""
angle = angle_vectors(u, v)
normal_uv = cross_vectors(u, v)
if length_vector(normal_uv) > threshold:
# check if normal_uv has the same direction as normal
angle_btw_normals = angle_vectors(normal, normal_uv)
if angle_btw_normals > threshold:
angle *= -1
if deg:
return degrees(angle)
else:
return angle
def angle_vectors_xy(u, v, deg=False, tol=1e-4):
"""Compute the smallest angle between the XY components of two vectors.
Parameters
----------
u : [float, float] or [float, float, float] | :class:`compas.geometry.Vector`
The first 2D or 3D vector (Z will be ignored).
v : [float, float] or [float, float, float] | :class:`compas.geometry.Vector`
The second 2D or 3D vector (Z will be ignored).
deg : bool, optional
If True, returns the angle in degrees.
tol : float, optional
Tolerance for the length of the vectors.
Returns
-------
float
The smallest angle in radians (in degrees if ``deg == True``).
The angle is always positive.
Examples
--------
>>>
"""
L = length_vector_xy(u) * length_vector_xy(v)
if L < tol:
return 0
a = dot_vectors_xy(u, v) / L
a = max(min(a, 1), -1)
if deg:
return degrees(acos(a))
return acos(a)
def angle_points(a, b, c, deg=False):
r"""Compute the smallest angle between the vectors defined by three points.
Parameters
----------
a : [float, float, float] | :class:`compas.geometry.Point`
XYZ coordinates.
b : [float, float, float] | :class:`compas.geometry.Point`
XYZ coordinates.
c : [float, float, float] | :class:`compas.geometry.Point`
XYZ coordinates.
deg : bool, optional
If True, returns the angle in degrees.
Returns
-------
float
The smallest angle in radians (in degrees if ``deg == True``).
The angle is always positive.
Notes
-----
The vectors are defined in the following way
.. math::
\mathbf{u} = \mathbf{b} - \mathbf{a} \\
\mathbf{v} = \mathbf{c} - \mathbf{a}
Z components may be provided, but are simply ignored.
"""
u = subtract_vectors(b, a)
v = subtract_vectors(c, a)
return angle_vectors(u, v, deg)
def angle_points_xy(a, b, c, deg=False):
r"""Compute the smallest angle between the vectors defined by the XY components of three points.
Parameters
----------
a : [float, float] or [float, float, float] | :class:`compas.geometry.Point`
XY(Z) coordinates of a 2D or 3D point (Z will be ignored).
b : [float, float] or [float, float, float] | :class:`compas.geometry.Point`
XY(Z) coordinates of a 2D or 3D point (Z will be ignored).
c : [float, float] or [float, float, float] | :class:`compas.geometry.Point`
XY(Z) coordinates of a 2D or 3D point (Z will be ignored).
deg : bool, optional
If True, returns the angle in degrees.
Returns
-------
float
The smallest angle in radians (in degrees if ``deg == True``).
The angle is always positive.
Notes
-----
The vectors are defined in the following way
.. math::
\mathbf{u} = \mathbf{b} - \mathbf{a} \\
\mathbf{v} = \mathbf{c} - \mathbf{a}
Z components may be provided, but are simply ignored.
"""
u = subtract_vectors_xy(b, a)
v = subtract_vectors_xy(c, a)
return angle_vectors_xy(u, v, deg)
def angles_vectors(u, v, deg=False):
"""Compute the the 2 angles formed by a pair of vectors.
Parameters
----------
u : [float, float, float] | :class:`compas.geometry.Vector`
XYZ components of the first vector.
v : [float, float, float] | :class:`compas.geometry.Vector`
XYZ components of the second vector.
deg : bool, optional
If True, returns the angle in degrees.
Returns
-------
float
The smallest angle in radians, or in degrees if ``deg == True``.
float
The other angle.
Examples
--------
>>>
"""
if deg:
a = angle_vectors(u, v, deg)
return a, 360. - a
a = angle_vectors(u, v)
return a, pi * 2 - a
def angles_vectors_xy(u, v, deg=False):
"""Compute the angles between the XY components of two vectors.
Parameters
----------
u : [float, float] or [float, float, float] | :class:`compas.geometry.Vector`
XY(Z) coordinates of the first vector.
v : [float, float] or [float, float, float] | :class:`compas.geometry.Vector`
XY(Z) coordinates of the second vector.
deg : bool, optional
If True, returns the angle in degrees.
Returns
-------
float
The smallest angle in radians, or in degrees if ``deg == True``.
float
The other angle.
Notes
-----
Z components may be provided, but are simply ignored.
Examples
--------
>>>
"""
if deg:
a = angle_vectors_xy(u, v, deg)
return a, 360. - a
a = angle_vectors_xy(u, v)
return a, pi * 2 - a
def angles_points(a, b, c, deg=False):
r"""Compute the two angles between two vectors defined by three points.
Parameters
----------
a : [float, float, float] | :class:`compas.geometry.Point`
XYZ coordinates.
b : [float, float, float] | :class:`compas.geometry.Point`
XYZ coordinates.
c : [float, float, float] | :class:`compas.geometry.Point`
XYZ coordinates.
deg : bool, optional
If True, returns the angle in degrees.
Returns
-------
float
The smallest angle in radians, or in degrees if ``deg == True``.
float
The other angle.
Notes
-----
The vectors are defined in the following way
.. math::
\mathbf{u} = \mathbf{b} - \mathbf{a} \\
\mathbf{v} = \mathbf{c} - \mathbf{a}
Examples
--------
>>>
"""
u = subtract_vectors(b, a)
v = subtract_vectors(c, a)
return angles_vectors(u, v, deg)
def angles_points_xy(a, b, c, deg=False):
r"""Compute the two angles between the two vectors defined by the XY components of three points.
Parameters
----------
a : [float, float] or [float, float, float] | :class:`compas.geometry.Point`
XY(Z) coordinates.
b : [float, float] or [float, float, float] | :class:`compas.geometry.Point`
XY(Z) coordinates.
c : [float, float] or [float, float, float] | :class:`compas.geometry.Point`
XY(Z) coordinates.
deg : bool, optional
If True, returns the angle in degrees.
Returns
-------
float
The smallest angle in radians, or in degrees if ``deg == True``.
float
The other angle.
Notes
-----
The vectors are defined in the following way
.. math::
\mathbf{u} = \mathbf{b} - \mathbf{a} \\
\mathbf{v} = \mathbf{c} - \mathbf{a}
Z components may be provided, but are simply ignored.
Examples
--------
>>>
"""
u = subtract_vectors_xy(b, a)
v = subtract_vectors_xy(c, a)
return angles_vectors_xy(u, v, deg)
def angle_planes(a, b, deg=False):
"""Compute the smallest angle between the two normal vectors of two planes.
Parameters
----------
a : [point, vector] | :class:`compas.geometry.Plane`
The first plane.
b : [point, vector] | :class:`compas.geometry.Plane`
The second plane.
deg : bool, optional
If True, returns the angle in degrees.
Returns
-------
float
The smallest angle in radians, or in degrees if ``deg == True``.
float
The other angle.
Examples
--------
>>> plane_a = [0.0, 0.0, 0.0], [0.0, 0.0, 1.0]
>>> plane_b = [0.0, 0.0, 0.0], [1.0, 0.0, 0.0]
>>> angle_planes(plane_a, plane_b, True)
90.0
"""
return angle_vectors(a[1], b[1], deg)
| 26.98
| 100
| 0.600537
| 1,481
| 10,792
| 4.29372
| 0.087779
| 0.088064
| 0.074697
| 0.072338
| 0.823557
| 0.80044
| 0.750747
| 0.691461
| 0.679667
| 0.667872
| 0
| 0.013096
| 0.271219
| 10,792
| 399
| 101
| 27.047619
| 0.795423
| 0.654003
| 0
| 0.322222
| 0
| 0
| 0.064458
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.111111
| false
| 0
| 0.144444
| 0
| 0.444444
| 0.011111
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
1c7921d31387fd08d75da3ab52581f5fe52b0ebe
| 82,391
|
py
|
Python
|
src/gluonnlp/embedding/_constants.py
|
leezu/gluon-nlp
|
19de74c2b03f22dde8311a0225b4571c2deef0e4
|
[
"Apache-2.0"
] | 2,461
|
2018-04-25T03:47:22.000Z
|
2022-03-31T03:58:48.000Z
|
src/gluonnlp/embedding/_constants.py
|
leezu/gluon-nlp
|
19de74c2b03f22dde8311a0225b4571c2deef0e4
|
[
"Apache-2.0"
] | 1,450
|
2018-04-25T16:14:25.000Z
|
2022-02-24T21:02:57.000Z
|
src/gluonnlp/embedding/_constants.py
|
leezu/gluon-nlp
|
19de74c2b03f22dde8311a0225b4571c2deef0e4
|
[
"Apache-2.0"
] | 578
|
2018-04-25T04:55:18.000Z
|
2022-03-16T03:01:45.000Z
|
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you 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.
# pylint: disable=too-many-lines
"""Constants."""
GLOVE_NPZ_SHA1 = \
{'glove.42B.300d': ('glove.42B.300d.npz',
'7deee8f4860744db53ed9e50892effe9883e6d89'),
'glove.6B.100d': ('glove.6B.100d.npz',
'01f80f202fcabcc3e0804898349087bfc191dd1c'),
'glove.6B.200d': ('glove.6B.200d.npz',
'5e6e2bdab346c257f88d80d215d518e680d86e32'),
'glove.6B.300d': ('glove.6B.300d.npz',
'1db264aa936be62f055dfb72854204450bdf4399'),
'glove.6B.50d': ('glove.6B.50d.npz',
'aa16be8d184399d2199f83fd62586f2c30497bfa'),
'glove.840B.300d': ('glove.840B.300d.npz',
'b4ba390c1154736e07c0e67d9180935f5930e83c'),
'glove.twitter.27B.100d': ('glove.twitter.27B.100d.npz',
'0f7b82c223451d0002f79ba23596983cdbe0e2b1'),
'glove.twitter.27B.200d': ('glove.twitter.27B.200d.npz',
'41cc2d26f58a54622ce96bf6c8434360ab524f20'),
'glove.twitter.27B.25d': ('glove.twitter.27B.25d.npz',
'9f563d2f296995598cc46812b2fda05ad4c3c879'),
'glove.twitter.27B.50d': ('glove.twitter.27B.50d.npz',
'ce9959c056f2a0a780c468feeb4f823af51630e9')}
WORD2VEC_NPZ_SHA1 = {
'GoogleNews-vectors-negative300': ('GoogleNews-vectors-negative300-be6d6f98.npz',
'be6d6f98609bd65db8f6991ecaed923f1b1c8377'),
'freebase-vectors-skipgram1000-en': ('freebase-vectors-skipgram1000-en-6086803e.npz',
'6086803e4fd0b60e12b79031d585ef2c63ca71e6'),
'freebase-vectors-skipgram1000': ('freebase-vectors-skipgram1000-827a5d3a.npz',
'827a5d3a777ea3de21be4f61dad4de6510d77ee3')
}
FAST_TEXT_NPZ_SHA1 = {
'crawl-300d-2M': ('crawl-300d-2M.npz', '9dd611a1fe280c63050cd546d3595400fc0eede4'),
'crawl-300d-2M-subword': ('crawl-300d-2M-subword-927782c8e.npz',
'927782c8ec8c2c1deb6a8a550217478e183ca25a'),
'wiki.aa': ('wiki.aa.npz', '48f163b80eb37f1806142169d3d4c05cf75b7339'),
'wiki.ab': ('wiki.ab.npz', '860ceff119dd27e5b701b605879037c1310cbc3e'),
'wiki.ace': ('wiki.ace.npz', '62938287464040491719f56a6f521f8f808beee8'),
'wiki.ady': ('wiki.ady.npz', '646843afa260d018ed711df3f1ca9c3e000447b6'),
'wiki.af': ('wiki.af.npz', '7b14cd27690b67fea318d0bac2283c16430680e2'),
'wiki.ak': ('wiki.ak.npz', '20f309adad1c45958c97b6055d5838e05bbaea72'),
'wiki.als': ('wiki.als.npz', 'a8b03aa133c4f7da12fc27c2b167b7918b1e9805'),
'wiki.am': ('wiki.am.npz', 'ed3dd10cea64737f7a1623612ee099df9dc19f66'),
'wiki.ang': ('wiki.ang.npz', '8efe64706d9d6b8eae38b2c7ff0b277e20592bc7'),
'wiki.an': ('wiki.an.npz', '168046283c719ab96a29b1abae2e25a6575c7be8'),
'wiki.arc': ('wiki.arc.npz', '049021b7decea4bc009b12936e56b4dbf5b760e7'),
'wiki.ar': ('wiki.ar.npz', '7e325e1e98dfcdc9368d2ebe40ee834a2ed44912'),
'wiki.arz': ('wiki.arz.npz', '7d851c2c7be3ee6f7fd896de7b76ea08e3fb08b0'),
'wiki.as': ('wiki.as.npz', '01d38c29cd4bd99c1a8534abc058822da14a5b9c'),
'wiki.ast': ('wiki.ast.npz', '9c9846ba5084505a0adea89c95c66e04efbf5ce9'),
'wiki.av': ('wiki.av.npz', '7ef6a920c364638504e673cfde5f7675503fa81e'),
'wiki.ay': ('wiki.ay.npz', 'c1202e110930e3902397f5cb64a8359e013b469f'),
'wiki.azb': ('wiki.azb.npz', '10351b7ef14ec2cb610d290cb6a3f6987ef5d8b3'),
'wiki.az': ('wiki.az.npz', '74257c3bcd533a606afae509ea835dc036d61546'),
'wiki.ba': ('wiki.ba.npz', '4a2857ed694d66864df562b376c2fa12fcb03646'),
'wiki.bar': ('wiki.bar.npz', 'e65c6b7e9ff83798d1eea05d166148837d53e615'),
'wiki.bat_smg': ('wiki.bat_smg.npz', '6420584ae28ba6c9dd145fea8f096243d457c2d8'),
'wiki.bcl': ('wiki.bcl.npz', '33606c970ab336b678393e2bdb8af2116d11cf7b'),
'wiki.be': ('wiki.be.npz', '84487d341e333344cf71bc12c7a205d923762498'),
'wiki.bg': ('wiki.bg.npz', '56f2a175b1a1d1a9cf9f1cea277cd0b46ffd7f66'),
'wiki.bh': ('wiki.bh.npz', '07473989853a344a41aaa18f41030dc56d0d01c7'),
'wiki.bi': ('wiki.bi.npz', '08adfa3c9ef3016d30ef69ea539d217ff67eda09'),
'wiki.bjn': ('wiki.bjn.npz', '998a551283222931d3a26922308449950bfa3ec7'),
'wiki.bm': ('wiki.bm.npz', '454ff9fbd4790e4a076d9a2087a51da28aa1332f'),
'wiki.bn': ('wiki.bn.npz', '1f36f6f39c9a9b33bb8035c9a4dc7e04933604fd'),
'wiki.bo': ('wiki.bo.npz', 'b9fe87318428de0a7790de175b5fec80c5af482d'),
'wiki.bpy': ('wiki.bpy.npz', '5c7853173d27e2c018c24eca69de8d5f34511b0d'),
'wiki.br': ('wiki.br.npz', '7aa66a2034fbfaa1d39e637385d48610238797c9'),
'wiki.bs': ('wiki.bs.npz', 'a019a4677677c2e9e4d899326b2b6c15ad6c011a'),
'wiki.bug': ('wiki.bug.npz', '09ae3477941d7a99d1df494368d7efb0b2c18913'),
'wiki.bxr': ('wiki.bxr.npz', 'b832c691b8ddd95896c052d3d15e1f98d72068d5'),
'wiki.ca': ('wiki.ca.npz', '391e0d4daad08649251274fa1cc2a5f49c7728b1'),
'wiki.cbk_zam': ('wiki.cbk_zam.npz', '02e57a763bc9f9eadaba57953383dd12a0a78a37'),
'wiki.cdo': ('wiki.cdo.npz', 'd6e8f422327e8b2273f1f2662d793707ece6695d'),
'wiki.ceb': ('wiki.ceb.npz', '23bc0bb9aeaa57dff35092766941a866de142aae'),
'wiki.ce': ('wiki.ce.npz', '182b2a889256119a6d379d501c55c7621e5855db'),
'wiki.ch': ('wiki.ch.npz', '82dd77512fcb463481f43c9cef3507e2baa90d7b'),
'wiki.cho': ('wiki.cho.npz', 'b0b620fc2442d1a6e2440e71a424861c80175f0c'),
'wiki.chr': ('wiki.chr.npz', '3d62c6b95c5af46abd6234426ae760cca65d5bd0'),
'wiki.chy': ('wiki.chy.npz', '34a28a22da79aebc100e3714b825c95c8d5f54a3'),
'wiki.ckb': ('wiki.ckb.npz', 'ad19461e4be583d08b7693ff5b1e9d590ed41add'),
'wiki.co': ('wiki.co.npz', 'fa60d9f0e79f1c7e15f381aef983a0f4f31c05a8'),
'wiki.crh': ('wiki.crh.npz', '540270ba6edd9d7b2f7efca52b3b407524ac67d1'),
'wiki.cr': ('wiki.cr.npz', 'f06b77465a38ec960d7d5a7554b848c37e945c76'),
'wiki.csb': ('wiki.csb.npz', 'b8b28559cf2541341af98e2aa755856765bdeabf'),
'wiki.cs': ('wiki.cs.npz', '19881e931fe06abf341450f00c342d364313e232'),
'wiki.cu': ('wiki.cu.npz', '731e0d00abd53bc2a8eb6cf37f6ab883cff34e15'),
'wiki.cv': ('wiki.cv.npz', 'e60034fcffb7dfef7b236ddba1194c3aa20b7967'),
'wiki.cy': ('wiki.cy.npz', '5a0fb967b5556f007c0d5065f951a3d3b1c1005a'),
'wiki.da': ('wiki.da.npz', 'd06258014ba2c7450bc2d55edfdf1731433e42e5'),
'wiki.de': ('wiki.de.npz', 'a21694dfd2af63bd7bb00f0b60b28e88bd1153f1'),
'wiki.diq': ('wiki.diq.npz', '4f6c77a86b39834a7130419967759afd8cc26b84'),
'wiki.dsb': ('wiki.dsb.npz', 'e74f1d346a8db96987bff0c33ee5f886907c380a'),
'wiki.dv': ('wiki.dv.npz', '5d6fe6f0eec2e7704121d5aba03b4edbb28af873'),
'wiki.dz': ('wiki.dz.npz', '77c639d36d0355b2de5adead7996eae342b852a6'),
'wiki.ee': ('wiki.ee.npz', '4b5a76127d57515d3e8a76787cdefde5856b754a'),
'wiki.el': ('wiki.el.npz', 'a00bcb97e7898931196a1c69f7a492e5b6202661'),
'wiki.eml': ('wiki.eml.npz', 'b475d626b3d97e7a68c02827fdc7900599e838c6'),
'wiki.en': ('wiki.en.npz', 'ad5ec6d49db6c6fe76b8e85ff05d34e5d0e1eb6a'),
'wiki.eo': ('wiki.eo.npz', '18049b0010520d13e676f5a82e8bb90153d99003'),
'wiki.es': ('wiki.es.npz', 'a6d192ba7d82d762f8367e75ca951aad4d11e410'),
'wiki.et': ('wiki.et.npz', '4beb7025cf88f1aa62d025b187f0cb09aee61858'),
'wiki.eu': ('wiki.eu.npz', '5e1a8197e35f20a2476798bbb935b4c131289c4f'),
'wiki.ext': ('wiki.ext.npz', '049b2d1b0a8b102b45907cf487cac30aa294e0a0'),
'wiki.fa': ('wiki.fa.npz', '81ed274997c87ef87d73d25e166ca06272ce426f'),
'wiki.ff': ('wiki.ff.npz', '4867dc74cd53ca0b0f769af4fa1ea420406b59bf'),
'wiki.fi': ('wiki.fi.npz', '6d1291b854045179f8171ac7d62ede7d8ac159a2'),
'wiki.fiu_vro': ('wiki.fiu_vro.npz', 'dd87806d9dc8833fa0e21e35a50815ebdbaa6c8b'),
'wiki.fj': ('wiki.fj.npz', 'cf5c31b0a69276f5dd18ab738ed92444abaeb755'),
'wiki.fo': ('wiki.fo.npz', 'ffc19807d528af000861a94cfb8097bd686e14fc'),
'wiki.fr': ('wiki.fr.npz', '8f06d5dbe3cf7214354fe9b2f6eca0ef7419f063'),
'wiki.frp': ('wiki.frp.npz', 'c8b200ae592478d3cd0bfaafcd7aa19de8a3bfe5'),
'wiki.frr': ('wiki.frr.npz', 'fa5e5c39ea2a45793c679eacea290a35e37405ea'),
'wiki.fur': ('wiki.fur.npz', 'a61a8940d059f25000e3fe23933e5ed0d37e65d3'),
'wiki.fy': ('wiki.fy.npz', '46f9f41bdf6f4fb8e27a753290413d745465963b'),
'wiki.gag': ('wiki.gag.npz', '49fb01230e6803544122d47ab7d3fe694d1444f2'),
'wiki.gan': ('wiki.gan.npz', '716b7b26acc15975f30caf3c6effa111516fcca5'),
'wiki.ga': ('wiki.ga.npz', 'ea934bc1fdc1acf6caf9ac746c6c499251f1fdee'),
'wiki.gd': ('wiki.gd.npz', '597017b5a32d933f194595d3656f858e37e70a62'),
'wiki.glk': ('wiki.glk.npz', '91a5834658bc2d48714e8807ef24efb79567b4b5'),
'wiki.gl': ('wiki.gl.npz', '2fa8e48d6ae1e9c9d542eb3f2156cf9e359e66c2'),
'wiki.gn': ('wiki.gn.npz', 'e359eef3928e1f1b5d8fcf0ea532e8794c66289a'),
'wiki.gom': ('wiki.gom.npz', '8cd361481c23f7545cc2bd8f1bf22aa7400edd4d'),
'wiki.got': ('wiki.got.npz', 'd05daf105611150695e61775fdff2c500b36be3f'),
'wiki.gu': ('wiki.gu.npz', '0ce175c5fc39bab4032892f70c9d2bb850af0f4a'),
'wiki.gv': ('wiki.gv.npz', '2c573f873d607831ff01b64603c17b8db79bd7e1'),
'wiki.hak': ('wiki.hak.npz', 'e6048727799cdf149f5c50037e0fc59300d33a94'),
'wiki.ha': ('wiki.ha.npz', 'f18ea7286bbd390c5470896b2c99cb1adc740064'),
'wiki.haw': ('wiki.haw.npz', '18bcd85d2e06b1b889f0835fc5b62697fdf32d72'),
'wiki.he': ('wiki.he.npz', '76915ff167b6ecb7b7e22ff0ca46914a55d344af'),
'wiki.hif': ('wiki.hif.npz', '12153aaf98d76d5502ab77a27cd0b9a539f61513'),
'wiki.hi': ('wiki.hi.npz', '249666a598991f6ec147954c6af9e531fd1cd94e'),
'wiki.ho': ('wiki.ho.npz', '3f804fd69780c0789708b56ea9d48715f8e38f26'),
'wiki.hr': ('wiki.hr.npz', '9a3de28e69f97048bfb480b4f83eaab6149f66ad'),
'wiki.hsb': ('wiki.hsb.npz', '7070bf64e13299dd66ac0e9f8e24011a56b6bfe8'),
'wiki.ht': ('wiki.ht.npz', 'a607093d511afeb584d02dc676bc5a27eff66287'),
'wiki.hu': ('wiki.hu.npz', '9b2c4750daf1bcf39768572e874b5afda0e2f0bc'),
'wiki.hy': ('wiki.hy.npz', 'ec0461a102a6fb00bd324f66cefd3c8d55a7093a'),
'wiki.hz': ('wiki.hz.npz', '5dfb8afbdae6b4148c3e55ab459c56a74b46b463'),
'wiki.ia': ('wiki.ia.npz', '4cfaaf053b9513bbf5b2423258c0f01d20256de6'),
'wiki.id': ('wiki.id.npz', 'bace396bb9941cc9e5b2e5f5a19be6db833c5fd4'),
'wiki.ie': ('wiki.ie.npz', '1bae7256c2e763ce6d692d1c0a603d99a8b22826'),
'wiki.ig': ('wiki.ig.npz', '23128e54a5e143891d392d621723bad9cfc8cf7b'),
'wiki.ii': ('wiki.ii.npz', '54bc16d05da512481865a89ecf30260b0acc04dc'),
'wiki.ik': ('wiki.ik.npz', 'f8015227e893d2375699b7d132b306ba381f02ac'),
'wiki.ilo': ('wiki.ilo.npz', '185a11f81bd5d24a34558dda81ee4735f5ba150b'),
'wiki.io': ('wiki.io.npz', 'ddf8180a90aa6ee5be93a2582cc99c535f21363e'),
'wiki.is': ('wiki.is.npz', '968f8dd2a093b279a6f7aaa734008454bf51d724'),
'wiki.it': ('wiki.it.npz', 'fdfb857a309b2c3d29482bb5cc55f21b858d2e6f'),
'wiki.iu': ('wiki.iu.npz', 'fa8896730bd6c24c3473daa22116d1016294e7f7'),
'wiki.jam': ('wiki.jam.npz', 'a8f0d0b99c89ace0a6401b8fcda261d06065faaf'),
'wiki.ja': ('wiki.ja.npz', '8d42e5a40e4d1d8645b2d80b873a65cadcf68b5c'),
'wiki.jbo': ('wiki.jbo.npz', '145fc999ab004b348cf9bf445f0a93a7a145308b'),
'wiki.jv': ('wiki.jv.npz', '66978770bf06e42414395cf5fd8c596044d72bec'),
'wiki.kaa': ('wiki.kaa.npz', '624a640ecb9901b2aba2e9f44ab615146ecb2862'),
'wiki.kab': ('wiki.kab.npz', 'e97f93b6ba65e95c85b7541932cf53c5ad9eb896'),
'wiki.ka': ('wiki.ka.npz', '1ca8376e1e0cbd58001c1b51a2d488a2874a6743'),
'wiki.kbd': ('wiki.kbd.npz', 'f2d2a05b06723ac549784ad5470d84f5742a1352'),
'wiki.kg': ('wiki.kg.npz', 'fa7f6d5f660a173a3e75342d449980eedcdc789e'),
'wiki.ki': ('wiki.ki.npz', '21a8c7c616c0050c51c288861f3423f313e4f634'),
'wiki.kj': ('wiki.kj.npz', 'f3c347509a0d81f4f7fdbb8b22889b8d76e5014e'),
'wiki.kk': ('wiki.kk.npz', 'bc24a3289e1c1e18e16b6789c2f9f92af1e73071'),
'wiki.kl': ('wiki.kl.npz', 'b8b7e7359f067836e2be2ecfe9f35a820b00fe1d'),
'wiki.km': ('wiki.km.npz', 'e053799fd01463808432dc035bef3e36620e2f36'),
'wiki.kn': ('wiki.kn.npz', '2849a0a8b3453e9bf6af05d4c7bd3db881dd1068'),
'wiki.koi': ('wiki.koi.npz', 'a9b02e9bd41833bcd54769f94626019c03f29997'),
'wiki.ko': ('wiki.ko.npz', '764d9896e74b5a26c6884d48bce3bed8ed3a7822'),
'wiki.krc': ('wiki.krc.npz', 'bfe39598c718f1cc95909db7544b3214b308a97c'),
'wiki.kr': ('wiki.kr.npz', '1e6af853d4a8ea7830e116eb9b61ac5d7d9a315c'),
'wiki.ksh': ('wiki.ksh.npz', '66cd0e3e0a0b0282a13960571ebe7cddd7706bf2'),
'wiki.ks': ('wiki.ks.npz', '85f1adaa05b854df4dede745a1aaab3836e60770'),
'wiki.ku': ('wiki.ku.npz', 'faf90584e5a45e6d0f9eeb88399b82abe037d584'),
'wiki.kv': ('wiki.kv.npz', '9f2b41822013a412da9c99fac06eed8be03ca192'),
'wiki.kw': ('wiki.kw.npz', '3eed8a8fc97a2fc79241b8474a458c98d00fc897'),
'wiki.ky': ('wiki.ky.npz', '0116ff90f10a6c0728e1ea86d8a44896ea83270a'),
'wiki.lad': ('wiki.lad.npz', '5af2015b3d1c5e8563f0e92721580988ebe2ce50'),
'wiki.la': ('wiki.la.npz', '7143303a3ea13c7668eb90ea6e3d2ca69857a3be'),
'wiki.lbe': ('wiki.lbe.npz', 'f206a3c35a184ba5d2b32ee68640eadf66c847da'),
'wiki.lb': ('wiki.lb.npz', '143dc6337f3690379282034c460c613d7f144923'),
'wiki.lez': ('wiki.lez.npz', 'b29a680decc6b29f24e8eb9e4f8e11e3419d45f1'),
'wiki.lg': ('wiki.lg.npz', '866640ce62cedbc1d453b7ea3c289c291ad76e13'),
'wiki.lij': ('wiki.lij.npz', '0dcd3d7009ae89b1016ca6cdb99a9f0d70bc4baf'),
'wiki.li': ('wiki.li.npz', '4666b3c238256d7b7623a136db19b8b9f4754734'),
'wiki.lmo': ('wiki.lmo.npz', 'ac89fa7cfe0675950bcb31c66bf3f88a3cfc98f0'),
'wiki.ln': ('wiki.ln.npz', 'fba158719944aabe58e0002a90be0ed77e11702d'),
'wiki.lo': ('wiki.lo.npz', '1e113e340a8a93d385e14502c9c4e3bcdf6c3101'),
'wiki.lrc': ('wiki.lrc.npz', '42cb755f398fba6f0da7949c91e92b55654bd482'),
'wiki.ltg': ('wiki.ltg.npz', '182f75859e228d1162215f28fe7f2dca127624a4'),
'wiki.lt': ('wiki.lt.npz', '66aa944bd2e777cb82d6d59b1f2f837b6c48cb37'),
'wiki.lv': ('wiki.lv.npz', '2be8f926da85694fa998bf79d80b61ebb8d67576'),
'wiki.mai': ('wiki.mai.npz', 'b8a9c36e2a0f1bb84a44dc762250d2a9007ef637'),
'wiki.map_bms': ('wiki.map_bms.npz', '6f0394d6b3d08a946e3df4b9355efe94148f018a'),
'wiki.mdf': ('wiki.mdf.npz', '774ee35334641db57f9ac9069961c5372a5d92e8'),
'wiki.mg': ('wiki.mg.npz', '496c48ef668f08ce95ebb11ce1ce5026b52d935c'),
'wiki.mh': ('wiki.mh.npz', '352edd84f99c5aa277a7306f6cacea1fab065ed3'),
'wiki.mhr': ('wiki.mhr.npz', 'dd78b27a674ac10411cdf74ac32f9391506b17e0'),
'wiki.min': ('wiki.min.npz', '628b406441ab03bc8aa68195ada50bfdc8226f34'),
'wiki.mi': ('wiki.mi.npz', '754127b473861cd4f9ae034c9f527a34827b1f00'),
'wiki.mk': ('wiki.mk.npz', 'b09fed4f56c296f13c4020ef1fec498382a38b73'),
'wiki.ml': ('wiki.ml.npz', '02fb55d97ca2f0408f0e7e8dd6a661bbc3319a2a'),
'wiki.mn': ('wiki.mn.npz', '08b2c45689aa5d9ec49df96dc7c777ce9b9a0b4b'),
'wiki.mo': ('wiki.mo.npz', '638c2e8bd2352fd52921b9ae62f578b8357bab49'),
'wiki.mrj': ('wiki.mrj.npz', 'ec5cf1f4fb8dfdca64d8172974e620eb8fa41626'),
'wiki.mr': ('wiki.mr.npz', '074dd68c947c2f137a3e84b55012925f00213139'),
'wiki.ms': ('wiki.ms.npz', '3dbe9e9d70251de8a374776ff1250a9c3103ee59'),
'wiki.mt': ('wiki.mt.npz', 'f5103998a68d1b178387417436a83123d44aba01'),
'wiki.multi.ar': ('wiki.multi.ar.npz', 'a010d1d81a465c56ebaf596b3e8e8795e7f0f8e3'),
'wiki.multi.bg': ('wiki.multi.bg.npz', 'c04018f3a600cee170f12a36cdd35b4727a2aade'),
'wiki.multi.ca': ('wiki.multi.ca.npz', 'eef52a0cf20c133ca9065de25f0702861a8cfa29'),
'wiki.multi.cs': ('wiki.multi.cs.npz', 'c5f547aa78c0e3d7dae67a0334d500bf2a86aa30'),
'wiki.multi.da': ('wiki.multi.da.npz', '24374f2ee169b33327feeee46da31b0de1622fe4'),
'wiki.multi.de': ('wiki.multi.de.npz', '2e6c119b345bebd34b56eaaf855d6703889b11f7'),
'wiki.multi.el': ('wiki.multi.el.npz', '9d122beedb80a2e5334946641e5bafd32c01e76b'),
'wiki.multi.en': ('wiki.multi.en.npz', '8c3c480b4cb2690304173713a646280613b244a8'),
'wiki.multi.es': ('wiki.multi.es.npz', '483a22656e4fb2a01e9f4ef8156b261e780850ab'),
'wiki.multi.et': ('wiki.multi.et.npz', '22498c7b91645a3874fa738b5cfb16bf98b6f97c'),
'wiki.multi.fi': ('wiki.multi.fi.npz', '765a6f0b63777bff4ae6ca2b461c5889c03d6a70'),
'wiki.multi.fr': ('wiki.multi.fr.npz', 'decd9aacf600114b8a36072535c0309874a37c83'),
'wiki.multi.he': ('wiki.multi.he.npz', '7eee940c1b85936f59122f4b1a166223dd946674'),
'wiki.multi.hr': ('wiki.multi.hr.npz', '1673963416af088f8bf15576afb33d58115db35c'),
'wiki.multi.hu': ('wiki.multi.hu.npz', 'a1fbe6ededf3cbaa3eaa22dd8b20cce4b36cfc6d'),
'wiki.multi.id': ('wiki.multi.id.npz', '6c3e721febb511ede7db7bf978d65769e4270f5c'),
'wiki.multi.it': ('wiki.multi.it.npz', 'fc5bfc11e0165e8d95c1708573dad5e456826c73'),
'wiki.multi.mk': ('wiki.multi.mk.npz', '6cd50198355674f156fc863108d9bebf11cfabd9'),
'wiki.multi.nl': ('wiki.multi.nl.npz', '4fa06b9230c95dfa5a9e9a5d80f1f5ba614d3cbf'),
'wiki.multi.no': ('wiki.multi.no.npz', '63756168c1101e73fba8d1a5015f32b8892819e6'),
'wiki.multi.pl': ('wiki.multi.pl.npz', '958b8e8bead965ba1bb1433e1c960fc3e12a10fb'),
'wiki.multi.pt': ('wiki.multi.pt.npz', '22f07df1609d79b95344ee575ea43141424a1528'),
'wiki.multi.ro': ('wiki.multi.ro.npz', '73180b3e382519004bf38ea7b86237aacbbe813a'),
'wiki.multi.ru': ('wiki.multi.ru.npz', '3b2eb9163f35e90bf2ce1cd3c997b354d0c34f59'),
'wiki.multi.sk': ('wiki.multi.sk.npz', '606a0c3ba9849070c6b6b8c22d920fdeed9a1385'),
'wiki.multi.sl': ('wiki.multi.sl.npz', '3cfdab5043b8cfe1535cb6dbd4c9e68847ad5904'),
'wiki.multi.sv': ('wiki.multi.sv.npz', '4f1494885b9a831e87cfa3c15f2204c4a73c0779'),
'wiki.multi.tr': ('wiki.multi.tr.npz', '54f90d5ddb9a65538a41e37c5a67ed933a5e4885'),
'wiki.multi.uk': ('wiki.multi.uk.npz', '500fd26b1d7a25b42458012e99f9f76642e0c787'),
'wiki.multi.vi': ('wiki.multi.vi.npz', '3955809cceb300965c15f9372221417719bb0db8'),
'wiki.mus': ('wiki.mus.npz', 'a5f48934a3fa6eaf4929098046c93fc94dd6bcb6'),
'wiki.mwl': ('wiki.mwl.npz', '8a5e2c272166f8a72c5694ca6c3104d5f49179ec'),
'wiki.my': ('wiki.my.npz', '5e035aca16700d7d6695af8a6d3a88ac847aaeb7'),
'wiki.myv': ('wiki.myv.npz', 'd4cfaab70c640033e02c0fc0c5a3615ae836c569'),
'wiki.mzn': ('wiki.mzn.npz', 'ad09ac584ae455b5862b95125ef409360ae18445'),
'wiki.nah': ('wiki.nah.npz', '2dc454ef37d059f2053af46cfa1f4f0ca939cba0'),
'wiki.na': ('wiki.na.npz', '401f0f880eb7aa78d21348bc1e0a3953b3e81bf0'),
'wiki.nap': ('wiki.nap.npz', '996da46aeeab5644ba766d00c5e343b1553361d7'),
'wiki.nds_nl': ('wiki.nds_nl.npz', '5a9307e16b13a5a82ec19a52b33254537e7198e7'),
'wiki.nds': ('wiki.nds.npz', 'b249a87c78c52becf51e7b50aaf9f9b6a36585f1'),
'wiki.ne': ('wiki.ne.npz', 'a601db2647a74ffd2b4b43dcb8584735f555459c'),
'wiki.new': ('wiki.new.npz', 'c398a3775aba9c68ce765cfdfb6b188f7c47e4c6'),
'wiki-news-300d-1M': ('wiki-news-300d-1M.npz', '0a03bbd508e5381e140476140fb121afeb0050ed'),
'wiki-news-300d-1M-subword': ('wiki-news-300d-1M-subword.npz',
'69edae21375407781c727dcb9e534e79d712d137'),
'wiki.ng': ('wiki.ng.npz', 'befd774d15f69d43547e13e5ea3a97c4cb1ab405'),
'wiki.nl': ('wiki.nl.npz', '5a7cb6f1dd0a7621202abba9461ac2c5bf905219'),
'wiki.nn': ('wiki.nn.npz', '8e5059ddeb24050fadaa5cc4622b13feb3e4a226'),
'wiki.no': ('wiki.no.npz', '5ce6e0f793e66f081652f64013968099de03d9f9'),
'wiki.nov': ('wiki.nov.npz', '95ed23b4cfd7a65afa1c12c7dbdce6af53923d77'),
'wiki.vec': ('wiki.npz.npz', '08ebb912efeb9df1c7d05e1af90484d210dff47e'),
'wiki.nrm': ('wiki.nrm.npz', 'e58614b4508ff9810f0b58fd818f973775bc918d'),
'wiki.nso': ('wiki.nso.npz', '56a2ebe260241402d117cd89c5c872b9c96ff05b'),
'wiki.nv': ('wiki.nv.npz', 'c713051fe03ec1f60314bb42161b2a47fb5e169a'),
'wiki.ny': ('wiki.ny.npz', 'ba5a1725955cbc13e7fd93ab499f8085840c992c'),
'wiki.oc': ('wiki.oc.npz', '259e7d994c38a4cfc140fb07016b82d6781e5027'),
'wiki.olo': ('wiki.olo.npz', '0fea70f887def4779ee70a79366b88f1ada65004'),
'wiki.om': ('wiki.om.npz', '47e2d756b5f8913085d901375c1b4e0b118a4221'),
'wiki.or': ('wiki.or.npz', '7e274ab060219b019aa02bb97941cc6e162fd01f'),
'wiki.os': ('wiki.os.npz', '19e8199cc2aaffdb07b6c558dbc5465ac6e03155'),
'wiki.pag': ('wiki.pag.npz', 'eddf4931547649026c02f893297ef673ec6158bb'),
'wiki.pam': ('wiki.pam.npz', '40109aa174bd9f0fa657839bb548e2b0646c58d3'),
'wiki.pa': ('wiki.pa.npz', '8a5870717e9e641b1f757f13259171698118de2e'),
'wiki.pap': ('wiki.pap.npz', '999c8e5b005ca20d9998fbbe4fa79177f69e24c0'),
'wiki.pcd': ('wiki.pcd.npz', 'e975066b323a65cdc5e4c27138ef674d2cf7250b'),
'wiki.pdc': ('wiki.pdc.npz', '5c770b9d56f276b0aa535845f175c05ee1cea615'),
'wiki.pfl': ('wiki.pfl.npz', '0063d0b633ee529a75482b36ed4f4da7d64994ec'),
'wiki.pih': ('wiki.pih.npz', 'ce1d76c94d248545eea0d7436c54849dbb380bfc'),
'wiki.pi': ('wiki.pi.npz', 'c7d56c334bf529f8b3655693d207a80feaec4aed'),
'wiki.pl': ('wiki.pl.npz', '0d612fdf871a1a4084c867f394940475be899443'),
'wiki.pms': ('wiki.pms.npz', 'ca149a2fb138011315bb6d5d61c7a5647e515e51'),
'wiki.pnb': ('wiki.pnb.npz', '9ec82d02ad8894056c67991cf8ce927bcca74ee2'),
'wiki.pnt': ('wiki.pnt.npz', '3f90123407bb8fc838a0a0d3700a14e15f5b26aa'),
'wiki.ps': ('wiki.ps.npz', '7edebc02ac16f5fab83eb10b7d0fab821a9a4d43'),
'wiki.pt': ('wiki.pt.npz', 'f172fd801edd1ad9d319ba44146d40b5d682a473'),
'wiki.qu': ('wiki.qu.npz', '68bec60ccfe1826c3b3a8968574488dbc74cdf7b'),
'wiki.rm': ('wiki.rm.npz', '00fb191fc736ba60cb23e76169dfccde9a9daad0'),
'wiki.rmy': ('wiki.rmy.npz', 'c5e93cc37ff7293b9a1d9fe55c42d6fbde372b97'),
'wiki.rn': ('wiki.rn.npz', '57b8e0d6999269be227af6ef2797a9cf8386ff1b'),
'wiki.roa_rup': ('wiki.roa_rup.npz', 'e06d6b5672a59bb9e83143bc8b28300d23c09546'),
'wiki.roa_tara': ('wiki.roa_tara.npz', 'c083105f40236dc3711f06c1b40e8ee7a714b99d'),
'wiki.ro': ('wiki.ro.npz', '766bc0cb58a65b0b1763b9a0d90e91ab982eb20d'),
'wiki.rue': ('wiki.rue.npz', '9a91fa093cd48d7d658d526b0ccda48dc59cd7f4'),
'wiki.ru': ('wiki.ru.npz', 'd59d099481c22d5592ab9635c9ee48060aa0bf45'),
'wiki.rw': ('wiki.rw.npz', 'e99ee87d249f6c157c5c97397d1025d798b85c69'),
'wiki.sah': ('wiki.sah.npz', '85dae39097b29bc8e2b64f343a77794e4a62f91a'),
'wiki.sa': ('wiki.sa.npz', '7d1928d7c67400045ac1b35a37a0e3089690d875'),
'wiki.scn': ('wiki.scn.npz', '27d7b8050bbeed8ce196061c610216760b053c39'),
'wiki.sc': ('wiki.sc.npz', '69c7b8be0f03a1bbd615695f93bdd78f96a58e16'),
'wiki.sco': ('wiki.sco.npz', '4880282f59d3338b67fbff75359e2d24896e95bb'),
'wiki.sd': ('wiki.sd.npz', '0ed8da4d27223db717a612cf0c88582351db6e19'),
'wiki.se': ('wiki.se.npz', '0f4b2e060d5e29f96ca73aab29c967e79db69c17'),
'wiki.sg': ('wiki.sg.npz', 'a5e4edf34fe1a88b322da4c3922ec5a470e200c6'),
'wiki.sh': ('wiki.sh.npz', 'c13f1e94676bc939560193f7aa7ffd7d604707b3'),
'wiki.simple': ('wiki.simple.npz', '352d0575e7d60b08e1dfce2c5de713906f0ed78f'),
'wiki.si': ('wiki.si.npz', '204f9ffbe7770a9f56d3b2fb26999165015f5c33'),
'wiki.sk': ('wiki.sk.npz', '7a9820b5a343b242660bf2595d1ecbf6e00a76d6'),
'wiki.sl': ('wiki.sl.npz', '85f3186f26d6725317a64e290363a7251b928b81'),
'wiki.sm': ('wiki.sm.npz', '9e13452cc4bff677f4f15db04f9d2f95f6ec054c'),
'wiki.sn': ('wiki.sn.npz', 'e8d5f7dcf51280c5f99bc3df849b4889a61e9fcd'),
'wiki.so': ('wiki.so.npz', '0f5d71b95768b33fd939a870c15344c4478364a9'),
'wiki.sq': ('wiki.sq.npz', '8b05826df8575e65c87a2fc0b7630cf644d4216d'),
'wiki.srn': ('wiki.srn.npz', '2711396ef297ac5dde8904508bc002bdecbcc6f4'),
'wiki.sr': ('wiki.sr.npz', '546edc8e29a5d2e99ed10eb4a552cbef2bb8f417'),
'wiki.ss': ('wiki.ss.npz', '2e5911bad79bb5270a64f587e326d31c95ec58f3'),
'wiki.st': ('wiki.st.npz', '23bc954719a2962e891f02efaea754c9ea025894'),
'wiki.stq': ('wiki.stq.npz', 'dd3ece0c0aa30e53ae0f4b558309bb60ab628652'),
'wiki.su': ('wiki.su.npz', '7e48732e8a1fcf212e692924a4416a6ac3b3b055'),
'wiki.sv': ('wiki.sv.npz', 'b9ec52e9423688f195f3145c243226c0e0b51e83'),
'wiki.sw': ('wiki.sw.npz', '5262f0c645322b10eca73f792a970f10b2719e55'),
'wiki.szl': ('wiki.szl.npz', 'fdd6d6b291cdbbcec5ff93451a588fdd103bb2d0'),
'wiki.ta': ('wiki.ta.npz', 'da7c5bc6e1142306ff2669bf1739832beb6c1763'),
'wiki.tcy': ('wiki.tcy.npz', 'baa49e1afa2bb0dcaaef0fac1ee75bbe711d1134'),
'wiki.te': ('wiki.te.npz', 'baf48767ce85e4d41d65d25f2bbf1c5f559ec18f'),
'wiki.tet': ('wiki.tet.npz', '11e46a893af55344dbe102d530fdfea5d949d3bc'),
'wiki.tg': ('wiki.tg.npz', 'da66abb72ec9ccc602713161e544963d59cc51d7'),
'wiki.th': ('wiki.th.npz', '25e54bf2d305779ec9baa5f344410bd75c7702fc'),
'wiki.ti': ('wiki.ti.npz', '1faf98f3a0eafa7559a4b2a111f43dd1f7b9a05b'),
'wiki.tk': ('wiki.tk.npz', '34c714fa8275fd6abfe86b2d144a043774552a6c'),
'wiki.tl': ('wiki.tl.npz', '7d7f8a0485155bce7a74a1d778824375b0029f53'),
'wiki.tn': ('wiki.tn.npz', 'd0bc3a9b948753ac2283e5e10480c9fa0f6acb53'),
'wiki.to': ('wiki.to.npz', 'e982fc31bcfcf7339988d7aad21ce29ac9e84b0b'),
'wiki.tpi': ('wiki.tpi.npz', '448cef043fa4b7f97825dbf8ee205ef05543bcac'),
'wiki.tr': ('wiki.tr.npz', 'c9830607a4c5134c6191006f1d80bae0ec798fe6'),
'wiki.ts': ('wiki.ts.npz', '84a0598803712c8a713943447ddb73fc0f39af43'),
'wiki.tt': ('wiki.tt.npz', '82c29df18f33e6284af3e977a6dda7e132a7a225'),
'wiki.tum': ('wiki.tum.npz', '358990b894a3fb09d70674465952d828c9b0eda7'),
'wiki.tw': ('wiki.tw.npz', '1e6d2838a4f271c1808795fb929cfcbf95094d93'),
'wiki.ty': ('wiki.ty.npz', 'e41ca5192d8cb515b3561c8d6935b150deb027b7'),
'wiki.tyv': ('wiki.tyv.npz', 'ce062ed32e854604714b65698ae290c99ba28060'),
'wiki.udm': ('wiki.udm.npz', '9e1c5891ee0c5ac8f65fc457e1b42c7b2bfc8d37'),
'wiki.ug': ('wiki.ug.npz', '656503e54063e200980e39f00fc011395bcd8551'),
'wiki.uk': ('wiki.uk.npz', '352b7ee24d9fc6513fff4fe13bc04086c680834a'),
'wiki.ur': ('wiki.ur.npz', 'a81e55c7adfc2cef779ce9a01fe21319a7e4943b'),
'wiki.uz': ('wiki.uz.npz', 'd60d1e67bb8574dd71c18c88114aba674fc1eecb'),
'wiki.ve': ('wiki.ve.npz', '5bfc3dbb3e47d23597df47ef12bd1c64ab8d3ea9'),
'wiki.vep': ('wiki.vep.npz', '7a94355754fbe56802242c0bf9d7a27335095552'),
'wiki.vi': ('wiki.vi.npz', 'f118039eb16a4ca3347b6b171eac41113350a041'),
'wiki.vls': ('wiki.vls.npz', '9a46a2fdc6448aa54f212081643745499ea7d05c'),
'wiki.vo': ('wiki.vo.npz', '8e2f93c85ac608bcc4ae14093b9ff016061378fb'),
'wiki.wa': ('wiki.wa.npz', '907074f7743d30cdbb2c48d0c8b4040796ea4164'),
'wiki.war': ('wiki.war.npz', '928fb410c394b9c18d875326b6a3e750e2611e1b'),
'wiki.wo': ('wiki.wo.npz', '7bb352be44f7261aa926f49b13e77df30f29312f'),
'wiki.wuu': ('wiki.wuu.npz', '0d1dc7b05867ff2156a1180ad3da3b4697924e59'),
'wiki.xal': ('wiki.xal.npz', 'd87f4a131e086dc0bdc2a7e10406820c3c03b6a9'),
'wiki.xh': ('wiki.xh.npz', 'c64e1d2e77d1c744a628e2bd7353284616e48bea'),
'wiki.xmf': ('wiki.xmf.npz', '160b9ee9773b9099aaf37ae9bdbc8a4a93b7f6ea'),
'wiki.yi': ('wiki.yi.npz', '0662542cee29f3392fc905004ac6443b32c1477c'),
'wiki.yo': ('wiki.yo.npz', '5d12d3b902a1fa19d8548295c3802c0608afa5c8'),
'wiki.za': ('wiki.za.npz', '536348ff89df62e968739b567a1245bfd4112fbe'),
'wiki.zea': ('wiki.zea.npz', '61fa192289a7c0f73ffa8035632a38b91c31c224'),
'wiki.zh_classical': ('wiki.zh_classical.npz', '9acc9eaf8ebe316b945fb1f56ac71a2b7e024854'),
'wiki.zh_min_nan': ('wiki.zh_min_nan.npz', '5d38bc025c82af578299d60f7df7b399de6ed81a'),
'wiki.zh': ('wiki.zh.npz', '94007fcf3b105bf2c21b84a3a22bdb7946e74804'),
'wiki.zh_yue': ('wiki.zh_yue.npz', 'af6f0d94e6418d528d6cedd859e07e6e2fb416ab'),
'wiki.zu': ('wiki.zu.npz', 'fc9ce07d5d0c49a3c86cf1b26056ada58f9404ca'),
'cc.af.300': ('cc.af.300-6cf6fb1b.npz', '6cf6fb1b9f890787cbd3b510ef6201de9e02a297'),
'cc.als.300': ('cc.als.300-479a6674.npz', '479a66746401f6119a7e4cba58ddfac5f9937ba6'),
'cc.am.300': ('cc.am.300-0d9530cd.npz', '0d9530cd2b7e4bc9eac96048ed5cbf7d3cc9f799'),
'cc.an.300': ('cc.an.300-ef9cb799.npz', 'ef9cb799a5a627a9d33b54604aff1593e0de3b40'),
'cc.ar.300': ('cc.ar.300-e9c5e360.npz', 'e9c5e360d5cd050effd9ce42f831b9c94b7ffbd9'),
'cc.arz.300': ('cc.arz.300-9e6a80e7.npz', '9e6a80e752f3830b5cc934884d0a65f8cf94eff4'),
'cc.as.300': ('cc.as.300-8b00a681.npz', '8b00a681b079d56929bedf1ced16b3c9573c5b37'),
'cc.ast.300': ('cc.ast.300-8681d5cb.npz', '8681d5cbbdfd89bed0a9335a8e6f28617185627a'),
'cc.az.300': ('cc.az.300-06632ae7.npz', '06632ae75e85f75caa9b87f8327661333a504ccc'),
'cc.azb.300': ('cc.azb.300-01c48025.npz', '01c480257a8343fd18d1d9011dd14ef5c3f124a2'),
'cc.ba.300': ('cc.ba.300-afc6b4d1.npz', 'afc6b4d1e77964965fd8cc2ff31e077286af81e4'),
'cc.bar.300': ('cc.bar.300-67450b87.npz', '67450b879ae9d6d5e1b7c7150baab9173563d38a'),
'cc.bcl.300': ('cc.bcl.300-261d8d11.npz', '261d8d11ca9fe67a12de812976398722b30e1df2'),
'cc.be.300': ('cc.be.300-cd32b101.npz', 'cd32b101a860ae629f05ee90beb2a8f137ed8bc2'),
'cc.bg.300': ('cc.bg.300-088de1c6.npz', '088de1c633cbfe8e06405badd685bc04f2127cfd'),
'cc.bh.300': ('cc.bh.300-35ced78e.npz', '35ced78e8dc524f17e7ba4a5326b6bbeb92af4e1'),
'cc.bn.300': ('cc.bn.300-98293882.npz', '98293882fc548c2047f5482ea4dcd5eedef58f13'),
'cc.bo.300': ('cc.bo.300-7653c3c7.npz', '7653c3c76bfb21a3f4e655b4a3d347d6b5e1ebc3'),
'cc.bpy.300': ('cc.bpy.300-8225d2db.npz', '8225d2db3bbd34c1f27e491b41d35e1f4394f529'),
'cc.br.300': ('cc.br.300-ac611b58.npz', 'ac611b58dd6006dc741170ea4066aeff8b8b7a0c'),
'cc.bs.300': ('cc.bs.300-be17aeed.npz', 'be17aeedde87cdd173a3508edf2762311df5b369'),
'cc.ca.300': ('cc.ca.300-8e7f57c1.npz', '8e7f57c190a9a4bd5513b9d268b5a26f55202fe0'),
'cc.ce.300': ('cc.ce.300-7ef28422.npz', '7ef28422df058d6be07c819c195b9ce50be5a985'),
'cc.ceb.300': ('cc.ceb.300-25801d42.npz', '25801d429ed046998749cb07526533b9c63bded2'),
'cc.ckb.300': ('cc.ckb.300-c56f75b4.npz', 'c56f75b46cc38357f38f7de51d46e97c66381ca0'),
'cc.co.300': ('cc.co.300-f9394c12.npz', 'f9394c1285bf6d5d33b1c28387535e1010a1d4c6'),
'cc.cs.300': ('cc.cs.300-82823bbf.npz', '82823bbfc29ec94051b72079939eb66d5db4d1bf'),
'cc.cv.300': ('cc.cv.300-6862885d.npz', '6862885d97a2c84792bf7f291338008757eb5790'),
'cc.cy.300': ('cc.cy.300-c649c74c.npz', 'c649c74c0ca139d80e19b9a98b5f5d15386393d7'),
'cc.da.300': ('cc.da.300-ee9246dc.npz', 'ee9246dc34da5fa1e2d49d37395b169598488324'),
'cc.de.300': ('cc.de.300-713dc52f.npz', '713dc52f1c24b5c31e4104aee9d92e7e26bd6db9'),
'cc.diq.300': ('cc.diq.300-fdc37a8e.npz', 'fdc37a8e2357e922bc27f945f1e080d80fbcae5a'),
'cc.dv.300': ('cc.dv.300-d37b74b2.npz', 'd37b74b2247761723126b92183857f5e32a4f17c'),
'cc.el.300': ('cc.el.300-888b3ecf.npz', '888b3ecfc9f3e16349d15cc85b5453a90f524529'),
'cc.eml.300': ('cc.eml.300-01926a33.npz', '01926a335cb7055270066d07a9d050a786398adf'),
'cc.en.300': ('cc.en.300-79da8fea.npz', '79da8fea1408d642ce43a5fdf40c3c803a49db2c'),
'cc.eo.300': ('cc.eo.300-02accc23.npz', '02accc23007b196a0bab9be70dcfe911fb8fa87c'),
'cc.es.300': ('cc.es.300-a0063528.npz', 'a00635289e65081d50fc46bb39203e48115b5d20'),
'cc.et.300': ('cc.et.300-2916e309.npz', '2916e309a61ba0b83761ed9b4f75d959ad59247f'),
'cc.eu.300': ('cc.eu.300-0257399f.npz', '0257399f1433ca579aeaf625f897b01c2f041438'),
'cc.fa.300': ('cc.fa.300-d5aca585.npz', 'd5aca58546a99513e1f96b6df7a52b95ace2247a'),
'cc.fi.300': ('cc.fi.300-ed53841e.npz', 'ed53841e29ebf6d701ee4c96a10c25f2ecc8a904'),
'cc.fr.300': ('cc.fr.300-c87b8969.npz', 'c87b89697779a76650b5a583a5d682809d73a794'),
'cc.frr.300': ('cc.frr.300-dd4b3bdf.npz', 'dd4b3bdf9d6df61f7e9e94cdf754dee46ec15fa7'),
'cc.fy.300': ('cc.fy.300-7eb20794.npz', '7eb20794c65568e6fabe5c9df974d1951035a819'),
'cc.ga.300': ('cc.ga.300-8d09df0e.npz', '8d09df0e774f7ac3fe7cafb8ed67dd58388743a9'),
'cc.gd.300': ('cc.gd.300-606435bb.npz', '606435bba611f1c77a59e684ac44c3e852d31beb'),
'cc.gl.300': ('cc.gl.300-a58a25da.npz', 'a58a25da563958c3ae70fc023c4f25bd2fc8a75d'),
'cc.gom.300': ('cc.gom.300-ec42b285.npz', 'ec42b285a4cbb43ca76056ea0873f0a3b4c19a2e'),
'cc.gu.300': ('cc.gu.300-ddfdc7d5.npz', 'ddfdc7d5351cbf95838050af53c76e874a013f3d'),
'cc.gv.300': ('cc.gv.300-df66ebec.npz', 'df66ebec5580e2e8ce5ed42b0116768ac1e63d43'),
'cc.he.300': ('cc.he.300-bd197a43.npz', 'bd197a43f2600b73f42480f901f8fafb9056e334'),
'cc.hi.300': ('cc.hi.300-e8f1a8ee.npz', 'e8f1a8ee11d469ee007ac66f1a6ae2d9cf996fde'),
'cc.hif.300': ('cc.hif.300-cd787567.npz', 'cd7875675c126764f76394435d114a0405a6341b'),
'cc.hr.300': ('cc.hr.300-f33745d1.npz', 'f33745d1c8e966932d5034f248bcc22b7f8d2297'),
'cc.hsb.300': ('cc.hsb.300-2c0e9847.npz', '2c0e9847177614324fd271e9c9fa5524969090e9'),
'cc.ht.300': ('cc.ht.300-3192d8a6.npz', '3192d8a632af0d617d9a9c9e78f4015d0f594131'),
'cc.hu.300': ('cc.hu.300-08a106da.npz', '08a106da56e64d2b8db4306cbacc99086b49659d'),
'cc.hy.300': ('cc.hy.300-935747f2.npz', '935747f2a88dff9edf957723fe4736d6ebcf1d6a'),
'cc.ia.300': ('cc.ia.300-737f4b78.npz', '737f4b78c4fa857a575ea01e6946217b69616ee9'),
'cc.id.300': ('cc.id.300-b50ae07a.npz', 'b50ae07a0663023c3c117305c05b09143a167700'),
'cc.ilo.300': ('cc.ilo.300-02b500a7.npz', '02b500a7e10d206239aa502590ff4768840e29c0'),
'cc.io.300': ('cc.io.300-aaf228a7.npz', 'aaf228a78ce7dc1138181a32011c4d495e383e81'),
'cc.is.300': ('cc.is.300-2f612f20.npz', '2f612f20cfdcd68b5eb46dacef4ba30f00069f55'),
'cc.it.300': ('cc.it.300-5b21ee40.npz', '5b21ee408ab99c35a2bdd25e716975e0b73182ad'),
'cc.ja.300': ('cc.ja.300-89cf6cb7.npz', '89cf6cb70985ca841246139719028103e7a932f8'),
'cc.jv.300': ('cc.jv.300-85d4a52b.npz', '85d4a52b83150aa46ea60887d58e12f5b8fbc732'),
'cc.ka.300': ('cc.ka.300-048778a9.npz', '048778a9ac39f9e4fc2b216f5fe752864c793295'),
'cc.kk.300': ('cc.kk.300-f29ac700.npz', 'f29ac7000778e5adea0c9aa00f11fdcc47386adf'),
'cc.km.300': ('cc.km.300-b9a2073f.npz', 'b9a2073f8d325e49934ac919cbe222ac84ef77af'),
'cc.kn.300': ('cc.kn.300-034e4f17.npz', '034e4f17d08351a890896d9b7d2573a88d0fc230'),
'cc.ko.300': ('cc.ko.300-28e7ae64.npz', '28e7ae64e994b9989f042323ec6f15f5ad7a53d2'),
'cc.ku.300': ('cc.ku.300-82496bfd.npz', '82496bfd5e23f697b17ae4f351c1a13b12f482b5'),
'cc.ky.300': ('cc.ky.300-4efb03dc.npz', '4efb03dc26319fd813edfe7cd1c1f373d134ac97'),
'cc.la.300': ('cc.la.300-8adf2142.npz', '8adf2142b05825aa040d4b96afee9f08b00b94fe'),
'cc.lb.300': ('cc.lb.300-8945d3df.npz', '8945d3dfb24fbe5ac9391aa10296f9a18992c380'),
'cc.li.300': ('cc.li.300-0b6aee43.npz', '0b6aee432ca667db8b06dfb29fd249d00df7a275'),
'cc.lmo.300': ('cc.lmo.300-a02cf032.npz', 'a02cf032a3af3a035bec24b2b225048bf0f86eb5'),
'cc.lt.300': ('cc.lt.300-2b682e7d.npz', '2b682e7d30e739c4090fef65593d29f40f1323f9'),
'cc.lv.300': ('cc.lv.300-c2453825.npz', 'c24538254050ce393b7ed8a018ed27a693c9dfa1'),
'cc.mai.300': ('cc.mai.300-4bc11fe3.npz', '4bc11fe3470e23c79ad5bc2a16283ede92857f9b'),
'cc.mg.300': ('cc.mg.300-2b644c0f.npz', '2b644c0fe3d32d89cf4a91a62b30a8cdf84eb69e'),
'cc.mhr.300': ('cc.mhr.300-f9216c88.npz', 'f9216c883afb62c0fd890f1df1f076fda48d534d'),
'cc.min.300': ('cc.min.300-0d8c3a77.npz', '0d8c3a7709acb9386c9bfb29294c56923e2fe160'),
'cc.mk.300': ('cc.mk.300-bf1caa91.npz', 'bf1caa91a2376a6e4cae5576e84c00bd7b4d53ea'),
'cc.ml.300': ('cc.ml.300-0c3baa74.npz', '0c3baa74f062367e00c2df09446480df4ef45b79'),
'cc.mn.300': ('cc.mn.300-4ce878ea.npz', '4ce878ea1e15afffefa257374a8e265bc26b9d19'),
'cc.mr.300': ('cc.mr.300-a9e08f9d.npz', 'a9e08f9d21627dc34318208aebb0b7a8f78aeb47'),
'cc.mrj.300': ('cc.mrj.300-1ebb04f1.npz', '1ebb04f175c1e115c77167222cbfc434474dbf11'),
'cc.ms.300': ('cc.ms.300-05216b2f.npz', '05216b2f3f76af940bd343135be243c8ed5f0de5'),
'cc.mt.300': ('cc.mt.300-2a3ba408.npz', '2a3ba408205f3552f432d97fca3de797aa086c62'),
'cc.mwl.300': ('cc.mwl.300-e758f2b4.npz', 'e758f2b42482ad9d1caf1d4f46f8873a61f6e0ce'),
'cc.my.300': ('cc.my.300-443b1674.npz', '443b16746ef8f23d64a397b21b1d0ae5707d1e5c'),
'cc.myv.300': ('cc.myv.300-67d19cef.npz', '67d19ceffa23cb376c309f9e985222579abb9ac1'),
'cc.mzn.300': ('cc.mzn.300-ce441f50.npz', 'ce441f50a28f0b1f02b47ee1608297750ef0cabd'),
'cc.nah.300': ('cc.nah.300-ba4c46c0.npz', 'ba4c46c0089109c65cfc25735c5000845345d56e'),
'cc.nap.300': ('cc.nap.300-489727c7.npz', '489727c7e8241f98c0c7049387a12a101f625226'),
'cc.nds.300': ('cc.nds.300-6265356d.npz', '6265356d5822372b15ca5103b5ef43f8b3ff4a1c'),
'cc.ne.300': ('cc.ne.300-6b66b354.npz', '6b66b3542ec091054c2735cb3358b349c8ca3a87'),
'cc.new.300': ('cc.new.300-f4747761.npz', 'f4747761d9827340fd8074a08e61769ab3a7cc11'),
'cc.nl.300': ('cc.nl.300-1867fc6d.npz', '1867fc6d6f466fb0d2f46623530c21f4c149197b'),
'cc.nn.300': ('cc.nn.300-3ce324ef.npz', '3ce324eff15cd595e81bb1882d23b7948772f400'),
'cc.no.300': ('cc.no.300-6e39d0d5.npz', '6e39d0d5e205c7106be0a601dbd59455f17c97e1'),
'cc.nso.300': ('cc.nso.300-90ba6fda.npz', '90ba6fdac1eb6d14d6de69b6a794a2a6194ea5a2'),
'cc.oc.300': ('cc.oc.300-c66e395b.npz', 'c66e395bce5ad97815b7273556b6225e72b76a0d'),
'cc.or.300': ('cc.or.300-8b14cde1.npz', '8b14cde1cee9858052430c9ecc6cfa8a16fcab39'),
'cc.os.300': ('cc.os.300-1a888846.npz', '1a8888460713455b33f9cd2ddd957a1afda6ce45'),
'cc.pa.300': ('cc.pa.300-185e0f43.npz', '185e0f4361f927fca6c0ff27cf8e1963d627041c'),
'cc.pam.300': ('cc.pam.300-9ac2a111.npz', '9ac2a1112ffbe96cc9ba226a4cc9331f696db6e9'),
'cc.pfl.300': ('cc.pfl.300-ca0cddb4.npz', 'ca0cddb47b061380b2522041d9472ca06240b92f'),
'cc.pl.300': ('cc.pl.300-98c4c23c.npz', '98c4c23c78824a3801d05f9d67a696f9fcc40683'),
'cc.pms.300': ('cc.pms.300-cbd33047.npz', 'cbd3304720df204b5c8ec576e3abf9306728f5d4'),
'cc.pnb.300': ('cc.pnb.300-66b69add.npz', '66b69addc40b633af8d06c7d5fd8066ac64c8a2c'),
'cc.ps.300': ('cc.ps.300-ce11c971.npz', 'ce11c97193ee28cdb53ed72c68b20465a607f957'),
'cc.pt.300': ('cc.pt.300-985866df.npz', '985866df8e19f52f410e6251b82e3bb4494b0d1d'),
'cc.qu.300': ('cc.qu.300-0ae2e211.npz', '0ae2e2111ee2e7aab1116b587fe302d86ab3641e'),
'cc.rm.300': ('cc.rm.300-b2367a7f.npz', 'b2367a7f72e26ab5a844b7d8483a455dc73e1994'),
'cc.ro.300': ('cc.ro.300-682eda30.npz', '682eda308c2a14041e71d0d0588dd17681294ec5'),
'cc.ru.300': ('cc.ru.300-0f9c3b90.npz', '0f9c3b905669e0f2a32196bc2a391fe2ef40f5a4'),
'cc.sa.300': ('cc.sa.300-1d0f5bfd.npz', '1d0f5bfdc3118f9ad77e704a7d808c9231cb13eb'),
'cc.sah.300': ('cc.sah.300-f8532800.npz', 'f85328005fd0d2f0f09cbdc24760b20180b537c4'),
'cc.sc.300': ('cc.sc.300-dcb4fb26.npz', 'dcb4fb26874067e449f609f9b2cd138b60606d33'),
'cc.scn.300': ('cc.scn.300-e72c5de7.npz', 'e72c5de7693efab12d6f9a6508c0a5fa8845bd04'),
'cc.sco.300': ('cc.sco.300-13d0662d.npz', '13d0662d930c18bf0c8dff7efc01219712d38351'),
'cc.sd.300': ('cc.sd.300-baf6b5af.npz', 'baf6b5afa56fd93d78175307b3d84dbad85d2710'),
'cc.sh.300': ('cc.sh.300-b6958a18.npz', 'b6958a18612551a7b325022fcbbdfa2637fb4411'),
'cc.si.300': ('cc.si.300-c846206f.npz', 'c846206fd77cdb5619752e3cb448dbcc0dac61b6'),
'cc.sk.300': ('cc.sk.300-4fc2be73.npz', '4fc2be73972027f55f88e288dc3c0ecb2a6fba42'),
'cc.sl.300': ('cc.sl.300-6b735538.npz', '6b7355380cee5320c42b1aa8d41226a562bc6407'),
'cc.so.300': ('cc.so.300-f09c2019.npz', 'f09c2019099cd0ae488810a26ceea3437c450711'),
'cc.sq.300': ('cc.sq.300-c55b576c.npz', 'c55b576c14d06489d6105a7a1d9126e181877030'),
'cc.sr.300': ('cc.sr.300-887cf83d.npz', '887cf83d9525573407f4206b268e6e3c31266403'),
'cc.su.300': ('cc.su.300-224e9974.npz', '224e99745371a890c6c944aae94d6c5d637876b5'),
'cc.sv.300': ('cc.sv.300-c5266ab8.npz', 'c5266ab8ee8a1c093b9437c6b598659c72dd1f7e'),
'cc.sw.300': ('cc.sw.300-829d1ca0.npz', '829d1ca09c78d52280497fd257883292b53e8bc7'),
'cc.ta.300': ('cc.ta.300-f8e9bee4.npz', 'f8e9bee4ea31e6952ff582855200ade217c11d9b'),
'cc.te.300': ('cc.te.300-19b7470c.npz', '19b7470cd59e6a67986267cf9171c6d02340c1d1'),
'cc.tg.300': ('cc.tg.300-069920da.npz', '069920da67fcaba58e2bd5f4bd505e3cd0b325ab'),
'cc.th.300': ('cc.th.300-17f28dd9.npz', '17f28dd9fabe987d6017ed4ed0897e3f01ab18a2'),
'cc.tk.300': ('cc.tk.300-ac4be8fe.npz', 'ac4be8fe39901913ac0ae5b9ec023ffdb2c4ccdd'),
'cc.tl.300': ('cc.tl.300-919ed791.npz', '919ed791c7cc2f7f1a214611fa12d32187f186c5'),
'cc.tr.300': ('cc.tr.300-cbd537c6.npz', 'cbd537c606cd41c6a90e2de71ad7dc2902e63363'),
'cc.tt.300': ('cc.tt.300-c38d9317.npz', 'c38d93176d6fa35658352bd74a0fb81e0edf3d3a'),
'cc.ug.300': ('cc.ug.300-d99daa00.npz', 'd99daa007459f8129508fdd3ffcab135083309d5'),
'cc.uk.300': ('cc.uk.300-a20e9dab.npz', 'a20e9dab63d727dc4c03a99caf66c8a194a2f96e'),
'cc.ur.300': ('cc.ur.300-57ca0636.npz', '57ca06364b7413195d75adda61c00f972ab1a43e'),
'cc.uz.300': ('cc.uz.300-0f2eef78.npz', '0f2eef78cc68f14a89b6b6a2d6ac4b6613d080e9'),
'cc.vec.300': ('cc.vec.300-c9bfa76a.npz', 'c9bfa76a5dc2787923f26ea314f3a5a957fcd00c'),
'cc.vi.300': ('cc.vi.300-44d740f4.npz', '44d740f4044cb2cd8d442327c17b99c359a8ca43'),
'cc.vls.300': ('cc.vls.300-08e7eaba.npz', '08e7eaba113d6084d1a25958165428486caf7d19'),
'cc.vo.300': ('cc.vo.300-792d3a79.npz', '792d3a7983bb4560d05932d1a2de35203c6b9479'),
'cc.wa.300': ('cc.wa.300-bfc87d4c.npz', 'bfc87d4c6738770afd3b9f0f5e7adccd79131a03'),
'cc.war.300': ('cc.war.300-d8a9082f.npz', 'd8a9082f98ebd8b312cafbc90c50a8ab421dc06b'),
'cc.xmf.300': ('cc.xmf.300-8bc1fdf1.npz', '8bc1fdf1db5f2716a2d6542c3ae6d5a4abbd2506'),
'cc.yi.300': ('cc.yi.300-33533193.npz', '33533193c9b710d2ca283e8978b83e3842ea8f5d'),
'cc.yo.300': ('cc.yo.300-9dc5edde.npz', '9dc5eddeee3354f3f587ecdca73caf01080c399d'),
'cc.zea.300': ('cc.zea.300-c0a4fb02.npz', 'c0a4fb025aab6774db52d6a845108f5cf8738508'),
'cc.zh.300': ('cc.zh.300-355cfcaf.npz', '355cfcafe71536226a1737aafb4530c9ba4fd09f'),
}
FAST_TEXT_BIN_SHA1 = {
'wiki-news-300d-1M-subword': ('wiki-news-300d-1M-subword-c8853bda.bin',
'c8853bdae00318097b6337c4631d342879d6b18c'),
'crawl-300d-2M-subword': ('crawl-300d-2M-subword-e6b07293f.bin',
'e6b07293f7b0095e3c72c2a12bc09464b69444b0'),
'cc.af.300': ('cc.af.300-33115ff8.bin', '33115ff8e4c8f439757c819399177f1f58f07f12'),
'cc.als.300': ('cc.als.300-d6579933.bin', 'd65799331a03895d68a3fbe7611b181d7e7cc916'),
'cc.am.300': ('cc.am.300-999b3e95.bin', '999b3e95a2c490d7fcab2a6e08074746303d3c17'),
'cc.an.300': ('cc.an.300-65f5c5b8.bin', '65f5c5b88d1c8181ce60aff4275d14e8a7c4ae53'),
'cc.ar.300': ('cc.ar.300-44333e53.bin', '44333e5344fe66e78322b05bf53d6047925097ee'),
'cc.arz.300': ('cc.arz.300-430f08ff.bin', '430f08ffc7f9391ed09c781fabc30baf568b8d47'),
'cc.as.300': ('cc.as.300-e85d59f6.bin', 'e85d59f6fe2e908b3caab3a8bc9bfd23d6885eb2'),
'cc.ast.300': ('cc.ast.300-4bdc4520.bin', '4bdc452067cc838e49a1544902941470ff685b12'),
'cc.az.300': ('cc.az.300-10a62cca.bin', '10a62cca45f99e977accd28912ee18c74332080e'),
'cc.azb.300': ('cc.azb.300-5f148a4f.bin', '5f148a4f2d8feecb217da604ca02fabd0fc112fd'),
'cc.ba.300': ('cc.ba.300-9310a2c1.bin', '9310a2c11fda72ec87493bd4d65330537911b09a'),
'cc.bar.300': ('cc.bar.300-35ab084b.bin', '35ab084b3e3972419534bd60197a564c27ca90e0'),
'cc.bcl.300': ('cc.bcl.300-cf0fb2f8.bin', 'cf0fb2f8f1cbd04ad12bebb9846d7636333de556'),
'cc.be.300': ('cc.be.300-ac4ef017.bin', 'ac4ef017d975f0649c294f57fb83a3bddf55e137'),
'cc.bg.300': ('cc.bg.300-a5a375ef.bin', 'a5a375ef5f670c0a0926aa1a8025df3190cfc2d0'),
'cc.bh.300': ('cc.bh.300-776d7f4d.bin', '776d7f4d102a574cffba45a43b1913b2e23c6d94'),
'cc.bn.300': ('cc.bn.300-e327bd67.bin', 'e327bd678adbda1b4ace3e020a0329f6146d9f6f'),
'cc.bo.300': ('cc.bo.300-33174d4f.bin', '33174d4f9ffa87f71c401260a5a6008cdaac61cb'),
'cc.bpy.300': ('cc.bpy.300-4f8f3598.bin', '4f8f35987bc35b30d11b189f7066c41510331d4e'),
'cc.br.300': ('cc.br.300-7a48b869.bin', '7a48b869104057ba097c210d847de2f76ec748fb'),
'cc.bs.300': ('cc.bs.300-8a237bd9.bin', '8a237bd9a530f8feee7feaab583d89028e26be8d'),
'cc.ca.300': ('cc.ca.300-db0f7120.bin', 'db0f7120e03604c8dcedb57582cee4f7d5d9c90c'),
'cc.ce.300': ('cc.ce.300-5f8cebac.bin', '5f8cebac11c1fbbb23540655f83d8afe1b1a7760'),
'cc.ceb.300': ('cc.ceb.300-89a4764f.bin', '89a4764f1ff3dc073a76fda3290f04fe5adf83ac'),
'cc.ckb.300': ('cc.ckb.300-990d1cef.bin', '990d1cef7d7d36c12f7b9afe2381251169417499'),
'cc.co.300': ('cc.co.300-836763a0.bin', '836763a0b4e40facde79983f5156d8c6a875dffb'),
'cc.cs.300': ('cc.cs.300-884c693a.bin', '884c693a557633cd711bcd2888a4088bdc74723e'),
'cc.cv.300': ('cc.cv.300-0dfbf016.bin', '0dfbf0168205c4ca02fd7f249c8a4f7caec6ea2a'),
'cc.cy.300': ('cc.cy.300-cb4b9534.bin', 'cb4b953463170fa209c2ce9991bea3a07575e9de'),
'cc.da.300': ('cc.da.300-6b65b204.bin', '6b65b204ff034184c785678655ffc9fa7b642b34'),
'cc.de.300': ('cc.de.300-fc6e4385.bin', 'fc6e438502a3b8aadf119d117f85120a3cc28bae'),
'cc.diq.300': ('cc.diq.300-490f18c4.bin', '490f18c4a8963ca511a8d064da68eddd05f44e7f'),
'cc.dv.300': ('cc.dv.300-4ffe23d6.bin', '4ffe23d6bd18a1ba6273601e543932abf69d4651'),
'cc.el.300': ('cc.el.300-7a89986b.bin', '7a89986b681f178b92f3af015aaa4900ba6dd6a6'),
'cc.eml.300': ('cc.eml.300-8a6221bf.bin', '8a6221bfd1d98e1d14c89db54436d17f505b065d'),
'cc.en.300': ('cc.en.300-53588c22.bin', '53588c22cac7f8bf504169f671206b60da21d9b2'),
'cc.eo.300': ('cc.eo.300-5d9aeebb.bin', '5d9aeebb2c19807839ef68b5c5f7897d1e8ddd3a'),
'cc.es.300': ('cc.es.300-e9f8c041.bin', 'e9f8c04142005cadae449f016e1bebf7ae254307'),
'cc.et.300': ('cc.et.300-3f4391ed.bin', '3f4391edec8cf6aafcf9857bf465439f00b84a1a'),
'cc.eu.300': ('cc.eu.300-142f1337.bin', '142f1337d51569f9254a50bdcfe125c028f28bb5'),
'cc.fa.300': ('cc.fa.300-3d6ad675.bin', '3d6ad6750c27ad94e3498314a985d81bf20130f0'),
'cc.fi.300': ('cc.fi.300-edbd8e6e.bin', 'edbd8e6e56ab951429911ce7a16d51260773e81c'),
'cc.fr.300': ('cc.fr.300-35ea5d6b.bin', '35ea5d6b86011a5b85d0671d133acf8aded5fc54'),
'cc.frr.300': ('cc.frr.300-d87f646a.bin', 'd87f646a6c3559263217941255856da48d159e4d'),
'cc.fy.300': ('cc.fy.300-fd96db60.bin', 'fd96db60715adb8aaddc85123e14b3d081ef0ad3'),
'cc.ga.300': ('cc.ga.300-520acbd7.bin', '520acbd7771703194c8e99b28094ea54fa86a3c7'),
'cc.gd.300': ('cc.gd.300-781ceb1c.bin', '781ceb1cceaa107adea7c0434677c74906c05e4c'),
'cc.gl.300': ('cc.gl.300-b71ae11d.bin', 'b71ae11d25dfecfa3dfe83e49b24a85037e83b43'),
'cc.gom.300': ('cc.gom.300-65ba9b91.bin', '65ba9b9172c78600b5fcccd7514e6f5cb6b34750'),
'cc.gu.300': ('cc.gu.300-d717959d.bin', 'd717959de35ffdc4be47ea282181f3118fa6af05'),
'cc.gv.300': ('cc.gv.300-15fb06cb.bin', '15fb06cbfed61516a6014cb04f45e3876b154ae2'),
'cc.he.300': ('cc.he.300-743fbd32.bin', '743fbd320942c5c48bb4347beb9f24aa5d3b46f4'),
'cc.hi.300': ('cc.hi.300-75e919aa.bin', '75e919aa43832d6a7f08b8e05d9ddff562ead072'),
'cc.hif.300': ('cc.hif.300-0c25528b.bin', '0c25528b1f156a61205b96817b0fa9995fa5a2b3'),
'cc.hr.300': ('cc.hr.300-ab167ebb.bin', 'ab167ebb9a5cdd999500fd1beac2229796923795'),
'cc.hsb.300': ('cc.hsb.300-62fb0705.bin', '62fb07054f659ce5d9f2e2dda67133649b432611'),
'cc.ht.300': ('cc.ht.300-292d0eeb.bin', '292d0eebf256811b9cc7d6cd5dccf039d5083cf9'),
'cc.hu.300': ('cc.hu.300-9d660157.bin', '9d660157bc371de60ead317cce852d506544f0e2'),
'cc.hy.300': ('cc.hy.300-fa5ac6a1.bin', 'fa5ac6a1eb9e1e4e047bbf8343ea042ded75dd40'),
'cc.ia.300': ('cc.ia.300-a01758dc.bin', 'a01758dcab7138e5f67e9fd58c23b18e88142b4b'),
'cc.id.300': ('cc.id.300-609f02da.bin', '609f02daa0c13e544c52314452bf077f6f769019'),
'cc.ilo.300': ('cc.ilo.300-199068ee.bin', '199068ee56ce25ac16b6ba70c3ae337f8eed9d96'),
'cc.io.300': ('cc.io.300-80565e7e.bin', '80565e7e7e71b28e247ebb85da1e767cc62e7c38'),
'cc.is.300': ('cc.is.300-b228019a.bin', 'b228019ac716a60a4da057e787a64b0b53c1a1ec'),
'cc.it.300': ('cc.it.300-411f0ed7.bin', '411f0ed74448758f25c66699eec582ff5f9d2cc2'),
'cc.ja.300': ('cc.ja.300-806f7e68.bin', '806f7e68c0c832afb5d70f0c072189fbb4d44108'),
'cc.jv.300': ('cc.jv.300-af9d3f82.bin', 'af9d3f823a4d87c0dcf85d8b7ba753e1145cc4f9'),
'cc.ka.300': ('cc.ka.300-7189ff30.bin', '7189ff30be4d8e45b394149b1fd9f3db794e3b42'),
'cc.kk.300': ('cc.kk.300-621de409.bin', '621de40935e740a063a945402111b3bb7c619c08'),
'cc.km.300': ('cc.km.300-6410e183.bin', '6410e1832df131f309337416e4ed07a19bd22d9f'),
'cc.kn.300': ('cc.kn.300-dfcf2d68.bin', 'dfcf2d68bf43a1dcbb5d01e5076db16132e27d8f'),
'cc.ko.300': ('cc.ko.300-b7990877.bin', 'b7990877d498f084adf300f63b53565bc868b520'),
'cc.ku.300': ('cc.ku.300-eb62ada0.bin', 'eb62ada0e5bf9cf0535f1fe80d47b136665a8e3a'),
'cc.ky.300': ('cc.ky.300-01ae0d23.bin', '01ae0d2346e12e30b7ac0422cfd1f3ad6cb701da'),
'cc.la.300': ('cc.la.300-08e402f3.bin', '08e402f3d0d10da67444890fe15ca09e563f11a6'),
'cc.lb.300': ('cc.lb.300-c3b5e0a3.bin', 'c3b5e0a3ee790f21f12c17f6302e73ba0ee644f7'),
'cc.li.300': ('cc.li.300-b7c9c792.bin', 'b7c9c79273458c4110786f4a89c1fa0ec9bcaa80'),
'cc.lmo.300': ('cc.lmo.300-b7da2fe8.bin', 'b7da2fe85b58341e63379a0e22ccb84a7d2466ba'),
'cc.lt.300': ('cc.lt.300-73413b3f.bin', '73413b3f0072abf2eb7666795d77e9f0e85b327a'),
'cc.lv.300': ('cc.lv.300-725f5e2a.bin', '725f5e2a1e66173d73cbf103fceb5f86844e2278'),
'cc.mai.300': ('cc.mai.300-3de31332.bin', '3de31332d7afde6a93e3d05c05212d27ea538d3d'),
'cc.mg.300': ('cc.mg.300-0c7757e2.bin', '0c7757e2b3417cea49c679291e6e7bfe8f3653d5'),
'cc.mhr.300': ('cc.mhr.300-1013afe9.bin', '1013afe9cd1428e5915feebc3a2b189d8d77f9d0'),
'cc.min.300': ('cc.min.300-1d684a9b.bin', '1d684a9bead229e94c9b538fc9aebb1235c6e68f'),
'cc.mk.300': ('cc.mk.300-f9ba6f8e.bin', 'f9ba6f8eddb4e577bf44475f831984c70e371719'),
'cc.ml.300': ('cc.ml.300-bc6a2b1c.bin', 'bc6a2b1c2743bc2749fc8072a8276e2beb3f9a22'),
'cc.mn.300': ('cc.mn.300-7637ae47.bin', '7637ae47bb925fa77fe82dbe2d20eb3c56b517ee'),
'cc.mr.300': ('cc.mr.300-3e5eb45e.bin', '3e5eb45e7475dd3115ef5cc91e7b0257989fde18'),
'cc.mrj.300': ('cc.mrj.300-1593ea78.bin', '1593ea786cfcf70ba4feffda09de2dc2f2bcf80d'),
'cc.ms.300': ('cc.ms.300-a743adf6.bin', 'a743adf6420ad8a7aa146d9218f14d1bdf5c3285'),
'cc.mt.300': ('cc.mt.300-87c3b72c.bin', '87c3b72cfcd0383d7edb8f4075106f51d5e6b03c'),
'cc.mwl.300': ('cc.mwl.300-5d3cc773.bin', '5d3cc7739062030b9733f5dcbd64fdb1f3d397ec'),
'cc.my.300': ('cc.my.300-b84b8c93.bin', 'b84b8c93cbb60178ada74e23caf85cf443208739'),
'cc.myv.300': ('cc.myv.300-ccf32608.bin', 'ccf32608c23258ff0b381b07ee6b4a1374fac29f'),
'cc.mzn.300': ('cc.mzn.300-00c010f4.bin', '00c010f4c43e3ddb4fcdc29b4a946dafd5196151'),
'cc.nah.300': ('cc.nah.300-052fcbbc.bin', '052fcbbc5fd6891ef38250b3731987e480ba072d'),
'cc.nap.300': ('cc.nap.300-aa45c158.bin', 'aa45c158119e095eb186098e47b8037dcca0c847'),
'cc.nds.300': ('cc.nds.300-c934b13a.bin', 'c934b13ab1a06ea288461b12b9065a13d6e6438e'),
'cc.ne.300': ('cc.ne.300-7f70c5b9.bin', '7f70c5b9b7b9f598c041c7d8454d1d12e41005df'),
'cc.new.300': ('cc.new.300-4f8f8762.bin', '4f8f876293ff7096f4fe0ed13148dd116bf57ce5'),
'cc.nl.300': ('cc.nl.300-fb2cb6e7.bin', 'fb2cb6e75fff23b26d220395b6e2869be083722e'),
'cc.nn.300': ('cc.nn.300-085e9ef7.bin', '085e9ef79e6bb147d53081a407d598658562dab1'),
'cc.no.300': ('cc.no.300-d3028680.bin', 'd3028680f0e5458d2272ea14ee56a10820e4e406'),
'cc.nso.300': ('cc.nso.300-6cc24a78.bin', '6cc24a78780f4da1a18d5da310217dc21acc1977'),
'cc.oc.300': ('cc.oc.300-8cee765a.bin', '8cee765a77d21044792895b4fe32d56e8287c200'),
'cc.or.300': ('cc.or.300-64fb17ff.bin', '64fb17ffcd76db9836be3a8c553b0c973232b4fa'),
'cc.os.300': ('cc.os.300-e5c880f6.bin', 'e5c880f6499b1ea9f9d554d0ea356f914e4c4657'),
'cc.pa.300': ('cc.pa.300-3673544d.bin', '3673544dea157cfcae180fe5a444457c7bed462e'),
'cc.pam.300': ('cc.pam.300-1e894611.bin', '1e894611ec170839348af1f767164230f7225c94'),
'cc.pfl.300': ('cc.pfl.300-ac9babfd.bin', 'ac9babfd17941341fdd06f9dc23aeb3dd315952a'),
'cc.pl.300': ('cc.pl.300-ea55590b.bin', 'ea55590b385ca9c8ff409a807a4635624c73693e'),
'cc.pms.300': ('cc.pms.300-523564e9.bin', '523564e993e7925c706c039d444c4048fa19658e'),
'cc.pnb.300': ('cc.pnb.300-d09b6003.bin', 'd09b6003f0852f698f9589523e717c3be9b0e230'),
'cc.ps.300': ('cc.ps.300-0cb19e87.bin', '0cb19e874d83664980312fa659f1f7269f1459e4'),
'cc.pt.300': ('cc.pt.300-e69e6c5b.bin', 'e69e6c5b1ba0e802755c227d2161106caabb6b3d'),
'cc.qu.300': ('cc.qu.300-f99c269d.bin', 'f99c269de57ff62ec2a580307e239d80d6c0ac1a'),
'cc.rm.300': ('cc.rm.300-20d2cdcd.bin', '20d2cdcd8fbb49e000eb588e969046f4a4058c9b'),
'cc.ro.300': ('cc.ro.300-30900544.bin', '309005440433a108017444689d8605709c5bd0ee'),
'cc.ru.300': ('cc.ru.300-fd892a10.bin', 'fd892a10914cde02c4f1348f9b03d25d45e0d2d3'),
'cc.sa.300': ('cc.sa.300-91f3b393.bin', '91f3b3931e2b6f4ab6fb092032df7218d400d330'),
'cc.sah.300': ('cc.sah.300-ea2c7d00.bin', 'ea2c7d00ccfd6b02a928d1f9326986c64cc6e558'),
'cc.sc.300': ('cc.sc.300-6879c580.bin', '6879c58057dd2eeff50ef158fe53a26ae9050070'),
'cc.scn.300': ('cc.scn.300-4fb8dad7.bin', '4fb8dad71966dffe5c70efe330a1f881df6227dd'),
'cc.sco.300': ('cc.sco.300-191f6929.bin', '191f6929dcf10e7d6198529108156b9dd48b23be'),
'cc.sd.300': ('cc.sd.300-de045844.bin', 'de045844a43e931db0183bdce996110a8593aa63'),
'cc.sh.300': ('cc.sh.300-529f81f1.bin', '529f81f1d5fec8c2208e976a11406c93de3e8920'),
'cc.si.300': ('cc.si.300-c66d404a.bin', 'c66d404a889326a06e20c3cfe7eea80d866a1d13'),
'cc.sk.300': ('cc.sk.300-2ed40f6a.bin', '2ed40f6aa0bcd369d1450bcea9b0cfab16e6d6d0'),
'cc.sl.300': ('cc.sl.300-da689ced.bin', 'da689cedcfef7914985e6085df7d0c4ef68da657'),
'cc.so.300': ('cc.so.300-07b7260a.bin', '07b7260aff73dc829cb49eb2bd72584122337b7f'),
'cc.sq.300': ('cc.sq.300-440b0444.bin', '440b04440edb4d26751c4b13010d0335972808d8'),
'cc.sr.300': ('cc.sr.300-23f9d7d9.bin', '23f9d7d93f7f4d0bfb73dea047eae5f4d67aef23'),
'cc.su.300': ('cc.su.300-5d7d8243.bin', '5d7d82438fb71594a31ea46c0b5580ac41b37ece'),
'cc.sv.300': ('cc.sv.300-6fafdc44.bin', '6fafdc4452a30350ded92e9309bea658f2a31279'),
'cc.sw.300': ('cc.sw.300-73909439.bin', '7390943941f25d75fe2bdd9894b2d49f32b1a74b'),
'cc.ta.300': ('cc.ta.300-2e0386c4.bin', '2e0386c410927b53eafbc63b07ab45ff27d6dac9'),
'cc.te.300': ('cc.te.300-e77f5ea9.bin', 'e77f5ea9e2e726607bdfc6634cf5eac0b9f7d5b5'),
'cc.tg.300': ('cc.tg.300-ba451c18.bin', 'ba451c18ba027b5e12fb1d129aefe1dc8e10b451'),
'cc.th.300': ('cc.th.300-5b8a7299.bin', '5b8a729925df8059de767a393e1c9cfef8d94a41'),
'cc.tk.300': ('cc.tk.300-3f602443.bin', '3f602443ebee0d49cc181f4f21f21bd9590a31d5'),
'cc.tl.300': ('cc.tl.300-afee5714.bin', 'afee5714639cfe4d145bf1ef6294da065bc65b37'),
'cc.tr.300': ('cc.tr.300-5ac2d698.bin', '5ac2d698881a330dfeb554c43cd3737605f04e66'),
'cc.tt.300': ('cc.tt.300-8b467e9d.bin', '8b467e9d9834df62075829c00a007618280a3980'),
'cc.ug.300': ('cc.ug.300-8dd88596.bin', '8dd88596669dba3822a701baab0fabb5c97ed7cb'),
'cc.uk.300': ('cc.uk.300-89630e2d.bin', '89630e2d47dac2e0c7a2036e4a6021b5323dd5aa'),
'cc.ur.300': ('cc.ur.300-997b377c.bin', '997b377c148c50f9e39ccf085e2316e23da54228'),
'cc.uz.300': ('cc.uz.300-7f1e67da.bin', '7f1e67dae218977ffc2da9c7160a4ac268fa4199'),
'cc.vec.300': ('cc.vec.300-21e1d068.bin', '21e1d068086afcaecc3fa585b72697eb5ca3aeee'),
'cc.vi.300': ('cc.vi.300-3c52cba2.bin', '3c52cba2d0c5fbf781eef4068e31f6c53ba7ed8f'),
'cc.vls.300': ('cc.vls.300-6ffd43bb.bin', '6ffd43bb11eceec01fd5f0d6fefc96f9c14a17f1'),
'cc.vo.300': ('cc.vo.300-70751ce3.bin', '70751ce3c3867fa9ddc5fd7e435fcc9f1334e796'),
'cc.wa.300': ('cc.wa.300-eaca4696.bin', 'eaca46968edb721849fc99e15647f9f0f2df3eca'),
'cc.war.300': ('cc.war.300-a89f1676.bin', 'a89f1676dba8d7beae42828c71b43f749da7cbfd'),
'cc.xmf.300': ('cc.xmf.300-bb054a64.bin', 'bb054a64c6e287173224fbc7bf19f7a365a5866f'),
'cc.yi.300': ('cc.yi.300-38a25707.bin', '38a257077225bf544e5ac95d36125ccd26f1e45a'),
'cc.yo.300': ('cc.yo.300-cecf6563.bin', 'cecf6563658de3082db9a197e8e5382d4a9c5b25'),
'cc.zea.300': ('cc.zea.300-ac403268.bin', 'ac4032686216c76784c743c33e703109584d0a3f'),
'cc.zh.300': ('cc.zh.300-bbab54e0.bin', 'bbab54e09aa1de478a02de1c2c7c71c3a8d1f4a9'),
'wiki.aa': ('wiki.aa-19450d26.bin', '19450d26509c90a0a6f00114fb8d25f58e108d90'),
'wiki.ab': ('wiki.ab-4c3cc463.bin', '4c3cc4637cf8c75abc4377c40e5238d15e506264'),
'wiki.ace': ('wiki.ace-1d107b15.bin', '1d107b158e94cff010021775ad4d440035d375c0'),
'wiki.ady': ('wiki.ady-568aebce.bin', '568aebce6b718077f8faa8441a7bd6ffdbbae821'),
'wiki.af': ('wiki.af-e4c40da8.bin', 'e4c40da87e6628c32d82a736d0178298b8dc612d'),
'wiki.ak': ('wiki.ak-c1c81013.bin', 'c1c81013d6ec19ad97fbf145df71f72341ff95f0'),
'wiki.als': ('wiki.als-a77c3e58.bin', 'a77c3e58b0e13eb2a43dc43b4a519dc9f1a10fe8'),
'wiki.am': ('wiki.am-18ab66cf.bin', '18ab66cfc9d1ae84679acc2edb4696ac79b77aec'),
'wiki.an': ('wiki.an-ad4f3886.bin', 'ad4f3886c2f4794349bf45ddc7af700ce3941aa6'),
'wiki.ang': ('wiki.ang-1053783b.bin', '1053783bb06e698f1705bd7244cad81134dae6ff'),
'wiki.ar': ('wiki.ar-48738c73.bin', '48738c73a1438a8b615335deff77864556e783eb'),
'wiki.arc': ('wiki.arc-9e0740db.bin', '9e0740dbf20d39fccd4b7bed2be329b06cf7270b'),
'wiki.arz': ('wiki.arz-32384b81.bin', '32384b8102596a459436caf02031d29a2fb31b2a'),
'wiki.as': ('wiki.as-50765f8c.bin', '50765f8c2a6bb827b843165aa6ab4b25ffb340c2'),
'wiki.ast': ('wiki.ast-0b3e9cd0.bin', '0b3e9cd0c14ad6e72847f549cf4e2d684c23e2fc'),
'wiki.av': ('wiki.av-26427883.bin', '2642788376154d8fc10e0f50eefd6ebd956d8211'),
'wiki.ay': ('wiki.ay-3926337d.bin', '3926337dc3162e5eb369d2c4141aa19d43de7e77'),
'wiki.az': ('wiki.az-7e1aa3b5.bin', '7e1aa3b54e75aa381104a36d32e9b2b943c58416'),
'wiki.azb': ('wiki.azb-2a3112fe.bin', '2a3112fedf2eeee37d929f2e24e6ce93651c1e58'),
'wiki.ba': ('wiki.ba-ddb26431.bin', 'ddb2643124e4d67da1099a6bb7c34ccda9c4d54b'),
'wiki.bar': ('wiki.bar-76a67a05.bin', '76a67a057330963a89845248718e9c0cf43042e6'),
'wiki.bat_smg': ('wiki.bat_smg-e6bb57b0.bin', 'e6bb57b0c61e2e4486b29c8437f073893111bc12'),
'wiki.bcl': ('wiki.bcl-f9b50b40.bin', 'f9b50b40c7398b441db0d023b9546c5623ca81e6'),
'wiki.be': ('wiki.be-9de13c85.bin', '9de13c852c5e283ac3362d3debc9343dcaf851ed'),
'wiki.bg': ('wiki.bg-fa0e36e7.bin', 'fa0e36e702301e091dab5b50353f5b93ec99eda1'),
'wiki.bh': ('wiki.bh-4ea0c4ce.bin', '4ea0c4ce9fb9e7fcec9b102a1d21e51cbea54860'),
'wiki.bi': ('wiki.bi-d756a260.bin', 'd756a26035e8a4f4c556bfd40470a3504bf47380'),
'wiki.bjn': ('wiki.bjn-a6bda749.bin', 'a6bda7490f87734de0e9cb0996e6edd68b32d097'),
'wiki.bm': ('wiki.bm-ddae0aee.bin', 'ddae0aee51f99812ec418ca32ebc7bcb3d7d7afe'),
'wiki.bn': ('wiki.bn-84a5663f.bin', '84a5663fdeb61edf7a2076b313970d5cef5a1e58'),
'wiki.bo': ('wiki.bo-ee189a77.bin', 'ee189a7723d6d89088299b2f7b2b7c5c81c1a83c'),
'wiki.bpy': ('wiki.bpy-7c9cab8b.bin', '7c9cab8bc9317b2c9b782f3684956f62ce5253c9'),
'wiki.br': ('wiki.br-750d7016.bin', '750d7016b22ac7293214cb26e25562b1fc333165'),
'wiki.bs': ('wiki.bs-0a2fdd98.bin', '0a2fdd987687a7485f4a1030d013f7b707af2d56'),
'wiki.bug': ('wiki.bug-3937c2af.bin', '3937c2afd0b6bea60d31b600858002657319dfff'),
'wiki.bxr': ('wiki.bxr-2b522edb.bin', '2b522edb5fef85bf5c2818f84cc1ffd13e4ddf95'),
'wiki.ca': ('wiki.ca-fc711e4b.bin', 'fc711e4b5b67de1ebf6cd1f5f99bb09822953781'),
'wiki.cbk_zam': ('wiki.cbk_zam-b7832a19.bin', 'b7832a1932382f1ce89562042009055a914f7c1e'),
'wiki.cdo': ('wiki.cdo-e75244c2.bin', 'e75244c2d992bd14c0900546b950a707ee99c79a'),
'wiki.ce': ('wiki.ce-06dcd3ba.bin', '06dcd3bab08d2caabe5b8e5b7e7fcce233858a43'),
'wiki.ceb': ('wiki.ceb-35c5cd0f.bin', '35c5cd0f8aeef5a78a9113d0ef856e5470eb6400'),
'wiki.ch': ('wiki.ch-9bfefcab.bin', '9bfefcab247cef190bbcc711e2982c033df8faab'),
'wiki.cho': ('wiki.cho-7087a54a.bin', '7087a54a087863d5d7058d35478740cd3fdd716d'),
'wiki.chr': ('wiki.chr-5e93d639.bin', '5e93d6398b44467f8a57593656127cc3a601d361'),
'wiki.chy': ('wiki.chy-f119f436.bin', 'f119f43617ba2adbf6f7b10f573c3d6c8daa63a9'),
'wiki.ckb': ('wiki.ckb-49d6d997.bin', '49d6d99772cac2e25beeb02d9f8f055739d1f369'),
'wiki.co': ('wiki.co-dd8e6c6c.bin', 'dd8e6c6ce7d740c9a87f10a90b597df2d1a0d883'),
'wiki.cr': ('wiki.cr-a60b68fc.bin', 'a60b68fc163412717af9d50ce6f8cce90de6089a'),
'wiki.crh': ('wiki.crh-ae73e838.bin', 'ae73e83881604df8dfeb7ae558be351a57051080'),
'wiki.cs': ('wiki.cs-a41ff81a.bin', 'a41ff81af6ef6ff5f692d9719c90fac2261b7c21'),
'wiki.csb': ('wiki.csb-13121dd7.bin', '13121dd7558b3ea692d73c964bc721db6ccb8d9b'),
'wiki.cu': ('wiki.cu-968dea66.bin', '968dea66e5856289724c4d1c8290c1012ea97df3'),
'wiki.cv': ('wiki.cv-a87c66dc.bin', 'a87c66dc67a57af38333aeb375dd33e4c42f327f'),
'wiki.cy': ('wiki.cy-4cc3571e.bin', '4cc3571ed974dd877daa3b5ffaf486725d4436a0'),
'wiki.da': ('wiki.da-53f0da01.bin', '53f0da01b102ff17499678e0a3876146365b5de7'),
'wiki.de': ('wiki.de-2da44d3d.bin', '2da44d3d5ac758a7c1a169f66db4953a020b1df4'),
'wiki.diq': ('wiki.diq-f31f5534.bin', 'f31f5534d63a6adaf8fce1426fd2b8efa5dbb88e'),
'wiki.dsb': ('wiki.dsb-1b26e0af.bin', '1b26e0af41d67a4a8a0d4e2e97ff7d8f958daaac'),
'wiki.dv': ('wiki.dv-32a8ebf5.bin', '32a8ebf59405ad8f9919b18e27f2a2a79bdd3f3f'),
'wiki.dz': ('wiki.dz-594a371f.bin', '594a371f17bec9ab45514bf5cf26252be7bb8396'),
'wiki.ee': ('wiki.ee-e0003d72.bin', 'e0003d7287640101f6b9ecb69452cb47afa0d438'),
'wiki.el': ('wiki.el-9c824bd0.bin', '9c824bd0e0e6888e2bbc065a27e2b45ec4164e8b'),
'wiki.eml': ('wiki.eml-84490c6b.bin', '84490c6bedef5204c703b5ac5c9ee008147ddaa2'),
'wiki.en': ('wiki.en-8ca82682.bin', '8ca8268250f81b88119949e0fea5a6b81bcac809'),
'wiki.eo': ('wiki.eo-7baf04e3.bin', '7baf04e353a607bbddb36f439c4033097d854747'),
'wiki.es': ('wiki.es-422e6f75.bin', '422e6f7582adff418f527ceb01763296c60e1f31'),
'wiki.et': ('wiki.et-9cf101e3.bin', '9cf101e3cdb6cdf0b0cb16364769cbb26ef8875a'),
'wiki.eu': ('wiki.eu-f5637868.bin', 'f56378689a3c14d26b0b1df0483c5b96c9a1ec9f'),
'wiki.ext': ('wiki.ext-daefc0bc.bin', 'daefc0bc266f14f48a58e5ea632796adb9a36540'),
'wiki.fa': ('wiki.fa-0b8559e6.bin', '0b8559e6b6506e262de3fb55ea9dec03244badca'),
'wiki.ff': ('wiki.ff-4d6b11b3.bin', '4d6b11b3d6ccdfa2b06d91c78fd05d7a46106582'),
'wiki.fi': ('wiki.fi-d1d2f60d.bin', 'd1d2f60da48564f659072dee5b2de1306cf2b590'),
'wiki.fiu_vro': ('wiki.fiu_vro-fc73c1f3.bin', 'fc73c1f3caec0bff7ca7e3ec006c0c9757d2c8f2'),
'wiki.fj': ('wiki.fj-d3f97816.bin', 'd3f9781664886cd2e332623615a1db8b2781c925'),
'wiki.fo': ('wiki.fo-04aeaf7c.bin', '04aeaf7cef283cfdd6766af0c65f6a6b13f6040a'),
'wiki.fr': ('wiki.fr-ee1dde08.bin', 'ee1dde0800113dcd6124ccb643bd1004184b7559'),
'wiki.frp': ('wiki.frp-0f64bb1b.bin', '0f64bb1b389e30e3af163e526b72bfc4cab8eb7d'),
'wiki.frr': ('wiki.frr-576ebf02.bin', '576ebf02e6b9b0acf2ea9da6d35e1a5b2c98648b'),
'wiki.fur': ('wiki.fur-5ebed3c9.bin', '5ebed3c9e39243479326b288202b9e11d1c434c2'),
'wiki.fy': ('wiki.fy-811bc386.bin', '811bc3864418110fe914f555216372b2f79b7fb5'),
'wiki.ga': ('wiki.ga-77b3aa66.bin', '77b3aa6640cc25536b965f5dc512503d8d0c2a6a'),
'wiki.gag': ('wiki.gag-a732c376.bin', 'a732c376f771309bc196fa8758fd5100c67627f6'),
'wiki.gan': ('wiki.gan-40a8cfd9.bin', '40a8cfd9889646aa722c32dac2e0a5c76689c6a1'),
'wiki.gd': ('wiki.gd-0dcdb67d.bin', '0dcdb67d346f0f9abc41554b7ca13190aa8fab16'),
'wiki.gl': ('wiki.gl-44a91a4c.bin', '44a91a4cf3aaaa68feaa3dc10e16f03cb7d41e53'),
'wiki.glk': ('wiki.glk-43f0bf43.bin', '43f0bf43b98d2e0477b0671ee9fce7f2cb8da6a3'),
'wiki.gn': ('wiki.gn-29975179.bin', '2997517997b93f71613b9d008e6d95f68a01ad4b'),
'wiki.gom': ('wiki.gom-08ba082b.bin', '08ba082b769cf631bfcd100631bfdda77980aa54'),
'wiki.got': ('wiki.got-bfe0a90d.bin', 'bfe0a90d91343f24c8f9faea325f40395ab8bb8e'),
'wiki.gu': ('wiki.gu-7d49d055.bin', '7d49d05551425e5661f968b9cc0354e15ea0405f'),
'wiki.gv': ('wiki.gv-eeea71f6.bin', 'eeea71f64e24c80ff07482825f1ce26be19a69fd'),
'wiki.ha': ('wiki.ha-87a99090.bin', '87a990900d4a74055303585b4d4a89ab7bf0aa47'),
'wiki.hak': ('wiki.hak-c652e7ff.bin', 'c652e7ff3d63676307bcbd9f4241fb1c6b8cf7ff'),
'wiki.haw': ('wiki.haw-4f2d842b.bin', '4f2d842b730bec90d0268bff9ca2c8f41fc33987'),
'wiki.he': ('wiki.he-9c5eb5cd.bin', '9c5eb5cda37954c481d2053bd4e553bbfd34deb4'),
'wiki.hi': ('wiki.hi-1ca0898a.bin', '1ca0898af562c2ec90a06860ebb27b5a7b0b8cf4'),
'wiki.hif': ('wiki.hif-8876acba.bin', '8876acbaf8195b94724179aab516234b06f3812a'),
'wiki.ho': ('wiki.ho-8bc406a1.bin', '8bc406a1defb5703a743a5b424c169b26ffb347c'),
'wiki.hr': ('wiki.hr-b06384ed.bin', 'b06384ede2bbacae89cb7e94cc9457b0905b410c'),
'wiki.hsb': ('wiki.hsb-c9cc78b6.bin', 'c9cc78b6e9c1eb2ec3ad57e0f47f2312134de86c'),
'wiki.ht': ('wiki.ht-da38ff9e.bin', 'da38ff9e8e8e61672422316cba888f2f35fbf9f5'),
'wiki.hu': ('wiki.hu-a7cd92e6.bin', 'a7cd92e6880b53ee880a7b9de6767a8bd77c9f1a'),
'wiki.hy': ('wiki.hy-e23e7c36.bin', 'e23e7c36fe63418d46621efee4d4a5248fa7b9ce'),
'wiki.hz': ('wiki.hz-1a43df11.bin', '1a43df118a1a21f3c9c2d7d43f1cc30900569fdb'),
'wiki.ia': ('wiki.ia-439e6f2f.bin', '439e6f2f0bf209b7e36e166c8c7e0af6aba34cd2'),
'wiki.id': ('wiki.id-4ed7d4aa.bin', '4ed7d4aabb54f0af97ca35e31b79711bec2a033e'),
'wiki.ie': ('wiki.ie-7b0a9761.bin', '7b0a97617ddaf155b898ed9281ff5d2e78e428ef'),
'wiki.ig': ('wiki.ig-f588d85a.bin', 'f588d85a10ba426ab4825aaaf66d4a87e82b22dd'),
'wiki.ii': ('wiki.ii-3214212c.bin', '3214212c59f85e40a6fcd1ceb00b36428c1dcc17'),
'wiki.ik': ('wiki.ik-6bf795cf.bin', '6bf795cf8233e6bfd312f943d301ff5ce70d70b7'),
'wiki.ilo': ('wiki.ilo-17eb1eff.bin', '17eb1eff170510e85874f83136ead4cc9a2121a6'),
'wiki.io': ('wiki.io-3f7d30f3.bin', '3f7d30f3abed949dbd089c67e0131f0412fdc84f'),
'wiki.is': ('wiki.is-e246137d.bin', 'e246137db426f11ec6eb3cbf1bcd1152b0ce0aab'),
'wiki.it': ('wiki.it-d3019ee2.bin', 'd3019ee2bdafaac7fbb3b9590ce4af35887e3ecc'),
'wiki.iu': ('wiki.iu-25d55802.bin', '25d558026b0f65cbadd485f63f335faacd192dbd'),
'wiki.ja': ('wiki.ja-7f4f37fa.bin', '7f4f37fad9c4cff36b221d73bdd8a2d6c5d96518'),
'wiki.jam': ('wiki.jam-32f692c1.bin', '32f692c1f817d4a5f64e98942e50cfe24356cb43'),
'wiki.jbo': ('wiki.jbo-2cada509.bin', '2cada509f2e32a01af248c11b76f1e3de313997f'),
'wiki.jv': ('wiki.jv-2def005b.bin', '2def005b119888a0940302704639c6d47c452839'),
'wiki.ka': ('wiki.ka-deed211e.bin', 'deed211e28a45a7cec32e9a4a6e0b8015bb5c75a'),
'wiki.kaa': ('wiki.kaa-31a0f80c.bin', '31a0f80cb3a6e6d1d435489cfbc6a778e6177cbc'),
'wiki.kab': ('wiki.kab-01dfdf1f.bin', '01dfdf1fcaf0888df6e43bb12e6f680c33181032'),
'wiki.kbd': ('wiki.kbd-b753b4d4.bin', 'b753b4d4584d3ee158a0e65de8cf1e684b9204a6'),
'wiki.kg': ('wiki.kg-bd1f271d.bin', 'bd1f271dc512d5e5e6100ddeb09d92ef20f5735b'),
'wiki.ki': ('wiki.ki-6044fff2.bin', '6044fff24b0951468438c10bd17a67c3042d3df5'),
'wiki.kj': ('wiki.kj-b4c8d6ad.bin', 'b4c8d6ad7b89e596e92b4ab275758837961c074a'),
'wiki.kk': ('wiki.kk-3357eee9.bin', '3357eee9c3193859b2a254e7e03167f9e133aefa'),
'wiki.kl': ('wiki.kl-2ae394ee.bin', '2ae394ee6b61bac8732b97a8b09783e2d49e7a64'),
'wiki.km': ('wiki.km-ef0eed3b.bin', 'ef0eed3b83c8f54c7f124fd3f8d9c0200d981f8a'),
'wiki.kn': ('wiki.kn-7ba6e9f2.bin', '7ba6e9f2da563dbd9a657032c8eb99c5b56cdba3'),
'wiki.ko': ('wiki.ko-ae46f52b.bin', 'ae46f52bd2534a01b601449af7f2eccfa1c06719'),
'wiki.koi': ('wiki.koi-fa0c7bdd.bin', 'fa0c7bdd198e6afd88b0f735796faa43a8dc33fb'),
'wiki.kr': ('wiki.kr-08696f70.bin', '08696f7016cc384fd8170e6cf485da5f17d1b7cd'),
'wiki.krc': ('wiki.krc-ff8a4631.bin', 'ff8a46318685e56cb5cf5eed87ec899c5352b963'),
'wiki.ks': ('wiki.ks-19d31479.bin', '19d31479421121b35d4f1281846033125f8c4ad7'),
'wiki.ksh': ('wiki.ksh-97112af8.bin', '97112af8d32fae08270e7a88cd4da3af85e23b35'),
'wiki.ku': ('wiki.ku-0ef76a6f.bin', '0ef76a6ff71586b155eda3273205b1b7b08cd73d'),
'wiki.kv': ('wiki.kv-a50d93bf.bin', 'a50d93bf0db87356b6e8f794a37c989392195277'),
'wiki.kw': ('wiki.kw-77ef77b3.bin', '77ef77b3323955a9825c992868ba83cb80775e8e'),
'wiki.ky': ('wiki.ky-3f5928bc.bin', '3f5928bca0dc2551c2a9d2b25a90aa957e9742bf'),
'wiki.la': ('wiki.la-3fe4d514.bin', '3fe4d51458c4b10878b671c8a7c0550b4e7d6baa'),
'wiki.lad': ('wiki.lad-753bb201.bin', '753bb20136b3372cdcddf3bf5cbbef2910039490'),
'wiki.lb': ('wiki.lb-827a0e46.bin', '827a0e46d57af4b8b59cd921a072ee0c0dd713ca'),
'wiki.lbe': ('wiki.lbe-2934dfa5.bin', '2934dfa5f791f36f46abff43fcafce5ea6726a59'),
'wiki.lez': ('wiki.lez-f344710f.bin', 'f344710ffb5eb75b59fb97b9a91be1d6c01329eb'),
'wiki.lg': ('wiki.lg-3c31935e.bin', '3c31935eeb7165c4bdc28a77644c82703e61deb7'),
'wiki.li': ('wiki.li-a9214c96.bin', 'a9214c96d8df517c68bf95c0e832905e85c7a6a9'),
'wiki.lij': ('wiki.lij-55fead2b.bin', '55fead2bf98a2ee9e19ba5890ac2d5d82679b21e'),
'wiki.lmo': ('wiki.lmo-b3a6ce73.bin', 'b3a6ce73aa41892ded828247f22cf41c71c5044d'),
'wiki.ln': ('wiki.ln-403279f9.bin', '403279f918ab9409df69f1582ad850aa02046696'),
'wiki.lo': ('wiki.lo-a5903d28.bin', 'a5903d2807e8088df6cef9e88ad9e3fc42dbe17e'),
'wiki.lrc': ('wiki.lrc-07de075f.bin', '07de075f09cb54767ec7e79114311ca5e58f6d3e'),
'wiki.lt': ('wiki.lt-62e95727.bin', '62e957278fe6c45f73071c4c91e68d4f02a9fe20'),
'wiki.ltg': ('wiki.ltg-1351a4b3.bin', '1351a4b3a671bd208f5a6527d9d9047124007f78'),
'wiki.lv': ('wiki.lv-991eae2a.bin', '991eae2ae2cbe77a89133bb42c5829f15cf59c9e'),
'wiki.mai': ('wiki.mai-56cee5cb.bin', '56cee5cbeb259bc26927e15baf68c7e0b88786ab'),
'wiki.map_bms': ('wiki.map_bms-87356c93.bin', '87356c93b166304986df7b5df52728e896d58180'),
'wiki.mdf': ('wiki.mdf-5c5f1c2c.bin', '5c5f1c2c499bed790b81c1954edad644b1d137aa'),
'wiki.mg': ('wiki.mg-a1b18be8.bin', 'a1b18be8864cc40d2ef5be324783de32e35d3c40'),
'wiki.mh': ('wiki.mh-14147c18.bin', '14147c18cd451b7693babf995edeafb1a03a6f01'),
'wiki.mhr': ('wiki.mhr-204edb17.bin', '204edb1741f0b04566f0e2a9bce46e8a2411ce32'),
'wiki.mi': ('wiki.mi-ef6b4e35.bin', 'ef6b4e35b9f3dc7aa8803bb422a48c72eaea64ec'),
'wiki.min': ('wiki.min-9a0a9ebc.bin', '9a0a9ebc607286f43cb6dc8cd06e2fa8c8986f12'),
'wiki.mk': ('wiki.mk-4100301f.bin', '4100301fafb6ff4c5531187c54c11e9f24679657'),
'wiki.ml': ('wiki.ml-e08b01b3.bin', 'e08b01b34318ca3eebedcfd6d44c832a0f16dd37'),
'wiki.mn': ('wiki.mn-f6a269d2.bin', 'f6a269d2225d518acbb45cc3f8c5cbc2a318ee30'),
'wiki.mo': ('wiki.mo-394239a3.bin', '394239a3d27bed433cad8c70e5bba16a0a30838c'),
'wiki.mr': ('wiki.mr-37b4bb82.bin', '37b4bb82fa499080e015b3081b85c8c3c5e3e6b9'),
'wiki.mrj': ('wiki.mrj-37ca837d.bin', '37ca837dde630945217e46ff4065e5a2e795bc93'),
'wiki.ms': ('wiki.ms-5b4ddb79.bin', '5b4ddb79ab02d5638ee69d60a6191b65fda5ce86'),
'wiki.mt': ('wiki.mt-b3323fa1.bin', 'b3323fa1038143a3e791bc352e6964f197213af5'),
'wiki.mus': ('wiki.mus-f005e240.bin', 'f005e2408799819e6337aa62afb8d92e713f60d6'),
'wiki.mwl': ('wiki.mwl-f0838820.bin', 'f0838820a819b3de537d6e2e01c543ffea2cf2fc'),
'wiki.my': ('wiki.my-d64aad4e.bin', 'd64aad4e6f5c6c7319d794e657e96718c752277f'),
'wiki.myv': ('wiki.myv-0464a2f4.bin', '0464a2f4ffde9637f93d59f2004e350b15b1f4eb'),
'wiki.mzn': ('wiki.mzn-872ffc98.bin', '872ffc987bff427a3bd7edab5850658f07611fed'),
'wiki.na': ('wiki.na-d7b31b79.bin', 'd7b31b7991767f4d328347dcc871d11dffdd629d'),
'wiki.nah': ('wiki.nah-712f2493.bin', '712f2493b87f6ce3f8991f842e91ae18f93e7357'),
'wiki.nap': ('wiki.nap-11b97cb5.bin', '11b97cb5d41fa479322a569dbaf79b7e3c26f819'),
'wiki.nds': ('wiki.nds-305ba618.bin', '305ba618d97b6b6b334a28df888ffe624ae4b9c9'),
'wiki.nds_nl': ('wiki.nds_nl-fb880749.bin', 'fb880749b3326a03de850e064a65f89a4e069e40'),
'wiki.ne': ('wiki.ne-72e739fd.bin', '72e739fd99cfda922ff3b8262550df087d59581d'),
'wiki.new': ('wiki.new-8f66c97a.bin', '8f66c97ab6e30c0ee9ff350818e7df2da18636a0'),
'wiki.ng': ('wiki.ng-bc569540.bin', 'bc569540c4fd3d4ddb6ab7bf1c63d3e576b0d0fa'),
'wiki.nl': ('wiki.nl-40d9776a.bin', '40d9776a8466d3eebdc9c8e6b385bdd3271ea126'),
'wiki.nn': ('wiki.nn-d4e5918c.bin', 'd4e5918cde9a4354dcc3c4174ae4fca97392b250'),
'wiki.no': ('wiki.no-18db3b96.bin', '18db3b96776c453b37c343c663516a9b937635ae'),
'wiki.nov': ('wiki.nov-3056416e.bin', '3056416e12e7d08fc4fdd85f0173a6dd72c40ab6'),
'wiki.nrm': ('wiki.nrm-1a0a8daf.bin', '1a0a8daf48da8476dcef8018bae70e20dd027e36'),
'wiki.nso': ('wiki.nso-977d9079.bin', '977d9079818970d709f50a1cd6a5917875b805fc'),
'wiki.nv': ('wiki.nv-4dfd868a.bin', '4dfd868ae77b006a34e873180698e7152aef910e'),
'wiki.ny': ('wiki.ny-ad7f85e7.bin', 'ad7f85e700fd386d88e5c82a53773afd493c7a3d'),
'wiki.oc': ('wiki.oc-289fe81d.bin', '289fe81dbadcbd7ea052545b73c46206c34864ec'),
'wiki.olo': ('wiki.olo-9721fefd.bin', '9721fefd1e1b1c3e51a0d8543f8c5473984fe2c4'),
'wiki.om': ('wiki.om-71345bb8.bin', '71345bb8c3186e27bd4d1d4808a8cb097903e1bf'),
'wiki.or': ('wiki.or-f55c1ca8.bin', 'f55c1ca84126f315312e2a7ed45e32ab91b8e636'),
'wiki.os': ('wiki.os-c0148462.bin', 'c0148462d638e5dc94cef3ec607d8b6ef9672156'),
'wiki.pa': ('wiki.pa-a0903f78.bin', 'a0903f78b47f32e11e4c62173bbedebb64a510e0'),
'wiki.pag': ('wiki.pag-00e02108.bin', '00e021082f3a14b5603be9cc201b145405498f2a'),
'wiki.pam': ('wiki.pam-dfe4c21c.bin', 'dfe4c21c29e4022f1ab848c060c3acb697d279f9'),
'wiki.pap': ('wiki.pap-a3766e93.bin', 'a3766e936218cbd5e8ac0c279209960a7908b15a'),
'wiki.pcd': ('wiki.pcd-986d648c.bin', '986d648ce805d15c3fa0e706c7a96c5d02e22298'),
'wiki.pdc': ('wiki.pdc-031d7283.bin', '031d7283179b75f0f62e427b58eef4ecc7211243'),
'wiki.pfl': ('wiki.pfl-826fc525.bin', '826fc525d7542d9c9a6ac3b72cfb01f438f6d33f'),
'wiki.pi': ('wiki.pi-c0ddd653.bin', 'c0ddd653f5c89cea4eca90de1b0a8f78111e77a4'),
'wiki.pih': ('wiki.pih-a71523db.bin', 'a71523dba29a0f98e6fd52c4bac3f984cdfcd0b2'),
'wiki.pl': ('wiki.pl-b600fdc2.bin', 'b600fdc2f1d62c062ec6028d0652ede539081381'),
'wiki.pms': ('wiki.pms-7e429bdf.bin', '7e429bdf7094257c372008d5ef1638f813f60da0'),
'wiki.pnb': ('wiki.pnb-08ab3d18.bin', '08ab3d185ebc76a6636cb4da169a6904361ba048'),
'wiki.pnt': ('wiki.pnt-14458f30.bin', '14458f3083992b5cddd87f2b9cbcd152377ff97b'),
'wiki.ps': ('wiki.ps-b86afb94.bin', 'b86afb94162924807dc8e4c75d80fcfb71acda76'),
'wiki.pt': ('wiki.pt-f971330c.bin', 'f971330cf54742dd17d1cb6245c1b3b468b42978'),
'wiki.qu': ('wiki.qu-7cbfa5fd.bin', '7cbfa5fdb2d41e0569209c4a297a54b80743bc17'),
'wiki.rm': ('wiki.rm-15cc9e74.bin', '15cc9e74f2ea0db93f8914a357e9b60840607b08'),
'wiki.rmy': ('wiki.rmy-fdc5afea.bin', 'fdc5afeae1f185a2a551e091bf3d7731ba92223d'),
'wiki.rn': ('wiki.rn-9859ac6f.bin', '9859ac6f33ae14670772f0fa06957127ffba60d8'),
'wiki.ro': ('wiki.ro-be264092.bin', 'be264092886bd9cdfa3e0fe43896ee7e7b8039ad'),
'wiki.roa_rup': ('wiki.roa_rup-ab463b13.bin', 'ab463b13e26f3c9ab99598ddcb722e70cf5bf35a'),
'wiki.roa_tara': ('wiki.roa_tara-073b0d19.bin', '073b0d192290b9c45463ddc11f043ff1ec42371e'),
'wiki.ru': ('wiki.ru-5fbe8dd5.bin', '5fbe8dd58e6f6f58fb430e948e4d6a3b6cd6b603'),
'wiki.rue': ('wiki.rue-1d09f6c5.bin', '1d09f6c53dc669f2fed52b511ba551c9ebb5caa4'),
'wiki.rw': ('wiki.rw-e5e6abb9.bin', 'e5e6abb981ce2898a10f19c092033111d881917b'),
'wiki.sa': ('wiki.sa-a651ca36.bin', 'a651ca363e7b431f9a2340557fa54163ff523764'),
'wiki.sah': ('wiki.sah-0a0642a3.bin', '0a0642a36a863726bf8009957505101b74e2d8ef'),
'wiki.sc': ('wiki.sc-9a6d6d82.bin', '9a6d6d82cb0bf57cf0b05ecaadfa0614712ddca7'),
'wiki.scn': ('wiki.scn-2beb5569.bin', '2beb556906fc10a70a5dc5d8359c57ddbb567620'),
'wiki.sco': ('wiki.sco-99406b00.bin', '99406b00be5c98fc69e561b2cd6bf29549514d5d'),
'wiki.sd': ('wiki.sd-f9bafcac.bin', 'f9bafcacfc1b99aa5235ef6ff23f0532a638a89d'),
'wiki.se': ('wiki.se-4ec410b7.bin', '4ec410b7963d85535bbc40429e3e74597aa102a3'),
'wiki.sg': ('wiki.sg-05416c3e.bin', '05416c3e636d6b4612966de3476262760dc1b6af'),
'wiki.sh': ('wiki.sh-d1262628.bin', 'd126262872b90d3d9d3d4a91c009a1a4a8ba6c38'),
'wiki.si': ('wiki.si-cba0721f.bin', 'cba0721fa9b6d6ef470da3f852c475cef2af793e'),
'wiki.simple': ('wiki.simple-67424112.bin', '67424112bc1879dc1288c9081ac3292aed1027e9'),
'wiki.sk': ('wiki.sk-42878f2a.bin', '42878f2afd7633bdb5c2b4f742c4d1b13377eb00'),
'wiki.sl': ('wiki.sl-3df13aa9.bin', '3df13aa9cf7c2c5a8b7a655e129cca46bc7635d7'),
'wiki.sm': ('wiki.sm-0b04a63e.bin', '0b04a63e3cdc04722530f7b1d60dfa01368191b8'),
'wiki.sn': ('wiki.sn-30f67c3f.bin', '30f67c3f26a074888813ebf67d9ae9c4d5863d2f'),
'wiki.so': ('wiki.so-8466ae2e.bin', '8466ae2ea133cac06cceb240934e826a9e304d89'),
'wiki.sq': ('wiki.sq-4068a1bc.bin', '4068a1bcce63aee6af1aabfd8139dc6508c017cf'),
'wiki.sr': ('wiki.sr-082e3132.bin', '082e3132151777aa9f20f005dbb59b78f415cb5f'),
'wiki.srn': ('wiki.srn-b7f15abf.bin', 'b7f15abf361445aa2bb621b71f7e70bbf88cb547'),
'wiki.ss': ('wiki.ss-d84b4c58.bin', 'd84b4c58fc78d5bfd8e0ae3909fa6ad8966ed5a2'),
'wiki.st': ('wiki.st-41bbfe88.bin', '41bbfe88fcc624496d35ed1801da3c51dd444c43'),
'wiki.stq': ('wiki.stq-7869010b.bin', '7869010b7edd26d51849f676ef1a4f39dc83ec55'),
'wiki.su': ('wiki.su-522015ae.bin', '522015ae575b367ba73baed722168c6035bf1a4f'),
'wiki.sv': ('wiki.sv-2b51c008.bin', '2b51c00867be3483aa123b82af93bab8fc596886'),
'wiki.sw': ('wiki.sw-b19842d4.bin', 'b19842d48289ca2a81b7b22e34b467cf8dfb9a26'),
'wiki.szl': ('wiki.szl-19f27783.bin', '19f277833eea6f5d878114e54dc097764f963efb'),
'wiki.ta': ('wiki.ta-0746a2ef.bin', '0746a2ef062efecd5268146d64c060ef1e9144f2'),
'wiki.tcy': ('wiki.tcy-0ff14866.bin', '0ff1486683d6b736a04305e8625f8d3850c6a3a8'),
'wiki.te': ('wiki.te-0dc2bd97.bin', '0dc2bd97553cc270d3d4154c35fcfce6998a88bd'),
'wiki.tet': ('wiki.tet-670940fc.bin', '670940fc5658e21740f8d9ce442e6133b5e3e260'),
'wiki.tg': ('wiki.tg-488952ce.bin', '488952ce406c4deafd1d5dfb1336f49341faef55'),
'wiki.th': ('wiki.th-7332f0f8.bin', '7332f0f8c42f5b60cd4e2676f7b806cc942a4ab0'),
'wiki.ti': ('wiki.ti-398f25bb.bin', '398f25bb3685800cc46aab59b084726c8cb6cd74'),
'wiki.tk': ('wiki.tk-c281e62a.bin', 'c281e62aa025f18f4c0006939cf42446b12cd0f3'),
'wiki.tl': ('wiki.tl-929953fd.bin', '929953fd9b07fbad5bc79cd62703b3fb1a59ba1a'),
'wiki.tn': ('wiki.tn-ea8fac80.bin', 'ea8fac801735804eb98971cf823c89af496be814'),
'wiki.to': ('wiki.to-bcc965ca.bin', 'bcc965cace5fe8c359b97a9389188ea04077c1bf'),
'wiki.tpi': ('wiki.tpi-efd371af.bin', 'efd371af61d7ce4d1b7922e33790b72bc8f3c4d5'),
'wiki.tr': ('wiki.tr-9c2c0a70.bin', '9c2c0a7008cd89cbe211a909431f7896a630f686'),
'wiki.ts': ('wiki.ts-8958dcb3.bin', '8958dcb31274f4fa1ac96cff7de2ad12b0594ff2'),
'wiki.tt': ('wiki.tt-4835092f.bin', '4835092f1ee35ece995f73712c11b128d7e6d8e3'),
'wiki.tum': ('wiki.tum-20684599.bin', '206845992b8ec51f673408f11c6383a7ddc75faf'),
'wiki.tw': ('wiki.tw-6fcf965e.bin', '6fcf965e4f74a6bccac892ebebb7e305e4d747c3'),
'wiki.ty': ('wiki.ty-cf5c1022.bin', 'cf5c10220157851050babc0086af7e0812be9fb4'),
'wiki.tyv': ('wiki.tyv-dd1284c9.bin', 'dd1284c9f847ebcc171616e0e60b5d97bdfa1808'),
'wiki.udm': ('wiki.udm-85b368ec.bin', '85b368ec3981bd3fb0599f6dc8287ff8c9dac2aa'),
'wiki.ug': ('wiki.ug-57acb78f.bin', '57acb78f7370a0766145cd9ca6fc11e0543f1385'),
'wiki.uk': ('wiki.uk-747aa3ab.bin', '747aa3ab24fd860f6304fc021ef281facc4c039d'),
'wiki.ur': ('wiki.ur-b89e16db.bin', 'b89e16dbc9ec62f9f91bce2a44447f7cdc830453'),
'wiki.uz': ('wiki.uz-e8a38b09.bin', 'e8a38b091ff4ecdb8ded1a20bb182ba3ef73c6aa'),
'wiki.ve': ('wiki.ve-5c1b48c3.bin', '5c1b48c309cb43717bcaeecb33e26cdcfd46cdec'),
'wiki.vec': ('wiki.vec-34e6f3d9.bin', '34e6f3d94843381be488b37eb06600aff3ab3d6b'),
'wiki.vep': ('wiki.vep-660b5d1e.bin', '660b5d1e7f74f97fe18f310736bf8950d4696c67'),
'wiki.vi': ('wiki.vi-99ab162f.bin', '99ab162f703a0a6fb03a64142b6d47013e0314a3'),
'wiki.vls': ('wiki.vls-07e0742e.bin', '07e0742e4946f2ae057be2ce84e327053a916c91'),
'wiki.vo': ('wiki.vo-562905a3.bin', '562905a3c920bdf4b9bf4a9fb1b3a1293883a905'),
'wiki.wa': ('wiki.wa-727a61c7.bin', '727a61c7115e7093ce8e2c1dc1f3e164eb2654cc'),
'wiki.war': ('wiki.war-bcad746f.bin', 'bcad746f062fa166ceebc47df3449f4752448be5'),
'wiki.wo': ('wiki.wo-5a3815d8.bin', '5a3815d82f535f6d35cd7058cc757117f2a41ac2'),
'wiki.wuu': ('wiki.wuu-b114fb8d.bin', 'b114fb8d1ca2ba54ec3e4295f93ae6f33b7eed16'),
'wiki.xal': ('wiki.xal-45449f93.bin', '45449f936d0ea7a57e7b287702fd09a715180efb'),
'wiki.xh': ('wiki.xh-7b5a743d.bin', '7b5a743dca7f9ed9d0a8760169e681ccc5d00e54'),
'wiki.xmf': ('wiki.xmf-755644bf.bin', '755644bfb0223e56e4d3ef7ae113f057b9143a18'),
'wiki.yi': ('wiki.yi-191d3a6a.bin', '191d3a6a6676566f21ddf2b9a645e7dadd719600'),
'wiki.yo': ('wiki.yo-2629d292.bin', '2629d292d16a7a6f80a12c1ca446b7ba4be56508'),
'wiki.za': ('wiki.za-0f26bdfb.bin', '0f26bdfb74dacc74b3690d8b00c9ce92e2598152'),
'wiki.zea': ('wiki.zea-f40226d3.bin', 'f40226d3c27c013b0690a3dba70b36cec1233aa6'),
'wiki.zh': ('wiki.zh-69e1fa5f.bin', '69e1fa5f3a7a1625789e5eeb47d3bfe72506f403'),
'wiki.zh_classical': ('wiki.zh_classical-ac01671b.bin',
'ac01671b3fd0baadbc5fd850132ef4c9891b7e55'),
'wiki.zh_min_nan': ('wiki.zh_min_nan-5b773206.bin', '5b773206277e3c47fdfb110e43797bad644c1feb'),
'wiki.zh_yue': ('wiki.zh_yue-2e504f07.bin', '2e504f07395f4ac5f732d8c3ee3594b431c2eb64'),
'wiki.zu': ('wiki.zu-642b157b.bin', '642b157b3b799cfb50b13eda0b7d156698cdde83'),
}
| 82.144566
| 100
| 0.731087
| 7,272
| 82,391
| 8.275715
| 0.27104
| 0.026254
| 0.001994
| 0.001396
| 0.085874
| 0.085874
| 0.00339
| 0.00339
| 0.001396
| 0.001396
| 0
| 0.387648
| 0.089536
| 82,391
| 1,002
| 101
| 82.226547
| 0.414616
| 0.009649
| 0
| 0
| 0
| 0
| 0.781582
| 0.591838
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
1c8ab5f68f20497e5de88b64ae8b6622c5a4e737
| 300
|
py
|
Python
|
rnc2rng/__init__.py
|
usfm-bible/rnc2rng
|
c70fbc1b11938af3e21ad275904e07d324b8ac08
|
[
"MIT"
] | 14
|
2015-10-10T19:38:41.000Z
|
2020-05-20T08:32:11.000Z
|
rnc2rng/__init__.py
|
usfm-bible/rnc2rng
|
c70fbc1b11938af3e21ad275904e07d324b8ac08
|
[
"MIT"
] | 36
|
2015-10-07T09:09:44.000Z
|
2022-01-05T07:24:29.000Z
|
rnc2rng/__init__.py
|
usfm-bible/rnc2rng
|
c70fbc1b11938af3e21ad275904e07d324b8ac08
|
[
"MIT"
] | 14
|
2015-11-07T15:50:16.000Z
|
2022-02-23T03:04:58.000Z
|
from . import parser, serializer
def load(f):
return parser.parse(f=f)
def loads(src):
return parser.parse(src)
def dump(root, f, indent=None):
f.write(serializer.XMLSerializer(indent).toxml(root))
def dumps(root, indent=None):
return serializer.XMLSerializer(indent).toxml(root)
| 21.428571
| 57
| 0.72
| 43
| 300
| 5.023256
| 0.44186
| 0.111111
| 0.157407
| 0.314815
| 0.351852
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.143333
| 300
| 13
| 58
| 23.076923
| 0.840467
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.444444
| false
| 0
| 0.111111
| 0.333333
| 0.888889
| 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
|
1c90057ae4623412784c237d656d9fbed354913b
| 197
|
py
|
Python
|
PiAlgo/reverse_tan.py
|
Page-David/PiPy
|
d857c61b54909b9a18b354a66fa3093c0905cd4a
|
[
"MIT"
] | 1
|
2017-01-25T09:06:01.000Z
|
2017-01-25T09:06:01.000Z
|
PiAlgo/reverse_tan.py
|
Page-David/PiPy
|
d857c61b54909b9a18b354a66fa3093c0905cd4a
|
[
"MIT"
] | null | null | null |
PiAlgo/reverse_tan.py
|
Page-David/PiPy
|
d857c61b54909b9a18b354a66fa3093c0905cd4a
|
[
"MIT"
] | null | null | null |
#!/usr/bin/env python
from mpmath import *
def pi(digit):
mp.dps = digit
pi = 4*(12*atan(1/mpf('49')) + 32*atan(1/mpf('57')) - 5*atan(1/mpf('239')) + 12*atan(1/mpf('110443')))
return str(pi)
| 19.7
| 103
| 0.593909
| 38
| 197
| 3.078947
| 0.657895
| 0.17094
| 0.273504
| 0.17094
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.147929
| 0.142132
| 197
| 9
| 104
| 21.888889
| 0.544379
| 0.101523
| 0
| 0
| 0
| 0
| 0.074713
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.2
| false
| 0
| 0.2
| 0
| 0.6
| 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
| 0
| 0
| 1
| 0
|
0
| 4
|
98c1a4e0bf1ca244ff2da29d13721af56fcef9b7
| 2,322
|
py
|
Python
|
setup.py
|
EricSalomaki/PhyloFisher
|
982b0d1672d27c020021b5aea30def33d263a38d
|
[
"MIT"
] | null | null | null |
setup.py
|
EricSalomaki/PhyloFisher
|
982b0d1672d27c020021b5aea30def33d263a38d
|
[
"MIT"
] | null | null | null |
setup.py
|
EricSalomaki/PhyloFisher
|
982b0d1672d27c020021b5aea30def33d263a38d
|
[
"MIT"
] | null | null | null |
from setuptools import setup, find_packages
setup(
name='phylofisher',
version='1.1.0',
packages=find_packages(),
scripts={'phylofisher/fisher.py',
'phylofisher/config.py',
'phylofisher/working_dataset_constructor.py',
'phylofisher/forest.py',
'phylofisher/matrix_constructor.py',
'phylofisher/informant.py',
'phylofisher/apply_to_db.py',
'phylofisher/install_deps.py',
'phylofisher/select_taxa.py',
'phylofisher/select_orthologs.py',
'phylofisher/sgt_constructor.py',
'phylofisher/sgt_constructor.smk',
'phylofisher/prep_final_dataset.py',
'phylofisher/utilities/purge.py',
'phylofisher/utilities/build_database.py',
'phylofisher/utilities/fast_site_remover.py',
'phylofisher/utilities/mammal_modeler.py',
'phylofisher/utilities/bipartition_examiner.py',
'phylofisher/utilities/fast_taxa_remover.py',
'phylofisher/utilities/aa_comp_calculator.py',
'phylofisher/utilities/SR4_class_recoder.py',
'phylofisher/utilities/taxon_collapser.py',
'phylofisher/utilities/genetic_code_examiner.py',
'phylofisher/utilities/heterotachy.py',
'phylofisher/utilities/random_resampler.py',
'phylofisher/utilities/astral_runner.py',
'phylofisher/utilities/rtc_binner.py',
'phylofisher/utilities/backup_restoration.py',
'phylofisher/utilities/explore_database.py'
},
python_requires='==3.7.10',
install_requires=['biopython==1.78',
'pyqt5==5.12.3',
'ete3==3.1.2',
'pandas==1.2.4',
'matplotlib==3.4.1',
'scipy==1.6.2',
'numpy==1.21.0'
],
url='https://github.com/TheBrownLab/PhyloFisher',
license='MIT',
author='David Zihala',
author_email='zihaladavid@gmail.com',
description='PhyloFisher is a software package for the creation, analysis, and visualization of phylogenomic '
'datasets that consist of protein sequences from eukaryotic organisms.'
)
| 43.811321
| 114
| 0.594746
| 224
| 2,322
| 6.004464
| 0.517857
| 0.260967
| 0.26171
| 0.040149
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.019964
| 0.288114
| 2,322
| 52
| 115
| 44.653846
| 0.793708
| 0
| 0
| 0
| 0
| 0
| 0.589578
| 0.443152
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.019608
| 0
| 0.019608
| 0
| 0
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
98d8df75b65a28c9f1c6df635648f223c1d99e63
| 75
|
py
|
Python
|
puzzle/exceptions/__init__.py
|
robinandeer/puzzle
|
9476f05b416d3a5135d25492cb31411fdf831c58
|
[
"MIT"
] | 24
|
2015-10-15T16:29:58.000Z
|
2020-12-08T22:14:13.000Z
|
puzzle/exceptions/__init__.py
|
robinandeer/puzzle
|
9476f05b416d3a5135d25492cb31411fdf831c58
|
[
"MIT"
] | 212
|
2015-10-08T14:28:36.000Z
|
2020-04-29T22:44:10.000Z
|
puzzle/exceptions/__init__.py
|
robinandeer/puzzle
|
9476f05b416d3a5135d25492cb31411fdf831c58
|
[
"MIT"
] | 11
|
2015-10-08T09:26:46.000Z
|
2018-02-02T16:45:07.000Z
|
from __future__ import absolute_import
from .database import DatabaseError
| 25
| 38
| 0.88
| 9
| 75
| 6.777778
| 0.666667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.106667
| 75
| 3
| 39
| 25
| 0.910448
| 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
|
98eddc9a2ecc867157b823f78548f3f78341bba7
| 20,038
|
py
|
Python
|
models.py
|
justinlovelace/robust-kg-completion
|
80b9b66217912502279ba87a31a7f67d4a909169
|
[
"Apache-2.0"
] | 6
|
2021-06-19T02:15:21.000Z
|
2022-01-20T17:03:42.000Z
|
models.py
|
justinlovelace/robust-kg-completion
|
80b9b66217912502279ba87a31a7f67d4a909169
|
[
"Apache-2.0"
] | 1
|
2021-07-08T06:59:13.000Z
|
2021-07-08T07:14:57.000Z
|
models.py
|
justinlovelace/robust-kg-completion
|
80b9b66217912502279ba87a31a7f67d4a909169
|
[
"Apache-2.0"
] | 4
|
2021-06-19T02:15:24.000Z
|
2022-03-28T18:51:53.000Z
|
import json
import torch
import math
import torch.nn as nn
import torch.nn.functional as F
from torch.nn.parameter import Parameter
from torch.nn.init import xavier_normal_
import sys
from CONSTANTS import DATA_DIR
import os
import math
torch.backends.cudnn.deterministic = True
torch.backends.cudnn.enabled = True
class DistMult(nn.Module):
def __init__(self, args):
super(DistMult, self).__init__()
self.ent_embedding = torch.nn.Embedding(
args.num_entities, args.embedding_dim)
self.rel_embedding = torch.nn.Embedding(
args.num_relations, args.embedding_dim)
self.inp_drop = torch.nn.Dropout(args.input_dropout)
self.init()
def init(self):
xavier_normal_(self.rel_embedding.weight.data)
xavier_normal_(self.ent_embedding.weight.data)
def query_emb(self, e1, rel):
e1_embedded = self.ent_embedding(e1)
e1_embedded = self.inp_drop(e1_embedded)
rel_embedded = self.rel_embedding(rel)
rel_embedded = self.inp_drop(rel_embedded)
return e1_embedded.mul(rel_embedded)
def forward(self, queries):
e1 = queries[:, 0]
rel = queries[:, 1]
x = self.query_emb(e1, rel)
scores = torch.mm(x, self.ent_embedding.weight.t())
return scores
class Complex(torch.nn.Module):
def __init__(self, args):
super(Complex, self).__init__()
self.emb_e_real = torch.nn.Embedding(
args.num_entities, args.embedding_dim)
self.emb_e_img = torch.nn.Embedding(
args.num_entities, args.embedding_dim)
self.emb_rel_real = torch.nn.Embedding(
args.num_entities, args.embedding_dim)
self.emb_rel_img = torch.nn.Embedding(
args.num_entities, args.embedding_dim)
self.inp_drop = torch.nn.Dropout(args.input_dropout)
self.init()
def init(self):
xavier_normal_(self.emb_e_real.weight.data)
xavier_normal_(self.emb_e_img.weight.data)
xavier_normal_(self.emb_rel_real.weight.data)
xavier_normal_(self.emb_rel_img.weight.data)
def query_emb(self, e1, rel):
e1_embedded_real = self.emb_e_real(e1).squeeze()
rel_embedded_real = self.emb_rel_real(rel).squeeze()
e1_embedded_img = self.emb_e_img(e1).squeeze()
rel_embedded_img = self.emb_rel_img(rel).squeeze()
e1_embedded_real = self.inp_drop(e1_embedded_real)
rel_embedded_real = self.inp_drop(rel_embedded_real)
e1_embedded_img = self.inp_drop(e1_embedded_img)
rel_embedded_img = self.inp_drop(rel_embedded_img)
return e1_embedded_real*rel_embedded_real, e1_embedded_real*rel_embedded_img, e1_embedded_img*rel_embedded_real, e1_embedded_img*rel_embedded_img
def forward(self, queries):
e1 = queries[:, 0]
rel = queries[:, 1]
realreal, realimg, imgreal, imgimg = self.query_emb(e1, rel)
# complex space bilinear product (equivalent to HolE)
realrealreal = torch.mm(
realreal, self.emb_e_real.weight.transpose(1, 0))
realimgimg = torch.mm(realimg, self.emb_e_img.weight.transpose(1, 0))
imgrealimg = torch.mm(imgreal, self.emb_e_img.weight.transpose(1, 0))
imgimgreal = torch.mm(imgimg, self.emb_e_real.weight.transpose(1, 0))
pred = realrealreal + realimgimg + imgrealimg - imgimgreal
return pred
class ConvE(torch.nn.Module):
def __init__(self, args):
super(ConvE, self).__init__()
if 'Bert' in args.model:
self.prelu = torch.nn.PReLU(args.embedding_dim)
self.emb_dim1 = 12
self.emb_dim2 = args.embedding_dim // self.emb_dim1
else:
self.emb_dim1 = 10
self.emb_dim2 = math.ceil(args.embedding_dim / self.emb_dim1)
args.embedding_dim = self.emb_dim1 * self.emb_dim2
self.ent_embedding = torch.nn.Embedding(
args.num_entities, args.embedding_dim)
self.rel_embedding = torch.nn.Embedding(
args.num_relations, args.embedding_dim)
self.inp_drop = torch.nn.Dropout(args.input_dropout)
self.hidden_drop = torch.nn.Dropout(args.dropout)
self.feature_map_drop = torch.nn.Dropout2d(args.feature_map_dropout)
self.conv1 = torch.nn.Conv2d(1, args.channels, (3, 3), 1, 0)
self.bn0 = torch.nn.BatchNorm2d(1)
self.bn1 = torch.nn.BatchNorm2d(args.channels)
self.bn2 = torch.nn.BatchNorm1d(args.embedding_dim)
self.register_parameter('b', Parameter(torch.zeros(args.num_entities)))
assert self.emb_dim1 * self.emb_dim2 == args.embedding_dim
# Total number of features produced by the convolution
fc_dim = (self.emb_dim1*2-2)*(self.emb_dim2-2)*args.channels
self.fc = torch.nn.Linear(fc_dim, args.embedding_dim)
self.init()
self.args = args
def init(self):
xavier_normal_(self.ent_embedding.weight.data)
xavier_normal_(self.rel_embedding.weight.data)
def query_emb(self, e1, rel):
batch_size = e1.shape[0]
e1_embedded = self.ent_embedding(
e1).view(-1, 1, self.emb_dim1, self.emb_dim2)
rel_embedded = self.rel_embedding(
rel).view(-1, 1, self.emb_dim1, self.emb_dim2)
stacked_inputs = torch.cat([e1_embedded, rel_embedded], 2)
stacked_inputs = self.bn0(stacked_inputs)
x = self.inp_drop(stacked_inputs)
x = self.conv1(x)
x = self.bn1(x)
x = F.relu(x)
x = self.feature_map_drop(x)
x = x.view(batch_size, -1)
x = self.fc(x)
x = self.hidden_drop(x)
if 'Bert' in self.args.model:
x = self.prelu(x)
else:
x = self.bn2(x)
x = F.relu(x)
return x
def forward(self, queries):
e1 = queries[:, 0]
rel = queries[:, 1]
x = self.query_emb(e1, rel)
scores = torch.mm(x, self.ent_embedding.weight.t())
scores += self.b.expand_as(scores)
return scores
def compute_scores(self, queries):
e1 = queries[:, 0]
rel = queries[:, 1]
x = self.query_emb(e1, rel)
scores = torch.mm(x, self.ent_embedding.weight.t())
scores += self.b.expand_as(scores)
return scores
class ConvTransE(nn.Module):
def __init__(self, args):
super(ConvTransE, self).__init__()
self.ent_embedding = torch.nn.Embedding(
args.num_entities, args.embedding_dim)
self.rel_embedding = torch.nn.Embedding(
args.num_relations, args.embedding_dim)
self.inp_drop = torch.nn.Dropout(args.input_dropout)
self.hidden_drop = torch.nn.Dropout(args.dropout)
self.feature_map_drop = torch.nn.Dropout2d(args.feature_map_dropout)
kernel_size = 5
self.channels = args.channels
self.conv1 = nn.Conv1d(2, self.channels, kernel_size,
stride=1, padding=int(math.floor(kernel_size/2)))
self.register_parameter('b', Parameter(torch.zeros(args.num_entities)))
self.bn0 = torch.nn.BatchNorm1d(2)
self.bn1 = torch.nn.BatchNorm1d(self.channels)
self.bn2 = torch.nn.BatchNorm1d(args.embedding_dim)
self.fc = torch.nn.Linear(
self.channels * args.embedding_dim, args.embedding_dim)
self.init()
if 'Bert' in args.model:
self.prelu = torch.nn.PReLU(args.embedding_dim)
self.args = args
def init(self):
xavier_normal_(self.ent_embedding.weight.data)
xavier_normal_(self.rel_embedding.weight.data)
def query_emb(self, e1, rel):
batch_size = e1.shape[0]
e1_embedded = self.ent_embedding(e1)
rel_embedded = self.rel_embedding(rel)
e1_embedded = e1_embedded.unsqueeze(1)
rel_embedded = rel_embedded.unsqueeze(1)
stacked_inputs = torch.cat([e1_embedded, rel_embedded], 1)
stacked_inputs = self.bn0(stacked_inputs)
x = self.inp_drop(stacked_inputs)
x = self.conv1(x)
x = self.bn1(x)
x = F.relu(x)
x = self.feature_map_drop(x)
x = x.view(batch_size, -1)
x = self.fc(x)
x = self.hidden_drop(x)
if 'Bert' in self.args.model:
x = self.prelu(x)
else:
x = self.bn2(x)
x = F.relu(x)
return x
def forward(self, queries):
e1 = queries[:, 0]
rel = queries[:, 1]
x = self.query_emb(e1, rel)
scores = torch.mm(x, self.ent_embedding.weight.t())
scores += self.b.expand_as(scores)
return scores
def compute_scores(self, queries):
e1 = queries[:, 0]
rel = queries[:, 1]
x = self.query_emb(e1, rel)
scores = torch.mm(x, self.ent_embedding.weight.t())
scores += self.b.expand_as(scores)
return scores
class PretrainedBertConvTransE(nn.Module):
def __init__(self, args):
super(PretrainedBertConvTransE, self).__init__()
file_path = os.path.join(
DATA_DIR[args.dataset], f'{args.bert_model}_{args.bert_pool}.pt')
embedding = torch.load(file_path)
args.embedding_dim = embedding.shape[1]
self.model = ConvTransE(args)
self.model.ent_embedding = nn.Embedding.from_pretrained(embedding)
def forward(self, queries):
return self.model.forward(queries)
def compute_scores(self, queries):
return self.model.compute_scores(queries)
class PretrainedBertConvE(nn.Module):
def __init__(self, args):
super(PretrainedBertConvE, self).__init__()
file_path = os.path.join(
DATA_DIR[args.dataset], f'{args.bert_model}_{args.bert_pool}.pt')
embedding = torch.load(file_path)
args.embedding_dim = embedding.shape[1]
self.model = ConvE(args)
self.model.ent_embedding = nn.Embedding.from_pretrained(embedding)
def forward(self, queries):
return self.model.forward(queries)
def compute_scores(self, queries):
return self.model.compute_scores(queries)
class ConvBlock(nn.Module):
def __init__(self, args, input_dim, output_dim, stride=1):
super(ConvBlock, self).__init__()
self.conv = nn.Conv2d(
input_dim, output_dim, (3, 3), padding=1, padding_mode='circular')
self.feature_map_drop = torch.nn.Dropout2d(args.feature_map_dropout)
self.bn = torch.nn.BatchNorm2d(input_dim)
def forward(self, features):
x = self.bn(features)
x = F.relu(x)
x = self.feature_map_drop(x)
x = self.conv(x)
return x
class BottleneckBlock(nn.Module):
def __init__(self, args, input_dim, int_dim, output_dim, stride=1):
super(BottleneckBlock, self).__init__()
self.conv1 = nn.Conv2d(input_dim, int_dim, (1, 1), stride=stride)
self.conv2 = nn.Conv2d(
int_dim, int_dim, (3, 3), padding=1, padding_mode='circular')
self.conv3 = nn.Conv2d(int_dim, output_dim, (1, 1))
self.feature_map_drop = torch.nn.Dropout2d(args.feature_map_dropout)
self.bn1 = torch.nn.BatchNorm2d(input_dim)
self.bn2 = torch.nn.BatchNorm2d(int_dim)
self.bn3 = torch.nn.BatchNorm2d(int_dim)
if input_dim != output_dim:
self.proj_shortcut = nn.Conv2d(
input_dim, output_dim, (1, 1), stride=stride)
else:
self.proj_shortcut = None
def init(self):
xavier_normal_(self.rel_embedding.weight.data)
def forward(self, features):
x = self.bn1(features)
x = F.relu(x)
if self.proj_shortcut:
features = self.proj_shortcut(features)
x = self.feature_map_drop(x)
x = self.conv1(x)
x = self.bn2(x)
x = F.relu(x)
x = self.feature_map_drop(x)
x = self.conv2(x)
x = self.bn3(x)
x = F.relu(x)
x = self.feature_map_drop(x)
x = self.conv3(x)
return x + features
class PretrainedBertResNet(nn.Module):
def __init__(self, args):
super(PretrainedBertResNet, self).__init__()
args.embedding_dim = 768
file_path = os.path.join(
DATA_DIR[args.dataset], 'bert_emb.pt')
embedding = torch.load(file_path)
args.embedding_dim = embedding.shape[1]
self.ent_embedding = nn.Embedding.from_pretrained(embedding)
self.rel_embedding = torch.nn.Embedding(
args.num_relations, args.embedding_dim)
self.reshape_len = args.reshape_len
self.conv1 = nn.Conv1d(2, self.reshape_len**2, kernel_size=1)
bottlenecks = []
input_dim = args.embedding_dim
output_dim = args.embedding_dim
for i in range(args.resnet_num_blocks):
if i == 0:
bottlenecks.extend([BottleneckBlock(
args, input_dim, output_dim//4, output_dim) for _ in range(args.resnet_block_depth)])
else:
bottlenecks.append(BottleneckBlock(
args, input_dim, output_dim//4, output_dim, stride=1))
input_dim = output_dim
bottlenecks.extend([BottleneckBlock(
args, input_dim, output_dim//4, output_dim) for _ in range(min(args.resnet_block_depth, 2)-1)])
output_dim *= 2
self.output_dim = output_dim//2
self.bottlenecks = nn.Sequential(*bottlenecks)
self.inp_drop = torch.nn.Dropout(args.input_dropout)
self.hidden_drop = torch.nn.Dropout(args.dropout)
self.feature_map_drop = torch.nn.Dropout2d(args.feature_map_dropout)
self.register_parameter('b', Parameter(torch.zeros(args.num_entities)))
self.fc = nn.Linear(self.output_dim, args.embedding_dim)
self.bn0 = torch.nn.BatchNorm1d(2)
self.bn1 = torch.nn.BatchNorm2d(self.output_dim)
self.bn2 = torch.nn.BatchNorm2d(args.embedding_dim)
self.bn3 = torch.nn.BatchNorm2d(args.embedding_dim)
self.args = args
self.init()
self.prelu = torch.nn.PReLU(args.embedding_dim)
def init(self):
xavier_normal_(self.rel_embedding.weight)
def query_emb(self, e1, rel):
batch_size = e1.shape[0]
ent_embedded = self.ent_embedding(e1).unsqueeze(1)
rel_embedded = self.rel_embedding(rel).unsqueeze(1)
stacked_inputs = torch.cat(
[ent_embedded, rel_embedded], 1)
x = self.bn0(stacked_inputs)
x = self.inp_drop(x)
x = self.conv1(x)
x = torch.transpose(x, 1, 2).view(
batch_size, self.args.embedding_dim, self.reshape_len, self.reshape_len).contiguous()
x = self.bottlenecks(x)
x = self.bn1(x)
x = F.relu(x)
x = torch.mean(x.view(batch_size, self.output_dim, -1), dim=2)
x = self.hidden_drop(x)
x = self.fc(x)
x = self.prelu(x)
x = self.hidden_drop(x)
return x
def forward(self, queries):
e1 = queries[:, 0]
rel = queries[:, 1]
x = self.query_emb(e1, rel)
scores = torch.mm(x, self.ent_embedding.weight.t())
scores += self.b.expand_as(scores)
return scores
def compute_scores(self, queries):
e1 = queries[:, 0]
rel = queries[:, 1]
x = self.query_emb(e1, rel)
if self.args.bert_model == 'none' or self.args.bert_layer_comb == 'none':
scores = torch.mm(x, self.ent_embedding.weight.t())
else:
scores = torch.mm(x, self.ent_embedding.get_transposed_weight())
scores += self.b.expand_as(scores)
return scores
class PretrainedBertDeepConv(nn.Module):
def __init__(self, args):
super(PretrainedBertDeepConv, self).__init__()
file_path = os.path.join(
DATA_DIR[args.dataset], 'bert_emb.pt')
embedding = torch.load(file_path)
args.embedding_dim = embedding.shape[1]
self.ent_embedding = nn.Embedding.from_pretrained(embedding)
self.rel_embedding = torch.nn.Embedding(
args.num_relations, args.embedding_dim)
self.reshape_len = args.reshape_len
self.conv1 = nn.Conv1d(2, self.reshape_len**2, kernel_size=1)
conv_blocks = []
# input_dim = args.embedding_dim
# output_dim = args.embedding_dim
conv_blocks = [ConvBlock(args, args.embedding_dim, args.embedding_dim),
ConvBlock(args, args.embedding_dim,
2*args.embedding_dim),
ConvBlock(args, 2*args.embedding_dim,
2*args.embedding_dim),
]
self.output_dim = args.embedding_dim*2
self.conv_blocks = nn.Sequential(*conv_blocks)
# self.conv_final = nn.Conv2d(self.output_dim, 768, (1,1))
self.inp_drop = torch.nn.Dropout(args.input_dropout)
self.hidden_drop = torch.nn.Dropout(args.dropout)
self.feature_map_drop = torch.nn.Dropout2d(args.feature_map_dropout)
self.register_parameter('b', Parameter(torch.zeros(args.num_entities)))
self.fc = nn.Linear(self.output_dim, args.embedding_dim)
# self.fc = nn.Linear(self.output_dim*(self.reshape_len**2), args.embedding_dim)
# self.bn0 = torch.nn.GroupNorm(2, 2)
self.bn0 = torch.nn.BatchNorm1d(2)
if args.gn:
self.bn1 = torch.nn.GroupNorm(32, self.output_dim)
self.bn2 = torch.nn.GroupNorm(32, args.embedding_dim)
self.bn3 = torch.nn.GroupNorm(32, args.embedding_dim)
else:
self.bn1 = torch.nn.BatchNorm2d(self.output_dim)
self.bn2 = torch.nn.BatchNorm2d(args.embedding_dim)
self.bn3 = torch.nn.BatchNorm2d(args.embedding_dim)
self.args = args
self.init()
self.prelu = torch.nn.PReLU(args.embedding_dim)
def init(self):
if self.args.bert_model == 'none':
xavier_normal_(self.ent_embedding.weight)
xavier_normal_(self.rel_embedding.weight)
def query_emb(self, e1, rel):
batch_size = e1.shape[0]
ent_embedded = self.ent_embedding(e1).unsqueeze(1)
rel_embedded = self.rel_embedding(rel).unsqueeze(1)
stacked_inputs = torch.cat(
[ent_embedded, rel_embedded], 1)
x = self.bn0(stacked_inputs)
x = self.inp_drop(x)
x = self.conv1(x)
x = torch.transpose(x, 1, 2).view(
batch_size, self.args.embedding_dim, self.reshape_len, self.reshape_len).contiguous()
x = self.conv_blocks(x)
x = self.bn1(x)
x = F.relu(x)
# x = self.conv_final(x)
# x = self.bn2(x)
# x = F.relu(x)
# x = torch.mean(x.view(batch_size, 768, -1), dim=2)
# x = self.hidden_drop(x)
x = torch.mean(x.view(batch_size, self.output_dim, -1), dim=2)
x = self.hidden_drop(x)
x = self.fc(x)
# x = x.view(batch_size, -1)
# x = self.hidden_drop(x)
# x = self.fc(x)
x = self.prelu(x)
x = self.hidden_drop(x)
return x
def forward(self, queries):
e1 = queries[:, 0]
rel = queries[:, 1]
x = self.query_emb(e1, rel)
if self.args.bert_model == 'none' or self.args.bert_layer_comb == 'none':
scores = torch.mm(x, self.ent_embedding.weight.t())
else:
scores = torch.mm(x, self.ent_embedding.get_transposed_weight())
scores += self.b.expand_as(scores)
return scores
def compute_scores(self, queries):
e1 = queries[:, 0]
rel = queries[:, 1]
x = self.query_emb(e1, rel)
if self.args.bert_model == 'none' or self.args.bert_layer_comb == 'none':
scores = torch.mm(x, self.ent_embedding.weight.t())
else:
scores = torch.mm(x, self.ent_embedding.get_transposed_weight())
scores += self.b.expand_as(scores)
return scores
| 33.677311
| 153
| 0.619423
| 2,692
| 20,038
| 4.38893
| 0.069837
| 0.03047
| 0.070419
| 0.054168
| 0.82336
| 0.78942
| 0.717901
| 0.674989
| 0.645028
| 0.626492
| 0
| 0.019815
| 0.264597
| 20,038
| 594
| 154
| 33.734007
| 0.781963
| 0.026599
| 0
| 0.680272
| 0
| 0
| 0.00821
| 0.003797
| 0
| 0
| 0
| 0
| 0.002268
| 1
| 0.088435
| false
| 0
| 0.024943
| 0.00907
| 0.185941
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
c71000ee5779d96776f1a95cff77032923be5a6b
| 270
|
py
|
Python
|
todoism/blueprints/home.py
|
zyitst/todosim2
|
963b6cb84f1c079b2846efe6869e1daaba0954c1
|
[
"MIT"
] | null | null | null |
todoism/blueprints/home.py
|
zyitst/todosim2
|
963b6cb84f1c079b2846efe6869e1daaba0954c1
|
[
"MIT"
] | null | null | null |
todoism/blueprints/home.py
|
zyitst/todosim2
|
963b6cb84f1c079b2846efe6869e1daaba0954c1
|
[
"MIT"
] | null | null | null |
from flask import render_template
from flask.blueprints import Blueprint
home_bp = Blueprint('home', __name__)
@home_bp.route('/')
def index():
return render_template('index.html')
@home_bp.route('/intro')
def intro():
return render_template('_intro.html')
| 18
| 41
| 0.733333
| 36
| 270
| 5.194444
| 0.444444
| 0.224599
| 0.117647
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.12963
| 270
| 14
| 42
| 19.285714
| 0.795745
| 0
| 0
| 0
| 0
| 0
| 0.118519
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.222222
| false
| 0
| 0.222222
| 0.222222
| 0.666667
| 0.222222
| 0
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
c7140436e291b3c0f566eb88a643e355364a1344
| 196
|
py
|
Python
|
Lib/site-packages/stripe/api_resources/balance.py
|
nemarugommula/ecommerce
|
60185e79655fbaf0fcad9e877a886fe9eb3c4451
|
[
"bzip2-1.0.6"
] | 29
|
2019-09-05T18:40:53.000Z
|
2022-03-10T22:00:57.000Z
|
Lib/site-packages/stripe/api_resources/balance.py
|
nemarugommula/ecommerce
|
60185e79655fbaf0fcad9e877a886fe9eb3c4451
|
[
"bzip2-1.0.6"
] | 14
|
2020-10-03T07:24:50.000Z
|
2021-04-11T14:45:31.000Z
|
Lib/site-packages/stripe/api_resources/balance.py
|
nemarugommula/ecommerce
|
60185e79655fbaf0fcad9e877a886fe9eb3c4451
|
[
"bzip2-1.0.6"
] | 20
|
2020-10-03T09:49:24.000Z
|
2021-11-25T08:48:30.000Z
|
from __future__ import absolute_import, division, print_function
from stripe.api_resources.abstract import SingletonAPIResource
class Balance(SingletonAPIResource):
OBJECT_NAME = "balance"
| 24.5
| 64
| 0.836735
| 21
| 196
| 7.428571
| 0.761905
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.112245
| 196
| 7
| 65
| 28
| 0.896552
| 0
| 0
| 0
| 0
| 0
| 0.035714
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.5
| 0
| 1
| 0.25
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.