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
6f738e57e7d583937b5d9afc17b521eef39a2f88
143
py
Python
tests/test_util.py
ahue/where-was-i
a29a26e59ebb1f0ab926bb1c3730e6e65019a194
[ "MIT" ]
null
null
null
tests/test_util.py
ahue/where-was-i
a29a26e59ebb1f0ab926bb1c3730e6e65019a194
[ "MIT" ]
null
null
null
tests/test_util.py
ahue/where-was-i
a29a26e59ebb1f0ab926bb1c3730e6e65019a194
[ "MIT" ]
null
null
null
from where_was_i import util def test_get_resource_string(): s = util.get_resource_string('version.py') assert '__version__ = ' in s
20.428571
46
0.734266
22
143
4.272727
0.727273
0.234043
0.361702
0
0
0
0
0
0
0
0
0
0.174825
143
6
47
23.833333
0.79661
0
0
0
0
0
0.167832
0
0
0
0
0
0.25
1
0.25
false
0
0.25
0
0.5
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
1
0
0
0
0
0
0
0
5
48ce88ffeca3be8f5b993a12a609ad13d846f498
129
py
Python
pyinstaller-1.5.1/hooks/hook-babel.py
rafidhoda/differentiator_utility
b30ef54abef5bde46fb2d3eac8cb43218a7a4c17
[ "Xnet", "X11" ]
null
null
null
pyinstaller-1.5.1/hooks/hook-babel.py
rafidhoda/differentiator_utility
b30ef54abef5bde46fb2d3eac8cb43218a7a4c17
[ "Xnet", "X11" ]
null
null
null
pyinstaller-1.5.1/hooks/hook-babel.py
rafidhoda/differentiator_utility
b30ef54abef5bde46fb2d3eac8cb43218a7a4c17
[ "Xnet", "X11" ]
null
null
null
from hooks.hookutils import babel_localedata_dir hiddenimports = ["babel.dates"] datas = [ (babel_localedata_dir(), ""), ]
16.125
48
0.713178
14
129
6.285714
0.714286
0.340909
0.409091
0
0
0
0
0
0
0
0
0
0.147287
129
7
49
18.428571
0.8
0
0
0
0
0
0.085271
0
0
0
0
0
0
1
0
false
0
0.4
0
0.4
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
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
5
48f3e8c96ba8a9b698c3e1d4df8c255c0adfaefc
2,867
py
Python
app_LPB/migrations/0013_auto_20211107_1204.py
reglabel/ConquerTime
fe91c8eb02424246681814b7d5792c689e5787e0
[ "MIT" ]
null
null
null
app_LPB/migrations/0013_auto_20211107_1204.py
reglabel/ConquerTime
fe91c8eb02424246681814b7d5792c689e5787e0
[ "MIT" ]
null
null
null
app_LPB/migrations/0013_auto_20211107_1204.py
reglabel/ConquerTime
fe91c8eb02424246681814b7d5792c689e5787e0
[ "MIT" ]
null
null
null
# Generated by Django 3.2.9 on 2021-11-07 15:04 import django.core.validators from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('app_LPB', '0012_auto_20211106_1811'), ] operations = [ migrations.RemoveField( model_name='tarefa', name='data_criacao', ), migrations.RemoveField( model_name='tarefa', name='duracao', ), migrations.RemoveField( model_name='tarefa', name='hora_criacao', ), migrations.RemoveField( model_name='tarefa', name='hora_notificacao', ), migrations.AddField( model_name='tarefa', name='ano_criacao', field=models.IntegerField(default=0, validators=[django.core.validators.MaxLengthValidator(4)]), ), migrations.AddField( model_name='tarefa', name='criacao_hora', field=models.IntegerField(default=0, validators=[django.core.validators.MaxValueValidator(59)]), ), migrations.AddField( model_name='tarefa', name='criacao_minutos', field=models.IntegerField(default=0, validators=[django.core.validators.MaxValueValidator(59)]), ), migrations.AddField( model_name='tarefa', name='dia_criacao', field=models.IntegerField(default=0, validators=[django.core.validators.MaxValueValidator(31)]), ), migrations.AddField( model_name='tarefa', name='duracao_horas', field=models.IntegerField(default=0, validators=[django.core.validators.MaxValueValidator(59)]), ), migrations.AddField( model_name='tarefa', name='duracao_minutos', field=models.IntegerField(default=0, validators=[django.core.validators.MaxValueValidator(59)]), ), migrations.AddField( model_name='tarefa', name='duracao_segundos', field=models.IntegerField(default=0, validators=[django.core.validators.MaxValueValidator(59)]), ), migrations.AddField( model_name='tarefa', name='mes_criacao', field=models.IntegerField(default=0, validators=[django.core.validators.MaxValueValidator(12)]), ), migrations.AddField( model_name='tarefa', name='notificacao_hora', field=models.IntegerField(default=0, validators=[django.core.validators.MaxValueValidator(59)]), ), migrations.AddField( model_name='tarefa', name='notificacao_minutos', field=models.IntegerField(default=0, validators=[django.core.validators.MaxValueValidator(59)]), ), ]
35.395062
108
0.596093
255
2,867
6.580392
0.215686
0.075089
0.125149
0.158522
0.859952
0.855781
0.809893
0.633492
0.633492
0.633492
0
0.029197
0.283223
2,867
80
109
35.8375
0.787348
0.015696
0
0.662162
1
0
0.106383
0.008156
0
0
0
0
0
1
0
false
0
0.027027
0
0.067568
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
d28f738f05a338da1a22643fb3832536937e5982
343
py
Python
JPS_BASE_LIB/python_uploader/pyuploader/errorhandling/appexceptions.py
cambridge-cares/TheWorldAvatar
baf08ddc090414c6d01e48c74b408f2192461e9e
[ "MIT" ]
21
2021-03-08T01:58:25.000Z
2022-03-09T15:46:16.000Z
JPS_BASE_LIB/python_uploader/pyuploader/errorhandling/appexceptions.py
cambridge-cares/TheWorldAvatar
baf08ddc090414c6d01e48c74b408f2192461e9e
[ "MIT" ]
63
2021-05-04T15:05:30.000Z
2022-03-23T14:32:29.000Z
JPS_BASE_LIB/python_uploader/pyuploader/errorhandling/appexceptions.py
cambridge-cares/TheWorldAvatar
baf08ddc090414c6d01e48c74b408f2192461e9e
[ "MIT" ]
15
2021-03-08T07:52:03.000Z
2022-03-29T04:46:20.000Z
class EnvironmentVarError(Exception): pass class NotSupportedUploader(Exception): pass class UploaderInputError(Exception): pass class FileUploadError(Exception): pass class SpecsFileNotFoundError(Exception): pass class SecretsFileNotFoundError(Exception): pass class WrongSecretsFormatError(Exception): pass
16.333333
42
0.778426
28
343
9.535714
0.357143
0.340824
0.404494
0
0
0
0
0
0
0
0
0
0.16035
343
21
43
16.333333
0.927083
0
0
0.5
0
0
0
0
0
0
0
0
0
1
0
true
0.5
0
0
0.5
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
0
0
0
0
0
5
960f95f42034a7b80c5ee9bd0d1498963d20d810
197
py
Python
scripts/python/__init__.py
jeremiahmarks/dangerzone
fe2946b8463ed018d2136ca0eb178161ad370565
[ "MIT" ]
1
2015-08-15T05:25:35.000Z
2015-08-15T05:25:35.000Z
scripts/python/__init__.py
jeremiahmarks/dangerzone
fe2946b8463ed018d2136ca0eb178161ad370565
[ "MIT" ]
null
null
null
scripts/python/__init__.py
jeremiahmarks/dangerzone
fe2946b8463ed018d2136ca0eb178161ad370565
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Author: jlmarks # @Date: 2015-02-05 01:32:28 # @Last Modified 2015-04-03 # @Last Modified time: 2015-04-03 21:40:23 from turtleRelated import *
19.7
42
0.654822
33
197
3.909091
0.818182
0.186047
0.124031
0
0
0
0
0
0
0
0
0.224242
0.162437
197
9
43
21.888889
0.557576
0.786802
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
961132f0d34b38c698eed6336ff0fc384ff699bd
134
py
Python
exceliser/__init__.py
pyropy/exceliser
2d2838b9673a947577cd536a85bd4e94d5ef4309
[ "MIT" ]
1
2020-04-20T19:29:42.000Z
2020-04-20T19:29:42.000Z
exceliser/__init__.py
jod35/exceliser
5835802749d07ffbbe2cca0f96d9dd5e45423157
[ "MIT" ]
1
2020-04-20T11:49:28.000Z
2020-04-20T11:55:47.000Z
exceliser/__init__.py
jod35/exceliser
5835802749d07ffbbe2cca0f96d9dd5e45423157
[ "MIT" ]
2
2020-04-20T11:28:05.000Z
2020-04-20T19:30:10.000Z
from .serializer import WorkbookSerializer from .deserializer import WorbookDeserializer from .workbook import serialize, deserialize
33.5
45
0.873134
13
134
9
0.692308
0
0
0
0
0
0
0
0
0
0
0
0.097015
134
3
46
44.666667
0.966942
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
1
0
0
5
961b8bfbc1c8737441340c5288c83dcca98992d9
138
py
Python
demos/touch.py
mathisgerdes/microbit-macau
74ca0d6ce482549366c34802ccd508059632194c
[ "MIT" ]
1
2019-03-20T19:34:11.000Z
2019-03-20T19:34:11.000Z
demos/touch.py
MEET-microbit-project/microbit-macau
74ca0d6ce482549366c34802ccd508059632194c
[ "MIT" ]
null
null
null
demos/touch.py
MEET-microbit-project/microbit-macau
74ca0d6ce482549366c34802ccd508059632194c
[ "MIT" ]
null
null
null
from microbit import * while True: if pin0.is_touched(): display.show(Image.HAPPY) else: display.show(Image.SAD)
17.25
33
0.630435
18
138
4.777778
0.833333
0.255814
0.372093
0
0
0
0
0
0
0
0
0.009804
0.26087
138
7
34
19.714286
0.833333
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
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
1
0
0
0
0
0
0
5
824dcfdb33bcb82f14b06d435623daa365631969
396
py
Python
meeting_planner/website/views.py
rtorres90/django_2020
5e3d24041e53eb6855768b268d36656ac9cd40da
[ "MIT" ]
null
null
null
meeting_planner/website/views.py
rtorres90/django_2020
5e3d24041e53eb6855768b268d36656ac9cd40da
[ "MIT" ]
null
null
null
meeting_planner/website/views.py
rtorres90/django_2020
5e3d24041e53eb6855768b268d36656ac9cd40da
[ "MIT" ]
null
null
null
from datetime import datetime from django.http import HttpResponse from django.shortcuts import render # Create your views here. def welcome(request): return HttpResponse("Welcome to the meeting planner!") def date(request): return HttpResponse(f"Welcome to the meeting planner! the date is {datetime.now()}") def about(request): return HttpResponse("This is the about page!")
22
88
0.755051
54
396
5.537037
0.5
0.130435
0.250836
0.12709
0.173913
0
0
0
0
0
0
0
0.161616
396
17
89
23.294118
0.900602
0.058081
0
0
0
0
0.307278
0
0
0
0
0
0
1
0.333333
false
0
0.333333
0.333333
1
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
1
1
1
0
0
5
8282b494b7fa98304d06bcb9458f314b98c3cfdc
97
py
Python
labs_web/heavy_lifting/create_announcements.py
okorienev/labs_web
9bfd69ffc2196832523d5809cf921debe530f886
[ "BSD-3-Clause" ]
2
2018-04-22T11:34:09.000Z
2018-05-09T20:14:48.000Z
labs_web/heavy_lifting/create_announcements.py
AlexPraefectus/labs_web
9bfd69ffc2196832523d5809cf921debe530f886
[ "BSD-3-Clause" ]
null
null
null
labs_web/heavy_lifting/create_announcements.py
AlexPraefectus/labs_web
9bfd69ffc2196832523d5809cf921debe530f886
[ "BSD-3-Clause" ]
null
null
null
def create_announcements(): """ fill MongoDB Announcements collection """ pass
12.125
41
0.628866
8
97
7.5
0.875
0
0
0
0
0
0
0
0
0
0
0
0.278351
97
7
42
13.857143
0.857143
0.381443
0
0
0
0
0
0
0
0
0
0
0
1
0.5
true
0.5
0
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
1
1
0
0
0
0
0
5
8285cf7d8c7fa80b3c3ec034634a37dfa152871b
154
py
Python
Productive code/multiInputinPy.py
SeekerNik/code
e36105361daffac2b6e48ab63f3b9d79120f6310
[ "MIT" ]
null
null
null
Productive code/multiInputinPy.py
SeekerNik/code
e36105361daffac2b6e48ab63f3b9d79120f6310
[ "MIT" ]
null
null
null
Productive code/multiInputinPy.py
SeekerNik/code
e36105361daffac2b6e48ab63f3b9d79120f6310
[ "MIT" ]
null
null
null
import sys #sys.stdin = open("in", "r") s, n , m = map(int, raw_input().split()) a = map(int, raw_input().split()) b = map(int, raw_input().split())
25.666667
41
0.577922
27
154
3.185185
0.592593
0.209302
0.313953
0.488372
0.662791
0
0
0
0
0
0
0
0.168831
154
5
42
30.8
0.671875
0.175325
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
1
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
5
82b399976caf374ce68455c1dc5c40d1334fb515
432
py
Python
autho/authorizer/serializers.py
kracekumar/autho
a098180dab97f9563012eb083a88073599ce7796
[ "Apache-2.0" ]
null
null
null
autho/authorizer/serializers.py
kracekumar/autho
a098180dab97f9563012eb083a88073599ce7796
[ "Apache-2.0" ]
null
null
null
autho/authorizer/serializers.py
kracekumar/autho
a098180dab97f9563012eb083a88073599ce7796
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from rest_framework import serializers class LoginSerializer(serializers.Serializer): username = serializers.CharField(min_length=3, max_length=30, required=False) password = serializers.CharField(max_length=62, required=True) phone = serializers.CharField(max_length=15, required=False) app_token = serializers.CharField(max_length=30, required=True)
36
67
0.706019
48
432
6.208333
0.5625
0.268456
0.231544
0.291946
0
0
0
0
0
0
0
0.028736
0.194444
432
11
68
39.272727
0.827586
0.048611
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0.142857
0.142857
0
0.857143
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
1
0
0
1
0
0
5
7d5b0d3fa6740fc68f5ac28ef31b52136f92d4f7
23
py
Python
myapp/tasks/__init__.py
tencentmusic/fab
e4fa8f505f7c78614b0e63601bb499373aa91a33
[ "MIT" ]
19
2021-08-05T05:08:54.000Z
2022-03-17T06:18:48.000Z
myapp/tasks/__init__.py
tencentmusic/fab
e4fa8f505f7c78614b0e63601bb499373aa91a33
[ "MIT" ]
null
null
null
myapp/tasks/__init__.py
tencentmusic/fab
e4fa8f505f7c78614b0e63601bb499373aa91a33
[ "MIT" ]
5
2021-08-05T06:54:45.000Z
2022-03-01T12:43:27.000Z
from . import schedules
23
23
0.826087
3
23
6.333333
1
0
0
0
0
0
0
0
0
0
0
0
0.130435
23
1
23
23
0.95
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
7d5e46e904114f68d6c151a261e75d8165c2b14d
40
py
Python
__init__.py
danielpassy/Anki-CardOTron
eab0d6d21a9c02ada2fc477fcb11221aaff55efc
[ "MIT" ]
null
null
null
__init__.py
danielpassy/Anki-CardOTron
eab0d6d21a9c02ada2fc477fcb11221aaff55efc
[ "MIT" ]
null
null
null
__init__.py
danielpassy/Anki-CardOTron
eab0d6d21a9c02ada2fc477fcb11221aaff55efc
[ "MIT" ]
null
null
null
from .AnkiCardOTron import AnkiCardOTron
40
40
0.9
4
40
9
0.75
0
0
0
0
0
0
0
0
0
0
0
0.075
40
1
40
40
0.972973
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
7d6940b146dc4e84f0e509c6a16c41dea8c86a53
41
py
Python
modules/2.79/bpy/types/RenderResult.py
cmbasnett/fake-bpy-module
acb8b0f102751a9563e5b5e5c7cd69a4e8aa2a55
[ "MIT" ]
null
null
null
modules/2.79/bpy/types/RenderResult.py
cmbasnett/fake-bpy-module
acb8b0f102751a9563e5b5e5c7cd69a4e8aa2a55
[ "MIT" ]
null
null
null
modules/2.79/bpy/types/RenderResult.py
cmbasnett/fake-bpy-module
acb8b0f102751a9563e5b5e5c7cd69a4e8aa2a55
[ "MIT" ]
null
null
null
def load_from_file(filename): pass
8.2
29
0.707317
6
41
4.5
1
0
0
0
0
0
0
0
0
0
0
0
0.219512
41
4
30
10.25
0.84375
0
0
0
0
0
0
0
0
0
0
0
0
1
0.5
false
0.5
0
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
1
0
1
0
0
0
0
0
5
7d99c89c406936c8dbf12956b3e5928e1e99d7b0
173
py
Python
WaveBlocksND/Plot3D/__init__.py
raoulbq/WaveBlocksND
225b5dd9b1af1998bd40b5f6467ee959292b6a83
[ "BSD-3-Clause" ]
3
2016-09-01T21:13:54.000Z
2020-03-23T15:45:32.000Z
WaveBlocksND/Plot3D/__init__.py
raoulbq/WaveBlocksND
225b5dd9b1af1998bd40b5f6467ee959292b6a83
[ "BSD-3-Clause" ]
null
null
null
WaveBlocksND/Plot3D/__init__.py
raoulbq/WaveBlocksND
225b5dd9b1af1998bd40b5f6467ee959292b6a83
[ "BSD-3-Clause" ]
6
2016-03-16T15:22:01.000Z
2021-03-13T14:06:54.000Z
"""The WaveBlocks Project @author: R. Bourquin @copyright: Copyright (C) 2012 R. Bourquin @license: Modified BSD License """ from WaveBlocksND.Plot3D.surfcf import surfcf
19.222222
45
0.763006
22
173
6
0.772727
0.136364
0
0
0
0
0
0
0
0
0
0.033333
0.132948
173
8
46
21.625
0.846667
0.682081
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
1
0
0
5
8154432debb2c28e962eea9ded1c6ae15d74aaef
73
py
Python
tests/typecheck/bad_duplicate_global_2.py
yangdanny97/chocopy-python-compiler
588cba0cb330bd63f00e06420a32ba47c25c4468
[ "MIT" ]
7
2021-08-28T18:20:45.000Z
2022-02-01T07:35:59.000Z
tests/typecheck/bad_duplicate_global_2.py
yangdanny97/chocopy-python-compiler
588cba0cb330bd63f00e06420a32ba47c25c4468
[ "MIT" ]
1
2020-05-30T17:57:11.000Z
2020-05-30T20:44:53.000Z
tests/typecheck/bad_duplicate_global_2.py
yangdanny97/chocopy-python-frontend
d0fb63fc744771640fa4d06076743f42089899c1
[ "MIT" ]
2
2022-02-05T06:16:16.000Z
2022-02-24T11:07:09.000Z
class x(object): def x(self:"x") -> int: return 1 x:int = 5 pass
9.125
25
0.547945
14
73
2.857143
0.714286
0.2
0
0
0
0
0
0
0
0
0
0.037736
0.273973
73
7
26
10.428571
0.716981
0
0
0
0
0
0.013699
0
0
0
0
0
0
1
0.2
false
0.2
0
0.2
0.6
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
1
1
0
0
5
8167517bb6650b10b7978a3cdb4f1e80094a620a
215
py
Python
slideatlas/ptiffstore/__init__.py
SlideAtlas/SlideAtlas-Server
3b9cbd56eaa29ae08ae521e75616ea230fe26397
[ "Apache-2.0" ]
3
2015-10-10T10:17:26.000Z
2020-12-14T09:42:19.000Z
slideatlas/ptiffstore/__init__.py
SlideAtlas/SlideAtlas-Server
3b9cbd56eaa29ae08ae521e75616ea230fe26397
[ "Apache-2.0" ]
41
2015-02-03T19:47:28.000Z
2017-02-06T23:24:26.000Z
slideatlas/ptiffstore/__init__.py
SlideAtlas/SlideAtlas-Server
3b9cbd56eaa29ae08ae521e75616ea230fe26397
[ "Apache-2.0" ]
2
2016-04-04T18:23:27.000Z
2017-11-14T22:34:58.000Z
__author__ = 'dhanannjay.deo' from base_reader import Reader from tiff_reader import TileReader from reader_cache import make_reader # from openslide_reader import OpenslideReader from pil_reader import PilReader
23.888889
46
0.855814
29
215
6
0.517241
0.275862
0
0
0
0
0
0
0
0
0
0
0.12093
215
8
47
26.875
0.920635
0.204651
0
0
0
0
0.08284
0
0
0
0
0
0
1
0
false
0
0.8
0
0.8
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
1
0
0
5
8177be14da35fc72a6eb6f60091dce538c2d7472
113
py
Python
heysqlware/__init__.py
mu2019/heysqlware
a591b4051279b6d7ec40e298c30ff193177f9dde
[ "MIT" ]
null
null
null
heysqlware/__init__.py
mu2019/heysqlware
a591b4051279b6d7ec40e298c30ff193177f9dde
[ "MIT" ]
null
null
null
heysqlware/__init__.py
mu2019/heysqlware
a591b4051279b6d7ec40e298c30ff193177f9dde
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 #!coding=utf-8 from .record import Record,RecordSet,QueryValue from .heysqlware import *
22.6
48
0.769912
16
113
5.4375
0.8125
0
0
0
0
0
0
0
0
0
0
0.019802
0.106195
113
4
49
28.25
0.841584
0.300885
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
1
0
0
5
817de47dfb64951985df24493a5b5b8f918e7f58
30
py
Python
imagesearch/__init__.py
marcomaiermm/fishit
5c4992d91365ec9b841eaaa81848d4ad8a9af9ed
[ "MIT" ]
null
null
null
imagesearch/__init__.py
marcomaiermm/fishit
5c4992d91365ec9b841eaaa81848d4ad8a9af9ed
[ "MIT" ]
1
2021-06-08T21:07:25.000Z
2021-06-08T21:07:25.000Z
imagesearch/__init__.py
marcomaiermm/fishit
5c4992d91365ec9b841eaaa81848d4ad8a9af9ed
[ "MIT" ]
null
null
null
from .fish_logic import Fishit
30
30
0.866667
5
30
5
1
0
0
0
0
0
0
0
0
0
0
0
0.1
30
1
30
30
0.925926
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
c4904d07facb999718ff9cd7f80a52cb5366ad16
51
py
Python
theseus/semantic/trainer/__init__.py
kaylode/Custom-Template
b2f11bfacf2b03b793476a19781f9046fab6fd82
[ "MIT" ]
2
2022-02-18T04:41:29.000Z
2022-03-12T09:04:14.000Z
theseus/classification/trainer/__init__.py
kaylode/mediaeval21-vsa
8c5e7d612393d511331124931843c2ed07192c1b
[ "MIT" ]
8
2022-02-16T17:01:28.000Z
2022-03-28T02:53:45.000Z
theseus/classification/trainer/__init__.py
kaylode/mediaeval21-vsa
8c5e7d612393d511331124931843c2ed07192c1b
[ "MIT" ]
3
2022-02-13T05:00:13.000Z
2022-03-02T00:11:27.000Z
from theseus.base.trainer import TRAINER_REGISTRY
25.5
50
0.862745
7
51
6.142857
0.857143
0
0
0
0
0
0
0
0
0
0
0
0.098039
51
1
51
51
0.934783
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
1
0
0
5
c4a84d80af73b53f06fa99c04e14dcbf4770ce64
155
py
Python
command_line/chef.py
ndevenish/xia2
51eb0911457119f80803d5d061d44dc5f19b5a6e
[ "BSD-3-Clause" ]
null
null
null
command_line/chef.py
ndevenish/xia2
51eb0911457119f80803d5d061d44dc5f19b5a6e
[ "BSD-3-Clause" ]
null
null
null
command_line/chef.py
ndevenish/xia2
51eb0911457119f80803d5d061d44dc5f19b5a6e
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import, division import sys if __name__ == '__main__': from xia2.Modules.PyChef2.PyChef import run run(sys.argv[1:])
19.375
48
0.76129
22
155
4.772727
0.727273
0
0
0
0
0
0
0
0
0
0
0.022556
0.141935
155
7
49
22.142857
0.766917
0
0
0
0
0
0.051613
0
0
0
0
0
0
1
0
true
0
0.6
0
0.6
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
4826e5694fa7a28ae9a423cf78d88f635652c31a
22
py
Python
ecommerce_module/payments_module/square.py
utkarshsaraf19/python-object-oriented-programming
f36d7b72567a3dc5c21da7653e0db6274a3f5516
[ "CC0-1.0" ]
null
null
null
ecommerce_module/payments_module/square.py
utkarshsaraf19/python-object-oriented-programming
f36d7b72567a3dc5c21da7653e0db6274a3f5516
[ "CC0-1.0" ]
null
null
null
ecommerce_module/payments_module/square.py
utkarshsaraf19/python-object-oriented-programming
f36d7b72567a3dc5c21da7653e0db6274a3f5516
[ "CC0-1.0" ]
null
null
null
class Square: pass
11
13
0.681818
3
22
5
1
0
0
0
0
0
0
0
0
0
0
0
0.272727
22
2
14
11
0.9375
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.5
0
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
1
1
0
0
0
0
0
5
486d15096ca2e2375073e0354a8d8112929c7d9b
58
py
Python
isos/__init__.py
MarkusZehner/isos
8c5b80cc921781ca53f8c54f69d59711bcaf37a1
[ "MIT" ]
null
null
null
isos/__init__.py
MarkusZehner/isos
8c5b80cc921781ca53f8c54f69d59711bcaf37a1
[ "MIT" ]
null
null
null
isos/__init__.py
MarkusZehner/isos
8c5b80cc921781ca53f8c54f69d59711bcaf37a1
[ "MIT" ]
null
null
null
from .search_and_deploy import * from .database import *
14.5
32
0.775862
8
58
5.375
0.75
0
0
0
0
0
0
0
0
0
0
0
0.155172
58
3
33
19.333333
0.877551
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
1
0
0
5
48880fd4fdf71b692c96d4c214193a6c069297f4
13,887
py
Python
api/workflow/tests/test_automated_case_routing.py
django-doctor/lite-api
1ba278ba22ebcbb977dd7c31dd3701151cd036bf
[ "MIT" ]
null
null
null
api/workflow/tests/test_automated_case_routing.py
django-doctor/lite-api
1ba278ba22ebcbb977dd7c31dd3701151cd036bf
[ "MIT" ]
null
null
null
api/workflow/tests/test_automated_case_routing.py
django-doctor/lite-api
1ba278ba22ebcbb977dd7c31dd3701151cd036bf
[ "MIT" ]
null
null
null
from api.applications.models import CountryOnApplication, PartyOnApplication from api.cases.models import CaseType from api.flags.enums import FlagStatuses from api.flags.tests.factories import FlagFactory from api.parties.models import Party from api.queues.models import Queue from api.staticdata.countries.models import Country from api.staticdata.statuses.models import CaseStatus from api.teams.models import Team from test_helpers.clients import DataTestClient from api.workflow.automation import run_routing_rules from api.workflow.routing_rules.enum import RoutingRulesAdditionalFields class ParameterSetRoutingRuleModelMethodTests(DataTestClient): def test_routing_rule_parameters_are_returned_in_a_set(self): routing_rule = self.create_routing_rule( team_id=self.team.id, queue_id=self.queue.id, tier=5, status_id=CaseStatus.objects.last().id, additional_rules=[*[k for k, v in RoutingRulesAdditionalFields.choices]], ) parameter_sets = routing_rule.parameter_sets() parameter_set = parameter_sets[0]["flags_country_set"] self.assertTrue(set(routing_rule.flags_to_include.all()).issubset(parameter_set)) def test_routing_rule_parameters_returned_in_multiple_sets_for_multiple_case_types(self): routing_rule = self.create_routing_rule( team_id=self.team.id, queue_id=self.queue.id, tier=5, status_id=CaseStatus.objects.last().id, additional_rules=[*[k for k, v in RoutingRulesAdditionalFields.choices]], ) routing_rule.case_types.set(CaseType.objects.all()) parameter_sets = routing_rule.parameter_sets() self.assertEqual(len(parameter_sets), CaseType.objects.count()) def test_parameters_returned_if_no_case_types_set(self): routing_rule = self.create_routing_rule( team_id=self.team.id, queue_id=self.queue.id, tier=5, status_id=CaseStatus.objects.last().id, additional_rules=[*[k for k, v in RoutingRulesAdditionalFields.choices]], ) routing_rule.case_types.clear() parameter_sets = routing_rule.parameter_sets() self.assertEqual(len(parameter_sets), 1) def test_inactive_flag_rule_returns_empty_list(self): flag = FlagFactory(status=FlagStatuses.DEACTIVATED, team=self.team) routing_rule = self.create_routing_rule( team_id=self.team.id, queue_id=self.queue.id, tier=5, status_id=CaseStatus.objects.last().id, additional_rules=[*[k for k, v in RoutingRulesAdditionalFields.choices]], ) routing_rule.flags_to_include.add(flag) parameter_sets = routing_rule.parameter_sets() self.assertEqual(len(parameter_sets), 0) class ParameterSetCaseModelMethodTests(DataTestClient): def test_case_parameters_are_returned_in_a_set(self): case = self.create_standard_application_case(organisation=self.organisation) case.flags.set([self.create_flag(name="1", team=self.team, level="case")]) france = Country.objects.get(id="FR") party = Party(country=france, name="name", address="address") party.save() flag_2 = self.create_flag(name="2", team=self.team, level="destination") france.flags.add(flag_2) PartyOnApplication(application=case, party=party).save() parameter_set = case.parameter_set() self.assertTrue(set(case.flags.all()).issubset(parameter_set)) self.assertIn(case.case_type, parameter_set) self.assertIn(flag_2, parameter_set) self.assertIn(france, parameter_set) def test_parameter_set_returned_for_open_application(self): case = self.create_open_application_case(organisation=self.organisation) parameter_set = case.parameter_set() self.assertTrue( set([coa.country for coa in CountryOnApplication.objects.filter(application=case.id)]).issubset( parameter_set ) ) self.assertIn(case.case_type, parameter_set) def test_end_user_advisory_query_returns_parameter_set(self): case = self.create_end_user_advisory_case(organisation=self.organisation, note="a note", reasoning="reasoning") parameter_set = case.parameter_set() self.assertIn(case.case_type, parameter_set) def test_good_query_returns_parameter_set(self): case = self.create_goods_query( organisation=self.organisation, clc_reason="reason", pv_reason="reason", description="a good" ) parameter_set = case.parameter_set() self.assertIn(case.case_type, parameter_set) class CaseRoutingAutomationTests(DataTestClient): def test_case_routed_to_new_queue_when_status_changed(self): self.create_routing_rule( team_id=self.team.id, queue_id=self.queue.id, tier=5, status_id=CaseStatus.objects.get(status="submitted").id, additional_rules=[], ) case = self.create_open_application_case(organisation=self.organisation) run_routing_rules(case) self.assertIn(self.queue, case.queues.all()) def test_case_routed_to_multiple_queues_when_status_changed(self): queue_2 = Queue(team=self.team) queue_2.save() self.create_routing_rule( team_id=self.team.id, queue_id=self.queue.id, tier=5, status_id=CaseStatus.objects.get(status="submitted").id, additional_rules=[], ) self.create_routing_rule( team_id=self.team.id, queue_id=queue_2.id, tier=5, status_id=CaseStatus.objects.get(status="submitted").id, additional_rules=[], ) case = self.create_open_application_case(organisation=self.organisation) run_routing_rules(case) self.assertIn(self.queue, set(case.queues.all())) self.assertIn(queue_2, set(case.queues.all())) def test_case_routed_to_one_queue_with_different_rule_tiers_same_team_when_status_changed(self): queue_2 = Queue(team=self.team) queue_2.save() self.create_routing_rule( team_id=self.team.id, queue_id=self.queue.id, tier=5, status_id=CaseStatus.objects.get(status="submitted").id, additional_rules=[], ) self.create_routing_rule( team_id=self.team.id, queue_id=queue_2.id, tier=6, status_id=CaseStatus.objects.get(status="submitted").id, additional_rules=[], ) case = self.create_open_application_case(organisation=self.organisation) run_routing_rules(case) self.assertIn(self.queue, case.queues.all()) self.assertNotIn(queue_2, case.queues.all()) def test_case_routed_to_multiple_queues_with_multiple_team_rules_status_changed(self): queue_2 = Queue(team=self.team) queue_2.save() team_2 = Team(name="team2") team_2.save() self.create_routing_rule( team_id=self.team.id, queue_id=self.queue.id, tier=5, status_id=CaseStatus.objects.get(status="submitted").id, additional_rules=[], ) self.create_routing_rule( team_id=team_2.id, queue_id=queue_2.id, tier=6, status_id=CaseStatus.objects.get(status="submitted").id, additional_rules=[], ) case = self.create_open_application_case(organisation=self.organisation) run_routing_rules(case) self.assertIn(self.queue, set(case.queues.all())) self.assertIn(queue_2, set(case.queues.all())) def test_case_routed_to_one_queue_with_multiple_team_rules_status_changed(self): team_2 = Team(name="team2") team_2.save() self.create_routing_rule( team_id=self.team.id, queue_id=self.queue.id, tier=5, status_id=CaseStatus.objects.get(status="submitted").id, additional_rules=[], ) self.create_routing_rule( team_id=team_2.id, queue_id=self.queue.id, tier=6, status_id=CaseStatus.objects.get(status="submitted").id, additional_rules=[], ) case = self.create_open_application_case(organisation=self.organisation) run_routing_rules(case) self.assertIn(self.queue, set(case.queues.all())) def test_case_routed_to_multiple_queues_with_multiple_team_rules_at_different_tiers_status_changed(self): queue_2 = Queue(team=self.team) queue_2.save() queue_3 = Queue(team=self.team) queue_3.save() team_2 = Team(name="team2") team_2.save() self.create_routing_rule( team_id=self.team.id, queue_id=self.queue.id, tier=5, status_id=CaseStatus.objects.get(status="submitted").id, additional_rules=[], ) self.create_routing_rule( team_id=team_2.id, queue_id=queue_2.id, tier=5, status_id=CaseStatus.objects.get(status="submitted").id, additional_rules=[], ) self.create_routing_rule( team_id=team_2.id, queue_id=queue_3.id, tier=6, status_id=CaseStatus.objects.get(status="submitted").id, additional_rules=[], ) case = self.create_open_application_case(organisation=self.organisation) run_routing_rules(case) self.assertIn(self.queue, set(case.queues.all())) self.assertIn(queue_2, set(case.queues.all())) self.assertNotIn(queue_3, set(case.queues.all())) def test_case_routed_by_second_tier_if_tier_one_conditions_not_met(self): queue_2 = Queue(team=self.team) queue_2.save() flag = FlagFactory(team=self.team) rule = self.create_routing_rule( team_id=self.team.id, queue_id=self.queue.id, tier=5, status_id=CaseStatus.objects.get(status="submitted").id, additional_rules=[RoutingRulesAdditionalFields.FLAGS], ) rule.flags_to_include.add(flag) self.create_routing_rule( team_id=self.team.id, queue_id=queue_2.id, tier=6, status_id=CaseStatus.objects.get(status="submitted").id, additional_rules=[], ) case = self.create_open_application_case(organisation=self.organisation) run_routing_rules(case) self.assertNotIn(self.queue, set(case.queues.all())) self.assertIn(queue_2, set(case.queues.all())) def test_case_advances_to_next_status_if_rules_not_run(self): queue_2 = Queue(team=self.team) queue_2.save() under_review = CaseStatus.objects.get(status="under_review") self.create_routing_rule( team_id=self.team.id, queue_id=queue_2.id, tier=6, status_id=under_review.id, additional_rules=[], ) case = self.create_open_application_case(organisation=self.organisation) run_routing_rules(case) self.assertIn(queue_2, set(case.queues.all())) self.assertEqual(case.status, under_review) def test_rules_not_run_if_flags_dont_match(self): flag_1 = FlagFactory(team=self.team) flag_2 = FlagFactory(team=self.team) flag_3 = FlagFactory(team=self.team) rule = self.create_routing_rule( team_id=self.team.id, queue_id=self.queue.id, tier=5, status_id=CaseStatus.objects.get(status="submitted").id, additional_rules=[RoutingRulesAdditionalFields.FLAGS], ) rule.flags_to_include.set([flag_1, flag_2]) case = self.create_open_application_case(organisation=self.organisation) case.flags.set([flag_2, flag_3]) run_routing_rules(case) self.assertEqual(len(case.queues.all()), 0) self.assertNotEqual(case.status, CaseStatus.objects.get(status="submitted")) def test_rules_not_run_if_flags_match(self): flag_1 = FlagFactory(team=self.team) flag_2 = FlagFactory(team=self.team) rule = self.create_routing_rule( team_id=self.team.id, queue_id=self.queue.id, tier=5, status_id=CaseStatus.objects.get(status="submitted").id, additional_rules=[RoutingRulesAdditionalFields.FLAGS], ) rule.flags_to_include.set([flag_1, flag_2]) case = self.create_open_application_case(organisation=self.organisation) case.flags.set([flag_1, flag_2]) run_routing_rules(case) self.assertIn(self.queue, set(case.queues.all())) self.assertEqual(case.status, CaseStatus.objects.get(status="submitted")) def test_rules_not_run_if_multiple_flags_match(self): flag_1 = FlagFactory(team=self.team) flag_2 = FlagFactory(team=self.team) flag_3 = FlagFactory(team=self.team) rule = self.create_routing_rule( team_id=self.team.id, queue_id=self.queue.id, tier=5, status_id=CaseStatus.objects.get(status="submitted").id, additional_rules=[RoutingRulesAdditionalFields.FLAGS], ) rule.flags_to_include.set([flag_1, flag_2]) case = self.create_open_application_case(organisation=self.organisation) case.flags.set([flag_1, flag_2, flag_3]) run_routing_rules(case) self.assertIn(self.queue, set(case.queues.all())) self.assertEqual(case.status, CaseStatus.objects.get(status="submitted"))
37.131016
119
0.657161
1,709
13,887
5.048566
0.083675
0.027816
0.043347
0.053547
0.78083
0.766226
0.75452
0.740264
0.707464
0.692976
0
0.008801
0.239073
13,887
373
120
37.230563
0.807703
0
0
0.669935
0
0
0.020667
0
0
0
0
0
0.107843
1
0.062092
false
0
0.039216
0
0.111111
0
0
0
0
null
0
0
0
0
1
1
1
1
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
5
6fd9e708448280c4fd0c1a322219325b83e6b7af
65
py
Python
formgradernext/tests/conftest.py
IllumiDesk/formgradernext
609a68fadded01d02d1f9fd2350deae0fa7670f0
[ "Apache-2.0" ]
2
2021-06-23T17:58:22.000Z
2021-09-27T10:00:01.000Z
async_nbgrader/tests/conftest.py
IllumiDesk/async-nbgrader
427e1b634277c043a1ed9f00bf7e417e0f611aca
[ "Apache-2.0" ]
6
2021-06-17T21:40:24.000Z
2021-11-11T17:48:15.000Z
formgradernext/tests/conftest.py
IllumiDesk/formgradernext
609a68fadded01d02d1f9fd2350deae0fa7670f0
[ "Apache-2.0" ]
2
2021-06-10T18:16:22.000Z
2021-06-17T02:52:45.000Z
from nbgrader.tests.nbextensions.conftest import * # noqa: F401
32.5
64
0.784615
8
65
6.375
1
0
0
0
0
0
0
0
0
0
0
0.052632
0.123077
65
1
65
65
0.842105
0.153846
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
1
0
0
5
b5101a8a5400486649abd7236e2cce293f4080e2
172
py
Python
client-portal/include/parsers/therapist_schema.py
oakbani/ksdp-portal
8f44b3cb0081a7f31b9c8121883dd51945a05520
[ "MIT" ]
null
null
null
client-portal/include/parsers/therapist_schema.py
oakbani/ksdp-portal
8f44b3cb0081a7f31b9c8121883dd51945a05520
[ "MIT" ]
null
null
null
client-portal/include/parsers/therapist_schema.py
oakbani/ksdp-portal
8f44b3cb0081a7f31b9c8121883dd51945a05520
[ "MIT" ]
1
2021-09-19T10:58:17.000Z
2021-09-19T10:58:17.000Z
from marshmallow import Schema, fields class TherapistDetailsSchema(Schema): name = fields.String(required=True) contact_num = fields.String(required=True)
24.571429
47
0.75
19
172
6.736842
0.684211
0.1875
0.3125
0.375
0
0
0
0
0
0
0
0
0.168605
172
6
48
28.666667
0.895105
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.25
0
1
0
1
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
5
82ea1e68b7ad206f6dbc0839dd7c8067a14322f9
1,233
py
Python
cdmi-s3-qos-ceph-provider/mock_source.py
indigo-dc/cdmi-s3-qos-ceph-provider
a19a716fd21af6ce766d8ade8caa00d61c35e28c
[ "Apache-2.0" ]
null
null
null
cdmi-s3-qos-ceph-provider/mock_source.py
indigo-dc/cdmi-s3-qos-ceph-provider
a19a716fd21af6ce766d8ade8caa00d61c35e28c
[ "Apache-2.0" ]
null
null
null
cdmi-s3-qos-ceph-provider/mock_source.py
indigo-dc/cdmi-s3-qos-ceph-provider
a19a716fd21af6ce766d8ade8caa00d61c35e28c
[ "Apache-2.0" ]
null
null
null
import json import abstract_source class DataProvider(abstract_source.AbstractSource): def get_profiles_json(self): return "[{'metadata_provided': {'cdmi_latency_provided': '20', 'cdmi_data_redundancy_provided': '2','cdmi_geographic_placement_provided': ['PL', 'GB']},'metadata': {'cdmi_latency': '20', 'cdmi_data_redundancy': '2','cdmi_geographic_placement': ['PL', 'GB']},'pools': ['.rgw.buckets'],'type': 'container','name': 'Profile1','allowed_profiles': []},{'metadata_provided': {'cdmi_latency_provided': '300', 'cdmi_data_redundancy_provided': '2','cdmi_geographic_placement_provided': ['DE', 'CZ']},'metadata': {'cdmi_latency': '300', 'cdmi_data_redundancy': '2','cdmi_geographic_placement': ['DE', 'CZ']},'pools': ['.rgw.buckets.cdmi2'],'type': 'dataobject','name': 'Profile2','allowed_profiles': []}]" def get_profile_json(self, bucket_name): return "{'type': 'container', 'metadata': {'cdmi_geographic_placement': ['PL', 'GB'], 'cdmi_data_redundancy': '2', 'cdmi_latency': '20'}, 'name': 'Profile1', 'allowed_profiles': [], 'pools': ['.rgw.buckets']}" def __get_profiles_names(self): return self.__config.sections() def __init__(self, config): self.__config = config
64.894737
703
0.686942
141
1,233
5.617021
0.312057
0.069444
0.113636
0.121212
0.409091
0.252525
0.252525
0.146465
0.146465
0
0
0.018987
0.103001
1,233
18
704
68.5
0.697107
0
0
0
0
0.181818
0.719156
0.421266
0
0
0
0
0
1
0.363636
false
0
0.181818
0.272727
0.909091
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
null
0
0
0
0
0
1
0
0
0
1
1
0
0
5
d2228d38b026f98ad79c73bd2fe1248f03473225
5,069
py
Python
znake/test/test_docker.py
ZenDevelopmentEcosystem/znake
ce7c5b3abca88200ac09b553dc64f8c0a3f4255f
[ "Apache-2.0" ]
1
2020-12-15T00:34:51.000Z
2020-12-15T00:34:51.000Z
znake/test/test_docker.py
ZenDevelopmentEcosystem/znake
ce7c5b3abca88200ac09b553dc64f8c0a3f4255f
[ "Apache-2.0" ]
null
null
null
znake/test/test_docker.py
ZenDevelopmentEcosystem/znake
ce7c5b3abca88200ac09b553dc64f8c0a3f4255f
[ "Apache-2.0" ]
2
2020-02-01T16:56:15.000Z
2020-12-10T21:55:23.000Z
import unittest from unittest.mock import MagicMock, Mock, patch from znake.docker import docker_run, get_venv_volume_name class TestDocker(unittest.TestCase): @staticmethod def get_ctx(root=False, no_pull=False, network=None, registry=None): ctx = MagicMock() root_arg = MagicMock() root_arg.value = root no_pull_arg = MagicMock() no_pull_arg.value = no_pull network_arg = MagicMock() network_arg.value = network ctx.core.args = { 'root': root_arg, 'no-pull': no_pull_arg, 'network': network_arg, } ctx.znake.docker_registry = registry return ctx def test_get_venv_volume_name(self): ctx = Mock() ctx.znake.info.package = 'my_package' result = get_venv_volume_name(ctx, 'my_image') self.assertEqual('my_package_venv_volume_my_image', result) def test_docker_run_without_root_flag(self): ctx = self.get_ctx(root=False, registry='my.docker.registry/repository') ctx.znake.docker.run.flags = ['--my-flag 3'] target = {'image': 'my_image'} command = 'this is my command' with patch('znake.docker._docker_pull') as pull, patch('znake.docker._docker_run') as run: docker_run(ctx, target['image'], command) expected_image_name = 'my.docker.registry/repository/' + 'my_image' pull.assert_called_once_with(ctx, expected_image_name) run.assert_called_once_with( ctx, '--my-flag 3 --user "$(id -u):$(id -g)"', expected_image_name, command, interactive=False) def test_docker_run_with_root_flag(self): ctx = self.get_ctx(root=True, registry='my.docker.registry/repository') ctx.znake.docker.run.flags = ['--my-flag 3'] target = {'image': 'my_image'} command = 'this is my command' with patch('znake.docker._docker_pull') as pull, patch('znake.docker._docker_run') as run: docker_run(ctx, target['image'], command) expected_image_name = 'my.docker.registry/repository/' + 'my_image' pull.assert_called_once_with(ctx, expected_image_name) run.assert_called_once_with( ctx, '--my-flag 3', expected_image_name, command, interactive=False) def test_docker_run_with_no_pull_flag(self): ctx = self.get_ctx(no_pull=True, registry='my.docker.registry/repository') ctx.znake.docker.run.flags = ['--my-flag 3'] target = {'image': 'my_image'} command = 'this is my command' with patch('znake.docker._docker_pull') as pull, patch('znake.docker._docker_run') as run: docker_run(ctx, target['image'], command) expected_image_name = 'my.docker.registry/repository/' + 'my_image' pull.assert_not_called() run.assert_called_once_with( ctx, '--my-flag 3 --user "$(id -u):$(id -g)"', expected_image_name, command, interactive=False) def test_docker_run_with_interactive(self): ctx = self.get_ctx(registry='my.docker.registry/repository') ctx.znake.docker.run.flags = ['--my-flag 3'] target = {'image': 'my_image'} command = 'this is my command' with patch('znake.docker._docker_pull'), patch('znake.docker._docker_run') as run: docker_run(ctx, target['image'], command, interactive=True) expected_image_name = 'my.docker.registry/repository/' + 'my_image' run.assert_called_once_with( ctx, '--my-flag 3 --user "$(id -u):$(id -g)" -it', expected_image_name, command, interactive=True) def test_docker_run_with_network_flag(self): ctx = self.get_ctx(network='network', registry='my.docker.registry/repository') ctx.znake.docker.run.flags = ['--my-flag 3'] target = {'image': 'my_image'} command = 'this is my command' with patch('znake.docker._docker_pull') as pull, patch('znake.docker._docker_run') as run: docker_run(ctx, target['image'], command) expected_image_name = 'my.docker.registry/repository/' + 'my_image' pull.assert_called_once_with(ctx, expected_image_name) run.assert_called_once_with( ctx, '--my-flag 3 --user "$(id -u):$(id -g)" --network network', expected_image_name, command, interactive=False) def test_docker_run_with_no_registry_flag(self): ctx = self.get_ctx() target = {'image': 'my_image'} command = 'this is my command' with patch('znake.docker._docker_pull') as pull, patch('znake.docker._docker_run') as run: docker_run(ctx, target['image'], command) expected_image_name = 'my_image' pull.assert_called_once_with(ctx, expected_image_name) run.assert_called_once_with( ctx, '--user "$(id -u):$(id -g)"', expected_image_name, command, interactive=False)
39.294574
98
0.624581
647
5,069
4.618238
0.095827
0.072289
0.091031
0.088353
0.773427
0.749331
0.728246
0.728246
0.708835
0.692102
0
0.002627
0.249162
5,069
128
99
39.601563
0.782449
0
0
0.561905
0
0
0.235352
0.122312
0.047619
0
0
0
0.114286
1
0.07619
false
0
0.028571
0
0.12381
0
0
0
0
null
0
0
0
0
1
1
1
1
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
5
d23f6e1d2b564296cb051e09e9d061febbd80510
214
py
Python
tests/test_try/output.py
waadnakhleh/pythonformatter
5f622986aa4e2fcdf03e49041a7ddc14e66d1a2f
[ "MIT" ]
null
null
null
tests/test_try/output.py
waadnakhleh/pythonformatter
5f622986aa4e2fcdf03e49041a7ddc14e66d1a2f
[ "MIT" ]
19
2020-12-28T17:17:12.000Z
2021-12-22T20:44:42.000Z
tests/test_try/output.py
waadnakhleh/pythonformatter
5f622986aa4e2fcdf03e49041a7ddc14e66d1a2f
[ "MIT" ]
1
2021-03-20T17:41:14.000Z
2021-03-20T17:41:14.000Z
def handle_exception(): pass try: pass except TypeError as e: handle_exception() else: print("Everything as usual") finally: print("some cleanup") try: pass except: handle_exception()
12.588235
32
0.663551
26
214
5.346154
0.615385
0.323741
0.18705
0
0
0
0
0
0
0
0
0
0.238318
214
16
33
13.375
0.852761
0
0
0.5
0
0
0.14486
0
0
0
0
0
0
1
0.071429
true
0.214286
0
0
0.071429
0.142857
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
0
0
0
0
0
5
d25801d6eebbf605bde87100bc7435347e557ce7
125
py
Python
haipproxy/utils/__init__.py
liguobao/haipproxy
2f529c7981c4e5f7d92940d6ab0dd31fa827b037
[ "MIT" ]
null
null
null
haipproxy/utils/__init__.py
liguobao/haipproxy
2f529c7981c4e5f7d92940d6ab0dd31fa827b037
[ "MIT" ]
null
null
null
haipproxy/utils/__init__.py
liguobao/haipproxy
2f529c7981c4e5f7d92940d6ab0dd31fa827b037
[ "MIT" ]
null
null
null
""" This module provides useful utils for haipproxy """ from .redis_util import (get_redis_conn, acquire_lock, release_lock)
25
68
0.792
18
125
5.222222
0.888889
0
0
0
0
0
0
0
0
0
0
0
0.12
125
4
69
31.25
0.854545
0.376
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
1
0
0
5
d2851e01e4fd9ec9d49623eb1b42c1edefb7567e
4,616
py
Python
mat_gen.py
aJuvenn/reservoirpy
4ad6a823d2325101122abca5d1642c226f958646
[ "MIT" ]
null
null
null
mat_gen.py
aJuvenn/reservoirpy
4ad6a823d2325101122abca5d1642c226f958646
[ "MIT" ]
null
null
null
mat_gen.py
aJuvenn/reservoirpy
4ad6a823d2325101122abca5d1642c226f958646
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on 11 juil. 2012 Modified 2018 @author: Xavier HINAUT xavier.hinaut #/at\# inria.fr """ # import mdp # import Oger import numpy as np from scipy import linalg def generate_internal_weights(N, spectral_radius=None, proba=0.1, Wstd=1.0, seed=None, randomize_seed_afterwards=False, verbose=False): """ Method that generate the weight matrix that will be used for the internal connections of the Reservoir. Inputs : - N: number of neurons - spectral_radius: SR - proba: probability of non-zero connections (sparsity), usually between 0.05 to 0.30 - verbose: print in the console detailed information. - seed: if not None, set the seed of the numpy.random generator to the given value. - randomize_seed_afterwards: as the module mdp.numx.random may not be used only by this method, the user may want to run several experiments with the same seed only for this method (generating the internal weights of the Reservoir), but have random seed for all other methods that will use mdp.numx.random. """ if seed is not None: # mdp.numx.random.seed(seed) np.random.seed(seed) # mask = 1*(mdp.numx_rand.random((N,N))<proba) # mat = mdp.numx.random.normal(0, 1, (N,N)) #equivalent to mdp.numx.random.randn(n, m) * sd + mu # w = mdp.numx.multiply(mat, mask) mask = 1 * (np.random.rand(N, N) < proba) mat = np.random.normal(0, Wstd, (N,N)) #equivalent to mdp.numx.random.randn(n, m) * sd + mu w = np.multiply(mat, mask) # Computing the spectral radius of W matrix rhoW = max(abs(linalg.eig(w)[0])) if verbose: # print( "Spectra radius of generated matrix before applying another spectral radius: "+str(Oger.utils.get_spectral_radius(w))) print( "Spectra radius of generated matrix before applying another spectral radius: "+str(rhoW)) if spectral_radius is not None: w *= spectral_radius / rhoW rhoW_after = max(abs(linalg.eig(w)[0])) if verbose: print( "Spectra radius matrix after applying another spectral radius: "+str(rhoW_after)) if randomize_seed_afterwards: """ redifine randomly the seed in order to not fix the seed also for other methods that are using numpy.random methods. """ raise Exception( "Have to check if you really want to randomize the seed, because this makes the whole experiment not reproducible.") import time # mdp.numx.random.seed(int(time.time()*10**6)) np.seed(int(time.time()*10**6)) return w def generate_input_weights(nbr_neuron, dim_input, input_scaling=None, proba=0.1, input_bias=False, seed=None, randomize_seed_afterwards=False, verbose=False): """ Method that generate the weight matrix that will be used for the input connections of the Reservoir. Inputs : - nbr_neuron: number of neurons - dim_input: dimension of the inputs - input_scaling: ISS - proba: probability of non-zero connections (sparsity), usually between 0.05 to 0.30 - verbose: print( in the console detailed information. - seed: if not None, set the seed of the numpy.random generator to the given value. - randomize_seed_afterwards: as the module mdp.numx.random may not be used only by this method, the user may want to run several experiments with the same seed only for this method (generating the internal weights of the Reservoir), but have random seed for all other methods that will use mdp.numx.random. """ if seed is not None: # mdp.numx.random.seed(seed) np.random.seed(seed) # mask = 1*(mdp.numx_rand.random((nbr_neuron, dim_input))<proba) # mat = mdp.numx.random.randint(0, 2, (nbr_neuron, dim_input)) * 2 - 1 # w = mdp.numx.multiply(mat, mask) if input_bias: dim_input += 1 mask = 1 * (np.random.rand(nbr_neuron, dim_input) < proba) mat = np.random.randint(0, 2, (nbr_neuron, dim_input)) * 2 - 1 w = np.multiply(mat, mask) if input_scaling is not None: w = input_scaling * w if randomize_seed_afterwards: """ redifine randomly the seed in order to not fix the seed also for other methods that are using numpy.random methods. """ raise Exception( "Have to check if you really want to randomize the seed, because this makes the whole experiment not reproducible.") import time # mdp.numx.random.seed(int(time.time()*10**6)) np.random.seed(int(time.time()*10**6)) return w
48.589474
158
0.670277
694
4,616
4.393372
0.226225
0.036733
0.051164
0.027878
0.802886
0.746474
0.702525
0.700558
0.684159
0.684159
0
0.016686
0.233969
4,616
94
159
49.106383
0.845588
0.511482
0
0.444444
0
0.055556
0.196226
0
0
0
0
0
0
1
0.055556
false
0
0.111111
0
0.222222
0.055556
0
0
0
null
0
0
0
1
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
5
9644086b44bddedb2dd3f26934f40d2f92e14034
367
py
Python
neural/nn/functional.py
bernardomig/neural
7e45208de4f0be7b183977df176c8d23428c7cde
[ "BSD-3-Clause" ]
null
null
null
neural/nn/functional.py
bernardomig/neural
7e45208de4f0be7b183977df176c8d23428c7cde
[ "BSD-3-Clause" ]
null
null
null
neural/nn/functional.py
bernardomig/neural
7e45208de4f0be7b183977df176c8d23428c7cde
[ "BSD-3-Clause" ]
3
2020-06-15T15:57:10.000Z
2020-11-23T07:49:59.000Z
import torch from torch.nn import functional as F def swish(input, inplace=False): return input * torch.sigmoid(input) def mish(input, inplace=False): return input * torch.tanh(F.softplus(input)) def hard_swish(input, inplace=False): return input * hard_sigmoid(input) def hard_sigmoid(input, inplace=False): return F.relu6(input + 3).div(6.)
19.315789
48
0.719346
55
367
4.745455
0.4
0.183908
0.260536
0.35249
0.398467
0.398467
0
0
0
0
0
0.009772
0.163488
367
18
49
20.388889
0.840391
0
0
0
0
0
0
0
0
0
0
0
0
1
0.4
false
0
0.2
0.4
1
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
5
966c14a81463ccd178af5ea94ec8c259241690e7
102
py
Python
unobase/eula/admin.py
unomena/unobase
175e768afa1608f9f34d1e5a053763ad27db0f7e
[ "BSD-3-Clause" ]
null
null
null
unobase/eula/admin.py
unomena/unobase
175e768afa1608f9f34d1e5a053763ad27db0f7e
[ "BSD-3-Clause" ]
null
null
null
unobase/eula/admin.py
unomena/unobase
175e768afa1608f9f34d1e5a053763ad27db0f7e
[ "BSD-3-Clause" ]
null
null
null
from unobase.eula import models from django.contrib import admin admin.site.register(models.EULA)
25.5
32
0.803922
15
102
5.466667
0.666667
0
0
0
0
0
0
0
0
0
0
0
0.127451
102
4
33
25.5
0.921348
0
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
1
0
0
5
967e9d354d5f95c471bd9a44e39e19c1cbb1959a
7,596
py
Python
tests/components/modern_forms/test_config_flow.py
basicpail/core
5cc54618c5af3f75c08314bf2375cc7ac40d2b7e
[ "Apache-2.0" ]
11
2018-02-16T15:35:47.000Z
2020-01-14T15:20:00.000Z
tests/components/modern_forms/test_config_flow.py
basicpail/core
5cc54618c5af3f75c08314bf2375cc7ac40d2b7e
[ "Apache-2.0" ]
87
2020-07-15T13:43:35.000Z
2022-03-23T07:43:10.000Z
tests/components/modern_forms/test_config_flow.py
Vaarlion/core
f3de8b9f28de01abf72c0f5bb0b457eb1841f201
[ "Apache-2.0" ]
11
2020-12-16T13:48:14.000Z
2022-02-01T00:28:05.000Z
"""Tests for the Modern Forms config flow.""" from unittest.mock import MagicMock, patch import aiohttp from aiomodernforms import ModernFormsConnectionError from homeassistant.components.modern_forms.const import DOMAIN from homeassistant.config_entries import SOURCE_USER, SOURCE_ZEROCONF from homeassistant.const import CONF_HOST, CONF_MAC, CONF_NAME, CONTENT_TYPE_JSON from homeassistant.core import HomeAssistant from homeassistant.data_entry_flow import ( RESULT_TYPE_ABORT, RESULT_TYPE_CREATE_ENTRY, RESULT_TYPE_FORM, ) from . import init_integration from tests.common import load_fixture from tests.test_util.aiohttp import AiohttpClientMocker async def test_full_user_flow_implementation( hass: HomeAssistant, aioclient_mock: AiohttpClientMocker ) -> None: """Test the full manual user flow from start to finish.""" aioclient_mock.post( "http://192.168.1.123:80/mf", text=load_fixture("modern_forms/device_info.json"), headers={"Content-Type": CONTENT_TYPE_JSON}, ) result = await hass.config_entries.flow.async_init( DOMAIN, context={"source": SOURCE_USER}, ) assert result.get("step_id") == "user" assert result.get("type") == RESULT_TYPE_FORM assert "flow_id" in result with patch( "homeassistant.components.modern_forms.async_setup_entry", return_value=True, ) as mock_setup_entry: result2 = await hass.config_entries.flow.async_configure( result["flow_id"], user_input={CONF_HOST: "192.168.1.123"} ) assert result2.get("title") == "ModernFormsFan" assert "data" in result2 assert result2.get("type") == RESULT_TYPE_CREATE_ENTRY assert result2["data"][CONF_HOST] == "192.168.1.123" assert result2["data"][CONF_MAC] == "AA:BB:CC:DD:EE:FF" assert len(mock_setup_entry.mock_calls) == 1 async def test_full_zeroconf_flow_implementation( hass: HomeAssistant, aioclient_mock: AiohttpClientMocker ) -> None: """Test the full manual user flow from start to finish.""" aioclient_mock.post( "http://192.168.1.123:80/mf", text=load_fixture("modern_forms/device_info.json"), headers={"Content-Type": CONTENT_TYPE_JSON}, ) result = await hass.config_entries.flow.async_init( DOMAIN, context={"source": SOURCE_ZEROCONF}, data={"host": "192.168.1.123", "hostname": "example.local.", "properties": {}}, ) flows = hass.config_entries.flow.async_progress() assert len(flows) == 1 assert result.get("description_placeholders") == {CONF_NAME: "example"} assert result.get("step_id") == "zeroconf_confirm" assert result.get("type") == RESULT_TYPE_FORM assert "flow_id" in result flow = flows[0] assert "context" in flow assert flow["context"][CONF_HOST] == "192.168.1.123" assert flow["context"][CONF_NAME] == "example" result2 = await hass.config_entries.flow.async_configure( result["flow_id"], user_input={} ) assert result2.get("title") == "example" assert result2.get("type") == RESULT_TYPE_CREATE_ENTRY assert "data" in result2 assert result2["data"][CONF_HOST] == "192.168.1.123" assert result2["data"][CONF_MAC] == "AA:BB:CC:DD:EE:FF" @patch( "homeassistant.components.modern_forms.ModernFormsDevice.update", side_effect=ModernFormsConnectionError, ) async def test_connection_error( update_mock: MagicMock, hass: HomeAssistant, aioclient_mock: AiohttpClientMocker ) -> None: """Test we show user form on Modern Forms connection error.""" aioclient_mock.post("http://example.com/mf", exc=aiohttp.ClientError) result = await hass.config_entries.flow.async_init( DOMAIN, context={"source": SOURCE_USER}, data={CONF_HOST: "example.com"}, ) assert result.get("type") == RESULT_TYPE_FORM assert result.get("step_id") == "user" assert result.get("errors") == {"base": "cannot_connect"} @patch( "homeassistant.components.modern_forms.ModernFormsDevice.update", side_effect=ModernFormsConnectionError, ) async def test_zeroconf_connection_error( update_mock: MagicMock, hass: HomeAssistant, aioclient_mock: AiohttpClientMocker ) -> None: """Test we abort zeroconf flow on Modern Forms connection error.""" aioclient_mock.post("http://192.168.1.123/mf", exc=aiohttp.ClientError) result = await hass.config_entries.flow.async_init( DOMAIN, context={"source": SOURCE_ZEROCONF}, data={"host": "192.168.1.123", "hostname": "example.local.", "properties": {}}, ) assert result.get("type") == RESULT_TYPE_ABORT assert result.get("reason") == "cannot_connect" @patch( "homeassistant.components.modern_forms.ModernFormsDevice.update", side_effect=ModernFormsConnectionError, ) async def test_zeroconf_confirm_connection_error( update_mock: MagicMock, hass: HomeAssistant, aioclient_mock: AiohttpClientMocker ) -> None: """Test we abort zeroconf flow on Modern Forms connection error.""" aioclient_mock.post("http://192.168.1.123:80/mf", exc=aiohttp.ClientError) result = await hass.config_entries.flow.async_init( DOMAIN, context={ "source": SOURCE_ZEROCONF, CONF_HOST: "example.com", CONF_NAME: "test", }, data={"host": "192.168.1.123", "hostname": "example.com.", "properties": {}}, ) assert result.get("type") == RESULT_TYPE_ABORT assert result.get("reason") == "cannot_connect" async def test_user_device_exists_abort( hass: HomeAssistant, aioclient_mock: AiohttpClientMocker ) -> None: """Test we abort zeroconf flow if Modern Forms device already configured.""" aioclient_mock.post( "http://192.168.1.123:80/mf", text=load_fixture("modern_forms/device_info.json"), headers={"Content-Type": CONTENT_TYPE_JSON}, ) await init_integration(hass, aioclient_mock, skip_setup=True) await hass.config_entries.flow.async_init( DOMAIN, context={"source": SOURCE_USER}, data={ "host": "192.168.1.123", "hostname": "example.local.", "properties": {CONF_MAC: "AA:BB:CC:DD:EE:FF"}, }, ) result = await hass.config_entries.flow.async_init( DOMAIN, context={"source": SOURCE_USER}, data={ "host": "192.168.1.123", "hostname": "example.local.", "properties": {CONF_MAC: "AA:BB:CC:DD:EE:FF"}, }, ) assert result.get("type") == RESULT_TYPE_ABORT assert result.get("reason") == "already_configured" async def test_zeroconf_with_mac_device_exists_abort( hass: HomeAssistant, aioclient_mock: AiohttpClientMocker ) -> None: """Test we abort zeroconf flow if a Modern Forms device already configured.""" await init_integration(hass, aioclient_mock, skip_setup=True) await hass.config_entries.flow.async_init( DOMAIN, context={"source": SOURCE_USER}, data={ "host": "192.168.1.123", "hostname": "example.local.", "properties": {CONF_MAC: "AA:BB:CC:DD:EE:FF"}, }, ) result = await hass.config_entries.flow.async_init( DOMAIN, context={"source": SOURCE_ZEROCONF}, data={ "host": "192.168.1.123", "hostname": "example.local.", "properties": {CONF_MAC: "AA:BB:CC:DD:EE:FF"}, }, ) assert result.get("type") == RESULT_TYPE_ABORT assert result.get("reason") == "already_configured"
33.315789
87
0.670484
923
7,596
5.318527
0.138678
0.019556
0.022815
0.032593
0.79283
0.761459
0.75494
0.750051
0.730291
0.68792
0
0.030025
0.197604
7,596
227
88
33.462555
0.77539
0.005134
0
0.59887
0
0
0.200706
0.049682
0
0
0
0
0.186441
1
0
false
0
0.062147
0
0.062147
0
0
0
0
null
0
0
0
0
1
1
1
1
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
5
96b3c7246fc645080b79cd0a6f014ed2e97e344d
156
py
Python
phylogeny/reconstruction/__init__.py
mroctavious/Phylogeny
014461b5ec6323f42cf1c913f6a9bdba42e3bc05
[ "MIT" ]
2
2020-01-17T17:19:15.000Z
2021-04-18T22:27:59.000Z
phylogeny/reconstruction/__init__.py
mroctavious/Phylogeny
014461b5ec6323f42cf1c913f6a9bdba42e3bc05
[ "MIT" ]
null
null
null
phylogeny/reconstruction/__init__.py
mroctavious/Phylogeny
014461b5ec6323f42cf1c913f6a9bdba42e3bc05
[ "MIT" ]
2
2018-08-30T20:57:37.000Z
2020-09-09T06:29:02.000Z
from .allquartets import all_quartets_method, four_point_method from .clocklike1 import infer_clocklike_tree1 from .clocklike2 import infer_clocklike_tree2
39
63
0.891026
21
156
6.238095
0.666667
0.167939
0.305344
0
0
0
0
0
0
0
0
0.027972
0.083333
156
3
64
52
0.888112
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
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
73a1d4328b995b6f66fdca28dc5b5c2b406c29d5
249
py
Python
byurak/group/admin.py
LikeLion-CAU-9th/Django-fancy-coder
53c770f4c1891f9076bed8c89d0b942b77e67667
[ "MIT" ]
null
null
null
byurak/group/admin.py
LikeLion-CAU-9th/Django-fancy-coder
53c770f4c1891f9076bed8c89d0b942b77e67667
[ "MIT" ]
2
2021-06-27T16:19:47.000Z
2021-08-01T16:41:54.000Z
byurak/group/admin.py
LikeLion-CAU-9th/Django-fancy-coder
53c770f4c1891f9076bed8c89d0b942b77e67667
[ "MIT" ]
2
2021-08-21T13:32:52.000Z
2021-12-20T10:12:45.000Z
from django.contrib import admin from group.models import Group, GroupCommunityPost, GroupNotice, GroupCalendar admin.site.register(Group) admin.site.register(GroupCommunityPost) admin.site.register(GroupNotice) admin.site.register(GroupCalendar)
27.666667
78
0.84739
29
249
7.275862
0.413793
0.170616
0.322275
0
0
0
0
0
0
0
0
0
0.068273
249
8
79
31.125
0.909483
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.333333
0
0.333333
0
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
73b69a5687baa15d60b490361a1a2e59e884219a
208
py
Python
2020-09-03/finances_api/api/core/__init__.py
santiagosilas/2020.1-WD
683e8707867cd977ca72ad1829a8f3a67a91cdd9
[ "MIT" ]
null
null
null
2020-09-03/finances_api/api/core/__init__.py
santiagosilas/2020.1-WD
683e8707867cd977ca72ad1829a8f3a67a91cdd9
[ "MIT" ]
null
null
null
2020-09-03/finances_api/api/core/__init__.py
santiagosilas/2020.1-WD
683e8707867cd977ca72ad1829a8f3a67a91cdd9
[ "MIT" ]
null
null
null
# The finances Blueprint handles the finances management for this application from flask import Blueprint core_blueprint = Blueprint('core', __name__, template_folder='templates') from . import controllers
34.666667
77
0.817308
25
208
6.56
0.68
0.134146
0
0
0
0
0
0
0
0
0
0
0.125
208
5
78
41.6
0.901099
0.360577
0
0
0
0
0.099237
0
0
0
0
0
0
1
0
false
0
0.666667
0
0.666667
0.666667
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
1
0
5
73fe087a9958ff0338f7508cc119497c419499d3
6,530
py
Python
tests/functional/utils/processes/bases/test_factory_daemon_script_base.py
cmcmarrow/pytest-salt-factories
12515411ea0fa11d7058a9deb61584a56c5f5108
[ "Apache-2.0" ]
null
null
null
tests/functional/utils/processes/bases/test_factory_daemon_script_base.py
cmcmarrow/pytest-salt-factories
12515411ea0fa11d7058a9deb61584a56c5f5108
[ "Apache-2.0" ]
null
null
null
tests/functional/utils/processes/bases/test_factory_daemon_script_base.py
cmcmarrow/pytest-salt-factories
12515411ea0fa11d7058a9deb61584a56c5f5108
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 """ tests.functional.utils.processes.bases.test_factory_daemon_script_base ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Test saltfactories.utils.processes.bases.FactoryDaemonScriptBase """ import functools import pprint import sys import time import psutil import pytest if sys.platform.startswith("win"): # Because on windows we need the python executable to come before the script, # we recreate FactoryDaemonScriptBase by also subclassing FactoryPythonScriptBase # which adds that functionality from saltfactories.utils.processes.bases import ( FactoryDaemonScriptBase as _FactoryDaemonScriptBase, ) from saltfactories.utils.processes.bases import FactoryPythonScriptBase class FactoryDaemonScriptBase(_FactoryDaemonScriptBase, FactoryPythonScriptBase): pass PROCESS_START_TIMEOUT = 2 else: from saltfactories.utils.processes.bases import FactoryDaemonScriptBase PROCESS_START_TIMEOUT = 1 def kill_children(procs): _, alive = psutil.wait_procs(procs, timeout=3) for p in alive: p.kill() def test_daemon_process_termination(request, tempfiles): primary_childrend_count = 5 secondary_children_count = 3 script = tempfiles.makepyfile( """ #!{shebang} # coding=utf-8 import time import multiprocessing def spin(): while True: try: time.sleep(0.25) except KeyboardInterrupt: break def spin_children(): procs = [] for idx in range({secondary_children_count}): proc = multiprocessing.Process(target=spin) proc.daemon = True proc.start() procs.append(proc) while True: try: time.sleep(0.25) except KeyboardInterrupt: break def main(): procs = [] for idx in range({primary_childrend_count}): proc = multiprocessing.Process(target=spin_children) procs.append(proc) proc.start() while True: try: time.sleep(0.25) except KeyboardInterrupt: break # We're not terminating child processes on purpose. Our code should handle it. # Support for windows test runs if __name__ == '__main__': multiprocessing.freeze_support() main() """.format( shebang=sys.executable, primary_childrend_count=primary_childrend_count, secondary_children_count=secondary_children_count, ), executable=True, ) daemon = FactoryDaemonScriptBase(script) daemon.start() daemon_pid = daemon.pid # Make sure the daemon is terminated no matter what request.addfinalizer(daemon.terminate) # Allow the script to start time.sleep(PROCESS_START_TIMEOUT) assert psutil.pid_exists(daemon_pid) proc = psutil.Process(daemon_pid) children = proc.children(recursive=True) request.addfinalizer(functools.partial(kill_children, children)) assert len(children) == primary_childrend_count + ( primary_childrend_count * secondary_children_count ) daemon.terminate() assert psutil.pid_exists(daemon_pid) is False for child in list(children): if psutil.pid_exists(child.pid): continue children.remove(child) assert not children, "len(children)=={} != 0\n{}".format( len(children), pprint.pformat(children) ) @pytest.mark.skip("Will debug later") def test_daemon_process_termination_parent_killed(request, tempfiles): primary_childrend_count = 5 secondary_children_count = 3 script = tempfiles.makepyfile( """ #!{shebang} # coding=utf-8 import time import multiprocessing def spin(): while True: try: time.sleep(0.25) except KeyboardInterrupt: break def spin_children(): procs = [] for idx in range({secondary_children_count}): proc = multiprocessing.Process(target=spin) proc.daemon = True proc.start() procs.append(proc) while True: try: time.sleep(0.25) except KeyboardInterrupt: break def main(): procs = [] for idx in range({primary_childrend_count}): proc = multiprocessing.Process(target=spin_children) procs.append(proc) proc.start() while True: try: time.sleep(0.25) except KeyboardInterrupt: break # We're not terminating child processes on purpose. Our code should handle it. # Support for windows test runs if __name__ == '__main__': multiprocessing.freeze_support() main() """.format( shebang=sys.executable, primary_childrend_count=primary_childrend_count, secondary_children_count=secondary_children_count, ), executable=True, ) daemon = FactoryDaemonScriptBase(script) daemon.start() daemon_pid = daemon.pid # Make sure the daemon is terminated no matter what request.addfinalizer(daemon.terminate) # Allow the script to start time.sleep(PROCESS_START_TIMEOUT) assert psutil.pid_exists(daemon_pid) proc = psutil.Process(daemon_pid) children = proc.children(recursive=True) request.addfinalizer(functools.partial(kill_children, children)) assert len(children) == primary_childrend_count + ( primary_childrend_count * secondary_children_count ) # Pretend the parent process died. proc.kill() time.sleep(0.5) # We should should still be able to terminate all child processes daemon.terminate() assert psutil.pid_exists(daemon_pid) is False psutil.wait_procs(children, timeout=3) for child in list(children): if psutil.pid_exists(child.pid): continue children.remove(child) assert not children, "len(children)=={} != 0\n{}".format( len(children), pprint.pformat(children) )
30.231481
90
0.603675
652
6,530
5.880368
0.219325
0.050078
0.065728
0.025039
0.792384
0.776213
0.765258
0.731351
0.731351
0.731351
0
0.007324
0.309954
6,530
215
91
30.372093
0.843542
0.100459
0
0.629213
0
0
0.022077
0
0
0
0
0
0.089888
1
0.033708
false
0.011236
0.101124
0
0.146067
0.033708
0
0
0
null
0
0
0
0
1
1
1
1
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
5
fba2656d332aebf44463e5a3a63e160779e6ee80
196
py
Python
attack_models/test.py
sanixa/gan-leaks-custom
f2efd8c8f4d267dd728bf00c8936d6f04a63736e
[ "MIT" ]
null
null
null
attack_models/test.py
sanixa/gan-leaks-custom
f2efd8c8f4d267dd728bf00c8936d6f04a63736e
[ "MIT" ]
null
null
null
attack_models/test.py
sanixa/gan-leaks-custom
f2efd8c8f4d267dd728bf00c8936d6f04a63736e
[ "MIT" ]
null
null
null
import numpy as np fbb = np.load("results/fbb/cgan_mnist_1000/pos_loss.npy") print(fbb.shape) print(fbb) wb = np.load("results/wb/cgan_mnist_1000/pos_loss.npy") print(wb.shape) print(wb)
21.777778
58
0.729592
36
196
3.805556
0.444444
0.087591
0.189781
0.233577
0.408759
0.408759
0.408759
0
0
0
0
0.046243
0.117347
196
8
59
24.5
0.745665
0
0
0
0
0
0.42246
0.42246
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0.571429
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
1
null
0
0
0
0
0
0
0
0
0
0
0
1
0
5
fbaa9a7442ecd5d0407d9dd7452b0487eaaf2815
17
py
Python
src/celery_redis_prometheus/__init__.py
Boligportal/celery_redis_prometheus
c566b83b154dafa33909f2ce4e8f225a57064ef3
[ "BSD-3-Clause" ]
22
2018-05-21T21:00:25.000Z
2022-01-19T01:30:29.000Z
src/sphinx_elasticsearch/__init__.py
ZeitOnline/sphinx_elasticsearch
0427b039ae0fc6ed87c68833b3ee6449df5863c0
[ "BSD-3-Clause" ]
107
2019-05-24T12:19:02.000Z
2022-03-23T15:05:56.000Z
src/gocept/month/browser/__init__.py
gocept/gocept.month
a31d285edd631679d22680c432e3419b262ff9c8
[ "MIT" ]
12
2018-10-05T10:36:06.000Z
2021-08-20T08:13:51.000Z
# python package
8.5
16
0.764706
2
17
6.5
1
0
0
0
0
0
0
0
0
0
0
0
0.176471
17
1
17
17
0.928571
0.823529
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
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
fbaba0b1816ca0469feb88de960cf726956ddd69
6,340
py
Python
pedido/tests.py
helpthx/jenkins-django-pipeline
78a2be704b9cca6b664778113b9401d0df44ff6b
[ "Apache-2.0" ]
null
null
null
pedido/tests.py
helpthx/jenkins-django-pipeline
78a2be704b9cca6b664778113b9401d0df44ff6b
[ "Apache-2.0" ]
6
2021-03-19T04:43:10.000Z
2022-02-10T11:58:21.000Z
pedido/tests.py
helpthx/jenkins-django-pipeline
78a2be704b9cca6b664778113b9401d0df44ff6b
[ "Apache-2.0" ]
1
2020-06-11T07:57:20.000Z
2020-06-11T07:57:20.000Z
from django.test import TestCase from django.urls import reverse from rest_framework import status from rest_framework.test import APITestCase # Create your tests here. from produto.models import Produtos from pedido.models import Pedidos from produto.serializers import ProdutosCreateSerializer from pedido.serializers import PedidosCreateSerializer class PedidoTeste(APITestCase): data = { "nome_produto": "Produto 1", "valor_unitario": 1200.0, "qtd_estoque": 40, "situacao_prod": "1" } data_pedido = { "qtd_produtos": 5, "valor_unitario": 1200.0, "data_pedido": "1200-12-08", "solicitante": "Eu", "endereco_solicitante": "QNM 09 CONJUNTO C CASA 28", "despachante": "Amazon", "situacao_pedido": "0", "nome_produto": 1 } def setUp(self): self.url_create = reverse('pedido:pedido_create') self.url_list = reverse('pedido:pedido_list') def teste_create_pedido(self): data = self.data.copy() data_pedido = self.data_pedido.copy() serializer = ProdutosCreateSerializer(data=data) self.assertTrue(serializer.is_valid()) instance = Produtos.objects.create(**data) instance.save() self.assertEqual(Produtos.objects.count(), 1) data_pedido['nome_produto'] = int(instance.id) serializer = PedidosCreateSerializer(data=data_pedido) self.assertTrue(serializer.is_valid()) response = self.client.post(self.url_create, data_pedido, format='json') self.assertEqual(response.status_code, status.HTTP_201_CREATED) self.assertEqual(Produtos.objects.count(), 1) data_pedido["valor_unitario"] = 1200,0 response = self.client.post(self.url_create, data_pedido, format='json') self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) self.assertEqual(Produtos.objects.count(), 1) data_pedido["valor_unitario"] = 1200.0 data_pedido["qtd_produtos"] = 100 response = self.client.post(self.url_create, data_pedido, format='json') self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) self.assertEqual(Produtos.objects.count(), 1) data_pedido["nome_produto"] = 0 data_pedido["situacao_pedido"] = 'TESTE' response = self.client.post(self.url_create, data_pedido, format='json') self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) self.assertEqual(Produtos.objects.count(), 1) def teste_list_pedido(self): data = self.data.copy() data_pedido = self.data_pedido.copy() serializer = ProdutosCreateSerializer(data=data) self.assertTrue(serializer.is_valid()) instance = Produtos.objects.create(**data) instance.save() self.assertEqual(Produtos.objects.count(), 1) data_pedido['nome_produto'] = int(instance.id) serializer = PedidosCreateSerializer(data=data_pedido) self.assertTrue(serializer.is_valid()) response = self.client.post(self.url_create, data_pedido, format='json') self.assertEqual(response.status_code, status.HTTP_201_CREATED) self.assertEqual(Pedidos.objects.count(), 1) response = self.client.get(self.url_list, format='json') self.assertEqual(response.status_code, status.HTTP_200_OK) self.assertEqual(response.data[0]['nome_produto'], int(instance.id)) def teste_deltail_update_pedido(self): data = self.data.copy() data_pedido = self.data_pedido.copy() serializer = ProdutosCreateSerializer(data=data) self.assertTrue(serializer.is_valid()) instance = Produtos.objects.create(**data) instance.save() self.assertEqual(Produtos.objects.count(), 1) data_pedido['nome_produto'] = int(instance.id) serializer = PedidosCreateSerializer(data=data_pedido) self.assertTrue(serializer.is_valid()) response = self.client.post(self.url_create, data_pedido, format='json') self.assertEqual(response.status_code, status.HTTP_201_CREATED) self.assertEqual(Pedidos.objects.count(), 1) self.url_detail = reverse('pedido:pedido_put', kwargs={'cid': str(instance.id)}) response = self.client.get(self.url_detail, format='json') self.assertEqual(response.status_code, status.HTTP_200_OK) self.assertEqual(response.data['nome_produto'], int(instance.id)) self.assertEqual(Pedidos.objects.count(), 1) data_pedido['solicitante'] = 'teste put' response = self.client.put(self.url_detail, data_pedido, format='json') self.assertEqual(response.status_code, status.HTTP_200_OK) response = self.client.get(self.url_detail, format='json') self.assertEqual(response.status_code, status.HTTP_200_OK) self.assertEqual(response.data['solicitante'], 'teste put') self.assertEqual(Pedidos.objects.count(), 1) def teste_delete_pedido(self): data = self.data.copy() data_pedido = self.data_pedido.copy() serializer = ProdutosCreateSerializer(data=data) self.assertTrue(serializer.is_valid()) instance = Produtos.objects.create(**data) instance.save() self.assertEqual(Produtos.objects.count(), 1) data_pedido['nome_produto'] = int(instance.id) serializer = PedidosCreateSerializer(data=data_pedido) self.assertTrue(serializer.is_valid()) response = self.client.post(self.url_create, data_pedido, format='json') self.assertEqual(response.status_code, status.HTTP_201_CREATED) self.assertEqual(Pedidos.objects.count(), 1) self.url_delete = reverse('pedido:pedido_delete', kwargs={'cid': str(instance.id)}) response = self.client.get(self.url_delete, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) self.assertEqual(Pedidos.objects.count(), 1) response = self.client.delete(self.url_delete, format='json') self.assertEqual(response.status_code, status.HTTP_204_NO_CONTENT) self.assertEqual(Pedidos.objects.count(), 0)
33.544974
82
0.674448
733
6,340
5.646658
0.136426
0.077313
0.08891
0.078521
0.790046
0.763953
0.735443
0.735443
0.735443
0.718289
0
0.019514
0.207886
6,340
188
83
33.723404
0.80466
0.003628
0
0.606557
0
0
0.083492
0
0
0
0
0
0.319672
1
0.040984
false
0
0.065574
0
0.131148
0
0
0
0
null
0
0
0
0
1
1
1
1
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
5
83830f85d8c7d953c0c95c3edd5287a466ea9565
83
py
Python
src/foreverbull_core/socket/exceptions.py
quantfamily/foreverbull-core
f85a3ae2a514eb65cbf90cb90ac4532944b40082
[ "Apache-2.0" ]
null
null
null
src/foreverbull_core/socket/exceptions.py
quantfamily/foreverbull-core
f85a3ae2a514eb65cbf90cb90ac4532944b40082
[ "Apache-2.0" ]
12
2021-11-28T18:02:53.000Z
2022-03-05T16:10:53.000Z
src/foreverbull_core/socket/exceptions.py
quantfamily/foreverbull-core
f85a3ae2a514eb65cbf90cb90ac4532944b40082
[ "Apache-2.0" ]
null
null
null
class SocketTimeout(Exception): pass class SocketClosed(Exception): pass
11.857143
31
0.73494
8
83
7.625
0.625
0.42623
0
0
0
0
0
0
0
0
0
0
0.192771
83
6
32
13.833333
0.910448
0
0
0.5
0
0
0
0
0
0
0
0
0
1
0
true
0.5
0
0
0.5
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
0
0
0
0
0
5
83b4876aa7cae83598f6d5da31a5f46990afe6be
44,388
py
Python
bitmovin_api_sdk/models/__init__.py
hofmannben/bitmovin-api-sdk-python
71aae5cd8a31aa0ad54ca07a6f546a624e8686a9
[ "MIT" ]
null
null
null
bitmovin_api_sdk/models/__init__.py
hofmannben/bitmovin-api-sdk-python
71aae5cd8a31aa0ad54ca07a6f546a624e8686a9
[ "MIT" ]
null
null
null
bitmovin_api_sdk/models/__init__.py
hofmannben/bitmovin-api-sdk-python
71aae5cd8a31aa0ad54ca07a6f546a624e8686a9
[ "MIT" ]
null
null
null
# coding: utf-8 from __future__ import absolute_import # import models into model package from bitmovin_api_sdk.models.aac_audio_configuration import AacAudioConfiguration from bitmovin_api_sdk.models.aac_channel_layout import AacChannelLayout from bitmovin_api_sdk.models.abstract_condition import AbstractCondition from bitmovin_api_sdk.models.abstract_conjunction import AbstractConjunction from bitmovin_api_sdk.models.ac3_audio_configuration import Ac3AudioConfiguration from bitmovin_api_sdk.models.ac3_channel_layout import Ac3ChannelLayout from bitmovin_api_sdk.models.accessibility import Accessibility from bitmovin_api_sdk.models.account_api_key import AccountApiKey from bitmovin_api_sdk.models.account_information import AccountInformation from bitmovin_api_sdk.models.acl import Acl from bitmovin_api_sdk.models.acl_entry import AclEntry from bitmovin_api_sdk.models.acl_permission import AclPermission from bitmovin_api_sdk.models.ad_analytics_abstract_filter import AdAnalyticsAbstractFilter from bitmovin_api_sdk.models.ad_analytics_attribute import AdAnalyticsAttribute from bitmovin_api_sdk.models.ad_analytics_avg_query_request import AdAnalyticsAvgQueryRequest from bitmovin_api_sdk.models.ad_analytics_contains_filter import AdAnalyticsContainsFilter from bitmovin_api_sdk.models.ad_analytics_count_query_request import AdAnalyticsCountQueryRequest from bitmovin_api_sdk.models.ad_analytics_equal_filter import AdAnalyticsEqualFilter from bitmovin_api_sdk.models.ad_analytics_greater_than_filter import AdAnalyticsGreaterThanFilter from bitmovin_api_sdk.models.ad_analytics_greater_than_or_equal_filter import AdAnalyticsGreaterThanOrEqualFilter from bitmovin_api_sdk.models.ad_analytics_in_filter import AdAnalyticsInFilter from bitmovin_api_sdk.models.ad_analytics_less_than_filter import AdAnalyticsLessThanFilter from bitmovin_api_sdk.models.ad_analytics_less_than_or_equal_filter import AdAnalyticsLessThanOrEqualFilter from bitmovin_api_sdk.models.ad_analytics_max_query_request import AdAnalyticsMaxQueryRequest from bitmovin_api_sdk.models.ad_analytics_median_query_request import AdAnalyticsMedianQueryRequest from bitmovin_api_sdk.models.ad_analytics_min_query_request import AdAnalyticsMinQueryRequest from bitmovin_api_sdk.models.ad_analytics_not_contains_filter import AdAnalyticsNotContainsFilter from bitmovin_api_sdk.models.ad_analytics_not_equal_filter import AdAnalyticsNotEqualFilter from bitmovin_api_sdk.models.ad_analytics_order_by_entry import AdAnalyticsOrderByEntry from bitmovin_api_sdk.models.ad_analytics_percentile_query_request import AdAnalyticsPercentileQueryRequest from bitmovin_api_sdk.models.ad_analytics_query_request import AdAnalyticsQueryRequest from bitmovin_api_sdk.models.ad_analytics_stddev_query_request import AdAnalyticsStddevQueryRequest from bitmovin_api_sdk.models.ad_analytics_sum_query_request import AdAnalyticsSumQueryRequest from bitmovin_api_sdk.models.ad_analytics_variance_query_request import AdAnalyticsVarianceQueryRequest from bitmovin_api_sdk.models.adaptation_set import AdaptationSet from bitmovin_api_sdk.models.adaptation_set_role import AdaptationSetRole from bitmovin_api_sdk.models.adaptive_quant_mode import AdaptiveQuantMode from bitmovin_api_sdk.models.aes_encryption_drm import AesEncryptionDrm from bitmovin_api_sdk.models.aes_encryption_method import AesEncryptionMethod from bitmovin_api_sdk.models.akamai_msl_output import AkamaiMslOutput from bitmovin_api_sdk.models.akamai_msl_stream_format import AkamaiMslStreamFormat from bitmovin_api_sdk.models.akamai_msl_version import AkamaiMslVersion from bitmovin_api_sdk.models.akamai_net_storage_input import AkamaiNetStorageInput from bitmovin_api_sdk.models.akamai_net_storage_output import AkamaiNetStorageOutput from bitmovin_api_sdk.models.analytics_abstract_filter import AnalyticsAbstractFilter from bitmovin_api_sdk.models.analytics_attribute import AnalyticsAttribute from bitmovin_api_sdk.models.analytics_avg_concurrent_viewers_response import AnalyticsAvgConcurrentViewersResponse from bitmovin_api_sdk.models.analytics_avg_dropped_frames_response import AnalyticsAvgDroppedFramesResponse from bitmovin_api_sdk.models.analytics_avg_query_request import AnalyticsAvgQueryRequest from bitmovin_api_sdk.models.analytics_column_label import AnalyticsColumnLabel from bitmovin_api_sdk.models.analytics_contains_filter import AnalyticsContainsFilter from bitmovin_api_sdk.models.analytics_context_description import AnalyticsContextDescription from bitmovin_api_sdk.models.analytics_count_query_request import AnalyticsCountQueryRequest from bitmovin_api_sdk.models.analytics_equal_filter import AnalyticsEqualFilter from bitmovin_api_sdk.models.analytics_export_status import AnalyticsExportStatus from bitmovin_api_sdk.models.analytics_export_task import AnalyticsExportTask from bitmovin_api_sdk.models.analytics_export_task_output_target import AnalyticsExportTaskOutputTarget from bitmovin_api_sdk.models.analytics_greater_than_filter import AnalyticsGreaterThanFilter from bitmovin_api_sdk.models.analytics_greater_than_or_equal_filter import AnalyticsGreaterThanOrEqualFilter from bitmovin_api_sdk.models.analytics_impression_details import AnalyticsImpressionDetails from bitmovin_api_sdk.models.analytics_impression_list_item import AnalyticsImpressionListItem from bitmovin_api_sdk.models.analytics_impressions_query import AnalyticsImpressionsQuery from bitmovin_api_sdk.models.analytics_impressions_response import AnalyticsImpressionsResponse from bitmovin_api_sdk.models.analytics_in_filter import AnalyticsInFilter from bitmovin_api_sdk.models.analytics_insights_organization_settings import AnalyticsInsightsOrganizationSettings from bitmovin_api_sdk.models.analytics_insights_organization_settings_request import AnalyticsInsightsOrganizationSettingsRequest from bitmovin_api_sdk.models.analytics_interval import AnalyticsInterval from bitmovin_api_sdk.models.analytics_less_than_filter import AnalyticsLessThanFilter from bitmovin_api_sdk.models.analytics_less_than_or_equal_filter import AnalyticsLessThanOrEqualFilter from bitmovin_api_sdk.models.analytics_license import AnalyticsLicense from bitmovin_api_sdk.models.analytics_license_custom_data_field_labels import AnalyticsLicenseCustomDataFieldLabels from bitmovin_api_sdk.models.analytics_license_domain import AnalyticsLicenseDomain from bitmovin_api_sdk.models.analytics_license_key import AnalyticsLicenseKey from bitmovin_api_sdk.models.analytics_license_update_request import AnalyticsLicenseUpdateRequest from bitmovin_api_sdk.models.analytics_max_concurrent_viewers_response import AnalyticsMaxConcurrentViewersResponse from bitmovin_api_sdk.models.analytics_max_query_request import AnalyticsMaxQueryRequest from bitmovin_api_sdk.models.analytics_median_query_request import AnalyticsMedianQueryRequest from bitmovin_api_sdk.models.analytics_metrics_query_request import AnalyticsMetricsQueryRequest from bitmovin_api_sdk.models.analytics_min_query_request import AnalyticsMinQueryRequest from bitmovin_api_sdk.models.analytics_not_contains_filter import AnalyticsNotContainsFilter from bitmovin_api_sdk.models.analytics_not_equal_filter import AnalyticsNotEqualFilter from bitmovin_api_sdk.models.analytics_order import AnalyticsOrder from bitmovin_api_sdk.models.analytics_order_by_entry import AnalyticsOrderByEntry from bitmovin_api_sdk.models.analytics_percentile_query_request import AnalyticsPercentileQueryRequest from bitmovin_api_sdk.models.analytics_query_operator import AnalyticsQueryOperator from bitmovin_api_sdk.models.analytics_query_request import AnalyticsQueryRequest from bitmovin_api_sdk.models.analytics_query_timeframe import AnalyticsQueryTimeframe from bitmovin_api_sdk.models.analytics_response import AnalyticsResponse from bitmovin_api_sdk.models.analytics_stddev_query_request import AnalyticsStddevQueryRequest from bitmovin_api_sdk.models.analytics_sum_query_request import AnalyticsSumQueryRequest from bitmovin_api_sdk.models.analytics_variance_query_request import AnalyticsVarianceQueryRequest from bitmovin_api_sdk.models.and_conjunction import AndConjunction from bitmovin_api_sdk.models.api_error_definition import ApiErrorDefinition from bitmovin_api_sdk.models.applied_stream_settings import AppliedStreamSettings from bitmovin_api_sdk.models.aspect_mode import AspectMode from bitmovin_api_sdk.models.aspera_input import AsperaInput from bitmovin_api_sdk.models.audio_adaptation_set import AudioAdaptationSet from bitmovin_api_sdk.models.audio_configuration import AudioConfiguration from bitmovin_api_sdk.models.audio_group import AudioGroup from bitmovin_api_sdk.models.audio_group_configuration import AudioGroupConfiguration from bitmovin_api_sdk.models.audio_media_info import AudioMediaInfo from bitmovin_api_sdk.models.audio_mix_channel import AudioMixChannel from bitmovin_api_sdk.models.audio_mix_channel_layout import AudioMixChannelLayout from bitmovin_api_sdk.models.audio_mix_channel_type import AudioMixChannelType from bitmovin_api_sdk.models.audio_mix_filter import AudioMixFilter from bitmovin_api_sdk.models.audio_mix_input_channel_layout import AudioMixInputChannelLayout from bitmovin_api_sdk.models.audio_mix_input_stream import AudioMixInputStream from bitmovin_api_sdk.models.audio_mix_input_stream_channel import AudioMixInputStreamChannel from bitmovin_api_sdk.models.audio_mix_input_stream_source_channel import AudioMixInputStreamSourceChannel from bitmovin_api_sdk.models.audio_mix_source_channel_type import AudioMixSourceChannelType from bitmovin_api_sdk.models.audio_stream import AudioStream from bitmovin_api_sdk.models.audio_video_sync_mode import AudioVideoSyncMode from bitmovin_api_sdk.models.audio_volume_filter import AudioVolumeFilter from bitmovin_api_sdk.models.audio_volume_unit import AudioVolumeUnit from bitmovin_api_sdk.models.auto_representation import AutoRepresentation from bitmovin_api_sdk.models.auto_restart_configuration import AutoRestartConfiguration from bitmovin_api_sdk.models.av1_adaptive_quant_mode import Av1AdaptiveQuantMode from bitmovin_api_sdk.models.av1_key_placement_mode import Av1KeyPlacementMode from bitmovin_api_sdk.models.av1_video_configuration import Av1VideoConfiguration from bitmovin_api_sdk.models.aws_account import AwsAccount from bitmovin_api_sdk.models.aws_account_region_settings import AwsAccountRegionSettings from bitmovin_api_sdk.models.aws_cloud_region import AwsCloudRegion from bitmovin_api_sdk.models.azure_input import AzureInput from bitmovin_api_sdk.models.azure_output import AzureOutput from bitmovin_api_sdk.models.b_adapt import BAdapt from bitmovin_api_sdk.models.backup_srt_inputs import BackupSrtInputs from bitmovin_api_sdk.models.basic_media_info import BasicMediaInfo from bitmovin_api_sdk.models.bif import Bif from bitmovin_api_sdk.models.billable_encoding_feature_minutes import BillableEncodingFeatureMinutes from bitmovin_api_sdk.models.billable_encoding_minutes import BillableEncodingMinutes from bitmovin_api_sdk.models.billable_encoding_minutes_details import BillableEncodingMinutesDetails from bitmovin_api_sdk.models.bitmovin_resource import BitmovinResource from bitmovin_api_sdk.models.bitmovin_response import BitmovinResponse from bitmovin_api_sdk.models.bitmovin_response_list import BitmovinResponseList from bitmovin_api_sdk.models.bitrate_selection_mode import BitrateSelectionMode from bitmovin_api_sdk.models.broadcast_ts_audio_input_stream_configuration import BroadcastTsAudioInputStreamConfiguration from bitmovin_api_sdk.models.broadcast_ts_input_stream_configuration import BroadcastTsInputStreamConfiguration from bitmovin_api_sdk.models.broadcast_ts_muxing import BroadcastTsMuxing from bitmovin_api_sdk.models.broadcast_ts_muxing_configuration import BroadcastTsMuxingConfiguration from bitmovin_api_sdk.models.broadcast_ts_muxing_information import BroadcastTsMuxingInformation from bitmovin_api_sdk.models.broadcast_ts_program_configuration import BroadcastTsProgramConfiguration from bitmovin_api_sdk.models.broadcast_ts_transport_configuration import BroadcastTsTransportConfiguration from bitmovin_api_sdk.models.broadcast_ts_video_input_stream_configuration import BroadcastTsVideoInputStreamConfiguration from bitmovin_api_sdk.models.burn_in_subtitle_dvb_sub import BurnInSubtitleDvbSub from bitmovin_api_sdk.models.burn_in_subtitle_srt import BurnInSubtitleSrt from bitmovin_api_sdk.models.caption_character_encoding import CaptionCharacterEncoding from bitmovin_api_sdk.models.cea608708_subtitle_configuration import Cea608708SubtitleConfiguration from bitmovin_api_sdk.models.cea608_caption_input_stream import Cea608CaptionInputStream from bitmovin_api_sdk.models.cea608_channel_type import Cea608ChannelType from bitmovin_api_sdk.models.cea708_caption_input_stream import Cea708CaptionInputStream from bitmovin_api_sdk.models.cenc_drm import CencDrm from bitmovin_api_sdk.models.cenc_fair_play import CencFairPlay from bitmovin_api_sdk.models.cenc_marlin import CencMarlin from bitmovin_api_sdk.models.cenc_play_ready import CencPlayReady from bitmovin_api_sdk.models.cenc_widevine import CencWidevine from bitmovin_api_sdk.models.channel_layout import ChannelLayout from bitmovin_api_sdk.models.chroma_location import ChromaLocation from bitmovin_api_sdk.models.chunked_text_muxing import ChunkedTextMuxing from bitmovin_api_sdk.models.clear_key_drm import ClearKeyDrm from bitmovin_api_sdk.models.closed_captions_media_info import ClosedCaptionsMediaInfo from bitmovin_api_sdk.models.cloud_region import CloudRegion from bitmovin_api_sdk.models.cmaf_muxing import CmafMuxing from bitmovin_api_sdk.models.codec_config_type import CodecConfigType from bitmovin_api_sdk.models.codec_config_type_response import CodecConfigTypeResponse from bitmovin_api_sdk.models.codec_configuration import CodecConfiguration from bitmovin_api_sdk.models.color_config import ColorConfig from bitmovin_api_sdk.models.color_primaries import ColorPrimaries from bitmovin_api_sdk.models.color_range import ColorRange from bitmovin_api_sdk.models.color_space import ColorSpace from bitmovin_api_sdk.models.color_transfer import ColorTransfer from bitmovin_api_sdk.models.concatenation_input_configuration import ConcatenationInputConfiguration from bitmovin_api_sdk.models.concatenation_input_stream import ConcatenationInputStream from bitmovin_api_sdk.models.condition import Condition from bitmovin_api_sdk.models.condition_operator import ConditionOperator from bitmovin_api_sdk.models.condition_type import ConditionType from bitmovin_api_sdk.models.conform_filter import ConformFilter from bitmovin_api_sdk.models.content_protection import ContentProtection from bitmovin_api_sdk.models.convert_scc_caption import ConvertSccCaption from bitmovin_api_sdk.models.convert_scc_caption_web_vtt_settings import ConvertSccCaptionWebVttSettings from bitmovin_api_sdk.models.convert_scc_position_mode import ConvertSccPositionMode from bitmovin_api_sdk.models.crop_filter import CropFilter from bitmovin_api_sdk.models.custom_attribute import CustomAttribute from bitmovin_api_sdk.models.custom_data import CustomData from bitmovin_api_sdk.models.custom_player_build_details import CustomPlayerBuildDetails from bitmovin_api_sdk.models.custom_player_build_download import CustomPlayerBuildDownload from bitmovin_api_sdk.models.custom_player_build_status import CustomPlayerBuildStatus from bitmovin_api_sdk.models.custom_tag import CustomTag from bitmovin_api_sdk.models.custom_web_player_build_domain import CustomWebPlayerBuildDomain from bitmovin_api_sdk.models.custom_xml_element import CustomXmlElement from bitmovin_api_sdk.models.daily_statistics import DailyStatistics from bitmovin_api_sdk.models.daily_statistics_per_label import DailyStatisticsPerLabel from bitmovin_api_sdk.models.dash_cmaf_representation import DashCmafRepresentation from bitmovin_api_sdk.models.dash_fmp4_drm_representation import DashFmp4DrmRepresentation from bitmovin_api_sdk.models.dash_fmp4_representation import DashFmp4Representation from bitmovin_api_sdk.models.dash_manifest import DashManifest from bitmovin_api_sdk.models.dash_manifest_default import DashManifestDefault from bitmovin_api_sdk.models.dash_manifest_default_version import DashManifestDefaultVersion from bitmovin_api_sdk.models.dash_mp4_drm_representation import DashMp4DrmRepresentation from bitmovin_api_sdk.models.dash_mp4_representation import DashMp4Representation from bitmovin_api_sdk.models.dash_on_demand_representation_type import DashOnDemandRepresentationType from bitmovin_api_sdk.models.dash_profile import DashProfile from bitmovin_api_sdk.models.dash_progressive_webm_representation import DashProgressiveWebmRepresentation from bitmovin_api_sdk.models.dash_representation import DashRepresentation from bitmovin_api_sdk.models.dash_representation_type import DashRepresentationType from bitmovin_api_sdk.models.dash_representation_type_mode import DashRepresentationTypeMode from bitmovin_api_sdk.models.dash_segmented_representation import DashSegmentedRepresentation from bitmovin_api_sdk.models.dash_vtt_representation import DashVttRepresentation from bitmovin_api_sdk.models.dash_webm_representation import DashWebmRepresentation from bitmovin_api_sdk.models.decoding_error_mode import DecodingErrorMode from bitmovin_api_sdk.models.default_dash_manifest_period import DefaultDashManifestPeriod from bitmovin_api_sdk.models.default_manifest_and_condition import DefaultManifestAndCondition from bitmovin_api_sdk.models.default_manifest_attribute_condition import DefaultManifestAttributeCondition from bitmovin_api_sdk.models.default_manifest_condition import DefaultManifestCondition from bitmovin_api_sdk.models.default_manifest_or_condition import DefaultManifestOrCondition from bitmovin_api_sdk.models.deinterlace_auto_enable import DeinterlaceAutoEnable from bitmovin_api_sdk.models.deinterlace_filter import DeinterlaceFilter from bitmovin_api_sdk.models.deinterlace_frame_selection_mode import DeinterlaceFrameSelectionMode from bitmovin_api_sdk.models.deinterlace_mode import DeinterlaceMode from bitmovin_api_sdk.models.denoise_hqdn3d_filter import DenoiseHqdn3dFilter from bitmovin_api_sdk.models.dolby_vision_metadata import DolbyVisionMetadata from bitmovin_api_sdk.models.dolby_vision_metadata_ingest_input_stream import DolbyVisionMetadataIngestInputStream from bitmovin_api_sdk.models.dolby_vision_metadata_source import DolbyVisionMetadataSource from bitmovin_api_sdk.models.dolby_vision_muxing_configuration import DolbyVisionMuxingConfiguration from bitmovin_api_sdk.models.dolby_vision_per_stream_mode import DolbyVisionPerStreamMode from bitmovin_api_sdk.models.dolby_vision_profile import DolbyVisionProfile from bitmovin_api_sdk.models.dolby_vision_track_sample_entry_name import DolbyVisionTrackSampleEntryName from bitmovin_api_sdk.models.domain import Domain from bitmovin_api_sdk.models.domain_list import DomainList from bitmovin_api_sdk.models.drm import Drm from bitmovin_api_sdk.models.drm_type import DrmType from bitmovin_api_sdk.models.dvb_teletext_input_stream import DvbTeletextInputStream from bitmovin_api_sdk.models.eac3_audio_configuration import Eac3AudioConfiguration from bitmovin_api_sdk.models.ebu_r128_single_pass_filter import EbuR128SinglePassFilter from bitmovin_api_sdk.models.egress_category import EgressCategory from bitmovin_api_sdk.models.egress_information import EgressInformation from bitmovin_api_sdk.models.email_notification import EmailNotification from bitmovin_api_sdk.models.email_notification_with_stream_conditions import EmailNotificationWithStreamConditions from bitmovin_api_sdk.models.email_notification_with_stream_conditions_request import EmailNotificationWithStreamConditionsRequest from bitmovin_api_sdk.models.encoding import Encoding from bitmovin_api_sdk.models.encoding_error_definition import EncodingErrorDefinition from bitmovin_api_sdk.models.encoding_error_email_notification import EncodingErrorEmailNotification from bitmovin_api_sdk.models.encoding_mode import EncodingMode from bitmovin_api_sdk.models.encoding_output import EncodingOutput from bitmovin_api_sdk.models.encoding_statistics import EncodingStatistics from bitmovin_api_sdk.models.encoding_statistics_live import EncodingStatisticsLive from bitmovin_api_sdk.models.encoding_statistics_vod import EncodingStatisticsVod from bitmovin_api_sdk.models.encoding_stats import EncodingStats from bitmovin_api_sdk.models.encoding_stream_input_details import EncodingStreamInputDetails from bitmovin_api_sdk.models.encryption_mode import EncryptionMode from bitmovin_api_sdk.models.encryption_type import EncryptionType from bitmovin_api_sdk.models.enhanced_watermark_filter import EnhancedWatermarkFilter from bitmovin_api_sdk.models.error_details import ErrorDetails from bitmovin_api_sdk.models.error_retry_hint import ErrorRetryHint from bitmovin_api_sdk.models.fair_play_drm import FairPlayDrm from bitmovin_api_sdk.models.file_input_stream import FileInputStream from bitmovin_api_sdk.models.file_input_stream_type import FileInputStreamType from bitmovin_api_sdk.models.filter import Filter from bitmovin_api_sdk.models.filter_type import FilterType from bitmovin_api_sdk.models.fmp4_muxing import Fmp4Muxing from bitmovin_api_sdk.models.fmp4_muxing_information import Fmp4MuxingInformation from bitmovin_api_sdk.models.force_flush_mode import ForceFlushMode from bitmovin_api_sdk.models.fragmented_mp4_muxing_manifest_type import FragmentedMp4MuxingManifestType from bitmovin_api_sdk.models.fragmented_muxing_information import FragmentedMuxingInformation from bitmovin_api_sdk.models.frame_id_id3_tag import FrameIdId3Tag from bitmovin_api_sdk.models.ftp_input import FtpInput from bitmovin_api_sdk.models.ftp_output import FtpOutput from bitmovin_api_sdk.models.gce_account import GceAccount from bitmovin_api_sdk.models.gcs_input import GcsInput from bitmovin_api_sdk.models.gcs_output import GcsOutput from bitmovin_api_sdk.models.gcs_service_account_input import GcsServiceAccountInput from bitmovin_api_sdk.models.gcs_service_account_output import GcsServiceAccountOutput from bitmovin_api_sdk.models.generic_s3_input import GenericS3Input from bitmovin_api_sdk.models.generic_s3_output import GenericS3Output from bitmovin_api_sdk.models.google_cloud_region import GoogleCloudRegion from bitmovin_api_sdk.models.group import Group from bitmovin_api_sdk.models.h264_b_pyramid import H264BPyramid from bitmovin_api_sdk.models.h264_interlace_mode import H264InterlaceMode from bitmovin_api_sdk.models.h264_motion_estimation_method import H264MotionEstimationMethod from bitmovin_api_sdk.models.h264_nal_hrd import H264NalHrd from bitmovin_api_sdk.models.h264_partition import H264Partition from bitmovin_api_sdk.models.h264_per_title_configuration import H264PerTitleConfiguration from bitmovin_api_sdk.models.h264_picture_timing_trimming_input_stream import H264PictureTimingTrimmingInputStream from bitmovin_api_sdk.models.h264_sub_me import H264SubMe from bitmovin_api_sdk.models.h264_trellis import H264Trellis from bitmovin_api_sdk.models.h264_video_configuration import H264VideoConfiguration from bitmovin_api_sdk.models.h265_per_title_configuration import H265PerTitleConfiguration from bitmovin_api_sdk.models.h265_video_configuration import H265VideoConfiguration from bitmovin_api_sdk.models.he_aac_v1_audio_configuration import HeAacV1AudioConfiguration from bitmovin_api_sdk.models.he_aac_v1_signaling import HeAacV1Signaling from bitmovin_api_sdk.models.he_aac_v2_audio_configuration import HeAacV2AudioConfiguration from bitmovin_api_sdk.models.he_aac_v2_signaling import HeAacV2Signaling from bitmovin_api_sdk.models.hls_manifest import HlsManifest from bitmovin_api_sdk.models.hls_manifest_default import HlsManifestDefault from bitmovin_api_sdk.models.hls_manifest_default_version import HlsManifestDefaultVersion from bitmovin_api_sdk.models.hls_version import HlsVersion from bitmovin_api_sdk.models.http_input import HttpInput from bitmovin_api_sdk.models.https_input import HttpsInput from bitmovin_api_sdk.models.i_frame_playlist import IFramePlaylist from bitmovin_api_sdk.models.id3_tag import Id3Tag from bitmovin_api_sdk.models.id3_tag_position_mode import Id3TagPositionMode from bitmovin_api_sdk.models.id3_tag_type import Id3TagType from bitmovin_api_sdk.models.ignored_by import IgnoredBy from bitmovin_api_sdk.models.ignoring import Ignoring from bitmovin_api_sdk.models.infrastructure_settings import InfrastructureSettings from bitmovin_api_sdk.models.ingest_input_stream import IngestInputStream from bitmovin_api_sdk.models.input import Input from bitmovin_api_sdk.models.input_color_range import InputColorRange from bitmovin_api_sdk.models.input_color_space import InputColorSpace from bitmovin_api_sdk.models.input_path import InputPath from bitmovin_api_sdk.models.input_stream import InputStream from bitmovin_api_sdk.models.input_stream_type import InputStreamType from bitmovin_api_sdk.models.input_stream_type_response import InputStreamTypeResponse from bitmovin_api_sdk.models.input_type import InputType from bitmovin_api_sdk.models.input_type_response import InputTypeResponse from bitmovin_api_sdk.models.insertable_content import InsertableContent from bitmovin_api_sdk.models.insertable_content_input import InsertableContentInput from bitmovin_api_sdk.models.insertable_content_status import InsertableContentStatus from bitmovin_api_sdk.models.interlace_filter import InterlaceFilter from bitmovin_api_sdk.models.interlace_mode import InterlaceMode from bitmovin_api_sdk.models.invitation import Invitation from bitmovin_api_sdk.models.invitation_status import InvitationStatus from bitmovin_api_sdk.models.iv_size import IvSize from bitmovin_api_sdk.models.keyframe import Keyframe from bitmovin_api_sdk.models.kubernetes_cluster import KubernetesCluster from bitmovin_api_sdk.models.kubernetes_cluster_configuration import KubernetesClusterConfiguration from bitmovin_api_sdk.models.level_h264 import LevelH264 from bitmovin_api_sdk.models.level_h265 import LevelH265 from bitmovin_api_sdk.models.limit_references import LimitReferences from bitmovin_api_sdk.models.limit_transform_unit_depth_recursion_mode import LimitTransformUnitDepthRecursionMode from bitmovin_api_sdk.models.link import Link from bitmovin_api_sdk.models.live_dash_manifest import LiveDashManifest from bitmovin_api_sdk.models.live_encoding import LiveEncoding from bitmovin_api_sdk.models.live_encoding_codec import LiveEncodingCodec from bitmovin_api_sdk.models.live_encoding_event_name import LiveEncodingEventName from bitmovin_api_sdk.models.live_encoding_stats import LiveEncodingStats from bitmovin_api_sdk.models.live_encoding_stats_event import LiveEncodingStatsEvent from bitmovin_api_sdk.models.live_encoding_stats_event_details import LiveEncodingStatsEventDetails from bitmovin_api_sdk.models.live_encoding_status import LiveEncodingStatus from bitmovin_api_sdk.models.live_hls_manifest import LiveHlsManifest from bitmovin_api_sdk.models.live_media_ingest_output import LiveMediaIngestOutput from bitmovin_api_sdk.models.local_input import LocalInput from bitmovin_api_sdk.models.local_output import LocalOutput from bitmovin_api_sdk.models.log_level import LogLevel from bitmovin_api_sdk.models.manifest import Manifest from bitmovin_api_sdk.models.manifest_resource import ManifestResource from bitmovin_api_sdk.models.manifest_type import ManifestType from bitmovin_api_sdk.models.manifest_type_response import ManifestTypeResponse from bitmovin_api_sdk.models.marlin_drm import MarlinDrm from bitmovin_api_sdk.models.max_ctu_size import MaxCtuSize from bitmovin_api_sdk.models.max_transform_unit_size import MaxTransformUnitSize from bitmovin_api_sdk.models.media_info_type import MediaInfoType from bitmovin_api_sdk.models.media_info_type_response import MediaInfoTypeResponse from bitmovin_api_sdk.models.media_stream import MediaStream from bitmovin_api_sdk.models.media_type import MediaType from bitmovin_api_sdk.models.message import Message from bitmovin_api_sdk.models.message_type import MessageType from bitmovin_api_sdk.models.min_coding_unit_size import MinCodingUnitSize from bitmovin_api_sdk.models.mjpeg_video_configuration import MjpegVideoConfiguration from bitmovin_api_sdk.models.motion_search import MotionSearch from bitmovin_api_sdk.models.mp2_audio_configuration import Mp2AudioConfiguration from bitmovin_api_sdk.models.mp3_audio_configuration import Mp3AudioConfiguration from bitmovin_api_sdk.models.mp3_muxing import Mp3Muxing from bitmovin_api_sdk.models.mp3_muxing_information import Mp3MuxingInformation from bitmovin_api_sdk.models.mp4_muxing import Mp4Muxing from bitmovin_api_sdk.models.mp4_muxing_information import Mp4MuxingInformation from bitmovin_api_sdk.models.muxing import Muxing from bitmovin_api_sdk.models.muxing_information_audio_track import MuxingInformationAudioTrack from bitmovin_api_sdk.models.muxing_information_video_track import MuxingInformationVideoTrack from bitmovin_api_sdk.models.muxing_stream import MuxingStream from bitmovin_api_sdk.models.muxing_type import MuxingType from bitmovin_api_sdk.models.mv_prediction_mode import MvPredictionMode from bitmovin_api_sdk.models.notification import Notification from bitmovin_api_sdk.models.notification_state_entry import NotificationStateEntry from bitmovin_api_sdk.models.notification_states import NotificationStates from bitmovin_api_sdk.models.object_detection_bounding_box import ObjectDetectionBoundingBox from bitmovin_api_sdk.models.object_detection_configuration import ObjectDetectionConfiguration from bitmovin_api_sdk.models.object_detection_result import ObjectDetectionResult from bitmovin_api_sdk.models.object_detection_timestamp_result import ObjectDetectionTimestampResult from bitmovin_api_sdk.models.opus_audio_configuration import OpusAudioConfiguration from bitmovin_api_sdk.models.opus_channel_layout import OpusChannelLayout from bitmovin_api_sdk.models.or_conjunction import OrConjunction from bitmovin_api_sdk.models.organization import Organization from bitmovin_api_sdk.models.organization_type import OrganizationType from bitmovin_api_sdk.models.output import Output from bitmovin_api_sdk.models.output_type import OutputType from bitmovin_api_sdk.models.output_type_response import OutputTypeResponse from bitmovin_api_sdk.models.padding_duration_unit import PaddingDurationUnit from bitmovin_api_sdk.models.padding_sequence import PaddingSequence from bitmovin_api_sdk.models.pagination_response import PaginationResponse from bitmovin_api_sdk.models.passthrough_mode import PassthroughMode from bitmovin_api_sdk.models.per_title import PerTitle from bitmovin_api_sdk.models.per_title_configuration import PerTitleConfiguration from bitmovin_api_sdk.models.per_title_fixed_resolution_and_bitrate_configuration import PerTitleFixedResolutionAndBitrateConfiguration from bitmovin_api_sdk.models.per_title_fixed_resolution_and_bitrate_configuration_mode import PerTitleFixedResolutionAndBitrateConfigurationMode from bitmovin_api_sdk.models.period import Period from bitmovin_api_sdk.models.permission import Permission from bitmovin_api_sdk.models.picture_field_parity import PictureFieldParity from bitmovin_api_sdk.models.pixel_format import PixelFormat from bitmovin_api_sdk.models.plaintext_id3_tag import PlaintextId3Tag from bitmovin_api_sdk.models.play_ready_additional_information import PlayReadyAdditionalInformation from bitmovin_api_sdk.models.play_ready_drm import PlayReadyDrm from bitmovin_api_sdk.models.play_ready_encryption_method import PlayReadyEncryptionMethod from bitmovin_api_sdk.models.player_channel import PlayerChannel from bitmovin_api_sdk.models.player_license import PlayerLicense from bitmovin_api_sdk.models.player_license_analytics import PlayerLicenseAnalytics from bitmovin_api_sdk.models.player_third_party_licensing import PlayerThirdPartyLicensing from bitmovin_api_sdk.models.player_third_party_licensing_error_action import PlayerThirdPartyLicensingErrorAction from bitmovin_api_sdk.models.player_version import PlayerVersion from bitmovin_api_sdk.models.policy import Policy from bitmovin_api_sdk.models.position_mode import PositionMode from bitmovin_api_sdk.models.position_unit import PositionUnit from bitmovin_api_sdk.models.preset_configuration import PresetConfiguration from bitmovin_api_sdk.models.prewarm_encoder_settings import PrewarmEncoderSettings from bitmovin_api_sdk.models.prime_time_drm import PrimeTimeDrm from bitmovin_api_sdk.models.profile_h264 import ProfileH264 from bitmovin_api_sdk.models.profile_h265 import ProfileH265 from bitmovin_api_sdk.models.progressive_mov_muxing import ProgressiveMovMuxing from bitmovin_api_sdk.models.progressive_mov_muxing_information import ProgressiveMovMuxingInformation from bitmovin_api_sdk.models.progressive_muxing_information import ProgressiveMuxingInformation from bitmovin_api_sdk.models.progressive_ts_muxing import ProgressiveTsMuxing from bitmovin_api_sdk.models.progressive_ts_muxing_information import ProgressiveTsMuxingInformation from bitmovin_api_sdk.models.progressive_ts_muxing_information_byte_ranges import ProgressiveTsMuxingInformationByteRanges from bitmovin_api_sdk.models.progressive_webm_muxing import ProgressiveWebmMuxing from bitmovin_api_sdk.models.progressive_webm_muxing_information import ProgressiveWebmMuxingInformation from bitmovin_api_sdk.models.progressive_webm_muxing_manifest_type import ProgressiveWebmMuxingManifestType from bitmovin_api_sdk.models.psnr_per_stream_mode import PsnrPerStreamMode from bitmovin_api_sdk.models.psnr_quality_metric import PsnrQualityMetric from bitmovin_api_sdk.models.quantization_group_size import QuantizationGroupSize from bitmovin_api_sdk.models.rai_unit import RaiUnit from bitmovin_api_sdk.models.rate_distortion_level_for_quantization import RateDistortionLevelForQuantization from bitmovin_api_sdk.models.rate_distortion_penalty_mode import RateDistortionPenaltyMode from bitmovin_api_sdk.models.raw_id3_tag import RawId3Tag from bitmovin_api_sdk.models.redundant_rtmp_input import RedundantRtmpInput from bitmovin_api_sdk.models.reprioritize_encoding_request import ReprioritizeEncodingRequest from bitmovin_api_sdk.models.reschedule_encoding_request import RescheduleEncodingRequest from bitmovin_api_sdk.models.resource_limit import ResourceLimit from bitmovin_api_sdk.models.resource_limit_container import ResourceLimitContainer from bitmovin_api_sdk.models.resource_type import ResourceType from bitmovin_api_sdk.models.response_envelope import ResponseEnvelope from bitmovin_api_sdk.models.response_error import ResponseError from bitmovin_api_sdk.models.response_error_data import ResponseErrorData from bitmovin_api_sdk.models.response_status import ResponseStatus from bitmovin_api_sdk.models.result_wrapper import ResultWrapper from bitmovin_api_sdk.models.retry_hint import RetryHint from bitmovin_api_sdk.models.reupload_settings import ReuploadSettings from bitmovin_api_sdk.models.rotate_filter import RotateFilter from bitmovin_api_sdk.models.rtmp_ingest_point import RtmpIngestPoint from bitmovin_api_sdk.models.rtmp_input import RtmpInput from bitmovin_api_sdk.models.s3_input import S3Input from bitmovin_api_sdk.models.s3_output import S3Output from bitmovin_api_sdk.models.s3_role_based_input import S3RoleBasedInput from bitmovin_api_sdk.models.s3_role_based_output import S3RoleBasedOutput from bitmovin_api_sdk.models.s3_signature_version import S3SignatureVersion from bitmovin_api_sdk.models.scale_filter import ScaleFilter from bitmovin_api_sdk.models.scaling_algorithm import ScalingAlgorithm from bitmovin_api_sdk.models.scc_caption import SccCaption from bitmovin_api_sdk.models.scheduled_insertable_content import ScheduledInsertableContent from bitmovin_api_sdk.models.scheduled_insertable_content_status import ScheduledInsertableContentStatus from bitmovin_api_sdk.models.scheduling import Scheduling from bitmovin_api_sdk.models.segmented_raw_muxing import SegmentedRawMuxing from bitmovin_api_sdk.models.segments_media_info import SegmentsMediaInfo from bitmovin_api_sdk.models.sftp_input import SftpInput from bitmovin_api_sdk.models.sftp_output import SftpOutput from bitmovin_api_sdk.models.sidecar_error_mode import SidecarErrorMode from bitmovin_api_sdk.models.sidecar_file import SidecarFile from bitmovin_api_sdk.models.signature_type import SignatureType from bitmovin_api_sdk.models.smooth_manifest_content_protection import SmoothManifestContentProtection from bitmovin_api_sdk.models.smooth_manifest_default import SmoothManifestDefault from bitmovin_api_sdk.models.smooth_manifest_default_version import SmoothManifestDefaultVersion from bitmovin_api_sdk.models.smooth_streaming_manifest import SmoothStreamingManifest from bitmovin_api_sdk.models.smooth_streaming_representation import SmoothStreamingRepresentation from bitmovin_api_sdk.models.source_channel import SourceChannel from bitmovin_api_sdk.models.source_channel_type import SourceChannelType from bitmovin_api_sdk.models.speke_drm import SpekeDrm from bitmovin_api_sdk.models.speke_drm_provider import SpekeDrmProvider from bitmovin_api_sdk.models.sprite import Sprite from bitmovin_api_sdk.models.sprite_unit import SpriteUnit from bitmovin_api_sdk.models.srt_input import SrtInput from bitmovin_api_sdk.models.srt_mode import SrtMode from bitmovin_api_sdk.models.srt_statistic_link import SrtStatisticLink from bitmovin_api_sdk.models.srt_statistic_recv import SrtStatisticRecv from bitmovin_api_sdk.models.srt_statistic_send import SrtStatisticSend from bitmovin_api_sdk.models.srt_statistic_window import SrtStatisticWindow from bitmovin_api_sdk.models.srt_statistics import SrtStatistics from bitmovin_api_sdk.models.standard_media_info import StandardMediaInfo from bitmovin_api_sdk.models.start_encoding_request import StartEncodingRequest from bitmovin_api_sdk.models.start_live_encoding_request import StartLiveEncodingRequest from bitmovin_api_sdk.models.statistics import Statistics from bitmovin_api_sdk.models.statistics_per_label import StatisticsPerLabel from bitmovin_api_sdk.models.statistics_per_muxing import StatisticsPerMuxing from bitmovin_api_sdk.models.statistics_per_stream import StatisticsPerStream from bitmovin_api_sdk.models.statistics_per_title_stream import StatisticsPerTitleStream from bitmovin_api_sdk.models.statistics_resolution import StatisticsResolution from bitmovin_api_sdk.models.status import Status from bitmovin_api_sdk.models.stream import Stream from bitmovin_api_sdk.models.stream_caption_output_format import StreamCaptionOutputFormat from bitmovin_api_sdk.models.stream_conditions_mode import StreamConditionsMode from bitmovin_api_sdk.models.stream_details import StreamDetails from bitmovin_api_sdk.models.stream_filter import StreamFilter from bitmovin_api_sdk.models.stream_filter_list import StreamFilterList from bitmovin_api_sdk.models.stream_info import StreamInfo from bitmovin_api_sdk.models.stream_infos import StreamInfos from bitmovin_api_sdk.models.stream_infos_details import StreamInfosDetails from bitmovin_api_sdk.models.stream_input import StreamInput from bitmovin_api_sdk.models.stream_metadata import StreamMetadata from bitmovin_api_sdk.models.stream_mode import StreamMode from bitmovin_api_sdk.models.stream_per_title_fixed_resolution_and_bitrate_settings import StreamPerTitleFixedResolutionAndBitrateSettings from bitmovin_api_sdk.models.stream_per_title_settings import StreamPerTitleSettings from bitmovin_api_sdk.models.stream_selection_mode import StreamSelectionMode from bitmovin_api_sdk.models.subtask import Subtask from bitmovin_api_sdk.models.subtitle_adaptation_set import SubtitleAdaptationSet from bitmovin_api_sdk.models.subtitle_stream import SubtitleStream from bitmovin_api_sdk.models.subtitles_media_info import SubtitlesMediaInfo from bitmovin_api_sdk.models.task import Task from bitmovin_api_sdk.models.tcp_input import TcpInput from bitmovin_api_sdk.models.tenant import Tenant from bitmovin_api_sdk.models.text_filter import TextFilter from bitmovin_api_sdk.models.text_filter_font import TextFilterFont from bitmovin_api_sdk.models.text_muxing import TextMuxing from bitmovin_api_sdk.models.thumbnail import Thumbnail from bitmovin_api_sdk.models.thumbnail_unit import ThumbnailUnit from bitmovin_api_sdk.models.time_based_trimming_input_stream import TimeBasedTrimmingInputStream from bitmovin_api_sdk.models.time_code import TimeCode from bitmovin_api_sdk.models.time_span import TimeSpan from bitmovin_api_sdk.models.timecode_track_trimming_input_stream import TimecodeTrackTrimmingInputStream from bitmovin_api_sdk.models.transfer_retry import TransferRetry from bitmovin_api_sdk.models.transfer_version import TransferVersion from bitmovin_api_sdk.models.transform_skip_mode import TransformSkipMode from bitmovin_api_sdk.models.trimming import Trimming from bitmovin_api_sdk.models.ts_audio_stream_configuration import TsAudioStreamConfiguration from bitmovin_api_sdk.models.ts_muxing import TsMuxing from bitmovin_api_sdk.models.ts_muxing_configuration import TsMuxingConfiguration from bitmovin_api_sdk.models.ts_program_clock_reference_configuration import TsProgramClockReferenceConfiguration from bitmovin_api_sdk.models.ts_program_map_table_configuration import TsProgramMapTableConfiguration from bitmovin_api_sdk.models.ts_stream_configuration import TsStreamConfiguration from bitmovin_api_sdk.models.ts_video_stream_configuration import TsVideoStreamConfiguration from bitmovin_api_sdk.models.ttml_embed import TtmlEmbed from bitmovin_api_sdk.models.tu_inter_depth import TuInterDepth from bitmovin_api_sdk.models.tu_intra_depth import TuIntraDepth from bitmovin_api_sdk.models.tweaks import Tweaks from bitmovin_api_sdk.models.udp_input import UdpInput from bitmovin_api_sdk.models.udp_multicast_input import UdpMulticastInput from bitmovin_api_sdk.models.unsharp_filter import UnsharpFilter from bitmovin_api_sdk.models.update_organization_request import UpdateOrganizationRequest from bitmovin_api_sdk.models.utc_timing import UtcTiming from bitmovin_api_sdk.models.variant_stream_dropping_mode import VariantStreamDroppingMode from bitmovin_api_sdk.models.vertical_low_pass_filtering_mode import VerticalLowPassFilteringMode from bitmovin_api_sdk.models.video_adaptation_set import VideoAdaptationSet from bitmovin_api_sdk.models.video_configuration import VideoConfiguration from bitmovin_api_sdk.models.video_format import VideoFormat from bitmovin_api_sdk.models.video_media_info import VideoMediaInfo from bitmovin_api_sdk.models.video_stream import VideoStream from bitmovin_api_sdk.models.vorbis_audio_configuration import VorbisAudioConfiguration from bitmovin_api_sdk.models.vorbis_channel_layout import VorbisChannelLayout from bitmovin_api_sdk.models.vp8_arnr_type import Vp8ArnrType from bitmovin_api_sdk.models.vp8_noise_sensitivity import Vp8NoiseSensitivity from bitmovin_api_sdk.models.vp8_quality import Vp8Quality from bitmovin_api_sdk.models.vp8_video_configuration import Vp8VideoConfiguration from bitmovin_api_sdk.models.vp9_aq_mode import Vp9AqMode from bitmovin_api_sdk.models.vp9_arnr_type import Vp9ArnrType from bitmovin_api_sdk.models.vp9_per_title_configuration import Vp9PerTitleConfiguration from bitmovin_api_sdk.models.vp9_quality import Vp9Quality from bitmovin_api_sdk.models.vp9_video_configuration import Vp9VideoConfiguration from bitmovin_api_sdk.models.vtt_media_info import VttMediaInfo from bitmovin_api_sdk.models.watermark_filter import WatermarkFilter from bitmovin_api_sdk.models.web_vtt_configuration import WebVttConfiguration from bitmovin_api_sdk.models.web_vtt_sidecar_file import WebVttSidecarFile from bitmovin_api_sdk.models.web_vtt_sidecar_file_segmentation import WebVttSidecarFileSegmentation from bitmovin_api_sdk.models.webhook import Webhook from bitmovin_api_sdk.models.webhook_encryption import WebhookEncryption from bitmovin_api_sdk.models.webhook_http_method import WebhookHttpMethod from bitmovin_api_sdk.models.webhook_signature import WebhookSignature from bitmovin_api_sdk.models.webm_muxing import WebmMuxing from bitmovin_api_sdk.models.weighted_prediction_p_frames import WeightedPredictionPFrames from bitmovin_api_sdk.models.widevine_drm import WidevineDrm from bitmovin_api_sdk.models.xml_namespace import XmlNamespace from bitmovin_api_sdk.models.zixi_input import ZixiInput
76.137221
144
0.921578
5,785
44,388
6.671046
0.167156
0.179415
0.224269
0.269123
0.503369
0.422186
0.248419
0.095434
0.027752
0.006789
0
0.005349
0.052334
44,388
582
145
76.268041
0.912088
0.001036
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.00519
1
0
1
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
83be5c3683839263447794abf0e211101c007fbe
42
py
Python
python/testData/quickFixes/PyAddImportQuickFixTest/osPathFunctions/main_after.py
06needhamt/intellij-community
63d7b8030e4fdefeb4760e511e289f7e6b3a5c5b
[ "Apache-2.0" ]
null
null
null
python/testData/quickFixes/PyAddImportQuickFixTest/osPathFunctions/main_after.py
06needhamt/intellij-community
63d7b8030e4fdefeb4760e511e289f7e6b3a5c5b
[ "Apache-2.0" ]
null
null
null
python/testData/quickFixes/PyAddImportQuickFixTest/osPathFunctions/main_after.py
06needhamt/intellij-community
63d7b8030e4fdefeb4760e511e289f7e6b3a5c5b
[ "Apache-2.0" ]
null
null
null
from os.path import commonpath commonpath
14
30
0.857143
6
42
6
0.833333
0
0
0
0
0
0
0
0
0
0
0
0.119048
42
3
31
14
0.972973
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
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
1
0
1
0
0
0
0
5
83ee5b37db687f0d3f00f2e618e5f1fb38a8014a
320
py
Python
braintree/exceptions/authorization_error.py
eldarion/braintree_python
8be3f69fb9a4171c5e9be049c8440fcc4f79fb40
[ "MIT" ]
3
2015-11-05T08:57:12.000Z
2016-07-17T18:10:55.000Z
braintree/exceptions/authorization_error.py
eldarion/braintree_python
8be3f69fb9a4171c5e9be049c8440fcc4f79fb40
[ "MIT" ]
null
null
null
braintree/exceptions/authorization_error.py
eldarion/braintree_python
8be3f69fb9a4171c5e9be049c8440fcc4f79fb40
[ "MIT" ]
null
null
null
from braintree.exceptions.braintree_error import BraintreeError class AuthorizationError(BraintreeError): """ Raised when the user does not have permission to complete the requested operation. See http://www.braintreepaymentsolutions.com/docs/python/general/exceptions#authorization_error """ pass
32
99
0.7875
35
320
7.142857
0.857143
0
0
0
0
0
0
0
0
0
0
0
0.14375
320
9
100
35.555556
0.912409
0.559375
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.333333
0.333333
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
1
0
1
0
0
5
f7cd00f40dac28a6bf528b09534378ed28bbffd0
84,219
py
Python
hashing_example.py
kemalcanbora/python-examples
b5b483ac137172221b6d1244eb3816bf60ed34e7
[ "MIT" ]
1
2021-01-04T18:46:25.000Z
2021-01-04T18:46:25.000Z
hashing_example.py
Pervinsr/python-examples
b5b483ac137172221b6d1244eb3816bf60ed34e7
[ "MIT" ]
null
null
null
hashing_example.py
Pervinsr/python-examples
b5b483ac137172221b6d1244eb3816bf60ed34e7
[ "MIT" ]
1
2021-01-04T18:46:18.000Z
2021-01-04T18:46:18.000Z
#!/usr/bin/python3 # base 64 encoding example in python3 import hashlib print(hashlib.algorithms_available) example_html = """<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html><head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta name="viewport" content="width=device-width, initial-scale=1"><meta name="description" content="GPU instances are intended for graphics and general purpose GPU compute applications."><title>Linux GPU Instances - Amazon Elastic Compute Cloud</title><link rel="home" href="#top" title="Amazon Elastic Compute Cloud"><link rel="up" href="instance-types.html" title="Instance Types"><link rel="prev" href="c4-instances.html" title="C4 Instances"><link rel="next" href="i2-instances.html" title="I2 Instances"><meta name="keywords" content=""><meta name="deployment_region" content="IAD"><meta name="product" content="Amazon Elastic Compute Cloud"><meta name="guide" content="User Guide for Linux Instances"><meta name="guide-locale" content="en_us"><link rel="icon" type="image/ico" href="//media.amazonwebservices.com/favicon.ico"><link rel="shortcut icon" type="image/ico" href="//media.amazonwebservices.com/favicon.ico"><link rel="canonical" href="http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using_cluster_computing.html"><script type="text/javascript" src="https://media.amazonwebservices.com/amznUrchin.js" defer></script><link rel="stylesheet" type="text/css" href="/css/jquery-ui.min.css"><link rel="stylesheet" type="text/css" href="/font/css/font-awesome.min.css"><link rel="stylesheet" type="text/css" href="/css/google-font.css"><link rel="stylesheet" type="text/css" href="/css/highlight-default.css"><link rel="stylesheet" type="text/css" href="/css/jquery-ui.theme.css"><link rel="stylesheet" type="text/css" href="/css/colorbox.css"><link rel="stylesheet" type="text/css" href="/css/awsdocs.css"><script type="text/javascript" src="/js/highlight.pack.js"></script><script type="text/javascript" src="/js/jquery.min.js"></script><script type="text/javascript" src="/js/jquery-ui.min.js"></script><script type="text/javascript" src="/js/handlebars.js"></script><script type="text/javascript" src="/js/jquery.colorbox.js"></script><script type="text/javascript" src="/js/awsdocs.min.js"></script></head><body id="top"><div id="aws-nav" class="aws-nav-header"><div class="aws-nav-header-left"><div id="aws-nav-flyout-trigger" class="aws-nav-flyout-trigger"><i class="fa fa-bars fa-2x"></i>Menu</div><div class="aws-nav-logo"><a href="https://aws.amazon.com"><span>Amazon Web Services</span></a></div></div><div id="aws-nav-header-right" class="aws-nav-header-right"><div class="aws-nav-cta-button-outer"><a id="aws-nav-cta-button" class="aws-nav-button" href="https://console.aws.amazon.com/console/home">Sign In to the Console</a></div><div class="aws-nav-popover-trigger" data-dropdown="aws-nav-dropdown-lang"><select id="languageSelection" onchange="SelectLanguage()"><option value="/de_de/AWSEC2/latest/UserGuide/using_cluster_computing.html">Deutsch</option><option value="/en_us/AWSEC2/latest/UserGuide/using_cluster_computing.html" selected>English</option><option value="/es_es/AWSEC2/latest/UserGuide/using_cluster_computing.html">Espa&ntilde;ol</option><option value="/fr_fr/AWSEC2/latest/UserGuide/using_cluster_computing.html">Fran&ccedil;ais</option><option value="/ja_jp/AWSEC2/latest/UserGuide/using_cluster_computing.html">&#26085;&#26412;&#35486;</option><option value="/pt_br/AWSEC2/latest/UserGuide/using_cluster_computing.html">Portugu&ecirc;s</option><option value="/ko_kr/AWSEC2/latest/UserGuide/using_cluster_computing.html">&#54620;&#44397;&#50612;</option><option value="/zh_cn/AWSEC2/latest/UserGuide/using_cluster_computing.html">&#20013;&#25991; (&#31616;&#20307;)</option></select></div><div id="aws-nav-quicklinks-separator" class="aws-nav-quicklinks-separator"><div class="aws-nav-left"></div><div class="aws-nav-right"></div></div></div><div id="topnav-flyout-menu-container"><ul id="topnav-flyout-menu"><script id="flyout-item-template" type="text/x-handlebars-template"> {{#flyoutList}} <li>{{listItem}} {{#if subList}} <ul> {{#subList}} <li class="awsdocs-flyout-link-wrapper"><a href="{{target}}">{{text}}</a></li> {{/subList}} </ul> {{/if}} </li> {{/flyoutList}} </script></ul><div id="topnav-flyout-menu-spacer"></div></div></div><script type="text/javascript"><!-- var thispage = "using_cluster_computing.html"; var tocroot = location.protocol + '//' + location.hostname + location.pathname; --></script><div id="content-container"><div id="left-column" class="ui-resizable"><div id="left-col-header"><div id="left-col-top-content"><div id="service-name">Amazon Elastic Compute Cloud </div><div id="search"><i id="search-icon" class="fa fa-search fa-2x"></i></div><div id="guide-info">User Guide for Linux Instances<div id="content-button"><i id="toggle-contents" class="fa fa-bars"></i></div></div></div><form id="finegrainedSearch" method="get" onsubmit="return searchFormSubmit(this);" action="/search/doc-search.html"><div id="search-form"><select id="search-select" name="searchPath"><option value="all">Entire Site</option><option value="AWSMarketplace">AMIs from AWS Marketplace</option><option value="amis">AMIs from All Sources</option><option value="articles">Articles &amp; Tutorials</option><option value="products_and_info">AWS Product Information</option><option value="case_studies">Case Studies</option><option value="customerapps">Customer Apps</option><option value="documentation">Documentation</option><option value="documentation-product">Documentation - This Product</option><option value="documentation-guide" selected>Documentation - This Guide</option><option value="datasets">Public Data Sets</option><option value="releasenotes">Release Notes</option><option value="solution_providers">Partners</option><option value="code">Sample Code &amp; Libraries</option></select><br><input id="search-query" name="searchQuery" type="text" placholder="$loc-search-search"><input id="search-button" src="images/search-button.png" alt="Go" type="image"></div><input type="hidden" name="this_doc_product" id="this_doc_product" value="Amazon Elastic Compute Cloud"><input type="hidden" name="this_doc_guide" id="this_doc_guide" value="User Guide for Linux Instances"><input type="hidden" name="doc_locale" value="en_us"></form></div><div id="toc"><ul class="awstoc"><li class="awstoc closed"><a class="awstoc" href="concepts.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-concepts.html');">What Is Amazon EC2?</a><ul class="awstoc"><li class="awstoc leaf"><a class="awstoc" href="ec2-instances-and-amis.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-ec2-instances-and-amis.html');">Instances and AMIs</a></li><li class="awstoc leaf"><a class="awstoc" href="using-regions-availability-zones.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-using-regions-availability-zones.html');">Regions and Availability Zones</a></li><li class="awstoc leaf"><a class="awstoc" href="RootDeviceStorage.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-RootDeviceStorage.html');">Root Device Volume</a></li></ul></li><li class="awstoc leaf"><a class="awstoc" href="get-set-up-for-amazon-ec2.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-get-set-up-for-amazon-ec2.html');">Setting Up</a></li><li class="awstoc closed"><a class="awstoc" href="EC2_GetStarted.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-EC2_GetStarted.html');">Getting Started</a><ul class="awstoc"><li class="awstoc leaf"><a class="awstoc" href="ec2-launch-instance_linux.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-ec2-launch-instance_linux.html');">Step 1: Launch an Instance</a></li><li class="awstoc leaf"><a class="awstoc" href="ec2-connect-to-instance-linux.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-ec2-connect-to-instance-linux.html');">Step 2: Connect to Your Instance</a></li><li class="awstoc leaf"><a class="awstoc" href="ec2-add-volume-to-instance.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-ec2-add-volume-to-instance.html');">Step 3: Add a Volume</a></li><li class="awstoc leaf"><a class="awstoc" href="ec2-clean-up-your-instance.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-ec2-clean-up-your-instance.html');">Step 4: Clean Up</a></li></ul></li><li class="awstoc leaf"><a class="awstoc" href="ec2-best-practices.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-ec2-best-practices.html');">Best Practices</a></li><li class="awstoc closed"><a class="awstoc" href="ec2-tutorials.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-ec2-tutorials.html');">Tutorials</a><ul class="awstoc"><li class="awstoc leaf"><a class="awstoc" href="install-LAMP.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-install-LAMP.html');">Tutorial: Installing a LAMP Web Server on Amazon Linux</a></li><li class="awstoc leaf"><a class="awstoc" href="hosting-wordpress.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-hosting-wordpress.html');">Tutorial: Hosting a WordPress Blog</a></li><li class="awstoc leaf"><a class="awstoc" href="SSL-on-an-instance.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-SSL-on-an-instance.html');">Tutorial: Configure Apache Web Server on Amazon Linux to use SSL/TLS</a></li></ul></li><li class="awstoc closed"><a class="awstoc" href="AMIs.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-AMIs.html');">Amazon Machine Images</a><ul class="awstoc"><li class="awstoc leaf"><a class="awstoc" href="ComponentsAMIs.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-ComponentsAMIs.html');">AMI Types</a></li><li class="awstoc leaf"><a class="awstoc" href="virtualization_types.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-virtualization_types.html');">Virtualization Types</a></li><li class="awstoc leaf"><a class="awstoc" href="finding-an-ami.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-finding-an-ami.html');">Finding a Linux AMI</a></li><li class="awstoc closed"><a class="awstoc" href="sharing-amis.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-sharing-amis.html');">Shared AMIs</a><ul class="awstoc"><li class="awstoc leaf"><a class="awstoc" href="usingsharedamis-finding.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-usingsharedamis-finding.html');">Finding Shared AMIs</a></li><li class="awstoc leaf"><a class="awstoc" href="sharingamis-intro.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-sharingamis-intro.html');">Making an AMI Public</a></li><li class="awstoc leaf"><a class="awstoc" href="sharingamis-explicit.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-sharingamis-explicit.html');">Sharing an AMI with Specific AWS Accounts</a></li><li class="awstoc leaf"><a class="awstoc" href="using-bookmarks.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-using-bookmarks.html');">Using Bookmarks</a></li><li class="awstoc leaf"><a class="awstoc" href="building-shared-amis.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-building-shared-amis.html');">Guidelines for Shared Linux AMIs</a></li></ul></li><li class="awstoc leaf"><a class="awstoc" href="paid-amis.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-paid-amis.html');">Paid AMIs</a></li><li class="awstoc leaf"><a class="awstoc" href="creating-an-ami-ebs.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-creating-an-ami-ebs.html');">Creating an Amazon EBS-Backed Linux AMI</a></li><li class="awstoc leaf"><a class="awstoc" href="creating-an-ami-instance-store.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-creating-an-ami-instance-store.html');">Creating an Instance Store-Backed Linux AMI</a></li><li class="awstoc leaf"><a class="awstoc" href="CopyingAMIs.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-CopyingAMIs.html');">Copying an AMI</a></li><li class="awstoc leaf"><a class="awstoc" href="deregister-ami.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-deregister-ami.html');">Deregistering Your AMI</a></li><li class="awstoc leaf"><a class="awstoc" href="AmazonLinuxAMIBasics.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-AmazonLinuxAMIBasics.html');">Amazon Linux</a></li><li class="awstoc leaf"><a class="awstoc" href="UserProvidedKernels.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-UserProvidedKernels.html');">PV-GRUB</a></li></ul></li><li class="awstoc opened"><a class="awstoc" href="Instances.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-Instances.html');">Instances</a><ul class="awstoc"><li class="awstoc opened"><a class="awstoc" href="instance-types.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-instance-types.html');">Instance Types</a><ul class="awstoc"><li class="awstoc leaf"><a class="awstoc" href="t2-instances.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-t2-instances.html');">T2 Instances</a></li><li class="awstoc leaf"><a class="awstoc" href="c4-instances.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-c4-instances.html');">C4 Instances</a></li><li class="awstoc leaf"><a class="awstoc selected" href="using_cluster_computing.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-using_cluster_computing.html');">GPU Instances</a></li><li class="awstoc leaf"><a class="awstoc" href="i2-instances.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-i2-instances.html');">I2 Instances</a></li><li class="awstoc leaf"><a class="awstoc" href="d2-instances.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-d2-instances.html');">D2 Instances</a></li><li class="awstoc leaf"><a class="awstoc" href="storage_instances.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-storage_instances.html');">HI1 Instances</a></li><li class="awstoc leaf"><a class="awstoc" href="high_storage_instances.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-high_storage_instances.html');">HS1 Instances</a></li><li class="awstoc leaf"><a class="awstoc" href="concepts_micro_instances.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-concepts_micro_instances.html');">T1 Micro Instances</a></li><li class="awstoc leaf"><a class="awstoc" href="ec2-instance-resize.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-ec2-instance-resize.html');">Resizing Instances</a></li></ul></li><li class="awstoc closed"><a class="awstoc" href="instance-purchasing-options.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-instance-purchasing-options.html');">Instance Purchasing Options</a><ul class="awstoc"><li class="awstoc closed"><a class="awstoc" href="using-spot-instances.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-using-spot-instances.html');">Spot Instances</a><ul class="awstoc"><li class="awstoc leaf"><a class="awstoc" href="how-spot-instances-work.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-how-spot-instances-work.html');">How Spot Instances Work</a></li><li class="awstoc leaf"><a class="awstoc" href="spot-fleet.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-spot-fleet.html');">How Spot Fleet Works</a></li><li class="awstoc leaf"><a class="awstoc" href="using-spot-instances-history.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-using-spot-instances-history.html');">Spot Instance Pricing History</a></li><li class="awstoc closed"><a class="awstoc" href="spot-requests.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-spot-requests.html');">Spot Instance Requests</a><ul class="awstoc"><li class="awstoc leaf"><a class="awstoc" href="spot-request-examples.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-spot-request-examples.html');">Example Launch Specifications</a></li></ul></li><li class="awstoc closed"><a class="awstoc" href="spot-fleet-requests.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-spot-fleet-requests.html');">Spot Fleet Requests</a><ul class="awstoc"><li class="awstoc leaf"><a class="awstoc" href="spot-fleet-examples.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-spot-fleet-examples.html');">Example Configurations</a></li></ul></li><li class="awstoc leaf"><a class="awstoc" href="spot-bid-status.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-spot-bid-status.html');">Spot Bid Status</a></li><li class="awstoc leaf"><a class="awstoc" href="spot-interruptions.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-spot-interruptions.html');">Spot Instance Interruptions</a></li><li class="awstoc leaf"><a class="awstoc" href="spot-data-feeds.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-spot-data-feeds.html');">Spot Instance Data Feed</a></li><li class="awstoc leaf"><a class="awstoc" href="using-spot-limits.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-using-spot-limits.html');">Spot Instance Limits</a></li></ul></li><li class="awstoc closed"><a class="awstoc" href="concepts-on-demand-reserved-instances.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-concepts-on-demand-reserved-instances.html');">Reserved Instances</a><ul class="awstoc"><li class="awstoc leaf"><a class="awstoc" href="reserved-instances-fundamentals.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-reserved-instances-fundamentals.html');">How Reserved Instances Work</a></li><li class="awstoc leaf"><a class="awstoc" href="concepts-reserved-instances-application.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-concepts-reserved-instances-application.html');">Billing Benefits and Payment Options</a></li><li class="awstoc closed"><a class="awstoc" href="ri-market-concepts-buying.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-ri-market-concepts-buying.html');">Buying Reserved Instances</a><ul class="awstoc"><li class="awstoc leaf"><a class="awstoc" href="ri-market-buying-guide.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-ri-market-buying-guide.html');">Buying in the Reserved Instance Marketplace</a></li></ul></li><li class="awstoc closed"><a class="awstoc" href="ri-market-selling-guide.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-ri-market-selling-guide.html');">Selling in the Reserved Instance Marketplace</a><ul class="awstoc"><li class="awstoc leaf"><a class="awstoc" href="ri-market-seller-profile.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-ri-market-seller-profile.html');">Registering as a Seller</a></li></ul></li><li class="awstoc closed"><a class="awstoc" href="ri-modifying.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-ri-modifying.html');">Modifying Your Reserved Instances</a><ul class="awstoc"><li class="awstoc leaf"><a class="awstoc" href="ri-modification-limits.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-ri-modification-limits.html');">Requirements for Modification</a></li><li class="awstoc leaf"><a class="awstoc" href="ri-modification-instancemove.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-ri-modification-instancemove.html');">Changing the Instance Type of Your Reservations</a></li><li class="awstoc leaf"><a class="awstoc" href="ri-modification-process.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-ri-modification-process.html');">Submitting Modification Requests</a></li></ul></li><li class="awstoc leaf"><a class="awstoc" href="ri-modification-process-messages.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-ri-modification-process-messages.html');">Troubleshooting Modification Requests</a></li></ul></li><li class="awstoc closed"><a class="awstoc" href="dedicated-hosts-overview.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-dedicated-hosts-overview.html');">Dedicated Hosts</a><ul class="awstoc"><li class="awstoc closed"><a class="awstoc" href="how-dedicated-hosts-work.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-how-dedicated-hosts-work.html');">How to Use Dedicated Hosts</a><ul class="awstoc"><li class="awstoc leaf"><a class="awstoc" href="dedicated-hosts-instance-placement.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-dedicated-hosts-instance-placement.html');">Understanding Instance Placement</a></li></ul></li><li class="awstoc leaf"><a class="awstoc" href="dedicated-hosts-monitoring.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-dedicated-hosts-monitoring.html');">Monitoring Dedicated Hosts</a></li></ul></li></ul></li><li class="awstoc closed"><a class="awstoc" href="ec2-instance-lifecycle.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-ec2-instance-lifecycle.html');">Instance Lifecycle</a><ul class="awstoc"><li class="awstoc closed"><a class="awstoc" href="LaunchingAndUsingInstances.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-LaunchingAndUsingInstances.html');">Launch</a><ul class="awstoc"><li class="awstoc leaf"><a class="awstoc" href="launching-instance.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-launching-instance.html');">Launching an Instance</a></li><li class="awstoc leaf"><a class="awstoc" href="launch-more-like-this.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-launch-more-like-this.html');">Launching an Instance From an Existing Instance</a></li><li class="awstoc leaf"><a class="awstoc" href="instance-launch-snapshot.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-instance-launch-snapshot.html');">Launching a Linux Instance from a Backup</a></li><li class="awstoc leaf"><a class="awstoc" href="launch-marketplace-console.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-launch-marketplace-console.html');">Launching an AWS Marketplace Instance</a></li></ul></li><li class="awstoc closed"><a class="awstoc" href="AccessingInstances.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-AccessingInstances.html');">Connect</a><ul class="awstoc"><li class="awstoc leaf"><a class="awstoc" href="AccessingInstancesLinux.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-AccessingInstancesLinux.html');">Connect Using SSH</a></li><li class="awstoc leaf"><a class="awstoc" href="putty.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-putty.html');">Connect Using PuTTY</a></li><li class="awstoc leaf"><a class="awstoc" href="mindterm.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-mindterm.html');">Connect Using MindTerm</a></li></ul></li><li class="awstoc leaf"><a class="awstoc" href="Stop_Start.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-Stop_Start.html');">Stop and Start</a></li><li class="awstoc leaf"><a class="awstoc" href="ec2-instance-reboot.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-ec2-instance-reboot.html');">Reboot</a></li><li class="awstoc leaf"><a class="awstoc" href="instance-retirement.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-instance-retirement.html');">Retire</a></li><li class="awstoc leaf"><a class="awstoc" href="terminating-instances.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-terminating-instances.html');">Terminate</a></li><li class="awstoc leaf"><a class="awstoc" href="ec2-instance-recover.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-ec2-instance-recover.html');">Recover</a></li></ul></li><li class="awstoc closed"><a class="awstoc" href="Configure_Instance.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-Configure_Instance.html');">Configure Instances</a><ul class="awstoc"><li class="awstoc closed"><a class="awstoc" href="managing-software.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-managing-software.html');">Managing Software</a><ul class="awstoc"><li class="awstoc leaf"><a class="awstoc" href="install-updates.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-install-updates.html');">Updating Instance Software</a></li><li class="awstoc leaf"><a class="awstoc" href="add-repositories.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-add-repositories.html');">Adding Repositories</a></li><li class="awstoc leaf"><a class="awstoc" href="find-software.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-find-software.html');">Finding Software Packages</a></li><li class="awstoc leaf"><a class="awstoc" href="install-software.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-install-software.html');">Installing Software Packages</a></li><li class="awstoc leaf"><a class="awstoc" href="compile-software.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-compile-software.html');">Preparing to Compile Software</a></li></ul></li><li class="awstoc leaf"><a class="awstoc" href="managing-users.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-managing-users.html');">Managing Users</a></li><li class="awstoc leaf"><a class="awstoc" href="processor_state_control.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-processor_state_control.html');">Processor State Control</a></li><li class="awstoc leaf"><a class="awstoc" href="set-time.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-set-time.html');">Setting the Time</a></li><li class="awstoc leaf"><a class="awstoc" href="set-hostname.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-set-hostname.html');">Changing the Hostname</a></li><li class="awstoc leaf"><a class="awstoc" href="dynamic-dns.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-dynamic-dns.html');">Setting Up Dynamic DNS</a></li><li class="awstoc leaf"><a class="awstoc" href="user-data.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-user-data.html');">Running Commands at Launch</a></li><li class="awstoc leaf"><a class="awstoc" href="ec2-instance-metadata.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-ec2-instance-metadata.html');">Instance Metadata and User Data</a></li></ul></li><li class="awstoc closed"><a class="awstoc" href="instances_of_your_vm.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-instances_of_your_vm.html');">Importing and Exporting Instances</a><ul class="awstoc"><li class="awstoc leaf"><a class="awstoc" href="VMImportPrerequisites.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-VMImportPrerequisites.html');">Prerequisites</a></li><li class="awstoc closed"><a class="awstoc" href="UsingImportImage.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-UsingImportImage.html');">Importing a VM into Amazon EC2 Using ImportImage</a><ul class="awstoc"><li class="awstoc leaf"><a class="awstoc" href="UploadVMImportImage.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-UploadVMImportImage.html');">Step 1: Install the AWS CLI</a></li><li class="awstoc leaf"><a class="awstoc" href="PrepareVMImportImage.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-PrepareVMImportImage.html');">Step 2: Prepare Your VM</a></li><li class="awstoc leaf"><a class="awstoc" href="ExportVMImportImage.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-ExportVMImportImage.html');">Step 3: Export Your VM from Its Virtual Environment</a></li><li class="awstoc closed"><a class="awstoc" href="ImportVMImportImage.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-ImportVMImportImage.html');">Step 4: Importing Your VM into Amazon EC2</a><ul class="awstoc"><li class="awstoc leaf"><a class="awstoc" href="import-status-ImportImage.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-import-status-ImportImage.html');">Checking on the Status of Your Import Image Task</a></li><li class="awstoc leaf"><a class="awstoc" href="import-volumes-ebs.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-import-volumes-ebs.html');">Importing Your Disk Images into Amazon EBS</a></li><li class="awstoc leaf"><a class="awstoc" href="cancel-import.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-cancel-import.html');">Canceling an Import Task</a></li></ul></li><li class="awstoc leaf"><a class="awstoc" href="LaunchVMImportImage.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-LaunchVMImportImage.html');">Step 5: Launch the instance in Amazon EC2</a></li></ul></li><li class="awstoc closed"><a class="awstoc" href="UsingVirtualMachinesinAmazonEC2.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-UsingVirtualMachinesinAmazonEC2.html');">Importing a VM into Amazon EC2 Using ImportInstance</a><ul class="awstoc"><li class="awstoc leaf"><a class="awstoc" href="UploadingYourInstancesandVolumes.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-UploadingYourInstancesandVolumes.html');">Step 1: Install the Amazon EC2 CLI</a></li><li class="awstoc leaf"><a class="awstoc" href="PreparingYourVirtualMachine.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-PreparingYourVirtualMachine.html');">Step 2: Prepare Your VM</a></li><li class="awstoc leaf"><a class="awstoc" href="ExportingYourVM.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-ExportingYourVM.html');">Step 3: Export Your VM from Its Virtual Environment</a></li><li class="awstoc closed"><a class="awstoc" href="ImportingYourVM.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-ImportingYourVM.html');">Step 4: Importing Your VM into Amazon EC2</a><ul class="awstoc"><li class="awstoc leaf"><a class="awstoc" href="checking-on-the-status-of-your-import.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-checking-on-the-status-of-your-import.html');">Checking on the Status of Your Import Task</a></li><li class="awstoc leaf"><a class="awstoc" href="importing-your-volumes-into-amazon-ebs.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-importing-your-volumes-into-amazon-ebs.html');">Importing Your Volumes into Amazon EBS</a></li><li class="awstoc leaf"><a class="awstoc" href="restarting-an-upload.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-restarting-an-upload.html');">Resuming an Upload</a></li><li class="awstoc leaf"><a class="awstoc" href="canceling-an-upload.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-canceling-an-upload.html');">Canceling an Upload</a></li><li class="awstoc leaf"><a class="awstoc" href="cleaning-up-after-an-upload.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-cleaning-up-after-an-upload.html');">Cleaning Up After an Upload</a></li></ul></li><li class="awstoc leaf"><a class="awstoc" href="LaunchingYourVM.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-LaunchingYourVM.html');">Step 5: Launch the instance in Amazon EC2</a></li></ul></li><li class="awstoc leaf"><a class="awstoc" href="ExportingEC2Instances.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-ExportingEC2Instances.html');">Exporting Amazon EC2 Instances</a></li><li class="awstoc leaf"><a class="awstoc" href="VMImportTroubleshooting.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-VMImportTroubleshooting.html');">Troubleshooting</a></li></ul></li></ul></li><li class="awstoc closed"><a class="awstoc" href="monitoring_ec2.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-monitoring_ec2.html');">Monitoring</a><ul class="awstoc"><li class="awstoc leaf"><a class="awstoc" href="monitoring_automated_manual.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-monitoring_automated_manual.html');">Automated and Manual Monitoring</a></li><li class="awstoc leaf"><a class="awstoc" href="monitoring_best_practices.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-monitoring_best_practices.html');">Best Practices for Monitoring</a></li><li class="awstoc closed"><a class="awstoc" href="monitoring-instances-status-check.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-monitoring-instances-status-check.html');">Monitoring the Status of Your Instances</a><ul class="awstoc"><li class="awstoc leaf"><a class="awstoc" href="monitoring-system-instance-status-check.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-monitoring-system-instance-status-check.html');">Instance Status Checks</a></li><li class="awstoc leaf"><a class="awstoc" href="monitoring-instances-status-check_sched.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-monitoring-instances-status-check_sched.html');">Scheduled Events</a></li></ul></li><li class="awstoc closed"><a class="awstoc" href="using-cloudwatch.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-using-cloudwatch.html');">Monitoring Your Instances with CloudWatch</a><ul class="awstoc"><li class="awstoc leaf"><a class="awstoc" href="using-cloudwatch-new.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-using-cloudwatch-new.html');">Enabling or Disabling Detailed Monitoring on an Amazon EC2 Instance</a></li><li class="awstoc leaf"><a class="awstoc" href="viewing_metrics_with_cloudwatch.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-viewing_metrics_with_cloudwatch.html');">View Amazon EC2 Metrics</a></li><li class="awstoc closed"><a class="awstoc" href="monitoring_get_statistics.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-monitoring_get_statistics.html');">Get Statistics for Metrics</a><ul class="awstoc"><li class="awstoc leaf"><a class="awstoc" href="US_SingleMetricPerInstance.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-US_SingleMetricPerInstance.html');">Get Statistics for a Specific EC2 Instance</a></li><li class="awstoc leaf"><a class="awstoc" href="GetSingleMetricAllDimensions.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-GetSingleMetricAllDimensions.html');">Aggregating Statistics Across Instances</a></li><li class="awstoc leaf"><a class="awstoc" href="GetMetricAutoScalingGroup.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-GetMetricAutoScalingGroup.html');">Get Statistics Aggregated by Auto Scaling Group</a></li><li class="awstoc leaf"><a class="awstoc" href="US_SingleMetricPerAMI.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-US_SingleMetricPerAMI.html');">Get Statistics Aggregated by Image (AMI) ID</a></li></ul></li><li class="awstoc closed"><a class="awstoc" href="graphs-in-the-aws-management-console.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-graphs-in-the-aws-management-console.html');">Graphing Metrics</a><ul class="awstoc"><li class="awstoc leaf"><a class="awstoc" href="graph_a_metric.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-graph_a_metric.html');">Graph a Metric</a></li><li class="awstoc leaf"><a class="awstoc" href="graph_a_metric_all_resources.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-graph_a_metric_all_resources.html');">Graph a Metric Across Resources</a></li></ul></li><li class="awstoc closed"><a class="awstoc" href="using-cloudwatch-createalarm.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-using-cloudwatch-createalarm.html');">Create a CloudWatch Alarm</a><ul class="awstoc"><li class="awstoc leaf"><a class="awstoc" href="US_AlarmAtThresholdEC2.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-US_AlarmAtThresholdEC2.html');">Send Email Based on CPU Usage Alarm</a></li><li class="awstoc leaf"><a class="awstoc" href="US_AlarmAtThresholdELB.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-US_AlarmAtThresholdELB.html');">Send Email Based on Load Balancer Alarm</a></li><li class="awstoc leaf"><a class="awstoc" href="US_AlarmAtThresholdEBS.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-US_AlarmAtThresholdEBS.html');">Send Email Based on Storage Throughput Alarm</a></li></ul></li><li class="awstoc leaf"><a class="awstoc" href="UsingAlarmActions.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-UsingAlarmActions.html');">Create Alarms That Stop, Terminate, Reboot, or Recover an Instance</a></li></ul></li><li class="awstoc leaf"><a class="awstoc" href="mon-scripts.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-mon-scripts.html');">Monitoring Memory and Disk Metrics</a></li></ul></li><li class="awstoc closed"><a class="awstoc" href="EC2_Network_and_Security.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-EC2_Network_and_Security.html');">Network and Security</a><ul class="awstoc"><li class="awstoc leaf"><a class="awstoc" href="ec2-key-pairs.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-ec2-key-pairs.html');">Key Pairs</a></li><li class="awstoc leaf"><a class="awstoc" href="using-network-security.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-using-network-security.html');">Security Groups</a></li><li class="awstoc closed"><a class="awstoc" href="UsingIAM.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-UsingIAM.html');">Controlling Access</a><ul class="awstoc"><li class="awstoc closed"><a class="awstoc" href="iam-policies-for-amazon-ec2.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-iam-policies-for-amazon-ec2.html');">IAM Policies</a><ul class="awstoc"><li class="awstoc leaf"><a class="awstoc" href="iam-policy-structure.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-iam-policy-structure.html');">Policy Structure</a></li><li class="awstoc leaf"><a class="awstoc" href="ec2-supported-iam-actions-resources.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-ec2-supported-iam-actions-resources.html');">Supported Resource-Level Permissions</a></li><li class="awstoc leaf"><a class="awstoc" href="ExamplePolicies_EC2.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-ExamplePolicies_EC2.html');">Example Policies for CLI or SDK</a></li><li class="awstoc leaf"><a class="awstoc" href="iam-policies-ec2-console.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-iam-policies-ec2-console.html');">Example Policies for the Console</a></li></ul></li><li class="awstoc leaf"><a class="awstoc" href="iam-roles-for-amazon-ec2.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-iam-roles-for-amazon-ec2.html');">IAM Roles</a></li><li class="awstoc leaf"><a class="awstoc" href="authorizing-access-to-an-instance.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-authorizing-access-to-an-instance.html');">Network Access</a></li></ul></li><li class="awstoc closed"><a class="awstoc" href="using-vpc.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-using-vpc.html');">Amazon VPC</a><ul class="awstoc"><li class="awstoc leaf"><a class="awstoc" href="ec2-supported-platforms.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-ec2-supported-platforms.html');">Supported Platforms</a></li><li class="awstoc leaf"><a class="awstoc" href="vpc-classiclink.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-vpc-classiclink.html');">ClassicLink</a></li><li class="awstoc leaf"><a class="awstoc" href="vpc-migrate.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-vpc-migrate.html');">Migrating from EC2-Classic to a VPC</a></li></ul></li><li class="awstoc closed"><a class="awstoc" href="using-instance-addressing.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-using-instance-addressing.html');">Instance IP Addressing</a><ul class="awstoc"><li class="awstoc leaf"><a class="awstoc" href="MultipleIP.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-MultipleIP.html');">Multiple Private IP Addresses</a></li></ul></li><li class="awstoc leaf"><a class="awstoc" href="elastic-ip-addresses-eip.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-elastic-ip-addresses-eip.html');">Elastic IP Addresses</a></li><li class="awstoc leaf"><a class="awstoc" href="using-eni.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-using-eni.html');">Elastic Network Interfaces</a></li><li class="awstoc leaf"><a class="awstoc" href="placement-groups.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-placement-groups.html');">Placement Groups</a></li><li class="awstoc leaf"><a class="awstoc" href="network_mtu.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-network_mtu.html');">Network MTU</a></li><li class="awstoc leaf"><a class="awstoc" href="enhanced-networking.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-enhanced-networking.html');">Enhanced Networking</a></li></ul></li><li class="awstoc closed"><a class="awstoc" href="Storage.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-Storage.html');">Storage</a><ul class="awstoc"><li class="awstoc closed"><a class="awstoc" href="AmazonEBS.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-AmazonEBS.html');">Amazon EBS</a><ul class="awstoc"><li class="awstoc closed"><a class="awstoc" href="EBSVolumes.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-EBSVolumes.html');">EBS Volumes</a><ul class="awstoc"><li class="awstoc leaf"><a class="awstoc" href="EBSVolumeTypes.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-EBSVolumeTypes.html');">EBS Volume Types</a></li><li class="awstoc leaf"><a class="awstoc" href="ebs-creating-volume.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-ebs-creating-volume.html');">Creating a Volume</a></li><li class="awstoc leaf"><a class="awstoc" href="ebs-restoring-volume.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-ebs-restoring-volume.html');">Restoring from a Snapshot</a></li><li class="awstoc leaf"><a class="awstoc" href="ebs-attaching-volume.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-ebs-attaching-volume.html');">Attaching a Volume to an Instance</a></li><li class="awstoc leaf"><a class="awstoc" href="ebs-using-volumes.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-ebs-using-volumes.html');">Making a Volume Available for Use</a></li><li class="awstoc leaf"><a class="awstoc" href="ebs-describing-volumes.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-ebs-describing-volumes.html');">Volume Information</a></li><li class="awstoc leaf"><a class="awstoc" href="monitoring-volume-status.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-monitoring-volume-status.html');">Monitoring the Status of Your Volumes</a></li><li class="awstoc leaf"><a class="awstoc" href="ebs-detaching-volume.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-ebs-detaching-volume.html');">Detaching a Volume from an Instance</a></li><li class="awstoc leaf"><a class="awstoc" href="ebs-deleting-volume.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-ebs-deleting-volume.html');">Deleting a Volume</a></li><li class="awstoc leaf"><a class="awstoc" href="ebs-expand-volume.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-ebs-expand-volume.html');">Expanding a Volume</a></li><li class="awstoc leaf"><a class="awstoc" href="storage_expand_partition.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-storage_expand_partition.html');">Expanding a Linux Partition</a></li></ul></li><li class="awstoc closed"><a class="awstoc" href="EBSSnapshots.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-EBSSnapshots.html');">EBS Snapshots</a><ul class="awstoc"><li class="awstoc leaf"><a class="awstoc" href="ebs-creating-snapshot.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-ebs-creating-snapshot.html');">Creating a Snapshot</a></li><li class="awstoc leaf"><a class="awstoc" href="ebs-deleting-snapshot.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-ebs-deleting-snapshot.html');">Deleting a Snapshot</a></li><li class="awstoc leaf"><a class="awstoc" href="ebs-copy-snapshot.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-ebs-copy-snapshot.html');">Copying a Snapshot</a></li><li class="awstoc leaf"><a class="awstoc" href="ebs-describing-snapshots.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-ebs-describing-snapshots.html');">Viewing Snapshot Information</a></li><li class="awstoc leaf"><a class="awstoc" href="ebs-modifying-snapshot-permissions.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-ebs-modifying-snapshot-permissions.html');">Sharing a Snapshot</a></li></ul></li><li class="awstoc leaf"><a class="awstoc" href="EBSOptimized.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-EBSOptimized.html');">EBS Optimization</a></li><li class="awstoc leaf"><a class="awstoc" href="EBSEncryption.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-EBSEncryption.html');">EBS Encryption</a></li><li class="awstoc closed"><a class="awstoc" href="EBSPerformance.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-EBSPerformance.html');">EBS Performance</a><ul class="awstoc"><li class="awstoc leaf"><a class="awstoc" href="ebs-ec2-config.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-ebs-ec2-config.html');">EC2 Configuration</a></li><li class="awstoc leaf"><a class="awstoc" href="ebs-io-characteristics.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-ebs-io-characteristics.html');">I/O Characteristics</a></li><li class="awstoc leaf"><a class="awstoc" href="ebs-workload-demand.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-ebs-workload-demand.html');">Workload Demand</a></li><li class="awstoc leaf"><a class="awstoc" href="ebs-initialize.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-ebs-initialize.html');">Initialize Volumes</a></li><li class="awstoc leaf"><a class="awstoc" href="raid-config.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-raid-config.html');">RAID Configuration on Linux</a></li><li class="awstoc leaf"><a class="awstoc" href="benchmark_piops.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-benchmark_piops.html');">Benchmark Volumes</a></li></ul></li></ul></li><li class="awstoc closed"><a class="awstoc" href="InstanceStorage.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-InstanceStorage.html');">Instance Store</a><ul class="awstoc"><li class="awstoc leaf"><a class="awstoc" href="add-instance-store-volumes.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-add-instance-store-volumes.html');">Add Instance Store Volumes</a></li><li class="awstoc leaf"><a class="awstoc" href="ssd-instance-store.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-ssd-instance-store.html');">SSD Instance Store Volumes</a></li><li class="awstoc leaf"><a class="awstoc" href="instance-store-swap-volumes.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-instance-store-swap-volumes.html');">Instance Store Swap Volumes</a></li><li class="awstoc leaf"><a class="awstoc" href="disk-performance.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-disk-performance.html');">Optimizing Disk Performance</a></li></ul></li><li class="awstoc leaf"><a class="awstoc" href="AmazonS3.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-AmazonS3.html');">Amazon S3</a></li><li class="awstoc leaf"><a class="awstoc" href="volume_limits.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-volume_limits.html');">Instance Volume Limits</a></li><li class="awstoc leaf"><a class="awstoc" href="device_naming.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-device_naming.html');">Device Naming</a></li><li class="awstoc leaf"><a class="awstoc" href="block-device-mapping-concepts.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-block-device-mapping-concepts.html');">Block Device Mapping</a></li><li class="awstoc leaf"><a class="awstoc" href="using-public-data-sets.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-using-public-data-sets.html');">Using Public Data Sets</a></li></ul></li><li class="awstoc closed"><a class="awstoc" href="EC2_Resources.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-EC2_Resources.html');">Resources and Tags</a><ul class="awstoc"><li class="awstoc leaf"><a class="awstoc" href="resources.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-resources.html');">Resource Locations</a></li><li class="awstoc leaf"><a class="awstoc" href="Using_Filtering.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-Using_Filtering.html');">Listing and Filtering Your Resources</a></li><li class="awstoc leaf"><a class="awstoc" href="Using_Tags.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-Using_Tags.html');">Tagging Your Resources</a></li><li class="awstoc leaf"><a class="awstoc" href="ec2-resource-limits.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-ec2-resource-limits.html');">Service Limits</a></li><li class="awstoc closed"><a class="awstoc" href="usage-reports.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-usage-reports.html');">Usage Reports</a><ul class="awstoc"><li class="awstoc leaf"><a class="awstoc" href="usage-reports-instance.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-usage-reports-instance.html');">Instance Usage</a></li><li class="awstoc leaf"><a class="awstoc" href="usage-reports-ri.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-usage-reports-ri.html');">Reserved Instance Utilization</a></li></ul></li></ul></li><li class="awstoc closed"><a class="awstoc" href="ec2-instance-troubleshoot.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-ec2-instance-troubleshoot.html');">Troubleshooting</a><ul class="awstoc"><li class="awstoc leaf"><a class="awstoc" href="Using_InstanceStraightToTerminated.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-Using_InstanceStraightToTerminated.html');">Launching Your Instance</a></li><li class="awstoc leaf"><a class="awstoc" href="TroubleshootingInstancesConnecting.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-TroubleshootingInstancesConnecting.html');">Connecting to Your Instance</a></li><li class="awstoc leaf"><a class="awstoc" href="TroubleshootingInstancesStopping.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-TroubleshootingInstancesStopping.html');">Stopping Your Instance</a></li><li class="awstoc leaf"><a class="awstoc" href="TroubleshootingInstancesShuttingDown.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-TroubleshootingInstancesShuttingDown.html');">Terminating Your Instance</a></li><li class="awstoc leaf"><a class="awstoc" href="TroubleshootingInstanceRecovery.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-TroubleshootingInstanceRecovery.html');">Instance Recovery Failures</a></li><li class="awstoc leaf"><a class="awstoc" href="TroubleshootingInstances.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-TroubleshootingInstances.html');">Failed Status Checks</a></li><li class="awstoc leaf"><a class="awstoc" href="instance-capacity.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-instance-capacity.html');">Instance Capacity</a></li><li class="awstoc leaf"><a class="awstoc" href="instance-console.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-instance-console.html');">General</a></li><li class="awstoc leaf"><a class="awstoc" href="instance-booting-from-wrong-volume.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-instance-booting-from-wrong-volume.html');">My Instance is Booting from the Wrong Volume</a></li></ul></li><li class="awstoc leaf"><a class="awstoc" href="available-apis.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-available-apis.html');">Making API Requests</a></li><li class="awstoc leaf"><a class="awstoc" href="DocumentHistory.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-DocumentHistory.html');">Document History</a></li><li class="awstoc leaf"><a class="awstoc" href="glossary.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-toc', 'aws-docs-click', tocroot + '-glossary.html');">AWS Glossary</a></li></ul></div></div><div id="main-column"><div id="main"><div id="main-content"><div id="breadcrumbs"><table summary="Breadcrumbs"><tr><td><div class="navheader"><div class="breadcrumb"><a href="http://aws.amazon.com/documentation/" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-breadcrumbs', 'aws-docs-click', 'http://aws.amazon.com/documentation/');">AWS Documentation</a> &raquo; <a href="http://aws.amazon.com/documentation/ec2/" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-breadcrumbs', 'aws-docs-click', 'http://aws.amazon.com/documentation/ec2/');">Amazon EC2</a> &raquo; <a href="http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-breadcrumbs', 'aws-docs-click', 'http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/');">User Guide for Linux Instances</a> &raquo; <a href="Instances.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-breadcrumbs', 'aws-docs-click', location.protocol + '//' + location.hostname + '/Instances.html');">Amazon EC2 Instances</a> &raquo; <a href="instance-types.html" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-breadcrumbs', 'aws-docs-click', location.protocol + '//' + location.hostname + '/instance-types.html');">Instance Types</a> &raquo; <span class="breadcrumb">Linux GPU Instances</span></div></div></td></tr></table></div><div id="main-col-body"><div class="section"><div class="titlepage"><div><div><h1 class="topictitle"><span>Linux</span> GPU Instances</h1></div></div></div><p>If you require high parallel processing capability, you'll benefit from using GPU instances, which provide access to NVIDIA GPUs with up to 1,536 CUDA cores and 4 GB of video memory. You can use GPU instances to accelerate many scientific, engineering, and rendering applications by leveraging the Compute Unified Device Architecture (CUDA) or OpenCL parallel computing frameworks. You can also use them for graphics applications, including game streaming, 3-D application streaming, and other graphics workloads.</p><p>GPU instances run as HVM-based instances. Hardware virtual machine (HVM) virtualization uses hardware-assist technology provided by the AWS platform. With HVM virtualization, the guest VM runs as if it were on a native hardware platform, except that it still uses paravirtual (PV) network and storage drivers for improved performance. This enables Amazon EC2 to provide dedicated access to one or more discrete GPUs in each GPU instance.</p><p>You can cluster GPU instances into a placement group. Placement groups provide low latency and high-bandwidth connectivity between the instances within a single Availability Zone. For more information, see <a class="xref" href="placement-groups.html" title="Placement Groups">Placement Groups</a>.</p><div class="highlights"><p><strong>Contents</strong></p><ul><li><a href="using_cluster_computing.html#gpu-instance-specifications">Hardware Specifications</a></li><li><a href="using_cluster_computing.html#gpu-instance-current-limitations">GPU Instance Limitations</a></li><li><a href="using_cluster_computing.html#gpu-operating-systems">AMIs for GPU Instances</a></li><li><a href="using_cluster_computing.html#install-nvidia-driver">Installing the NVIDIA Driver on Linux</a></li></ul></div><p>For information about Windows GPU Instances, see <a class="ulink" href="http://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/using_cluster_computing.html" target="_blank">Windows GPU Instances</a> in the <span class="emphasis"><em>Amazon EC2 User Guide for Microsoft Windows Instances</em></span>.</p><div class="section"><div class="titlepage"><div><div><h2 class="title" style="clear: both" id="gpu-instance-specifications">Hardware Specifications</h2></div></div></div><p>For more information about the hardware specifications for each Amazon EC2 instance type, see <a class="ulink" href="http://aws.amazon.com/ec2/instance-types/" target="_blank">Amazon EC2 Instances</a>.</p></div><div class="section"><div class="titlepage"><div><div><h2 class="title" style="clear: both" id="gpu-instance-current-limitations">GPU Instance Limitations</h2></div></div></div><p>GPU instances have the following limitations:</p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p>You must launch the instance using an HVM AMI.</p></li><li class="listitem"><p>They can't access the GPU unless the NVIDIA drivers are installed.</p></li><li class="listitem"><p>There is a limit on the number of instances that you can run. For more information, see <a class="ulink" href="http://aws.amazon.com/ec2/faqs/#How_many_instances_can_I_run_in_Amazon_EC2" target="_blank">How many instances can I run in Amazon EC2?</a> in the Amazon EC2 FAQ. To request an increase in these limits, use the following form: <a class="ulink" href="https://console.aws.amazon.com/support/home#/case/create?issueType=service-limit-increase&amp;limitType=service-code-ec2-instances" target="_blank">Request to Increase Amazon EC2 Instance Limit</a>.</p></li></ul></div></div><div class="section"><div class="titlepage"><div><div><h2 class="title" style="clear: both" id="gpu-operating-systems">AMIs for GPU Instances</h2></div></div></div><p>To help you get started, NVIDIA provides AMIs for GPU instances. These reference AMIs include the NVIDIA driver, which enables full functionality and performance of the NVIDIA GPUs. For a list of AMIs with the NVIDIA driver, see <a class="ulink" href="http://aws.amazon.com/marketplace/search/results/?searchTerms=NVIDIAGRID" target="_blank">AWS Marketplace (NVIDIA GRID)</a>.</p><p>You can launch CG1 and G2 instances using any HVM AMI.</p></div><div class="section"><div class="titlepage"><div><div><h2 class="title" style="clear: both" id="install-nvidia-driver">Installing the NVIDIA Driver on Linux</h2></div></div></div><p>A GPU instance must have the appropriate NVIDIA driver. The NVIDIA driver you install must be compiled against the kernel that you intend to run on your instance.</p><p>Amazon provides AMIs with updated and compatible builds of the NVIDIA kernel drivers for each official kernel upgrade in the AWS Marketplace. If you decide to use a different NVIDIA driver version than the one that Amazon provides, or decide to use a kernel that's not an official Amazon build, you must uninstall the Amazon-provided NVIDIA packages from your system to avoid conflicts with the versions of the drivers that you are trying to install.</p><p>Use this command to uninstall Amazon-provided NVIDIA packages:</p><pre class="programlisting"><code class="nohighlight">[ec2-user ~]$ <strong class="userinput"><code>sudo yum erase nvidia cuda</code></strong></code></pre><p>The Amazon-provided CUDA toolkit package has dependencies on the NVIDIA drivers. Uninstalling the NVIDIA packages erases the CUDA toolkit. You must reinstall the CUDA toolkit after installing the NVIDIA driver.</p><p>You can download NVIDIA drivers from <a class="ulink" href="http://www.nvidia.com/Download/Find.aspx" target="_blank">http://www.nvidia.com/Download/Find.aspx</a>. Select the appropriate driver for your instance:</p><div class="table"><a name="d0e13430"></a><p class="title"><b>G2 Instances</b></p><div class="table-contents"><table id="d0e13433" summary="G2 Instances" cellspacing="0" border="1"><colgroup><col class="c1"><col class="c2"></colgroup><tbody><tr><td><span class="bold"><strong>Product Type</strong></span></td><td>GRID</td></tr><tr><td><span class="bold"><strong>Product Series</strong></span></td><td>GRID Series</td></tr><tr><td><span class="bold"><strong>Product</strong></span></td><td>GRID K520</td></tr><tr><td><span class="bold"><strong>Operating System</strong></span></td><td>Linux 64-bit</td></tr><tr><td><span class="bold"><strong>Recommended/Beta</strong></span></td><td>Recommended/Certified</td></tr></tbody></table></div></div><p><br class="table-break"> </p><div class="table"><a name="d0e13468"></a><p class="title"><b>CG1 Instances</b></p><div class="table-contents"><table id="d0e13471" summary="CG1 Instances" cellspacing="0" border="1"><colgroup><col class="c1"><col class="c2"></colgroup><tbody><tr><td><span class="bold"><strong>Product Type</strong></span></td><td>Tesla</td></tr><tr><td><span class="bold"><strong>Product Series</strong></span></td><td>M-Class</td></tr><tr><td><span class="bold"><strong>Product</strong></span></td><td>M2050</td></tr><tr><td><span class="bold"><strong>Operating System</strong></span></td><td>Linux 64-bit</td></tr><tr><td><span class="bold"><strong>Recommended/Beta</strong></span></td><td>Recommended/Certified</td></tr></tbody></table></div></div><p><br class="table-break">For more information about installing and configuring the driver, open the <span class="guilabel">ADDITIONAL INFORMATION</span> tab on the download page for the driver on the NVIDIA website and click the README link.</p><div class="section"><div class="titlepage"><div><div><h3 class="title" id="Cluster_GPUs_Manual_Install_Driver">Install the NVIDIA Driver Manually </h3></div></div></div><div class="procedure"><a name="d0e13512"></a><p class="title"><b>To install the driver for an Amazon Linux AMI</b></p><ol class="procedure" type="1"><li class="step"><p>Run the <span class="command"><strong>yum update</strong></span> command to get the latest versions of packages for your instance.</p><pre class="programlisting"><code class="nohighlight">[ec2-user ~]$ <strong class="userinput"><code>sudo yum update -y</code></strong></code></pre></li><li class="step"><p>Reboot your instance to load the latest kernel version.</p><pre class="programlisting"><code class="nohighlight">[ec2-user ~]$ <strong class="userinput"><code>sudo reboot</code></strong></code></pre></li><li class="step"><p>Reconnect to your instance after it has rebooted.</p></li><li class="step"><p>Install the "Development tools" package group.</p><pre class="programlisting"><code class="nohighlight">[ec2-user ~]$ <strong class="userinput"><code>sudo yum groupinstall -y "Development tools"</code></strong></code></pre></li><li class="step"><p>Make sure the <code class="code">kernel-devel</code> package is installed and matches the version of the kernel you are currently running.</p><pre class="programlisting"><code class="nohighlight">[ec2-user ~]$ <strong class="userinput"><code>sudo yum install kernel-devel-`uname -r`</code></strong></code></pre></li><li class="step"><p>Download the driver package that you identified earlier. For example, the following command downloads the 340.46 version of the G2 instance driver.</p><pre class="programlisting"><code class="nohighlight">[ec2-user ~]$ <strong class="userinput"><code>wget <em class="replaceable"><code>http://us.download.nvidia.com/XFree86/Linux-x86_64/340.46/NVIDIA-Linux-x86_64-340.46.run</code></em></code></strong></code></pre></li><li class="step"><p>Run the self-install script to install the NVIDIA driver. For example:</p><pre class="programlisting"><code class="nohighlight">[ec2-user ~]$ <strong class="userinput"><code>sudo /bin/bash ./<em class="replaceable"><code>NVIDIA-Linux-x86_64-340.46.run</code></em></code></strong></code></pre></li><li class="step"><p>Reboot the instance. For more information, see <a class="xref" href="ec2-instance-reboot.html" title="Reboot Your Instance">Reboot Your Instance</a>.</p></li><li class="step"><p>Confirm that the driver is functional. The response for the following command lists the installed NVIDIA driver version and details about the GPUs.</p><pre class="programlisting"><code class="nohighlight">[ec2-user ~]$ <strong class="userinput"><code>nvidia-smi -q | head</code></strong> ==============NVSMI LOG============== Timestamp : Thu Oct 2 17:28:29 2014 Driver Version : 340.46 Attached GPUs : 1 GPU 0000:00:03.0 Product Name : GRID K520 Product Brand : Grid</code></pre></li></ol></div></div></div></div></div><img src="images/expanderarrow.png" style="display:none;height:0;width:0"><div id="main-col-footer"><div id="doc-conventions"><a target="_top" href="/general/latest/gr/docconventions.html">Document Conventions</a></div><div id="next"><a class="awstoc" accesskey="p" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-previous', 'aws-docs-click', location.protocol + '//' + location.hostname + '/c4-instances.html');" href="c4-instances.html">&laquo; Previous </a><a class="awstoc" accesskey="n" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-next', 'aws-docs-click', location.protocol + '//' + location.hostname + '/i2-instances.html');" href="i2-instances.html">Next &raquo;</a></div></div></div></div><div id="right-expanded"><div id="right-content-wrapper"><div id="right-col-header"><a id="pdf_link" href="ec2-ug.pdf" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-pdf-link', 'aws-docs-click', 'ec2-ug.pdf');"> PDF </a><text> | </text><a target="_blank" href="http://www.amazon.com/dp/B007Q4H9JI" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-kindle-link', 'aws-docs-click', 'http://www.amazon.com/dp/B007Q4H9JI');">Kindle </a></div><div id="pagetoc"><p>On this page:</p><ul class="pagetoc"><li class="pagetoc" name="Hardware Specifications"><a class="pagetoc" href="#gpu-instance-specifications">Hardware Specifications</a></li><li class="pagetoc" name="GPU Instance Limitations"><a class="pagetoc" href="#gpu-instance-current-limitations">GPU Instance Limitations</a></li><li class="pagetoc" name="AMIs for GPU Instances"><a class="pagetoc" href="#gpu-operating-systems">AMIs for GPU Instances</a></li><li class="pagetoc" name="Installing the NVIDIA Driver on Linux"><a class="pagetoc" href="#install-nvidia-driver">Installing the NVIDIA Driver on Linux</a></li></ul></div></div></div></div></div><div id="footer"><div id="footer-left"><a target="_top" href="http://aws.amazon.com/terms">Terms of Use</a> | &copy; 2015, Amazon Web Services, Inc. or its affiliates. All rights reserved.</div><div id="footer-right"><div id="feedback"><div id="forums"><a id="forum_link" target="_blank" href="http://forums.aws.amazon.com/forum.jspa?forumID=30" onclick="location.hostname.substring(0,5)!=='docs.' || __utmTrackEvent('aws-docs-forums-link', 'aws-docs-click', 'http://forums.aws.amazon.com/forum.jspa?forumID=30');">Have a question? Try the Forums.</a></div><div id="feedback-message">Did this page help you?</div><div id="feedback-yesno-buttons"><a class="awstoc btn btn-default" target="_blank" href="feedbackyes.html?topic_id=using_cluster_computing">Yes</a><a class="awstoc btn btn-default" target="_blank" href="feedbackno.html?topic_id=using_cluster_computing">No</a></div><div id="feedback-feedback-button"><a class="awstoc btn btn-default" target="_blank" href="https://docs.aws.amazon.com/forms/aws-doc-feedback?hidden_service_name=EC2&amp;hidden_guide_name=User Guide for Linux Instances&amp;hidden_api_version=&amp;hidden_file_name=using_cluster_computing">Feedback</a></div></div></div></div><noscript><div><div><div><div id="error_messages"><img src="https://d1ge0kk1l5kms0.cloudfront.net/images/G/01/webservices/console/warning.png" style="float: left;" alt="Warning"><div id="js_error_message"><strong>Javascript is disabled or is unavailable in your browser.</strong><br> To use the AWS Documentation, Javascript must be enabled. Please refer to your browser's Help pages for instructions. </div></div></div></div></div></noscript><!-- SiteCatalyst code version: H.25.2. Copyright 1996-2012 Adobe, Inc. All Rights Reserved More info available at http://www.omniture.com --><script language="JavaScript" type="text/javascript" src="https://a0.awsstatic.com/s_code/js/1.0/awshome_s_code.js"></script><script language="JavaScript" type="text/javascript"><!-- // Documentation Service Name s.prop66='Amazon Elastic Compute Cloud'; s.eVar66='D=c66'; // Documentation Guide Name s.prop65='User Guide for Linux Instances'; s.eVar65='D=c65'; var s_code=s.t();if(s_code)document.write(s_code)//--></script><script language="JavaScript" type="text/javascript"><!-- if(navigator.appVersion.indexOf('MSIE')>=0)document.write(unescape('%3C')+'\!-'+'-') //--></script><noscript><img src="http://amazonwebservices.d2.sc.omtrdc.net/b/ss/awsamazondev/1/H.25.2--NS/0" height="1" width="1" border="0" alt=""></noscript><!--/DO NOT REMOVE/--><!-- End SiteCatalyst code version: H.25.2. --></body></html>""" hash_object = hashlib.sha256(example_html.encode('utf8')) print (hash_object.hexdigest())
787.093458
28,147
0.715421
11,956
84,219
4.98093
0.08456
0.094758
0.092692
0.128963
0.69907
0.665805
0.641977
0.625134
0.614404
0.594187
0
0.011643
0.071943
84,219
106
28,148
794.518868
0.750281
0.000629
0
0
0
0.484211
0.998075
0.569923
0
0
0
0
0
1
0
false
0
0.084211
0
0.084211
0.021053
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
1
1
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
f7cd0f2471d7f58e2ecbd06ba5fb06d82976f6b5
128
py
Python
rasterLib/__init__.py.py
manishsingh7163/rasterlib
5c5e0f179eb6056570bb79a401bda845aec7ac0e
[ "MIT" ]
null
null
null
rasterLib/__init__.py.py
manishsingh7163/rasterlib
5c5e0f179eb6056570bb79a401bda845aec7ac0e
[ "MIT" ]
null
null
null
rasterLib/__init__.py.py
manishsingh7163/rasterlib
5c5e0f179eb6056570bb79a401bda845aec7ac0e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Jul 4 15:27:28 2018 @author: viveks01 """ from rasterlib import rasterLib
14.222222
36
0.609375
18
128
4.333333
0.944444
0
0
0
0
0
0
0
0
0
0
0.14433
0.242188
128
8
37
16
0.659794
0.601563
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
1
0
0
5
f7d328d7b529f277e8abe4048b6c8891ca586b88
1,166
py
Python
tests/core/generic/test_whitespaces.py
mholtzscher/cleanser
8c157c692d86639063d44cd94637bfd2b3632b53
[ "MIT" ]
2
2018-12-08T02:35:58.000Z
2019-11-14T03:08:41.000Z
tests/core/generic/test_whitespaces.py
mholtzscher/cleanser
8c157c692d86639063d44cd94637bfd2b3632b53
[ "MIT" ]
21
2018-11-26T19:38:48.000Z
2019-04-04T20:15:32.000Z
tests/core/generic/test_whitespaces.py
mholtzscher/cleanser
8c157c692d86639063d44cd94637bfd2b3632b53
[ "MIT" ]
null
null
null
from cleanser import Cleanser def test_spaces(): text = "I have some extra spaces. " expected = "I have some extra spaces." assert Cleanser(text).whitespaces().text == expected def test_tabs(): text = "I have a tab or two in me." expected = "I have a tab or two in me." assert Cleanser(text).whitespaces().text == expected def test_newline(): text = "I am a longer piece of text.\n The best food is pizza." expected = "I am a longer piece of text. The best food is pizza." assert Cleanser(text).whitespaces().text == expected def test_newlines(): text = """I am a longer piece of text. The best food is pizza. I can't write poetry.""" expected = ( "I am a longer piece of text. The best food is pizza. I can't write poetry." ) assert Cleanser(text).whitespaces().text == expected def test_newline_nospaces(): text = "Hi there.\nI'm Tom." expected = "Hi there. I'm Tom." assert Cleanser(text).whitespaces().text == expected text = "Hi there.\n\nI'm Tom." expected = "Hi there. I'm Tom." assert Cleanser(text).whitespaces().text == expected
29.15
84
0.635506
174
1,166
4.224138
0.247126
0.114286
0.146939
0.236735
0.854422
0.77551
0.77551
0.77551
0.556463
0.406803
0
0
0.246998
1,166
39
85
29.897436
0.83713
0
0
0.285714
0
0.035714
0.398799
0
0
0
0
0
0.214286
1
0.178571
false
0
0.035714
0
0.214286
0
0
0
0
null
0
0
1
1
1
1
1
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
5
f7d6c0f43c034b10facb3c60e168aee1c3bc436f
66
py
Python
star_war/starwar_app/serializers.py
bhargava-kush/star_war
9d18aee18d24f1a2843496cc3104f8ac69068c4e
[ "MIT" ]
null
null
null
star_war/starwar_app/serializers.py
bhargava-kush/star_war
9d18aee18d24f1a2843496cc3104f8ac69068c4e
[ "MIT" ]
null
null
null
star_war/starwar_app/serializers.py
bhargava-kush/star_war
9d18aee18d24f1a2843496cc3104f8ac69068c4e
[ "MIT" ]
null
null
null
from rest_framework import serializers from .models import Planet
22
38
0.863636
9
66
6.222222
0.777778
0
0
0
0
0
0
0
0
0
0
0
0.121212
66
2
39
33
0.965517
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
1
0
0
5
7912f43a189d235b8f3bbb092d0eb92e89da1582
152
py
Python
Examples/AppKit/CocoaBindings/CurrencyConvBinding/CurrencyConvBindingDocument.py
linuxfood/pyobjc-framework-Cocoa-test
3475890f165ab26a740f13d5afe4c62b4423a140
[ "MIT" ]
null
null
null
Examples/AppKit/CocoaBindings/CurrencyConvBinding/CurrencyConvBindingDocument.py
linuxfood/pyobjc-framework-Cocoa-test
3475890f165ab26a740f13d5afe4c62b4423a140
[ "MIT" ]
null
null
null
Examples/AppKit/CocoaBindings/CurrencyConvBinding/CurrencyConvBindingDocument.py
linuxfood/pyobjc-framework-Cocoa-test
3475890f165ab26a740f13d5afe4c62b4423a140
[ "MIT" ]
null
null
null
from Cocoa import NSDocument class CurrencyConvBindingDocument(NSDocument): def windowNibName(self): return "CurrencyConvBindingDocument"
21.714286
46
0.789474
12
152
10
0.833333
0
0
0
0
0
0
0
0
0
0
0
0.157895
152
6
47
25.333333
0.9375
0
0
0
0
0
0.177632
0.177632
0
0
0
0
0
1
0.25
false
0
0.25
0.25
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
1
1
0
0
5
791f4f6c30d06a9ad9b0d79c9c1d522cc9fb3afa
258
py
Python
kinoml/tests/core/test_components.py
t-kimber/kinoml
dc28fdbd416d1a53bb33131d6c6fcc05914b15cc
[ "MIT" ]
36
2019-08-26T03:44:50.000Z
2022-03-17T12:58:11.000Z
kinoml/tests/core/test_components.py
t-kimber/kinoml
dc28fdbd416d1a53bb33131d6c6fcc05914b15cc
[ "MIT" ]
92
2019-08-28T11:53:28.000Z
2022-03-30T10:15:44.000Z
kinoml/tests/core/test_components.py
t-kimber/kinoml
dc28fdbd416d1a53bb33131d6c6fcc05914b15cc
[ "MIT" ]
18
2019-08-24T03:22:28.000Z
2021-08-12T12:37:47.000Z
""" Test kinoml.core.components """ def test_components(): from kinoml.core.components import MolecularComponent, BaseLigand, BaseProtein assert isinstance(BaseLigand(), MolecularComponent) assert isinstance(BaseProtein(), MolecularComponent)
23.454545
82
0.775194
23
258
8.652174
0.521739
0.100503
0.201005
0
0
0
0
0
0
0
0
0
0.127907
258
10
83
25.8
0.884444
0.104651
0
0
0
0
0
0
0
0
0
0
0.5
1
0.25
true
0
0.25
0
0.5
0
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
1
1
0
0
0
0
0
0
5
79256bd1dd5791da167e312235ec71b318ccec12
912
py
Python
tests/test_auth.py
Veskor/backend-2
e67053b696fd5d165f89b6dfd5c7e15902339ac1
[ "BSD-2-Clause" ]
1
2019-05-06T20:54:06.000Z
2019-05-06T20:54:06.000Z
tests/test_auth.py
Veskor/backend-2
e67053b696fd5d165f89b6dfd5c7e15902339ac1
[ "BSD-2-Clause" ]
5
2020-10-19T21:54:55.000Z
2020-11-20T13:02:49.000Z
tests/test_auth.py
Veskor/backend-2
e67053b696fd5d165f89b6dfd5c7e15902339ac1
[ "BSD-2-Clause" ]
3
2020-01-12T13:34:35.000Z
2021-11-01T17:50:21.000Z
from .base import Base class TestAuth(Base): def test_me(self, user_factory): user = user_factory() user.save() response = self.login('auth.login', user, 'Sekrit') assert response.status_code == 200 response = self.get('profile.profile') assert response.status_code == 200 def test_logout(self, user_factory): user = user_factory() user.save() response = self.login('auth.login', user, 'Sekrit') assert response.status_code == 200 response = self.post('auth.logout', {}) assert response.status_code == 200 def test_refresh(self, user_factory): user = user_factory() user.save() response = self.login('auth.login', user, 'Sekrit') assert response.status_code == 200 response = self.post('auth.refresh', {}, 'refresh') assert response.status_code == 200
32.571429
59
0.612939
107
912
5.084112
0.233645
0.121324
0.165441
0.264706
0.827206
0.777574
0.777574
0.652574
0.652574
0.652574
0
0.026706
0.260965
912
27
60
33.777778
0.780415
0
0
0.652174
0
0
0.101974
0
0
0
0
0
0.26087
1
0.130435
false
0
0.043478
0
0.217391
0
0
0
0
null
0
0
1
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
5
f70e7618c19151c831685b139fcbd48dc2ea0b46
5,931
py
Python
tests/graphql/test_graphql.py
mwilliamson/python-graphlayer
d71d99c314aca07816ce6a1a7329d0d7fecdfb2f
[ "BSD-2-Clause" ]
25
2019-03-11T16:48:52.000Z
2021-05-02T03:23:20.000Z
tests/graphql/test_graphql.py
mwilliamson/python-graphlayer
d71d99c314aca07816ce6a1a7329d0d7fecdfb2f
[ "BSD-2-Clause" ]
9
2019-03-24T10:43:44.000Z
2021-11-09T23:02:20.000Z
tests/graphql/test_graphql.py
mwilliamson/python-graphlayer
d71d99c314aca07816ce6a1a7329d0d7fecdfb2f
[ "BSD-2-Clause" ]
7
2018-12-30T17:52:07.000Z
2021-05-02T03:23:35.000Z
from precisely import all_of, assert_that, contains_exactly, equal_to, has_attrs, has_feature, is_instance import graphlayer as g from graphlayer import graphql from graphql import GraphQLError def test_execute(): Root = g.ObjectType("Root", fields=( g.field("value", g.String), )) root_resolver = g.root_object_resolver(Root) @root_resolver.field(Root.fields.value) def root_resolve_value(graph, query, args): return "resolved" graph_definition = g.define_graph(resolvers=(root_resolver, )) graph = graph_definition.create_graph({}) query = """ query { value } """ result = graphql.execute(graph=graph, document_text=query, query_type=Root) assert_that(result, is_success(data=equal_to({"value": "resolved"}))) def test_executor(): Root = g.ObjectType("Root", fields=( g.field("value", g.String), )) root_resolver = g.root_object_resolver(Root) @root_resolver.field(Root.fields.value) def root_resolve_value(graph, query, args): return "resolved" graph_definition = g.define_graph(resolvers=(root_resolver, )) graph = graph_definition.create_graph({}) query = """ query { value } """ execute = graphql.executor(query_type=Root) result = execute(graph=graph, document_text=query) assert_that(result, is_success(data=equal_to({"value": "resolved"}))) def test_can_query_schema(): Root = g.ObjectType("Root", fields=( g.field("value", g.String), )) graph_definition = g.define_graph(resolvers=()) graph = graph_definition.create_graph({}) query = """ query { __schema { queryType { name } } } """ result = graphql.execute(graph=graph, document_text=query, query_type=Root) assert_that(result, is_success(data=equal_to({ "__schema": { "queryType": { "name": "Root", }, }, }))) def test_can_query_schema_with_other_data(): Root = g.ObjectType("Root", fields=( g.field("value", g.String), )) root_resolver = g.root_object_resolver(Root) @root_resolver.field(Root.fields.value) def root_resolve_value(graph, query, args): return "resolved" graph_definition = g.define_graph(resolvers=(root_resolver, )) graph = graph_definition.create_graph({}) query = """ query { value __schema { queryType { name } } } """ result = graphql.execute(graph=graph, document_text=query, query_type=Root) assert_that(result, is_success(data=equal_to({ "value": "resolved", "__schema": { "queryType": { "name": "Root", }, }, }))) def test_variables_can_be_used_in_schema_query(): Root = g.ObjectType("Root", fields=( g.field("value", g.String), )) graph_definition = g.define_graph(resolvers=()) graph = graph_definition.create_graph({}) query = """ query ($f: Boolean!, $t: Boolean!) { included: __schema @include(if: $t) { queryType { name } } excluded: __schema @include(if: $f) { queryType { name } } } """ variables = {"t": True, "f": False} result = graphql.execute(graph=graph, document_text=query, query_type=Root, variables=variables) assert_that(result, is_success(data=equal_to({ "included": { "queryType": { "name": "Root", }, }, }))) def test_typename(): Root = g.ObjectType("Root", fields=( g.field("value", g.String), )) root_resolver = g.root_object_resolver(Root) @root_resolver.field(Root.fields.value) def root_resolve_value(graph, query, args): return "resolved" graph_definition = g.define_graph(resolvers=(root_resolver, )) graph = graph_definition.create_graph({}) query = """ query { __typename value typename: __typename } """ result = graphql.execute(graph=graph, document_text=query, query_type=Root) assert_that(result, is_success(data=equal_to({"__typename": "Root", "value": "resolved", "typename": "Root"}))) def test_when_query_is_invalid_then_result_is_invalid(): Root = g.ObjectType("Root", fields=( g.field("value", g.String), )) graph_definition = g.define_graph(resolvers=()) graph = graph_definition.create_graph({}) query = """ query { bad } """ result = graphql.execute(graph=graph, document_text=query, query_type=Root) assert_that(result, is_invalid(errors=contains_exactly( has_attrs(message="Cannot query field 'bad' on type 'Root'."), ))) def test_when_resolution_raises_graph_error_then_result_is_invalid(): Root = g.ObjectType("Root", fields=( g.field("value", g.String), )) root_resolver = g.root_object_resolver(Root) @root_resolver.field(Root.fields.value) def root_resolve_value(graph, query, args): raise g.GraphError("BAD") graph_definition = g.define_graph(resolvers=(root_resolver, )) graph = graph_definition.create_graph({}) query = """ query { value } """ result = graphql.execute(graph=graph, document_text=query, query_type=Root) assert_that(result, is_invalid(errors=contains_exactly( all_of( is_instance(GraphQLError), has_str("BAD"), ), ))) def is_invalid(*, errors): return has_attrs(errors=errors, data=None) def is_success(*, data): return has_attrs( data=data, errors=None, ) def has_str(matcher): return has_feature("str", str, matcher)
24.407407
115
0.600573
655
5,931
5.166412
0.129771
0.070922
0.035461
0.044917
0.768026
0.75266
0.724882
0.724882
0.714244
0.714244
0
0
0.267577
5,931
242
116
24.508264
0.779006
0
0
0.672316
0
0
0.183612
0
0
0
0
0
0.050847
1
0.090395
false
0
0.022599
0.039548
0.152542
0
0
0
0
null
0
0
0
0
1
1
1
1
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
5
f76d3f48169109e7bc7b0642bb1680c022d6da72
271
py
Python
website/models.py
monuyadav016/GEWA-Wallet
af615f94b90627e96b8d430429ba5f7d67181d1d
[ "MIT" ]
1
2020-05-25T15:02:53.000Z
2020-05-25T15:02:53.000Z
website/models.py
monuyadav016/GEWA-Wallet
af615f94b90627e96b8d430429ba5f7d67181d1d
[ "MIT" ]
6
2021-03-19T00:22:32.000Z
2021-09-22T18:40:08.000Z
website/models.py
monuyadav016/GEWA-Wallet
af615f94b90627e96b8d430429ba5f7d67181d1d
[ "MIT" ]
1
2020-04-27T08:55:44.000Z
2020-04-27T08:55:44.000Z
from django.db import models class ContactPage(models.Model): name = models.CharField(max_length=50, unique=False) email = models.EmailField() message = models.CharField(max_length=500) def __str__(self): return "{0}'s Message".format(self.name)
30.111111
56
0.708487
36
271
5.166667
0.722222
0.16129
0.193548
0.258065
0
0
0
0
0
0
0
0.026667
0.169742
271
9
57
30.111111
0.8
0
0
0
0
0
0.047794
0
0
0
0
0
0
1
0.142857
false
0
0.142857
0.142857
1
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
1
1
0
0
5
f784f7cb6a6888b0828b82e25d93fd16c97ce6c3
3,264
py
Python
unit_tests/test_upgrade.py
wolsen/charm-ceph-mon
1e148346b7acb35d9ef38e495178b855c352a133
[ "ECL-2.0", "Apache-2.0" ]
17
2016-04-17T04:00:38.000Z
2021-01-18T16:09:54.000Z
unit_tests/test_upgrade.py
wolsen/charm-ceph-mon
1e148346b7acb35d9ef38e495178b855c352a133
[ "ECL-2.0", "Apache-2.0" ]
3
2016-07-01T14:08:13.000Z
2021-08-20T06:22:20.000Z
unit_tests/test_upgrade.py
wolsen/charm-ceph-mon
1e148346b7acb35d9ef38e495178b855c352a133
[ "ECL-2.0", "Apache-2.0" ]
19
2016-03-07T09:07:39.000Z
2021-10-29T18:03:24.000Z
from mock import patch from ceph_hooks import check_for_upgrade from test_utils import CharmTestCase __author__ = 'Chris Holcombe <chris.holcombe@canonical.com>' def config_side_effect(*args): if args[0] == 'source': return 'cloud:trusty-kilo' elif args[0] == 'key': return 'key' elif args[0] == 'release-version': return 'cloud:trusty-kilo' class UpgradeRollingTestCase(CharmTestCase): @patch('ceph_hooks.ceph.is_bootstrapped') @patch('ceph_hooks.hookenv') @patch('ceph_hooks.ceph.roll_monitor_cluster') def test_check_for_upgrade(self, roll_monitor_cluster, hookenv, is_bootstrapped): is_bootstrapped.return_value = True self.test_config.set_previous('source', 'cloud:trusty-juno') self.test_config.set('source', 'cloud:trusty-kilo') hookenv.config.side_effect = self.test_config check_for_upgrade() roll_monitor_cluster.assert_called_with( new_version='hammer', upgrade_key='admin') @patch('ceph_hooks.ceph.is_bootstrapped') @patch('ceph_hooks.hookenv') @patch('ceph_hooks.ceph.roll_monitor_cluster') def test_check_for_upgrade_not_bootstrapped(self, roll_monitor_cluster, hookenv, is_bootstrapped): is_bootstrapped.return_value = False self.test_config.set_previous('source', 'cloud:trusty-juno') self.test_config.set('source', 'cloud:trusty-kilo') hookenv.config.side_effect = self.test_config check_for_upgrade() roll_monitor_cluster.assert_not_called() @patch('ceph_hooks.add_source') @patch('ceph_hooks.ceph.is_bootstrapped') @patch('ceph_hooks.hookenv') @patch('ceph_hooks.ceph.roll_monitor_cluster') def test_check_for_upgrade_from_pike_to_queens(self, roll_monitor_cluster, hookenv, is_bootstrapped, add_source): is_bootstrapped.return_value = True hookenv.config.side_effect = self.test_config self.test_config.set('key', 'some-key') self.test_config.set_previous('source', 'cloud:xenial-pike') self.test_config.set('source', 'cloud:xenial-queens') check_for_upgrade() roll_monitor_cluster.assert_not_called() add_source.assert_called_with('cloud:xenial-queens', 'some-key') @patch('ceph_hooks.add_source') @patch('ceph_hooks.ceph.is_bootstrapped') @patch('ceph_hooks.hookenv') @patch('ceph_hooks.ceph.roll_monitor_cluster') def test_check_for_upgrade_from_rocky_to_stein(self, roll_monitor_cluster, hookenv, is_bootstrapped, add_source): is_bootstrapped.return_value = True hookenv.config.side_effect = self.test_config self.test_config.set('key', 'some-key') self.test_config.set_previous('source', 'cloud:bionic-rocky') self.test_config.set('source', 'cloud:bionic-stein') check_for_upgrade() roll_monitor_cluster.assert_not_called() add_source.assert_called_with('cloud:bionic-stein', 'some-key')
41.316456
78
0.653799
386
3,264
5.176166
0.165803
0.067568
0.098098
0.085085
0.771271
0.769269
0.741241
0.741241
0.741241
0.736737
0
0.00121
0.240196
3,264
78
79
41.846154
0.804435
0
0
0.606061
0
0
0.233456
0.104167
0
0
0
0
0.090909
1
0.075758
false
0
0.045455
0
0.181818
0
0
0
0
null
0
0
0
0
1
1
1
1
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
5
e3b852b98d8765ca46d927a22d8547e57cfb308e
54
py
Python
python/taichi/snode/__init__.py
kxxt/taichi
15f39b79c258080f1e34fcbdc29646d9ced0a4fe
[ "MIT" ]
11,699
2020-01-09T03:02:46.000Z
2022-03-31T20:59:08.000Z
python/taichi/snode/__init__.py
kxxt/taichi
15f39b79c258080f1e34fcbdc29646d9ced0a4fe
[ "MIT" ]
3,589
2020-01-09T03:18:25.000Z
2022-03-31T19:06:42.000Z
python/taichi/snode/__init__.py
kxxt/taichi
15f39b79c258080f1e34fcbdc29646d9ced0a4fe
[ "MIT" ]
1,391
2020-01-09T03:02:54.000Z
2022-03-31T08:44:29.000Z
from taichi.snode.fields_builder import FieldsBuilder
27
53
0.888889
7
54
6.714286
1
0
0
0
0
0
0
0
0
0
0
0
0.074074
54
1
54
54
0.94
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
1
0
0
5
e3c4cdb74f3c1ba6bb36787bd011735bf49e1311
77
py
Python
sympkf/model/__init__.py
opannekoucke/sympkf
914dbc8127f16d28b1fe2f5afe2bc0864d53d644
[ "CECILL-B" ]
2
2020-06-15T22:28:26.000Z
2020-10-22T12:43:04.000Z
pdenetgen/model/__init__.py
keshava/pdenetgen
86f53381c8b23206ae2a1fe5843c3bafc5e38a25
[ "CECILL-B" ]
null
null
null
pdenetgen/model/__init__.py
keshava/pdenetgen
86f53381c8b23206ae2a1fe5843c3bafc5e38a25
[ "CECILL-B" ]
1
2020-09-23T21:14:25.000Z
2020-09-23T21:14:25.000Z
# Generic module # import for model from .model import Model, IdentityModel
15.4
39
0.779221
10
77
6
0.7
0
0
0
0
0
0
0
0
0
0
0
0.168831
77
4
40
19.25
0.9375
0.402597
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
1
0
0
5
e3d069792a5427fa3190ffb29f9c7a89b872f414
30
py
Python
Code/trunk/cpp/Markov/__init__.py
jlconlin/PhDThesis
8e704613721a800ce1c59576e94f40fa6f7cd986
[ "MIT" ]
null
null
null
Code/trunk/cpp/Markov/__init__.py
jlconlin/PhDThesis
8e704613721a800ce1c59576e94f40fa6f7cd986
[ "MIT" ]
null
null
null
Code/trunk/cpp/Markov/__init__.py
jlconlin/PhDThesis
8e704613721a800ce1c59576e94f40fa6f7cd986
[ "MIT" ]
null
null
null
# __init__.py file in Markov/
15
29
0.733333
5
30
3.6
1
0
0
0
0
0
0
0
0
0
0
0
0.166667
30
1
30
30
0.72
0.9
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
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
e3db12693e0fd378029127e66b5b00ce59bb5ff3
111
py
Python
searchtools/__init__.py
caltechlibrary/searchtools
6371e8b69994adb9f092f7b637d78fb632093821
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2020-09-23T04:12:30.000Z
2020-09-23T04:12:30.000Z
searchtools/__init__.py
caltechlibrary/searchtools
6371e8b69994adb9f092f7b637d78fb632093821
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
searchtools/__init__.py
caltechlibrary/searchtools
6371e8b69994adb9f092f7b637d78fb632093821
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
from .config import Configuration from .logger import Logger from .query import Query from .ui import SearchUI
22.2
33
0.81982
16
111
5.6875
0.5
0
0
0
0
0
0
0
0
0
0
0
0.144144
111
4
34
27.75
0.957895
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
1
0
0
5
e3db504c4d9c172cb75b0ff2617d8a284ffdebf7
96
py
Python
flask_views/__init__.py
jstacoder/flask-views
8bff71d0a49c70fd0dcad870940dfbcb9c85cd8e
[ "BSD-3-Clause" ]
null
null
null
flask_views/__init__.py
jstacoder/flask-views
8bff71d0a49c70fd0dcad870940dfbcb9c85cd8e
[ "BSD-3-Clause" ]
null
null
null
flask_views/__init__.py
jstacoder/flask-views
8bff71d0a49c70fd0dcad870940dfbcb9c85cd8e
[ "BSD-3-Clause" ]
1
2019-10-18T18:28:46.000Z
2019-10-18T18:28:46.000Z
from flask import Blueprint views = Blueprint('views', __name__, template_folder='templates')
19.2
65
0.78125
11
96
6.363636
0.818182
0.4
0
0
0
0
0
0
0
0
0
0
0.114583
96
4
66
24
0.823529
0
0
0
0
0
0.145833
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
1
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
1
0
5
e3f1dbe87e2cee2ca0a82eed13c6570f8ef5556e
70
py
Python
data/norec/scripts/__init__.py
dinarosv/fasttext-model
2beb10cb91436993810762906700e5c2f987500c
[ "MIT" ]
null
null
null
data/norec/scripts/__init__.py
dinarosv/fasttext-model
2beb10cb91436993810762906700e5c2f987500c
[ "MIT" ]
null
null
null
data/norec/scripts/__init__.py
dinarosv/fasttext-model
2beb10cb91436993810762906700e5c2f987500c
[ "MIT" ]
null
null
null
from .main import load, html_to_text, conllu_to_tokens, load_metadata
35
69
0.842857
12
70
4.5
0.833333
0
0
0
0
0
0
0
0
0
0
0
0.1
70
1
70
70
0.857143
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
1
0
0
5
e3f3db101d7aa34b2c135620594d7284fa438762
28,980
py
Python
tests/test_parse_assay.py
bihealth/altamisa
2b0ade8dd5baf5b705ff9b27a697b40c889a8f2b
[ "MIT" ]
2
2018-04-14T15:04:01.000Z
2020-12-08T15:39:09.000Z
tests/test_parse_assay.py
bihealth/altamisa
2b0ade8dd5baf5b705ff9b27a697b40c889a8f2b
[ "MIT" ]
49
2018-02-22T15:58:37.000Z
2022-03-01T08:50:48.000Z
tests/test_parse_assay.py
bihealth/altamisa
2b0ade8dd5baf5b705ff9b27a697b40c889a8f2b
[ "MIT" ]
3
2019-02-19T21:23:12.000Z
2019-08-20T14:35:07.000Z
# -*- coding: utf-8 -*- """Tests for parsing ISA assay files""" import io import os import pytest from altamisa.constants import table_headers from altamisa.exceptions import IsaWarning from altamisa.isatab import models from altamisa.isatab import ( InvestigationReader, InvestigationValidator, AssayRowReader, AssayReader, AssayValidator, ) def test_assay_row_reader_minimal_assay(minimal_investigation_file, minimal_assay_file): """Use ``AssayRowReader`` to read in minimal assay file.""" # Create new row reader and check read headers row_reader = AssayRowReader.from_stream("S1", "A1", minimal_assay_file) assert 5 == len(row_reader.header) # Read all rows in assay rows = list(row_reader.read()) # Check results assert 1 == len(rows) first_row = rows[0] assert 4 == len(first_row) expected = models.Material( "Sample Name", "S1-sample-0815-N1", "0815-N1", None, (), (), (), None, [table_headers.SAMPLE_NAME], ) assert expected == first_row[0] expected = models.Process( "nucleic acid sequencing", "S1-A1-0815-N1-DNA1-WES1-3", "0815-N1-DNA1-WES1", "Assay Name", None, None, (), (), None, None, None, [table_headers.PROTOCOL_REF, table_headers.ASSAY_NAME], ) assert expected == first_row[1] expected = models.Material( "Raw Data File", "S1-A1-0815-N1-DNA1-WES1_L???_???_R1.fastq.gz-COL4", "0815-N1-DNA1-WES1_L???_???_R1.fastq.gz", None, (), (), (), None, [table_headers.RAW_DATA_FILE], ) assert expected == first_row[2] expected = models.Material( "Raw Data File", "S1-A1-0815-N1-DNA1-WES1_L???_???_R2.fastq.gz-COL5", "0815-N1-DNA1-WES1_L???_???_R2.fastq.gz", None, (), (), (), None, [table_headers.RAW_DATA_FILE], ) assert expected == first_row[3] def test_assay_reader_minimal_assay(minimal_investigation_file, minimal_assay_file): """Use ``AssayReader`` to read in minimal assay file. Using the ``AssayReader`` instead of the ``AssayRowReader`` gives us ``Assay`` objects instead of just the row-wise nodes. """ # Load investigation (tested elsewhere) investigation = InvestigationReader.from_stream(minimal_investigation_file).read() with pytest.warns(IsaWarning) as record: InvestigationValidator(investigation).validate() # Check warnings assert 2 == len(record) # Create new row reader and check read headers reader = AssayReader.from_stream("S1", "A1", minimal_assay_file) assert 5 == len(reader.header) # Read and validate assay assay = reader.read() AssayValidator( investigation, investigation.studies[0], investigation.studies[0].assays[0], assay ).validate() # Check results assert os.path.normpath(str(assay.file)).endswith( os.path.normpath("data/i_minimal/a_minimal.txt") ) assert 5 == len(assay.header) assert 3 == len(assay.materials) assert 1 == len(assay.processes) assert 3 == len(assay.arcs) expected = models.Material( "Sample Name", "S1-sample-0815-N1", "0815-N1", None, (), (), (), None, [table_headers.SAMPLE_NAME], ) assert expected == assay.materials["S1-sample-0815-N1"] expected = models.Material( "Raw Data File", "S1-A1-0815-N1-DNA1-WES1_L???_???_R1.fastq.gz-COL4", "0815-N1-DNA1-WES1_L???_???_R1.fastq.gz", None, (), (), (), None, [table_headers.RAW_DATA_FILE], ) assert expected == assay.materials["S1-A1-0815-N1-DNA1-WES1_L???_???_R1.fastq.gz-COL4"] expected = models.Material( "Raw Data File", "S1-A1-0815-N1-DNA1-WES1_L???_???_R2.fastq.gz-COL5", "0815-N1-DNA1-WES1_L???_???_R2.fastq.gz", None, (), (), (), None, [table_headers.RAW_DATA_FILE], ) assert expected == assay.materials["S1-A1-0815-N1-DNA1-WES1_L???_???_R2.fastq.gz-COL5"] expected = models.Process( "nucleic acid sequencing", "S1-A1-0815-N1-DNA1-WES1-3", "0815-N1-DNA1-WES1", "Assay Name", None, None, (), (), None, None, None, [table_headers.PROTOCOL_REF, table_headers.ASSAY_NAME], ) assert expected == assay.processes["S1-A1-0815-N1-DNA1-WES1-3"] expected = ( models.Arc("S1-sample-0815-N1", "S1-A1-0815-N1-DNA1-WES1-3"), models.Arc( "S1-A1-0815-N1-DNA1-WES1-3", "S1-A1-0815-N1-DNA1-WES1_L???_???_R1.fastq.gz-COL4" ), models.Arc( "S1-A1-0815-N1-DNA1-WES1_L???_???_R1.fastq.gz-COL4", "S1-A1-0815-N1-DNA1-WES1_L???_???_R2.fastq.gz-COL5", ), ) assert expected == assay.arcs def test_assay_row_reader_small_assay(small_investigation_file, small_assay_file): """Use ``AssayRowReader`` to read in small assay file.""" # Create new row reader and check read headers row_reader = AssayRowReader.from_stream("S1", "A1", small_assay_file) assert 9 == len(row_reader.header) # Read all rows in assay rows = list(row_reader.read()) # Check results assert 2 == len(rows) first_row = rows[0] second_row = rows[1] assert 8 == len(first_row) expected = models.Material( "Sample Name", "S1-sample-0815-N1", "0815-N1", None, (), (), (), None, [table_headers.SAMPLE_NAME], ) assert expected == first_row[0] expected = models.Process( "library preparation", "S1-A1-library preparation-2-1", None, None, None, None, (), (), None, None, None, [table_headers.PROTOCOL_REF], ) assert expected == first_row[1] expected = models.Material( "Library Name", "S1-A1-0815-N1-DNA1-COL3", "0815-N1-DNA1", None, (), (), (), None, [table_headers.LIBRARY_NAME], ) assert expected == first_row[2] expected = models.Process( "nucleic acid sequencing", "S1-A1-0815-N1-DNA1-WES1-5", "0815-N1-DNA1-WES1", "Assay Name", None, None, (), (), None, None, None, [table_headers.PROTOCOL_REF, table_headers.ASSAY_NAME], ) assert expected == first_row[3] expected = models.Material( "Raw Data File", "S1-A1-0815-N1-DNA1-WES1_L???_???_R1.fastq.gz-COL6", "0815-N1-DNA1-WES1_L???_???_R1.fastq.gz", None, (), (), (), None, [table_headers.RAW_DATA_FILE], ) assert expected == first_row[4] expected = models.Material( "Raw Data File", "S1-A1-0815-N1-DNA1-WES1_L???_???_R2.fastq.gz-COL7", "0815-N1-DNA1-WES1_L???_???_R2.fastq.gz", None, (), (), (), None, [table_headers.RAW_DATA_FILE], ) assert expected == first_row[5] expected = models.Process( "Unknown", "S1-A1-somatic variant calling-1-8", "somatic variant calling-1", "Data Transformation Name", None, None, (), (), None, None, None, [table_headers.DATA_TRANSFORMATION_NAME], ) assert expected == first_row[6] expected = models.Material( "Derived Data File", "S1-A1-0815-somatic.vcf.gz-COL9", "0815-somatic.vcf.gz", None, (), (), (), None, [table_headers.DERIVED_DATA_FILE], ) assert expected == first_row[7] assert 8 == len(second_row) expected = models.Material( "Sample Name", "S1-sample-0815-T1", "0815-T1", None, (), (), (), None, [table_headers.SAMPLE_NAME], ) assert expected == second_row[0] expected = models.Process( "library preparation", "S1-A1-library preparation-2-2", None, None, None, None, (), (), None, None, None, [table_headers.PROTOCOL_REF], ) assert expected == second_row[1] expected = models.Material( "Library Name", "S1-A1-0815-T1-DNA1-COL3", "0815-T1-DNA1", None, (), (), (), None, [table_headers.LIBRARY_NAME], ) assert expected == second_row[2] expected = models.Process( "nucleic acid sequencing", "S1-A1-0815-T1-DNA1-WES1-5", "0815-T1-DNA1-WES1", "Assay Name", None, None, (), (), None, None, None, [table_headers.PROTOCOL_REF, table_headers.ASSAY_NAME], ) assert expected == second_row[3] expected = models.Material( "Raw Data File", "S1-A1-0815-T1-DNA1-WES1_L???_???_R1.fastq.gz-COL6", "0815-T1-DNA1-WES1_L???_???_R1.fastq.gz", None, (), (), (), None, [table_headers.RAW_DATA_FILE], ) assert expected == second_row[4] expected = models.Material( "Raw Data File", "S1-A1-0815-T1-DNA1-WES1_L???_???_R2.fastq.gz-COL7", "0815-T1-DNA1-WES1_L???_???_R2.fastq.gz", None, (), (), (), None, [table_headers.RAW_DATA_FILE], ) assert expected == second_row[5] expected = models.Process( "Unknown", "S1-A1-somatic variant calling-1-8", "somatic variant calling-1", "Data Transformation Name", None, None, (), (), None, None, None, [table_headers.DATA_TRANSFORMATION_NAME], ) assert expected == second_row[6] expected = models.Material( "Derived Data File", "S1-A1-0815-somatic.vcf.gz-COL9", "0815-somatic.vcf.gz", None, (), (), (), None, [table_headers.DERIVED_DATA_FILE], ) assert expected == second_row[7] def test_assay_reader_small_assay(small_investigation_file, small_assay_file): """Use ``AssayReader`` to read in small assay file.""" # Load investigation (tested elsewhere) investigation = InvestigationReader.from_stream(small_investigation_file).read() with pytest.warns(IsaWarning) as record: InvestigationValidator(investigation).validate() # Check warnings assert 2 == len(record) # Create new row reader and check read headers reader = AssayReader.from_stream("S1", "A1", small_assay_file) assert 9 == len(reader.header) # Read assay with pytest.warns(IsaWarning) as record: assay = reader.read() AssayValidator( investigation, investigation.studies[0], investigation.studies[0].assays[0], assay ).validate() # Check warnings assert 1 == len(record) # Check results assert os.path.normpath(str(assay.file)).endswith(os.path.normpath("data/i_small/a_small.txt")) assert 9 == len(assay.header) assert 9 == len(assay.materials) assert 5 == len(assay.processes) assert 13 == len(assay.arcs) expected = models.Material( "Sample Name", "S1-sample-0815-N1", "0815-N1", None, (), (), (), None, [table_headers.SAMPLE_NAME], ) assert expected == assay.materials["S1-sample-0815-N1"] expected = models.Material( "Sample Name", "S1-sample-0815-T1", "0815-T1", None, (), (), (), None, [table_headers.SAMPLE_NAME], ) assert expected == assay.materials["S1-sample-0815-T1"] expected = models.Material( "Raw Data File", "S1-A1-0815-N1-DNA1-WES1_L???_???_R1.fastq.gz-COL6", "0815-N1-DNA1-WES1_L???_???_R1.fastq.gz", None, (), (), (), None, [table_headers.RAW_DATA_FILE], ) assert expected == assay.materials["S1-A1-0815-N1-DNA1-WES1_L???_???_R1.fastq.gz-COL6"] expected = models.Material( "Raw Data File", "S1-A1-0815-N1-DNA1-WES1_L???_???_R2.fastq.gz-COL7", "0815-N1-DNA1-WES1_L???_???_R2.fastq.gz", None, (), (), (), None, [table_headers.RAW_DATA_FILE], ) assert expected == assay.materials["S1-A1-0815-N1-DNA1-WES1_L???_???_R2.fastq.gz-COL7"] expected = models.Material( "Raw Data File", "S1-A1-0815-T1-DNA1-WES1_L???_???_R1.fastq.gz-COL6", "0815-T1-DNA1-WES1_L???_???_R1.fastq.gz", None, (), (), (), None, [table_headers.RAW_DATA_FILE], ) assert expected == assay.materials["S1-A1-0815-T1-DNA1-WES1_L???_???_R1.fastq.gz-COL6"] expected = models.Material( "Raw Data File", "S1-A1-0815-T1-DNA1-WES1_L???_???_R2.fastq.gz-COL7", "0815-T1-DNA1-WES1_L???_???_R2.fastq.gz", None, (), (), (), None, [table_headers.RAW_DATA_FILE], ) assert expected == assay.materials["S1-A1-0815-T1-DNA1-WES1_L???_???_R2.fastq.gz-COL7"] expected = models.Material( "Derived Data File", "S1-A1-0815-somatic.vcf.gz-COL9", "0815-somatic.vcf.gz", None, (), (), (), None, [table_headers.DERIVED_DATA_FILE], ) assert expected == assay.materials["S1-A1-0815-somatic.vcf.gz-COL9"] expected = models.Process( "library preparation", "S1-A1-library preparation-2-1", None, None, None, None, (), (), None, None, None, [table_headers.PROTOCOL_REF], ) assert expected == assay.processes["S1-A1-library preparation-2-1"] expected = models.Process( "library preparation", "S1-A1-library preparation-2-2", None, None, None, None, (), (), None, None, None, [table_headers.PROTOCOL_REF], ) assert expected == assay.processes["S1-A1-library preparation-2-2"] expected = models.Process( "nucleic acid sequencing", "S1-A1-0815-N1-DNA1-WES1-5", "0815-N1-DNA1-WES1", "Assay Name", None, None, (), (), None, None, None, [table_headers.PROTOCOL_REF, table_headers.ASSAY_NAME], ) assert expected == assay.processes["S1-A1-0815-N1-DNA1-WES1-5"] expected = models.Process( "nucleic acid sequencing", "S1-A1-0815-T1-DNA1-WES1-5", "0815-T1-DNA1-WES1", "Assay Name", None, None, (), (), None, None, None, [table_headers.PROTOCOL_REF, table_headers.ASSAY_NAME], ) assert expected == assay.processes["S1-A1-0815-T1-DNA1-WES1-5"] expected = ( models.Arc("S1-sample-0815-N1", "S1-A1-library preparation-2-1"), models.Arc("S1-A1-library preparation-2-1", "S1-A1-0815-N1-DNA1-COL3"), models.Arc("S1-A1-0815-N1-DNA1-COL3", "S1-A1-0815-N1-DNA1-WES1-5"), models.Arc( "S1-A1-0815-N1-DNA1-WES1-5", "S1-A1-0815-N1-DNA1-WES1_L???_???_R1.fastq.gz-COL6" ), models.Arc( "S1-A1-0815-N1-DNA1-WES1_L???_???_R1.fastq.gz-COL6", "S1-A1-0815-N1-DNA1-WES1_L???_???_R2.fastq.gz-COL7", ), models.Arc( "S1-A1-0815-N1-DNA1-WES1_L???_???_R2.fastq.gz-COL7", "S1-A1-somatic variant calling-1-8" ), models.Arc("S1-A1-somatic variant calling-1-8", "S1-A1-0815-somatic.vcf.gz-COL9"), models.Arc("S1-sample-0815-T1", "S1-A1-library preparation-2-2"), models.Arc("S1-A1-library preparation-2-2", "S1-A1-0815-T1-DNA1-COL3"), models.Arc("S1-A1-0815-T1-DNA1-COL3", "S1-A1-0815-T1-DNA1-WES1-5"), models.Arc( "S1-A1-0815-T1-DNA1-WES1-5", "S1-A1-0815-T1-DNA1-WES1_L???_???_R1.fastq.gz-COL6" ), models.Arc( "S1-A1-0815-T1-DNA1-WES1_L???_???_R1.fastq.gz-COL6", "S1-A1-0815-T1-DNA1-WES1_L???_???_R2.fastq.gz-COL7", ), models.Arc( "S1-A1-0815-T1-DNA1-WES1_L???_???_R2.fastq.gz-COL7", "S1-A1-somatic variant calling-1-8" ), ) assert expected == assay.arcs def test_assay_reader_small2_assay(small2_investigation_file, small2_assay_file): """Use ``AssayReader`` to read in small assay file.""" # Load investigation (tested elsewhere) investigation = InvestigationReader.from_stream(small2_investigation_file).read() with pytest.warns(IsaWarning) as record: InvestigationValidator(investigation).validate() # Check warnings assert 1 == len(record) # Create new row reader and check read headers reader = AssayReader.from_stream("S1", "A1", small2_assay_file) assert 14 == len(reader.header) # Read assay assay = reader.read() AssayValidator( investigation, investigation.studies[0], investigation.studies[0].assays[0], assay ).validate() # Check results assert os.path.normpath(str(assay.file)).endswith( os.path.normpath("data/i_small2/a_small2.txt") ) assert 14 == len(assay.header) assert 25 == len(assay.materials) assert 41 == len(assay.processes) assert 74 == len(assay.arcs) # Comments expected = models.Comment(name="Replicate", value="B") assert assay.materials["S1-A1-0815-T1-Pro1-B-115-COL5"].comments[0] == expected # Expected arcs expected = ( models.Arc("S1-sample-0815-N1", "S1-A1-extraction-2-1"), models.Arc("S1-sample-0815-T1", "S1-A1-extraction-2-2"), models.Arc("S1-A1-extraction-2-1", "S1-A1-0815-N1-Pro1-COL3"), models.Arc("S1-A1-extraction-2-2", "S1-A1-0815-T1-Pro1-COL3"), models.Arc("S1-A1-0815-N1-Pro1-COL3", "S1-A1-labeling-4-1"), models.Arc("S1-A1-0815-T1-Pro1-COL3", "S1-A1-labeling-4-2"), models.Arc("S1-A1-0815-N1-Pro1-COL3", "S1-A1-labeling-4-3"), models.Arc("S1-A1-0815-T1-Pro1-COL3", "S1-A1-labeling-4-4"), models.Arc("S1-A1-0815-N1-Pro1-COL3", "S1-A1-labeling-4-5"), models.Arc("S1-A1-0815-T1-Pro1-COL3", "S1-A1-labeling-4-6"), models.Arc("S1-A1-0815-N1-Pro1-COL3", "S1-A1-labeling-4-7"), models.Arc("S1-A1-0815-T1-Pro1-COL3", "S1-A1-labeling-4-8"), models.Arc("S1-A1-0815-N1-Pro1-COL3", "S1-A1-labeling-4-9"), models.Arc("S1-A1-0815-T1-Pro1-COL3", "S1-A1-labeling-4-10"), models.Arc("S1-A1-0815-N1-Pro1-COL3", "S1-A1-labeling-4-11"), models.Arc("S1-A1-0815-T1-Pro1-COL3", "S1-A1-labeling-4-12"), models.Arc("S1-A1-labeling-4-1", "S1-A1-0815-N1-Pro1-A-114-COL5"), models.Arc("S1-A1-labeling-4-2", "S1-A1-0815-T1-Pro1-A-115-COL5"), models.Arc("S1-A1-labeling-4-3", "S1-A1-0815-N1-Pro1-B-114-COL5"), models.Arc("S1-A1-labeling-4-4", "S1-A1-0815-T1-Pro1-B-115-COL5"), models.Arc("S1-A1-labeling-4-5", "S1-A1-0815-N1-Pro1-C-114-COL5"), models.Arc("S1-A1-labeling-4-6", "S1-A1-0815-T1-Pro1-C-115-COL5"), models.Arc("S1-A1-labeling-4-7", "S1-A1-0815-N1-Pro1-D-114-COL5"), models.Arc("S1-A1-labeling-4-8", "S1-A1-0815-T1-Pro1-D-115-COL5"), models.Arc("S1-A1-labeling-4-9", "S1-A1-0815-N1-Pro1-E-114-COL5"), models.Arc("S1-A1-labeling-4-10", "S1-A1-0815-T1-Pro1-E-115-COL5"), models.Arc("S1-A1-labeling-4-11", "S1-A1-0815-N1-Pro1-F-114-COL5"), models.Arc("S1-A1-labeling-4-12", "S1-A1-0815-T1-Pro1-F-115-COL5"), models.Arc("S1-A1-0815-N1-Pro1-A-114-COL5", "S1-A1-chromatography-8-1"), models.Arc("S1-A1-0815-T1-Pro1-A-115-COL5", "S1-A1-chromatography-8-2"), models.Arc("S1-A1-0815-N1-Pro1-B-114-COL5", "S1-A1-chromatography-8-3"), models.Arc("S1-A1-0815-T1-Pro1-B-115-COL5", "S1-A1-chromatography-8-4"), models.Arc("S1-A1-0815-N1-Pro1-C-114-COL5", "S1-A1-chromatography-8-5"), models.Arc("S1-A1-0815-T1-Pro1-C-115-COL5", "S1-A1-chromatography-8-6"), models.Arc("S1-A1-0815-N1-Pro1-D-114-COL5", "S1-A1-chromatography-8-7"), models.Arc("S1-A1-0815-T1-Pro1-D-115-COL5", "S1-A1-chromatography-8-8"), models.Arc("S1-A1-0815-N1-Pro1-E-114-COL5", "S1-A1-chromatography-8-9"), models.Arc("S1-A1-0815-T1-Pro1-E-115-COL5", "S1-A1-chromatography-8-10"), models.Arc("S1-A1-0815-N1-Pro1-F-114-COL5", "S1-A1-chromatography-8-11"), models.Arc("S1-A1-0815-T1-Pro1-F-115-COL5", "S1-A1-chromatography-8-12"), models.Arc("S1-A1-chromatography-8-1", "S1-A1-poolA-10"), models.Arc("S1-A1-chromatography-8-2", "S1-A1-poolA-10"), models.Arc("S1-A1-chromatography-8-3", "S1-A1-mass spectrometry-9-3"), models.Arc("S1-A1-chromatography-8-4", "S1-A1-mass spectrometry-9-4"), models.Arc("S1-A1-chromatography-8-5", "S1-A1-poolC-10"), models.Arc("S1-A1-chromatography-8-6", "S1-A1-poolC-10"), models.Arc("S1-A1-chromatography-8-7", "S1-A1-mass spectrometry-9-7"), models.Arc("S1-A1-chromatography-8-8", "S1-A1-mass spectrometry-9-8"), models.Arc("S1-A1-chromatography-8-9", "S1-A1-poolE-10"), models.Arc("S1-A1-chromatography-8-10", "S1-A1-poolE-10"), models.Arc("S1-A1-chromatography-8-11", "S1-A1-poolF-10"), models.Arc("S1-A1-chromatography-8-12", "S1-A1-poolF-10"), models.Arc("S1-A1-poolA-10", "S1-A1-poolA.raw-COL11"), models.Arc("S1-A1-mass spectrometry-9-3", "S1-A1-poolB.raw-COL11"), models.Arc("S1-A1-mass spectrometry-9-4", "S1-A1-poolB.raw-COL11"), models.Arc("S1-A1-poolC-10", "S1-A1-Empty Raw Spectral Data File-11-5"), models.Arc("S1-A1-mass spectrometry-9-7", "S1-A1-Empty Raw Spectral Data File-11-7"), models.Arc("S1-A1-mass spectrometry-9-8", "S1-A1-Empty Raw Spectral Data File-11-8"), models.Arc("S1-A1-poolE-10", "S1-A1-poolE.raw-COL11"), models.Arc("S1-A1-poolF-10", "S1-A1-Empty Raw Spectral Data File-11-11"), models.Arc("S1-A1-poolA.raw-COL11", "S1-A1-data transformation-12-1"), models.Arc("S1-A1-poolB.raw-COL11", "S1-A1-data transformation-12-3"), models.Arc("S1-A1-Empty Raw Spectral Data File-11-5", "S1-A1-data transformation-12-5"), models.Arc("S1-A1-Empty Raw Spectral Data File-11-7", "S1-A1-data transformation-12-7"), models.Arc("S1-A1-Empty Raw Spectral Data File-11-8", "S1-A1-data transformation-12-8"), models.Arc("S1-A1-poolE.raw-COL11", "S1-A1-data transformation-12-9"), models.Arc("S1-A1-Empty Raw Spectral Data File-11-11", "S1-A1-data analysis-13"), models.Arc("S1-A1-data transformation-12-1", "S1-A1-results.csv-COL14"), models.Arc("S1-A1-data transformation-12-3", "S1-A1-results.csv-COL14"), models.Arc("S1-A1-data transformation-12-5", "S1-A1-results.csv-COL14"), models.Arc("S1-A1-data transformation-12-7", "S1-A1-results.csv-COL14"), models.Arc("S1-A1-data transformation-12-8", "S1-A1-results.csv-COL14"), models.Arc("S1-A1-data transformation-12-9", "S1-A1-Empty Derived Data File-14-9"), models.Arc("S1-A1-data analysis-13", "S1-A1-results.csv-COL14"), ) assert sorted(expected) == sorted(assay.arcs) def test_assay_reader_gelelect(gelelect_investigation_file, gelelect_assay_file): """Use ``AssayReader`` to read in small assay file.""" with pytest.warns(IsaWarning) as record: # Load investigation investigation = InvestigationReader.from_stream(gelelect_investigation_file).read() InvestigationValidator(investigation).validate() # Create new row reader and check read headers reader = AssayReader.from_stream("S1", "A1", gelelect_assay_file) assert 22 == len(reader.header) # Read assay assay = reader.read() AssayValidator( investigation, investigation.studies[0], investigation.studies[0].assays[0], assay ).validate() # Check warnings assert 5 == len(record) # Check results assert os.path.normpath(str(assay.file)).endswith( os.path.normpath( "data/test_gelelect/a_study01_protein_expression_profiling_gel_electrophoresis.txt" ) ) assert 22 == len(assay.header) assert 10 == len(assay.materials) assert 11 == len(assay.processes) assert 20 == len(assay.arcs) expected = models.Material( "Image File", "S1-A1-Image01.jpeg-COL19", "Image01.jpeg", None, (), (), (), None, [table_headers.IMAGE_FILE], ) assert expected == assay.materials["S1-A1-Image01.jpeg-COL19"] expected = models.Process( "data collection", "S1-A1-Scan02-18", "Scan02", "Scan Name", None, None, (), (), None, None, None, [table_headers.PROTOCOL_REF, table_headers.SCAN_NAME], ) assert expected == assay.processes["S1-A1-Scan02-18"] header_electrophoresis = [ table_headers.PROTOCOL_REF, table_headers.GEL_ELECTROPHORESIS_ASSAY_NAME, table_headers.FIRST_DIMENSION, table_headers.TERM_SOURCE_REF, table_headers.TERM_ACCESSION_NUMBER, table_headers.SECOND_DIMENSION, table_headers.TERM_SOURCE_REF, table_headers.TERM_ACCESSION_NUMBER, ] expected = models.Process( "electrophoresis", "S1-A1-Assay01-10", "Assay01", "Gel Electrophoresis Assay Name", None, None, (), (), None, models.OntologyTermRef("", "", ""), models.OntologyTermRef("", "", ""), header_electrophoresis, ) assert expected == assay.processes["S1-A1-Assay01-10"] expected = models.Process( "electrophoresis", "S1-A1-electrophoresis-9-2", "", "Gel Electrophoresis Assay Name", None, None, (), (), None, models.OntologyTermRef("AssayX", None, None), models.OntologyTermRef("AssayY", None, None), header_electrophoresis, ) assert expected == assay.processes["S1-A1-electrophoresis-9-2"] def test_assay_reader_minimal_assay_iostring(minimal_investigation_file, minimal_assay_file): # Load investigation (tested elsewhere) stringio = io.StringIO(minimal_investigation_file.read()) investigation = InvestigationReader.from_stream(stringio).read() with pytest.warns(IsaWarning) as record: InvestigationValidator(investigation).validate() # Check warnings assert 2 == len(record) stringio = io.StringIO(minimal_assay_file.read()) # Create new assay reader and read from StringIO with original filename indicated reader = AssayReader.from_stream("S1", "A1", stringio, filename="data/i_minimal/a_minimal.txt") assert 5 == len(reader.header) # Read and validate assay assay = reader.read() AssayValidator( investigation, investigation.studies[0], investigation.studies[0].assays[0], assay ).validate() # Check results assert os.path.normpath(str(assay.file)).endswith( os.path.normpath("data/i_minimal/a_minimal.txt") ) assert 5 == len(assay.header) assert 3 == len(assay.materials) assert 1 == len(assay.processes) assert 3 == len(assay.arcs) def test_assay_reader_minimal_assay_iostring2(minimal_investigation_file, minimal_assay_file): # Load investigation (tested elsewhere) stringio = io.StringIO(minimal_investigation_file.read()) investigation = InvestigationReader.from_stream(stringio).read() with pytest.warns(IsaWarning) as record: InvestigationValidator(investigation).validate() # Check warnings assert 2 == len(record) # Create new assay reader and read from StringIO with no filename indicated stringio = io.StringIO(minimal_assay_file.read()) reader = AssayReader.from_stream("S1", "A1", stringio) assert 5 == len(reader.header) # Read and validate assay assay = reader.read() AssayValidator( investigation, investigation.studies[0], investigation.studies[0].assays[0], assay ).validate() # Check results assert str(assay.file) == os.path.normpath("<no file>") assert 5 == len(assay.header) assert 3 == len(assay.materials) assert 1 == len(assay.processes) assert 3 == len(assay.arcs)
31.5
100
0.584852
3,708
28,980
4.459817
0.055286
0.056358
0.045474
0.06682
0.90228
0.882566
0.808853
0.758783
0.67993
0.637782
0
0.09093
0.255072
28,980
919
101
31.534276
0.675097
0.052036
0
0.677296
0
0.03699
0.302951
0.17408
0
0
0
0
0.118622
1
0.010204
false
0
0.008929
0
0.019133
0
0
0
0
null
0
0
0
1
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
5
541d415a73714c5370f0b60de2354f3cd37dbfb5
220
py
Python
tests/test_bake.py
d1618033/flake8-plugin-cookiecutter
5fbfe871d8185643a505a8c6b044b7dfba4cf57f
[ "MIT" ]
null
null
null
tests/test_bake.py
d1618033/flake8-plugin-cookiecutter
5fbfe871d8185643a505a8c6b044b7dfba4cf57f
[ "MIT" ]
null
null
null
tests/test_bake.py
d1618033/flake8-plugin-cookiecutter
5fbfe871d8185643a505a8c6b044b7dfba4cf57f
[ "MIT" ]
null
null
null
def test_defaults(cookies): result = cookies.bake() assert result.exit_code == 0 assert result.exception is None assert result.project.basename == "flake8-if-statements" assert result.project.isdir()
31.428571
60
0.718182
28
220
5.571429
0.678571
0.307692
0.24359
0
0
0
0
0
0
0
0
0.01105
0.177273
220
6
61
36.666667
0.850829
0
0
0
0
0
0.090909
0
0
0
0
0
0.666667
1
0.166667
false
0
0
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
1
0
0
0
0
0
0
0
0
0
5
54218432cf02662f079e5b294422b7bd36082927
106
py
Python
demo.py
baoqing-qiao/practice
8a96e81d42dd9557cb68c099a0517f56f971957c
[ "MIT" ]
null
null
null
demo.py
baoqing-qiao/practice
8a96e81d42dd9557cb68c099a0517f56f971957c
[ "MIT" ]
null
null
null
demo.py
baoqing-qiao/practice
8a96e81d42dd9557cb68c099a0517f56f971957c
[ "MIT" ]
null
null
null
<<<<<<< HEAD num1 = 10 num2 = 20 num3 = 20 print('haha') >>>>>>> 55a7b59ddf52b9e5b82bec24f197293c4746f755
15.142857
48
0.669811
10
106
7.1
0.9
0
0
0
0
0
0
0
0
0
0
0.380435
0.132075
106
6
49
17.666667
0.391304
0
0
0
0
0
0.037736
0
0
0
0
0
0
0
null
null
0
0
null
null
0.166667
1
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
5
583ecbc41f8a34838780ebf1026537c7d0464bcd
47
py
Python
src/motor/3rdparty/system/cocoa/mak/configure.py
motor-dev/Motor
98cb099fe1c2d31e455ed868cc2a25eae51e79f0
[ "BSD-3-Clause" ]
4
2015-05-13T16:28:36.000Z
2017-05-24T15:34:14.000Z
src/motor/3rdparty/system/cocoa/mak/configure.py
motor-dev/Motor
98cb099fe1c2d31e455ed868cc2a25eae51e79f0
[ "BSD-3-Clause" ]
null
null
null
src/motor/3rdparty/system/cocoa/mak/configure.py
motor-dev/Motor
98cb099fe1c2d31e455ed868cc2a25eae51e79f0
[ "BSD-3-Clause" ]
1
2017-03-21T08:28:07.000Z
2017-03-21T08:28:07.000Z
def configure(configuration_context): pass
23.5
38
0.787234
5
47
7.2
1
0
0
0
0
0
0
0
0
0
0
0
0.148936
47
2
39
23.5
0.9
0
0
0
0
0
0
0
0
0
0
0
0
1
0.5
false
0.5
0
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
1
0
1
0
0
0
0
0
5
54504e954d13163d29738625575bc678e8acbc39
89
py
Python
config.py
ffafara-tw/wtf-bot
23b9bd07458c0919a374a3c2e5bca4a374810368
[ "CC0-1.0" ]
null
null
null
config.py
ffafara-tw/wtf-bot
23b9bd07458c0919a374a3c2e5bca4a374810368
[ "CC0-1.0" ]
null
null
null
config.py
ffafara-tw/wtf-bot
23b9bd07458c0919a374a3c2e5bca4a374810368
[ "CC0-1.0" ]
null
null
null
from os import getenv SLACK_TOKEN = getenv('SLACK_TOKEN') DATA_URL = getenv('DATA_URL')
17.8
35
0.764045
14
89
4.571429
0.571429
0.34375
0.5
0
0
0
0
0
0
0
0
0
0.123596
89
4
36
22.25
0.820513
0
0
0
0
0
0.213483
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
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
1
0
0
0
0
5
54a2b8f238c27b09a3b840f06ae68cf61a713bab
81
py
Python
ncc/tasks/type_prediction/__init__.py
CGCL-codes/naturalcc
7bab9a97331fafac1235fb32de829ff8d572320f
[ "MIT" ]
71
2020-12-04T02:18:13.000Z
2022-03-30T15:19:50.000Z
ncc/tasks/type_prediction/__init__.py
CGCL-codes/naturalcc
7bab9a97331fafac1235fb32de829ff8d572320f
[ "MIT" ]
4
2021-03-10T17:48:50.000Z
2022-03-13T10:42:22.000Z
ncc/tasks/type_prediction/__init__.py
CGCL-codes/naturalcc
7bab9a97331fafac1235fb32de829ff8d572320f
[ "MIT" ]
11
2020-12-09T12:17:44.000Z
2022-03-30T09:02:13.000Z
from .type_prediction import TypePredictionTask from .typilus import TypilusTask
27
47
0.876543
9
81
7.777778
0.777778
0
0
0
0
0
0
0
0
0
0
0
0.098765
81
2
48
40.5
0.958904
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
1
0
0
5
54af0dd31b7856597b48e5224dd522bba7be8032
68
py
Python
siamese_sts/trainer/__init__.py
shahrukhx01/siamese-nn-semantic-text-similarity
df15c4f1473f8ab3ff1dbfb1c4a888817c684ecd
[ "Apache-2.0" ]
18
2021-12-31T02:26:43.000Z
2022-03-16T14:04:07.000Z
siamese_sts/trainer/__init__.py
shahrukhx01/siamese-nn-semantic-text-similarity
df15c4f1473f8ab3ff1dbfb1c4a888817c684ecd
[ "Apache-2.0" ]
null
null
null
siamese_sts/trainer/__init__.py
shahrukhx01/siamese-nn-semantic-text-similarity
df15c4f1473f8ab3ff1dbfb1c4a888817c684ecd
[ "Apache-2.0" ]
3
2021-12-31T09:50:03.000Z
2022-01-01T23:05:35.000Z
from siamese_sts.trainer.train import train_model, evaluate_dev_set
34
67
0.882353
11
68
5.090909
0.909091
0
0
0
0
0
0
0
0
0
0
0
0.073529
68
1
68
68
0.888889
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
1
0
0
5
49e081e2ad4388d8f038857580617594e1a16458
125
py
Python
Demos/NWS_Demo.py
thingslu/MicroPython-IoT-Bootcamp
0fb0ef9426402ceaa0022b50db6d65d7cd4391fe
[ "MIT" ]
4
2018-04-28T13:43:20.000Z
2021-03-11T16:10:35.000Z
Demos/Demo-y Misc/NWS_Demo.py
Josverl/MicroPython-Bootcamp
29f5ccc9768fbea621029dcf6eea9c91ff84c1d5
[ "MIT" ]
null
null
null
Demos/Demo-y Misc/NWS_Demo.py
Josverl/MicroPython-Bootcamp
29f5ccc9768fbea621029dcf6eea9c91ff84c1d5
[ "MIT" ]
null
null
null
# #information stored in NVS #Time Zone machine.nvs_getstr('MpyTimeZone') #Time Zone machine.nvs_getstr('MPY_StackSize')
13.888889
35
0.768
17
125
5.470588
0.647059
0.172043
0.322581
0.387097
0.516129
0
0
0
0
0
0
0
0.12
125
8
36
15.625
0.845455
0.352
0
0
0
0
0.315789
0
0
0
0
0
0
1
0
true
0
0
0
0
0
1
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
49e84f5dd976d80dd088b765f6ef41e4842844d8
616
py
Python
fooof/core/errors.py
varman-m/eeg_notebooks_doc
12230719637c8087b020e8d5feeb20520a4da74d
[ "Apache-2.0" ]
154
2018-11-05T16:50:21.000Z
2022-03-31T12:02:33.000Z
fooof/core/errors.py
Xawwell/fooof
7a520c4f8ac3a44f4f18dc025b5e5d40049c9f2b
[ "Apache-2.0" ]
128
2018-11-03T16:07:05.000Z
2022-03-30T22:09:48.000Z
fooof/core/errors.py
Xawwell/fooof
7a520c4f8ac3a44f4f18dc025b5e5d40049c9f2b
[ "Apache-2.0" ]
42
2019-01-31T17:24:58.000Z
2022-02-19T00:00:58.000Z
"""Custom error definitions for FOOOF.""" class FOOOFError(Exception): """Base class for errors in the FOOOF module.""" class FitError(FOOOFError): """Error for a failure to fit.""" class NoDataError(FOOOFError): """Error for if data is missing.""" class DataError(FOOOFError): """Error for if there is a problem with the data.""" class InconsistentDataError(FOOOFError): """Error for if the data is inconsistent.""" class IncompatibleSettingsError(FOOOFError): """Error for if settings are incompatible.""" class NoModelError(FOOOFError): """Error for if the model is not fit."""
26.782609
56
0.704545
77
616
5.636364
0.467532
0.207373
0.248848
0.230415
0.105991
0
0
0
0
0
0
0
0.170455
616
22
57
28
0.849315
0.482143
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0
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
1
0
0
0
1
0
0
5
49eab4aa654bd61e6ad964ff779c433abbdd69be
222
py
Python
QRSMS/student_portal/admin.py
Srishti-Ahuja/QRSMS-V1
1f2fa82e8ddaeb62e633fcd6a136696355317bba
[ "Apache-2.0" ]
4
2020-06-16T09:42:20.000Z
2021-11-24T08:18:16.000Z
QRSMS/student_portal/admin.py
Srishti-Ahuja/QRSMS-V1
1f2fa82e8ddaeb62e633fcd6a136696355317bba
[ "Apache-2.0" ]
7
2021-04-08T21:57:34.000Z
2022-02-27T06:41:15.000Z
QRSMS/student_portal/admin.py
Srishti-Ahuja/QRSMS-V1
1f2fa82e8ddaeb62e633fcd6a136696355317bba
[ "Apache-2.0" ]
7
2020-11-29T09:45:44.000Z
2022-03-30T15:27:33.000Z
from django.contrib import admin from .models import Student,FeeChallan from django_restful_admin import site # Register your models here. admin.site.register(Student) admin.site.register(FeeChallan) site.register(Student)
31.714286
38
0.842342
31
222
5.967742
0.419355
0.259459
0.183784
0
0
0
0
0
0
0
0
0
0.085586
222
7
39
31.714286
0.91133
0.117117
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
0
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
1
0
1
0
0
0
0
5
49ef84bd2fe3838f296f0ee07ca1c1a0b4b614c4
42
py
Python
tests/components/worldclock/__init__.py
domwillcode/home-assistant
f170c80bea70c939c098b5c88320a1c789858958
[ "Apache-2.0" ]
30,023
2016-04-13T10:17:53.000Z
2020-03-02T12:56:31.000Z
tests/components/worldclock/__init__.py
jagadeeshvenkatesh/core
1bd982668449815fee2105478569f8e4b5670add
[ "Apache-2.0" ]
31,101
2020-03-02T13:00:16.000Z
2022-03-31T23:57:36.000Z
tests/components/worldclock/__init__.py
jagadeeshvenkatesh/core
1bd982668449815fee2105478569f8e4b5670add
[ "Apache-2.0" ]
11,956
2016-04-13T18:42:31.000Z
2020-03-02T09:32:12.000Z
"""Tests for the worldclock component."""
21
41
0.714286
5
42
6
1
0
0
0
0
0
0
0
0
0
0
0
0.119048
42
1
42
42
0.810811
0.833333
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
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
3f8a62fa73612dc6c13cf7498c7aba03b81d9c15
168
py
Python
UE4Parse/Assets/Exports/Textures/__init__.py
zbx911/pyUE4Parse
eb30d27a4341ad68a7104458a0fdfae6a360d153
[ "MIT" ]
13
2021-06-09T09:21:00.000Z
2022-03-30T22:13:24.000Z
UE4Parse/Assets/Exports/Textures/__init__.py
zbx911/pyUE4Parse
eb30d27a4341ad68a7104458a0fdfae6a360d153
[ "MIT" ]
3
2021-09-04T22:23:02.000Z
2022-03-04T09:45:45.000Z
UE4Parse/Assets/Exports/Textures/__init__.py
zbx911/pyUE4Parse
eb30d27a4341ad68a7104458a0fdfae6a360d153
[ "MIT" ]
6
2021-09-02T10:28:21.000Z
2022-03-30T22:13:37.000Z
from .UTexture2D import UTexture2D from .ULightMapTexture2D import ULightMapTexture2D from .UTextureCube import UTextureCube from .UVolumeTexture import UVolumeTexture
33.6
50
0.880952
16
168
9.25
0.375
0
0
0
0
0
0
0
0
0
0
0.026316
0.095238
168
4
51
42
0.947368
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
1
0
0
5
3f9b5cd7491cc3513088a41a75a96000e661fbdd
62
py
Python
tests/bitmovin/services/encodings/__init__.py
camberbridge/bitmovin-python
3af4c6e79b0291fda05fd1ceeb5bed1bba9f3c95
[ "Unlicense" ]
44
2016-12-12T17:37:23.000Z
2021-03-03T09:48:48.000Z
tests/bitmovin/services/encodings/__init__.py
camberbridge/bitmovin-python
3af4c6e79b0291fda05fd1ceeb5bed1bba9f3c95
[ "Unlicense" ]
38
2017-01-09T14:45:45.000Z
2022-02-27T18:04:33.000Z
tests/bitmovin/services/encodings/__init__.py
camberbridge/bitmovin-python
3af4c6e79b0291fda05fd1ceeb5bed1bba9f3c95
[ "Unlicense" ]
27
2017-02-02T22:49:31.000Z
2019-11-21T07:04:57.000Z
from .broadcast_ts_muxing_tests import BroadcastTsMuxingTests
31
61
0.919355
7
62
7.714286
1
0
0
0
0
0
0
0
0
0
0
0
0.064516
62
1
62
62
0.931034
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
1
0
0
5
3fa40788cc63bac2b900b4fcffa1822b9c5a3c80
35
py
Python
__init__.py
caspater/malawi-music-api
7de7c480913589c4d895cf822a5c27b2dae6b62f
[ "MIT" ]
1
2018-10-04T06:18:10.000Z
2018-10-04T06:18:10.000Z
__init__.py
caspater/malawi-music-api
7de7c480913589c4d895cf822a5c27b2dae6b62f
[ "MIT" ]
null
null
null
__init__.py
caspater/malawi-music-api
7de7c480913589c4d895cf822a5c27b2dae6b62f
[ "MIT" ]
1
2018-09-28T06:29:34.000Z
2018-09-28T06:29:34.000Z
import .api.server import .collect
11.666667
18
0.8
5
35
5.6
0.8
0
0
0
0
0
0
0
0
0
0
0
0.114286
35
2
19
17.5
0.903226
0
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
1
null
null
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
5
3fb43b51d39e7dc6c78a7c425ca11731166d78c8
169
py
Python
md2Notion/secret-example.py
Inkering/Md2Notion
1a240ab7bff5290806838ec7c248296ab147fc4a
[ "MIT" ]
2
2020-08-19T01:29:42.000Z
2021-08-12T17:32:46.000Z
md2Notion/secret-example.py
Inkering/Md2Notion
1a240ab7bff5290806838ec7c248296ab147fc4a
[ "MIT" ]
null
null
null
md2Notion/secret-example.py
Inkering/Md2Notion
1a240ab7bff5290806838ec7c248296ab147fc4a
[ "MIT" ]
null
null
null
# Notion.so client secret store # Author: Dieter Brehm # store and return my client secret for notion.so def get_secret(): return "" def get_url(): return ""
15.363636
49
0.686391
25
169
4.56
0.6
0.140351
0
0
0
0
0
0
0
0
0
0
0.218935
169
10
50
16.9
0.863636
0.579882
0
0.5
0
0
0
0
0
0
0
0
0
1
0.5
true
0
0
0.5
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
1
0
0
1
1
0
0
5
3fb84e10b50bb41e9906d0c51817c49ad636db55
184
py
Python
src/tsr/job_runner_listener.py
mballance/tsr
938c638ff738e3f60dbb3dc67425ce27c362f496
[ "Apache-2.0" ]
1
2021-03-06T00:25:13.000Z
2021-03-06T00:25:13.000Z
src/tsr/job_runner_listener.py
mballance/tsr
938c638ff738e3f60dbb3dc67425ce27c362f496
[ "Apache-2.0" ]
null
null
null
src/tsr/job_runner_listener.py
mballance/tsr
938c638ff738e3f60dbb3dc67425ce27c362f496
[ "Apache-2.0" ]
1
2021-08-15T09:28:28.000Z
2021-08-15T09:28:28.000Z
''' Created on Mar 7, 2020 @author: ballance ''' class JobRunnerListener(object): def job_started(self, job): pass def job_finished(self, job): pass
14.153846
32
0.597826
22
184
4.909091
0.727273
0.111111
0.203704
0
0
0
0
0
0
0
0
0.038462
0.293478
184
13
33
14.153846
0.792308
0.222826
0
0.4
0
0
0
0
0
0
0
0
0
1
0.4
false
0.4
0
0
0.6
0
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
1
0
0
5
3fe3047ffa8fc7919a4a89b9ff68efd76fb4c499
6,972
py
Python
src/backend/tasks_io/handlers/tests/frc_api_teams_test.py
bovlb/the-blue-alliance
29389649d96fe060688f218d463e642dcebfd6cc
[ "MIT" ]
null
null
null
src/backend/tasks_io/handlers/tests/frc_api_teams_test.py
bovlb/the-blue-alliance
29389649d96fe060688f218d463e642dcebfd6cc
[ "MIT" ]
null
null
null
src/backend/tasks_io/handlers/tests/frc_api_teams_test.py
bovlb/the-blue-alliance
29389649d96fe060688f218d463e642dcebfd6cc
[ "MIT" ]
null
null
null
from datetime import datetime, timedelta from unittest import mock from freezegun import freeze_time from google.appengine.ext import ndb, testbed from werkzeug.test import Client from backend.common.consts.media_type import MediaType from backend.common.models.district_team import DistrictTeam from backend.common.models.media import Media from backend.common.models.robot import Robot from backend.common.models.team import Team from backend.tasks_io.datafeeds.datafeed_fms_api import DatafeedFMSAPI def test_enqueue_rolling( tasks_client: Client, taskqueue_stub: testbed.taskqueue_stub.TaskQueueServiceStub ) -> None: # Create 10 teams [ Team( id=f"frc{t}", team_number=t, ).put() for t in range(1, 11) ] with freeze_time(datetime.now()) as frozen_time: # Over a 14 day period, we should enqueue them each for _ in range(15): frozen_time.tick(delta=timedelta(days=1)) resp = tasks_client.get("/tasks/enqueue/fmsapi_team_details_rolling") assert resp.status_code == 200 assert len(resp.data) > 0 tasks = taskqueue_stub.get_filtered_tasks(queue_names="datafeed") # Each team we created should have at least one task enqueued_team_numbers = set([int(t.url[35:]) for t in tasks]) assert set(range(1, 11)) == enqueued_team_numbers for task in tasks: task_resp = tasks_client.get(task.url) assert task_resp.status_code == 200 @freeze_time("2020-4-10") def test_enqueue_rolling_no_output_in_taskqueue( tasks_client: Client, taskqueue_stub: testbed.taskqueue_stub.TaskQueueServiceStub ) -> None: [ Team( id=f"frc{t}", team_number=t, ).put() for t in range(1, 15) ] resp = tasks_client.get( "/tasks/enqueue/fmsapi_team_details_rolling", headers={"X-Appengine-Taskname": "test"}, ) assert resp.status_code == 200 assert len(resp.data) == 0 tasks = taskqueue_stub.get_filtered_tasks(queue_names="datafeed") assert len(tasks) > 0 def test_fetch_team_details_bad_key(tasks_client: Client) -> None: resp = tasks_client.get("/backend-tasks/get/team_details/asdf") assert resp.status_code == 400 @mock.patch.object(DatafeedFMSAPI, "get_team_details") def test_fetch_team_details(api_mock, tasks_client: Client) -> None: api_mock.return_value = ( Team(id="frc254", team_number=254), DistrictTeam(id="2019fim_frc254", team=ndb.Key(Team, "frc254"), year=2019), Robot(id="frc254_2019", team=ndb.Key(Team, "frc254"), year=2019), ) resp = tasks_client.get("/backend-tasks/get/team_details/frc254") assert resp.status_code == 200 assert len(resp.data) > 0 # Make sure we write models assert Team.get_by_id("frc254") is not None assert DistrictTeam.get_by_id("2019fim_frc254") is not None assert Robot.get_by_id("frc254_2019") is not None @mock.patch.object(DatafeedFMSAPI, "get_team_details") def test_fetch_team_details_no_output_in_taskqueue( api_mock, tasks_client: Client ) -> None: api_mock.return_value = ( Team(id="frc254", team_number=254), DistrictTeam(id="2019fim_frc254", team=ndb.Key(Team, "frc254"), year=2019), Robot(id="frc254_2019", team=ndb.Key(Team, "frc254"), year=2019), ) resp = tasks_client.get( "/backend-tasks/get/team_details/frc254", headers={"X-Appengine-Taskname": "test"}, ) assert resp.status_code == 200 assert len(resp.data) == 0 # Make sure we write models assert Team.get_by_id("frc254") is not None assert DistrictTeam.get_by_id("2019fim_frc254") is not None assert Robot.get_by_id("frc254_2019") is not None @mock.patch.object(DatafeedFMSAPI, "get_team_details") def test_fetch_team_details_empty(api_mock, tasks_client: Client) -> None: api_mock.return_value = ( None, None, None, ) resp = tasks_client.get("/backend-tasks/get/team_details/frc254") assert resp.status_code == 200 assert len(resp.data) > 0 # Make sure we wrote no models assert Team.get_by_id("frc254") is None assert DistrictTeam.query().fetch() == [] assert Robot.query().fetch() == [] @freeze_time("2019-04-01") @mock.patch.object(DatafeedFMSAPI, "get_team_details") def test_fetch_team_clears_districtteams(api_mock, tasks_client: Client) -> None: DistrictTeam(id="2019ne_frc254", team=ndb.Key(Team, "frc254"), year=2019).put() api_mock.return_value = ( Team(id="frc254", team_number=254), None, None, ) resp = tasks_client.get("/backend-tasks/get/team_details/frc254") assert resp.status_code == 200 assert len(resp.data) > 0 # Make sure we wrote no models assert Team.get_by_id("frc254") is not None assert DistrictTeam.get_by_id("2019ne_frc254") is None @freeze_time("2019-04-01") @mock.patch.object(DatafeedFMSAPI, "get_team_details") def test_fetch_team_fixes_districtteams(api_mock, tasks_client: Client) -> None: DistrictTeam(id="2019ne_frc254", team=ndb.Key(Team, "frc254"), year=2019).put() api_mock.return_value = ( Team(id="frc254", team_number=254), DistrictTeam(id="2019fim_frc254", team=ndb.Key(Team, "frc254"), year=2019), None, ) resp = tasks_client.get("/backend-tasks/get/team_details/frc254") assert resp.status_code == 200 assert len(resp.data) > 0 # Make sure we wrote no models assert Team.get_by_id("frc254") is not None assert DistrictTeam.get_by_id("2019fim_frc254") is not None assert DistrictTeam.get_by_id("2019ne_frc254") is None assert Robot.query().fetch() == [] def test_fetch_team_avatar_bad_key(tasks_client: Client) -> None: resp = tasks_client.get("/backend-tasks/get/team_avatar/asdf") assert resp.status_code == 400 @mock.patch.object(DatafeedFMSAPI, "get_team_avatar") def test_fetch_team_avatar(api_mock, tasks_client: Client) -> None: api_mock.return_value = ( [Media(id="avatar_media", foreign_key="", media_type_enum=MediaType.AVATAR)], [], ) resp = tasks_client.get("/backend-tasks/get/team_avatar/frc254") assert resp.status_code == 200 assert len(resp.data) > 0 # Make sure we write models assert Media.get_by_id("avatar_media") is not None @mock.patch.object(DatafeedFMSAPI, "get_team_avatar") def test_fetch_team_avatar_no_output_in_taskqueue( api_mock, tasks_client: Client ) -> None: api_mock.return_value = ( [Media(id="avatar_media", foreign_key="", media_type_enum=MediaType.AVATAR)], [], ) resp = tasks_client.get( "/backend-tasks/get/team_avatar/frc254", headers={"X-Appengine-Taskname": "test"}, ) assert resp.status_code == 200 assert len(resp.data) == 0 # Make sure we write models assert Media.get_by_id("avatar_media") is not None
34.009756
85
0.687608
976
6,972
4.682377
0.141393
0.055361
0.021444
0.047265
0.793873
0.784026
0.784026
0.784026
0.784026
0.782713
0
0.052267
0.193201
6,972
204
86
34.176471
0.760178
0.044033
0
0.636943
0
0
0.14758
0.06297
0
0
0
0
0.254777
1
0.070064
false
0
0.070064
0
0.140127
0
0
0
0
null
0
0
0
0
1
1
1
1
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
5
3fe9a55bde03a98492e6e439ff50dd4840d9a343
55
py
Python
utils/__init__.py
hhj1897/fan_training
5882f9edf2f1a07c80a6d1f3341a7cf1d348e217
[ "MIT" ]
1
2021-12-11T21:31:57.000Z
2021-12-11T21:31:57.000Z
utils/__init__.py
hhj1897/fan_training
5882f9edf2f1a07c80a6d1f3341a7cf1d348e217
[ "MIT" ]
null
null
null
utils/__init__.py
hhj1897/fan_training
5882f9edf2f1a07c80a6d1f3341a7cf1d348e217
[ "MIT" ]
1
2021-12-11T21:31:49.000Z
2021-12-11T21:31:49.000Z
from .data_utils import * from .visualisation import *
18.333333
28
0.781818
7
55
6
0.714286
0
0
0
0
0
0
0
0
0
0
0
0.145455
55
2
29
27.5
0.893617
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
1
0
0
5
b74f45d08972efeab8d153dc633a23bb3e69f25b
56
py
Python
passenger_wsgi.py
serggres/othodi
2b8c24592ad4ccae2a4492fb1e6ba2e518b0d993
[ "MIT" ]
null
null
null
passenger_wsgi.py
serggres/othodi
2b8c24592ad4ccae2a4492fb1e6ba2e518b0d993
[ "MIT" ]
null
null
null
passenger_wsgi.py
serggres/othodi
2b8c24592ad4ccae2a4492fb1e6ba2e518b0d993
[ "MIT" ]
null
null
null
# passenger_wsgi.py from app import MyApp as application
28
36
0.839286
9
56
5.111111
1
0
0
0
0
0
0
0
0
0
0
0
0.125
56
2
36
28
0.938776
0.303571
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
1
0
0
5
b762c3ccc16201a0b71c3876478e14747aec52ca
217
py
Python
package/cloudshell/delphix/operations/__init__.py
QualiSystems/Delphix-Shell
55d5bbd1e535cbd9f668ada882798dff7cc810af
[ "Apache-2.0" ]
null
null
null
package/cloudshell/delphix/operations/__init__.py
QualiSystems/Delphix-Shell
55d5bbd1e535cbd9f668ada882798dff7cc810af
[ "Apache-2.0" ]
null
null
null
package/cloudshell/delphix/operations/__init__.py
QualiSystems/Delphix-Shell
55d5bbd1e535cbd9f668ada882798dff7cc810af
[ "Apache-2.0" ]
null
null
null
from autoload import AutoloadOperation from delete_vdb import DeleteVBDOperation from provision_vdb import ProvisionVBDOperation from refresh_vdb import RefreshVBDOperation from restore_vdb import RestoreVBDOperation
36.166667
47
0.907834
24
217
8.041667
0.541667
0.186529
0
0
0
0
0
0
0
0
0
0
0.092166
217
5
48
43.4
0.979695
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
1
0
0
5
b76daf0b93e7df70d40b0fd9ba933cf40f93680e
149
py
Python
anonlink-entity-service/backend/entityservice/database/__init__.py
Sam-Gresh/linkage-agent-tools
f405c7efe3fa82d99bc047f130c0fac6f3f5bf82
[ "Apache-2.0" ]
1
2020-05-19T07:29:31.000Z
2020-05-19T07:29:31.000Z
backend/entityservice/database/__init__.py
hardbyte/anonlink-entity-service
3c1815473bc8169ca571532c18e0913a45c704de
[ "Apache-2.0" ]
null
null
null
backend/entityservice/database/__init__.py
hardbyte/anonlink-entity-service
3c1815473bc8169ca571532c18e0913a45c704de
[ "Apache-2.0" ]
null
null
null
from .util import * from .authorization import * from .deletion import * from .insertions import * from .metrics import * from .selections import *
18.625
28
0.751678
18
149
6.222222
0.444444
0.446429
0
0
0
0
0
0
0
0
0
0
0.167785
149
7
29
21.285714
0.903226
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
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
1
0
1
0
0
0
0
5
b7742bf1cd9e6d573aa8b6560da9a2a3308f2988
40
py
Python
repcal/__main__.py
dekadans/repcal
a9022943fc43190f5260f5e09c78cbc4001edc6e
[ "MIT" ]
null
null
null
repcal/__main__.py
dekadans/repcal
a9022943fc43190f5260f5e09c78cbc4001edc6e
[ "MIT" ]
null
null
null
repcal/__main__.py
dekadans/repcal
a9022943fc43190f5260f5e09c78cbc4001edc6e
[ "MIT" ]
null
null
null
from .command_line import main main()
8
30
0.75
6
40
4.833333
0.833333
0
0
0
0
0
0
0
0
0
0
0
0.175
40
4
31
10
0.878788
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
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
1
0
1
0
0
0
0
5
b79ddb140df5dc41e500b8769b2e87ca5765b769
2,167
py
Python
files_rc.py
temirhanovtemirlan/TRPO.4.zadacha
80a0e2a20c8db1351bd56283811994edaaa05a7f
[ "MIT" ]
19
2021-11-01T13:46:47.000Z
2022-03-27T14:14:35.000Z
files_rc.py
temirhanovtemirlan/TRPO.4.zadacha
80a0e2a20c8db1351bd56283811994edaaa05a7f
[ "MIT" ]
null
null
null
files_rc.py
temirhanovtemirlan/TRPO.4.zadacha
80a0e2a20c8db1351bd56283811994edaaa05a7f
[ "MIT" ]
10
2021-11-01T19:56:10.000Z
2022-03-07T12:33:23.000Z
from PySide6 import QtCore qt_resource_data = b"\ \x00\x00\x01r\ <\ svg xmlns=\x22http:\ //www.w3.org/200\ 0/svg\x22 height=\x224\ 8px\x22 viewBox=\x220 \ 0 24 24\x22 width=\x22\ 48px\x22 fill=\x22#FFF\ FFF\x22><path d=\x22M0\ 0h24v24H0z\x22 fil\ l=\x22none\x22/><path \ d=\x22M22 3H7c-.69 \ 0-1.23.35-1.59.8\ 8L0 12l5.41 8.11\ c.36.53.9.89 1.5\ 9.89h15c1.1 0 2-\ .9 2-2V5c0-1.1-.\ 9-2-2-2zm-3 12.5\ 9L17.59 17 14 13\ .41 10.41 17 9 1\ 5.59 12.59 12 9 \ 8.41 10.41 7 14 \ 10.59 17.59 7 19\ 8.41 15.41 12 1\ 9 15.59z\x22/></svg\ >\ \x00\x00\x01\xea\ <\ svg xmlns=\x22http:\ //www.w3.org/200\ 0/svg\x22 enable-ba\ ckground=\x22new 0 \ 0 20 20\x22 height=\ \x2248px\x22 viewBox=\x22\ 0 0 20 20\x22 width\ =\x2248px\x22 fill=\x22#0\ 00000\x22><g><rect \ fill=\x22none\x22 heig\ ht=\x2220\x22 width=\x222\ 0\x22/></g><g><g><p\ ath d=\x22M16,4H4v1\ 2h12V4z M6,7.27h\ 3v1H6V7.27z M10,\ 12.5H8.5V14h-1v-\ 1.5H6v-1h1.5V10h\ 1v1.5H10V12.5z M\ 14,13.25h-3v-1h3\ V13.25z M14,11.7\ 5h-3v-1h3V11.75z\ M14.27,8.83l-0.\ 71,0.71L12.5,8.4\ 7l-1.06,1.06l-0.\ 71-0.71l1.06-1.0\ 6l-1.06-1.06L11.\ 44,6l1.06,1.06 L\ 13.56,6l0.71,0.7\ 1l-1.06,1.06L14.\ 27,8.83z\x22/></g><\ /g></svg>\ " qt_resource_name = b"\ \x00\x05\ \x00o\xa6S\ \x00i\ \x00c\x00o\x00n\x00s\ \x00\x0d\ \x07d\x0f\xa7\ \x00b\ \x00a\x00c\x00k\x00s\x00p\x00a\x00c\x00e\x00.\x00s\x00v\x00g\ \x00\x0e\ \x0b0\xc5\xa7\ \x00c\ \x00a\x00l\x00c\x00u\x00l\x00a\x00t\x00o\x00r\x00.\x00s\x00v\x00g\ " qt_resource_struct = b"\ \x00\x00\x00\x00\x00\x02\x00\x00\x00\x01\x00\x00\x00\x01\ \x00\x00\x00\x00\x00\x00\x00\x00\ \x00\x00\x00\x00\x00\x02\x00\x00\x00\x01\x00\x00\x00\x02\ \x00\x00\x00\x00\x00\x00\x00\x00\ \x00\x00\x00\x00\x00\x02\x00\x00\x00\x02\x00\x00\x00\x03\ \x00\x00\x00\x00\x00\x00\x00\x00\ \x00\x00\x00\x10\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\ \x00\x00\x01}v\x96\x94\xeb\ \x00\x00\x000\x00\x00\x00\x00\x00\x01\x00\x00\x01v\ \x00\x00\x01}v\x96\xb7]\ " def qInitResources(): QtCore.qRegisterResourceData(0x03, qt_resource_struct, qt_resource_name, qt_resource_data) def qCleanupResources(): QtCore.qUnregisterResourceData(0x03, qt_resource_struct, qt_resource_name, qt_resource_data) qInitResources()
21.038835
96
0.684818
465
2,167
3.152688
0.374194
0.278308
0.306958
0.302865
0.316508
0.292633
0.290587
0.280355
0.259891
0.259891
0
0.358844
0.089525
2,167
102
97
21.245098
0.384187
0
0
0.096774
0
0.075269
0
0
0
0
0.003692
0
0
1
0.021505
false
0
0.010753
0
0.032258
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
b7cca8bdda68f746cd07cad6d712bc8d1f23dcd4
192
py
Python
heatmappy/__init__.py
az7139/heatmappy
8fbc1cc5d96667f7a347051c186fc62effece7ed
[ "MIT" ]
129
2015-11-30T12:20:16.000Z
2022-03-17T23:15:20.000Z
heatmappy/__init__.py
az7139/heatmappy
8fbc1cc5d96667f7a347051c186fc62effece7ed
[ "MIT" ]
10
2017-08-21T21:39:57.000Z
2022-01-13T00:36:29.000Z
heatmappy/__init__.py
az7139/heatmappy
8fbc1cc5d96667f7a347051c186fc62effece7ed
[ "MIT" ]
44
2017-07-25T02:14:55.000Z
2021-12-11T09:06:44.000Z
from heatmappy.heatmap import Heatmapper,\ GreyHeatMapper,\ PILGreyHeatmapper,\ PySideGreyHeatmapper
32
50
0.453125
8
192
10.875
1
0
0
0
0
0
0
0
0
0
0
0
0.510417
192
5
51
38.4
0.925532
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.25
0
0.25
0
1
0
1
null
0
0
0
0
0
0
0
0
0
0
0
1
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
5
b7f50e86caad72bf6ab76aa93351deb395daabc5
210
py
Python
src/cap_win.py
humanova/capwindow
8abb9db147d1ecbf49e7be8b6faeb09a6737d98c
[ "MIT" ]
3
2018-10-20T20:43:56.000Z
2021-03-20T19:46:02.000Z
src/cap_win.py
humanova/capwindow
8abb9db147d1ecbf49e7be8b6faeb09a6737d98c
[ "MIT" ]
null
null
null
src/cap_win.py
humanova/capwindow
8abb9db147d1ecbf49e7be8b6faeb09a6737d98c
[ "MIT" ]
1
2021-03-20T19:46:04.000Z
2021-03-20T19:46:04.000Z
import os import pyautogui os.chdir("screenshot") def save_screenshot(): pic = pyautogui.screenshot() pic.save('Screenshot.png') def get_screenshot(): pic = pyautogui.screenshot() return pic
17.5
32
0.704762
25
210
5.84
0.44
0.267123
0.30137
0.438356
0
0
0
0
0
0
0
0
0.17619
210
12
33
17.5
0.843931
0
0
0.222222
0
0
0.113744
0
0
0
0
0
0
1
0.222222
false
0
0.222222
0
0.555556
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
1
0
0
0
0
0
0
0
5
4d015b1229c8ead441c17902948d11f29468c3d2
307
py
Python
main_montecarlo.py
vmonaco/pohmm-keystroke
dd48648a994744a730cae9c2eb608a5d89271d97
[ "BSD-3-Clause" ]
6
2016-08-28T17:21:12.000Z
2021-07-27T05:05:34.000Z
main_montecarlo.py
vmonaco/pohmm-keystroke
dd48648a994744a730cae9c2eb608a5d89271d97
[ "BSD-3-Clause" ]
null
null
null
main_montecarlo.py
vmonaco/pohmm-keystroke
dd48648a994744a730cae9c2eb608a5d89271d97
[ "BSD-3-Clause" ]
null
null
null
from pohmm_keystroke.montecarlo import dataset_goodness_of_fit if __name__ == '__main__': import sys dataset = sys.argv[1] dataset_goodness_of_fit(dataset, 'keyname', out_name='%s_pohmm_montecarlo' % dataset) dataset_goodness_of_fit(dataset, 'none', out_name='%s_hmm_montecarlo' % dataset)
38.375
89
0.765472
42
307
5.02381
0.47619
0.21327
0.241706
0.28436
0.255924
0
0
0
0
0
0
0.003745
0.130293
307
7
90
43.857143
0.786517
0
0
0
0
0
0.179153
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
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
1
0
0
0
0
5
4d03de6b94237b6c075c9cf9d7a1c733d733dc09
7,602
py
Python
opentelekom/dms/v1/_proxy.py
tsdicloud/python-opentelekom-sdk
809f3796dba48ad0535990caf7519bb9afa71d2d
[ "Apache-2.0" ]
null
null
null
opentelekom/dms/v1/_proxy.py
tsdicloud/python-opentelekom-sdk
809f3796dba48ad0535990caf7519bb9afa71d2d
[ "Apache-2.0" ]
null
null
null
opentelekom/dms/v1/_proxy.py
tsdicloud/python-opentelekom-sdk
809f3796dba48ad0535990caf7519bb9afa71d2d
[ "Apache-2.0" ]
null
null
null
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. #from opentelekom.dms.v1 import message as _message from opentelekom.dms.v1 import queue as _queue from opentelekom.dms.v1 import group as _group #from opentelekom.dms.v1.0 import subscription as _subscription from opentelekom import otc_proxy from openstack import resource class Proxy(otc_proxy.OtcProxy): def create_queue(self, **attrs): """Create a new queue from attributes :param dict attrs: Keyword arguments which will be used to create a :class:`~openstack.message.v2.queue.Queue`, comprised of the properties on the Queue class. :returns: The results of queue creation :rtype: :class:`~openstack.message.v2.queue.Queue` """ return self._create(_queue.Queue, **attrs) def get_queue(self, queue): """Get a queue :param queue: The value can be the name of a queue or a :class:`~openstack.message.v2.queue.Queue` instance. :returns: One :class:`~openstack.message.v2.queue.Queue` :raises: :class:`~openstack.exceptions.ResourceNotFound` when no queue matching the name could be found. """ return self._get(_queue.Queue, queue) def find_queue(self, name_or_id, ignore_missing=True, **args): """Find a queue instance by name or id :param name_or_id: The name or ID of a css cluster :param bool ignore_missing: When set to ``False`` :class:`~openstack.exceptions.ResourceNotFound` will be raised when the resource does not exist. When set to ``True``, None will be returned when attempting to find a nonexistent resource. :param dict args: Any additional parameters to be passed into underlying methods. such as query filters. :returns: One :class:`~opentelekom.css.v1.cluster.Cluster` or None """ return self._find(_queue.Queue, name_or_id, ignore_missing=ignore_missing, **args) def queues(self, **query): """Retrieve a generator of queues :param kwargs query: Optional query parameters to be sent to restrict the queues to be returned. Available parameters include: * limit: Requests at most the specified number of items be returned from the query. * marker: Specifies the ID of the last-seen queue. Use the limit parameter to make an initial limited request and use the ID of the last-seen queue from the response as the marker parameter value in a subsequent limited request. :returns: A generator of queue instances. """ return self._list(_queue.Queue, **query) def delete_queue(self, value, ignore_missing=True): """Delete a queue :param value: The value can be either the name of a queue or a :class:`~openstack.message.v2.queue.Queue` instance. :param bool ignore_missing: When set to ``False`` :class:`~openstack.exceptions.ResourceNotFound` will be raised when the queue does not exist. When set to ``True``, no exception will be set when attempting to delete a nonexistent queue. :returns: ``None`` """ return self._delete(_queue.Queue, value, ignore_missing=ignore_missing) def create_queue_group(self, queue, **attrs): """Create a new queue from attributes :param dict attrs: Keyword arguments which will be used to create a :class:`~openstack.message.v2.queue.Queue`, comprised of the properties on the Queue class. :returns: The results of queue creation :rtype: :class:`~openstack.message.v2.queue.Queue` """ q = self._get_resource(_queue.Queue, queue) return self._create(_group.ConsumerGroup, queue_id=q.id, **attrs) def get_queue_group(self, queue, group): """Get a queue :param queue: The value can be the name of a queue or a :class:`~openstack.message.v2.queue.Queue` instance. :returns: One :class:`~openstack.message.v2.queue.Queue` :raises: :class:`~openstack.exceptions.ResourceNotFound` when no queue matching the name could be found. """ q = self._get_resource(_queue.Queue, queue) return self._get(_group.ConsumerGroup, group, queue_id=q.id) def find_queue_group(self, queue, name_or_id, ignore_missing=True, **args): """Find a rds instance by name or id :param name_or_id: The name or ID of a css cluster :param bool ignore_missing: When set to ``False`` :class:`~openstack.exceptions.ResourceNotFound` will be raised when the resource does not exist. When set to ``True``, None will be returned when attempting to find a nonexistent resource. :param dict args: Any additional parameters to be passed into underlying methods. such as query filters. :returns: One :class:`~opentelekom.css.v1.cluster.Cluster` or None """ q = self._get_resource(_queue.Queue, queue) return self._find(_group.ConsumerGroup, name_or_id, ignore_missing=ignore_missing, queue_id=q.id, **args) def queue_groups(self, queue, **query): """Retrieve a generator of queues :param kwargs query: Optional query parameters to be sent to restrict the queues to be returned. Available parameters include: * limit: Requests at most the specified number of items be returned from the query. * marker: Specifies the ID of the last-seen queue. Use the limit parameter to make an initial limited request and use the ID of the last-seen queue from the response as the marker parameter value in a subsequent limited request. :returns: A generator of queue instances. """ q = self._get_resource(_queue.Queue, queue) return self._list(_group.ConsumerGroup, queue_id=q.id, **query) def delete_queue_group(self, queue, group, ignore_missing=True): """Delete a queue consumer group :param value: The value can be either the name of a queue or a :class:`~openstack.message.v2.queue.Queue` instance. :param bool ignore_missing: When set to ``False`` :class:`~openstack.exceptions.ResourceNotFound` will be raised when the queue does not exist. When set to ``True``, no exception will be set when attempting to delete a nonexistent queue. :returns: ``None`` """ q = self._get_resource(_queue.Queue, queue) return self._delete(_group.ConsumerGroup, group, ignore_missing=ignore_missing, queue_id=q.id)
44.982249
113
0.636938
988
7,602
4.812753
0.174089
0.054679
0.044164
0.04837
0.780021
0.748896
0.722818
0.713985
0.698843
0.658675
0
0.003863
0.284925
7,602
168
114
45.25
0.870861
0.662852
0
0.166667
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0.133333
0
0.833333
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
1
0
0
0
0
0
0
0
5
4d09cedd01816b90e902a1606c7635997a5dfc93
127
py
Python
tester.py
iStevenGuerrero/mini_ecs
d6bff3036df4ce3857ca7b3295587c8870890bfa
[ "MIT" ]
null
null
null
tester.py
iStevenGuerrero/mini_ecs
d6bff3036df4ce3857ca7b3295587c8870890bfa
[ "MIT" ]
null
null
null
tester.py
iStevenGuerrero/mini_ecs
d6bff3036df4ce3857ca7b3295587c8870890bfa
[ "MIT" ]
null
null
null
import ecs_client ecs_client.createContainer("Manuel") ecs_client.createContainer("Laura") ecs_client.createContainer("Danna")
25.4
36
0.84252
15
127
6.866667
0.466667
0.349515
0.699029
0
0
0
0
0
0
0
0
0
0.03937
127
5
37
25.4
0.844262
0
0
0
0
0
0.125
0
0
0
0
0
0
1
0
true
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
1
0
0
0
0
0
0
5
4d164a484c22b7d22b874c683aceb340c9b12574
141
py
Python
problems/sentence_smash.py
stereoabuse/codewars
d6437afaef38c3601903891b8b9cb0f84c108c54
[ "MIT" ]
null
null
null
problems/sentence_smash.py
stereoabuse/codewars
d6437afaef38c3601903891b8b9cb0f84c108c54
[ "MIT" ]
null
null
null
problems/sentence_smash.py
stereoabuse/codewars
d6437afaef38c3601903891b8b9cb0f84c108c54
[ "MIT" ]
null
null
null
## Sentence Smash ## 8 kyu ## https://www.codewars.com//kata/53dc23c68a0c93699800041d def smash(words): return ' '.join(words)
20.142857
60
0.652482
16
141
5.75
0.875
0
0
0
0
0
0
0
0
0
0
0.166667
0.191489
141
7
61
20.142857
0.640351
0.553191
0
0
0
0
0.02
0
0
0
0
0
0
1
0.5
false
0
0
0.5
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
1
1
0
0
5
4d340d7a8dd174d170d72d47f340abc3e0b13740
8,312
py
Python
lib/datasets/dataset_catalog_rel.py
YerongLi2/LTVRR
26a6a03dd44cb6b008e0974ad9915a149d666786
[ "MIT" ]
9
2021-02-12T10:29:06.000Z
2022-03-18T13:35:25.000Z
lib/datasets/dataset_catalog_rel.py
YerongLi2/LTVRR
26a6a03dd44cb6b008e0974ad9915a149d666786
[ "MIT" ]
5
2021-02-26T04:44:52.000Z
2022-03-31T07:16:53.000Z
lib/datasets/dataset_catalog_rel.py
YerongLi2/LTVRR
26a6a03dd44cb6b008e0974ad9915a149d666786
[ "MIT" ]
1
2022-03-30T08:06:08.000Z
2022-03-30T08:06:08.000Z
# Copyright (c) 2017-present, Facebook, Inc. # # 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. ############################################################################## """Collection of available datasets.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import os from core.config import cfg # Path to data dir _DATA_DIR = cfg.DATA_DIR # Required dataset entry keys IM_DIR = 'image_directory' ANN_FN = 'annotation_file' ANN_FN2 = 'annotation_file2' ANN_FN3 = 'predicate_file' # Optional dataset entry keys IM_PREFIX = 'image_prefix' DEVKIT_DIR = 'devkit_directory' RAW_DIR = 'raw_dir' print('datasets catalogue', 'cfg.RNG_SEED', cfg.RNG_SEED) # Available datasets DATASETS = { # VG dataset 'vg_train': { IM_DIR: _DATA_DIR + '/vg/VG_100K', ANN_FN: _DATA_DIR + '/vg/detections_train.json', ANN_FN2: _DATA_DIR + '/vg/rel_annotations_train.json', ANN_FN3: _DATA_DIR + '/vg/predicates.json', }, # for now vg_val is identical to vg_test 'vg_val': { IM_DIR: _DATA_DIR + '/vg/VG_100K', ANN_FN: _DATA_DIR + '/vg/detections_val.json', ANN_FN2: _DATA_DIR + '/vg/rel_annotations_val.json', ANN_FN3: _DATA_DIR + '/vg/predicates.json', }, 'vg80k_train': { IM_DIR: _DATA_DIR + '/vg80k/VG_100K', ANN_FN: _DATA_DIR + '/vg80k/seed{}/detections_train.json'.format(cfg.RNG_SEED), ANN_FN2: _DATA_DIR + '/vg80k/seed{}/rel_annotations_train.json'.format(cfg.RNG_SEED), ANN_FN3: _DATA_DIR + '/vg80k/seed{}/predicates.json'.format(cfg.RNG_SEED), }, 'vg80k_val': { IM_DIR: _DATA_DIR + '/vg80k/VG_100K', ANN_FN: _DATA_DIR + '/vg80k/seed{}/detections_val.json'.format(cfg.RNG_SEED), ANN_FN2: _DATA_DIR + '/vg80k/seed{}/rel_annotations_val.json'.format(cfg.RNG_SEED), ANN_FN3: _DATA_DIR + '/vg80k/seed{}/predicates.json'.format(cfg.RNG_SEED), }, 'vg80k_test': { IM_DIR: _DATA_DIR + '/vg80k/VG_100K', ANN_FN: _DATA_DIR + '/vg80k/seed{}/detections_test.json'.format(cfg.RNG_SEED), ANN_FN2: _DATA_DIR + '/vg80k/seed{}/rel_annotations_test.json'.format(cfg.RNG_SEED), ANN_FN3: _DATA_DIR + '/vg80k/seed{}/predicates.json'.format(cfg.RNG_SEED), }, 'vg8k_train': { IM_DIR: _DATA_DIR + '/vg8k/VG_100K', ANN_FN: _DATA_DIR + '/vg8k/seed{}/detections_train.json'.format(cfg.RNG_SEED), ANN_FN2: _DATA_DIR + '/vg8k/seed{}/rel_annotations_train.json'.format(cfg.RNG_SEED), ANN_FN3: _DATA_DIR + '/vg8k/seed{}/predicates.json'.format(cfg.RNG_SEED), }, 'vg8k_val': { IM_DIR: _DATA_DIR + '/vg8k/VG_100K', ANN_FN: _DATA_DIR + '/vg8k/seed{}/detections_val.json'.format(cfg.RNG_SEED), ANN_FN2: _DATA_DIR + '/vg8k/seed{}/rel_annotations_val.json'.format(cfg.RNG_SEED), ANN_FN3: _DATA_DIR + '/vg8k/seed{}/predicates.json'.format(cfg.RNG_SEED), }, 'vg8k_test': { IM_DIR: _DATA_DIR + '/vg8k/VG_100K', ANN_FN: _DATA_DIR + '/vg8k/seed{}/detections_test.json'.format(cfg.RNG_SEED), ANN_FN2: _DATA_DIR + '/vg8k/seed{}/rel_annotations_test.json'.format(cfg.RNG_SEED), ANN_FN3: _DATA_DIR + '/vg8k/seed{}/predicates.json'.format(cfg.RNG_SEED), }, 'gvqa_train': { IM_DIR: _DATA_DIR + '/gvqa/images', ANN_FN: _DATA_DIR + '/gvqa/seed{}/detections_train.json'.format(cfg.RNG_SEED), ANN_FN2: _DATA_DIR + '/gvqa/seed{}/rel_annotations_train.json'.format(cfg.RNG_SEED), ANN_FN3: _DATA_DIR + '/gvqa/seed{}/predicates.json'.format(cfg.RNG_SEED), }, 'gvqa_val': { IM_DIR: _DATA_DIR + '/gvqa/images', ANN_FN: _DATA_DIR + '/gvqa/seed{}/detections_val.json'.format(cfg.RNG_SEED), ANN_FN2: _DATA_DIR + '/gvqa/seed{}/rel_annotations_val.json'.format(cfg.RNG_SEED), ANN_FN3: _DATA_DIR + '/gvqa/seed{}/predicates.json'.format(cfg.RNG_SEED), }, 'gvqa_test': { IM_DIR: _DATA_DIR + '/gvqa/images', ANN_FN: _DATA_DIR + '/gvqa/seed{}/detections_test.json'.format(cfg.RNG_SEED), ANN_FN2: _DATA_DIR + '/gvqa/seed{}/rel_annotations_test.json'.format(cfg.RNG_SEED), ANN_FN3: _DATA_DIR + '/gvqa/seed{}/predicates.json'.format(cfg.RNG_SEED), }, 'gvqa20k_train': { IM_DIR: _DATA_DIR + '/gvqa20k/images', ANN_FN: _DATA_DIR + '/gvqa20k/seed{}/detections_train.json'.format(cfg.RNG_SEED), ANN_FN2: _DATA_DIR + '/gvqa20k/seed{}/rel_annotations_train.json'.format(cfg.RNG_SEED), ANN_FN3: _DATA_DIR + '/gvqa20k/seed{}/predicates.json'.format(cfg.RNG_SEED), }, 'gvqa20k_val': { IM_DIR: _DATA_DIR + '/gvqa20k/images', ANN_FN: _DATA_DIR + '/gvqa20k/seed{}/detections_val.json'.format(cfg.RNG_SEED), ANN_FN2: _DATA_DIR + '/gvqa20k/seed{}/rel_annotations_val.json'.format(cfg.RNG_SEED), ANN_FN3: _DATA_DIR + '/gvqa20k/seed{}/predicates.json'.format(cfg.RNG_SEED), }, 'gvqa20k_test': { IM_DIR: _DATA_DIR + '/gvqa20k/images', ANN_FN: _DATA_DIR + '/gvqa20k/seed{}/detections_test.json'.format(cfg.RNG_SEED), ANN_FN2: _DATA_DIR + '/gvqa20k/seed{}/rel_annotations_test.json'.format(cfg.RNG_SEED), ANN_FN3: _DATA_DIR + '/gvqa20k/seed{}/predicates.json'.format(cfg.RNG_SEED), }, 'gvqa10k_train': { IM_DIR: _DATA_DIR + '/gvqa10k/images', ANN_FN: _DATA_DIR + '/gvqa10k/seed{}/detections_train.json'.format(cfg.RNG_SEED), ANN_FN2: _DATA_DIR + '/gvqa10k/seed{}/rel_annotations_train.json'.format(cfg.RNG_SEED), ANN_FN3: _DATA_DIR + '/gvqa10k/seed{}/predicates.json'.format(cfg.RNG_SEED), }, 'gvqa10k_val': { IM_DIR: _DATA_DIR + '/gvqa10k/images', ANN_FN: _DATA_DIR + '/gvqa10k/seed{}/detections_val.json'.format(cfg.RNG_SEED), ANN_FN2: _DATA_DIR + '/gvqa10k/seed{}/rel_annotations_val.json'.format(cfg.RNG_SEED), ANN_FN3: _DATA_DIR + '/gvqa10k/seed{}/predicates.json'.format(cfg.RNG_SEED), }, 'gvqa10k_test': { IM_DIR: _DATA_DIR + '/gvqa10k/images', ANN_FN: _DATA_DIR + '/gvqa10k/seed{}/detections_test.json'.format(cfg.RNG_SEED), ANN_FN2: _DATA_DIR + '/gvqa10k/seed{}/rel_annotations_test.json'.format(cfg.RNG_SEED), ANN_FN3: _DATA_DIR + '/gvqa10k/seed{}/predicates.json'.format(cfg.RNG_SEED), }, # VRD dataset 'vrd_train': { IM_DIR: _DATA_DIR + '/vrd/train_images', ANN_FN: _DATA_DIR + '/vrd/detections_train.json', ANN_FN2: _DATA_DIR + '/vrd/new_annotations_train.json', ANN_FN3: _DATA_DIR + '/vrd/predicates.json', }, 'vrd_val': { IM_DIR: _DATA_DIR + '/vrd/val_images', ANN_FN: _DATA_DIR + '/vrd/detections_val.json', ANN_FN2: _DATA_DIR + '/vrd/new_annotations_val.json', ANN_FN3: _DATA_DIR + '/vrd/predicates.json', }, }
34.778243
90
0.586742
1,035
8,312
4.32657
0.120773
0.123493
0.104958
0.160786
0.782939
0.759268
0.759268
0.738276
0.673515
0.673515
0
0.029339
0.270091
8,312
238
91
34.92437
0.708752
0.090592
0
0.541063
0
0
0.323766
0.236588
0
0
0
0
0
1
0
false
0
0.028986
0
0.028986
0.009662
0
0
0
null
0
0
1
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
5
4d7612eb5a468e127e1dc367dbe8552e307daca4
9,023
py
Python
philter_ucsf/filters/regex/transform_regex.py
data2health/philter-ucsf
19c1e80efb003e0ced48e63f72d2ab3e5b96ba6f
[ "BSD-3-Clause" ]
48
2020-01-17T16:34:55.000Z
2022-03-31T13:14:30.000Z
philter_ucsf/filters/regex/transform_regex.py
data2health/philter-ucsf
19c1e80efb003e0ced48e63f72d2ab3e5b96ba6f
[ "BSD-3-Clause" ]
8
2020-04-19T18:49:13.000Z
2022-01-02T23:43:07.000Z
philter_ucsf/filters/regex/transform_regex.py
data2health/philter-ucsf
19c1e80efb003e0ced48e63f72d2ab3e5b96ba6f
[ "BSD-3-Clause" ]
26
2019-08-30T15:10:32.000Z
2022-03-24T17:43:27.000Z
# Adds variables in to regex to create complex regex import os import json # Define regex variables day_name = "(S|s)un(day)?(s)?|SUN(DAY)?(S)?|(M|m)on(day)?(s)?|MON(DAY)?(S)?|(T|t)ues(day)?(s)?|Tue|TUES(DAY)?(S)?|(W|w)ed(nesday)?(s)?|WED(NESDAY)?(S)?|(T|t)hurs(day)?(s)?|Thu|THURS(DAY)?(S)?|(F|f)ri(day)?(s)?|FRI(DAY)?(S)?|(S|s)at(urday)?(s)?|SAT(URDAY)?(S)?" month_name = "(J|j)an(uary)?|JAN(UARY)?|(F|f)eb(ruary)?|FEB(RUARY)?|(M|m)ar(ch)?|MAR(CH)?|(A|a)pr(il)?|APR(IL)?|May|MAY|(J|j)un(e)?|JUN(E)?|(J|j)ul(y)?|JUL(Y)?|(A|a)ug(ust)?|AUG(UST)?|(S|s)ep(tember)?|SEP(TEMBER)?|SEPT|Sept|(O|o)ct(ober)?|OCT(OBER)?|(N|n)ov(ember)?|NOV(EMBER)?|(D|d)ec(ember)?|DEC(EMBER)?" day_numbering = "1st|2nd|3rd|4th|5th|6th|7th|8th|9th|10th|11th|12th|13th|14th|15th|16th|17th|18th|19th|20th|21st|22nd|23rd|24th|25th|26th|27th|28th|29th|30th|31st|32nd|33rd|34th|35th|36th|37th|38th|39th|40th|41st|42nd|43rd|44th|45th|46th|47th|48th|49th|50th" seasons = "(S|s)pring|SPRING|(F|f)all|FALL|(A|a)utumn|AUTUMN|(W|w)inter|WINTER|(S|s)ummer|SUMMER|(C|c)hristmas|(N|n)ew (Y|y)ear's (E|e)ve" #old_address_indicator = "alley|alley|ally|aly|anex|annex|annx|anx|apartment|apt|arcade|arcade|avenue|ave|aven|avenu|avenue|avn|avnue|bayou|bayou|beach|beach|bend|bnd|bluff|bluf|bluff|bluffs|bottom|btm|bottm|bottom|boulevard|boul|boulevard|blvd|boulv|box|branch|brnch|branch|bridge|brg|bridge|brook|brook|brooks|burg|burgs|bypass|bypa|bypas|bypass|byps|camp|cp|cmp|canyon|canyon|cnyn|cape|cpe|causeway|causwa|cswy|center|cent|center|centr|centre|cnter|cntr|ctr|centers|circle|circ|circl|circle|crcl|crcle|circles|cliff|cliff|cliffs|cliffs|club|club|common|commons|corner|corner|corners|cors|crse|court|ct|courts|cts|cove|cv|coves|creek|crk|crescent|cres|crsent|crsnt|crest|crossing|crssng|xing|crossroad|crossroads|curve|dale|dl|dam|dm|divide|divide|dv|dvd|drive|driv|dr|drv|drives|east|estate|estate|estates|ests|expressway|expr|express|expressway|expw|expy|extension|extension|extn|extnsn|extensions|fall|falls|fls|ferry|frry|fry|field|fld|fields|flds|flat|flt|flats|flts|ford|frd|fords|forest|forests|frst|forge|forge|frg|forges|fork|frk|forks|frks|fort|frt|ft|freeway|freewy|frway|frwy|fwy|garden|gardn|grden|grdn|gardens|gdns|grdns|gateway|gatewy|gatway|gtway|gtwy|glen|gln|glens|green|grn|greens|grove|grove|grv|groves|harbor|harbor|harbr|hbr|hrbor|harbors|haven|hvn|heights|hts|highway|highwy|hiway|hiwy|hway|hwy|hill|hl|hills|hls|hollow|hollow|hollows|holw|holws|inlet|island|island|islnd|islands|islnds|iss|isle|isles|junction|jction|jctn|junction|junctn|juncton|junctions|jcts|junctions|key|ky|keys|kys|knoll|knol|knoll|knolls|knolls|lake|lake|lakes|lakes|land|landing|lndg|lndng|lane|ln|light|light|lights|loaf|loaf|lock|lock|locks|locks|lodge|ldge|lodg|lodge|loop|loops|mall|manor|manor|manors|mnrs|meadow|meadows|mdws|meadows|medows|mews|mill|mills|mission|mssn|motorway|mount|mt|mount|mountain|mntn|mountain|mountin|mtin|mtn|mountains|mountains|neck|neck|north|orchard|orchard|orchrd|oval|ovl|overpass|park|prk|parks|parkway|parkwy|pkway|pkwy|pky|parkways|pkwys|pass|passage|path|paths|pike|pikes|pine|pines|pnes|place|plain|pln|plains|plns|plaza|plz|plza|point|pt|points|pts|port|prt|ports|prts|prairie|prairie|prr|radial|radial|radiel|radl|ramp|ranch|ranches|rnch|rnchs|rapid|rpd|rapids|rpds|rest|rst|ridge|rdge|ridge|ridges|ridges|river|river|rvr|rivr|road|road|rd|roads|rds|route|row|rue|run|shoal|shoal|shoals|shoals|shore|shore|shr|shores|shores|shrs|skyway|south|spring|spng|spring|sprng|springs|spngs|springs|sprngs|spur|spurs|square|sqr|sqre|squ|square|squares|squares|station|station|statn|stn|stravenue|strav|straven|stravenue|stravn|strvn|strvnue|stream|streme|strm|street|strt|st|str|streets|suite|ste|summit|sumit|sumitt|summit|terrace|terr|terrace|throughway|trace|traces|trce|track|tracks|trak|trk|trks|trafficway|trail|trails|trl|trls|trailer|trlr|trlrs|tunnel|tunl|tunls|tunnel|tunnels|tunnl|turnpike|turnpike|turnpk|underpass|union|union|unions|valley|vally|vlly|vly|valleys|vlys|viaduct|via|viadct|viaduct|view|vw|views|vws|village|villag|village|villg|villiage|vlg|villages|vlgs|ville|vl|vista|vist|vista|vst|vsta|walk|walks|wall|way|way|ways|well|wells|west|wls" # Modified address_indicator on 08/24/18 address_indicator = "alley|alley|ally|aly|anex|annex|annx|anx|apartment|apt|avenue|ave|aven|avenu|avenue|avn|avnue|bayou|bayou|beach|beach|bnd|bluff|bluf|bluff|bluffs|boulevard|boul|boulevard|blvd|boulv|box|branch|brnch|branch|bridge|brg|bridge|brook|brook|brooks|burg|burgs|byps|canyon|canyon|cnyn|cape|cpe|causeway|causwa|cswy|cent|centr|centre|cnter|cntr|ctr|circle|circ|circl|circle|crcl|crcle|circles|cliff|cliff|cliffs|cliffs|club|club|commons|corner|corner|corners|cors|crse|court|ct|courts|cts|cove|cv|coves|creek|crk|crescent|cres|crsent|crsnt|crest|crossing|crssng|xing|crossroad|crossroads|dale|dl|dam|divide|divide|dv|dvd|drive|driv|dr|drv|drives|east|estate|estate|estates|ests|expressway|expr|express|expressway|expw|expy|extn|extnsn|fls|ferry|frry|fry|flat|flt|flats|flts|ford|frd|fords|forest|forests|frst|forge|forge|frg|forges|fork|frk|forks|frks|fort|frt|ft|freeway|freewy|frway|frwy|fwy|garden|gardn|grden|grdn|gardens|gdns|grdns|gateway|gatewy|gatway|gtway|gtwy|glen|gln|glens|green|grn|greens|grove|grove|grv|groves|harbor|harbor|harbr|hbr|hrbor|harbors|haven|hvn|heights|hts|highway|highwy|hiway|hiwy|hway|hwy|hill|hl|hills|hls|hollow|hollow|hollows|holw|holws|iss|isle|isles|knoll|knol|knoll|knolls|knolls|lake|lake|lakes|lakes|land|landing|lndg|lndng|lane|ln|loaf|loaf|lock|lock|locks|locks|ldge|lodg|lodge|loop|loops|mall|manor|manor|manors|mnrs|meadow|meadows|mdws|meadows|medows|mews|mill|mills|mission|mssn|motorway|north|orchard|orchard|orchrd|oval|ovl|overpass|park|prk|parks|parkway|parkwy|pkway|pkwy|pky|parkways|pkwys|pass|passage|pike|pikes|pine|pines|pnes|place|plain|pln|plains|plns|plaza|plz|plza|port|prt|ports|prts|prairie|prairie|prr|ramp|ranch|ranches|rnch|rnchs|rapids|rpds|rst|ridge|rdge|ridge|ridges|ridges|river|river|rvr|rivr|road|road|rd|roads|rds|route|row|run|shoal|shoal|shoals|shoals|shore|shore|shr|shores|shores|shrs|skyway|south|spring|spng|spring|sprng|springs|spngs|springs|sprngs|spur|spurs|square|sqr|sqre|squ|square|squares|squares|station|station|statn|stn|stravenue|strav|straven|stravenue|stravn|strvn|strvnue|stream|streme|strm|street|strt|st|str|streets|suite|summit|sumit|sumitt|summit|terrace|terr|terrace|throughway|trce|track|tracks|trak|trk|trks|trafficway|trail|trails|trl|trls|trailer|trlr|trlrs|tunnel|tunl|tunls|tunnel|tunnels|tunnl|turnpike|turnpike|turnpk|underpass|union|union|unions|valley|vally|vlly|vly|valleys|vlys|viaduct|viadct|viaduct|village|villag|village|villg|villiage|vlg|villages|vlgs|ville|vl|vista|vist|vista|vst|vsta|way|way|ways|west|wls" state_names = "(A|a)rizona|AZ|(V|v)irginia|VA|(M|m)innesota|MN|(A|a)laska|AK|(N|n)ew (Y|y)ork|NY|(T|t)exas|TX|(V|v)ermont|VT|(U|u)tah|UT|(N|n)ew (J|j)ersey|NJ|(N|n)orth (D|d)akota|ND|(S|s)outh (D|d)akota|SD|(M|m)issouri|MO|(W|w)ashington (D|d).(C|c).|(G|g)eorgia|GA|(M|m)assachusetts|MA|(P|p)uerto (R|r)ico|(M|m)ichigan|MI|(I|i)owa|IA|(N|n)orth (C|c)arolina|NC|(S|s)outh (C|c)arolina|SC|(N|n)evada|NV|(C|c)olorado|CO|(O|o)hio|OH|(H|h)awaii|HI|(N|n)ebraska|NE|(N|n)ew (H|h)ampshire|NH|(W|w)ashington|WA|(T|t)ennessee|TN|(A|a)rkansas|AR|(L|l)ouisiana|LA|(M|m)ississippi|MS|(O|o)regon|OR|(A|a)labama|AL|(W|w)yoming|WY|(W|w)isconsin|WI|(O|o)klahoma|OK|(F|f)lorida|FL|(R|r)hode (I|i)sland|RI|(I|i)ndiana|IN|(C|c)alifornia|CA|(K|k)ansas|KS|(D|d)elaware|DE|(M|m)aryland|(I|i)daho|ID|(P|p)ennsylvania|PA|(K|k)entucky|KY|(C|c)onnecticut|CT|(M|m)ontana|MT|(I|i)llinois|IL|(M|m)aine|ME" full_numbering = "First|Second|Third|Fourth|Fifth|Sixth|Seventh|Eighth|Ninth|Tenth|Eleventh|Twelfth|Thirteenth|Fourteenth|Fifteenth|Sixteenth|Seventeenth|Eighteenth|Nineteenth|Twentieth" # Get blacklisted names # names_blacklist = json.loads(open("../../filters/blacklists/names_blacklist_ssfirst.json").read()) # person_names = '' # for key in names_blacklist: # person_names += key + '|' # # Get rid of last pipe # person_names = person_names[:-1] # Do folder walk and transform each file rootdir = '.' for subdir, dirs, files in os.walk(rootdir): for file in files: if ".txt" in file and "_transformed.txt" not in file and "catchall" not in file: filepath = os.path.join(subdir, file) # Get currnet file name and create transformed name file_root = file.split(".")[0] new_file_name = file_root + "_transformed.txt" new_filepath = os.path.join(subdir, new_file_name) # Open file regex = open(filepath,"r").read().strip() # Replace variables regex = regex.replace('"""+month_name+r"""', month_name).replace('"""+day_numbering+r"""', day_numbering).replace('"""+day_name+r"""', day_name).replace('"""+seasons+r"""', seasons).replace('"""+address_indicator+r"""',address_indicator).replace('"""+state_name+r"""', state_names).replace('"""+full_numbering+r"""', full_numbering) # Write new file with open(new_filepath, "w") as fin: fin.write(regex)
158.298246
3,098
0.773024
1,600
9,023
4.335
0.47125
0.005767
0.002307
0.001442
0.5891
0.559977
0.55248
0.542964
0.516436
0.516436
0
0.011274
0.02682
9,023
56
3,099
161.125
0.778613
0.397872
0
0
0
0.333333
0.856139
0.828772
0
0
0
0
0
1
0
false
0.047619
0.095238
0
0.095238
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
1
1
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
4d7a5c5ce031a9e786f336dafad7cea198debd9a
164
py
Python
tests/web_platform/css_flexbox_1/test_flexbox_flex_wrap_nowrap.py
jonboland/colosseum
cbf974be54fd7f6fddbe7285704cfaf7a866c5c5
[ "BSD-3-Clause" ]
71
2015-04-13T09:44:14.000Z
2019-03-24T01:03:02.000Z
tests/web_platform/css_flexbox_1/test_flexbox_flex_wrap_nowrap.py
jonboland/colosseum
cbf974be54fd7f6fddbe7285704cfaf7a866c5c5
[ "BSD-3-Clause" ]
35
2019-05-06T15:26:09.000Z
2022-03-28T06:30:33.000Z
tests/web_platform/css_flexbox_1/test_flexbox_flex_wrap_nowrap.py
jonboland/colosseum
cbf974be54fd7f6fddbe7285704cfaf7a866c5c5
[ "BSD-3-Clause" ]
139
2015-05-30T18:37:43.000Z
2019-03-27T17:14:05.000Z
from tests.utils import W3CTestCase class TestFlexboxFlexWrapNowrap(W3CTestCase): vars().update(W3CTestCase.find_tests(__file__, 'flexbox-flex-wrap-nowrap'))
27.333333
79
0.804878
18
164
7.055556
0.833333
0
0
0
0
0
0
0
0
0
0
0.02
0.085366
164
5
80
32.8
0.826667
0
0
0
0
0
0.146341
0.146341
0
0
0
0
0
1
0
true
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
1
0
1
0
1
0
0
5
4d7ae8108cdcd05e934e4432310b57eafea41d6f
2,062
py
Python
tests/test_paragraph.py
jmholla/markflow
1accc4a23f9c06d9ab77d6c180c586da3d9ec69b
[ "Apache-2.0" ]
14
2020-08-14T03:09:53.000Z
2022-03-22T22:46:50.000Z
tests/test_paragraph.py
jmholla/markflow
1accc4a23f9c06d9ab77d6c180c586da3d9ec69b
[ "Apache-2.0" ]
6
2020-08-19T18:13:24.000Z
2021-02-11T03:56:34.000Z
tests/test_paragraph.py
jmholla/markflow
1accc4a23f9c06d9ab77d6c180c586da3d9ec69b
[ "Apache-2.0" ]
3
2020-08-13T16:40:13.000Z
2022-01-18T12:31:37.000Z
import textwrap from markflow.formatters.paragraph import MarkdownParagraph from .util import create_section, render class TestParagraph: def test_paragraph(self) -> None: input_ = ( "This is a test string. It must have a [footnote][footnote] that breaks " "across a line and a [URL](http://example.com) so we can ensure that we " "get good coverage." ) expected = textwrap.dedent( """\ This is a test string. It must have a [footnote][ footnote] that breaks across a line and a [URL]( http://example.com) so we can ensure that we get good coverage.""" ) paragraph = create_section(MarkdownParagraph, input_) assert paragraph.reformatted(width=50) == expected paragraph = create_section(MarkdownParagraph, expected) assert paragraph.reformatted(width=50) == expected assert render(expected) == render(input_) def test_hyperlink_breaking(self) -> None: input_ = textwrap.dedent( """\ [I'm a hyperlink broken across multiple lines.]( test.htm)""" ) expected = "[I'm a hyperlink broken across multiple lines.](test.htm)" paragraph = create_section(MarkdownParagraph, input_) assert paragraph.reformatted() == expected paragraph = create_section(MarkdownParagraph, expected) assert paragraph.reformatted() == expected assert render(expected) == render(input_) def test_semantic_paragraph(self) -> None: input_ = textwrap.dedent( """\ Some words with a double space after them. """ ) expected = "Some words with a double space after them. " paragraph = create_section(MarkdownParagraph, input_) assert paragraph.reformatted() == expected paragraph = create_section(MarkdownParagraph, expected) assert paragraph.reformatted() == expected assert render(expected) == render(input_)
38.90566
85
0.625121
216
2,062
5.87037
0.296296
0.071767
0.104101
0.184543
0.826498
0.783912
0.772871
0.772871
0.62224
0.55836
0
0.002712
0.284675
2,062
52
86
39.653846
0.856949
0
0
0.485714
0
0
0.155542
0
0
0
0
0
0.257143
1
0.085714
false
0
0.085714
0
0.2
0
0
0
0
null
0
0
1
1
1
1
1
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
5
4da48dd00f519238f65ac10c95c9a27dfa61f3c5
3,392
py
Python
tests/api/test_permission_api.py
parkanaur/flask-dynrbac
8f2d3448b60a44f440813288979da008ee857bc2
[ "MIT" ]
null
null
null
tests/api/test_permission_api.py
parkanaur/flask-dynrbac
8f2d3448b60a44f440813288979da008ee857bc2
[ "MIT" ]
null
null
null
tests/api/test_permission_api.py
parkanaur/flask-dynrbac
8f2d3448b60a44f440813288979da008ee857bc2
[ "MIT" ]
null
null
null
from helpers import send_and_assert, send_request def test_get_list(sample_filled_app, api_url): app, db, rbac, dmg = sample_filled_app permissions = send_request(app, api_url + '/permissions').get_json() assert len(permissions) == 5 for perm in permissions: assert 'name' in perm assert 'id' in perm assert 'roles' in perm assert 'units' in perm assert len(perm['roles']) >= 1 assert len(perm['units']) >= 1 def test_get_permission(sample_filled_app, api_url): app, db, rbac, dmg = sample_filled_app r = send_request(app, api_url + '/permissions/1') assert r.status_code == 200, 'GOT ' + str(r.status_code) perm = r.get_json() assert 'name' in perm assert 'id' in perm assert perm['id'] == 1 assert len(perm['roles']) >= 1 assert len(perm['units']) >= 1 def test_put_permission(sample_filled_app, api_url): app, db, rbac, dmg = sample_filled_app r = send_request(app, api_url + '/permissions/1', method='put', json={ 'name': 'permission_new_1', 'update_roles': True, 'role_ids': [1, 2, 3, 4] }) assert r.status_code == 204, 'GOT ' + str(r.status_code) + ' ' + r.data r = send_request(app, api_url + '/permissions/1') assert r.status_code == 200, 'GOT ' + str(r.status_code) perm = r.get_json() assert perm['name'] == 'permission_new_1' assert len(perm['roles']) == 4 for role in perm['roles']: assert role['id'] in [1, 2, 3, 4] r = send_request(app, api_url + '/roles/1') role = r.get_json() assert any(perm['id'] == 1 for perm in role['permissions']) def test_delete_permission(sample_filled_app, api_url): app, db, rbac, dmg = sample_filled_app r = send_request(app, api_url + '/permissions/1', method='delete') assert r.status_code == 204, 'GOT ' + str(r.status_code) + ' ' + r.data r = send_request(app, api_url + '/permissions/1') assert r.status_code == 404, 'GOT ' + str(r.status_code) + ' ' + r.data def test_create_permission(sample_filled_app, api_url): app, db, rbac, dmg = sample_filled_app r = send_request(app, api_url + '/permissions', method='post', json={ 'name': 'new_permission_create', 'role_ids': [1, 2, 3], 'unit_ids': [1, 2] }) assert r.status_code == 200, 'GOT ' + str(r.status_code) + ' ' + r.data pid = r.get_json()['id'] r = send_request(app, api_url + '/permissions/' + str(pid)) assert r.status_code == 200, 'GOT ' + str(r.status_code) + ' ' + r.data perm = r.get_json() assert perm['name'] == 'new_permission_create' assert perm['id'] == pid assert len(perm['roles']) == 3 assert len(perm['units']) == 2 def test_create_empty_permission(sample_filled_app, api_url): app, db, rbac, dmg = sample_filled_app r = send_request(app, api_url + '/permissions', method='post', json={ 'name': 'new_permission_create_empty' }) assert r.status_code == 200, 'GOT ' + str(r.status_code) + ' ' + r.data pid = r.get_json()['id'] r = send_request(app, api_url + '/permissions/' + str(pid)) assert r.status_code == 200, 'GOT ' + str(r.status_code) + ' ' + r.data perm = r.get_json() assert perm['name'] == 'new_permission_create_empty' assert perm['id'] == pid assert len(perm['roles']) == 0 assert len(perm['units']) == 0
33.584158
75
0.61763
501
3,392
3.958084
0.117764
0.06354
0.099849
0.094302
0.795764
0.775593
0.744327
0.729198
0.695915
0.662632
0
0.022745
0.222288
3,392
100
76
33.92
0.728961
0
0
0.526316
0
0
0.142983
0.028302
0
0
0
0
0.447368
1
0.078947
false
0
0.013158
0
0.092105
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
1
0
0
0
0
0
0
0
0
0
5
4dc6faba412d6c0dce931f4097f143a86ec6453d
45
py
Python
src/stage2v4/__init__.py
gathierry/FashionAI-KeyPointsDetectionOfApparel
2e0942b42b4a9cd974cdddc151675738dc8a8cb4
[ "Apache-2.0" ]
174
2018-06-04T02:12:34.000Z
2022-03-30T07:01:29.000Z
src/stage2v4/__init__.py
gathierry/FashionAI-KeyPointsDetectionOfApparel
2e0942b42b4a9cd974cdddc151675738dc8a8cb4
[ "Apache-2.0" ]
9
2018-06-05T11:32:05.000Z
2021-09-13T09:10:05.000Z
src/stage2v4/__init__.py
gathierry/FashionAI-KeyPointsDetectionOfApparel
2e0942b42b4a9cd974cdddc151675738dc8a8cb4
[ "Apache-2.0" ]
55
2018-06-05T09:50:52.000Z
2022-03-30T15:58:00.000Z
# use Inception-Resnet V2 as backbone network
45
45
0.822222
7
45
5.285714
1
0
0
0
0
0
0
0
0
0
0
0.025641
0.133333
45
1
45
45
0.923077
0.955556
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
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
4dd2093b6037a61cb670d43431494795f25f777a
3,649
py
Python
src/spanishconjugator/tenses/conditional/simple_conditional.py
Benedict-Carling/spanish-conjugator
285a755f304ce6c323214d84c027a0daf4725443
[ "MIT" ]
10
2020-08-15T10:04:09.000Z
2022-01-26T22:33:14.000Z
src/spanishconjugator/tenses/conditional/simple_conditional.py
Benedict-Carling/spanish-conjugator
285a755f304ce6c323214d84c027a0daf4725443
[ "MIT" ]
15
2020-08-15T11:25:34.000Z
2021-12-30T12:09:51.000Z
src/spanishconjugator/tenses/conditional/simple_conditional.py
Benedict-Carling/spanish-conjugator
285a755f304ce6c323214d84c027a0daf4725443
[ "MIT" ]
7
2020-08-15T11:20:34.000Z
2021-09-10T07:59:06.000Z
# -*- coding: iso-8859-15 -*- from spanishconjugator.irregulars.irregular_dict import irregulars_dictionary def conditional_simple_conditional_first_person_singular(root_verb): try: conjugation = irregulars_dictionary[root_verb]["conditional"]["simple_conditional"]["yo"] return conjugation except: if root_verb[-2:] == "ar" or "er" or "ir": conjugation = root_verb + "ía" return conjugation def conditional_simple_conditional_first_person_plural(root_verb): try: conjugation = irregulars_dictionary[root_verb]["conditional"]["simple_conditional"]["nosotros"] return conjugation except: if root_verb[-2:] == "ar" or "er" or "ir": conjugation = root_verb + "íamos" return conjugation def conditional_simple_conditional_second_person_singular(root_verb): try: conjugation = irregulars_dictionary[root_verb]["conditional"]["simple_conditional"]["tu"] return conjugation except: if root_verb[-2:] == "ar" or "er" or "ir": conjugation = root_verb + "ías" return conjugation def conditional_simple_conditional_second_person_plural(root_verb): try: conjugation = irregulars_dictionary[root_verb]["conditional"]["simple_conditional"]["vosotros"] return conjugation except: if root_verb[-2:] == "ar" or "er" or "ir": conjugation = root_verb + "íais" return conjugation def conditional_simple_conditional_third_person_singular(root_verb): try: conjugation = irregulars_dictionary[root_verb]["conditional"]["simple_conditional"]["usted"] return conjugation except: if root_verb[-2:] == "ar" or "er" or "ir": conjugation = root_verb + "ía" return conjugation def conditional_simple_conditional_third_person_plural(root_verb): try: conjugation = irregulars_dictionary[root_verb]["conditional"]["simple_conditional"]["ustedes"] return conjugation except: if root_verb[-2:] == "ar" or "er" or "ir": conjugation = root_verb + "ían" return conjugation def conditional_simple_conditional(root_verb, pronoun): if pronoun == "yo": return conditional_simple_conditional_first_person_singular(root_verb) elif pronoun == "tu": return conditional_simple_conditional_second_person_singular(root_verb) elif pronoun == "usted" or pronoun == "el" or pronoun == "ella": return conditional_simple_conditional_third_person_singular(root_verb) elif pronoun == "nosotros": return conditional_simple_conditional_first_person_plural(root_verb) elif pronoun == "vosotros": return conditional_simple_conditional_second_person_plural(root_verb) elif pronoun == "ustedes" or pronoun == "ellos" or pronoun == "ellas": return conditional_simple_conditional_third_person_plural(root_verb) else: # no pronoun is given _dict = {'el/ella/usted': conditional_simple_conditional_third_person_singular(root_verb), \ 'ellos/ellas/ustedes':conditional_simple_conditional_third_person_plural(root_verb),\ 'tu':conditional_simple_conditional_second_person_singular(root_verb),\ 'vosotros':conditional_simple_conditional_second_person_plural(root_verb),\ 'yo':conditional_simple_conditional_first_person_singular(root_verb),\ 'nosotros':conditional_simple_conditional_first_person_plural(root_verb)\ } return _dict
40.098901
103
0.682105
391
3,649
5.994885
0.13555
0.12628
0.298635
0.084471
0.862628
0.862628
0.802048
0.802048
0.43686
0.43686
0
0.004233
0.223075
3,649
90
104
40.544444
0.822575
0.01288
0
0.450704
0
0
0.100306
0
0
0
0
0
0
1
0.098592
false
0
0.014085
0
0.380282
0
0
0
0
null
0
1
0
1
1
1
1
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
5
127e6ce220797e46ee7ee230718ec1ec697b476b
38
py
Python
x.py
leenaMasri/test-repo-2
c0668b78a5c539d42ed06fa49d49b0ecced15236
[ "MIT" ]
null
null
null
x.py
leenaMasri/test-repo-2
c0668b78a5c539d42ed06fa49d49b0ecced15236
[ "MIT" ]
null
null
null
x.py
leenaMasri/test-repo-2
c0668b78a5c539d42ed06fa49d49b0ecced15236
[ "MIT" ]
null
null
null
print("2nd edit") print("1st edit")
7.6
17
0.631579
6
38
4
0.666667
0
0
0
0
0
0
0
0
0
0
0.0625
0.157895
38
4
18
9.5
0.6875
0
0
0
0
0
0.432432
0
0
0
0
0
0
1
0
true
0
0
0
0
1
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
1
0
5
12a27a50f5a6cd5fc16dda4b9b1d5221af35b7e9
31
py
Python
finbot/core/rmq.py
jean-edouard-boulanger/finbot
ddc3c0e4673b1025d2352719755ff77ef445577c
[ "MIT" ]
1
2020-12-25T19:33:27.000Z
2020-12-25T19:33:27.000Z
finbot/core/rmq.py
jean-edouard-boulanger/finbot
ddc3c0e4673b1025d2352719755ff77ef445577c
[ "MIT" ]
1
2021-01-18T23:19:58.000Z
2021-01-19T17:35:13.000Z
finbot/core/rmq.py
jean-edouard-boulanger/finbot
ddc3c0e4673b1025d2352719755ff77ef445577c
[ "MIT" ]
1
2020-01-19T22:37:36.000Z
2020-01-19T22:37:36.000Z
class Worker(object): pass
10.333333
21
0.677419
4
31
5.25
1
0
0
0
0
0
0
0
0
0
0
0
0.225806
31
2
22
15.5
0.875
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.5
0
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
1
1
0
0
0
0
0
5
12bfe0064011a90d679b0feff9deac92c5b6ac4c
105
py
Python
Numpy practice/Numpy11.py
Macorov/Numpy-Python-Practice
0aa296ed690dd0da8f19e7a456a8a665cec94aeb
[ "MIT" ]
null
null
null
Numpy practice/Numpy11.py
Macorov/Numpy-Python-Practice
0aa296ed690dd0da8f19e7a456a8a665cec94aeb
[ "MIT" ]
null
null
null
Numpy practice/Numpy11.py
Macorov/Numpy-Python-Practice
0aa296ed690dd0da8f19e7a456a8a665cec94aeb
[ "MIT" ]
null
null
null
import numpy as np s = np.array([[12,41,3,13,312,77],[1,42,913,865,5,21]],dtype='int64') print(s.dtype)
35
70
0.647619
24
105
2.833333
0.875
0
0
0
0
0
0
0
0
0
0
0.270833
0.085714
105
3
71
35
0.4375
0
0
0
0
0
0.048077
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0.333333
1
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
5