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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d22c061581dc640ae10762ea14b2bbcae422190b
| 99
|
py
|
Python
|
common_blocks/preprocessing.py
|
kant/open-solution-salt-identification
|
46703e42d1423395030c155a929f93926838233f
|
[
"MIT"
] | 142
|
2018-09-02T08:59:45.000Z
|
2022-03-30T17:08:24.000Z
|
common_blocks/preprocessing.py
|
kant/open-solution-salt-identification
|
46703e42d1423395030c155a929f93926838233f
|
[
"MIT"
] | 5
|
2021-03-19T16:10:16.000Z
|
2022-03-12T00:55:20.000Z
|
common_blocks/preprocessing.py
|
kant/open-solution-salt-identification
|
46703e42d1423395030c155a929f93926838233f
|
[
"MIT"
] | 75
|
2018-10-04T17:08:40.000Z
|
2022-03-08T18:50:52.000Z
|
import numpy as np
def img_cumsum(img):
return (np.float32(img) - img.mean()).cumsum(axis=0)
| 16.5
| 56
| 0.676768
| 17
| 99
| 3.882353
| 0.705882
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.036145
| 0.161616
| 99
| 5
| 57
| 19.8
| 0.759036
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0.333333
| 0.333333
| 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
| 1
| 1
| 1
| 0
|
0
| 6
|
d2739475542622e1b8b8026e8d241a157d3e365d
| 133
|
py
|
Python
|
boundsdraw/boundsdraw.py
|
ismaelharunid/pytiledboundsdraw
|
d7754a01d44cc41e5ee0406cdbdf30bb1225022e
|
[
"MIT"
] | null | null | null |
boundsdraw/boundsdraw.py
|
ismaelharunid/pytiledboundsdraw
|
d7754a01d44cc41e5ee0406cdbdf30bb1225022e
|
[
"MIT"
] | null | null | null |
boundsdraw/boundsdraw.py
|
ismaelharunid/pytiledboundsdraw
|
d7754a01d44cc41e5ee0406cdbdf30bb1225022e
|
[
"MIT"
] | null | null | null |
from .dummydraw import DummyDraw
class BoundsDraw(DummyDraw):
"""
A drawer manager that maintains bounds.
"""
pass
| 14.777778
| 43
| 0.669173
| 14
| 133
| 6.357143
| 0.857143
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.24812
| 133
| 8
| 44
| 16.625
| 0.89
| 0.293233
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.333333
| 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
| 1
| 1
| 0
| 1
| 0
|
0
| 6
|
9644d30d07a3537d7a3d8ab985fc2d493ae125e0
| 34
|
py
|
Python
|
showcode_forge/scaffolding/__init__.py
|
tituszban/showcode_forge
|
fbd7c0dc346c2248e87979546d780b508af01b80
|
[
"MIT"
] | 3
|
2021-06-18T12:55:11.000Z
|
2021-11-22T18:46:15.000Z
|
showcode_forge/scaffolding/__init__.py
|
tituszban/showcode_forge
|
fbd7c0dc346c2248e87979546d780b508af01b80
|
[
"MIT"
] | null | null | null |
showcode_forge/scaffolding/__init__.py
|
tituszban/showcode_forge
|
fbd7c0dc346c2248e87979546d780b508af01b80
|
[
"MIT"
] | 1
|
2021-06-18T21:35:59.000Z
|
2021-06-18T21:35:59.000Z
|
from .scaffolding import scaffold
| 17
| 33
| 0.852941
| 4
| 34
| 7.25
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.117647
| 34
| 1
| 34
| 34
| 0.966667
| 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
| 1
| 0
|
0
| 6
|
965a505b655a0c135805ed25841a3ce8313f134c
| 47
|
py
|
Python
|
users/backends.py
|
mozilla/gelato.admin
|
7cec1d8ef072208ccf957203351a986329a76f30
|
[
"BSD-3-Clause"
] | null | null | null |
users/backends.py
|
mozilla/gelato.admin
|
7cec1d8ef072208ccf957203351a986329a76f30
|
[
"BSD-3-Clause"
] | 1
|
2019-02-17T17:53:11.000Z
|
2019-02-17T17:53:11.000Z
|
users/backends.py
|
mozilla/gelato.admin
|
7cec1d8ef072208ccf957203351a986329a76f30
|
[
"BSD-3-Clause"
] | 1
|
2019-11-02T23:49:16.000Z
|
2019-11-02T23:49:16.000Z
|
from gelato.models.users import AmoUserBackend
| 23.5
| 46
| 0.87234
| 6
| 47
| 6.833333
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.085106
| 47
| 1
| 47
| 47
| 0.953488
| 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
| 1
| 0
|
0
| 6
|
965c6a5e2b2875769f4880ed693e193ae8c0f6a7
| 31
|
py
|
Python
|
libsaas/services/instagram/__init__.py
|
MidtownFellowship/libsaas
|
541bb731b996b08ede1d91a235cb82895765c38a
|
[
"MIT"
] | 155
|
2015-01-27T15:17:59.000Z
|
2022-02-20T00:14:08.000Z
|
libsaas/services/instagram/__init__.py
|
MidtownFellowship/libsaas
|
541bb731b996b08ede1d91a235cb82895765c38a
|
[
"MIT"
] | 14
|
2015-01-12T08:22:37.000Z
|
2021-06-16T19:49:31.000Z
|
libsaas/services/instagram/__init__.py
|
MidtownFellowship/libsaas
|
541bb731b996b08ede1d91a235cb82895765c38a
|
[
"MIT"
] | 43
|
2015-01-28T22:41:45.000Z
|
2021-09-21T04:44:26.000Z
|
from .service import Instagram
| 15.5
| 30
| 0.83871
| 4
| 31
| 6.5
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.129032
| 31
| 1
| 31
| 31
| 0.962963
| 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
| 1
| 0
|
0
| 6
|
96906720df3f999866c92a374ce9399cfe4a94cf
| 11,281
|
py
|
Python
|
getrecords.py
|
prateek-py/Chess-opening-moves
|
3aeb8a06ef11706a9a217224020a24e39cdc9e00
|
[
"MIT"
] | null | null | null |
getrecords.py
|
prateek-py/Chess-opening-moves
|
3aeb8a06ef11706a9a217224020a24e39cdc9e00
|
[
"MIT"
] | null | null | null |
getrecords.py
|
prateek-py/Chess-opening-moves
|
3aeb8a06ef11706a9a217224020a24e39cdc9e00
|
[
"MIT"
] | null | null | null |
from func import*
from database_setup import*
def make_table_blitz():
'''creates tables for players data and opening data for blitz'''
try:
mycursor.execute("drop table BlitzPlayers")
mycursor.execute("drop table BlitzOpening")
except:
pass
mycursor.execute("CREATE TABLE BlitzPlayers (BplayerID int PRIMARY KEY AUTO_INCREMENT, username VARCHAR(50), name VARCHAR(50))")
mycursor.execute("CREATE TABLE BlitzOpening (id int PRIMARY KEY AUTO_INCREMENT, color VARCHAR(50), moves VARCHAR(50) UNIQUE)")
def make_table_bullet():
'''creates tables for players data and opening data for bullet'''
try:
mycursor.execute("drop table BulletPlayers")
mycursor.execute("drop table BulletOpening")
except:
pass
mycursor.execute("CREATE TABLE BulletPlayers (BplayerID int PRIMARY KEY AUTO_INCREMENT, username VARCHAR(50), name VARCHAR(50))")
mycursor.execute("CREATE TABLE BulletOpening (id int PRIMARY KEY AUTO_INCREMENT, color VARCHAR(50), moves VARCHAR(50) UNIQUE)")
def get_top_players_blitz():
'''fetches the top players in blitz and puts the data in the database'''
js=get_leaderboard_data()
make_table_blitz()
for i in range(len(js['live_blitz'])):
val=js['live_blitz'][i]
if 'name' in val: ## as some players haven't mentioned their names, so we have not taken those entries (could be cheaters + i want names for display in visualizations ahead)
mycursor.execute("INSERT INTO BlitzPlayers (username,name) VALUES (%s,%s)",(val['username'],val['name']))
db.commit()
def get_top_players_bullet():
'''fetches the top players in bullet and puts the data in the database'''
js=get_leaderboard_data()
make_table_bullet()
for i in range(len(js['live_bullet'])):
val=js['live_bullet'][i]
if 'name' in val:
mycursor.execute("INSERT INTO BulletPlayers (username,name) VALUES (%s,%s)",(val['username'],val['name']))
db.commit()
def make_junction_table_blitz():
'''Creates junction tables for bullet game data
It will drop the 2 tables(if present) and create them again after truncating the BlitzOpening table'''
try:
mycursor.execute("drop table BlitzJunctionW")
mycursor.execute("drop table BlitzJunctionB")
except:
pass
mycursor.execute('TRUNCATE BlitzOpening')
mycursor.execute('''CREATE TABLE BlitzJunctionW (
BplayerID int NOT NULL, moveID int NOT NULL,count int NOT NULL,
PRIMARY KEY (BplayerID,moveID),
FOREIGN KEY (BplayerID) REFERENCES BlitzPlayers (BplayerID),
FOREIGN KEY (moveID) REFERENCES BlitzOpening (id) )''')
mycursor.execute('''CREATE TABLE BlitzJunctionB (
BplayerID int NOT NULL, moveID int NOT NULL,count int NOT NULL,
PRIMARY KEY (BplayerID,moveID),
FOREIGN KEY (BplayerID) REFERENCES BlitzPlayers (BplayerID),
FOREIGN KEY (moveID) REFERENCES BlitzOpening (id) )''')
def make_junction_table_bullet():
'''Creates junction tables for bullet game data
It will drop the 2 tables(if present) and create them again after truncating the BulletOpening table'''
try:
mycursor.execute("drop table BulletJunctionW")
mycursor.execute("drop table BulletJunctionB")
except:
pass
mycursor.execute('TRUNCATE BulletOpening')
mycursor.execute('''CREATE TABLE BulletJunctionW (
BplayerID int NOT NULL, moveID int NOT NULL,count int NOT NULL,
PRIMARY KEY (BplayerID,moveID),
FOREIGN KEY (BplayerID) REFERENCES BulletPlayers (BplayerID),
FOREIGN KEY (moveID) REFERENCES BulletOpening (id) )''')
mycursor.execute('''CREATE TABLE BulletJunctionB (
BplayerID int NOT NULL, moveID int NOT NULL,count int NOT NULL,
PRIMARY KEY (BplayerID,moveID),
FOREIGN KEY (BplayerID) REFERENCES BulletPlayers (BplayerID),
FOREIGN KEY (moveID) REFERENCES BulletOpening (id) )''')
def get_top_moves_blitz(mingames=100):
'''Selects the players from the top players table and finds the opening move played by them
and stores them into the database. For each player it fetches min 'mingames' no. of games. '''
make_junction_table_blitz()
mycursor.execute("SELECT * FROM BlitzPlayers")
for x in mycursor:
dicW, dicB={}, {}
game_data_list=get_min_games(x[1], 'blitz', mingames)
count=0
for i in range(len(game_data_list)):
try:
move=get_opening_move(game_data_list[i],x[1])
except:
pass
else:
if move!=None:
if get_color(game_data_list[i],x[1])=='W':
dicW[move]= dicW.setdefault(move, 0)+1
else:
dicB[move]= dicB.setdefault(move, 0)+1
for i in dicW.keys():
try:
cursorformoves.execute("INSERT INTO BlitzOpening (color,moves) VALUES (%s,%s)",('W',i))
db.commit()
except:
pass
for i in dicB.keys():
try:
cursorformoves.execute("INSERT INTO BlitzOpening (color,moves) VALUES (%s,%s)",('B',i))
db.commit()
except:
pass
for k,v in dicW.items():
cursorformoves.execute("SELECT id FROM BlitzOpening WHERE moves=%s",(k,))
mId=cursorformoves.fetchone()
cursorformoves.execute("INSERT INTO BlitzJunctionW (BplayerID,moveid,count) VALUES (%s,%s,%s)",(x[0],mId[0],v))
db.commit()
for k,v in dicB.items():
cursorformoves.execute("SELECT id FROM BlitzOpening WHERE moves=%s",(k,))
mId=cursorformoves.fetchone()
cursorformoves.execute("INSERT INTO BlitzJunctionB (BplayerID,moveid,count) VALUES (%s,%s,%s)",(x[0],mId[0],v))
db.commit()
def get_top_moves_bullet(mingames=100):
'''Selects the players from the top players table and finds the opening move played by them
and stores them into the database. For each player it fetches min 'mingames' no. of games. '''
make_junction_table_bullet()
mycursor.execute("SELECT * FROM BulletPlayers")
for x in mycursor:
dicW, dicB={}, {}
game_data_list=get_min_games(x[1], 'bullet', 100)
count=0
for i in range(len(game_data_list)):
try:
move=get_opening_move(game_data_list[i],x[1])
except:
pass
else:
if move!=None:
if get_color(game_data_list[i],x[1])=='W':
dicW[move]= dicW.setdefault(move, 0)+1
else:
dicB[move]= dicB.setdefault(move, 0)+1
for i in dicW.keys():
try:
cursorformoves.execute("INSERT INTO BulletOpening (color,moves) VALUES (%s,%s)",('W',i))
db.commit()
except:
pass
for i in dicB.keys():
try:
cursorformoves.execute("INSERT INTO BulletOpening (color,moves) VALUES (%s,%s)",('B',i))
db.commit()
except:
pass
for k,v in dicW.items():
cursorformoves.execute("SELECT id FROM BulletOpening WHERE moves=%s",(k,))
mId=cursorformoves.fetchone()
cursorformoves.execute("INSERT INTO BulletJunctionW (BplayerID,moveid,count) VALUES (%s,%s,%s)",(x[0],mId[0],v))
db.commit()
for k,v in dicB.items():
cursorformoves.execute("SELECT id FROM BulletOpening WHERE moves=%s",(k,))
mId=cursorformoves.fetchone()
cursorformoves.execute("INSERT INTO BulletJunctionB (BplayerID,moveid,count) VALUES (%s,%s,%s)",(x[0],mId[0],v))
db.commit()
def moves_frequency_BlitzW():
'''It will provide us with the total count each of all the different moves played as white in Blitz'''
dict_move={}
cursorformoves = db.cursor(buffered=True)
mycursor.execute("SELECT * FROM blitzopening WHERE color='W'")
for x in mycursor:
cursorformoves.execute("SELECT SUM(count) FROM BlitzJunctionW WHERE moveID=%s",(x[0],))
for y in cursorformoves:
dict_move[x[2]] = int(y[0])
return dict(sorted(dict_move.items(),key= lambda x:x[1], reverse=True))
def moves_frequency_BlitzB():
'''It will provide us with the total count each of all the different moves played as black in Blitz'''
dict_move={}
cursorformoves = db.cursor(buffered=True)
mycursor.execute("SELECT * FROM blitzopening WHERE color='B'")
for x in mycursor:
cursorformoves.execute("SELECT SUM(count) FROM BlitzJunctionB WHERE moveID=%s",(x[0],))
for y in cursorformoves:
dict_move[x[2]] = int(y[0])
return dict(sorted(dict_move.items(),key= lambda x:x[1], reverse=True))
def moves_frequency_BulletW():
'''It will provide us with the total count each of all the different moves played as white in Bullet'''
dict_move={}
cursorformoves = db.cursor(buffered=True)
mycursor.execute("SELECT * FROM bulletopening WHERE color='W'")
for x in mycursor:
cursorformoves.execute("SELECT SUM(count) FROM BulletJunctionW WHERE moveID=%s",(x[0],))
for y in cursorformoves:
dict_move[x[2]] = int(y[0])
return dict(sorted(dict_move.items(),key= lambda x:x[1], reverse=True))
def moves_frequency_BulletB():
'''It will provide us with the total count each of all the different moves played as black in Bullet'''
dict_move={}
cursorformoves = db.cursor(buffered=True)
mycursor.execute("SELECT * FROM bulletopening WHERE color='B'")
for x in mycursor:
cursorformoves.execute("SELECT SUM(count) FROM BulletJunctionB WHERE moveID=%s",(x[0],))
for y in cursorformoves:
dict_move[x[2]] = int(y[0])
return dict(sorted(dict_move.items(),key= lambda x:x[1], reverse=True))
if __name__ == "__main__":
# get the records in the database of the opening chess moves by the top players
get_top_players_blitz()
get_top_players_bullet()
get_top_moves_blitz(100) # specify the min number of games to fetch the opening moves from for blitz games per player
get_top_moves_bullet(100) # specify the min number of games to fetch the opening moves from for bullet games per player
#do note that the more the games the slower the fetching would be
| 47.004167
| 187
| 0.596046
| 1,364
| 11,281
| 4.84824
| 0.128299
| 0.058975
| 0.018146
| 0.029034
| 0.794344
| 0.756238
| 0.735672
| 0.729623
| 0.729623
| 0.716316
| 0
| 0.009269
| 0.301835
| 11,281
| 240
| 188
| 47.004167
| 0.830371
| 0.157522
| 0
| 0.645503
| 0
| 0.010582
| 0.39503
| 0.010194
| 0
| 0
| 0
| 0
| 0
| 1
| 0.063492
| false
| 0.05291
| 0.010582
| 0
| 0.095238
| 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
| 1
| 0
| 0
| 0
| 0
|
0
| 6
|
73850a3c01e90076f5db204b1c59fe8d62d83073
| 157
|
py
|
Python
|
jumpscale/sals/marketplace/__init__.py
|
zaibon/js-sdk
|
cd1d26f2c3343884c1927ceef7c1e12e3f7da905
|
[
"Apache-2.0"
] | 13
|
2020-09-02T09:05:08.000Z
|
2022-03-12T02:43:24.000Z
|
jumpscale/sals/marketplace/__init__.py
|
zaibon/js-sdk
|
cd1d26f2c3343884c1927ceef7c1e12e3f7da905
|
[
"Apache-2.0"
] | 1,998
|
2020-06-15T11:46:10.000Z
|
2022-03-24T22:12:41.000Z
|
jumpscale/sals/marketplace/__init__.py
|
zaibon/js-sdk
|
cd1d26f2c3343884c1927ceef7c1e12e3f7da905
|
[
"Apache-2.0"
] | 8
|
2020-09-29T06:50:35.000Z
|
2021-06-14T03:30:52.000Z
|
from .chatflow import MarketPlaceChatflow
from .apps_chatflow import MarketPlaceAppsChatflow
from .deployer import deployer
from .solutions import solutions
| 31.4
| 50
| 0.872611
| 17
| 157
| 8
| 0.470588
| 0.205882
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.101911
| 157
| 4
| 51
| 39.25
| 0.964539
| 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
| 1
| 0
|
0
| 6
|
73cda64c9d42829ab8cef024912d2b9dfaf66cb6
| 7,655
|
py
|
Python
|
venv3/lib/python3.8/site-packages/tests/test_vcs_configuration.py
|
paul-romeo/pytest-in-60-minutes
|
a4817312081347737f87801c0623054eba599418
|
[
"MIT"
] | 94
|
2016-05-23T17:13:11.000Z
|
2021-12-03T23:06:45.000Z
|
venv3/lib/python3.8/site-packages/tests/test_vcs_configuration.py
|
paul-romeo/pytest-in-60-minutes
|
a4817312081347737f87801c0623054eba599418
|
[
"MIT"
] | 39
|
2016-05-19T17:57:53.000Z
|
2020-12-26T09:57:21.000Z
|
venv3/lib/python3.8/site-packages/tests/test_vcs_configuration.py
|
paul-romeo/pytest-in-60-minutes
|
a4817312081347737f87801c0623054eba599418
|
[
"MIT"
] | 15
|
2016-05-23T20:22:37.000Z
|
2019-12-27T21:13:04.000Z
|
import pytest
from punch import vcs_configuration as vc
@pytest.fixture
def global_variables():
return {
'serializer': '{{ major }}.{{ minor }}.{{ patch }}',
'mark': 'just a mark'
}
@pytest.fixture
def vcs_config_dict():
return {
'name': 'git',
'commit_message': "Version updated to {{ new_version }}",
'finish_release': True,
'options': {
'make_release_branch': False,
'annotate_tags': False,
'annotation_message': '',
}
}
@pytest.fixture
def vcs_config_dict_with_include_files(vcs_config_dict):
vcs_config_dict['include_files'] = ['HISTORY.rst']
return vcs_config_dict
@pytest.fixture
def vcs_config_dict_with_include_all_files(vcs_config_dict):
vcs_config_dict['include_all_files'] = True
return vcs_config_dict
@pytest.fixture
def special_variables():
return {
'current_version': '1.2.3',
'new_version': '1.3.0'
}
def test_vcs_configuration_from_string(
vcs_config_dict, global_variables, special_variables):
vcsconf = vc.VCSConfiguration(vcs_config_dict['name'],
vcs_config_dict['options'],
global_variables,
special_variables,
vcs_config_dict['commit_message']
)
expected_options = {
'make_release_branch': False,
'annotate_tags': False,
'annotation_message': '',
'current_version': '1.2.3',
'new_version': '1.3.0'
}
assert vcsconf.name == 'git'
assert vcsconf.commit_message == "Version updated to 1.3.0"
assert vcsconf.include_files == []
assert vcsconf.finish_release is True
assert vcsconf.options == expected_options
def test_vcs_configuration_from_string_with_include_files(
vcs_config_dict_with_include_files,
global_variables, special_variables):
vcsconf = vc.VCSConfiguration(
vcs_config_dict_with_include_files['name'],
vcs_config_dict_with_include_files['options'],
global_variables,
special_variables,
vcs_config_dict_with_include_files['commit_message'],
include_files=vcs_config_dict_with_include_files['include_files']
)
assert vcsconf.include_files == ['HISTORY.rst']
def test_vcs_configuration_from_string_with_include_all_files(
vcs_config_dict_with_include_all_files,
global_variables, special_variables):
vcsconf = vc.VCSConfiguration(
vcs_config_dict_with_include_all_files['name'],
vcs_config_dict_with_include_all_files['options'],
global_variables,
special_variables,
vcs_config_dict_with_include_all_files['commit_message'],
include_all_files=vcs_config_dict_with_include_all_files[
'include_all_files']
)
assert vcsconf.include_all_files is True
def test_vcs_configuration_from_dict(
vcs_config_dict, global_variables, special_variables):
vcsconf = vc.VCSConfiguration.from_dict(
vcs_config_dict,
global_variables,
special_variables
)
expected_options = {
'make_release_branch': False,
'annotate_tags': False,
'annotation_message': '',
'current_version': '1.2.3',
'new_version': '1.3.0'
}
assert vcsconf.name == 'git'
assert vcsconf.commit_message == "Version updated to 1.3.0"
assert vcsconf.include_files == []
assert vcsconf.finish_release is True
assert vcsconf.options == expected_options
def test_vcs_configuration_from_dict_with_include_files(
vcs_config_dict_with_include_files,
global_variables, special_variables):
vcsconf = vc.VCSConfiguration.from_dict(
vcs_config_dict_with_include_files,
global_variables,
special_variables
)
assert vcsconf.include_files == ['HISTORY.rst']
def test_vcs_configuration_from_dict_with_include_all_files(
vcs_config_dict_with_include_all_files,
global_variables, special_variables):
vcsconf = vc.VCSConfiguration.from_dict(
vcs_config_dict_with_include_all_files,
global_variables,
special_variables
)
assert vcsconf.include_all_files is True
def test_vcs_configuration_from_dict_without_commit_message(
vcs_config_dict, global_variables, special_variables):
vcs_config_dict.pop('commit_message')
vcsconf = vc.VCSConfiguration.from_dict(
vcs_config_dict,
global_variables,
special_variables
)
expected_options = {
'make_release_branch': False,
'annotate_tags': False,
'annotation_message': '',
'current_version': '1.2.3',
'new_version': '1.3.0'
}
assert vcsconf.name == 'git'
assert vcsconf.commit_message == "Version updated 1.2.3 -> 1.3.0"
assert vcsconf.include_files == []
assert vcsconf.finish_release is True
assert vcsconf.options == expected_options
def test_vcs_configuration_from_dict_without_finish_release(
vcs_config_dict, global_variables, special_variables):
vcs_config_dict.pop('finish_release')
vcsconf = vc.VCSConfiguration.from_dict(
vcs_config_dict,
global_variables,
special_variables
)
expected_options = {
'make_release_branch': False,
'annotate_tags': False,
'annotation_message': '',
'current_version': '1.2.3',
'new_version': '1.3.0'
}
assert vcsconf.name == 'git'
assert vcsconf.commit_message == "Version updated to 1.3.0"
assert vcsconf.include_files == []
assert vcsconf.finish_release is True
assert vcsconf.options == expected_options
def test_vcs_configuration_from_dict_without_options(
vcs_config_dict, global_variables, special_variables):
vcs_config_dict.pop('options')
vcsconf = vc.VCSConfiguration.from_dict(
vcs_config_dict,
global_variables,
special_variables
)
assert vcsconf.name == 'git'
assert vcsconf.commit_message == "Version updated to 1.3.0"
assert vcsconf.finish_release is True
def test_vcs_configuration_from_dict_can_use_global_variables(
vcs_config_dict, global_variables, special_variables):
vcs_config_dict['commit_message'] = "Mark: {{ mark }}"
vcsconf = vc.VCSConfiguration.from_dict(
vcs_config_dict,
global_variables,
special_variables
)
assert vcsconf.commit_message == "Mark: just a mark"
def test_vcs_configuration_from_dict_special_variables_take_precedence(
vcs_config_dict, global_variables, special_variables):
vcs_config_dict['commit_message'] = "{{ current_version }}"
global_variables['current_version'] = "5.0.0"
vcsconf = vc.VCSConfiguration.from_dict(
vcs_config_dict,
global_variables,
special_variables
)
assert vcsconf.commit_message == "1.2.3"
def test_vcs_configuration_from_dict_options_templates_are_processed(
vcs_config_dict, global_variables, special_variables):
vcs_config_dict['options']['annotation_message'] = \
"Updated {{ current_version}} -> {{ new_version }}"
vcsconf = vc.VCSConfiguration.from_dict(
vcs_config_dict,
global_variables,
special_variables
)
expected_options = {
'make_release_branch': False,
'annotate_tags': False,
'annotation_message': 'Updated 1.2.3 -> 1.3.0',
'current_version': '1.2.3',
'new_version': '1.3.0'
}
assert vcsconf.options == expected_options
| 29.670543
| 73
| 0.677204
| 883
| 7,655
| 5.434881
| 0.078143
| 0.088143
| 0.127318
| 0.155032
| 0.885184
| 0.874557
| 0.844968
| 0.812253
| 0.758075
| 0.746197
| 0
| 0.011236
| 0.232658
| 7,655
| 257
| 74
| 29.785992
| 0.805754
| 0
| 0
| 0.64532
| 0
| 0
| 0.156891
| 0
| 0
| 0
| 0
| 0
| 0.147783
| 1
| 0.083744
| false
| 0
| 0.009852
| 0.014778
| 0.118227
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 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
| 6
|
73ed5effd9443babc149b43193467b020fbd7975
| 40
|
py
|
Python
|
starterlite/util/__init__.py
|
gjsun/starterlite
|
4838c0b9837e0012157596984f9e39ed52f9c86c
|
[
"MIT"
] | null | null | null |
starterlite/util/__init__.py
|
gjsun/starterlite
|
4838c0b9837e0012157596984f9e39ed52f9c86c
|
[
"MIT"
] | null | null | null |
starterlite/util/__init__.py
|
gjsun/starterlite
|
4838c0b9837e0012157596984f9e39ed52f9c86c
|
[
"MIT"
] | null | null | null |
from .ParameterFile import ParameterFile
| 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
| 1
| 0
|
0
| 6
|
fb44bbfac8317c7908dea2d2ff7e58a81aef0c2a
| 1,842
|
py
|
Python
|
test_app.py
|
3l3n01/lift-pass
|
5253d00311ac0133249de2e368b6ee51cea13e93
|
[
"MIT"
] | null | null | null |
test_app.py
|
3l3n01/lift-pass
|
5253d00311ac0133249de2e368b6ee51cea13e93
|
[
"MIT"
] | null | null | null |
test_app.py
|
3l3n01/lift-pass
|
5253d00311ac0133249de2e368b6ee51cea13e93
|
[
"MIT"
] | null | null | null |
import pytest
from src.app import app
def test_base():
with app.test_client() as client:
response = client.get(
'/prices', query_string={'age': 20, 'date': '2020-05-08', 'type': 'Jour'})
json_data = response.get_json()
assert json_data['cost'] == 35
def test_night():
with app.test_client() as client:
response = client.get(
'/prices', query_string={'age': 20, 'date': '2020-05-08', 'type': 'Night'})
json_data = response.get_json()
assert json_data['cost'] == 19
def test_child():
with app.test_client() as client:
response = client.get(
'/prices', query_string={'age': 5, 'date': '2020-05-08', 'type': 'Jour'})
json_data = response.get_json()
assert json_data['cost'] == 0
def test_elderly():
with app.test_client() as client:
response = client.get(
'/prices', query_string={'age': 65, 'date': '2020-05-08', 'type': 'Jour'})
json_data = response.get_json()
assert json_data['cost'] == 27
def test_elderly_night():
with app.test_client() as client:
response = client.get(
'/prices', query_string={'age': 65, 'date': '2020-05-08', 'type': 'Night'})
json_data = response.get_json()
assert json_data['cost'] == 8
def test_holiday():
with app.test_client() as client:
response = client.get(
'/prices', query_string={'age': 20, 'date': '2020-12-25', 'type': 'Jour'})
json_data = response.get_json()
assert json_data['cost'] == 35
def test_monday():
with app.test_client() as client:
response = client.get(
'/prices', query_string={'age': 20, 'date': '2020-05-04', 'type': 'Jour'})
json_data = response.get_json()
assert json_data['cost'] == 23
| 27.492537
| 87
| 0.573833
| 239
| 1,842
| 4.242678
| 0.1841
| 0.110454
| 0.075937
| 0.117357
| 0.884615
| 0.884615
| 0.884615
| 0.884615
| 0.884615
| 0.884615
| 0
| 0.058995
| 0.254615
| 1,842
| 66
| 88
| 27.909091
| 0.679534
| 0
| 0
| 0.522727
| 0
| 0
| 0.137894
| 0
| 0
| 0
| 0
| 0
| 0.159091
| 1
| 0.159091
| false
| 0
| 0.045455
| 0
| 0.204545
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 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
| 6
|
837b35b49fb7fd383f65f141fb6e8256db2bd140
| 6,364
|
py
|
Python
|
BRATS/data/singlepath.py
|
eanemo/KiU-Net-pytorch
|
9786f9741e2abf8bbf3601c6af301868ed8c3965
|
[
"MIT"
] | 236
|
2020-06-08T06:49:54.000Z
|
2022-03-28T13:57:58.000Z
|
BRATS/data/singlepath.py
|
guopengf/KiU-Net-pytorch
|
f56e79d7e89016e0ee13a081a9bee1ded1b68cba
|
[
"MIT"
] | 28
|
2020-07-08T12:20:34.000Z
|
2022-03-14T12:27:36.000Z
|
BRATS/data/singlepath.py
|
guopengf/KiU-Net-pytorch
|
f56e79d7e89016e0ee13a081a9bee1ded1b68cba
|
[
"MIT"
] | 59
|
2020-06-12T01:19:29.000Z
|
2022-03-11T02:08:14.000Z
|
#echo $OMP_NUM_THREADS
import pickle
import time
import os
import torch
from torch.utils.data import Dataset
from .rand import Uniform
from .transforms import Rot90, Flip, Identity, Spatial, Compose
from .transforms import GaussianBlur, Noise, Normalize, RandSelect
from .transforms import RandCrop, CenterCrop, Pad
from .transforms import NumpyType
from .data_utils import pkload, gen_feats
import numpy as np
class SingleData28(Dataset):
def __init__(self, list_file, root='', for_train=False,
transforms='', return_target=True, crop=True):
paths, names = [], []
with open(list_file) as f:
for line in f:
line = line.strip()
name = line.split('/')[-1]
names.append(name)
path = os.path.join(root, line , name + '_')
paths.append(path)
self.names = names
self.paths = paths
self.return_target = return_target
self.transforms = eval(transforms or 'Identity()')
self.feats = gen_feats()
def __getitem__(self, index):
path = self.paths[index]
x, y = pkload(path + 'data_f32.pkl')
x = np.concatenate([x, self.feats], -1)
mask = np.load(path + 'HarvardOxford-sub.npy')
# transforms work with nhwtc
x, y, mask = x[None, ...], y[None, ...], mask[None, ...]
done = False
if self.return_target:
while not done:
a, b, c = self.transforms([x, y, mask])
if b.sum() > 0:
done = True
x, y, mask = a, b, c
else:
x, mask = self.transforms([x, mask])
y = np.array([1])
x = np.ascontiguousarray(x.transpose(0, 4, 1, 2, 3))
y = np.ascontiguousarray(y)
x, y, mask = torch.from_numpy(x), torch.from_numpy(y), torch.from_numpy(mask)
return x, y, mask
def __len__(self):
return len(self.names)
def collate(self, batch):
return [torch.cat(v) for v in zip(*batch)]
#@staticmethod
#def add_mask(x, mask, dim=1):
# mask = mask.unsqueeze(dim)
# shape = list(x.shape); shape[dim] += 21
# new_x = x.new(*shape).zero_()
# new_x = new_x.scatter_(dim, mask, 1.0)
# s = [slice(None)]*len(shape)
# s[dim] = slice(21, None)
# new_x[s] = x
# return new_x
class SingleData25(Dataset):
def __init__(self, list_file, root='', for_train=False,
transforms='', return_target=True, crop=True):
paths, names = [], []
with open(list_file) as f:
for line in f:
line = line.strip()
name = line.split('/')[-1]
names.append(name)
path = os.path.join(root, line , name + '_')
paths.append(path)
self.names = names
self.paths = paths
self.return_target = return_target
self.transforms = eval(transforms or 'Identity()')
def __getitem__(self, index):
path = self.paths[index]
x, y = pkload(path + 'data_f32.pkl')
mask = np.load(path + 'HarvardOxford-sub.npy')
# transforms work with nhwtc
x, y, mask = x[None, ...], y[None, ...], mask[None, ...]
done = False
if self.return_target:
while not done:
a, b, c = self.transforms([x, y, mask])
if b.sum() > 0:
done = True
x, y, mask = a, b, c
else:
x, mask = self.transforms([x, mask])
y = np.array([1])
x = np.ascontiguousarray(x.transpose(0, 4, 1, 2, 3))
y = np.ascontiguousarray(y)
x, y, mask = torch.from_numpy(x), torch.from_numpy(y), torch.from_numpy(mask)
return x, y, mask
def __len__(self):
return len(self.names)
def collate(self, batch):
return [torch.cat(v) for v in zip(*batch)]
#@staticmethod
#def add_mask(x, mask, dim=1):
# mask = mask.unsqueeze(dim)
# shape = list(x.shape); shape[dim] += 21
# new_x = x.new(*shape).zero_()
# new_x = new_x.scatter_(dim, mask, 1.0)
# s = [slice(None)]*len(shape)
# s[dim] = slice(21, None)
# new_x[s] = x
# return new_x
class SingleData(Dataset):
def __init__(self, list_file, root='', for_train=False,
transforms='', return_target=True, crop=True):
paths, names = [], []
with open(list_file) as f:
for line in f:
line = line.strip()
name = line.split('/')[-1]
names.append(name)
path = os.path.join(root, line , name + '_')
paths.append(path)
self.names = names
self.paths = paths
self.return_target = return_target
self.transforms = eval(transforms or 'Identity()')
def __getitem__(self, index):
path = self.paths[index]
x, y = pkload(path + 'data_f32.pkl')
# transforms work with nhwtc
x, y = x[None, ...], y[None, ...]
done = False
if self.return_target:
while not done:
a, b = self.transforms([x, y])
if b.sum() > 0:
done = True
x, y = a, b
else:
x = self.transforms(x)
x = np.ascontiguousarray(x.transpose(0, 4, 1, 2, 3))
y = np.ascontiguousarray(y)
x, y = torch.from_numpy(x), torch.from_numpy(y)
return x, y
def __len__(self):
return len(self.names)
def collate(self, batch):
return [torch.cat(v) for v in zip(*batch)]
#S = '''Compose([
# RandCrop(128),
# Rot90(axes=(0,1)),
# ])'''
#
#S = '''Compose([
# Pad((0, 0, 5, 0)),
# Rot90(axes=(0,1)),
# ])'''
#
#root = '/home/thuyen/Data/brats17/Brats17TrainingData/'
#file_list = root + 'all.txt'
##dset = SingleData(file_list, root=root, for_train=True)
#dset = SingleData(file_list, root=root, for_train=True, geo_transforms=S)
#print(dset.paths[0])
#print(dset.names[0])
#x, y = dset[0]
#print(x.shape, y.shape)
#exit(0)
#import time
#start = time.time()
##for i in range(len(dset)):
#for i in range(10):
# dset[i]
# #x1, x2, y, c = dset[0]
# print(time.time() - start)
# start = time.time()
#
| 28.035242
| 85
| 0.533155
| 831
| 6,364
| 3.965102
| 0.162455
| 0.011533
| 0.018209
| 0.016388
| 0.769348
| 0.769348
| 0.76176
| 0.76176
| 0.747496
| 0.722003
| 0
| 0.018076
| 0.321967
| 6,364
| 226
| 86
| 28.159292
| 0.745539
| 0.197989
| 0
| 0.81746
| 0
| 0
| 0.022579
| 0.008318
| 0
| 0
| 0
| 0
| 0
| 1
| 0.095238
| false
| 0
| 0.095238
| 0.047619
| 0.285714
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 6
|
837b8d971cd2bf4cedc8ab72a3007a4bd5ad0d83
| 1,725
|
py
|
Python
|
4-5.Bert-seq2seq/mask_demo.py
|
techthiyanes/nlp-notebook
|
0e5f4b75e635128d4056c89a6c65bea60c15e836
|
[
"MIT"
] | 136
|
2021-04-18T12:03:55.000Z
|
2022-03-31T14:58:46.000Z
|
cn_summary/engine/bert_seq2seq_summarizer/mask_demo.py
|
ethan-iai/cn-summary
|
e8db43a74ebe0278e4cff5f37157b1414c120deb
|
[
"MIT"
] | 3
|
2021-08-08T08:38:06.000Z
|
2022-03-26T17:17:40.000Z
|
cn_summary/engine/bert_seq2seq_summarizer/mask_demo.py
|
ethan-iai/cn-summary
|
e8db43a74ebe0278e4cff5f37157b1414c120deb
|
[
"MIT"
] | 40
|
2021-05-18T06:55:37.000Z
|
2022-03-30T00:47:12.000Z
|
# -*- coding: utf-8 -*-
'''
假设输入的input_ids 为:[[101,5,6,7,102,3,9,102],[101,10,11,102,7,9,102,0],,[101,10,102,7,9,102,0,0]]
其中:101代表[CLS],102代表[SEP],0代表[PAD]
对应的 token_type_ids_for_mask 为:[[1,1,1,1,1,0,0,0],[1,1,1,1,0,0,0,-1],[1,1,1,0,0,0,-1,-1]]
构造如下特殊的 mask ,使得输入部分的Attention是双向的,输出部分的Attention是单向:
tensor([[[[1., 1., 1., 1., 1., 0., 0., 0.],
[1., 1., 1., 1., 1., 0., 0., 0.],
[1., 1., 1., 1., 1., 0., 0., 0.],
[1., 1., 1., 1., 1., 0., 0., 0.],
[1., 1., 1., 1., 1., 0., 0., 0.],
[1., 1., 1., 1., 1., 1., 0., 0.],
[1., 1., 1., 1., 1., 1., 1., 0.],
[1., 1., 1., 1., 1., 1., 1., 1.]]],
[[[1., 1., 1., 1., 0., 0., 0., 0.],
[1., 1., 1., 1., 0., 0., 0., 0.],
[1., 1., 1., 1., 0., 0., 0., 0.],
[1., 1., 1., 1., 0., 0., 0., 0.],
[1., 1., 1., 1., 1., 0., 0., 0.],
[1., 1., 1., 1., 1., 1., 0., 0.],
[1., 1., 1., 1., 1., 1., 1., 0.],
[0., 0., 0., 0., 0., 0., 0., 0.]]],
[[[1., 1., 1., 0., 0., 0., 0., 0.],
[1., 1., 1., 0., 0., 0., 0., 0.],
[1., 1., 1., 0., 0., 0., 0., 0.],
[1., 1., 1., 1., 0., 0., 0., 0.],
[1., 1., 1., 1., 1., 0., 0., 0.],
[1., 1., 1., 1., 1., 1., 0., 0.],
[0., 0., 0., 0., 0., 0., 0., 0.],
[0., 0., 0., 0., 0., 0., 0., 0.]]]])
'''
import torch
token_type_ids_for_mask = torch.tensor([[1,1,1,1,1,0,0,0],[1,1,1,1,0,0,0,-1],[1,1,1,0,0,0,-1,-1]])
mask = torch.ones((1, 1, 8, 8), dtype=torch.float32).tril()
t1 = token_type_ids_for_mask.unsqueeze(1).unsqueeze(2).float()
t2 = (token_type_ids_for_mask != -1).unsqueeze(1).unsqueeze(3).float()
mask = ((mask+t1)*t2 > 0).float()
print(mask)
| 38.333333
| 98
| 0.362899
| 340
| 1,725
| 1.791176
| 0.132353
| 0.351396
| 0.384236
| 0.341544
| 0.568145
| 0.413793
| 0.413793
| 0.413793
| 0.413793
| 0.413793
| 0
| 0.245433
| 0.270145
| 1,725
| 45
| 99
| 38.333333
| 0.238284
| 0.788986
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.142857
| 0
| 0.142857
| 0.142857
| 0
| 0
| 1
| 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
| 6
|
83842f07f71d3b2f6f21033d49e60642f492e9bd
| 25,224
|
py
|
Python
|
tests/query/v1/test_yield.py
|
nevermore3/nebula-graph
|
6f24438289c2b20575bc6acdf607cd2a3648d30d
|
[
"Apache-2.0"
] | null | null | null |
tests/query/v1/test_yield.py
|
nevermore3/nebula-graph
|
6f24438289c2b20575bc6acdf607cd2a3648d30d
|
[
"Apache-2.0"
] | null | null | null |
tests/query/v1/test_yield.py
|
nevermore3/nebula-graph
|
6f24438289c2b20575bc6acdf607cd2a3648d30d
|
[
"Apache-2.0"
] | null | null | null |
# --coding:utf-8--
#
# Copyright (c) 2020 vesoft inc. All rights reserved.
#
# This source code is licensed under Apache 2.0 License,
# attached with Common Clause Condition 1.0, found in the LICENSES directory.
import pytest
from nebula2.graph import ttypes
from tests.common.nebula_test_suite import NebulaTestSuite
class TestYield(NebulaTestSuite):
@classmethod
def prepare(self):
self.use_nba()
def test_base(self):
query = 'YIELD 1'
resp = self.execute(query)
self.check_resp_succeeded(resp)
self.check_column_names(resp, ['1'])
self.check_result(resp, [[1]])
query = "YIELD 1+1, '1+1', (int)3.14, (string)(1+1), (string)true"
resp = self.execute(query)
self.check_resp_succeeded(resp)
columns = [
"(1+1)", "1+1", "(INT)3.14", "(STRING)(1+1)", "(STRING)true"
]
self.check_column_names(resp, columns)
expect_result = [[2, "1+1", 3, "2", "true"]]
self.check_result(resp, expect_result)
query = 'YIELD "Hello", hash("Hello")'
resp = self.execute(query)
self.check_resp_succeeded(resp)
columns = ["Hello", "hash(Hello)"]
self.check_column_names(resp, columns)
expect_result = [['Hello', 2275118702903107253]]
self.check_result(resp, expect_result)
def test_hash_call(self):
query = 'YIELD hash("Boris")'
resp = self.execute(query)
self.check_resp_succeeded(resp)
columns = ["hash(Boris)"]
self.check_column_names(resp, columns)
expect_result = [[9126854228122744212]]
self.check_result(resp, expect_result)
query = 'YIELD hash(123)'
resp = self.execute(query)
self.check_resp_succeeded(resp)
columns = ["hash(123)"]
self.check_column_names(resp, columns)
expect_result = [[123]]
self.check_result(resp, expect_result)
query = 'YIELD hash(123 + 456)'
resp = self.execute(query)
self.check_resp_succeeded(resp)
columns = ["hash((123+456))"]
self.check_column_names(resp, columns)
expect_result = [[579]]
self.check_result(resp, expect_result)
query = 'YIELD hash(123.0)'
resp = self.execute(query)
self.check_resp_succeeded(resp)
columns = ["hash(123.0)"]
# self.check_column_names(resp, columns)
expect_result = [[-2256853663865737834]]
self.check_result(resp, expect_result)
# query = 'YIELD hash(!0)'
# resp = self.execute(query)
# self.check_resp_succeeded(resp)
# columns = ["hash(!(0))"]
# self.check_column_names(resp, columns)
# expect_result = [[1]]
# self.check_result(resp, expect_result)
def test_logic(self):
query = 'YIELD NOT FALSE OR FALSE AND FALSE XOR FALSE'
resp = self.execute(query)
self.check_resp_succeeded(resp)
columns = ["((!(false) OR (false AND false)) XOR false)"]
self.check_column_names(resp, columns)
expect_result = [[True]]
self.check_result(resp, expect_result)
query = 'YIELD !false OR false AND false XOR true'
resp = self.execute(query)
self.check_resp_succeeded(resp)
columns = ["((!(false) OR (false AND false)) XOR true)"]
self.check_column_names(resp, columns)
expect_result = [[False]]
self.check_result(resp, expect_result)
query = 'YIELD (NOT false OR false) AND false XOR true'
resp = self.execute(query)
self.check_resp_succeeded(resp)
columns = ["(((!(false) OR false) AND false) XOR true)"]
self.check_column_names(resp, columns)
expect_result = [[True]]
self.check_result(resp, expect_result)
@pytest.mark.skip(reason="")
def test_logic_2(self):
query = 'YIELD NOT 0 OR 0 AND 0 XOR 0'
resp = self.execute(query)
self.check_resp_succeeded(resp)
columns = ["((!(0) OR (0 AND 0)) XOR 0)"]
self.check_column_names(resp, columns)
expect_result = [[True]]
self.check_result(resp, expect_result)
query = 'YIELD !0 OR 0 AND 0 XOR 1'
resp = self.execute(query)
self.check_resp_succeeded(resp)
columns = ["((!(0) OR (0 AND 0)) XOR 1)"]
self.check_column_names(resp, columns)
expect_result = [[False]]
self.check_result(resp, expect_result)
query = 'YIELD (NOT 0 OR 0) AND 0 XOR 1'
resp = self.execute(query)
self.check_resp_succeeded(resp)
columns = ["(((!(0) OR 0) AND 0) XOR 1)"]
self.check_column_names(resp, columns)
expect_result = [[True]]
self.check_result(resp, expect_result)
query = 'YIELD 2.5 % 1.2 XOR 1.6'
resp = self.execute(query)
self.check_resp_succeeded(resp)
columns = ["(2.500000000000000%(1.200000000000000 XOR 1.600000000000000))"]
self.check_column_names(resp, columns)
expect_result = [[2.5]]
self.check_result(resp, expect_result)
query = 'YIELD (5 % 3) XOR 1'
resp = self.execute(query)
self.check_resp_succeeded(resp)
columns = ["((5%3) XOR 1)"]
self.check_column_names(resp, columns)
expect_result = [[3]]
self.check_result(resp, expect_result)
def test_in_call(self):
query = 'YIELD 1 IN [0,1,2], 123'
resp = self.execute(query)
self.check_resp_succeeded(resp)
columns = ["(1 IN [0,1,2])", "123"]
self.check_column_names(resp, columns)
expect_result = [[True, 123]]
self.check_result(resp, expect_result)
def test_yield_pipe(self):
query = '''GO FROM "Boris Diaw" OVER serve \
YIELD $^.player.name as name, serve.start_year as start, $$.team.name as team \
| YIELD $-.team'''
resp = self.execute(query)
self.check_resp_succeeded(resp)
columns = ["$-.team"]
self.check_column_names(resp, columns)
expect_result = [["Suns"], ["Hawks"], ["Spurs"], ["Hornets"], ["Jazz"]]
self.check_out_of_order_result(resp, expect_result)
query = '''GO FROM "Boris Diaw" OVER serve \
YIELD $^.player.name as name, serve.start_year as start, $$.team.name as team \
| YIELD $-.team WHERE 1 == 1'''
resp = self.execute(query)
self.check_resp_succeeded(resp)
columns = ["$-.team"]
self.check_column_names(resp, columns)
expect_result = [["Suns"], ["Hawks"], ["Spurs"], ["Hornets"], ["Jazz"]]
self.check_out_of_order_result(resp, expect_result)
query = '''GO FROM "Boris Diaw" OVER serve \
YIELD $^.player.name as name, serve.start_year as start, $$.team.name as team \
| YIELD $-.team WHERE $-.start > 2005'''
resp = self.execute(query)
self.check_resp_succeeded(resp)
columns = ["$-.team"]
self.check_column_names(resp, columns)
expect_result = [["Spurs"], ["Hornets"], ["Jazz"]]
self.check_out_of_order_result(resp, expect_result)
query = '''GO FROM "Boris Diaw" OVER serve \
YIELD $^.player.name as name, serve.start_year as start, $$.team.name as team \
| YIELD $-.*'''
resp = self.execute(query)
self.check_resp_succeeded(resp)
columns = ["$-.name", "$-.start", "$-.team"]
self.check_column_names(resp, columns)
expect_result = [["Boris Diaw", 2005, "Suns"],
["Boris Diaw", 2003, "Hawks"],
["Boris Diaw", 2012, "Spurs"],
["Boris Diaw", 2008, "Hornets"],
["Boris Diaw", 2016, "Jazz"]]
self.check_out_of_order_result(resp, expect_result)
query = '''GO FROM "Boris Diaw" OVER serve \
YIELD $^.player.name as name, serve.start_year as start, $$.team.name as team \
| YIELD $-.* WHERE $-.start > 2005'''
resp = self.execute(query)
self.check_resp_succeeded(resp)
columns = ["$-.name", "$-.start", "$-.team"]
self.check_column_names(resp, columns)
expect_result = [["Boris Diaw", 2012, "Spurs"],
["Boris Diaw", 2008, "Hornets"],
["Boris Diaw", 2016, "Jazz"]]
self.check_out_of_order_result(resp, expect_result)
query = '''GO FROM "Boris Diaw" OVER serve \
YIELD $^.player.name as name, serve.start_year as start, $$.team.name as team \
| YIELD $-.*,hash(123) as hash WHERE $-.start > 2005'''
resp = self.execute(query)
self.check_resp_succeeded(resp)
columns = ["$-.name", "$-.start", "$-.team", "hash"]
self.check_column_names(resp, columns)
expect_result = [["Boris Diaw", 2012, "Spurs", 123],
["Boris Diaw", 2008, "Hornets", 123],
["Boris Diaw", 2016, "Jazz", 123]]
self.check_out_of_order_result(resp, expect_result)
def test_yield_var(self):
query = '''$var = GO FROM "Boris Diaw" OVER serve \
YIELD $^.player.name as name, serve.start_year as start, $$.team.name as team; \
YIELD $var.team'''
resp = self.execute(query)
self.check_resp_succeeded(resp)
columns = ["$var.team"]
self.check_column_names(resp, columns)
expect_result = [["Suns"], ["Hawks"], ["Spurs"], ["Hornets"], ["Jazz"]]
self.check_out_of_order_result(resp, expect_result)
query = '''$var = GO FROM "Boris Diaw" OVER serve \
YIELD $^.player.name as name, serve.start_year as start, $$.team.name as team; \
YIELD $var.team WHERE 1 == 1'''
resp = self.execute(query)
self.check_resp_succeeded(resp)
columns = ["$var.team"]
self.check_column_names(resp, columns)
expect_result = [["Suns"], ["Hawks"], ["Spurs"], ["Hornets"], ["Jazz"]]
self.check_out_of_order_result(resp, expect_result)
query = '''$var = GO FROM "Boris Diaw" OVER serve \
YIELD $^.player.name as name, serve.start_year as start, $$.team.name as team; \
YIELD $var.team WHERE $var.start > 2005'''
resp = self.execute(query)
self.check_resp_succeeded(resp)
columns = ["$var.team"]
self.check_column_names(resp, columns)
expect_result = [["Spurs"], ["Hornets"], ["Jazz"]]
self.check_out_of_order_result(resp, expect_result)
query = '''$var = GO FROM "Boris Diaw" OVER serve \
YIELD $^.player.name as name, serve.start_year as start, $$.team.name as team; \
YIELD $var.*'''
resp = self.execute(query)
self.check_resp_succeeded(resp)
columns = ["$var.name", "$var.start", "$var.team"]
self.check_column_names(resp, columns)
expect_result = [["Boris Diaw", 2005, "Suns"],
["Boris Diaw", 2003, "Hawks"],
["Boris Diaw", 2012, "Spurs"],
["Boris Diaw", 2008, "Hornets"],
["Boris Diaw", 2016, "Jazz"]]
self.check_out_of_order_result(resp, expect_result)
query = '''$var = GO FROM "Boris Diaw" OVER serve \
YIELD $^.player.name as name, serve.start_year as start, $$.team.name as team; \
YIELD $var.* WHERE $var.start > 2005'''
resp = self.execute(query)
self.check_resp_succeeded(resp)
columns = ["$var.name", "$var.start", "$var.team"]
self.check_column_names(resp, columns)
expect_result = [["Boris Diaw", 2012, "Spurs"],
["Boris Diaw", 2008, "Hornets"],
["Boris Diaw", 2016, "Jazz"]]
self.check_out_of_order_result(resp, expect_result)
query = '''$var = GO FROM "Boris Diaw" OVER serve \
YIELD $^.player.name as name, serve.start_year as start, $$.team.name as team; \
YIELD $var.*, hash(123) as hash WHERE $var.start > 2005'''
resp = self.execute(query)
self.check_resp_succeeded(resp)
columns = ["$var.name", "$var.start", "$var.team", "hash"]
self.check_column_names(resp, columns)
expect_result = [["Boris Diaw", 2012, "Spurs", 123],
["Boris Diaw", 2008, "Hornets", 123],
["Boris Diaw", 2016, "Jazz", 123]]
self.check_out_of_order_result(resp, expect_result)
def test_error(self):
query = 'YIELD $-'
resp = self.execute(query)
self.check_resp_failed(resp, ttypes.ErrorCode.E_SYNTAX_ERROR)
query = '''$var = GO FROM "Boris Diaw" OVER serve YIELD $^.player.name AS name, serve.start_year AS start, $$.team.name AS team; \
YIELD $var.team WHERE $-.start > 2005'''
resp = self.execute(query)
self.check_resp_failed(resp, ttypes.ErrorCode.E_SEMANTIC_ERROR)
query = '''$var = GO FROM "Boris Diaw" OVER serve YIELD $^.player.name AS name, serve.start_year AS start, $$.team.name AS team; \
YIELD $var.team WHERE $var1.start > 2005'''
resp = self.execute(query)
self.check_resp_failed(resp, ttypes.ErrorCode.E_SEMANTIC_ERROR)
query = '''$var = GO FROM "Boris Diaw" OVER serve YIELD $^.player.name AS name, serve.start_year AS start, $$.team.name AS team; \
YIELD $var.abc'''
resp = self.execute(query)
self.check_resp_failed(resp, ttypes.ErrorCode.E_SEMANTIC_ERROR)
query = '''$var = GO FROM "Boris Diaw" OVER serve YIELD $^.player.name AS name, serve.start_year AS start, $$.team.name AS team; \
YIELD $$.a.team'''
resp = self.execute(query)
self.check_resp_failed(resp, ttypes.ErrorCode.E_EXECUTION_ERROR)
query = '''$var = GO FROM "Boris Diaw" OVER serve YIELD $^.player.name AS name, serve.start_year AS start, $$.team.name AS team; \
YIELD $^.a.team'''
resp = self.execute(query)
self.check_resp_failed(resp, ttypes.ErrorCode.E_EXECUTION_ERROR)
query = '''$var = GO FROM "Boris Diaw" OVER serve YIELD $^.player.name AS name, serve.start_year AS start, $$.team.name AS team; \
YIELD a.team'''
resp = self.execute(query)
self.check_resp_failed(resp, ttypes.ErrorCode.E_SEMANTIC_ERROR)
query = '''GO FROM "Boris Diaw" OVER like | YIELD $-.abc;'''
resp = self.execute(query)
self.check_resp_failed(resp, ttypes.ErrorCode.E_SEMANTIC_ERROR)
@pytest.mark.skip(reason="")
def test_calculate_overflow(self):
query = '''YIELD 9223372036854775807+1'''
resp = self.execute(query)
self.check_resp_failed(resp, ttypes.ErrorCode.E_EXECUTION_ERROR)
query = '''YIELD -9223372036854775807-2'''
resp = self.execute(query)
self.check_resp_failed(resp, ttypes.ErrorCode.E_EXECUTION_ERROR)
query = '''YIELD -9223372036854775807+-2'''
resp = self.execute(query)
self.check_resp_failed(resp, ttypes.ErrorCode.E_EXECUTION_ERROR)
query = '''YIELD 1-(-9223372036854775807)'''
resp = self.execute(query)
self.check_resp_failed(resp, ttypes.ErrorCode.E_EXECUTION_ERROR)
query = '''YIELD 9223372036854775807*2'''
resp = self.execute(query)
self.check_resp_failed(resp, ttypes.ErrorCode.E_EXECUTION_ERROR)
query = '''YIELD -9223372036854775807*-2'''
resp = self.execute(query)
self.check_resp_failed(resp, ttypes.ErrorCode.E_EXECUTION_ERROR)
query = '''YIELD 9223372036854775807*-2'''
resp = self.execute(query)
self.check_resp_failed(resp, ttypes.ErrorCode.E_EXECUTION_ERROR)
query = '''YIELD -9223372036854775807*2'''
resp = self.execute(query)
self.check_resp_failed(resp, ttypes.ErrorCode.E_EXECUTION_ERROR)
query = '''YIELD 1/0'''
resp = self.execute(query)
print(resp)
self.check_resp_failed(resp, ttypes.ErrorCode.E_EXECUTION_ERROR)
query = '''YIELD 2%0'''
resp = self.execute(query)
self.check_resp_failed(resp, ttypes.ErrorCode.E_EXECUTION_ERROR)
query = '''YIELD 9223372036854775807'''
resp = self.execute(query)
self.check_resp_succeeded(resp)
# Negation of -9223372036854775808 incurs a runtime error under UBSan
query = '''YIELD -9223372036854775808'''
resp = self.execute(query)
self.check_resp_succeeded(resp)
query = '''YIELD -2*4611686018427387904'''
resp = self.execute(query)
self.check_resp_succeeded(resp)
query = '''YIELD -9223372036854775808*1'''
resp = self.execute(query)
self.check_resp_succeeded(resp)
query = '''YIELD -9223372036854775809'''
resp = self.execute(query)
self.check_resp_failed(resp, ttypes.ErrorCode.E_SEMANTIC_ERROR)
def test_agg_call(self):
query = '''YIELD COUNT(1), $-.name'''
resp = self.execute(query)
self.check_resp_failed(resp, ttypes.ErrorCode.E_SEMANTIC_ERROR)
# query = '''YIELD 1+COUNT(*), 1+1'''
# resp = self.execute(query)
# self.check_resp_succeeded(resp)
# columns = ["(1+count(*))", "(1+1)"]
# self.check_column_names(resp, columns)
# expect_result = [[2, 2]]
# self.check_result(resp, expect_result)
query = '''YIELD COUNT(*), 1+1'''
resp = self.execute(query)
self.check_resp_succeeded(resp)
columns = ["COUNT(*)", "(1+1)"]
self.check_column_names(resp, columns)
expect_result = [[1, 2]]
self.check_result(resp, expect_result)
query = '''GO FROM "Carmelo Anthony" OVER like YIELD $$.player.age AS age, like.likeness AS like \
| YIELD COUNT(*), $-.age'''
resp = self.execute(query)
self.check_resp_failed(resp, ttypes.ErrorCode.E_SEMANTIC_ERROR)
# Test input
query = '''GO FROM "Carmelo Anthony" OVER like YIELD $$.player.age AS age, like.likeness AS like \
| YIELD AVG($-.age), SUM($-.like), COUNT(*), 1+1'''
resp = self.execute(query)
self.check_resp_succeeded(resp)
columns = ["AVG($-.age)", "SUM($-.like)", "COUNT(*)", "(1+1)"]
self.check_column_names(resp, columns)
expect_result = [[34.666666666666664, 270, 3, 2]]
self.check_result(resp, expect_result)
# Yield field has not input
query = '''GO FROM "Carmelo Anthony" OVER like | YIELD COUNT(*)'''
resp = self.execute(query)
self.check_resp_succeeded(resp)
columns = ["COUNT(*)"]
self.check_column_names(resp, columns)
expect_result = [[3]]
self.check_result(resp, expect_result)
query = '''GO FROM "Carmelo Anthony" OVER like | YIELD 1'''
resp = self.execute(query)
self.check_resp_succeeded(resp)
columns = ["1"]
self.check_column_names(resp, columns)
expect_result = [[1], [1], [1]]
self.check_result(resp, expect_result)
# input is empty
query = '''GO FROM "Nobody" OVER like | YIELD 1'''
resp = self.execute(query)
self.check_resp_succeeded(resp)
columns = ["1"]
self.check_column_names(resp, columns)
# Test var
query = '''$var = GO FROM "Carmelo Anthony" OVER like \
YIELD $$.player.age AS age, like.likeness AS like; \
YIELD AVG($var.age), SUM($var.like), COUNT(*)'''
resp = self.execute(query)
self.check_resp_succeeded(resp)
columns = ["AVG($var.age)", "SUM($var.like)", "COUNT(*)"]
self.check_column_names(resp, columns)
expect_result = [[34.666666666666664, 270, 3]]
self.check_result(resp, expect_result)
def test_empty_input(self):
query = '''GO FROM "NON_EXIST_VERTEX_ID" OVER serve \
YIELD $^.player.name AS name, serve.start_year AS start, $$.team.name AS team \
| YIELD $-.team'''
resp = self.execute(query)
self.check_resp_succeeded(resp)
columns = ["$-.team"]
self.check_column_names(resp, columns)
expect_result = []
self.check_result(resp, expect_result)
query = '''$var = GO FROM "NON_EXIST_VERTEX_ID" OVER serve YIELD \
$^.player.name as name, serve.start_year as start, $$.team.name as team; \
YIELD $var.team'''
resp = self.execute(query)
self.check_resp_succeeded(resp)
columns = ["$var.team"]
self.check_column_names(resp, columns)
expect_result = []
self.check_result(resp, expect_result)
query = '''GO FROM "Marco Belinelli" OVER serve \
YIELD $^.player.name as name, serve.start_year as start, $$.team.name as team \
| YIELD $-.name as name WHERE $-.start > 20000 \
| YIELD $-.name AS name'''
resp = self.execute(query)
self.check_resp_succeeded(resp)
columns = ["name"]
self.check_column_names(resp, columns)
expect_result = []
self.check_result(resp, expect_result)
def test_duplicate_columns(self):
query = 'YIELD 1, 1'
resp = self.execute(query)
self.check_resp_succeeded(resp)
columns = ["1", "1"]
self.check_column_names(resp, columns)
expect_result = [[1, 1]]
self.check_result(resp, expect_result)
query = '''GO FROM "Boris Diaw" OVER serve YIELD \
$^.player.name as team, serve.start_year as start, $$.team.name as team \
| YIELD $-.team'''
resp = self.execute(query)
self.check_resp_failed(resp, ttypes.ErrorCode.E_SEMANTIC_ERROR)
query = '''$var=GO FROM "Boris Diaw" OVER serve YIELD \
$^.player.name as team, serve.start_year as start, $$.team.name as team; \
YIELD $var.team'''
resp = self.execute(query)
self.check_resp_failed(resp, ttypes.ErrorCode.E_SEMANTIC_ERROR)
def test_pipe_yield_go(self):
query = '''GO FROM "Tim Duncan" OVER serve YIELD serve._src AS id | \
YIELD $-.id AS id | \
GO FROM $-.id OVER serve YIELD $$.team.name AS name'''
resp = self.execute(query)
self.check_resp_succeeded(resp)
columns = ["name"]
self.check_column_names(resp, columns)
expect_result = [["Spurs"]]
self.check_result(resp, expect_result)
query = '''$var = GO FROM "Tim Duncan" OVER serve YIELD serve._src AS id | YIELD $-.id AS id; \
GO FROM $var.id OVER serve YIELD $$.team.name AS name'''
resp = self.execute(query)
self.check_resp_succeeded(resp)
columns = ["name"]
self.check_column_names(resp, columns)
expect_result = [["Spurs"]]
self.check_result(resp, expect_result)
query = '''$var = GO FROM "Tim Duncan" OVER serve YIELD serve._src AS id; \
$var2 = YIELD $var.id AS id; \
GO FROM $var2.id OVER serve YIELD $$.team.name AS name'''
resp = self.execute(query)
self.check_resp_succeeded(resp)
columns = ["name"]
self.check_column_names(resp, columns)
expect_result = [["Spurs"]]
self.check_result(resp, expect_result)
@pytest.mark.skip(reason="")
def test_with_comment(self):
query = 'YIELD 1--1'
resp = self.execute(query)
self.check_resp_succeeded(resp)
expect_result = [[2]]
self.check_result(resp, expect_result)
query = 'YIELD 1-- 1'
resp = self.execute(query)
self.check_resp_succeeded(resp)
expect_result = [[1]]
self.check_result(resp, expect_result)
query = 'YIELD 1 --1'
resp = self.execute(query)
self.check_resp_succeeded(resp)
expect_result = [[1]]
self.check_result(resp, expect_result)
def test_map(self):
query = 'yield {key1: true, key2: "hello"}["key2"]'
resp = self.execute(query)
self.check_resp_succeeded(resp)
self.check_result(resp, [['hello']])
def test_constant_expression_with_where(self):
query = 'YIELD 1+1, "Hello world!" WHERE true;'
resp = self.execute(query)
self.check_resp_succeeded(resp)
self.check_result(resp, [[2, 'Hello world!']])
query = 'YIELD 1+1, "Hello world!" WHERE NULL;'
resp = self.execute(query)
self.check_resp_succeeded(resp)
self.check_empty_result(resp)
query = '''GO FROM "Tim Duncan", "Tim Duncan" OVER serve YIELD $$.team.name AS team
| YIELD 1+1, "Hello world!" WHERE $-.team == "Spurs"'''
resp = self.execute(query)
self.check_resp_succeeded(resp)
columns = ['(1+1)', 'Hello world!']
self.check_column_names(resp, columns)
expect_result = [[2, 'Hello world!'], [2, 'Hello world!']]
self.check_out_of_order_result(resp, expect_result)
query = '''GO FROM "Tim Duncan", "Tim Duncan" OVER serve YIELD $$.team.name AS team
| YIELD 1+1, "Hello world!" WHERE $-.team != "Spurs"'''
resp = self.execute(query)
self.check_resp_succeeded(resp)
columns = ['(1+1)', 'Hello world!']
self.check_column_names(resp, columns)
self.check_empty_result(resp)
| 41.418719
| 138
| 0.598002
| 3,145
| 25,224
| 4.624801
| 0.055962
| 0.107047
| 0.08044
| 0.107253
| 0.918872
| 0.90911
| 0.905191
| 0.893915
| 0.87219
| 0.829288
| 0
| 0.041517
| 0.262805
| 25,224
| 608
| 139
| 41.486842
| 0.740683
| 0.032112
| 0
| 0.696
| 0
| 0.052
| 0.30262
| 0.012343
| 0
| 0
| 0
| 0
| 0
| 1
| 0.034
| false
| 0
| 0.006
| 0
| 0.042
| 0.002
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 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
| 6
|
83c459068bd85f21f489a1e9f758cefc822ff62c
| 113,756
|
py
|
Python
|
Software/Agent/Builder/builder.py
|
4n6strider/Spacenet
|
44e7acfc3d76a38623643ad4057403ad364cf253
|
[
"MIT"
] | 1
|
2019-10-08T12:14:27.000Z
|
2019-10-08T12:14:27.000Z
|
Software/Agent/Builder/builder.py
|
evil5hadow/Spacenet
|
44e7acfc3d76a38623643ad4057403ad364cf253
|
[
"MIT"
] | null | null | null |
Software/Agent/Builder/builder.py
|
evil5hadow/Spacenet
|
44e7acfc3d76a38623643ad4057403ad364cf253
|
[
"MIT"
] | 2
|
2020-04-18T06:19:42.000Z
|
2021-03-26T02:11:25.000Z
|
import tkinter
import tkFont
import ttk
import ctypes
import time
import tkFileDialog
import os
import sys
import shutil
from pathlib import Path
from PIL import Image, ImageTk
from threading import Thread
MB_OK = 0x0
MB_OKCXL = 0x01
MB_YESNOCXL = 0x03
MB_YESNO = 0x04
MB_HELP = 0x4000
ICON_EXLAIM=0x30
ICON_INFO = 0x40
ICON_STOP = 0x10
agentdir = ""
dropperdir = ""
labelwin = "Builder"
FLAG_BUILDER_SHOW = True
FLAG_SETTINGS_SHOW = False
FLAG_INFORMATION_SHOW = False
FLAG_BUILD_DROPPER = True
ftypes = [
('Python code files', 'settings.py'),
]
ftypes1 = [
('Icons', '*.ico'),
]
def build(QUERY):
os.system(QUERY)
def callback():
global agentdir , dropperdir , FLAG_BUILD_DROPPER
listbox.select_set(0)
listbox.event_generate("<<ListboxSelect>>")
top.update()
listbox1.insert(tkinter.END,"[*] This window may stop working for some moments while ")
listbox1.itemconfig("end", bg = "red" if "[*] This window may stop working for some moments while generating agent, do not operate on the window while generating." < 0 else "red" , fg = "yellow")
listbox1.insert(tkinter.END,"generating agent, do not operate on the window while generating.")
listbox1.itemconfig("end", bg = "red" if "generating agent, do not operate on the window while generating." < 0 else "red" , fg = "yellow")
if agentdir == "":
ctypes.windll.user32.MessageBoxA(0, "The Configuration File Must Be Loaded!", "[-]Error", MB_OK | ICON_STOP)
pass
else:
# Checking for pyinstaller
if os.name == 'nt':
my_file = Path("c:\\Python27\\Scripts\\pyinstaller.exe")
if my_file.is_file():
listbox1.insert(tkinter.END,"[+] Pyinstaller Found !")
listbox1.itemconfig("end", bg = "red" if "[+] Pyinstaller Found !" < 0 else "green")
listbox1.see("end")
else:
listbox1.insert(tkinter.END,"[-] Pyinstaller Not Found !")
listbox1.itemconfig("end", bg = "red" if "[-] Pyinstaller Not Found !" < 0 else "red")
listbox1.see("end")
ctypes.windll.user32.MessageBoxA(0, "Can't Find Pyinstaller", "[-]Error", MB_OK | ICON_STOP)
pass
listbox1.insert(tkinter.END,"[*] Building Agent ...")
listbox1.see("end")
progress['value']=10
top.update_idletasks()
if os.name == 'nt':
QUERY = 'cd C:\Python27\Scripts && pyinstaller.exe '
else:
QUERY = 'pyinstaller '
listbox1.insert(tkinter.END,"[*] Building Query ...")
listbox1.see("end")
# Generating Command To Compile
if var1.get() == 1:
QUERY += '--onefile '
if var2.get() == 1:
QUERY += '--windowed '
if var3.get() == 1:
QUERY += '--log-level DEBUG '
if var4.get() == 1:
QUERY += '--noconsole '
progress['value']=30
top.update_idletasks()
output_folder = ""
if pathfileconf23.get() != "":
output_folder = pathfileconf23.get() + "\\agent.exe"
if pathfileconf2.get() != "":
agentname = pathfileconf2.get()
if ".exe" in agentname:
pass
else:
agentname = agentname + ".exe"
output_folder = output_folder.replace("\\agent.exe","\\%s" % agentname)
listbox1.insert(tkinter.END,"[*] Adding Additional Settings ...")
listbox1.see("end")
progress['value']=50
top.update_idletasks()
QUERY += agentdir
#print QUERY
thread = Thread(target = build, args = (QUERY, ))
thread.start()
listbox1.insert(tkinter.END,"[*] Passing work to Pyinstaller ...")
listbox1.see("end")
progress['value']=70
top.update_idletasks()
listbox1.insert(tkinter.END,"[+] Built Agent !")
listbox1.itemconfig("end", bg = "red" if "[+] Built .exe !" < 0 else "green")
listbox1.see("end")
listbox1.insert(tkinter.END,"[*] Checking Last Settings ...")
listbox1.see("end")
if output_folder != "":
if os.name == 'nt':
while True:
my_file = Path("c:\\Python27\\Scripts\\dist\\agent.exe")
if my_file.is_file():
shutil.move("c:\\Python27\\Scripts\\dist\\agent.exe", output_folder)
break
else:
pass
time.sleep(1)
else:
while True:
my_file = Path("agent.exe")
if my_file.is_file():
shutil.move("agent.exe",output_folder)
break
else:
pass
time.sleep(1)
progress['value']=75
top.update_idletasks()
listbox1.insert(tkinter.END,"[+] Agent Successfully Generated !")
listbox1.itemconfig("end", bg = "red" if "[+] Agent Successfully Generated" < 0 else "green")
listbox1.see("end")
thread.join()
if var5.get() == 1:
listbox1.insert(tkinter.END,"[*] Building Dropper ... ")
listbox1.see("end")
if os.name == 'nt':
QUERY_DROPPER = 'cd C:\Python27\Scripts && pyinstaller.exe '
else:
QUERY_DROPPER = 'pyinstaller '
# Generate TMP file Builder
in_file = open(dropperdir,"r")
text = in_file.read()
in_file.close()
icon = pathfileconf1.get()
if icon != "":
QUERY_DROPPER += "--icon=%s " % icon
if torentry.get() != "":
TOR_URL = torentry.get()
text = text.replace("https://srv-file1.gofile.io/download/K6gdma/8fb9f6d1255a84d750cdccbe78e585f0/Tor.zip", TOR_URL)
if winpentry.get() != "":
WINP_URL = winpentry.get()
text = text.replace("https://github.com/boundary/winpcap-installer/archive/master.zip", WINP_URL)
if agentry.get() != "":
AGENT_URL = agentry.get()
text = text.replace("https://srv-file1.gofile.io/download/6RGYMZ/8fb9f6d1255a84d750cdccbe78e585f0/agent.exe", AGENT_URL)
finaldir = dropperdir.replace("dropper.py", "tmp_drp.py")
out_file = open(finaldir,"w")
out_file.write(text)
out_file.close()
progress['value']=80
top.update_idletasks()
listbox1.insert(tkinter.END,"[+] Generated TMP file ... ")
listbox1.itemconfig("end", bg = "red" if "[+] Generated TMP file ... " < 0 else "green")
listbox1.see("end")
QUERY_DROPPER += "--onefile --noconsole %s" %finaldir
thread1 = Thread(target = build, args = (QUERY_DROPPER, ))
thread1.start()
listbox1.insert(tkinter.END,"[*] Passing work to Pyinstaller ...")
listbox1.see("end")
progress['value']=85
top.update_idletasks()
thread1.join()
listbox1.insert(tkinter.END,"[+] Built Dropper !")
listbox1.itemconfig("end", bg = "red" if "[+] Built Dropper !" < 0 else "green")
listbox1.see("end")
listbox1.insert(tkinter.END,"[*] Checking Last Settings ...")
listbox1.see("end")
if output_folder != "":
while True:
my_file = Path("c:\\Python27\\Scripts\\dist\\tmp_drp.exe")
if my_file.is_file():
shutil.move("c:\\Python27\\Scripts\\dist\\tmp_drp.exe", pathfileconf23.get() + "\\dropper.exe")
break
else:
pass
time.sleep(1)
else:
shutil.move("c:\\Python27\\Scripts\\dist\\tmp_drp.exe", "c:\\Python27\\Scripts\\dist\\dropper.exe")
progress['value']=100
os.remove(finaldir)
top.update_idletasks()
listbox1.insert(tkinter.END,"[*] Removing TMP file ...")
listbox1.see("end")
listbox1.insert(tkinter.END,"[+] Dropper Successfully Generated !")
listbox1.itemconfig("end", bg = "red" if "[+] Dropper Successfully Generated !" < 0 else "green")
listbox1.see("end")
result = ctypes.windll.user32.MessageBoxA(0, "Everything Built Successfully!", "[+]Success", MB_OK | ICON_INFO)
progress['value']=0
top.update_idletasks()
sys.exit(1)
def brows():
global agentdir , dropperdir
listbox1.insert(tkinter.END,"[*] Loading Configuration File ...")
listbox1.insert(tkinter.END,"")
filename = tkFileDialog.askopenfilename(filetypes=ftypes)
separator = "----------------------------------------------------------------------------------------------"
if filename != "":
pathfileconf.insert(0,filename)
with open(filename) as f:
listbox1.insert(tkinter.END,separator)
listbox1.itemconfig("end", bg = "red" if separator < 0 else "red", fg = "yellow")
listbox1.insert(tkinter.END,"")
for line in f:
listbox1.insert(tkinter.END," " + line)
listbox1.insert(tkinter.END,"")
listbox1.insert(tkinter.END,separator)
listbox1.itemconfig("end", bg = "red" if separator < 0 else "red", fg = "yellow")
listbox1.insert(tkinter.END,"")
agentdir = os.path.dirname(filename) + "\\agent.py"
agentdir = agentdir.replace("/","\\")
dropperdir = os.path.dirname(filename) + "\\Dropper\\dropper.py"
dropperdir = dropperdir.replace("/","\\")
listbox1.insert(tkinter.END,"")
listbox1.insert(tkinter.END,"[+] Configuration File Set Successfully!")
listbox1.itemconfig("end", bg = "red" if "[+] Configuration File Set Successfully!" < 0 else "green")
listbox1.see("end")
listbox1.insert(tkinter.END,"[!] Possible Agent Path : ")
listbox1.itemconfig("end", bg = "red" if "[!] Possible Agent Path :" < 0 else "yellow")
listbox1.insert(tkinter.END,"%s" % agentdir )
listbox1.itemconfig("end", bg = "red" if "%s" % agentdir < 0 else "yellow")
listbox1.insert(tkinter.END,"[!] Possible Dropper Path : ")
listbox1.itemconfig("end", bg = "red" if "[!] Possible Dropper Path :" < 0 else "yellow")
listbox1.insert(tkinter.END,"%s" % dropperdir )
listbox1.itemconfig("end", bg = "red" if "%s" % dropperdir < 0 else "yellow")
listbox1.see("end")
else:
listbox1.insert(tkinter.END,"[-] No File Selected.")
listbox1.insert(tkinter.END,"")
def brows1():
global pathfileconf1
filename1 = tkFileDialog.askopenfilename(filetypes=ftypes1)
if filename1 != "":
pathfileconf1.insert(0,filename1.replace("/","\\"))
else:
pass
def brows2():
global pathfileconf2
folder = tkFileDialog.askdirectory()
if folder != "":
pathfileconf23.insert(0,folder.replace("/","\\"))
else:
pass
def onselect(evt):
global FLAG_BUILDER_SHOW, FLAG_INFORMATION_SHOW, FLAG_SETTINGS_SHOW , FLAG_BUILD_DROPPER , labelwin , pathfileconf1, pathfileconf2
w = evt.widget
index = int(w.curselection()[0])
value = w.get(index)
if value == "Settings":
# Showing Builder Window
frame.place_forget()
src.place_forget()
pathfileconf.place_forget()
browser.place_forget()
edit.place_forget()
labelframe2.place_forget()
labelframe1.place_forget()
listbox1.pack_forget()
scrollbar.pack_forget()
labelframe3.place(x=230,y=200)
cve.place(x=240,y=220)
wme.place(x=240,y=250)
con.place(x=240,y=280)
dbe.place(x=240,y=310)
bdr.place(x=350,y=310)
src1.place(x=240,y=340)
pathfileconf1.place(x=312,y=340)
pathfileconf1.place(x=312,y=340)
browser1.place(x=520,y=337)
src2.place(x=240,y=370)
pathfileconf23.place(x=350,y=370)
browser2.place(x=520,y=367)
outexe.place(x=240,y=400)
pathfileconf2.place(x=350,y=400)
# NEw
labelframe4.place(x=241,y=425)
torlbl.place(x=250,y=446)
torentry.place(x=310,y=446)
winplbl.place(x=250,y=470)
winpentry.place(x=340,y=470)
aglbl.place(x=250,y=495)
agentry.place(x=340,y=495)
w2.pack()
w3.pack()
if value == "Builder Configuration":
w2.pack_forget()
w3.pack_forget()
labelframe3.place_forget()
labelframe4.place_forget()
torlbl.place_forget()
torentry.place_forget()
winpentry.place_forget()
winplbl.place_forget()
aglbl.place_forget()
agentry.place_forget()
cve.place_forget()
wme.place_forget()
bdr.place_forget()
dbe.place_forget()
con.place_forget()
src1.place_forget()
pathfileconf1.place_forget()
browser1.place_forget()
src2.place_forget()
browser2.place_forget()
outexe.place_forget()
pathfileconf2.place_forget()
frame.place(x=250,y=305)
src.place(x=240,y=220)
pathfileconf.place(x=242,y=250)
browser.place(x=450,y=245)
edit.place(x=540,y=245)
labelframe1.place(x=230,y=200)
labelframe2.place(x=241,y=280)
listbox1.pack(side="left", fill="y")
scrollbar.pack(side="right", fill="y")
def edit_file():
if pathfileconf.get() == "":
pass
else:
os.system("notepad.exe %s" % pathfileconf.get())
top = tkinter.Tk()
top.geometry("630x600")
top.title("Spacenet Agent Builder v0.0.1")
top.resizable(0,0)
icon = "R0lGODlhAAEAAfcAAAAAABkZGRoaGhsbGxwcHB0dHR4eHh8fHyAgICEhISIiIiMjIyQkJCUlJSYmJicnJygoKCkpKSoqKisrKywsLC0tLS4uLi8vLzAwMDExMTIyMjMzMzQ0NDU1NTY2Njc3Nzg4ODk5OTo6Ojs7Ozw8PD09PT4+Pj8/P0BAQEFBQUJCQkNDQ0REREVFRUZGRkdHR0hISElJSUpKSktLS0xMTE1NTU5OTk9PT1BQUFFRUVJSUlNTU1RUVFVVVVZWVldXV1hYWFlZWVpaWltbW1xcXF1dXV5eXl9fX2BgYGFhYWJiYmNjY2RkZGVlZWZmZmdnZ2hoaGlpaWpqamtra2xsbG1tbW5ubm9vb3BwcHFxcXJycnNzc3R0dHV1dXZ2dnd3d3h4eHl5eXp6ent7e3x8fH19fX5+fn9/f4CAgIGBgYKCgoODg4SE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B2gABKhsV7AJ8k4oAwBsAjRgMk6ABvAvCIxEp6whHMJBF0rBIba7YGWuoBH6oArCYA/EQApuAAdypiZ8YAmmIAyqIMNCzAXEwBE6YRP2TcXS6vcKLiySopaI7w2o4vjYAq7ABlG8opmaL/qsj+N8ycPeQBUcAQquz8eU4A8eQxC0gAe8bwhsQCBQTnlaBbHOD/10QKRE6lceizYiQKQURpy2CJw+JzlwsQHIRAl6YAayhwq2QAaG7gAC5gChyAJSbQVQ7dMCYAyKUXUi0AImcO3KbnVwIwN3S6As6rkG5NICAgA7"
im = tkinter.PhotoImage(data=base64img)
tkinter.Label(top, image=im).place(x=13,y=10)
labelframe = tkinter.LabelFrame(top, text="Builder Settings",padx=10, pady=10)
labelframe.place(x=17,y=200)
labelframe1 = tkinter.LabelFrame(top, text=labelwin,padx=188, pady=146)
labelframe1.place(x=230,y=200)
labelframe2 = tkinter.LabelFrame(top, text="Actions",padx=175, pady=100)
labelframe2.place(x=241,y=280)
labelframe3 = tkinter.LabelFrame(top, text="Settings",padx=188, pady=146)
w2 = tkinter.Label(labelframe3, text="")
labelframe4 = tkinter.LabelFrame(top, text="Dropper",padx=175, pady=30)
w3 = tkinter.Label(labelframe4, text="")
torlbl = tkinter.Label(top, text="TOR URL:")
torentry = tkinter.Entry(top, width=45)
winplbl = tkinter.Label(top, text="WINPCAP URL:")
winpentry = tkinter.Entry(top, width=40)
aglbl = tkinter.Label(top, text="AGENT URL:")
agentry = tkinter.Entry(top, width=40)
mycolor = '#%02x%02x%02x' % (240, 240, 237) # set your favourite rgb color
var1 = tkinter.IntVar()
cve = tkinter.Checkbutton(top, text="CONVERT TO ONE FILE", variable=var1)
var2 = tkinter.IntVar()
wme = tkinter.Checkbutton(top, text="WINDOWED MODE", variable=var2)
var4 = tkinter.IntVar()
con = tkinter.Checkbutton(top, text="HIDE CONSOLE", variable=var4)
var3 = tkinter.IntVar()
dbe = tkinter.Checkbutton(top, text="DEBUG EXE", variable=var3)
var5 = tkinter.IntVar()
bdr = tkinter.Checkbutton(top, text="BUILD DROPPER", variable=var5)
src1 = tkinter.Label(top, text="ICO FILE(*):")
pathfileconf1 = tkinter.Entry(top, width=30)
browser1 = tkinter.Button(top, text="Browse...", width=10,command=brows1)
src2 = tkinter.Label(top, text="OUTPUT FOLDER:")
pathfileconf23 = tkinter.Entry(top, width=24)
browser2 = tkinter.Button(top, text="Browse...", width=10,command=brows2)
outexe = tkinter.Label(top, text="AGENT FILE NAME:")
pathfileconf2 = tkinter.Entry(top, width=24)
small_font2 = tkFont.Font(family="Helvetica", size=8)
frame = tkinter.Frame(top)
frame.place(x=250,y=305)
listbox1 = tkinter.Listbox(frame,width=54, height=12,font=small_font2,background=mycolor)
listbox1.pack(side="left", fill="y")
scrollbar = tkinter.Scrollbar(frame, orient="vertical")
scrollbar.pack(side="right", fill="y")
listbox1.config(yscrollcommand=scrollbar.set)
scrollbar.config(command=listbox1.yview)
w = tkinter.Label(labelframe1, text="")
w.pack()
w1 = tkinter.Label(labelframe2, text="")
w1.pack()
# ---
src = tkinter.Label(top, text="Source Configuration File:")
src.place(x=240,y=220)
pathfileconf = tkinter.Entry(top, width=33)
pathfileconf.place(x=242,y=250)
browser = tkinter.Button(top, text="Browse...", width=10,command=brows)
browser.place(x=450,y=245)
edit = tkinter.Button(top, text="Edit", width=8,command=edit_file)
edit.place(x=540,y=245)
# ---
small_font = tkFont.Font(size=10)
small_font1 = tkFont.Font(size=8,weight='bold')
listbox = tkinter.Listbox(labelframe,width=25, height=17, font=small_font)
listbox.pack()
listbox.bind('<<ListboxSelect>>', onselect)
for item in ["Builder Configuration","Settings"]:
listbox.insert(tkinter.END, item)
listbox.select_set(0)
progress=ttk.Progressbar(top,orient=tkinter.HORIZONTAL,length=494,mode='determinate')
progress.place(x=120,y=550)
b = tkinter.Button(top, text="BUILD",padx=1,pady=0,width=12, font=small_font1, command=callback)
b.place(x=15,y=550)
top.mainloop()
| 218.341651
| 84,295
| 0.934579
| 3,874
| 113,756
| 27.410687
| 0.568405
| 0.00226
| 0.005274
| 0.007684
| 0.03732
| 0.030851
| 0.027282
| 0.020793
| 0.013542
| 0.010218
| 0
| 0.102236
| 0.025273
| 113,756
| 521
| 84,296
| 218.341651
| 0.855449
| 0.001363
| 0
| 0.259259
| 0
| 0.007407
| 0.89244
| 0.869154
| 0
| 1
| 0.000292
| 0
| 0
| 1
| 0.017284
| false
| 0.02716
| 0.02963
| 0
| 0.046914
| 0
| 0
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 6
|
83d206a3c49cd75de6c7a30ab539eb58b4a508ff
| 112
|
py
|
Python
|
fluentcms_file/appsettings.py
|
bashu/fluentcms-file
|
cf62eb5b5073642c53473eab740f61e51762d26a
|
[
"Apache-2.0"
] | 1
|
2021-11-19T10:39:47.000Z
|
2021-11-19T10:39:47.000Z
|
fluentcms_file/appsettings.py
|
bashu/fluentcms-file
|
cf62eb5b5073642c53473eab740f61e51762d26a
|
[
"Apache-2.0"
] | null | null | null |
fluentcms_file/appsettings.py
|
bashu/fluentcms-file
|
cf62eb5b5073642c53473eab740f61e51762d26a
|
[
"Apache-2.0"
] | null | null | null |
from django.conf import settings
FLUENTCMS_FILE_UPLOAD_TO = getattr(settings, "FLUENTCMS_FILE_UPLOAD_TO", ".")
| 28
| 77
| 0.8125
| 15
| 112
| 5.666667
| 0.666667
| 0.4
| 0.494118
| 0.635294
| 0.682353
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.089286
| 112
| 3
| 78
| 37.333333
| 0.833333
| 0
| 0
| 0
| 0
| 0
| 0.223214
| 0.214286
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.5
| 0
| 0.5
| 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
| 1
| 0
| 0
| 0
|
0
| 6
|
83daccc9cadc1ecbb598a443e16799aa6ae2e63c
| 136
|
py
|
Python
|
tensor2struct/contexts/__init__.py
|
nghoanglong/tensor2struct-public
|
deb6f14de04ebcc5563b05b7fee86986d73bbd65
|
[
"MIT"
] | null | null | null |
tensor2struct/contexts/__init__.py
|
nghoanglong/tensor2struct-public
|
deb6f14de04ebcc5563b05b7fee86986d73bbd65
|
[
"MIT"
] | null | null | null |
tensor2struct/contexts/__init__.py
|
nghoanglong/tensor2struct-public
|
deb6f14de04ebcc5563b05b7fee86986d73bbd65
|
[
"MIT"
] | null | null | null |
from . import spider_context
from . import vitext2sql_phobert_context
from . import spider_bert_context
from . import overnight_context
| 27.2
| 40
| 0.852941
| 18
| 136
| 6.111111
| 0.444444
| 0.363636
| 0.463636
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.008333
| 0.117647
| 136
| 4
| 41
| 34
| 0.908333
| 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
| 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
| 6
|
f7c1735bcff4c53e435f36d1b3a3f9c52623ef5c
| 124
|
py
|
Python
|
modules/chisquare.py
|
rutgerhartog/apocrypha
|
29e475219a5e0d510899a512cfc7be030a32c758
|
[
"MIT"
] | null | null | null |
modules/chisquare.py
|
rutgerhartog/apocrypha
|
29e475219a5e0d510899a512cfc7be030a32c758
|
[
"MIT"
] | null | null | null |
modules/chisquare.py
|
rutgerhartog/apocrypha
|
29e475219a5e0d510899a512cfc7be030a32c758
|
[
"MIT"
] | null | null | null |
from scipy.stats import chisquare as chi2
def calculate_chisquare(text: bytes) -> float:
return chi2(text).statistics
| 20.666667
| 46
| 0.766129
| 17
| 124
| 5.529412
| 0.823529
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.019048
| 0.153226
| 124
| 5
| 47
| 24.8
| 0.87619
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0.333333
| 0.333333
| 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
| 1
| 1
| 1
| 0
|
0
| 6
|
f7d3c18a41e5b82ca777c517e9094973bf2eb833
| 99
|
py
|
Python
|
Python Programming/03. Functions/02-Arguments.py
|
luckyrabbit85/Python
|
ed134fd70b4a7b84b183b87b85ad5190f54c9526
|
[
"MIT"
] | 1
|
2021-07-15T18:40:26.000Z
|
2021-07-15T18:40:26.000Z
|
Python Programming/03. Functions/02-Arguments.py
|
luckyrabbit85/Python
|
ed134fd70b4a7b84b183b87b85ad5190f54c9526
|
[
"MIT"
] | null | null | null |
Python Programming/03. Functions/02-Arguments.py
|
luckyrabbit85/Python
|
ed134fd70b4a7b84b183b87b85ad5190f54c9526
|
[
"MIT"
] | null | null | null |
def greet(first_name, last_name):
print(f"Hi {first_name} {last_name}")
greet("Tom", "Hill")
| 16.5
| 41
| 0.666667
| 16
| 99
| 3.875
| 0.625
| 0.290323
| 0.419355
| 0.548387
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.141414
| 99
| 5
| 42
| 19.8
| 0.729412
| 0
| 0
| 0
| 0
| 0
| 0.343434
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0
| 0
| 0.333333
| 0.333333
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 6
|
f7d8879b88b768977d70f6f555000648891460fe
| 30
|
py
|
Python
|
odoo-13.0/venv/lib/python3.8/site-packages/PcfFontFile.py
|
VaibhavBhujade/Blockchain-ERP-interoperability
|
b5190a037fb6615386f7cbad024d51b0abd4ba03
|
[
"MIT"
] | 2
|
2021-06-20T16:56:45.000Z
|
2021-06-20T17:30:18.000Z
|
odoo-13.0/venv/lib/python3.8/site-packages/PcfFontFile.py
|
VaibhavBhujade/Blockchain-ERP-interoperability
|
b5190a037fb6615386f7cbad024d51b0abd4ba03
|
[
"MIT"
] | null | null | null |
odoo-13.0/venv/lib/python3.8/site-packages/PcfFontFile.py
|
VaibhavBhujade/Blockchain-ERP-interoperability
|
b5190a037fb6615386f7cbad024d51b0abd4ba03
|
[
"MIT"
] | null | null | null |
from PIL.PcfFontFile import *
| 15
| 29
| 0.8
| 4
| 30
| 6
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.133333
| 30
| 1
| 30
| 30
| 0.923077
| 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
| 1
| 0
|
0
| 6
|
f7f13767030af4354230b7bb859784c3bdfb21a1
| 2,072
|
py
|
Python
|
tests/threadfix/scans_test.py
|
matt-fevold/webbreaker
|
b500fc620ebba03a27321c8f832ab77bb760b9c5
|
[
"MIT"
] | 7
|
2018-12-20T19:18:43.000Z
|
2019-12-10T15:03:41.000Z
|
tests/threadfix/scans_test.py
|
matt-fevold/webbreaker
|
b500fc620ebba03a27321c8f832ab77bb760b9c5
|
[
"MIT"
] | 5
|
2019-04-02T17:07:44.000Z
|
2020-02-17T07:08:11.000Z
|
tests/threadfix/scans_test.py
|
matt-fevold/webbreaker
|
b500fc620ebba03a27321c8f832ab77bb760b9c5
|
[
"MIT"
] | 7
|
2019-01-10T10:40:55.000Z
|
2022-03-13T14:08:37.000Z
|
import mock
import pytest
from webbreaker.threadfix.scans import ThreadFixScans
from threadfixproapi.threadfixpro import ThreadFixProResponse
@mock.patch('webbreaker.threadfix.scans.ThreadFixHelper')
@mock.patch('webbreaker.threadfix.scans.threadfixloghelper')
def test_threadfix_scans_successful_list(log_mock, helper_mock):
app_id = '123'
expected_list_scans = ThreadFixProResponse(message='test', success=True, data=[{'id': app_id, 'scannerName': 'scanner name'}])
helper_mock.return_value.api.list_scans.return_value = expected_list_scans
helper_mock.return_value.api.get_scan_details.return_value = ThreadFixProResponse(message='test', success=True, data={'originalFileNames': ['filename.xml']})
ThreadFixScans(app_id)
assert helper_mock.call_count == 1
assert log_mock.log_info_threadfix_scans_listed_success.call_count == 1
assert log_mock.log_error_no_scans_found_with_app_id.call_count == 0
@mock.patch('webbreaker.threadfix.scans.ThreadFixHelper')
@mock.patch('webbreaker.threadfix.scans.threadfixloghelper')
def test_threadfix_scans_empty_list(log_mock, helper_mock):
app_id = '123'
expected_list_scans = ThreadFixProResponse(message='no scans', success=True, data=[])
helper_mock.return_value.api.list_scans.return_value = expected_list_scans
ThreadFixScans(app_id)
assert helper_mock.call_count == 1
assert log_mock.log_info_threadfix_scans_listed_success.call_count == 0
assert log_mock.log_error_no_scans_found_with_app_id.call_count == 1
@mock.patch('webbreaker.threadfix.scans.ThreadFixHelper')
@mock.patch('webbreaker.threadfix.scans.threadfixloghelper')
def test_threadfix_scans_failed_response(log_mock, helper_mock):
app_id = '123'
expected_list_scans = ThreadFixProResponse(message='error', success=False, data=[])
helper_mock.return_value.api.list_scans.return_value = expected_list_scans
with pytest.raises(SystemExit):
ThreadFixScans(app_id)
assert helper_mock.call_count == 1
assert log_mock.log_info_threadfix_scans_listed_success.call_count == 0
| 49.333333
| 161
| 0.802606
| 274
| 2,072
| 5.708029
| 0.208029
| 0.116368
| 0.107417
| 0.107417
| 0.807545
| 0.792199
| 0.750639
| 0.75
| 0.75
| 0.75
| 0
| 0.00911
| 0.099421
| 2,072
| 42
| 162
| 49.333333
| 0.829046
| 0
| 0
| 0.571429
| 0
| 0
| 0.166425
| 0.125904
| 0
| 0
| 0
| 0
| 0.228571
| 1
| 0.085714
| false
| 0
| 0.114286
| 0
| 0.2
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 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
| 6
|
f7f3b069ac9453e06095e4da6b3648da09f640b7
| 35
|
py
|
Python
|
tools/Polygraphy/polygraphy/util/__init__.py
|
borisfom/TensorRT
|
42805f078052daad1a98bc5965974fcffaad0960
|
[
"Apache-2.0"
] | 1
|
2022-03-05T08:46:19.000Z
|
2022-03-05T08:46:19.000Z
|
tools/Polygraphy/polygraphy/util/__init__.py
|
maxpark/TensorRT
|
46253b644142a1d9632ba463422abfc5dcefc371
|
[
"Apache-2.0"
] | null | null | null |
tools/Polygraphy/polygraphy/util/__init__.py
|
maxpark/TensorRT
|
46253b644142a1d9632ba463422abfc5dcefc371
|
[
"Apache-2.0"
] | 1
|
2022-03-19T16:03:30.000Z
|
2022-03-19T16:03:30.000Z
|
from polygraphy.util.util import *
| 17.5
| 34
| 0.8
| 5
| 35
| 5.6
| 0.8
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.114286
| 35
| 1
| 35
| 35
| 0.903226
| 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
| 1
| 0
|
0
| 6
|
f710d5a412901836e4796796cab79d895bf657b5
| 8,929
|
py
|
Python
|
healthbuddy_backend/fake_news/tests.py
|
Asfak06/health-buddy
|
1a40a35a95bc4179a44445ed0c0b9dc32360e0bc
|
[
"MIT"
] | null | null | null |
healthbuddy_backend/fake_news/tests.py
|
Asfak06/health-buddy
|
1a40a35a95bc4179a44445ed0c0b9dc32360e0bc
|
[
"MIT"
] | null | null | null |
healthbuddy_backend/fake_news/tests.py
|
Asfak06/health-buddy
|
1a40a35a95bc4179a44445ed0c0b9dc32360e0bc
|
[
"MIT"
] | null | null | null |
from django.contrib.auth.models import User
from django.urls import reverse_lazy
from .models import FakeNews
from ..utils.base_test import AuthenticationTestTemplate
class FakeNewsListTestCase(AuthenticationTestTemplate):
def _get_callable_client_method_http(self):
return self._client.get
def _get_basename_url(self):
return "fakenews-list"
def _get_kwargs_url(self):
return {}
def test_action_user_without_permission(self):
"""all logged user has permission."""
pass
def test_list_10_obj_paginated_token(self):
fakenews = []
user = self.create_normal_user("author")
for i in range(0, 11):
fakenews.append(
FakeNews(
author=user,
title=f"test create fakenews title{i}",
subtitle=f"test create fakenews subtitle{i}",
body=f"test create fakenews body{i}",
)
)
FakeNews.objects.bulk_create(fakenews)
tokens = self.get_token_valid_normal_user()
token_access = tokens.get("access")
self._client.credentials(HTTP_AUTHORIZATION=f" Bearer {token_access}")
resp = self._make_request()
self.assertEqual(resp.status_code, 200)
self.assertEqual(len(resp.data.get("results")), 10)
self.assertEqual(resp.data.get("count"), 11)
self.assertIsNotNone(resp.data.get("next"))
class FakeNewsDetailTestCase(AuthenticationTestTemplate):
def _get_callable_client_method_http(self):
return self._client.get
def _get_basename_url(self):
return "fakenews-detail"
def _get_kwargs_url(self):
return {"slug": "test-create-fakenews-title"}
def test_action_user_without_permission(self):
"""all logged user has permission."""
pass
def test_detail_obj_token(self):
tokens = self.get_token_valid_normal_user()
token_access = tokens.get("access")
self._client.credentials(HTTP_AUTHORIZATION=f" Bearer {token_access}")
fakenews = FakeNews.objects.create(
author=User.objects.last(),
title="test create fakenews title",
subtitle="test create fakenews subtitle",
body="test create fakenews body",
)
resp = self._client.get(reverse_lazy("fakenews-detail", kwargs={"slug": fakenews.slug}))
self.assertEqual(resp.status_code, 200)
self.assertEqual(resp.data.get("title"), fakenews.title)
def test_detail_not_found(self):
tokens = self.get_token_valid_admin_user()
token_access = tokens.get("access")
self._client.credentials(HTTP_AUTHORIZATION=f" Bearer {token_access}")
resp = self._client.get(reverse_lazy("fakenews-detail", kwargs={"slug": "slug-not-found"}))
self.assertEqual(resp.status_code, 404)
class FakeNewsCreateTestCase(AuthenticationTestTemplate):
def _get_callable_client_method_http(self):
return self._client.post
def _get_basename_url(self):
return "fakenews-list"
def _get_kwargs_url(self):
return {}
def test_action_user_without_permission(self):
"""all logged user has permission."""
pass
def test_create_successful(self):
tokens = self.get_token_valid_admin_user()
token_access = tokens.get("access")
self._client.credentials(HTTP_AUTHORIZATION=f" Bearer {token_access}")
resp = self._client.post(
reverse_lazy("fakenews-list"),
data={
"title": "test create fakenews title",
"subtitle": "test create fakenews subtitle",
"body": "test create fakenews body",
},
)
self.assertEqual(resp.status_code, 201)
self.assertEqual(FakeNews.objects.last().slug, resp.data.get("slug"))
def test_create_already_exists(self):
tokens = self.get_token_valid_admin_user()
token_access = tokens.get("access")
self._client.credentials(HTTP_AUTHORIZATION=f" Bearer {token_access}")
FakeNews.objects.create(
author=User.objects.last(),
title="test create fakenews title",
subtitle="test create fakenews subtitle",
body="test create fakenews body",
)
resp = self._client.post(
reverse_lazy("fakenews-list"),
data={
"title": "test create fakenews title",
"subtitle": "test create fakenews subtitle",
"body": "test create fakenews body",
},
)
self.assertEqual(resp.status_code, 400)
self.assertEqual(resp.data.get("title").pop(0), "fake news with this title already exists.")
def test_create_without_fields_required(self):
tokens = self.get_token_valid_admin_user()
token_access = tokens.get("access")
self._client.credentials(HTTP_AUTHORIZATION=f" Bearer {token_access}")
resp = self._make_request()
self.assertEqual(resp.status_code, 400)
self.assertEqual(resp.data.get("title").pop(0), "This field is required.")
class FakeNewsDeleteTestCase(AuthenticationTestTemplate):
def _get_callable_client_method_http(self):
return self._client.delete
def _get_basename_url(self):
return "fakenews-detail"
def _get_kwargs_url(self):
return {"slug": "test-create-fakenews-title"}
def test_action_user_without_permission(self):
"""all logged user has permission."""
pass
def test_delete_successful(self):
tokens = self.get_token_valid_admin_user()
token_access = tokens.get("access")
self._client.credentials(HTTP_AUTHORIZATION=f" Bearer {token_access}")
fakenews = FakeNews.objects.create(
author=User.objects.last(),
title="test create fakenews title",
subtitle="test create fakenews subtitle",
body="test create fakenews body",
)
resp = self._client.delete(reverse_lazy("fakenews-detail", kwargs={"slug": fakenews.slug}))
self.assertEqual(resp.status_code, 204)
class FakeNewsPatchTestCase(AuthenticationTestTemplate):
def _get_callable_client_method_http(self):
return self._client.patch
def _get_basename_url(self):
return "fakenews-detail"
def _get_kwargs_url(self):
return {"slug": "test-create-fakenews-title"}
def test_action_user_without_permission(self):
"""all logged user has permission."""
pass
def test_patch_normal_user(self):
tokens = self.get_token_valid_normal_user()
token_access = tokens.get("access")
self._client.credentials(HTTP_AUTHORIZATION=f" Bearer {token_access}")
fakenews = FakeNews.objects.create(
author=User.objects.last(),
title="test create fakenews title",
subtitle="test create fakenews subtitle",
body="test create fakenews body",
)
resp = self._client.patch(
reverse_lazy("fakenews-detail", kwargs={"slug": fakenews.slug}),
data={"title": "title updated", "subtitle": "subtitle updated", "body": "body updated"},
)
self.assertEqual(resp.status_code, 200)
self.assertEqual(resp.data.get("title"), "title updated")
self.assertEqual(resp.data.get("slug"), "title-updated")
self.assertEqual(FakeNews.objects.last().slug, "title-updated")
class FakeNewsUpdateTestCase(AuthenticationTestTemplate):
def _get_callable_client_method_http(self):
return self._client.put
def _get_basename_url(self):
return "fakenews-detail"
def _get_kwargs_url(self):
return {"slug": "test-create-fakenews-title"}
def test_action_user_without_permission(self):
"""all logged user has permission."""
pass
def test_update_normal_user(self):
tokens = self.get_token_valid_normal_user()
token_access = tokens.get("access")
self._client.credentials(HTTP_AUTHORIZATION=f" Bearer {token_access}")
fakenews = FakeNews.objects.create(
author=User.objects.last(),
title="test create fakenews title",
subtitle="test create fakenews subtitle",
body="test create fakenews body",
)
resp = self._client.put(
reverse_lazy("fakenews-detail", kwargs={"slug": fakenews.slug}),
data={"title": "title updated", "subtitle": "subtitle updated", "body": "body updated"},
)
self.assertEqual(resp.status_code, 200)
self.assertEqual(resp.data.get("title"), "title updated")
self.assertEqual(resp.data.get("slug"), "title-updated")
self.assertEqual(FakeNews.objects.last().slug, "title-updated")
# way to turn a test case class into an abstract
del AuthenticationTestTemplate
| 36.594262
| 100
| 0.648897
| 1,008
| 8,929
| 5.521825
| 0.116071
| 0.055695
| 0.09055
| 0.049587
| 0.834711
| 0.824829
| 0.818002
| 0.818002
| 0.814768
| 0.814768
| 0
| 0.005603
| 0.240452
| 8,929
| 243
| 101
| 36.744856
| 0.815099
| 0.026767
| 0
| 0.664894
| 0
| 0
| 0.18397
| 0.012011
| 0
| 0
| 0
| 0
| 0.117021
| 1
| 0.175532
| false
| 0.031915
| 0.021277
| 0.095745
| 0.324468
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 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
| 6
|
f71e3ee179bc25f0ee46fadb17b0041bb26da0fb
| 10,260
|
py
|
Python
|
tests/components/homematicip_cloud/test_switch.py
|
pcaston/core
|
e74d946cef7a9d4e232ae9e0ba150d18018cfe33
|
[
"Apache-2.0"
] | 1
|
2021-07-08T20:09:55.000Z
|
2021-07-08T20:09:55.000Z
|
tests/components/homematicip_cloud/test_switch.py
|
pcaston/core
|
e74d946cef7a9d4e232ae9e0ba150d18018cfe33
|
[
"Apache-2.0"
] | 47
|
2021-02-21T23:43:07.000Z
|
2022-03-31T06:07:10.000Z
|
tests/components/homematicip_cloud/test_switch.py
|
OpenPeerPower/core
|
f673dfac9f2d0c48fa30af37b0a99df9dd6640ee
|
[
"Apache-2.0"
] | null | null | null |
"""Tests for HomematicIP Cloud switch."""
from openpeerpower.components.homematicip_cloud import DOMAIN as HMIPC_DOMAIN
from openpeerpower.components.homematicip_cloud.generic_entity import (
ATTR_GROUP_MEMBER_UNREACHABLE,
)
from openpeerpower.components.switch import (
ATTR_CURRENT_POWER_W,
ATTR_TODAY_ENERGY_KWH,
DOMAIN as SWITCH_DOMAIN,
)
from openpeerpower.const import STATE_OFF, STATE_ON
from openpeerpower.setup import async_setup_component
from .helper import async_manipulate_test_data, get_and_check_entity_basics
async def test_manually_configured_platform(opp):
"""Test that we do not set up an access point."""
assert await async_setup_component(
opp, SWITCH_DOMAIN, {SWITCH_DOMAIN: {"platform": HMIPC_DOMAIN}}
)
assert not opp.data.get(HMIPC_DOMAIN)
async def test_hmip_switch(opp, default_mock_hap_factory):
"""Test HomematicipSwitch."""
entity_id = "switch.schrank"
entity_name = "Schrank"
device_model = "HMIP-PS"
mock_hap = await default_mock_hap_factory.async_get_mock_hap(
test_devices=[entity_name]
)
ha_state, hmip_device = get_and_check_entity_basics(
opp, mock_hap, entity_id, entity_name, device_model
)
assert ha_state.state == STATE_ON
service_call_counter = len(hmip_device.mock_calls)
await opp.services.async_call(
"switch", "turn_off", {"entity_id": entity_id}, blocking=True
)
assert len(hmip_device.mock_calls) == service_call_counter + 1
assert hmip_device.mock_calls[-1][0] == "turn_off"
assert hmip_device.mock_calls[-1][1] == (1,)
await async_manipulate_test_data(opp, hmip_device, "on", False)
ha_state = opp.states.get(entity_id)
assert ha_state.state == STATE_OFF
await opp.services.async_call(
"switch", "turn_on", {"entity_id": entity_id}, blocking=True
)
assert len(hmip_device.mock_calls) == service_call_counter + 3
assert hmip_device.mock_calls[-1][0] == "turn_on"
assert hmip_device.mock_calls[-1][1] == (1,)
await async_manipulate_test_data(opp, hmip_device, "on", True)
ha_state = opp.states.get(entity_id)
assert ha_state.state == STATE_ON
async def test_hmip_switch_input(opp, default_mock_hap_factory):
"""Test HomematicipSwitch."""
entity_id = "switch.wohnzimmer_beleuchtung"
entity_name = "Wohnzimmer Beleuchtung"
device_model = "HmIP-FSI16"
mock_hap = await default_mock_hap_factory.async_get_mock_hap(
test_devices=[entity_name]
)
ha_state, hmip_device = get_and_check_entity_basics(
opp, mock_hap, entity_id, entity_name, device_model
)
assert ha_state.state == STATE_ON
service_call_counter = len(hmip_device.mock_calls)
await opp.services.async_call(
"switch", "turn_off", {"entity_id": entity_id}, blocking=True
)
assert len(hmip_device.mock_calls) == service_call_counter + 1
assert hmip_device.mock_calls[-1][0] == "turn_off"
assert hmip_device.mock_calls[-1][1] == (1,)
await async_manipulate_test_data(opp, hmip_device, "on", False)
ha_state = opp.states.get(entity_id)
assert ha_state.state == STATE_OFF
await opp.services.async_call(
"switch", "turn_on", {"entity_id": entity_id}, blocking=True
)
assert len(hmip_device.mock_calls) == service_call_counter + 3
assert hmip_device.mock_calls[-1][0] == "turn_on"
assert hmip_device.mock_calls[-1][1] == (1,)
await async_manipulate_test_data(opp, hmip_device, "on", True)
ha_state = opp.states.get(entity_id)
assert ha_state.state == STATE_ON
async def test_hmip_switch_measuring(opp, default_mock_hap_factory):
"""Test HomematicipSwitchMeasuring."""
entity_id = "switch.pc"
entity_name = "Pc"
device_model = "HMIP-PSM"
mock_hap = await default_mock_hap_factory.async_get_mock_hap(
test_devices=[entity_name]
)
ha_state, hmip_device = get_and_check_entity_basics(
opp, mock_hap, entity_id, entity_name, device_model
)
assert ha_state.state == STATE_ON
service_call_counter = len(hmip_device.mock_calls)
await opp.services.async_call(
"switch", "turn_off", {"entity_id": entity_id}, blocking=True
)
assert len(hmip_device.mock_calls) == service_call_counter + 1
assert hmip_device.mock_calls[-1][0] == "turn_off"
assert hmip_device.mock_calls[-1][1] == (1,)
await async_manipulate_test_data(opp, hmip_device, "on", False)
ha_state = opp.states.get(entity_id)
assert ha_state.state == STATE_OFF
await opp.services.async_call(
"switch", "turn_on", {"entity_id": entity_id}, blocking=True
)
assert len(hmip_device.mock_calls) == service_call_counter + 3
assert hmip_device.mock_calls[-1][0] == "turn_on"
assert hmip_device.mock_calls[-1][1] == (1,)
await async_manipulate_test_data(opp, hmip_device, "on", True)
await async_manipulate_test_data(opp, hmip_device, "currentPowerConsumption", 50)
ha_state = opp.states.get(entity_id)
assert ha_state.state == STATE_ON
assert ha_state.attributes[ATTR_CURRENT_POWER_W] == 50
assert ha_state.attributes[ATTR_TODAY_ENERGY_KWH] == 36
await async_manipulate_test_data(opp, hmip_device, "energyCounter", None)
ha_state = opp.states.get(entity_id)
assert not ha_state.attributes.get(ATTR_TODAY_ENERGY_KWH)
async def test_hmip_group_switch(opp, default_mock_hap_factory):
"""Test HomematicipGroupSwitch."""
entity_id = "switch.strom_group"
entity_name = "Strom Group"
device_model = None
mock_hap = await default_mock_hap_factory.async_get_mock_hap(test_groups=["Strom"])
ha_state, hmip_device = get_and_check_entity_basics(
opp, mock_hap, entity_id, entity_name, device_model
)
assert ha_state.state == STATE_ON
service_call_counter = len(hmip_device.mock_calls)
await opp.services.async_call(
"switch", "turn_off", {"entity_id": entity_id}, blocking=True
)
assert len(hmip_device.mock_calls) == service_call_counter + 1
assert hmip_device.mock_calls[-1][0] == "turn_off"
assert hmip_device.mock_calls[-1][1] == ()
await async_manipulate_test_data(opp, hmip_device, "on", False)
ha_state = opp.states.get(entity_id)
assert ha_state.state == STATE_OFF
await opp.services.async_call(
"switch", "turn_on", {"entity_id": entity_id}, blocking=True
)
assert len(hmip_device.mock_calls) == service_call_counter + 3
assert hmip_device.mock_calls[-1][0] == "turn_on"
assert hmip_device.mock_calls[-1][1] == ()
await async_manipulate_test_data(opp, hmip_device, "on", True)
ha_state = opp.states.get(entity_id)
assert ha_state.state == STATE_ON
assert not ha_state.attributes.get(ATTR_GROUP_MEMBER_UNREACHABLE)
await async_manipulate_test_data(opp, hmip_device, "unreach", True)
ha_state = opp.states.get(entity_id)
assert ha_state.attributes[ATTR_GROUP_MEMBER_UNREACHABLE]
async def test_hmip_multi_switch(opp, default_mock_hap_factory):
"""Test HomematicipMultiSwitch."""
entity_id = "switch.jalousien_1_kizi_2_schlazi_channel1"
entity_name = "Jalousien - 1 KiZi, 2 SchlaZi Channel1"
device_model = "HmIP-PCBS2"
mock_hap = await default_mock_hap_factory.async_get_mock_hap(
test_devices=[
"Jalousien - 1 KiZi, 2 SchlaZi",
"Multi IO Box",
"Heizungsaktor",
"ioBroker",
"Schaltaktor Verteiler",
]
)
ha_state, hmip_device = get_and_check_entity_basics(
opp, mock_hap, entity_id, entity_name, device_model
)
assert ha_state.state == STATE_OFF
service_call_counter = len(hmip_device.mock_calls)
await opp.services.async_call(
"switch", "turn_on", {"entity_id": entity_id}, blocking=True
)
assert len(hmip_device.mock_calls) == service_call_counter + 1
assert hmip_device.mock_calls[-1][0] == "turn_on"
assert hmip_device.mock_calls[-1][1] == (1,)
await async_manipulate_test_data(opp, hmip_device, "on", True)
ha_state = opp.states.get(entity_id)
assert ha_state.state == STATE_ON
await opp.services.async_call(
"switch", "turn_off", {"entity_id": entity_id}, blocking=True
)
assert len(hmip_device.mock_calls) == service_call_counter + 3
assert hmip_device.mock_calls[-1][0] == "turn_off"
assert hmip_device.mock_calls[-1][1] == (1,)
await async_manipulate_test_data(opp, hmip_device, "on", False)
ha_state = opp.states.get(entity_id)
assert ha_state.state == STATE_OFF
ha_state, hmip_device = get_and_check_entity_basics(
opp,
mock_hap,
"switch.schaltaktor_verteiler_channel3",
"Schaltaktor Verteiler Channel3",
"HmIP-DRSI4",
)
assert ha_state.state == STATE_OFF
async def test_hmip_wired_multi_switch(opp, default_mock_hap_factory):
"""Test HomematicipMultiSwitch."""
entity_id = "switch.fernseher_wohnzimmer"
entity_name = "Fernseher (Wohnzimmer)"
device_model = "HmIPW-DRS8"
mock_hap = await default_mock_hap_factory.async_get_mock_hap(
test_devices=[
"Wired Schaltaktor – 8-fach",
]
)
ha_state, hmip_device = get_and_check_entity_basics(
opp, mock_hap, entity_id, entity_name, device_model
)
assert ha_state.state == STATE_ON
service_call_counter = len(hmip_device.mock_calls)
await opp.services.async_call(
"switch", "turn_off", {"entity_id": entity_id}, blocking=True
)
assert len(hmip_device.mock_calls) == service_call_counter + 1
assert hmip_device.mock_calls[-1][0] == "turn_off"
assert hmip_device.mock_calls[-1][1] == (1,)
await async_manipulate_test_data(opp, hmip_device, "on", False)
ha_state = opp.states.get(entity_id)
assert ha_state.state == STATE_OFF
await opp.services.async_call(
"switch", "turn_on", {"entity_id": entity_id}, blocking=True
)
assert len(hmip_device.mock_calls) == service_call_counter + 3
assert hmip_device.mock_calls[-1][0] == "turn_on"
assert hmip_device.mock_calls[-1][1] == (1,)
await async_manipulate_test_data(opp, hmip_device, "on", True)
ha_state = opp.states.get(entity_id)
assert ha_state.state == STATE_ON
| 37.582418
| 87
| 0.710721
| 1,444
| 10,260
| 4.675208
| 0.085873
| 0.094801
| 0.087098
| 0.118205
| 0.817509
| 0.78655
| 0.769219
| 0.755296
| 0.732188
| 0.732188
| 0
| 0.010937
| 0.180117
| 10,260
| 272
| 88
| 37.720588
| 0.791488
| 0.003411
| 0
| 0.606335
| 0
| 0
| 0.091456
| 0.015844
| 0
| 0
| 0
| 0
| 0.280543
| 1
| 0
| false
| 0
| 0.027149
| 0
| 0.027149
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 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
| 6
|
f72734b87340580ae862b0b1ab93d1933cead503
| 608
|
py
|
Python
|
100_days_of_code/Beginner/day_13/art.py
|
Tiago-S-Ribeiro/Python-Pro-Bootcamp
|
20a82443fe2e6ee9040ecd9a03853e6c6346592c
|
[
"MIT"
] | null | null | null |
100_days_of_code/Beginner/day_13/art.py
|
Tiago-S-Ribeiro/Python-Pro-Bootcamp
|
20a82443fe2e6ee9040ecd9a03853e6c6346592c
|
[
"MIT"
] | null | null | null |
100_days_of_code/Beginner/day_13/art.py
|
Tiago-S-Ribeiro/Python-Pro-Bootcamp
|
20a82443fe2e6ee9040ecd9a03853e6c6346592c
|
[
"MIT"
] | null | null | null |
logo = '''
______ __ __ _ __ __
/ ____/__ __ ___ _____ _____ / /_ / /_ ___ / | / /__ __ ____ ___ / /_ ___ _____
/ / __ / / / // _ \ / ___// ___/ / __// __ \ / _ \ / |/ // / / // __ `__ \ / __ \ / _ \ / ___/
/ /_/ // /_/ // __/(__ )(__ ) / /_ / / / // __/ / /| // /_/ // / / / / // /_/ // __// /
\____/ \__,_/ \___//____//____/ \__//_/ /_/ \___/ /_/ |_/ \__,_//_/ /_/ /_//_.___/ \___//_/
'''
| 86.857143
| 193
| 0.238487
| 1
| 608
| 4
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.536184
| 608
| 7
| 194
| 86.857143
| 0.014184
| 0
| 0
| 0
| 0
| 0.571429
| 0.977011
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 6
|
f73310aa2b49cd42868188d5dd473dea96e80215
| 45
|
py
|
Python
|
mmdet2trt/models/backbones/__init__.py
|
jackweiwang/mmdetection-to-tensorrt
|
f988ba8e923764fb1173385a1c7160b8f8b5bd99
|
[
"Apache-2.0"
] | 1
|
2021-08-23T10:09:37.000Z
|
2021-08-23T10:09:37.000Z
|
mmdet2trt/models/backbones/__init__.py
|
gcong18/mmdetection-to-tensorrt
|
c31c32ee4720ff56010bcda77bacf3a110d0526c
|
[
"Apache-2.0"
] | null | null | null |
mmdet2trt/models/backbones/__init__.py
|
gcong18/mmdetection-to-tensorrt
|
c31c32ee4720ff56010bcda77bacf3a110d0526c
|
[
"Apache-2.0"
] | null | null | null |
from .base_backbone import BaseBackboneWraper
| 45
| 45
| 0.911111
| 5
| 45
| 8
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.066667
| 45
| 1
| 45
| 45
| 0.952381
| 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
| 1
| 0
|
0
| 6
|
f7341e6c9c32a76959a3fd6e6bbc2c1258099c06
| 69
|
py
|
Python
|
project/db/serializers/__init__.py
|
sunday-ucheawaji/API-
|
07fb4b596cfe8e85b8575a8e70a8c886d3ab627a
|
[
"MIT"
] | null | null | null |
project/db/serializers/__init__.py
|
sunday-ucheawaji/API-
|
07fb4b596cfe8e85b8575a8e70a8c886d3ab627a
|
[
"MIT"
] | null | null | null |
project/db/serializers/__init__.py
|
sunday-ucheawaji/API-
|
07fb4b596cfe8e85b8575a8e70a8c886d3ab627a
|
[
"MIT"
] | 1
|
2022-02-09T14:13:20.000Z
|
2022-02-09T14:13:20.000Z
|
from db.serializers.reset_serializer import SetNewPasswordSerializer
| 34.5
| 68
| 0.913043
| 7
| 69
| 8.857143
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.057971
| 69
| 1
| 69
| 69
| 0.953846
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 1
| 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
| 1
| 1
| 0
| 1
| 0
|
0
| 6
|
f78966e147e74211c5c4049485163bba7cc57b66
| 2,328
|
py
|
Python
|
test/test_delete_contact.py
|
jekaterinak/python_training
|
5fc48bdd6abcb47a18042096a1f8b73c105fa379
|
[
"Apache-2.0"
] | null | null | null |
test/test_delete_contact.py
|
jekaterinak/python_training
|
5fc48bdd6abcb47a18042096a1f8b73c105fa379
|
[
"Apache-2.0"
] | null | null | null |
test/test_delete_contact.py
|
jekaterinak/python_training
|
5fc48bdd6abcb47a18042096a1f8b73c105fa379
|
[
"Apache-2.0"
] | null | null | null |
from model.contact import Contact
import random
from selenium.webdriver.support.wait import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
def test_delete_some_contact_via_main_view(app, db,check_ui):
if len(db.get_contact_list()) == 0:
app.contact.add(Contact(firstname="faname", lastname="lname", address="address", homephone="1",
mobilephone="2", workphone="3", fax="3", email="e1", email2="e2", email3="e3"))
old_contacts = db.get_contact_list()
contact = random.choice(old_contacts)
app.contact.delete_contact_by_id_via_main_view(contact.id)
WebDriverWait(app.wd, 5).until(EC.url_matches(app.base_url), 'Delete failed, not redirected to main page?')
new_contacts = db.get_contact_list()
assert len(old_contacts) - 1 == len(new_contacts)
old_contacts.remove(contact)
assert old_contacts == new_contacts
if check_ui:
for index, contact_item in enumerate(old_contacts):
formatted_contact = app.contact.contact_like_on_webpage(contact_item)
old_contacts[index] = formatted_contact
assert sorted(old_contacts, key=Contact.id_or_max)==sorted(app.contact.get_contact_list(), key=Contact.id_or_max)
def test_delete_some_contact_via_edit_view(app, db,check_ui):
if len(db.get_contact_list()) == 0:
app.contact.add(Contact(firstname="faname", lastname="lname", address="address", homephone="1",
mobilephone="2", workphone="3", fax="3", email="e1", email2="e2", email3="e3"))
old_contacts = db.get_contact_list()
contact = random.choice(old_contacts)
app.contact.delete_contact_by_id_via_edit_view(contact.id)
new_contacts = db.get_contact_list()
assert len(old_contacts) - 1 == len(new_contacts)
old_contacts.remove(contact)
assert old_contacts == new_contacts
if check_ui:
for index, contact_item in enumerate(old_contacts):
formatted_contact = app.contact.contact_like_on_webpage(contact_item)
old_contacts[index] = formatted_contact
assert sorted(old_contacts, key=Contact.id_or_max) == sorted(app.contact.get_contact_list(),
key=Contact.id_or_max)
| 55.428571
| 122
| 0.682131
| 309
| 2,328
| 4.84466
| 0.265372
| 0.117568
| 0.074816
| 0.064128
| 0.818971
| 0.818971
| 0.782899
| 0.782899
| 0.782899
| 0.782899
| 0
| 0.012486
| 0.208763
| 2,328
| 41
| 123
| 56.780488
| 0.800217
| 0
| 0
| 0.684211
| 0
| 0
| 0.043288
| 0
| 0
| 0
| 0
| 0
| 0.157895
| 1
| 0.052632
| false
| 0
| 0.105263
| 0
| 0.157895
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 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
| 6
|
5414819b2f3b13bec1f30c9c52b02402841a9338
| 92
|
py
|
Python
|
rosalind/ini2.py
|
sowmyamanojna/BT3051-Data-Structures-and-Algorithms
|
09c17e42c2e173a6ab10339f08fbc1505db8ea56
|
[
"MIT"
] | 1
|
2021-05-13T13:10:42.000Z
|
2021-05-13T13:10:42.000Z
|
rosalind/ini2.py
|
sowmyamanojna/BT3051-Data-Structures-and-Algorithms
|
09c17e42c2e173a6ab10339f08fbc1505db8ea56
|
[
"MIT"
] | null | null | null |
rosalind/ini2.py
|
sowmyamanojna/BT3051-Data-Structures-and-Algorithms
|
09c17e42c2e173a6ab10339f08fbc1505db8ea56
|
[
"MIT"
] | null | null | null |
# [a, b] = map(int, input().split())
[a,b] = map(int, raw_input().split())
print a**2 + b**2
| 30.666667
| 37
| 0.532609
| 18
| 92
| 2.666667
| 0.5
| 0.083333
| 0.208333
| 0.333333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.025316
| 0.141304
| 92
| 3
| 38
| 30.666667
| 0.582278
| 0.369565
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0
| null | null | 0.5
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 6
|
541f1446dd19a9673cfa16a9b97254165d957119
| 10,618
|
py
|
Python
|
ML-KWS-for-MCU/ensemble_csv.py
|
entropyencoder/keyword_spotting
|
c5ae9ce8492e530c6fcb7913d1947f9eebd3a49b
|
[
"Apache-2.0"
] | 2
|
2018-04-25T02:58:07.000Z
|
2018-11-25T02:44:29.000Z
|
ML-KWS-for-MCU/ensemble_csv.py
|
entropyencoder/keyword_spotting
|
c5ae9ce8492e530c6fcb7913d1947f9eebd3a49b
|
[
"Apache-2.0"
] | null | null | null |
ML-KWS-for-MCU/ensemble_csv.py
|
entropyencoder/keyword_spotting
|
c5ae9ce8492e530c6fcb7913d1947f9eebd3a49b
|
[
"Apache-2.0"
] | null | null | null |
import csv
import numpy as np
# labels
# 0. silence
# 1. unknown
# 2. yes
# 3. no
# 4. up
# 5. down
# 6. left
# 7. right
# 8. on
# 9. off
# 10. stop
# 11. go
class_labels = ('silence','unknown','yes','no','up','down','left','right','on','off','stop','go')
########################################################################
# This code assumes all source files have been sorted in the same way. #
########################################################################
# with open('pred_all.csv', 'w') as csvfile:
#with open("../test_ensemble_DSCNN_GRU_LSTM.csv", 'w') as ensemble_csv:
# with open("../test_ensemble_DSCNN_GRU_CRNN.csv", 'w') as ensemble_csv:
# with open("../test_ensemble_DSCNN_GRU_LSTM_excluding_unknown.csv", 'w') as ensemble_csv:
# with open("../test_ensemble_DSCNN_GRU_CRNN_excluding_unknown.csv", 'w') as ensemble_csv:
#with open("./test_ensemble_normal_cnn_GRU_CRNN.csv", 'w') as ensemble_csv:
#with open("./test_ensemble_DS_CNN3_up_0.50_GRU_CRNN.csv", 'w') as ensemble_csv:
#with open("./test_ensemble_normal_CNN_up_0.50_GRU_CRNN.csv", 'w') as ensemble_csv:
#with open("./test_ensemble_normal_CNN_up_0.50_GRU_LSTM.csv", 'w') as ensemble_csv:
#with open("./test_ensemble_normal_CNN_up_0.50_DS_CNN3_up_0.60_GRU.csv", 'w') as ensemble_csv:
#with open("./test_ensemble_normal_CNN_up_0.60_finer_input_DS_CNN3_up_0.60_GRU.csv", 'w') as ensemble_csv:
#with open("./test_ensemble_normal_CNN_up_0.60_finer_input_GRU_CRNN.csv", 'w') as ensemble_csv:
#with open("./test_ensemble_top3_ensembles.csv", 'w') as ensemble_csv:
#with open("./test_ensemble_normal_CNN_7l_512ch_20dctcc_10winstride_0.50up_0.50dropout_GRU3_up_0.50_CRNN3_up_0.50.csv", 'w') as ensemble_csv:
#with open("./test_ensemble_current_top_3s_180112_0009.csv", 'w') as ensemble_csv:
# with open("./test_ensemble_current_top_3s_180112_2242.csv", 'w') as ensemble_csv:
#with open("./test_ensemble_current_top_5s_180115_0631.csv", 'w') as ensemble_csv:
#with open("./test_ensemble_180116_0633.csv", 'w') as ensemble_csv:
#with open("./test_ensemble_180116_0641.csv", 'w') as ensemble_csv:
#with open("./test_ensemble_180116_2302.csv", 'w') as ensemble_csv:
#with open("./test_ensemble_180116_2307.csv", 'w') as ensemble_csv:
with open("./test_ensemble_final_180117.csv", 'w') as ensemble_csv:
ensemble_csv_wr = csv.writer(ensemble_csv, delimiter=',',
quotechar='|', quoting=csv.QUOTE_MINIMAL)
# # Ensemble 0
# pred_csv_0 = open("test_DS-CNN_3.csv", "r")
# pred_csv_1 = open("test_GRU_L.csv", "r")
# pred_csv_2 = open("test_LSTM_L.csv", "r")
## Ensemble 1
#pred_csv_0 = open("../test_DS-CNN_3.csv", "r")
#pred_csv_1 = open("../test_GRU_L.csv", "r")
#pred_csv_2 = open("../test_CRNN_L.csv", "r")
## Ensemble 2
#pred_csv_0 = open("./test_normal_cnn.csv", "r")
#pred_csv_1 = open("./test_GRU_L.csv", "r")
#pred_csv_2 = open("./test_CRNN_L.csv", "r")
## Ensemble 3
#pred_csv_0 = open("./test_DS_CNN3_up_0.50.csv", "r")
#pred_csv_1 = open("./test_GRU_L.csv", "r")
#pred_csv_2 = open("./test_CRNN_L.csv", "r")
## Ensemble 4
#pred_csv_0 = open("./test_normal_CNN_up_0.50.csv", "r")
#pred_csv_1 = open("./test_GRU_L.csv", "r")
#pred_csv_2 = open("./test_CRNN_L.csv", "r")
## Ensemble 4
#pred_csv_0 = open("./test_normal_CNN_up_0.50.csv", "r")
#pred_csv_1 = open("./test_GRU_L.csv", "r")
#pred_csv_2 = open("./test_LSTM_L.csv", "r")
## Ensemble 4
#pred_csv_0 = open("./test_normal_CNN_up_0.50.csv", "r")
#pred_csv_1 = open("./test_DS_CNN3_up_0.60.csv", "r")
#pred_csv_2 = open("./test_GRU_L.csv", "r")
## Ensemble 4
#pred_csv_0 = open("./test_normal_CNN_up_0.60_finer_input.csv", "r")
#pred_csv_1 = open("./test_DS_CNN3_up_0.60.csv", "r")
#pred_csv_2 = open("./test_GRU_L.csv", "r")
## Ensemble 4
#pred_csv_0 = open("./test_normal_CNN_up_0.60_finer_input.csv", "r")
#pred_csv_1 = open("./test_GRU_L.csv", "r")
#pred_csv_2 = open("./test_CRNN_L.csv", "r")
## Ensemble 4
#pred_csv_0 = open("./test_ensemble_normal_CNN_up_0.60_finer_input_DS_CNN3_up_0.60_GRU.csv", 'r')
#pred_csv_1 = open("./test_ensemble_normal_CNN_up_0.60_finer_input_GRU_CRNN.csv", 'r')
#pred_csv_2 = open("./test_ensemble_normal_CNN_up_0.50_DS_CNN3_up_0.60_GRU.csv", 'r')
## Ensemble 4
#pred_csv_0 = open("./test_normal_CNN_7l_512ch_20dctcc_10winstride_0.50up_0.50dropout.csv", 'r')
#pred_csv_1 = open("./test_GRU3_up_0.50.csv", 'r')
#pred_csv_2 = open("./test_CRNN3_up_0.50.csv", 'r')
## Ensemble 4
#pred_csv_0 = open("./test_normal_CNN_7l_512ch_20dctcc_10winstride_0.50up_0.50dropout.csv", 'r')
#pred_csv_1 = open("./test_normal_CNN_7l_512ch_40dctcc_10winstride_0.50up_0.50dropout.csv", 'r')
#pred_csv_2 = open("./test_normal_CNN_10l_512ch_20dctcc_10winstride_0.50up_0.50dropout.csv", 'r')
## Ensemble 4 <<<<<<<<<< Current best >>>>>>>>>>>>
#pred_csv_0 = open("./test_normal_CNN_11l_512ch_20dctcc_10winstride_0.50up_0.50dropout.csv", 'r')
#pred_csv_1 = open("./test_normal_CNN_7l_512ch_20dctcc_10winstride_0.50up_0.50dropout.csv", 'r')
#pred_csv_2 = open("./test_normal_CNN_7l_512ch_40dctcc_10winstride_0.50up_0.50dropout.csv", 'r')
## Ensemble 4
# pred_csv_0 = open("./test_normal_CNN_11l_512ch_20dctcc_10winstride_0.50up_0.50dropout.csv", 'r')
# pred_csv_1 = open("./test_normal_CNN_7l_512ch_20dctcc_10winstride_0.50up_0.50dropout.csv", 'r')
# pred_csv_2 = open("./test_normal_CNN_7l_512ch_40dctcc_10winstride_0.50up_0.50dropout.csv", 'r')
# pred_csv_3 = open("./test_normal_CNN_10l_512ch_20dctcc_10winstride_0.50up_0.50dropout.csv", 'r')
# pred_csv_4 = open("./test_normal_CNN_14l_512ch_20dctcc_10winstride_0.50up_0.50dropout.csv", 'r')
## Ensemble test_ensemble_180116_0633.csv
#pred_csv_0 = open("./test_ensemble_current_top_3s_180112_2242.csv", 'r')
#pred_csv_1 = open("./test_normal_CNN_11l_512ch_20dctcc_10winstride_0.50up_0.50dropout.csv", 'r')
#pred_csv_2 = open("./test_normal_CNN_10l_512ch_20dctcc_10winstride_0.50up_0.50dropout.csv", 'r')
#pred_csv_3 = open("./test_normal_CNN_13l_512ch_20dctcc_10winstride_0.50up_0.50dropout.csv", 'r')
#pred_csv_4 = open("./test_normal_CNN_14l_512ch_20dctcc_10winstride_0.50up_0.50dropout.csv", 'r')
## Ensemble test_ensemble_180116_0641.csv
#pred_csv_0 = open("./test_normal_CNN_11l_512ch_20dctcc_10winstride_0.50up_0.50dropout.csv", 'r')
#pred_csv_1 = open("./test_normal_CNN_11l_512ch_20dctcc_10winstride_0.50up_0.50dropout_copy1.csv", 'r')
#pred_csv_2 = open("./test_normal_CNN_11l_512ch_20dctcc_10winstride_0.50up_0.50dropout_copy2.csv", 'r')
#pred_csv_3 = open("./test_normal_CNN_7l_512ch_20dctcc_10winstride_0.50up_0.50dropout.csv", 'r')
#pred_csv_4 = open("./test_normal_CNN_7l_512ch_40dctcc_10winstride_0.50up_0.50dropout.csv", 'r')
## Ensemble "./test_ensemble_180116_2302.csv"
#pred_csv_0 = open("./test_normal_CNN_11l_512ch_20dctcc_10winstride_0.50up_0.50dropout.csv", 'r')
#pred_csv_1 = open("./test_normal_CNN_7l_512ch_20dctcc_10winstride_0.50up_0.50dropout.csv", 'r')
#pred_csv_2 = open("./test_normal_CNN_7l_512ch_40dctcc_10winstride_0.50up_0.50dropout.csv", 'r')
## Ensemble "./test_ensemble_180116_2307.csv"
#pred_csv_0 = open("./test_normal_CNN_11l_512ch_20dctcc_10winstride_0.50up_0.50dropout.csv", 'r')
#pred_csv_1 = open("./test_normal_CNN_7l_512ch_20dctcc_10winstride_0.50up_0.50dropout.csv", 'r')
#pred_csv_2 = open("./test_normal_CNN_7l_512ch_40dctcc_10winstride_0.50up_0.50dropout.csv", 'r')
# Ensemble "./test_ensemble_final_180117.csv"
pred_csv_0 = open("./test_normal_CNN_11l_512ch_20dctcc_10winstride_0.50up_0.50dropout.csv", 'r')
pred_csv_1 = open("./test_normal_CNN_11l_512ch_40dctcc_10winstride_0.50up_0.50dropout.csv", 'r')
pred_csv_2 = open("./test_normal_CNN_7l_512ch_20dctcc_10winstride_0.50up_0.50dropout.csv", 'r')
##################################################################################
# (1) Ensemble from 3 predictions
##################################################################################
# Remove header
pred_csv_0.readline()
pred_csv_1.readline()
pred_csv_2.readline()
pred_csv_rd_0 = csv.reader(pred_csv_0)
pred_csv_rd_1 = csv.reader(pred_csv_1)
pred_csv_rd_2 = csv.reader(pred_csv_2)
ensemble_csv_wr.writerow(['fname', 'label'])
# Same priority between classes
for row_0, row_1, row_2 in zip(pred_csv_rd_0, pred_csv_rd_1, pred_csv_rd_2):
# Simple majority voting from three predictions
# The highest priority is 'DSCNN'.
if row_1[1]==row_2[1]:
sel_class = row_1[1]
else:
sel_class = row_0[1]
ensemble_csv_wr.writerow([row_0[0], sel_class])
## Unknown-weighted ensemble
#for row_0, row_1, row_2 in zip(pred_csv_rd_0, pred_csv_rd_1, pred_csv_rd_2):
# # Simple majority voting from three predictions
# # The highest priority is 'DSCNN'.
# if (row_0[1]=='unknown') or (row_1[1]=='unknown') or (row_2[1]=='unknown'):
# sel_class = 'unknown'
# else:
# if row_1[1]==row_2[1]:
# sel_class = row_1[1]
# else:
# sel_class = row_0[1]
#
# ensemble_csv_wr.writerow([row_0[0], sel_class])
# ##################################################################################
# # (2) Ensemble from 5 predictions
# ##################################################################################
# # Remove header
# pred_csv_0.readline()
# pred_csv_1.readline()
# pred_csv_2.readline()
# pred_csv_3.readline()
# pred_csv_4.readline()
# pred_csv_rd_0 = csv.reader(pred_csv_0)
# pred_csv_rd_1 = csv.reader(pred_csv_1)
# pred_csv_rd_2 = csv.reader(pred_csv_2)
# pred_csv_rd_3 = csv.reader(pred_csv_3)
# pred_csv_rd_4 = csv.reader(pred_csv_4)
# ensemble_csv_wr.writerow(['fname', 'label'])
# for row_0, row_1, row_2, row_3, row_4 in zip(pred_csv_rd_0, pred_csv_rd_1, pred_csv_rd_2, pred_csv_rd_3, pred_csv_rd_4):
# # Majority vote from 5 predictions
# class_cnt = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
# class_cnt[class_labels.index(row_0[1])] = class_cnt[class_labels.index(row_0[1])] + 1
# class_cnt[class_labels.index(row_1[1])] = class_cnt[class_labels.index(row_1[1])] + 1
# class_cnt[class_labels.index(row_2[1])] = class_cnt[class_labels.index(row_2[1])] + 1
# class_cnt[class_labels.index(row_3[1])] = class_cnt[class_labels.index(row_3[1])] + 1
# class_cnt[class_labels.index(row_4[1])] = class_cnt[class_labels.index(row_4[1])] + 1
# max_cnt_class_num = np.argmax(class_cnt)
# if (class_cnt[max_cnt_class_num]==1):
# sel_class = row_0[1]
# else:
# sel_class = class_labels[max_cnt_class_num]
# ensemble_csv_wr.writerow([row_0[0], sel_class])
| 51.543689
| 141
| 0.691091
| 1,774
| 10,618
| 3.666855
| 0.078918
| 0.105457
| 0.054112
| 0.074404
| 0.892544
| 0.869331
| 0.854727
| 0.837663
| 0.828747
| 0.780323
| 0
| 0.094158
| 0.111791
| 10,618
| 205
| 142
| 51.795122
| 0.595589
| 0.793652
| 0
| 0
| 0
| 0
| 0.197128
| 0.157311
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.090909
| 0
| 0.090909
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 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
| 6
|
541fb899d81bf88f5676ab0790175487d2de51ba
| 373
|
py
|
Python
|
Engine/Source/Scripts/MoveRight.py
|
hebohang/HEngine
|
82f40797a7cfabaa11aeeb7797fba70551d18017
|
[
"MIT"
] | null | null | null |
Engine/Source/Scripts/MoveRight.py
|
hebohang/HEngine
|
82f40797a7cfabaa11aeeb7797fba70551d18017
|
[
"MIT"
] | null | null | null |
Engine/Source/Scripts/MoveRight.py
|
hebohang/HEngine
|
82f40797a7cfabaa11aeeb7797fba70551d18017
|
[
"MIT"
] | null | null | null |
import numpy as np
import HEngine
def OnUpdateRuntime(transformComponent, ts):
transformComponent.SetTranslation(transformComponent.GetTranslation().x + ts.GetSeconds(), transformComponent.GetTranslation().y, transformComponent.GetTranslation().z)
return transformComponent;
def OnUpdateEditor(transformComponent):
return transformComponent.GetTranslation().x
| 41.444444
| 172
| 0.823056
| 32
| 373
| 9.59375
| 0.53125
| 0.416938
| 0.214984
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.088472
| 373
| 9
| 173
| 41.444444
| 0.902941
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.285714
| false
| 0
| 0.285714
| 0.142857
| 0.857143
| 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
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 6
|
580fd97b7af06b12e1db4e20635c98699130dc30
| 185
|
py
|
Python
|
src/eduid_graphdb/groupdb/__init__.py
|
SUNET/eduid-groupdb
|
c9b4631ff944211eab82595f005bc7e707142216
|
[
"BSD-3-Clause"
] | 1
|
2020-09-05T03:14:37.000Z
|
2020-09-05T03:14:37.000Z
|
src/eduid_graphdb/groupdb/__init__.py
|
SUNET/eduid-graphdb
|
c9b4631ff944211eab82595f005bc7e707142216
|
[
"BSD-3-Clause"
] | null | null | null |
src/eduid_graphdb/groupdb/__init__.py
|
SUNET/eduid-graphdb
|
c9b4631ff944211eab82595f005bc7e707142216
|
[
"BSD-3-Clause"
] | null | null | null |
# -*- coding: utf-8 -*-
from eduid_graphdb.groupdb.db import GroupDB
from eduid_graphdb.groupdb.group import Group
from eduid_graphdb.groupdb.user import User
__author__ = 'lundberg'
| 23.125
| 45
| 0.783784
| 26
| 185
| 5.307692
| 0.5
| 0.195652
| 0.347826
| 0.5
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.006135
| 0.118919
| 185
| 7
| 46
| 26.428571
| 0.840491
| 0.113514
| 0
| 0
| 0
| 0
| 0.049383
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.75
| 0
| 0.75
| 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
| 1
| 0
| 1
| 0
|
0
| 6
|
582fcf6f2605802fb75e5d1896a5fe2639e15c2c
| 12,933
|
py
|
Python
|
tests/test_compressor_fuzzing.py
|
pxscott/python-zstandard
|
3e6553438b0d779f30e07ebc325fdd0c14cecdb2
|
[
"BSD-3-Clause"
] | null | null | null |
tests/test_compressor_fuzzing.py
|
pxscott/python-zstandard
|
3e6553438b0d779f30e07ebc325fdd0c14cecdb2
|
[
"BSD-3-Clause"
] | null | null | null |
tests/test_compressor_fuzzing.py
|
pxscott/python-zstandard
|
3e6553438b0d779f30e07ebc325fdd0c14cecdb2
|
[
"BSD-3-Clause"
] | null | null | null |
import io
import os
import unittest
try:
import hypothesis
import hypothesis.strategies as strategies
except ImportError:
raise unittest.SkipTest('hypothesis not available')
import zstandard as zstd
from . common import (
make_cffi,
random_input_data,
)
@unittest.skipUnless('ZSTD_SLOW_TESTS' in os.environ, 'ZSTD_SLOW_TESTS not set')
@make_cffi
class TestCompressor_stream_reader_fuzzing(unittest.TestCase):
@hypothesis.given(original=strategies.sampled_from(random_input_data()),
level=strategies.integers(min_value=1, max_value=5),
source_read_size=strategies.integers(1, 16384),
read_sizes=strategies.data())
def test_stream_source_read_variance(self, original, level, source_read_size,
read_sizes):
refctx = zstd.ZstdCompressor(level=level)
ref_frame = refctx.compress(original)
cctx = zstd.ZstdCompressor(level=level)
with cctx.stream_reader(io.BytesIO(original), size=len(original),
read_size=source_read_size) as reader:
chunks = []
while True:
read_size = read_sizes.draw(strategies.integers(1, 16384))
chunk = reader.read(read_size)
if not chunk:
break
chunks.append(chunk)
self.assertEqual(b''.join(chunks), ref_frame)
@hypothesis.given(original=strategies.sampled_from(random_input_data()),
level=strategies.integers(min_value=1, max_value=5),
source_read_size=strategies.integers(1, 16384),
read_sizes=strategies.data())
def test_buffer_source_read_variance(self, original, level, source_read_size,
read_sizes):
refctx = zstd.ZstdCompressor(level=level)
ref_frame = refctx.compress(original)
cctx = zstd.ZstdCompressor(level=level)
with cctx.stream_reader(original, size=len(original),
read_size=source_read_size) as reader:
chunks = []
while True:
read_size = read_sizes.draw(strategies.integers(1, 16384))
chunk = reader.read(read_size)
if not chunk:
break
chunks.append(chunk)
self.assertEqual(b''.join(chunks), ref_frame)
@unittest.skipUnless('ZSTD_SLOW_TESTS' in os.environ, 'ZSTD_SLOW_TESTS not set')
@make_cffi
class TestCompressor_stream_writer_fuzzing(unittest.TestCase):
@hypothesis.given(original=strategies.sampled_from(random_input_data()),
level=strategies.integers(min_value=1, max_value=5),
write_size=strategies.integers(min_value=1, max_value=1048576))
def test_write_size_variance(self, original, level, write_size):
refctx = zstd.ZstdCompressor(level=level)
ref_frame = refctx.compress(original)
cctx = zstd.ZstdCompressor(level=level)
b = io.BytesIO()
with cctx.stream_writer(b, size=len(original), write_size=write_size) as compressor:
compressor.write(original)
self.assertEqual(b.getvalue(), ref_frame)
@unittest.skipUnless('ZSTD_SLOW_TESTS' in os.environ, 'ZSTD_SLOW_TESTS not set')
@make_cffi
class TestCompressor_copy_stream_fuzzing(unittest.TestCase):
@hypothesis.given(original=strategies.sampled_from(random_input_data()),
level=strategies.integers(min_value=1, max_value=5),
read_size=strategies.integers(min_value=1, max_value=1048576),
write_size=strategies.integers(min_value=1, max_value=1048576))
def test_read_write_size_variance(self, original, level, read_size, write_size):
refctx = zstd.ZstdCompressor(level=level)
ref_frame = refctx.compress(original)
cctx = zstd.ZstdCompressor(level=level)
source = io.BytesIO(original)
dest = io.BytesIO()
cctx.copy_stream(source, dest, size=len(original), read_size=read_size,
write_size=write_size)
self.assertEqual(dest.getvalue(), ref_frame)
@unittest.skipUnless('ZSTD_SLOW_TESTS' in os.environ, 'ZSTD_SLOW_TESTS not set')
@make_cffi
class TestCompressor_compressobj_fuzzing(unittest.TestCase):
@hypothesis.settings(
suppress_health_check=[hypothesis.HealthCheck.large_base_example])
@hypothesis.given(original=strategies.sampled_from(random_input_data()),
level=strategies.integers(min_value=1, max_value=5),
chunk_sizes=strategies.data())
def test_random_input_sizes(self, original, level, chunk_sizes):
refctx = zstd.ZstdCompressor(level=level)
ref_frame = refctx.compress(original)
cctx = zstd.ZstdCompressor(level=level)
cobj = cctx.compressobj(size=len(original))
chunks = []
i = 0
while True:
chunk_size = chunk_sizes.draw(strategies.integers(1, 4096))
source = original[i:i + chunk_size]
if not source:
break
chunks.append(cobj.compress(source))
i += chunk_size
chunks.append(cobj.flush())
self.assertEqual(b''.join(chunks), ref_frame)
@hypothesis.settings(
suppress_health_check=[hypothesis.HealthCheck.large_base_example])
@hypothesis.given(original=strategies.sampled_from(random_input_data()),
level=strategies.integers(min_value=1, max_value=5),
chunk_sizes=strategies.data(),
flushes=strategies.data())
def test_flush_block(self, original, level, chunk_sizes, flushes):
cctx = zstd.ZstdCompressor(level=level)
cobj = cctx.compressobj()
dctx = zstd.ZstdDecompressor()
dobj = dctx.decompressobj()
compressed_chunks = []
decompressed_chunks = []
i = 0
while True:
input_size = chunk_sizes.draw(strategies.integers(1, 4096))
source = original[i:i + input_size]
if not source:
break
i += input_size
chunk = cobj.compress(source)
compressed_chunks.append(chunk)
decompressed_chunks.append(dobj.decompress(chunk))
if not flushes.draw(strategies.booleans()):
continue
chunk = cobj.flush(zstd.COMPRESSOBJ_FLUSH_BLOCK)
compressed_chunks.append(chunk)
decompressed_chunks.append(dobj.decompress(chunk))
self.assertEqual(b''.join(decompressed_chunks), original[0:i])
chunk = cobj.flush(zstd.COMPRESSOBJ_FLUSH_FINISH)
compressed_chunks.append(chunk)
decompressed_chunks.append(dobj.decompress(chunk))
self.assertEqual(dctx.decompress(b''.join(compressed_chunks),
max_output_size=len(original)),
original)
self.assertEqual(b''.join(decompressed_chunks), original)
@unittest.skipUnless('ZSTD_SLOW_TESTS' in os.environ, 'ZSTD_SLOW_TESTS not set')
@make_cffi
class TestCompressor_read_to_iter_fuzzing(unittest.TestCase):
@hypothesis.given(original=strategies.sampled_from(random_input_data()),
level=strategies.integers(min_value=1, max_value=5),
read_size=strategies.integers(min_value=1, max_value=4096),
write_size=strategies.integers(min_value=1, max_value=4096))
def test_read_write_size_variance(self, original, level, read_size, write_size):
refcctx = zstd.ZstdCompressor(level=level)
ref_frame = refcctx.compress(original)
source = io.BytesIO(original)
cctx = zstd.ZstdCompressor(level=level)
chunks = list(cctx.read_to_iter(source, size=len(original),
read_size=read_size,
write_size=write_size))
self.assertEqual(b''.join(chunks), ref_frame)
@unittest.skipUnless('ZSTD_SLOW_TESTS' in os.environ, 'ZSTD_SLOW_TESTS not set')
class TestCompressor_multi_compress_to_buffer_fuzzing(unittest.TestCase):
@hypothesis.given(original=strategies.lists(strategies.sampled_from(random_input_data()),
min_size=1, max_size=1024),
threads=strategies.integers(min_value=1, max_value=8),
use_dict=strategies.booleans())
def test_data_equivalence(self, original, threads, use_dict):
kwargs = {}
# Use a content dictionary because it is cheap to create.
if use_dict:
kwargs['dict_data'] = zstd.ZstdCompressionDict(original[0])
cctx = zstd.ZstdCompressor(level=1,
write_checksum=True,
**kwargs)
result = cctx.multi_compress_to_buffer(original, threads=-1)
self.assertEqual(len(result), len(original))
# The frame produced via the batch APIs may not be bit identical to that
# produced by compress() because compression parameters are adjusted
# from the first input in batch mode. So the only thing we can do is
# verify the decompressed data matches the input.
dctx = zstd.ZstdDecompressor(**kwargs)
for i, frame in enumerate(result):
self.assertEqual(dctx.decompress(frame), original[i])
@unittest.skipUnless('ZSTD_SLOW_TESTS' in os.environ, 'ZSTD_SLOW_TESTS not set')
@make_cffi
class TestCompressor_chunker_fuzzing(unittest.TestCase):
@hypothesis.settings(
suppress_health_check=[hypothesis.HealthCheck.large_base_example])
@hypothesis.given(original=strategies.sampled_from(random_input_data()),
level=strategies.integers(min_value=1, max_value=5),
chunk_size=strategies.integers(
min_value=1,
max_value=32 * 1048576),
input_sizes=strategies.data())
def test_random_input_sizes(self, original, level, chunk_size, input_sizes):
cctx = zstd.ZstdCompressor(level=level)
chunker = cctx.chunker(chunk_size=chunk_size)
chunks = []
i = 0
while True:
input_size = input_sizes.draw(strategies.integers(1, 4096))
source = original[i:i + input_size]
if not source:
break
chunks.extend(chunker.compress(source))
i += input_size
chunks.extend(chunker.finish())
dctx = zstd.ZstdDecompressor()
self.assertEqual(dctx.decompress(b''.join(chunks),
max_output_size=len(original)),
original)
self.assertTrue(all(len(chunk) == chunk_size for chunk in chunks[:-1]))
@hypothesis.settings(
suppress_health_check=[hypothesis.HealthCheck.large_base_example])
@hypothesis.given(original=strategies.sampled_from(random_input_data()),
level=strategies.integers(min_value=1, max_value=5),
chunk_size=strategies.integers(
min_value=1,
max_value=32 * 1048576),
input_sizes=strategies.data(),
flushes=strategies.data())
def test_flush_block(self, original, level, chunk_size, input_sizes,
flushes):
cctx = zstd.ZstdCompressor(level=level)
chunker = cctx.chunker(chunk_size=chunk_size)
dctx = zstd.ZstdDecompressor()
dobj = dctx.decompressobj()
compressed_chunks = []
decompressed_chunks = []
i = 0
while True:
input_size = input_sizes.draw(strategies.integers(1, 4096))
source = original[i:i + input_size]
if not source:
break
i += input_size
chunks = list(chunker.compress(source))
compressed_chunks.extend(chunks)
decompressed_chunks.append(dobj.decompress(b''.join(chunks)))
if not flushes.draw(strategies.booleans()):
continue
chunks = list(chunker.flush())
compressed_chunks.extend(chunks)
decompressed_chunks.append(dobj.decompress(b''.join(chunks)))
self.assertEqual(b''.join(decompressed_chunks), original[0:i])
chunks = list(chunker.finish())
compressed_chunks.extend(chunks)
decompressed_chunks.append(dobj.decompress(b''.join(chunks)))
self.assertEqual(dctx.decompress(b''.join(compressed_chunks),
max_output_size=len(original)),
original)
self.assertEqual(b''.join(decompressed_chunks), original)
| 40.415625
| 93
| 0.624217
| 1,414
| 12,933
| 5.492221
| 0.11669
| 0.057945
| 0.04597
| 0.056915
| 0.801313
| 0.799124
| 0.76307
| 0.734484
| 0.715684
| 0.699588
| 0
| 0.014295
| 0.2806
| 12,933
| 320
| 94
| 40.415625
| 0.8204
| 0.023815
| 0
| 0.659919
| 0
| 0
| 0.023693
| 0
| 0
| 0
| 0
| 0
| 0.064777
| 1
| 0.040486
| false
| 0
| 0.032389
| 0
| 0.101215
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 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
| 6
|
584d73271d6eb0d7a133a8d52bc0724ae7f82470
| 524
|
py
|
Python
|
Aula07/aula07a.py
|
anderr8/Python-Mundo-1
|
cd4610b038f051adc0f6c4c1f1c383e0877c614c
|
[
"MIT"
] | null | null | null |
Aula07/aula07a.py
|
anderr8/Python-Mundo-1
|
cd4610b038f051adc0f6c4c1f1c383e0877c614c
|
[
"MIT"
] | null | null | null |
Aula07/aula07a.py
|
anderr8/Python-Mundo-1
|
cd4610b038f051adc0f6c4c1f1c383e0877c614c
|
[
"MIT"
] | null | null | null |
nome = input('Qual é seu nome? ')
print('Prazer em te conhecer {}!'.format(nome))
#print('Prazer em te conhecer {:20}!'.format(nome)) exemplo terá 20 espaços vazios
#print('Prazer em te conhecer {:>20}!'.format(nome))exemplo será alinhado à direita
#print('Prazer em te conhecer {:<20}!'.format(nome)) exemplo será alinhado à esquerda
#print('Prazer em te comhecer {:^20}!'.format(nome)) exemplo será centralizado
#print('Prazer em te conhecer {:=^20}!'.format(nome) exemplo será centralizado com sinais de iguais dos lados)
| 74.857143
| 110
| 0.727099
| 80
| 524
| 4.7625
| 0.3625
| 0.173228
| 0.204724
| 0.23622
| 0.724409
| 0.724409
| 0.519685
| 0.519685
| 0.519685
| 0.409449
| 0
| 0.025974
| 0.118321
| 524
| 7
| 110
| 74.857143
| 0.798701
| 0.826336
| 0
| 0
| 0
| 0
| 0.482759
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.5
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 1
| 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
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 6
|
5868a244151e45122e8f8b8451e0321379d8ec9f
| 34,959
|
py
|
Python
|
pirates/leveleditor/worldData/interior_spanish_store_weapons.py
|
itsyaboyrocket/pirates
|
6ca1e7d571c670b0d976f65e608235707b5737e3
|
[
"BSD-3-Clause"
] | 3
|
2021-02-25T06:38:13.000Z
|
2022-03-22T07:00:15.000Z
|
pirates/leveleditor/worldData/interior_spanish_store_weapons.py
|
itsyaboyrocket/pirates
|
6ca1e7d571c670b0d976f65e608235707b5737e3
|
[
"BSD-3-Clause"
] | null | null | null |
pirates/leveleditor/worldData/interior_spanish_store_weapons.py
|
itsyaboyrocket/pirates
|
6ca1e7d571c670b0d976f65e608235707b5737e3
|
[
"BSD-3-Clause"
] | 1
|
2021-02-25T06:38:17.000Z
|
2021-02-25T06:38:17.000Z
|
# uncompyle6 version 3.2.0
# Python bytecode 2.4 (62061)
# Decompiled from: Python 2.7.14 (v2.7.14:84471935ed, Sep 16 2017, 20:19:30) [MSC v.1500 32 bit (Intel)]
# Embedded file name: pirates.leveleditor.worldData.interior_spanish_store_weapons
from pandac.PandaModules import Point3, VBase3, Vec4, Vec3
objectStruct = {'Objects': {'1156268617.43dzlu0i': {'Type': 'Building Interior', 'Name': '', 'Instanced': True, 'Objects': {'1167174288.76kmuller': {'Type': 'Interior_furnishings', 'DisableCollision': True, 'Holiday': '', 'Hpr': VBase3(136.849, 0.0, 0.0), 'Pos': Point3(-14.953, -16.924, 0.0), 'Scale': VBase3(1.0, 1.0, 1.0), 'VisSize': '', 'Visual': {'Model': 'models/props/fireplace_stucco'}}, '1167174328.87kmuller': {'Type': 'Prop_Groups', 'DisableCollision': True, 'Hpr': VBase3(-166.64, 0.0, 0.0), 'Pos': Point3(-3.561, 29.165, 5.265), 'Scale': VBase3(0.735, 0.735, 0.735), 'Visual': {'Model': 'models/props/prop_group_C'}}, '1167174414.26kmuller': {'Type': 'Ship_Props', 'DisableCollision': True, 'Hpr': VBase3(-86.819, 0.0, 0.0), 'Pos': Point3(-7.268, 15.711, 0.0), 'Scale': VBase3(1.0, 1.0, 1.0), 'Visual': {'Model': 'models/props/cannon_stack_01'}}, '1167174437.24kmuller': {'Type': 'Ship_Props', 'DisableCollision': True, 'Hpr': VBase3(47.914, 0.0, 0.0), 'Pos': Point3(2.187, 15.019, 0.0), 'Scale': VBase3(1.0, 1.0, 1.0), 'Visual': {'Model': 'models/props/cannonball_stack_square'}}, '1167174454.23kmuller': {'Type': 'Log_Stack', 'DisableCollision': True, 'Hpr': VBase3(-42.387, 0.0, 0.0), 'Pos': Point3(-7.026, -19.102, 0.0), 'Scale': VBase3(1.0, 1.0, 1.0), 'Visual': {'Model': 'models/props/Log_stack_a'}}, '1167174504.17kmuller': {'Type': 'Furniture', 'DisableCollision': True, 'Hpr': Point3(0.0, 0.0, 0.0), 'Pos': Point3(-1.027, 46.21, 5.265), 'Scale': VBase3(1.0, 1.0, 1.0), 'Visual': {'Color': (0.4000000059604645, 0.5, 0.4000000059604645, 1.0), 'Model': 'models/props/bookshelf_spanish'}}, '1167174514.03kmuller': {'Type': 'Furniture', 'DisableCollision': True, 'Hpr': Point3(0.0, 0.0, 0.0), 'Pos': Point3(7.835, 46.149, 5.265), 'Scale': VBase3(1.0, 1.0, 1.0), 'Visual': {'Model': 'models/props/bookshelf_spanish'}}, '1167174544.43kmuller': {'Type': 'Crate', 'DisableCollision': True, 'Hpr': VBase3(41.192, 0.0, 0.0), 'Pos': Point3(16.098, 43.066, 5.265), 'Scale': VBase3(1.0, 1.0, 1.0), 'Visual': {'Color': (0.7099999785423279, 0.6700000166893005, 0.6000000238418579, 1.0), 'Model': 'models/props/crates_group_1'}}, '1167973245.75kmuller': {'Type': 'Furniture', 'DisableCollision': True, 'Holiday': '', 'Hpr': VBase3(46.95, 0.0, 0.0), 'Pos': Point3(8.415, -20.143, 0.0), 'Scale': VBase3(1.0, 1.0, 1.0), 'VisSize': '', 'Visual': {'Model': 'models/props/counter_spanish'}}, '1167973422.92kmuller': {'Type': 'Furniture', 'DisableCollision': True, 'Holiday': '', 'Hpr': VBase3(46.95, 0.0, 0.0), 'Pos': Point3(16.589, -11.374, 0.0), 'Scale': VBase3(1.0, 1.0, 1.0), 'VisSize': '', 'Visual': {'Model': 'models/props/counter_spanish'}}, '1167973505.22kmuller': {'Type': 'Prop_Groups', 'DisableCollision': True, 'Hpr': VBase3(-77.633, 0.0, 0.0), 'Pos': Point3(7.571, 18.219, 0.0), 'Scale': VBase3(0.703, 0.703, 0.703), 'Visual': {'Model': 'models/props/prop_group_B'}}, '1181240782.71kmuller': {'Type': 'Interior_furnishings', 'DisableCollision': False, 'Hpr': VBase3(89.991, 0.0, 0.0), 'Pos': Point3(5.458, -23.614, 4.897), 'Scale': VBase3(1.0, 1.0, 1.0), 'Visual': {'Model': 'models/props/shop_weapons_rack_wall'}}, '1181240788.54kmuller': {'Type': 'Interior_furnishings', 'DisableCollision': False, 'Hpr': VBase3(89.991, 0.0, 0.0), 'Pos': Point3(5.458, -23.614, 4.897), 'Scale': VBase3(1.0, 1.0, 1.0), 'Visual': {'Model': 'models/props/shop_weapons_rack_wall_guns'}}, '1181243204.06kmuller': {'Type': 'Interior_furnishings', 'DisableCollision': False, 'Hpr': VBase3(178.994, 0.0, 0.0), 'Pos': Point3(18.806, -3.175, 0.0), 'Scale': VBase3(1.0, 1.0, 1.0), 'Visual': {'Model': 'models/props/shop_weapons_rack_floor'}}, '1181243209.01kmuller': {'Type': 'Interior_furnishings', 'DisableCollision': False, 'Hpr': VBase3(178.994, 0.0, 0.0), 'Pos': Point3(18.806, -3.175, 0.0), 'Scale': VBase3(1.0, 1.0, 1.0), 'Visual': {'Model': 'models/props/shop_weapons_rack_floor_guns'}}, '1181243253.45kmuller': {'Type': 'Interior_furnishings', 'DisableCollision': False, 'Hpr': VBase3(-22.285, 0.0, 0.0), 'Pos': Point3(17.465, -11.154, 3.6), 'Scale': VBase3(1.0, 1.0, 1.0), 'Visual': {'Model': 'models/props/shop_weapons_rack_table'}}, '1181243256.93kmuller': {'Type': 'Interior_furnishings', 'DisableCollision': False, 'Hpr': VBase3(-22.285, 0.0, 0.0), 'Pos': Point3(17.465, -11.154, 3.6), 'Scale': VBase3(1.0, 1.0, 1.0), 'Visual': {'Model': 'models/props/shop_weapons_rack_table_gun'}}, '1181243273.21kmuller': {'Type': 'Interior_furnishings', 'DisableCollision': False, 'Hpr': VBase3(-48.492, -0.089, -0.008), 'Pos': Point3(6.935, -21.818, 3.598), 'Scale': VBase3(1.0, 1.0, 1.0), 'Visual': {'Model': 'models/props/shop_weapons_rack_table'}}, '1181243285.09kmuller': {'Type': 'Interior_furnishings', 'DisableCollision': False, 'Hpr': VBase3(46.764, 0.0, 0.089), 'Pos': Point3(6.325, -22.555, 4.068), 'Scale': VBase3(1.0, 1.0, 1.0), 'Visual': {'Model': 'models/props/shop_weapons_bayonet'}}, '1181243383.64kmuller': {'Type': 'Interior_furnishings', 'DisableCollision': False, 'Hpr': VBase3(0.0, -5.584, 7.029), 'Pos': Point3(19.034, -9.526, 3.525), 'Scale': VBase3(1.0, 1.0, 1.0), 'Visual': {'Model': 'models/props/shop_weapons_grenade'}}, '1181243394.31kmuller': {'Type': 'Interior_furnishings', 'DisableCollision': False, 'Hpr': VBase3(0.846, 4.681, -10.256), 'Pos': Point3(19.179, -8.893, 3.571), 'Scale': VBase3(1.0, 1.0, 1.0), 'Visual': {'Model': 'models/props/shop_weapons_grenade'}}, '1181243497.4kmuller': {'Type': 'Barrel', 'DisableCollision': True, 'Hpr': Point3(0.0, 0.0, 0.0), 'Pos': Point3(2.376, 46.011, 7.723), 'Scale': VBase3(0.188, 0.188, 0.188), 'Visual': {'Color': (0.7099999785423279, 0.6700000166893005, 0.6000000238418579, 1.0), 'Model': 'models/props/barrel'}}, '1181243671.68kmuller': {'Type': 'Barrel', 'DisableCollision': True, 'Hpr': Point3(0.0, 0.0, 0.0), 'Pos': Point3(1.301, 46.011, 7.678), 'Scale': VBase3(0.246, 0.246, 0.246), 'Visual': {'Model': 'models/props/barrel_grey'}}, '1181243702.34kmuller': {'Type': 'Barrel', 'DisableCollision': True, 'Hpr': Point3(0.0, 0.0, 0.0), 'Pos': Point3(0.238, 45.651, 7.683), 'Scale': VBase3(0.221, 0.221, 0.221), 'Visual': {'Color': (0.5899999737739563, 0.5299999713897705, 0.44999998807907104, 1.0), 'Model': 'models/props/barrel_grey'}}, '1181243783.82kmuller': {'Type': 'Barrel', 'DisableCollision': True, 'Hpr': VBase3(60.536, 0.0, 0.0), 'Pos': Point3(1.44, 45.785, 5.866), 'Scale': VBase3(0.34, 0.34, 0.34), 'Visual': {'Color': (0.800000011920929, 0.7900000214576721, 0.8299999833106995, 1.0), 'Model': 'models/props/barrel_sideways'}}, '1181243854.62kmuller': {'Type': 'Barrel', 'DisableCollision': True, 'Hpr': Point3(0.0, 0.0, 0.0), 'Pos': Point3(-0.832, 46.253, 7.723), 'Scale': VBase3(0.204, 0.204, 0.204), 'Visual': {'Model': 'models/props/barrel_worn'}}, '1181243886.87kmuller': {'Type': 'Trunks', 'DisableCollision': True, 'Hpr': Point3(0.0, 0.0, 0.0), 'Pos': Point3(-3.164, 45.802, 9.541), 'Scale': VBase3(0.656, 0.656, 0.656), 'Visual': {'Model': 'models/props/Trunk_rounded_2'}}, '1181243927.4kmuller': {'Type': 'Sack', 'DisableCollision': False, 'Hpr': VBase3(59.878, 0.0, 0.0), 'Pos': Point3(10.077, 45.819, 9.541), 'Scale': VBase3(1.0, 1.0, 1.0), 'Visual': {'Model': 'models/props/package_sack'}}, '1181243941.68kmuller': {'Type': 'Sack', 'DisableCollision': True, 'Hpr': Point3(0.0, 0.0, 0.0), 'Pos': Point3(8.287, 45.684, 7.646), 'Scale': VBase3(0.343, 0.343, 0.343), 'Visual': {'Model': 'models/props/sack_6stack'}}, '1181244041.9kmuller': {'Type': 'Interior_furnishings', 'DisableCollision': False, 'Hpr': VBase3(-177.848, 0.0, 0.0), 'Pos': Point3(20.088, -9.529, 5.288), 'Scale': VBase3(1.0, 1.0, 1.0), 'Visual': {'Model': 'models/props/shop_bsmith_rack'}}, '1181244105.11kmuller': {'Type': 'Interior_furnishings', 'DisableCollision': False, 'Hpr': VBase3(-88.259, 0.0, 0.0), 'Pos': Point3(19.623, -8.616, 6.347), 'Scale': VBase3(1.0, 1.0, 1.0), 'Visual': {'Model': 'models/props/shop_weapons_bayonet'}}, '1181244140.89kmuller': {'Type': 'Interior_furnishings', 'DisableCollision': False, 'Hpr': VBase3(92.962, 0.0, 0.699), 'Pos': Point3(19.714, -10.498, 7.044), 'Scale': VBase3(1.0, 1.0, 1.0), 'Visual': {'Model': 'models/props/shop_weapons_bayonet'}}, '1182192599.66kmuller': {'Type': 'Ship_Props', 'DisableCollision': True, 'Hpr': VBase3(113.977, 0.0, 0.0), 'Pos': Point3(1.048, -19.946, 0.429), 'Scale': VBase3(1.0, 1.0, 1.0), 'Visual': {'Model': 'models/props/cannon_stack_02'}}, '1182192656.62kmuller': {'Type': 'Ship_Props', 'DisableCollision': True, 'Hpr': Point3(0.0, 0.0, 0.0), 'Pos': Point3(4.381, -20.226, 0.024), 'Scale': VBase3(1.0, 1.0, 1.0), 'Visual': {'Model': 'models/props/cannonball_stack_triangle'}}, '1182192791.23kmuller': {'Type': 'Ship_Props', 'DisableCollision': True, 'Hpr': Point3(0.0, 0.0, 0.0), 'Pos': Point3(-8.613, 27.787, 5.288), 'Scale': VBase3(1.0, 1.0, 1.0), 'Visual': {'Model': 'models/props/cannonball_stack_square'}}, '1182192799.09kmuller': {'Type': 'Ship_Props', 'DisableCollision': True, 'Hpr': Point3(0.0, 0.0, 0.0), 'Pos': Point3(9.858, 27.654, 5.288), 'Scale': VBase3(1.0, 1.0, 1.0), 'Visual': {'Model': 'models/props/cannonball_stack_square'}}, '1182192850.99kmuller': {'Type': 'Prop_Groups', 'DisableCollision': True, 'Hpr': VBase3(-87.907, 0.0, 0.0), 'Pos': Point3(-17.06, -4.77, 0.0), 'Scale': VBase3(0.653, 0.653, 0.653), 'Visual': {'Model': 'models/props/prop_group_G'}}, '1182192918.54kmuller': {'Type': 'Interior_furnishings', 'DisableCollision': True, 'Hpr': Point3(0.0, 0.0, 0.0), 'Pos': Point3(-18.372, 1.987, 0.0), 'Scale': VBase3(1.0, 1.0, 1.0), 'Visual': {'Model': 'models/props/shop_weapons_rack_floor'}}, '1182192936.76kmuller': {'Type': 'Interior_furnishings', 'DisableCollision': False, 'Hpr': VBase3(0.0, 0.0, -106.116), 'Pos': Point3(-18.231, 2.831, 1.471), 'Scale': VBase3(1.0, 1.0, 1.0), 'Visual': {'Model': 'models/props/shop_weapons_bayonet'}}, '1182193030.13kmuller': {'Type': 'Furniture', 'DisableCollision': True, 'Hpr': VBase3(-179.649, 0.0, 0.0), 'Objects': {'1182193066.01kmuller': {'Type': 'Interior_furnishings', 'DisableCollision': True, 'Hpr': VBase3(-92.247, 0.0, 0.0), 'Pos': Point3(0.038, -0.395, 3.353), 'Scale': VBase3(1.0, 1.0, 1.0), 'Visual': {'Model': 'models/props/shop_weapons_rack_floor'}}, '1182193069.46kmuller': {'Type': 'Interior_furnishings', 'DisableCollision': False, 'Hpr': VBase3(-92.247, 0.0, 0.0), 'Pos': Point3(0.038, -0.395, 3.353), 'Scale': VBase3(1.0, 1.0, 1.0), 'Visual': {'Model': 'models/props/shop_weapons_rack_floor_guns'}}}, 'Pos': Point3(17.076, -22.579, 0.0), 'Scale': VBase3(1.0, 1.0, 1.0), 'Visual': {'Model': 'models/props/cabinet_spanish_low'}}, '1182193121.57kmuller': {'Type': 'Ship_Props', 'DisableCollision': True, 'Hpr': Point3(0.0, 0.0, 0.0), 'Pos': Point3(18.778, -6.233, 0.0), 'Scale': VBase3(1.0, 1.0, 1.0), 'Visual': {'Model': 'models/props/cannonball_stack_triangle'}}, '1182193184.09kmuller': {'Type': 'Interior_furnishings', 'DisableCollision': False, 'Hpr': VBase3(-179.47, 0.0, 0.0), 'Pos': Point3(20.033, 11.488, 5.141), 'Scale': VBase3(1.0, 1.0, 1.0), 'Visual': {'Model': 'models/props/shop_bsmith_rack'}}, '1182193246.57kmuller': {'Type': 'Interior_furnishings', 'DisableCollision': False, 'Hpr': VBase3(-89.16, 0.0, 0.0), 'Pos': Point3(19.627, 12.273, 6.878), 'Scale': VBase3(1.0, 1.0, 1.0), 'Visual': {'Model': 'models/props/shop_weapons_bayonet'}}, '1182193304.24kmuller': {'Type': 'Interior_furnishings', 'DisableCollision': False, 'Hpr': VBase3(-89.928, 0.0, 0.0), 'Pos': Point3(19.653, 12.507, 8.26), 'Scale': VBase3(1.0, 1.0, 1.0), 'Visual': {'Model': 'models/props/shop_weapons_bayonet'}}, '1182199919.94kmuller': {'Type': 'Wall_Hangings', 'DisableCollision': False, 'Hpr': Point3(0.0, 0.0, 0.0), 'Pos': Point3(-2.249, -23.633, 8.083), 'Scale': VBase3(1.0, 1.0, 1.0), 'Visual': {'Model': 'models/props/seascape_battle'}}, '1182542545.33kmuller': {'Type': 'Interior_furnishings', 'DisableCollision': True, 'Hpr': Point3(0.0, 0.0, 0.0), 'Pos': Point3(3.316, 31.395, 5.288), 'Scale': VBase3(1.0, 1.0, 1.0), 'Visual': {'Model': 'models/props/shop_weapons_bucket_guns'}}, '1182542551.76kmuller': {'Type': 'Bucket', 'DisableCollision': True, 'Hpr': Point3(0.0, 0.0, 0.0), 'Pos': Point3(3.316, 31.395, 5.288), 'Scale': VBase3(1.0, 1.0, 1.0), 'Visual': {'Model': 'models/props/bucket'}}, '1182542591.0kmuller': {'Type': 'Bucket', 'DisableCollision': True, 'Hpr': Point3(0.0, 0.0, 0.0), 'Pos': Point3(-3.354, -20.719, 0.0), 'Scale': VBase3(1.0, 1.0, 1.0), 'Visual': {'Model': 'models/props/bucket'}}, '1182542597.86kmuller': {'Type': 'Interior_furnishings', 'DisableCollision': False, 'Hpr': Point3(0.0, 0.0, 0.0), 'Pos': Point3(-3.354, -20.719, 0.0), 'Scale': VBase3(1.0, 1.0, 1.0), 'Visual': {'Model': 'models/props/shop_weapons_bucket_guns'}}, '1182542640.81kmuller': {'Type': 'Interior_furnishings', 'DisableCollision': False, 'Hpr': VBase3(94.227, 0.0, 0.0), 'Pos': Point3(0.449, 46.336, 9.555), 'Scale': VBase3(1.0, 1.0, 1.0), 'Visual': {'Model': 'models/props/shop_weapons_rack_table'}}, '1182542644.86kmuller': {'Type': 'Interior_furnishings', 'DisableCollision': False, 'Hpr': VBase3(94.227, 0.0, 0.0), 'Pos': Point3(0.449, 46.336, 9.555), 'Scale': VBase3(1.0, 1.0, 1.0), 'Visual': {'Model': 'models/props/shop_weapons_rack_table_gun'}}, '1182542695.67kmuller': {'Type': 'Interior_furnishings', 'DisableCollision': False, 'Hpr': VBase3(-87.747, 0.0, 0.0), 'Pos': Point3(8.562, 45.933, 11.522), 'Scale': VBase3(1.0, 1.0, 1.0), 'Visual': {'Model': 'models/props/shop_weapons_rack_table'}}, '1182542703.51kmuller': {'Type': 'Interior_furnishings', 'DisableCollision': False, 'Hpr': VBase3(0.0, 0.0, -4.871), 'Pos': Point3(7.777, 45.945, 11.937), 'Scale': VBase3(1.0, 1.0, 1.0), 'Visual': {'Model': 'models/props/shop_weapons_bayonet'}}, '1182554109.2kmuller': {'Type': 'Crate', 'DisableCollision': True, 'Hpr': Point3(0.0, 0.0, 0.0), 'Pos': Point3(-6.772, 22.211, 0.0), 'Scale': VBase3(1.238, 1.238, 1.238), 'Visual': {'Model': 'models/props/crates_group_2'}}, '1182554232.37kmuller': {'Type': 'Crate', 'DisableCollision': True, 'Hpr': VBase3(-88.95, -1.411, 90.628), 'Pos': Point3(-2.369, 22.339, 1.153), 'Scale': VBase3(0.807, 0.807, 0.807), 'Visual': {'Color': (0.8784313797950745, 0.8627451062202454, 0.7843137383460999, 1.0), 'Model': 'models/props/crate_04'}}, '1185498429.76kmuller': {'Type': 'Collision Barrier', 'DisableCollision': False, 'Hpr': Point3(0.0, 0.0, 0.0), 'Pos': Point3(4.092, 46.135, 4.272), 'Scale': VBase3(3.785, 0.512, 1.901), 'Visual': {'Model': 'models/misc/pir_m_prp_lev_cambarrier_cube'}}, '1185498455.74kmuller': {'Type': 'Collision Barrier', 'DisableCollision': False, 'Hpr': VBase3(-49.338, 0.0, 0.0), 'Pos': Point3(14.221, 42.35, 5.018), 'Scale': VBase3(0.823, 1.0, 1.452), 'Visual': {'Model': 'models/misc/pir_m_prp_lev_cambarrier_plane'}}, '1185498483.18kmuller': {'Type': 'Collision Barrier', 'DisableCollision': False, 'Hpr': Point3(0.0, 0.0, 0.0), 'Pos': Point3(18.575, 39.651, 5.288), 'Scale': VBase3(0.426, 1.0, 1.279), 'Visual': {'Model': 'models/misc/pir_m_prp_lev_cambarrier_plane'}}, '1185498536.98kmuller': {'Type': 'Collision Barrier', 'DisableCollision': False, 'Hpr': VBase3(0.0, 0.0, 0.0), 'Pos': Point3(0.497, 27.654, 4.767), 'Scale': VBase3(4.533, 1.079, 1.0), 'Visual': {'Model': 'models/misc/pir_m_prp_lev_cambarrier_cube'}}, '1185498577.4kmuller': {'Type': 'Collision Barrier', 'DisableCollision': False, 'Hpr': VBase3(2.471, 0.0, 0.0), 'Pos': Point3(0.49, 30.588, 4.65), 'Scale': VBase3(1.607, 1.702, 1.65), 'Visual': {'Model': 'models/misc/pir_m_prp_lev_cambarrier_cube'}}, '1185498644.32kmuller': {'Type': 'Collision Barrier', 'DisableCollision': False, 'Hpr': VBase3(-168.791, 0.0, 0.0), 'Pos': Point3(-5.506, 31.043, 4.361), 'Scale': VBase3(0.76, 1.0, 1.748), 'Visual': {'Model': 'models/misc/pir_m_prp_lev_cambarrier_plane'}}, '1185498715.32kmuller': {'Type': 'Collision Barrier', 'DisableCollision': False, 'Hpr': VBase3(15.034, 0.0, 0.0), 'Pos': Point3(6.554, 13.82, -0.313), 'Scale': VBase3(0.962, 1.0, 1.797), 'Visual': {'Model': 'models/misc/pir_m_prp_lev_cambarrier_plane'}}, '1185498773.96kmuller': {'Type': 'Collision Barrier', 'DisableCollision': False, 'Hpr': VBase3(-11.941, 0.0, 0.0), 'Pos': Point3(-3.907, 13.868, -0.844), 'Scale': VBase3(1.26, 1.38, 1.893), 'Visual': {'Model': 'models/misc/pir_m_prp_lev_cambarrier_plane'}}, '1185498860.92kmuller': {'Type': 'Collision Barrier', 'DisableCollision': False, 'Hpr': VBase3(-179.774, 0.0, 0.0), 'Pos': Point3(-3.492, -17.1, -0.876), 'Scale': VBase3(1.327, 1.0, 1.048), 'Visual': {'Model': 'models/misc/pir_m_prp_lev_cambarrier_plane'}}, '1185498895.18kmuller': {'Type': 'Collision Barrier', 'DisableCollision': False, 'Hpr': VBase3(138.713, 0.0, 0.0), 'Pos': Point3(-12.679, -14.558, 0.0), 'Scale': VBase3(1.848, 1.0, 3.94), 'Visual': {'Model': 'models/misc/pir_m_prp_lev_cambarrier_plane'}}, '1185498923.51kmuller': {'Type': 'Collision Barrier', 'DisableCollision': False, 'Hpr': VBase3(65.69, 0.0, 0.0), 'Pos': Point3(-14.16, -9.72, -0.612), 'Scale': VBase3(0.736, 1.0, 1.0), 'Visual': {'Model': 'models/misc/pir_m_prp_lev_cambarrier_plane'}}, '1185498944.9kmuller': {'Type': 'Collision Barrier', 'DisableCollision': False, 'Hpr': VBase3(84.993, 0.0, 0.0), 'Pos': Point3(-12.648, -3.735, -0.704), 'Scale': VBase3(0.679, 1.0, 1.0), 'Visual': {'Model': 'models/misc/pir_m_prp_lev_cambarrier_plane'}}, '1185498971.65kmuller': {'Type': 'Collision Barrier', 'DisableCollision': False, 'Hpr': VBase3(172.982, 0.0, 0.0), 'Pos': Point3(-16.517, 0.024, -0.744), 'Scale': VBase3(0.829, 1.0, 1.0), 'Visual': {'Model': 'models/misc/pir_m_prp_lev_cambarrier_plane'}}, '1185499005.73kmuller': {'Type': 'Collision Barrier', 'DisableCollision': False, 'Hpr': Point3(0.0, 0.0, 0.0), 'Pos': Point3(-19.852, 1.823, 0.0), 'Scale': VBase3(1.0, 0.857, 1.0), 'Visual': {'Model': 'models/misc/pir_m_prp_lev_cambarrier_cube'}}, '1185499028.53kmuller': {'Type': 'Collision Barrier', 'DisableCollision': False, 'Hpr': VBase3(145.013, 0.0, 0.0), 'Pos': Point3(5.689, -19.023, -0.673), 'Scale': VBase3(0.721, 1.0, 1.0), 'Visual': {'Model': 'models/misc/pir_m_prp_lev_cambarrier_plane'}}, '1185499053.51kmuller': {'Type': 'Collision Barrier', 'DisableCollision': False, 'Hpr': VBase3(-132.891, 0.0, 0.0), 'Pos': Point3(13.438, -13.081, -0.461), 'Scale': VBase3(2.024, 1.0, 1.0), 'Visual': {'Model': 'models/misc/pir_m_prp_lev_cambarrier_plane'}}, '1185499072.64kmuller': {'Type': 'Collision Barrier', 'DisableCollision': False, 'Hpr': Point3(0.0, 0.0, 0.0), 'Pos': Point3(18.992, -5.321, 0.0), 'Scale': VBase3(0.671, 1.585, 1.0), 'Visual': {'Model': 'models/misc/pir_m_prp_lev_cambarrier_cube'}}, '1188428132.21dzlu': {'Type': 'Light - Dynamic', 'Attenuation': '0.005', 'ConeAngle': '42.8313', 'DropOff': '4.8795', 'FlickRate': '0.0000', 'Flickering': False, 'Holiday': '', 'Hpr': VBase3(-89.308, -71.318, 88.588), 'Intensity': '1.0482', 'LightType': 'SPOT', 'Pos': Point3(-8.427, 21.228, 37.189), 'Scale': VBase3(1.0, 1.0, 1.0), 'VisSize': '', 'Visual': {'Color': (1.0, 1.0, 1.0, 1.0), 'Model': 'models/props/light_tool_bulb'}}, '1188428365.96dzlu': {'Type': 'Light - Dynamic', 'Attenuation': '0.005', 'ConeAngle': '60.0000', 'DropOff': '1.6265', 'FlickRate': '0.0000', 'Flickering': False, 'Hpr': Point3(0.0, 0.0, 0.0), 'Intensity': '0.4578', 'LightType': 'AMBIENT', 'Pos': Point3(7.03, 36.069, 16.979), 'Scale': VBase3(1.0, 1.0, 1.0), 'Visual': {'Color': (1, 1, 1, 1), 'Model': 'models/props/light_tool_bulb'}}, '1188428606.51dzlu': {'Type': 'Light - Dynamic', 'Attenuation': '0.005', 'ConeAngle': '88.3735', 'DropOff': '3.7952', 'FlickRate': '0.5000', 'Flickering': False, 'Holiday': '', 'Hpr': VBase3(0.0, 0.0, 0.0), 'Intensity': '0.3253', 'LightType': 'POINT', 'Pos': Point3(-12.456, -13.669, 3.347), 'Scale': VBase3(1.0, 1.0, 1.0), 'VisSize': '', 'Visual': {'Color': (0.95, 0.62, 0.4117647058823529, 1.0), 'Model': 'models/props/light_tool_bulb'}}, '1192751337.25akelts': {'Type': 'Effect Node', 'EffectName': 'torch_effect', 'Hpr': Point3(0.0, 0.0, 0.0), 'Pos': Point3(-15.498, -17.287, 1.186), 'Scale': VBase3(1.0, 1.0, 1.0), 'Visual': {'Color': (0, 0, 0.65, 1), 'Model': 'models/misc/smiley'}}, '1230753662.44akelts': {'Type': 'Door Locator Node', 'Name': 'door_locator', 'Hpr': VBase3(-180.0, 0.0, 0.0), 'Pos': Point3(-13.419, 47.56, 5.309), 'Scale': VBase3(1.0, 1.0, 1.0)}, '1230753961.75akelts': {'Type': 'Light - Dynamic', 'Attenuation': '0.005', 'ConeAngle': '42.8313', 'DropOff': '4.8795', 'FlickRate': '0.0000', 'Flickering': False, 'Holiday': '', 'Hpr': VBase3(-86.951, -71.322, 90.821), 'Intensity': '1.0482', 'LightType': 'SPOT', 'Pos': Point3(-6.757, -9.926, 36.642), 'Scale': VBase3(1.0, 1.0, 1.0), 'VisSize': '', 'Visual': {'Color': (1.0, 1.0, 1.0, 1.0), 'Model': 'models/props/light_tool_bulb'}}, '1257805997.81caoconno': {'Type': 'Holiday', 'DisableCollision': False, 'Holiday': 'WinterFestival', 'Hpr': VBase3(-42.467, 9.643, -0.0), 'Pos': Point3(-12.137, -15.99, 5.385), 'Scale': VBase3(1.0, 1.0, 1.0), 'VisSize': '', 'Visual': {'Model': 'models/props/pir_m_prp_hol_decoStocking01_winter09'}}, '1257806041.23caoconno': {'Type': 'Holiday', 'DisableCollision': False, 'Holiday': 'WinterFestival', 'Hpr': VBase3(-18.78, 0.0, 0.0), 'Pos': Point3(-13.123, -15.097, 5.471), 'Scale': VBase3(1.0, 1.0, 1.0), 'VisSize': '', 'Visual': {'Model': 'models/props/pir_m_prp_hol_decoStocking02_winter09'}}, '1257806110.83caoconno': {'Type': 'Holiday', 'DisableCollision': False, 'Holiday': 'WinterFestival', 'Hpr': VBase3(-7.06, 0.0, 0.0), 'Pos': Point3(-13.859, -14.385, 5.49), 'Scale': VBase3(1.262, 1.262, 1.262), 'VisSize': '', 'Visual': {'Model': 'models/props/pir_m_prp_hol_decoStocking03_winter09'}}, '1257806234.32caoconno': {'Type': 'Holiday', 'DisableCollision': False, 'Holiday': 'WinterFestival', 'Hpr': VBase3(-20.946, 0.0, 0.0), 'Pos': Point3(14.971, -13.383, 3.963), 'Scale': VBase3(1.0, 1.0, 1.0), 'VisSize': '', 'Visual': {'Model': 'models/props/pir_m_prp_hol_decoGift_bomb_winter09'}}, '1257806244.28caoconno': {'Type': 'Holiday', 'DisableCollision': False, 'Holiday': 'WinterFestival', 'Hpr': VBase3(-100.748, 0.0, 0.0), 'Pos': Point3(14.825, -12.508, 3.963), 'Scale': VBase3(1.0, 1.0, 1.0), 'VisSize': '', 'Visual': {'Model': 'models/props/pir_m_prp_hol_decoGift_bomb_winter09'}}, '1257806271.99caoconno': {'Type': 'Holiday', 'DisableCollision': False, 'Holiday': 'WinterFestival', 'Hpr': Point3(0.0, 0.0, 0.0), 'Pos': Point3(16.018, -12.859, 3.593), 'Scale': VBase3(0.673, 0.673, 0.673), 'VisSize': '', 'Visual': {'Model': 'models/props/pir_m_prp_hol_decoGift01_winter08'}}, '1257806358.74caoconno': {'Type': 'Holiday', 'DisableCollision': False, 'Holiday': 'WinterFestival', 'Hpr': VBase3(44.407, 0.0, 0.0), 'Pos': Point3(5.413, -23.873, 15.381), 'Scale': VBase3(2.574, 1.478, 1.478), 'VisSize': '', 'Visual': {'Model': 'models/props/pir_m_prp_hol_decoRibbon_winter08'}}, '1257806419.18caoconno': {'Type': 'Holiday', 'DisableCollision': False, 'Holiday': 'WinterFestival', 'Hpr': VBase3(-177.314, 0.0, 0.0), 'Pos': Point3(5.741, -23.504, 15.126), 'Scale': VBase3(1.351, 1.351, 1.351), 'VisSize': '', 'Visual': {'Model': 'models/props/pir_m_prp_hol_decoBow_winter08'}}, '1257806490.61caoconno': {'Type': 'Holiday', 'DisableCollision': False, 'Holiday': 'WinterFestival', 'Hpr': VBase3(-89.629, 0.0, 0.0), 'Pos': Point3(19.873, -9.718, 14.977), 'Scale': VBase3(1.674, 1.674, 1.674), 'VisSize': '', 'Visual': {'Model': 'models/props/pir_m_prp_hol_decoBow_winter08'}}, '1257806555.05caoconno': {'Type': 'Holiday', 'DisableCollision': False, 'Holiday': 'WinterFestival', 'Hpr': VBase3(-88.922, 2.371, -0.296), 'Pos': Point3(19.632, 35.296, 14.999), 'Scale': VBase3(1.0, 1.0, 1.0), 'VisSize': '', 'Visual': {'Model': 'models/props/pir_m_prp_hol_decoSwag_winter08'}}, '1257806617.69caoconno': {'Type': 'Holiday', 'DisableCollision': False, 'Holiday': 'WinterFestival', 'Hpr': VBase3(89.427, 0.0, 0.0), 'Pos': Point3(-19.586, 18.633, 12.445), 'Scale': VBase3(1.0, 1.0, 1.0), 'VisSize': '', 'Visual': {'Model': 'models/props/pir_m_prp_hol_decoSwag_winter08'}}, '1257806658.28caoconno': {'Type': 'Holiday', 'DisableCollision': False, 'Holiday': 'WinterFestival', 'Hpr': VBase3(91.969, 0.0, 0.0), 'Pos': Point3(-19.594, 3.512, 12.445), 'Scale': VBase3(1.0, 1.0, 1.0), 'VisSize': '', 'Visual': {'Model': 'models/props/pir_m_prp_hol_decoSwag_winter08'}}, '1257806705.97caoconno': {'Type': 'Holiday', 'DisableCollision': False, 'Holiday': 'WinterFestival', 'Hpr': VBase3(-91.022, 2.38, -0.209), 'Pos': Point3(19.526, 3.402, 12.633), 'Scale': VBase3(1.0, 1.0, 1.0), 'VisSize': '', 'Visual': {'Model': 'models/props/pir_m_prp_hol_decoSwag_winter08'}}, '1257806740.72caoconno': {'Type': 'Holiday', 'DisableCollision': False, 'Holiday': 'WinterFestival', 'Hpr': VBase3(-88.922, 2.371, -0.296), 'Pos': Point3(19.631, 18.86, 12.57), 'Scale': VBase3(1.0, 1.0, 1.0), 'VisSize': '', 'Visual': {'Model': 'models/props/pir_m_prp_hol_decoSwag_winter08'}}, '1257806775.04caoconno': {'Type': 'Holiday', 'DisableCollision': False, 'Holiday': 'WinterFestival', 'Hpr': VBase3(96.016, 0.0, 0.0), 'Pos': Point3(-19.637, 35.703, 16.191), 'Scale': VBase3(1.0, 1.0, 1.0), 'VisSize': '', 'Visual': {'Model': 'models/props/pir_m_prp_hol_decoSwag_winter08'}}}, 'Visual': {'Model': 'models/buildings/interior_spanish_store'}}}, 'Node Links': [], 'Layers': {}, 'ObjectIds': {'1156268617.43dzlu0i': '["Objects"]["1156268617.43dzlu0i"]', '1167174288.76kmuller': '["Objects"]["1156268617.43dzlu0i"]["Objects"]["1167174288.76kmuller"]', '1167174328.87kmuller': '["Objects"]["1156268617.43dzlu0i"]["Objects"]["1167174328.87kmuller"]', '1167174414.26kmuller': '["Objects"]["1156268617.43dzlu0i"]["Objects"]["1167174414.26kmuller"]', '1167174437.24kmuller': '["Objects"]["1156268617.43dzlu0i"]["Objects"]["1167174437.24kmuller"]', '1167174454.23kmuller': '["Objects"]["1156268617.43dzlu0i"]["Objects"]["1167174454.23kmuller"]', '1167174504.17kmuller': '["Objects"]["1156268617.43dzlu0i"]["Objects"]["1167174504.17kmuller"]', '1167174514.03kmuller': '["Objects"]["1156268617.43dzlu0i"]["Objects"]["1167174514.03kmuller"]', '1167174544.43kmuller': '["Objects"]["1156268617.43dzlu0i"]["Objects"]["1167174544.43kmuller"]', '1167973245.75kmuller': '["Objects"]["1156268617.43dzlu0i"]["Objects"]["1167973245.75kmuller"]', '1167973422.92kmuller': '["Objects"]["1156268617.43dzlu0i"]["Objects"]["1167973422.92kmuller"]', '1167973505.22kmuller': '["Objects"]["1156268617.43dzlu0i"]["Objects"]["1167973505.22kmuller"]', '1181240782.71kmuller': '["Objects"]["1156268617.43dzlu0i"]["Objects"]["1181240782.71kmuller"]', '1181240788.54kmuller': '["Objects"]["1156268617.43dzlu0i"]["Objects"]["1181240788.54kmuller"]', '1181243204.06kmuller': '["Objects"]["1156268617.43dzlu0i"]["Objects"]["1181243204.06kmuller"]', '1181243209.01kmuller': '["Objects"]["1156268617.43dzlu0i"]["Objects"]["1181243209.01kmuller"]', '1181243253.45kmuller': '["Objects"]["1156268617.43dzlu0i"]["Objects"]["1181243253.45kmuller"]', '1181243256.93kmuller': '["Objects"]["1156268617.43dzlu0i"]["Objects"]["1181243256.93kmuller"]', '1181243273.21kmuller': '["Objects"]["1156268617.43dzlu0i"]["Objects"]["1181243273.21kmuller"]', '1181243285.09kmuller': '["Objects"]["1156268617.43dzlu0i"]["Objects"]["1181243285.09kmuller"]', '1181243383.64kmuller': '["Objects"]["1156268617.43dzlu0i"]["Objects"]["1181243383.64kmuller"]', '1181243394.31kmuller': '["Objects"]["1156268617.43dzlu0i"]["Objects"]["1181243394.31kmuller"]', '1181243497.4kmuller': '["Objects"]["1156268617.43dzlu0i"]["Objects"]["1181243497.4kmuller"]', '1181243671.68kmuller': '["Objects"]["1156268617.43dzlu0i"]["Objects"]["1181243671.68kmuller"]', '1181243702.34kmuller': '["Objects"]["1156268617.43dzlu0i"]["Objects"]["1181243702.34kmuller"]', '1181243783.82kmuller': '["Objects"]["1156268617.43dzlu0i"]["Objects"]["1181243783.82kmuller"]', '1181243854.62kmuller': '["Objects"]["1156268617.43dzlu0i"]["Objects"]["1181243854.62kmuller"]', '1181243886.87kmuller': '["Objects"]["1156268617.43dzlu0i"]["Objects"]["1181243886.87kmuller"]', '1181243927.4kmuller': '["Objects"]["1156268617.43dzlu0i"]["Objects"]["1181243927.4kmuller"]', '1181243941.68kmuller': '["Objects"]["1156268617.43dzlu0i"]["Objects"]["1181243941.68kmuller"]', '1181244041.9kmuller': '["Objects"]["1156268617.43dzlu0i"]["Objects"]["1181244041.9kmuller"]', '1181244105.11kmuller': '["Objects"]["1156268617.43dzlu0i"]["Objects"]["1181244105.11kmuller"]', '1181244140.89kmuller': '["Objects"]["1156268617.43dzlu0i"]["Objects"]["1181244140.89kmuller"]', '1182192599.66kmuller': '["Objects"]["1156268617.43dzlu0i"]["Objects"]["1182192599.66kmuller"]', '1182192656.62kmuller': '["Objects"]["1156268617.43dzlu0i"]["Objects"]["1182192656.62kmuller"]', '1182192791.23kmuller': '["Objects"]["1156268617.43dzlu0i"]["Objects"]["1182192791.23kmuller"]', '1182192799.09kmuller': '["Objects"]["1156268617.43dzlu0i"]["Objects"]["1182192799.09kmuller"]', '1182192850.99kmuller': '["Objects"]["1156268617.43dzlu0i"]["Objects"]["1182192850.99kmuller"]', '1182192918.54kmuller': '["Objects"]["1156268617.43dzlu0i"]["Objects"]["1182192918.54kmuller"]', '1182192936.76kmuller': '["Objects"]["1156268617.43dzlu0i"]["Objects"]["1182192936.76kmuller"]', '1182193030.13kmuller': '["Objects"]["1156268617.43dzlu0i"]["Objects"]["1182193030.13kmuller"]', '1182193066.01kmuller': '["Objects"]["1156268617.43dzlu0i"]["Objects"]["1182193030.13kmuller"]["Objects"]["1182193066.01kmuller"]', '1182193069.46kmuller': '["Objects"]["1156268617.43dzlu0i"]["Objects"]["1182193030.13kmuller"]["Objects"]["1182193069.46kmuller"]', '1182193121.57kmuller': '["Objects"]["1156268617.43dzlu0i"]["Objects"]["1182193121.57kmuller"]', '1182193184.09kmuller': '["Objects"]["1156268617.43dzlu0i"]["Objects"]["1182193184.09kmuller"]', '1182193246.57kmuller': '["Objects"]["1156268617.43dzlu0i"]["Objects"]["1182193246.57kmuller"]', '1182193304.24kmuller': '["Objects"]["1156268617.43dzlu0i"]["Objects"]["1182193304.24kmuller"]', '1182199919.94kmuller': '["Objects"]["1156268617.43dzlu0i"]["Objects"]["1182199919.94kmuller"]', '1182542545.33kmuller': '["Objects"]["1156268617.43dzlu0i"]["Objects"]["1182542545.33kmuller"]', '1182542551.76kmuller': '["Objects"]["1156268617.43dzlu0i"]["Objects"]["1182542551.76kmuller"]', '1182542591.0kmuller': '["Objects"]["1156268617.43dzlu0i"]["Objects"]["1182542591.0kmuller"]', '1182542597.86kmuller': '["Objects"]["1156268617.43dzlu0i"]["Objects"]["1182542597.86kmuller"]', '1182542640.81kmuller': '["Objects"]["1156268617.43dzlu0i"]["Objects"]["1182542640.81kmuller"]', '1182542644.86kmuller': '["Objects"]["1156268617.43dzlu0i"]["Objects"]["1182542644.86kmuller"]', '1182542695.67kmuller': '["Objects"]["1156268617.43dzlu0i"]["Objects"]["1182542695.67kmuller"]', '1182542703.51kmuller': '["Objects"]["1156268617.43dzlu0i"]["Objects"]["1182542703.51kmuller"]', '1182554109.2kmuller': '["Objects"]["1156268617.43dzlu0i"]["Objects"]["1182554109.2kmuller"]', '1182554232.37kmuller': '["Objects"]["1156268617.43dzlu0i"]["Objects"]["1182554232.37kmuller"]', '1185498429.76kmuller': '["Objects"]["1156268617.43dzlu0i"]["Objects"]["1185498429.76kmuller"]', '1185498455.74kmuller': '["Objects"]["1156268617.43dzlu0i"]["Objects"]["1185498455.74kmuller"]', '1185498483.18kmuller': '["Objects"]["1156268617.43dzlu0i"]["Objects"]["1185498483.18kmuller"]', '1185498536.98kmuller': '["Objects"]["1156268617.43dzlu0i"]["Objects"]["1185498536.98kmuller"]', '1185498577.4kmuller': '["Objects"]["1156268617.43dzlu0i"]["Objects"]["1185498577.4kmuller"]', '1185498644.32kmuller': '["Objects"]["1156268617.43dzlu0i"]["Objects"]["1185498644.32kmuller"]', '1185498715.32kmuller': '["Objects"]["1156268617.43dzlu0i"]["Objects"]["1185498715.32kmuller"]', '1185498773.96kmuller': '["Objects"]["1156268617.43dzlu0i"]["Objects"]["1185498773.96kmuller"]', '1185498860.92kmuller': '["Objects"]["1156268617.43dzlu0i"]["Objects"]["1185498860.92kmuller"]', '1185498895.18kmuller': '["Objects"]["1156268617.43dzlu0i"]["Objects"]["1185498895.18kmuller"]', '1185498923.51kmuller': '["Objects"]["1156268617.43dzlu0i"]["Objects"]["1185498923.51kmuller"]', '1185498944.9kmuller': '["Objects"]["1156268617.43dzlu0i"]["Objects"]["1185498944.9kmuller"]', '1185498971.65kmuller': '["Objects"]["1156268617.43dzlu0i"]["Objects"]["1185498971.65kmuller"]', '1185499005.73kmuller': '["Objects"]["1156268617.43dzlu0i"]["Objects"]["1185499005.73kmuller"]', '1185499028.53kmuller': '["Objects"]["1156268617.43dzlu0i"]["Objects"]["1185499028.53kmuller"]', '1185499053.51kmuller': '["Objects"]["1156268617.43dzlu0i"]["Objects"]["1185499053.51kmuller"]', '1185499072.64kmuller': '["Objects"]["1156268617.43dzlu0i"]["Objects"]["1185499072.64kmuller"]', '1188428132.21dzlu': '["Objects"]["1156268617.43dzlu0i"]["Objects"]["1188428132.21dzlu"]', '1188428365.96dzlu': '["Objects"]["1156268617.43dzlu0i"]["Objects"]["1188428365.96dzlu"]', '1188428606.51dzlu': '["Objects"]["1156268617.43dzlu0i"]["Objects"]["1188428606.51dzlu"]', '1192751337.25akelts': '["Objects"]["1156268617.43dzlu0i"]["Objects"]["1192751337.25akelts"]', '1230753662.44akelts': '["Objects"]["1156268617.43dzlu0i"]["Objects"]["1230753662.44akelts"]', '1230753961.75akelts': '["Objects"]["1156268617.43dzlu0i"]["Objects"]["1230753961.75akelts"]', '1257805997.81caoconno': '["Objects"]["1156268617.43dzlu0i"]["Objects"]["1257805997.81caoconno"]', '1257806041.23caoconno': '["Objects"]["1156268617.43dzlu0i"]["Objects"]["1257806041.23caoconno"]', '1257806110.83caoconno': '["Objects"]["1156268617.43dzlu0i"]["Objects"]["1257806110.83caoconno"]', '1257806234.32caoconno': '["Objects"]["1156268617.43dzlu0i"]["Objects"]["1257806234.32caoconno"]', '1257806244.28caoconno': '["Objects"]["1156268617.43dzlu0i"]["Objects"]["1257806244.28caoconno"]', '1257806271.99caoconno': '["Objects"]["1156268617.43dzlu0i"]["Objects"]["1257806271.99caoconno"]', '1257806358.74caoconno': '["Objects"]["1156268617.43dzlu0i"]["Objects"]["1257806358.74caoconno"]', '1257806419.18caoconno': '["Objects"]["1156268617.43dzlu0i"]["Objects"]["1257806419.18caoconno"]', '1257806490.61caoconno': '["Objects"]["1156268617.43dzlu0i"]["Objects"]["1257806490.61caoconno"]', '1257806555.05caoconno': '["Objects"]["1156268617.43dzlu0i"]["Objects"]["1257806555.05caoconno"]', '1257806617.69caoconno': '["Objects"]["1156268617.43dzlu0i"]["Objects"]["1257806617.69caoconno"]', '1257806658.28caoconno': '["Objects"]["1156268617.43dzlu0i"]["Objects"]["1257806658.28caoconno"]', '1257806705.97caoconno': '["Objects"]["1156268617.43dzlu0i"]["Objects"]["1257806705.97caoconno"]', '1257806740.72caoconno': '["Objects"]["1156268617.43dzlu0i"]["Objects"]["1257806740.72caoconno"]', '1257806775.04caoconno': '["Objects"]["1156268617.43dzlu0i"]["Objects"]["1257806775.04caoconno"]'}}
extraInfo = {'camPos': Point3(0, -14, 0), 'camHpr': VBase3(0, 0, 0), 'focalLength': 0.852765381336, 'skyState': -1, 'fog': 0}
| 4,994.142857
| 34,529
| 0.671129
| 4,749
| 34,959
| 4.87071
| 0.150769
| 0.029052
| 0.029441
| 0.02421
| 0.5816
| 0.484069
| 0.4679
| 0.388094
| 0.337512
| 0.313389
| 0
| 0.255172
| 0.067994
| 34,959
| 7
| 34,530
| 4,994.142857
| 0.45476
| 0.006751
| 0
| 0
| 0
| 0
| 0.578588
| 0.303839
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 0.333333
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 6
|
587a35e8a72543d1bbd58359abaf24d9aa50395e
| 45
|
py
|
Python
|
workspace/module/python-2.7/LxBasic/bscModifiers/__init__.py
|
no7hings/Lynxi
|
43c745198a714c2e5aca86c6d7a014adeeb9abf7
|
[
"MIT"
] | 2
|
2018-03-06T03:33:55.000Z
|
2019-03-26T03:25:11.000Z
|
workspace/module/python-2.7/LxBasic/bscModifiers/__init__.py
|
no7hings/lynxi
|
43c745198a714c2e5aca86c6d7a014adeeb9abf7
|
[
"MIT"
] | null | null | null |
workspace/module/python-2.7/LxBasic/bscModifiers/__init__.py
|
no7hings/lynxi
|
43c745198a714c2e5aca86c6d7a014adeeb9abf7
|
[
"MIT"
] | null | null | null |
# coding:utf-8
from ._bscMdfFunction import *
| 22.5
| 30
| 0.777778
| 6
| 45
| 5.666667
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.025
| 0.111111
| 45
| 2
| 30
| 22.5
| 0.825
| 0.266667
| 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
| 1
| 0
|
0
| 6
|
54302da7b5327bb34beed265374661666da3e56f
| 124
|
py
|
Python
|
katas/kyu_7/alphabetize_by_nth_char.py
|
the-zebulan/CodeWars
|
1eafd1247d60955a5dfb63e4882e8ce86019f43a
|
[
"MIT"
] | 40
|
2016-03-09T12:26:20.000Z
|
2022-03-23T08:44:51.000Z
|
katas/kyu_7/alphabetize_by_nth_char.py
|
akalynych/CodeWars
|
1eafd1247d60955a5dfb63e4882e8ce86019f43a
|
[
"MIT"
] | null | null | null |
katas/kyu_7/alphabetize_by_nth_char.py
|
akalynych/CodeWars
|
1eafd1247d60955a5dfb63e4882e8ce86019f43a
|
[
"MIT"
] | 36
|
2016-11-07T19:59:58.000Z
|
2022-03-31T11:18:27.000Z
|
from operator import itemgetter
def sort_it(lst, n):
return ', '.join(sorted(lst.split(', '), key=itemgetter(n - 1)))
| 20.666667
| 68
| 0.653226
| 18
| 124
| 4.444444
| 0.833333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.009615
| 0.16129
| 124
| 5
| 69
| 24.8
| 0.759615
| 0
| 0
| 0
| 0
| 0
| 0.032258
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0.333333
| 0.333333
| 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
| 1
| 1
| 1
| 0
|
0
| 6
|
543e73aa91b1d8f8454914f5b846b3e74fe0fe5a
| 25
|
py
|
Python
|
tensorcanvas/__init__.py
|
PWhiddy/pytorch-draw
|
949139826623c4037bb70dca9df06d9bbbe06fc4
|
[
"MIT"
] | 6
|
2020-09-21T15:16:26.000Z
|
2022-01-03T08:08:06.000Z
|
tensorcanvas/__init__.py
|
PWhiddy/pytorch-draw
|
949139826623c4037bb70dca9df06d9bbbe06fc4
|
[
"MIT"
] | null | null | null |
tensorcanvas/__init__.py
|
PWhiddy/pytorch-draw
|
949139826623c4037bb70dca9df06d9bbbe06fc4
|
[
"MIT"
] | null | null | null |
from .BaseShapes import *
| 25
| 25
| 0.8
| 3
| 25
| 6.666667
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.12
| 25
| 1
| 25
| 25
| 0.909091
| 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
| 1
| 0
|
0
| 6
|
547d0595dda0bf0c34db5fdaddf6d3d7a74e4d36
| 415
|
py
|
Python
|
TORO/libs/toro/model_parser/__init__.py
|
IDA-TUBS/TORO
|
54bcf10a49aeed16b97a204e01603444a13444c2
|
[
"MIT"
] | 2
|
2022-01-31T09:19:00.000Z
|
2022-02-08T08:37:43.000Z
|
TORO/libs/toro/model_parser/__init__.py
|
IDA-TUBS/TORO
|
54bcf10a49aeed16b97a204e01603444a13444c2
|
[
"MIT"
] | null | null | null |
TORO/libs/toro/model_parser/__init__.py
|
IDA-TUBS/TORO
|
54bcf10a49aeed16b97a204e01603444a13444c2
|
[
"MIT"
] | null | null | null |
'''
Created on 29.10.2020
:Authors:
- Alex Bendrick
'''
from .csv_parser import CSVParser
# try:
# from .amalthea_parser import AmaltheaParser
# except:
# print("-------------------------------------------------------------------\
# \nWarning: AmaltheaParser incomplete. check installation requirements\
# \n-------------------------------------------------------------------")
| 27.666667
| 82
| 0.433735
| 28
| 415
| 6.357143
| 0.857143
| 0.134831
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.023188
| 0.168675
| 415
| 15
| 82
| 27.666667
| 0.492754
| 0.86747
| 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
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 6
|
54854f50f6888dc0cc4e0f367775c8fd92de9e01
| 215
|
py
|
Python
|
django_analyses/models/output/types/__init__.py
|
TheLabbingProject/django_analyses
|
08cac40a32754a265b37524f08ec6160c69ebea8
|
[
"Apache-2.0"
] | 1
|
2020-12-30T12:43:34.000Z
|
2020-12-30T12:43:34.000Z
|
django_analyses/models/output/types/__init__.py
|
TheLabbingProject/django_analyses
|
08cac40a32754a265b37524f08ec6160c69ebea8
|
[
"Apache-2.0"
] | 59
|
2019-12-25T13:14:56.000Z
|
2021-07-22T12:24:46.000Z
|
django_analyses/models/output/types/__init__.py
|
TheLabbingProject/django_analyses
|
08cac40a32754a265b37524f08ec6160c69ebea8
|
[
"Apache-2.0"
] | 2
|
2020-05-24T06:44:27.000Z
|
2020-07-09T15:47:31.000Z
|
from django_analyses.models.output.types.file_output import FileOutput
from django_analyses.models.output.types.float_output import FloatOutput
from django_analyses.models.output.types.list_output import ListOutput
| 53.75
| 72
| 0.888372
| 30
| 215
| 6.166667
| 0.433333
| 0.162162
| 0.291892
| 0.389189
| 0.567568
| 0.567568
| 0
| 0
| 0
| 0
| 0
| 0
| 0.055814
| 215
| 3
| 73
| 71.666667
| 0.91133
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 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
| 1
| 0
| 1
| 0
|
0
| 6
|
548666489d0faef19b64ab0afe7910e7a8978d92
| 9,751
|
py
|
Python
|
src/robot_properties_nyu_finger/config.py
|
huaijiangzhu/robot_properties_nyu_finger
|
36772a00059af5f48b11656a1eba2ad8f878b376
|
[
"BSD-3-Clause"
] | null | null | null |
src/robot_properties_nyu_finger/config.py
|
huaijiangzhu/robot_properties_nyu_finger
|
36772a00059af5f48b11656a1eba2ad8f878b376
|
[
"BSD-3-Clause"
] | null | null | null |
src/robot_properties_nyu_finger/config.py
|
huaijiangzhu/robot_properties_nyu_finger
|
36772a00059af5f48b11656a1eba2ad8f878b376
|
[
"BSD-3-Clause"
] | 4
|
2021-06-17T20:37:48.000Z
|
2021-08-09T02:31:25.000Z
|
"""config
Store the configuration of the Solo family robots.
License: BSD 3-Clause License
Copyright (C) 2018-2021, New York University , Max Planck Gesellschaft
Copyright note valid unless otherwise stated in individual files.
All rights reserved.
"""
import numpy as np
from math import pi
from os.path import join, dirname
from os import environ
import pinocchio as se3
from pinocchio.utils import zero
from pinocchio.robot_wrapper import RobotWrapper
from robot_properties_nyu_finger.utils import find_paths
class NYUFingerAbstract(object):
""" Abstract class used for all NYUFinger robots. """
# PID gains
kp = 5.0
kd = 0.1
ki = 0.0
# The Kt constant of the motor [Nm/A]: tau = I * Kt.
motor_torque_constant = 0.025
# Control time period.
control_period = 0.001
dt = control_period
# MaxCurrent = 12 # Ampers
max_current = 2
# Maximum torques.
max_torque = motor_torque_constant * max_current
# Maximum control one can send, here the control is the current.
max_control = max_current
# ctrl_manager_current_to_control_gain I am not sure what it does so 1.0.
ctrl_manager_current_to_control_gain = 1.0
max_qref = pi
@classmethod
def buildRobotWrapper(cls):
# Rebuild the robot wrapper instead of using the existing model to
# also load the visuals.
robot = RobotWrapper.BuildFromURDF(
cls.urdf_path, cls.meshes_path
)
robot.model.rotorInertia[6:] = cls.motor_inertia
robot.model.rotorGearRatio[6:] = cls.motor_gear_ration
return robot
def joint_name_in_single_string(self):
joint_names = ""
for name in self.robot_model.names[2:]:
joint_names += name + " "
return joint_names
class NYUFingerConfig(NYUFingerAbstract):
robot_family = "nyu_finger"
robot_name = "nyu_finger"
paths = find_paths(robot_name)
meshes_path = paths["resources"]
dgm_yaml_dir = paths["dgm_yaml_dir"]
dgm_yaml_path = paths["dgm_yaml"]
urdf_path = paths["urdf"]
# The inertia of a single blmc_motor.
motor_inertia = 0.0000045
# The motor gear ratio.
motor_gear_ration = 9.0
# pinocchio model.
pin_robot = RobotWrapper.BuildFromURDF(
urdf_path, meshes_path
)
pin_robot.model.rotorInertia[6:] = motor_inertia
pin_robot.model.rotorGearRatio[6:] = motor_gear_ration
robot_model = pin_robot.model
mass = np.sum([i.mass for i in robot_model.inertias])
# End effectors informations
end_effector_names = ['finger_lower_to_tip_joint']
end_eff_ids = [robot_model.getFrameId('finger_lower_to_tip_joint')]
nb_ee = len(end_effector_names)
# The number of motors, here they are the same as there are only revolute
# joints.
nb_joints = robot_model.nv - 6
joint_names = ["finger_base_to_upper_joint",
"finger_upper_to_middle_joint",
"finger_middle_to_lower_joint"]
# Mapping between the ctrl vector in the device and the urdf indexes.
urdf_to_dgm = tuple(range(3))
map_joint_name_to_id = {}
map_joint_limits = {}
for i, (name, lb, ub) in enumerate(
zip(
robot_model.names[1:],
robot_model.lowerPositionLimit,
robot_model.upperPositionLimit,
)
):
map_joint_name_to_id[name] = i
map_joint_limits[i] = [float(lb), float(ub)]
# Define the initial state.
initial_configuration = [0., 0., 0.]
initial_velocity = [0., 0., 0.]
q0 = zero(robot_model.nq)
q0[:] = initial_configuration
v0 = zero(robot_model.nv)
a0 = zero(robot_model.nv)
class NYUFingerDoubleConfig0(NYUFingerConfig):
robot_family = "nyu_finger"
robot_name = "nyu_finger_double0"
paths = find_paths(robot_name)
meshes_path = paths["resources"]
dgm_yaml_dir = paths["dgm_yaml_dir"]
dgm_yaml_path = paths["dgm_yaml"]
urdf_path = paths["urdf"]
# The inertia of a single blmc_motor.
motor_inertia = 0.0000045
# The motor gear ratio.
motor_gear_ration = 9.0
# pinocchio model.
pin_robot = RobotWrapper.BuildFromURDF(
urdf_path, meshes_path
)
pin_robot.model.rotorInertia[6:] = motor_inertia
pin_robot.model.rotorGearRatio[6:] = motor_gear_ration
robot_model = pin_robot.model
mass = np.sum([i.mass for i in robot_model.inertias])
# End effectors informations
end_effector_names = ['finger0_lower_to_tip_joint']
end_eff_ids = [robot_model.getFrameId('finger0_lower_to_tip_joint')]
nb_ee = len(end_effector_names)
# The number of motors, here they are the same as there are only revolute
# joints.
nb_joints = robot_model.nv - 6
joint_names = ["finger0_base_to_upper_joint",
"finger0_upper_to_middle_joint",
"finger0_middle_to_lower_joint"]
# Mapping between the ctrl vector in the device and the urdf indexes.
urdf_to_dgm = tuple(range(3))
map_joint_name_to_id = {}
map_joint_limits = {}
for i, (name, lb, ub) in enumerate(
zip(
robot_model.names[1:],
robot_model.lowerPositionLimit,
robot_model.upperPositionLimit,
)
):
map_joint_name_to_id[name] = i
map_joint_limits[i] = [float(lb), float(ub)]
# Define the initial state.
initial_configuration = [0., 0., 0.]
initial_velocity = [0., 0., 0.]
q0 = zero(robot_model.nq)
q0[:] = initial_configuration
v0 = zero(robot_model.nv)
a0 = zero(robot_model.nv)
class NYUFingerDoubleConfig1(NYUFingerConfig):
robot_family = "nyu_finger"
robot_name = "nyu_finger_double1"
paths = find_paths(robot_name)
meshes_path = paths["resources"]
dgm_yaml_dir = paths["dgm_yaml_dir"]
dgm_yaml_path = paths["dgm_yaml"]
urdf_path = paths["urdf"]
# The inertia of a single blmc_motor.
motor_inertia = 0.0000045
# The motor gear ratio.
motor_gear_ration = 9.0
# pinocchio model.
pin_robot = RobotWrapper.BuildFromURDF(
urdf_path, meshes_path
)
pin_robot.model.rotorInertia[6:] = motor_inertia
pin_robot.model.rotorGearRatio[6:] = motor_gear_ration
robot_model = pin_robot.model
mass = np.sum([i.mass for i in robot_model.inertias])
# End effectors informations
end_effector_names = ['finger1_lower_to_tip_joint']
end_eff_ids = [robot_model.getFrameId('finger1_lower_to_tip_joint')]
nb_ee = len(end_effector_names)
# The number of motors, here they are the same as there are only revolute
# joints.
nb_joints = robot_model.nv - 6
joint_names = ["finger1_base_to_upper_joint",
"finger1_upper_to_middle_joint",
"finger1_middle_to_lower_joint"]
# Mapping between the ctrl vector in the device and the urdf indexes.
urdf_to_dgm = tuple(range(3))
map_joint_name_to_id = {}
map_joint_limits = {}
for i, (name, lb, ub) in enumerate(
zip(
robot_model.names[1:],
robot_model.lowerPositionLimit,
robot_model.upperPositionLimit,
)
):
map_joint_name_to_id[name] = i
map_joint_limits[i] = [float(lb), float(ub)]
# Define the initial state.
initial_configuration = [0., 0., 0.]
initial_velocity = [0., 0., 0.]
q0 = zero(robot_model.nq)
q0[:] = initial_configuration
v0 = zero(robot_model.nv)
a0 = zero(robot_model.nv)
class NYUFingerDoubleConfig(NYUFingerAbstract):
robot_family = "nyu_finger"
robot_name = "nyu_finger_double"
paths = find_paths(robot_name)
meshes_path = paths["resources"]
dgm_yaml_path = paths["dgm_yaml"]
urdf_path = paths["urdf"]
# The inertia of a single blmc_motor.
motor_inertia = 0.0000045
# The motor gear ratio.
motor_gear_ration = 9.0
# pinocchio model.
pin_robot_wrapper = RobotWrapper.BuildFromURDF(
urdf_path, meshes_path
)
pin_robot_wrapper.model.rotorInertia[6:] = motor_inertia
pin_robot_wrapper.model.rotorGearRatio[6:] = motor_gear_ration
pin_robot = pin_robot_wrapper
robot_model = pin_robot_wrapper.model
mass = np.sum([i.mass for i in robot_model.inertias])
# End effectors informations
end_effector_names = ['finger0_lower_to_tip_joint',
'finger1_lower_to_tip_joint']
end_eff_ids = [robot_model.getFrameId('finger0_lower_to_tip_joint'),
robot_model.getFrameId('finger1_lower_to_tip_joint')]
nb_ee = len(end_effector_names)
# The number of motors, here they are the same as there are only revolute
# joints.
nb_joints = robot_model.nv - 6
joint_names = ["finger0_base_to_upper_joint",
"finger0_upper_to_middle_joint",
"finger0_middle_to_lower_joint",
"finger1_base_to_upper_joint",
"finger1_upper_to_middle_joint",
"finger1_middle_to_lower_joint"]
# Mapping between the ctrl vector in the device and the urdf indexes.
urdf_to_dgm = tuple(range(3))
map_joint_name_to_id = {}
map_joint_limits = {}
for i, (name, lb, ub) in enumerate(
zip(
robot_model.names[1:],
robot_model.lowerPositionLimit,
robot_model.upperPositionLimit,
)
):
map_joint_name_to_id[name] = i
map_joint_limits[i] = [float(lb), float(ub)]
# Define the initial state.
initial_configuration = [0., 0., 0., 0., 0., 0.]
initial_velocity = [0., 0., 0., 0., 0., 0.]
q0 = zero(robot_model.nq)
q0[:] = initial_configuration
v0 = zero(robot_model.nv)
a0 = zero(robot_model.nv)
| 29.911043
| 77
| 0.66547
| 1,309
| 9,751
| 4.649351
| 0.160428
| 0.087085
| 0.006901
| 0.024647
| 0.774893
| 0.772921
| 0.756983
| 0.750739
| 0.738909
| 0.703418
| 0
| 0.022274
| 0.244898
| 9,751
| 325
| 78
| 30.003077
| 0.804292
| 0.178956
| 0
| 0.645631
| 0
| 0
| 0.113682
| 0.085513
| 0
| 0
| 0
| 0
| 0
| 1
| 0.009709
| false
| 0
| 0.038835
| 0
| 0.621359
| 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
| 1
| 0
|
0
| 6
|
49c1ec1f18ad41131ef571a0c4b933ccd872ed1f
| 244
|
py
|
Python
|
gammapy/obs/tests/test_datastore.py
|
joleroi/gammapy
|
c4e0c4bd74c79d30e0837559d18b7a1a269f70d9
|
[
"BSD-3-Clause"
] | null | null | null |
gammapy/obs/tests/test_datastore.py
|
joleroi/gammapy
|
c4e0c4bd74c79d30e0837559d18b7a1a269f70d9
|
[
"BSD-3-Clause"
] | null | null | null |
gammapy/obs/tests/test_datastore.py
|
joleroi/gammapy
|
c4e0c4bd74c79d30e0837559d18b7a1a269f70d9
|
[
"BSD-3-Clause"
] | null | null | null |
# Licensed under a 3-clause BSD style license - see LICENSE.rst
from __future__ import print_function, division
from ...obs import DataStore
def test_DataStore():
# data_store = DataStore(dir='TODO')
# TODO: add tests
assert True
| 24.4
| 63
| 0.729508
| 34
| 244
| 5.029412
| 0.823529
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.005051
| 0.188525
| 244
| 9
| 64
| 27.111111
| 0.858586
| 0.459016
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.111111
| 0.25
| 1
| 0.25
| true
| 0
| 0.5
| 0
| 0.75
| 0.25
| 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
| 1
| 0
| 0
| 1
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 6
|
49cf5cf0e7bc89ef11be3af53e252f61d08a8d82
| 71
|
py
|
Python
|
hdre/__init__.py
|
freedomtowin/high-density-region-estimator
|
a9c4d30c32d8f6ce16d2bc0712bdcc588124ed61
|
[
"MIT"
] | 1
|
2021-12-29T14:43:36.000Z
|
2021-12-29T14:43:36.000Z
|
hdre/__init__.py
|
freedomtowin/high-density-region-estimator
|
a9c4d30c32d8f6ce16d2bc0712bdcc588124ed61
|
[
"MIT"
] | null | null | null |
hdre/__init__.py
|
freedomtowin/high-density-region-estimator
|
a9c4d30c32d8f6ce16d2bc0712bdcc588124ed61
|
[
"MIT"
] | null | null | null |
from .hdre_bycython import *
#from .hdre.hdr_helpers_bycython import *
| 23.666667
| 41
| 0.802817
| 10
| 71
| 5.4
| 0.6
| 0.296296
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.112676
| 71
| 2
| 42
| 35.5
| 0.857143
| 0.56338
| 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
| 1
| 0
|
0
| 6
|
b712cd4e347543b8ab1a1fc4fdc38bbc0433dcb9
| 2,886
|
py
|
Python
|
tests/test_clr.py
|
ColorGenomics/clr
|
a444a0612374a19f22e511b5e3514a60561e6160
|
[
"MIT"
] | 2
|
2016-03-09T02:15:35.000Z
|
2016-03-10T12:25:27.000Z
|
tests/test_clr.py
|
color/clr
|
a444a0612374a19f22e511b5e3514a60561e6160
|
[
"MIT"
] | 7
|
2021-04-28T03:12:55.000Z
|
2021-10-07T21:13:20.000Z
|
tests/test_clr.py
|
color/clr
|
a444a0612374a19f22e511b5e3514a60561e6160
|
[
"MIT"
] | 3
|
2017-08-21T18:43:02.000Z
|
2019-04-03T01:14:36.000Z
|
import pytest
import clr
def test_argtest(capsys):
def check(args, expected):
with pytest.raises(SystemExit) as e:
clr.main(["clr", "argtest"] + args)
captured = capsys.readouterr()
assert expected in captured.out
assert e.value.code == 0
def check_failure(args, expected):
with pytest.raises(SystemExit) as e:
clr.main(["clr", "argtest"] + args)
captured = capsys.readouterr()
assert expected in captured.err
assert e.value.code != 0
check(["1", "2"], "a=1 b=2 c=4 d=None e=False f=True")
check(["11", "2", "3"], "a=11 b=2 c=3 d=None e=False f=True")
check(["1", "2", "3", "4"], "a=1 b=2 c=3 d=4 e=False f=True")
check(["1", "2", "3", "4", "--e"], "a=1 b=2 c=3 d=4 e=True f=True")
check(["1", "2", "--c=3"], "a=1 b=2 c=3 d=None e=False f=True")
check(["1", "2", "--c", "3"], "a=1 b=2 c=3 d=None e=False f=True")
check(["1", "2", "--c=3", "--d=4"], "a=1 b=2 c=3 d=4 e=False f=True")
check(["1", "2", "--d=4", "--c=3"], "a=1 b=2 c=3 d=4 e=False f=True")
check(["1", "2", "--d=3"], "a=1 b=2 c=4 d=3 e=False f=True")
check(["1", "2", "--nof", "--e"], "a=1 b=2 c=4 d=None e=True f=False")
check(["1", "2", "--nof", "--noe"], "a=1 b=2 c=4 d=None e=False f=False")
check_failure(["1"], "one of the arguments --b b is required")
check_failure(
["11", "2", "--c=ccc"], "error: argument --c: invalid int value: 'ccc'"
)
check(["1", "--b=2"], "a=1 b=2 c=4 d=None e=False f=True")
check(["--a", "1", "--b=2"], "a=1 b=2 c=4 d=None e=False f=True")
check(
["--a", "aaa", "--b", "bbb", "--c", "333", "--d", "ddd", "--e", "--nof"],
"a=aaa b=bbb c=333 d=ddd e=True f=False",
)
def test_argtest2(capsys):
def check(args, expected):
with pytest.raises(SystemExit) as e:
clr.main(["clr", "argtest2"] + args)
captured = capsys.readouterr()
assert expected in captured.out
assert e.value.code == 0
def check_failure(args, expected):
with pytest.raises(SystemExit) as e:
clr.main(["clr", "argtest2"] + args)
captured = capsys.readouterr()
assert expected in captured.err
assert e.value.code != 0
check(["1", "2"], "a=1 b=2 c=() d=4 e=None f=False g=")
check(["11", "2", "3"], "a=11 b=2 c=('3',) d=4 e=None f=False g=")
check(["11", "2", "3", "4"], "a=11 b=2 c=('3', '4') d=4 e=None f=False g=")
check(
["11", "2", "3", "4", "a", "b"],
"a=11 b=2 c=('3', '4', 'a', 'b') d=4 e=None f=False g=",
)
check_failure(["11"], "the following arguments are required: b")
check(["11", "2", "3", "4", "--f"], "a=11 b=2 c=('3', '4') d=4 e=None f=True g=")
check(
["11", "2", "3", "4", "--g=ggg", "--e=eee"],
"a=11 b=2 c=('3', '4') d=4 e=eee f=False g=ggg",
)
| 40.647887
| 85
| 0.493416
| 522
| 2,886
| 2.714559
| 0.118774
| 0.032463
| 0.040226
| 0.03952
| 0.810162
| 0.802399
| 0.792519
| 0.769231
| 0.755822
| 0.714185
| 0
| 0.073887
| 0.244976
| 2,886
| 70
| 86
| 41.228571
| 0.576411
| 0
| 0
| 0.435484
| 0
| 0.080645
| 0.367637
| 0
| 0
| 0
| 0
| 0
| 0.129032
| 1
| 0.096774
| false
| 0
| 0.032258
| 0
| 0.129032
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 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
| 6
|
b728f97782e01b78c54ee968d32bdf2806837d8b
| 35
|
py
|
Python
|
src/neuropsymodelcomparison/dataio/__init__.py
|
OlafHaag/NeuroPsyResearchAnalysis
|
83d750310ee2467979d503d2fb4b6011ead9e9fc
|
[
"MIT"
] | null | null | null |
src/neuropsymodelcomparison/dataio/__init__.py
|
OlafHaag/NeuroPsyResearchAnalysis
|
83d750310ee2467979d503d2fb4b6011ead9e9fc
|
[
"MIT"
] | null | null | null |
src/neuropsymodelcomparison/dataio/__init__.py
|
OlafHaag/NeuroPsyResearchAnalysis
|
83d750310ee2467979d503d2fb4b6011ead9e9fc
|
[
"MIT"
] | null | null | null |
from .dbactions import get_db_table
| 35
| 35
| 0.885714
| 6
| 35
| 4.833333
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.085714
| 35
| 1
| 35
| 35
| 0.90625
| 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
| 1
| 0
|
0
| 6
|
b734e1a92b6783d0155a3949a674fb9b33e37851
| 45,810
|
py
|
Python
|
sdk/config_api.py
|
llnw/llnw-sdk-python
|
0b3614e0e1f0b64c90d95ebd219646ea62d5efb4
|
[
"Apache-2.0"
] | 5
|
2020-07-31T16:43:57.000Z
|
2021-11-04T16:51:58.000Z
|
sdk/config_api.py
|
llnw/llnw-sdk-python
|
0b3614e0e1f0b64c90d95ebd219646ea62d5efb4
|
[
"Apache-2.0"
] | null | null | null |
sdk/config_api.py
|
llnw/llnw-sdk-python
|
0b3614e0e1f0b64c90d95ebd219646ea62d5efb4
|
[
"Apache-2.0"
] | null | null | null |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from urllib.parse import parse_qs
from sdk.base_client import BaseRestAuthClient
__all__ = ['ConfigApiClient']
__docformat__ = 'restructuredtext'
class ConfigApiClient(BaseRestAuthClient):
"""
Rest client for Limelight Public config-api
"""
def __init__(self, hostname, username, api_shared_key, schema=None, port=None, context=None,
default_headers=None, timeout=None):
context = context or 'config-api/v1'
schema = schema or 'https'
port = port or '80'
self.timeout = timeout or 30
super(ConfigApiClient, self).__init__(hostname, context, username, api_shared_key, schema,
port, default_headers)
def _common_get(self, request_path, timeout=None, **kwargs):
parameters = {}
timeout = timeout or self.timeout
if 'size' in kwargs and kwargs['size'] is not None:
parameters["size"] = str(kwargs['size'])
if 'page' in kwargs and kwargs['page'] is not None:
parameters["page"] = str(kwargs['page'])
if 'limit' in kwargs and kwargs['limit'] is not None:
parameters["limit"] = str(kwargs['limit'])
if 'parameters' in kwargs and kwargs['parameters'] is not None:
parameters.update(parse_qs(kwargs['parameters']))
return self.get(request_path=request_path, params=parameters, timeout=timeout)
def _common_post(self, request_path, body=None, timeout=None, **kwargs):
timeout = timeout or self.timeout
return self.post(request_path=request_path, data=json.dumps(body), timeout=timeout)
def _common_put(self, request_path, body=None, timeout=None, **kwargs):
timeout = timeout or self.timeout
return self.put(request_path=request_path, data=json.dumps(body), timeout=timeout)
def _common_delete(self, request_path, body=None, timeout=None, **kwargs):
timeout = timeout or self.timeout
return self.delete(request_path=request_path, data=json.dumps(body), timeout=timeout)
# -------------------- Config API -------------------- #
def request(self, **kwargs):
"""
General wrapper method
:param kwargs: list of argument from action method
action
type
service
"""
if not hasattr(self, kwargs['action']):
raise AttributeError(f'action {kwargs["action"]} not exist')
action = kwargs.pop('action')
return getattr(self, action)(**kwargs)
def request_js(self, **kwargs):
"""
General wrapper method
:param kwargs: list of argument from action method
"""
_action = 'get' # possible values - get, search, validate, create, update, delete
# _type = 'instance' # profile(svcprof), instance(svcinst), option(option)
_service = 'delivery' # applicable only for deliver/httpsc,
m_action = getattr(kwargs, 'action', _action)
m_service = getattr(kwargs, 'service', _service)
m_type = getattr(kwargs, 'type', None)
if m_type is None:
method_name = f'{m_action}_{m_service}'
else:
method_name = f'{m_action}_{m_service}_{m_type}'
if not hasattr(self, method_name):
raise AttributeError(f'action {method_name} not exist')
return getattr(self, method_name)(**kwargs)
# -------------------- Config API -------------------- #
def get_health_check(self):
"""
Light way to check if API is alive.
"""
self.logger.debug("Getting health/check for service Config API")
request_path = 'health/check'
return self._common_get(request_path)
def get_status(self):
"""
Check API status, version, etc.
"""
self.logger.debug("Getting Config APIs Status")
request_path = 'utils/status'
return self._common_get(request_path)
# -------------------- Content Delivery - Get Info -------------------- #
def list_delivery_service_instances(self, shortname, size=None, page=None):
"""
Retrieves the delivery configurations for the provided shortname
:param shortname: str
:param size: (optional) Default 100. int
:param page: (optional) Default is 1. int
"""
self.logger.debug(f"Getting Delivery ServiceInstances for shortname [{shortname}]")
request_path = f'svcinst/delivery/shortname/{shortname}'
return self._common_get(request_path, size=size, page=page)
def list_delivery_service_profiles(self, shortname, size=None, page=None):
"""
Retrieves the delivery service profiles per the specified shortname.
:param shortname: str
:param size: (optional) Default 100. int
:param page: (optional) Default is 1. int
"""
self.logger.debug(f"Getting Delivery ServiceProfiles for shortname [{shortname}]")
request_path = f'svcprof/delivery/shortname/{shortname}'
return self._common_get(request_path, size=size, page=page)
def search_delivery_service_profiles(self, shortname, parameters=None, size=None, page=None):
"""
Retrieves the delivery service profiles per the specified shortname per provided searching criteria.
:param shortname: str
:param parameters: (optional) Searching criteria (e.i. body.useCase=DownloadLargeFile) str
:param size: (optional) Default 100. int
:param page: (optional) Default is 1. int
"""
self.logger.debug(
f"Searching Delivery ServiceProfile for shortname [{shortname}], criteria [{parameters}]")
request_path = f'svcprof/delivery/shortname/{shortname}/search'
return self._common_get(request_path, size=size, page=page, parameters=parameters)
def search_delivery_service_instance(self, shortname, parameters=None, size=None, page=None):
"""
Retrieves the delivery service instances per the specified shortname per provided searching criteria.
:param shortname: str
:param parameters: (optional) Searching criteria (e.i. body.useCase=DownloadLargeFile) str
:param size: (optional) Default 100. int
:param page: (optional) Default is 1. int
"""
self.logger.debug(
f"Searching Delivery ServiceProfile for shortname [{shortname}], criteria [{parameters}]")
request_path = f'svcinst/delivery/shortname/{shortname}/searchAuto'
return self._common_get(request_path, size=size, page=page, parameters=parameters)
def get_delivery_service_profiles(self, shortname, uuid):
"""
Retrieves the delivery service profiles per the specified shortname by uuid.
:param shortname: str
:param uuid: str
"""
self.logger.debug(f"Get Delivery ServiceProfile for shortname [{shortname}] by uuid [{uuid}]")
request_path = f'svcprof/delivery/shortname/{shortname}/{uuid}'
return self._common_get(request_path)
def get_delivery_service_instance(self, uuid):
"""
Retrieves the delivery service instance per the specified shortname by uuid.
:param uuid: str
"""
self.logger.debug(
f"Get Delivery ServiceProfile by uuid [{uuid}]")
request_path = f'svcinst/delivery/{uuid}'
return self._common_get(request_path)
def list_delivery_service_instance_version(self, shortname, uuid):
"""
Retrieves the delivery service instance versions or specific version.
:param shortname: str
:param uuid: str
:param version: int
"""
self.logger.debug(f"Get Delivery ServiceProfile versions for shortname [{shortname}] by uuid [{uuid}]")
request_path = f'svcinst/delivery/{uuid}/versions'
return self._common_get(request_path)
def get_delivery_service_instance_version(self, shortname, uuid, version):
"""
Retrieves the delivery service instance versions or specific version.
:param shortname: str
:param uuid: str
:param version: int
"""
self.logger.debug(
f"Get Delivery ServiceProfile version [{version}] for shortname [{shortname}] by uuid [{uuid}]")
request_path = f'svcinst/delivery/{uuid}/versions/{version}'
return self._common_get(request_path)
def list_configuration_options(self, shortname, profile_name):
"""
Retrieves the list of available configOptions for shortname per service profile (delivery or httpcs).
:param shortnme: str
:param profile_name: str
"""
self.logger.debug(f"Getting available ConfigOption for shortname [{shortname}]")
request_path = f'configoption/shortname/{shortname}/svcProf/{profile_name}'
return self._common_get(request_path)
# -------------------- Content Delivery - Make changes -------------------- #
def validate_delivery_service_instance(self, delivery_config):
"""
Validates the delivery service instance (without creating).
:param delivery_config: json
always return 200 code. Contains field 'Success': True/False
True - config valid and can be created.
False - config contain errors that will be specified in response body.
"""
self.logger.debug("Validating delivery service instance config")
request_path = 'svcinst/delivery/validate'
return self._common_post(request_path, body=delivery_config)
def create_delivery_service_instance(self, delivery_config):
"""
Creates the delivery service instance
:param delivery_config: json
"""
self.logger.debug("Creating delivery service instance config")
request_path = 'svcinst/delivery'
return self._common_post(request_path, body=delivery_config)
def update_delivery_service_instance(self, uuid, delivery_config):
"""
Updates the delivery service instance (Full object update)
:param uuid: str
:param delivery_config: json
"""
self.logger.debug(f"Updating delivery service instance with uuid [{uuid}]")
request_path = f'svcinst/delivery/{uuid}'
return self._common_put(request_path, body=delivery_config)
def delete_delivery_service_instance(self, uuid):
"""
Deletes the delivery service instance
:param uuid: json
"""
self.logger.debug(f"Deleting delivery service instance with uuid [{uuid}]")
request_path = f'svcinst/delivery/{uuid}'
return self._common_delete(request_path)
def inherit_delivery_service_instance(self, config, parent_uuid):
"""
Allows creates delivery service instance with inheritance from parent config
:param config: json
:param parent_uuid: uuid
"""
self.logger.debug("Inheriting delivery service instance")
request_path = f'svcinst/delivery/inheritance?parentId={parent_uuid}'
return self._common_post(request_path, body=config)
def rollback_delivery_service_instance(self, uuid, version):
"""
Allows rollback config to a specific historical version
:param uuid: uuid
:param version: int
:return:
"""
self.logger.debug(f"Posting config rollback for service instance [{uuid}]")
request_path = f'svcinst/delivery/{uuid}/rollbackTo/{version}'
return self._common_post(request_path, body=None)
def clone_delivery_service_instance(self, published_host, source_host, parent_uuid):
"""
Allows clone configuration in correct waywith new published_host, source_host
:param published_host: str
:param source_host: str
:param parent_uuid: uuid
"""
config = self.get_delivery_service_instance(parent_uuid)
if not config.status_code == 200:
raise BaseException(config.json())
config = config.json()
del config['revision']
del config['shortname']
del config['status']
del config['uuid']
config['body']['sourceHostname'] = source_host
config['body']['publishedHostname'] = published_host
return self.inherit_delivery_service_instance(config, parent_uuid=parent_uuid)
# -------------------- HTTP chunk streaming - Make changes -------------------- #
def list_httpcs_service_instances(self, shortname, size=None, page=None):
"""
Retrieves the httpcs configurations for the provided shortname
:param shortname: str
:param size: (optional) Default 100. int
:param page: (optional) Default is 1. int
"""
self.logger.debug(f"Getting Delivery ServiceInstances for shortname [{shortname}]")
request_path = f'svcinst/httpcs/shortname/{shortname}'
return self._common_get(request_path, size=size, page=page)
def list_httpcs_service_profiles(self, shortname, size=None, page=None):
"""
Retrieves the httpcs service profiles per the specified shortname.
:param shortname: str
:param size: (optional) Default 100. int
:param page: (optional) Default is 1. int
"""
self.logger.debug(f"Getting Delivery ServiceProfiles for shortname [{shortname}]")
request_path = f'svcprof/httpcs/shortname/{shortname}'
return self._common_get(request_path, size=size, page=page)
def search_httpcs_service_profiles(self, shortname, parameters=None, size=None, page=None):
"""
Retrieves the httpcs service profiles per the specified shortname per provided searching criteria.
:param shortname: str
:param parameters: (optional) Searching criteria (e.i. body.useCase=DownloadLargeFile) str
:param size: (optional) Default 100. str
:param page: (optional) Default is 1. str
"""
self.logger.debug(
f"Searching Delivery ServiceProfile for shortname [{shortname}], criteria [{parameters}]")
request_path = f'svcprof/httpcs/shortname/{shortname}/search'
return self._common_get(request_path, size=size, page=page, parameters=parameters)
def search_httpcs_service_instance(self, shortname, parameters=None, size=None, page=None):
"""
Retrieves the httpcs service instances per the specified shortname per provided searching criteria.
:param shortname: str
:param parameters: (optional) Searching criteria (e.i. body.useCase=DownloadLargeFile) str
:param size: (optional) Default 100. str
:param page: (optional) Default is 1. str
"""
self.logger.debug(
f"Searching Delivery ServiceProfile for shortname [{shortname}], criteria [{parameters}]")
request_path = f'svcinst/httpcs/shortname/{shortname}/searchAuto'
return self._common_get(request_path, size=size, page=page, parameters=parameters)
def get_httpcs_service_profiles(self, shortname, uuid):
"""
Retrieves the httpcs service profiles per the specified shortname by uuid.
:param shortname: str
:param uuid: str
"""
self.logger.debug(f"Get Delivery ServiceProfile for shortname [{shortname}] by uuid [{uuid}]")
request_path = f'svcprof/httpcs/shortname/{shortname}/{uuid}'
return self._common_get(request_path)
def get_httpcs_service_instance(self, uuid):
"""
Retrieves the httpcs service instance per the specified shortname by uuid.
:param uuid: str
"""
self.logger.debug(
f"Get Delivery ServiceProfile by uuid [{uuid}]")
request_path = f'svcinst/httpcs/{uuid}'
return self._common_get(request_path)
def list_httpcs_service_instance_version(self, shortname, uuid):
"""
Retrieves the httpcs service instance versions or specific version.
:param shortname: str
:param uuid: str
:param version: int
"""
self.logger.debug(f"Get Delivery ServiceProfile version(s) for shortname [{shortname}] by uuid [{uuid}]")
request_path = f'svcinst/httpcs/{uuid}/versions'
return self._common_get(request_path)
def get_httpcs_service_instance_version(self, shortname, uuid, version):
"""
Retrieves the httpcs service instance versions or specific version.
:param shortname: str
:param uuid: str
:param version: int
"""
self.logger.debug(
f"Get Delivery ServiceProfile version [{version}] for shortname [{shortname}] by uuid [{uuid}]")
request_path = f'svcinst/httpcs/{uuid}/versions/{version}'
return self._common_get(request_path)
# -------------------- Content Delivery - Make changes -------------------- #
def validate_httpcs_service_instance(self, httpcs_config):
"""
Validates the httpcs service instance (without creating).
:param httpcs_config: json
:return: always return 200 code. Contains field 'Success': True/False
True - config valid and can be created.
False - config contain errors that will be specified in response body.
"""
self.logger.debug("Validating httpcs service instance config")
request_path = 'svcinst/httpcs/validate'
return self._common_post(request_path, body=httpcs_config)
def create_httpcs_service_instance(self, httpcs_config):
"""
Creates the httpcs service instance
:param httpcs_config: json
"""
self.logger.debug("Creating httpcs service instance config")
request_path = 'svcinst/httpcs'
return self._common_post(request_path, body=httpcs_config)
def update_httpcs_service_instance(self, uuid, httpcs_config):
"""
Updates the httpcs service instance (Full object update)
:param uuid: str
:param httpcs_config: json
"""
self.logger.debug(f"Updating httpcs service instance with uuid [{uuid}]")
request_path = f'svcinst/httpcs/{uuid}'
return self._common_put(request_path, body=httpcs_config)
def delete_httpcs_service_instance(self, uuid):
"""
Deletes the httpcs service instance
:param uuid: str
"""
self.logger.debug(f"Deleting httpcs service instance with uuid [{uuid}]")
request_path = f'svcinst/httpcs/{uuid}'
return self._common_delete(request_path)
def inherit_httpcs_service_instance(self, config, parent_uuid):
"""
Allows creates httpcs service instance with inheritance from parent config
:param config: json
:param parent_uuid: str
"""
self.logger.debug("Inheriting delivery service instance")
request_path = f'svcinst/httpcs/inheritance?parentId={parent_uuid}'
return self._common_post(request_path, body=config)
def rollback_httpcs_service_instance(self, uuid, version):
"""
Allows rollback config to a specific historical version
:param uuid: str
:param version: int
"""
self.logger.debug(f"Posting config rollback for service instance [{uuid}]")
request_path = f'svcinst/httpcs/{uuid}/rollbackTo/{version}'
return self._common_post(request_path, body=None)
def clone_httpcs_service_instance(self, published_host, source_host, parent_uuid):
"""
Allows clone configuration in correct way with new published_host, source_host
:param published_host: str
:param source_host: str
:param parent_uuid: str
"""
config = self.get_httpcs_service_instance(parent_uuid)
assert config.status_code == 200, 'An error occurs'
config = config.json()
del config['revision']
del config['shortname']
del config['status']
del config['uuid']
config['body']['httpcsSvcInstance']['sourceHostname'] = source_host
config['body']['httpcsSvcInstance']['publishedHostname'] = published_host
return self.inherit_httpcs_service_instance(config, parent_uuid=parent_uuid)
# -------------------- Customer Certificates-------------------- #
def list_customer_certificates(self, shortname, size=None, page=None):
"""
Retrieves the customer SSL certificates for the provided shortname
:param shortname: str
:param size: (optional) Default 100. int
:param page: (optional) Default is 1. int
"""
self.logger.debug(f'Getting customer - [{shortname}] Certificates')
request_path = f'customerCertificate/shortname/{shortname}'
return self._common_get(request_path, size=size, page=page)
def get_customer_certificate(self, uuid):
"""
Retrieves the customer SSL certificate via UUID
:param uuid: str
"""
self.logger.debug(f'Getting customer: [{uuid}] Certificate')
request_path = f'customerCertificate/{uuid}'
return self._common_get(request_path)
def create_customer_certificate(self, cert_config):
"""
Creates the customer SSL certificate
:param cert_config: json
"""
self.logger.debug('Creating customer certificate')
request_path = 'customerCertificate'
return self._common_post(request_path, body=cert_config)
def validate_customer_certificate(self, cert_config):
"""
Validates the customer SSL certificate
:param cert_config: json
"""
self.logger.debug('Validating customer certificate')
request_path = 'customerCertificate/validate'
return self._common_post(request_path, body=cert_config)
def update_customer_certificate(self, uuid, cert_config):
"""
Updates the customer SSL certificate
:param uuid: str
:param cert_config: json
"""
self.logger.debug(f'Updating customer Certificate with uuid [{uuid}]')
request_path = f'customerCertificate/{uuid}'
return self._common_put(request_path, body=cert_config)
def delete_customer_certificate(self, uuid):
"""
Deletes the customer SSL certificate
:param uuid: str
"""
self.logger.debug(f'Deleting customer Certificate with uuid [{uuid}]')
request_path = f'customerCertificate/{uuid}'
return self._common_delete(request_path)
def list_customer_certificate_versions(self, uuid):
"""
List of customer SSL certificate versions or specific historical version
:param uuid: str
:param version: int
"""
self.logger.debug(f'Getting customer Certificate [{uuid}] versions')
request_path = f'customerCertificate/{uuid}/versions'
return self._common_get(request_path)
def get_customer_certificate_versions(self, uuid, version):
"""
List of customer SSL certificate versions or specific historical version
:param uuid: str
:param version: int
"""
self.logger.debug(f'Getting customer Certificate [{uuid}] versions')
request_path = f'customerCertificate/{uuid}/versions/{version}'
return self._common_get(request_path)
def publish_customer_certificate(self, uuid):
"""
Publish customer SSL certificate to the LLNW CDN Edge
:param uuid: str
"""
self.logger.debug('Publishing customer Certificate')
request_path = f'customerCertificate/{uuid}/publish'
return self._common_put(request_path)
def withdraw_customer_certificate(self, uuid):
"""
Withdraw customer SSL certificate from the LLNW CDN Edge
:param uuid: str
"""
self.logger.debug('Withdrawing customer Certificate')
request_path = f'customerCertificate/{uuid}/withdraw'
return self._common_delete(request_path)
# -------------------- edgeRules -------------------- #
def list_edgerules(self, shortname):
"""
Return list of EdgeRules per shortname
:param shortname: str
"""
self.logger.debug(f'Getting edgerules for shortname [{shortname}]')
request_path = f'edgerules/shortname/{shortname}'
return self._common_get(request_path)
def get_edgerule(self, shortname, uuid):
"""
Returns specific edgeRule
:param shortname: str
:param uuid: str
"""
self.logger.debug('Getting edgerules for shortname [{shortname}]')
request_path = f'edgerules/shortname/{shortname}/{uuid}'
return self._common_get(request_path)
# -------------------- Ipacc -------------------- #
def list_customer_ipacc(self, shortname):
"""
Retrieve list of all customer IP Access Control Configuration (IPACC)
:param shortname: str
"""
self.logger.debug(f'Getting IPACC for shortname [{shortname}]')
request_path = f'ipaclist/shortname/{shortname}'
return self._common_get(request_path)
def search_customer_ipacc(self, shortname, parameters=None):
"""
Search customer IP Access Control Configuration
:param shortname: str
:param parameters: str
"""
self.logger.debug(f'Searching for IPACC for shortname [{shortname}]')
request_path = f'ipaclist/shortname/{shortname}/search'
return self._common_get(request_path, parameters=parameters)
def get_customer_ipacc(self, uuid):
"""
Retrieve specific customer IP Access Control Configuration
:param uuid: str
"""
self.logger.debug(f'Getting IPACC with UUID [{uuid}]')
request_path = f'ipaclist/{uuid}'
return self._common_get(request_path)
def get_customer_ipacc_blocks(self, uuid):
"""
Retrieve specific customer IP Access Control Configuration blocks
:param uuid:
"""
self.logger.debug(f'Getting IPACC with UUID [{uuid}]')
request_path = f'ipaclist/{uuid}/blocks'
return self._common_get(request_path)
# -------------------- DNS -------------------- #
def list_dns_zones(self, shortname):
self.logger.debug(f'Getting DNS zones for shortname {shortname}')
request_path = f'epdns/shortname/{shortname}/zone'
return self._common_get(request_path)
def get_dns_zone(self, shortname, zone_id):
self.logger.debug(f'Getting DNS zones for shortname {shortname}')
request_path = f'epdns/shortname/{shortname}/zone/{zone_id}'
return self._common_get(request_path)
def create_dns_resource(self, shortname, resource):
self.logger.debug(f'Posting DNS resource for shortname {shortname}')
request_path = f'epdns/shortname/{shortname}/resource'
return self._common_post(request_path, body=resource)
def list_dns_resource(self, shortname, size=None):
self.logger.debug(f'Getting DNS resources for shortname {shortname}')
request_path = f'epdns/shortname/{shortname}/resource'
return self._common_get(request_path, limit=size)
def get_dns_resource(self, shortname, resource_id):
self.logger.debug(f'Getting DNS resources for shortname {shortname} and resource {resource_id}')
request_path = f'epdns/shortname/{shortname}/resource/{resource_id}'
return self._common_get(request_path)
def update_dns_resource_by_id(self, shortname, resource_id, resource):
self.logger.debug(f'Updating DNS resource with id {resource_id} for shortname {shortname}')
request_path = f'epdns/shortname/{shortname}/resource/{resource_id}'
return self._common_put(request_path, body=resource)
def delete_dns_resource_by_id(self, shortname, resource_id):
self.logger.debug(f'Deleting DNS resource with id {resource_id} for shortname {shortname}')
request_path = f'epdns/shortname/{shortname}/resource/{resource_id}'
return self._common_delete(request_path)
def create_dns_resource_health_check(self, shortname, resource_id, health_check):
self.logger.debug(f'Posting DNS health check for resource with id {resource_id} for shortname {shortname}')
request_path = f'epdns/shortname/{shortname}/resource/{resource_id}/healthcheck'
return self._common_post(request_path, body=health_check)
def list_dns_resource_health_check(self, shortname, resource_id, size=None):
self.logger.debug(f'List of DNS healthcheck for resource with id {resource_id} for shortname {shortname}')
request_path = f'epdns/shortname/{shortname}/resource/{resource_id}/healthcheck'
return self._common_get(request_path, limit=size)
def get_dns_resource_health_check(self, shortname, resource_id, health_check_id):
self.logger.debug(f'Getting DNS healthcheck for resource with id {resource_id} for shortname {shortname}')
request_path = f'epdns/shortname/{shortname}/resource/{resource_id}/healthcheck/{health_check_id}'
return self._common_get(request_path)
def update_dns_resource_health_check_by_id(self, shortname, resource_id, health_check_id, health_check):
self.logger.debug(f'Updating DNS healthcheck with id {health_check_id} for resource with id {resource_id} for shortname {shortname}')
request_path = f'epdns/shortname/{shortname}/resource/{resource_id}/healthcheck/{health_check_id}'
return self._common_put(request_path, body=health_check)
def delete_dns_resource_health_check_by_id(self, shortname, resource_id, health_check_id):
self.logger.debug(f'Deleting DNS healthcheck with id {health_check_id} for resource with id {resource_id} for shortname {shortname}')
request_path = f'epdns/shortname/{shortname}/resource/{resource_id}/healthcheck/{health_check_id}'
return self._common_delete(request_path)
def create_dns_failover(self, shortname, zone, failover):
self.logger.debug(f'Posting DNS failover for zone {zone} for shortname {shortname}')
request_path = f'epdns/shortname/{shortname}/zone/{zone}/failover'
return self._common_post(request_path, body=failover)
def list_dns_failover(self, shortname, zone, size=None):
self.logger.debug(f'List DNS failover for zone {zone} for shortname {shortname}')
request_path = f'epdns/shortname/{shortname}/zone/{zone}/failover'
return self._common_get(request_path, limit=size)
def get_dns_failover(self, shortname, zone, failover_id):
self.logger.debug(f'Getting DNS failover for zone {zone} for shortname {shortname}')
request_path = f'epdns/shortname/{shortname}/zone/{zone}/failover/{failover_id}'
return self._common_get(request_path)
def update_dns_failover_by_id(self, shortname, zone, failover_id, failover):
self.logger.debug(f'Updating DNS failover with id {failover_id} for zone {zone} for shortname {shortname}')
request_path = f'epdns/shortname/{shortname}/zone/{zone}/failover/{failover_id}'
return self._common_put(request_path, body=failover)
def delete_dns_failover_by_id(self, shortname, zone, failover_id):
self.logger.debug(f'Deleting DNS failover with id {failover_id} for zone {zone} for shortname {shortname}')
request_path = f'epdns/shortname/{shortname}/zone/{zone}/failover/{failover_id}'
return self._common_delete(request_path)
def create_dns_resource_to_failover(self, shortname, zone, failover_id, resource):
self.logger.debug(f'Posting DNS resource to failover with id {failover_id} for zone {zone} for shortname {shortname}')
request_path = f'epdns/shortname/{shortname}/zone/{zone}/failover/{failover_id}/resource'
return self._common_post(request_path, body=resource)
def get_dns_resource_to_failover(self, shortname, zone, failover_id):
self.logger.debug(f'Getting DNS resources from failover with id {failover_id} for zone {zone} for shortname {shortname}')
request_path = f'epdns/shortname/{shortname}/zone/{zone}/failover/{failover_id}/resource'
return self._common_get(request_path)
def delete_dns_resource_to_failover(self, shortname, zone, failover_id, resource_id):
self.logger.debug(f'Deleting DNS resource with id {resource_id} from '
f'failover with id {failover_id} for zone {zone} for shortname {shortname}')
request_path = f'epdns/shortname/{shortname}/zone/{zone}/failover/{failover_id}/resource/{resource_id}'
return self._common_delete(request_path)
def list_dns_rule(self, shortname, size=None):
self.logger.debug(f'List DNS rule for shortname {shortname}')
request_path = f'epdns/shortname/{shortname}/rule'
return self._common_get(request_path, limit=size)
def get_dns_rule(self, shortname, rule_id=None):
self.logger.debug(f'Getting DNS rule for shortname {shortname}')
request_path = f'epdns/shortname/{shortname}/rule/{rule_id}'
return self._common_get(request_path)
def create_dns_rule(self, shortname, rule):
self.logger.debug(f'Posting DNS rule for shortname {shortname}')
request_path = f'epdns/shortname/{shortname}/rule'
return self._common_post(request_path, body=rule)
def update_dns_rule_by_id(self, shortname, rule_id, rule):
self.logger.debug(f'Updating DNS rule with id {rule_id} for shortname {shortname}')
request_path = f'epdns/shortname/{shortname}/rule/{rule_id}'
return self._common_put(request_path, body=rule)
def delete_dns_rule_by_id(self, shortname, rule_id):
self.logger.debug(f'Deleting DNS rule with id {rule_id} for shortname {shortname}')
request_path = f'epdns/shortname/{shortname}/rule/{rule_id}'
return self._common_delete(request_path)
def create_dns_director_policy(self, shortname, zone, dir_policy):
self.logger.debug(f'Posting DNS director policy for zone {zone} for shortname {shortname}')
request_path = f'epdns/shortname/{shortname}/zone/{zone}/directorpolicy'
return self._common_post(request_path, body=dir_policy)
def list_dns_director_policy(self, shortname, zone):
self.logger.debug(f'List of DNS director policy for zone {zone} for shortname {shortname}')
request_path = f'epdns/shortname/{shortname}/zone/{zone}/directorpolicy'
return self._common_get(request_path)
def get_dns_director_policy(self, shortname, zone, dir_policy_id):
self.logger.debug(f'Getting DNS director policy for zone {zone} for shortname {shortname}')
request_path = f'epdns/shortname/{shortname}/zone/{zone}/directorpolicy/{dir_policy_id}'
return self._common_get(request_path)
def update_dns_director_policy_by_id(self, shortname, zone, dir_policy_id, dir_policy):
self.logger.debug(f'Updating DNS director policy with id {dir_policy_id} for zone {zone} for shortname {shortname}')
request_path = f'epdns/shortname/{shortname}/zone/{zone}/directorpolicy/{dir_policy_id}'
return self._common_put(request_path, body=dir_policy)
def delete_dns_director_policy_by_id(self, shortname, zone, dir_policy_id):
self.logger.debug('Deleting DNS director policy with id {dir_policy_id} for zone {zone} for shortname {shortname}')
request_path = f'epdns/shortname/{shortname}/zone/{zone}/directorpolicy/{dir_policy_id}'
return self._common_delete(request_path)
def get_dns_health_checks(self):
self.logger.debug('Getting DNS health checks')
request_path = 'epdns/healthcheck'
return self._common_get(request_path)
def list_dns_job(self, size=None):
self.logger.debug('List of DNS job status')
request_path = 'epdns/job'
return self._common_get(request_path, limit=size)
def get_dns_job(self, job_id=None):
self.logger.debug('Getting DNS job status')
request_path = f'epdns/job/{job_id}'
return self._common_get(request_path)
def get_dns_country_geo_metadata(self):
self.logger.debug('Getting geo metadata for countries')
request_path = 'metadata/geo/countries'
return self._common_get(request_path)
def get_dns_state_geo_metadata(self, country_id):
self.logger.debug(f'Getting geo metadata for states from county with id: {country_id}')
request_path = f'metadata/geo/countries/{country_id}/states'
return self._common_get(request_path)
# -------------------- LDS -------------------- #
def list_lds(self, shortname, size=None, page=None):
"""
Retrieve list of customer lds configs
:param shortname: str
:param size: int
:param page: int
"""
self.logger.debug(f"Getting LDS for shortname [{shortname}]")
request_path = f'lds/shortname/{shortname}/config'
return self._common_get(request_path, size=size, page=page)
def get_lds(self, shortname, uuid, size=None, page=None):
"""
Retrieve customer lds config via UUID
:param shortname:
:param uuid:
:param size:
:param page:
"""
self.logger.debug(f"Getting LDS for shortname [{shortname}]")
request_path = f'lds/shortname/{shortname}/config/{uuid}'
return self._common_get(request_path, size=size, page=page)
def validate_lds(self, shortname, config):
"""
Validates the lds config (without creating)
:param shortname:
:param config:
"""
self.logger.debug(f"Validating LDS for shortname [{shortname}]")
request_path = f'lds/shortname/{shortname}/config/validate'
return self._common_post(request_path, body=config)
def create_lds(self, shortname, config):
"""
Creates lds configuration
:param shortname:
:param config:
"""
self.logger.debug(f"Posting LDS for shortname [{shortname}]")
request_path = f'lds/shortname/{shortname}/config'
return self._common_post(request_path, body=config)
def update_lds(self, shortname, uuid, config):
"""
Updates lds configuration. Full update
:param shortname: str
:param uuid: str
:param config: json
"""
self.logger.debug(f"Updating LDS with uuid [{uuid}] for shortname [{shortname}]")
request_path = f'lds/shortname/{shortname}/config/{uuid}'
return self._common_put(request_path, body=config)
def delete_lds(self, shortname, uuid):
"""
Delete lds configuration
:param shortname:
:param uuid:
"""
self.logger.debug(f"Deleting LDS with uuid [{uuid}] for shortname [{shortname}]")
request_path = f'lds/shortname/{shortname}/config/{uuid}'
return self._common_delete(request_path)
def list_lds_fields(self, shortname):
"""
Retrieves available lds fields
:param shortname:
"""
self.logger.debug(f"Getting LDS Fields for shortname [{shortname}]")
request_path = f'lds/shortname/{shortname}/field'
return self._common_get(request_path)
def list_lds_compression_type(self):
"""
Retrieves available lds compression types
"""
self.logger.debug("Getting allowed LDS compression types")
request_path = 'lds/compression-type'
return self._common_get(request_path)
def list_lds_storage_location(self):
"""
Retrieves available lds storage location
"""
self.logger.debug("Getting allowed LDS storage locations")
request_path = 'lds/storage-location'
return self._common_get(request_path)
# -------------------- Video Live Schedule -------------------- #
def list_live_video_schedule(self, shortname):
"""
:param shortname:
"""
self.logger.debug(f"Getting all live video schedules for [{shortname}]")
request_path = f'live/recording/shortname/{shortname}/schedules'
return self._common_get(request_path)
def get_live_video_schedule(self, shortname, schedule_id):
"""
:param shortname:
:param schedule_id:
"""
self.logger.debug(f"Getting live video schedule [{schedule_id}] for [{shortname}]")
request_path = f'live/recording/shortname/{shortname}/schedules/{schedule_id}'
return self._common_get(request_path)
def create_live_video_schedule(self, shortname, config):
"""
:param shortname:
:param config:
"""
self.logger.debug(f"Creating live video schedules for [{shortname}]")
request_path = f'live/recording/shortname/{shortname}/schedules'
return self._common_post(request_path, body=config)
def update_live_video_schedule(self, shortname, schedule_id, config):
"""
:param shortname:
:param schedule_id:
:param config:
"""
self.logger.debug(f"Updating live video schedule [{schedule_id}] for [{shortname}]")
request_path = f'live/recording/shortname/{shortname}/schedules/{schedule_id}'
return self._common_put(request_path, body=config)
def delete_live_video_schedule(self, shortname, schedule_id):
"""
:param shortname:
:param schedule_id:
"""
self.logger.debug(f"Deleting live video schedule [{schedule_id}] for [{shortname}]")
request_path = f'live/recording/shortname/{shortname}/schedules/{schedule_id}'
return self._common_delete(request_path)
# -------------------- Video Live Slots -------------------- #
def get_live_video_overview(self, shortname):
"""
:param shortname:
"""
self.logger.debug(f'Getting live video overview for [{shortname}]')
request_path = f'live/shortname/{shortname}/overview'
return self._common_get(request_path)
def list_live_video_slot(self, shortname):
"""
:param shortname:
"""
self.logger.debug(f'Getting all live video slots for [{shortname}]')
request_path = f'live/shortname/{shortname}/slots'
return self._common_get(request_path)
def get_live_video_slot(self, shortname, slot_id):
"""
:param shortname:
:param slot_id:
"""
self.logger.debug(f'Getting live video slot [{slot_id}] for [{shortname}]')
request_path = f'live/shortname/{shortname}/slots/{slot_id}'
return self._common_get(request_path)
def get_live_video_slot_status(self, shortname, slot_id):
"""
:param shortname:
:param slot_id:
"""
self.logger.debug(f'Getting live video slot [{slot_id}] status for [{shortname}]')
request_path = f'live/shortname/{shortname}/slots/{slot_id}/status'
return self._common_get(request_path)
def create_live_video_slot(self, shortname, config):
"""
:param shortname:
:param config:
"""
self.logger.debug(f'Creation live video slots for [{shortname}]')
request_path = f'live/shortname/{shortname}/slots'
return self._common_post(request_path, body=config)
def delete_live_video_slot(self, shortname, slot_id):
"""
:param shortname:
:param slot_id:
"""
self.logger.debug(f'Getting live video slot [{slot_id}] for [{shortname}]')
request_path = f'live/shortname/{shortname}/slots/{slot_id}'
return self._common_delete(request_path)
# -------------------- Video WEBRTC Slots -------------------- #
def list_webrtc_video_slot(self, shortname):
"""
:param shortname:
"""
self.logger.debug(f'Getting all webrtc video slots for [{shortname}]')
request_path = f'webrtc/shortname/{shortname}/slots'
return self._common_get(request_path)
def get_webrtc_video_slot(self, shortname, slot_id):
"""
:param shortname:
:param slot_id:
"""
self.logger.debug(f'Getting webrtc video slot [{slot_id}] for [{shortname}]')
request_path = f'webrtc/shortname/{shortname}/slots/{slot_id}'
return self._common_get(request_path)
def create_webrtc_video_slot(self, shortname, config):
"""
:param shortname:
:param config:
"""
self.logger.debug(f'Creating webrtc video slots for [{shortname}]')
request_path = f'webrtc/shortname/{shortname}/slots'
return self._common_post(request_path, body=config)
def delete_webrtc_video_slot(self, shortname, slot_id):
"""
:param shortname:
:param slot_id:
"""
self.logger.debug(f'Deleting webrtc video slot [{slot_id}] for [{shortname}]')
request_path = f'webrtc/shortname/{shortname}/slots/{slot_id}'
return self._common_delete(request_path)
| 41.41953
| 141
| 0.65191
| 5,319
| 45,810
| 5.425268
| 0.053958
| 0.085387
| 0.055099
| 0.047683
| 0.84794
| 0.803306
| 0.759088
| 0.721177
| 0.664587
| 0.621028
| 0
| 0.001546
| 0.237743
| 45,810
| 1,105
| 142
| 41.457014
| 0.824852
| 0.196333
| 0
| 0.385069
| 0
| 0
| 0.317644
| 0.122635
| 0
| 0
| 0
| 0
| 0.001965
| 1
| 0.225933
| false
| 0
| 0.005894
| 0
| 0.45776
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 6
|
b73aeace7770834c0af26cbb650b68ffdd9c46f5
| 43
|
py
|
Python
|
qcportal/wavefunctions/__init__.py
|
bennybp/QCPortal
|
c1d0f4e239c9363875680e93b4357c1680d6825c
|
[
"BSD-3-Clause"
] | null | null | null |
qcportal/wavefunctions/__init__.py
|
bennybp/QCPortal
|
c1d0f4e239c9363875680e93b4357c1680d6825c
|
[
"BSD-3-Clause"
] | null | null | null |
qcportal/wavefunctions/__init__.py
|
bennybp/QCPortal
|
c1d0f4e239c9363875680e93b4357c1680d6825c
|
[
"BSD-3-Clause"
] | 1
|
2022-03-18T16:37:54.000Z
|
2022-03-18T16:37:54.000Z
|
from .models import WavefunctionProperties
| 21.5
| 42
| 0.883721
| 4
| 43
| 9.5
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.093023
| 43
| 1
| 43
| 43
| 0.974359
| 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
| 1
| 0
|
0
| 6
|
3f791c02c61a513e738cc5912772e91526ce6d4d
| 9,813
|
py
|
Python
|
modules/models/buildingBlocks.py
|
dntaylor/DeepJet
|
249610b3b80543c8c84f5ba795bbb07c097f8150
|
[
"Apache-2.0"
] | 1
|
2018-02-16T13:13:09.000Z
|
2018-02-16T13:13:09.000Z
|
modules/models/buildingBlocks.py
|
dntaylor/DeepJet
|
249610b3b80543c8c84f5ba795bbb07c097f8150
|
[
"Apache-2.0"
] | null | null | null |
modules/models/buildingBlocks.py
|
dntaylor/DeepJet
|
249610b3b80543c8c84f5ba795bbb07c097f8150
|
[
"Apache-2.0"
] | 5
|
2017-11-03T15:51:27.000Z
|
2019-05-29T14:45:23.000Z
|
'''
standardised building blocks for the models
'''
from keras.layers import Dense, Dropout, Flatten,Convolution2D, Convolution1D
from keras.layers.pooling import MaxPooling2D
from keras.layers.normalization import BatchNormalization
def block_deepFlavourBTVConvolutions(charged,vertices,dropoutRate,active=True,batchnorm=False,batchmomentum=0.6):
'''
deep Flavour convolution part.
'''
cpf=charged
if active:
cpf = Convolution1D(64, 1, kernel_initializer='lecun_uniform', activation='relu', name='cpf_conv0')(cpf)
if batchnorm:
cpf = BatchNormalization(momentum=batchmomentum ,name='cpf_batchnorm0')(cpf)
cpf = Dropout(dropoutRate,name='cpf_dropout0')(cpf)
cpf = Convolution1D(32, 1, kernel_initializer='lecun_uniform', activation='relu', name='cpf_conv1')(cpf)
if batchnorm:
cpf = BatchNormalization(momentum=batchmomentum,name='cpf_batchnorm1')(cpf)
cpf = Dropout(dropoutRate,name='cpf_dropout1')(cpf)
cpf = Convolution1D(32, 1, kernel_initializer='lecun_uniform', activation='relu', name='cpf_conv2')(cpf)
if batchnorm:
cpf = BatchNormalization(momentum=batchmomentum,name='cpf_batchnorm2')(cpf)
cpf = Dropout(dropoutRate,name='cpf_dropout2')(cpf)
cpf = Convolution1D(8, 1, kernel_initializer='lecun_uniform', activation='relu' , name='cpf_conv3')(cpf)
else:
cpf = Convolution1D(1,1, kernel_initializer='zeros',trainable=False)(cpf)
vtx = vertices
if active:
vtx = Convolution1D(64, 1, kernel_initializer='lecun_uniform', activation='relu', name='vtx_conv0')(vtx)
if batchnorm:
vtx = BatchNormalization(momentum=batchmomentum,name='vtx_batchnorm0')(vtx)
vtx = Dropout(dropoutRate,name='vtx_dropout0')(vtx)
vtx = Convolution1D(32, 1, kernel_initializer='lecun_uniform', activation='relu', name='vtx_conv1')(vtx)
if batchnorm:
vtx = BatchNormalization(momentum=batchmomentum,name='vtx_batchnorm1')(vtx)
vtx = Dropout(dropoutRate,name='vtx_dropout1')(vtx)
vtx = Convolution1D(32, 1, kernel_initializer='lecun_uniform', activation='relu', name='vtx_conv2')(vtx)
if batchnorm:
vtx = BatchNormalization(momentum=batchmomentum,name='vtx_batchnorm2')(vtx)
vtx = Dropout(dropoutRate,name='vtx_dropout2')(vtx)
vtx = Convolution1D(8, 1, kernel_initializer='lecun_uniform', activation='relu', name='vtx_conv3')(vtx)
else:
vtx = Convolution1D(1,1, kernel_initializer='zeros',trainable=False)(vtx)
return cpf,vtx
def block_deepFlavourConvolutions(charged,neutrals,vertices,dropoutRate,active=True,batchnorm=False,batchmomentum=0.6):
'''
deep Flavour convolution part.
'''
cpf=charged
if active:
cpf = Convolution1D(64, 1, kernel_initializer='lecun_uniform', activation='relu', name='cpf_conv0')(cpf)
if batchnorm:
cpf = BatchNormalization(momentum=batchmomentum ,name='cpf_batchnorm0')(cpf)
cpf = Dropout(dropoutRate,name='cpf_dropout0')(cpf)
cpf = Convolution1D(32, 1, kernel_initializer='lecun_uniform', activation='relu', name='cpf_conv1')(cpf)
if batchnorm:
cpf = BatchNormalization(momentum=batchmomentum,name='cpf_batchnorm1')(cpf)
cpf = Dropout(dropoutRate,name='cpf_dropout1')(cpf)
cpf = Convolution1D(32, 1, kernel_initializer='lecun_uniform', activation='relu', name='cpf_conv2')(cpf)
if batchnorm:
cpf = BatchNormalization(momentum=batchmomentum,name='cpf_batchnorm2')(cpf)
cpf = Dropout(dropoutRate,name='cpf_dropout2')(cpf)
cpf = Convolution1D(8, 1, kernel_initializer='lecun_uniform', activation='relu' , name='cpf_conv3')(cpf)
else:
cpf = Convolution1D(1,1, kernel_initializer='zeros',trainable=False)(cpf)
npf=neutrals
if active:
npf = Convolution1D(32, 1, kernel_initializer='lecun_uniform', activation='relu', name='npf_conv0')(npf)
if batchnorm:
npf = BatchNormalization(momentum=batchmomentum,name='npf_batchnorm0')(npf)
npf = Dropout(dropoutRate,name='npf_dropout0')(npf)
npf = Convolution1D(16, 1, kernel_initializer='lecun_uniform', activation='relu', name='npf_conv1')(npf)
if batchnorm:
npf = BatchNormalization(momentum=batchmomentum,name='npf_batchnorm1')(npf)
npf = Dropout(dropoutRate,name='npf_dropout1')(npf)
npf = Convolution1D(4, 1, kernel_initializer='lecun_uniform', activation='relu' , name='npf_conv2')(npf)
else:
npf = Convolution1D(1,1, kernel_initializer='zeros',trainable=False)(npf)
vtx = vertices
if active:
vtx = Convolution1D(64, 1, kernel_initializer='lecun_uniform', activation='relu', name='vtx_conv0')(vtx)
if batchnorm:
vtx = BatchNormalization(momentum=batchmomentum,name='vtx_batchnorm0')(vtx)
vtx = Dropout(dropoutRate,name='vtx_dropout0')(vtx)
vtx = Convolution1D(32, 1, kernel_initializer='lecun_uniform', activation='relu', name='vtx_conv1')(vtx)
if batchnorm:
vtx = BatchNormalization(momentum=batchmomentum,name='vtx_batchnorm1')(vtx)
vtx = Dropout(dropoutRate,name='vtx_dropout1')(vtx)
vtx = Convolution1D(32, 1, kernel_initializer='lecun_uniform', activation='relu', name='vtx_conv2')(vtx)
if batchnorm:
vtx = BatchNormalization(momentum=batchmomentum,name='vtx_batchnorm2')(vtx)
vtx = Dropout(dropoutRate,name='vtx_dropout2')(vtx)
vtx = Convolution1D(8, 1, kernel_initializer='lecun_uniform', activation='relu', name='vtx_conv3')(vtx)
else:
vtx = Convolution1D(1,1, kernel_initializer='zeros',trainable=False)(vtx)
return cpf,npf,vtx
def block_deepFlavourDense(x,dropoutRate,active=True,batchnorm=False,batchmomentum=0.6):
if active:
x= Dense(200, activation='relu',kernel_initializer='lecun_uniform', name='df_dense0')(x)
if batchnorm:
x = BatchNormalization(momentum=batchmomentum,name='df_dense_batchnorm0')(x)
x = Dropout(dropoutRate,name='df_dense_dropout0')(x)
x= Dense(100, activation='relu',kernel_initializer='lecun_uniform', name='df_dense1')(x)
if batchnorm:
x = BatchNormalization(momentum=batchmomentum,name='df_dense_batchnorm1')(x)
x = Dropout(dropoutRate,name='df_dense_dropout1')(x)
x= Dense(100, activation='relu',kernel_initializer='lecun_uniform', name='df_dense2')(x)
if batchnorm:
x = BatchNormalization(momentum=batchmomentum,name='df_dense_batchnorm2')(x)
x = Dropout(dropoutRate,name='df_dense_dropout2')(x)
x= Dense(100, activation='relu',kernel_initializer='lecun_uniform', name='df_dense3')(x)
if batchnorm:
x = BatchNormalization(momentum=batchmomentum,name='df_dense_batchnorm3')(x)
x = Dropout(dropoutRate,name='df_dense_dropout3')(x)
x= Dense(100, activation='relu',kernel_initializer='lecun_uniform', name='df_dense4')(x)
if batchnorm:
x = BatchNormalization(momentum=batchmomentum,name='df_dense_batchnorm4')(x)
x = Dropout(dropoutRate,name='df_dense_dropout4')(x)
x= Dense(100, activation='relu',kernel_initializer='lecun_uniform', name='df_dense5')(x)
if batchnorm:
x = BatchNormalization(momentum=batchmomentum,name='df_dense_batchnorm5')(x)
x = Dropout(dropoutRate,name='df_dense_dropout5')(x)
x= Dense(100, activation='relu',kernel_initializer='lecun_uniform', name='df_dense6')(x)
if batchnorm:
x = BatchNormalization(momentum=batchmomentum,name='df_dense_batchnorm6')(x)
x = Dropout(dropoutRate,name='df_dense_dropout6')(x)
x= Dense(100, activation='relu',kernel_initializer='lecun_uniform', name='df_dense7')(x)
if batchnorm:
x = BatchNormalization(momentum=batchmomentum,name='df_dense_batchnorm7')(x)
x = Dropout(dropoutRate,name='df_dense_dropout7')(x)
else:
x= Dense(1,kernel_initializer='zeros',trainable=False,name='df_dense_off')(x)
return x
def block_SchwartzImage(image,dropoutRate,active=True):
'''
returns flattened output
'''
if active:
image = Convolution2D(64, (8,8) , border_mode='same', activation='relu',
kernel_initializer='lecun_uniform', name='swz_conv0')(image)
image = MaxPooling2D(pool_size=(2, 2), name='swz_maxpool0')(image)
image = Dropout(dropoutRate)(image)
image = Convolution2D(64, (4,4) , border_mode='same', activation='relu',
kernel_initializer='lecun_uniform', name='swz_conv1')(image)
image = MaxPooling2D(pool_size=(2, 2), name='swz_maxpool1')(image)
image = Dropout(dropoutRate)(image)
image = Convolution2D(64, (4,4) , border_mode='same', activation='relu',
kernel_initializer='lecun_uniform', name='swz_conv2')(image)
image = MaxPooling2D(pool_size=(2, 2), name='swz_maxpool2')(image)
image = Dropout(dropoutRate)(image)
image = Flatten()(image)
else:
#image=Cropping2D(crop)(image)#cut almost all of the 20x20 pixels
image = Flatten()(image)
image = Dense(1,kernel_initializer='zeros',trainable=False, name='swz_conv_off')(image)#effectively multipy by 0
return image
| 55.755682
| 120
| 0.654438
| 1,079
| 9,813
| 5.790547
| 0.112141
| 0.100672
| 0.105634
| 0.139245
| 0.847631
| 0.847631
| 0.831626
| 0.791933
| 0.753201
| 0.697503
| 0
| 0.029703
| 0.217772
| 9,813
| 175
| 121
| 56.074286
| 0.784263
| 0.022419
| 0
| 0.631944
| 0
| 0
| 0.161355
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.027778
| false
| 0
| 0.020833
| 0
| 0.076389
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 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
| 6
|
3f833d7dd5d15d137085bfdf3e8a583e74a0c50b
| 34
|
py
|
Python
|
libs/yowsup/yowsup/yowsup/demos/cli/__init__.py
|
akshitpradhan/TomHack
|
837226e7b38de1140c19bc2d478eeb9e379ed1fd
|
[
"MIT"
] | 22
|
2017-07-14T20:01:17.000Z
|
2022-03-08T14:22:39.000Z
|
libs/yowsup/yowsup/yowsup/demos/cli/__init__.py
|
akshitpradhan/TomHack
|
837226e7b38de1140c19bc2d478eeb9e379ed1fd
|
[
"MIT"
] | 6
|
2017-07-14T21:03:50.000Z
|
2021-06-10T19:08:32.000Z
|
libs/yowsup/yowsup/yowsup/demos/cli/__init__.py
|
akshitpradhan/TomHack
|
837226e7b38de1140c19bc2d478eeb9e379ed1fd
|
[
"MIT"
] | 13
|
2017-07-14T20:13:14.000Z
|
2020-11-12T08:06:05.000Z
|
from .stack import YowsupCliStack
| 17
| 33
| 0.852941
| 4
| 34
| 7.25
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.117647
| 34
| 1
| 34
| 34
| 0.966667
| 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
| 1
| 0
|
0
| 6
|
3f9666b147c927fb18ea6ce4ba7505f1aaa1b7f0
| 32
|
py
|
Python
|
package/wuphf/abc/__init__.py
|
derekmerck/python-wuphf
|
8e26252f61e4aff3a44364bd46e6e1aab97acd9d
|
[
"MIT"
] | 15
|
2019-02-12T23:26:09.000Z
|
2021-12-21T08:53:58.000Z
|
package/wuphf/abc/__init__.py
|
derekmerck/python-wuphf
|
8e26252f61e4aff3a44364bd46e6e1aab97acd9d
|
[
"MIT"
] | 2
|
2019-01-23T21:13:12.000Z
|
2019-06-28T15:45:51.000Z
|
package/wuphf/abc/__init__.py
|
derekmerck/python-wuphf
|
8e26252f61e4aff3a44364bd46e6e1aab97acd9d
|
[
"MIT"
] | 6
|
2019-01-23T20:22:50.000Z
|
2022-02-03T03:27:04.000Z
|
from .messenger import Messenger
| 32
| 32
| 0.875
| 4
| 32
| 7
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.09375
| 32
| 1
| 32
| 32
| 0.965517
| 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
| 1
| 0
|
0
| 6
|
3fd97a61a594b9fa99aa78a78247f62edb0975e4
| 29
|
py
|
Python
|
annex/__init__.py
|
rwightman/tensorflow-annex
|
da17339e8e5a9ab9b66dac2edc8ece8133227713
|
[
"Apache-2.0"
] | 8
|
2016-10-09T17:51:42.000Z
|
2022-03-09T09:43:27.000Z
|
annex/__init__.py
|
rwightman/tensorflow-annex
|
da17339e8e5a9ab9b66dac2edc8ece8133227713
|
[
"Apache-2.0"
] | 1
|
2017-02-12T16:33:04.000Z
|
2017-02-17T15:17:04.000Z
|
annex/__init__.py
|
rwightman/tensorflow-annex
|
da17339e8e5a9ab9b66dac2edc8ece8133227713
|
[
"Apache-2.0"
] | 4
|
2017-02-12T15:37:54.000Z
|
2020-06-08T17:31:26.000Z
|
import dataset
import record
| 9.666667
| 14
| 0.862069
| 4
| 29
| 6.25
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.137931
| 29
| 2
| 15
| 14.5
| 1
| 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
| 1
| 0
|
0
| 6
|
3fe4f69f108128eafa7f6443a9d9d1dbfa914132
| 42
|
py
|
Python
|
PythonCurso01/aula121_docstrings/exemplo02/main.py
|
AlissonAnjos21/Aprendendo
|
9454d9e53ef9fb8bc61bf481b6592164f5bf8695
|
[
"MIT"
] | null | null | null |
PythonCurso01/aula121_docstrings/exemplo02/main.py
|
AlissonAnjos21/Aprendendo
|
9454d9e53ef9fb8bc61bf481b6592164f5bf8695
|
[
"MIT"
] | null | null | null |
PythonCurso01/aula121_docstrings/exemplo02/main.py
|
AlissonAnjos21/Aprendendo
|
9454d9e53ef9fb8bc61bf481b6592164f5bf8695
|
[
"MIT"
] | null | null | null |
import varias_linhas
help(varias_linhas)
| 10.5
| 20
| 0.857143
| 6
| 42
| 5.666667
| 0.666667
| 0.705882
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.095238
| 42
| 3
| 21
| 14
| 0.894737
| 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 | 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
| 6
|
b2051b9ef090d8a1affc0b80781a74835030eb36
| 21
|
py
|
Python
|
heat/regression/__init__.py
|
sebimarkgraf/heat
|
9638e384f52c9bade75590963b9d57e080692da4
|
[
"MIT"
] | 2
|
2021-11-25T03:36:58.000Z
|
2022-02-22T12:08:47.000Z
|
heat/regression/__init__.py
|
sebimarkgraf/heat
|
9638e384f52c9bade75590963b9d57e080692da4
|
[
"MIT"
] | 3
|
2021-12-01T08:53:34.000Z
|
2022-03-21T11:54:33.000Z
|
heat/regression/__init__.py
|
sebimarkgraf/heat
|
9638e384f52c9bade75590963b9d57e080692da4
|
[
"MIT"
] | 1
|
2020-04-07T11:27:05.000Z
|
2020-04-07T11:27:05.000Z
|
from .lasso import *
| 10.5
| 20
| 0.714286
| 3
| 21
| 5
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.190476
| 21
| 1
| 21
| 21
| 0.882353
| 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
| 1
| 0
|
0
| 6
|
b20b3557ad0d1a5d027e142977b48aeab8df027a
| 17,625
|
py
|
Python
|
tests/base_tests/test_baseview.py
|
CYY666666/slim
|
80def99a2eee87a984e1467f83de02a040a2425f
|
[
"Zlib"
] | 1
|
2020-08-21T01:59:11.000Z
|
2020-08-21T01:59:11.000Z
|
tests/base_tests/test_baseview.py
|
CYY666666/slim
|
80def99a2eee87a984e1467f83de02a040a2425f
|
[
"Zlib"
] | null | null | null |
tests/base_tests/test_baseview.py
|
CYY666666/slim
|
80def99a2eee87a984e1467f83de02a040a2425f
|
[
"Zlib"
] | null | null | null |
import base64
from unittest import mock
import pytest
from aiohttp import web
from aiohttp.test_utils import make_mocked_request
from slim import Application
from slim.base.view import BaseView
pytestmark = [pytest.mark.asyncio]
class ATestApplication(Application):
def on_startup(self, app):
print('Initialize something. e.g. configuration and reset incomplete tasks')
def on_shutdown(self, app):
print('Close something. e.g. websockets and data streaming')
def on_cleanup(self, app):
print('Close something. e.g. database connection and save redis data')
app = ATestApplication(cookies_secret=b'123456', permission=None)
captcha = 'iVBORw0KGgoAAAANSUhEUgAAArYAAAExCAYAAACJXuERAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAL19JREFUeF7tnU2uJklyXZML0ID6oQQBAltAAwIJDTRpaKgFaKyp5hpzOVxJroHA20At5lN/hWYDlfky67rH9bjXPc4DcsK2MDc7ZhFxMupV8W8+Pj5eX/iBAAQgAAEIQAACEIDA7gTeYssfGLAD7AA7wA6wA+wAO8AO7L4DX3ZvgPq5CdkBdoAdYAfYAXaAHWAHfv0tBBaBRWAH2AF2gB1gB9gBdoAdOGEHEFt+FYNfRWEH2AF2gB1gB9gBduCIHUBsWeQjFvmEv2XSA19L2AF2gB1gB9iBazuA2CK2iC07wA6wA+wAO8AOsANH7ABiyyIfscj8Dffa33DhBz92gB1gB9iBE3YAsUVsEVt2gB1gB9gBdoAdYAeO2AHElkU+YpFP+FsmPfC1hB1gB9gBdoAduLYDX178QAACEIAABCAAAQjcTuDr16+vxJ/bG1104Gd/CUBsF8EmLQQgAAEIQAACEPgZgYTUvs885QexPWWS9AEBCEAAAhCAwPYEENtrI0Rsr/HjaghAAAIQgAAEIGAjgNheQ4nYXuPH1RCAAAQgAAEIQMBGALG9hhKxvcaPqyEAAQhAAAIQgICNAGJ7DSVie40fV0MAAhCAAAQgAAEbAcT2GkrE9ho/roYABCAAAQhAAAI2AojtNZSI7TV+XA0BCEAAAhCAAARsBBDbaygR22v8uBo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TJnt+q7uOcHN7p6qO05R9gSxvWdWiK2Bc7M8NtdmQF+RArFFbNWXGmK7/pZ1y5ky2/Vd3XOCm909VXecouwJYnvPrBBbA+dmeWyuzYC+IgVii9iqLzXEdv0t65YzZbbru7rnBDe7e6ruOEXZE8T2nlkhtgbOzfLYXJsBfUUKxBaxVV9qiO36W9YtZ8ps13d1zwludvdU3XGKsieI7T2zQmwNnJvlsbk2A/qKFIgtYqu+1BDb9besW86U2a7v6p4T3OzuqbrjFGVPENt7ZoXYGjg3y2NzbQb0FSkQW8RWfakhtutvWbecKbNd39U9J7jZ3VN1xynKniC298wKsTVwbpbH5toM6CtSILaIrfpSQ2zX37JuOVNmu76re05ws7un6o5TlD1BbO+ZFWJr4JyQR/eZ7nwGrKQoJeCUs9IWl5XlZPfOpb5MnXFuOM7a3rmQs/kJwW6enbrH6gkpOVPra45Lsfv4+Hh9++dLM6if1ZaQQveZ7ny7zpK6f5+AU85+/7SzIpzsENuvn4o9cjZ/z8Bunh1iO8/OfSViayCakEL3me58BqykKCXglLPSFpeV5WSH2CK27kVFbOeJIrbz7NxXIrYGogkpdJ/pzmfASopSAk45K21xWVlOdogtYuteVMR2nihiO8/OfSViayCakEL3me58BqykKCXglLPSFpeV5WSH2CK27kVFbOeJIrbz7NxXIrYGogkpdJ/pzmfASopSAk45K21xWVlOdogtYuteVMR2nihiO8/OfSViayCakEL3me58BqykKCXglLPSFpeV5WSH2CK27kVFbOeJIrbz7NxXIrYGogkpdJ/pzmfASopSAk45K21xWVlOdogtYuteVMR2nihiO8/OfSViayCakEL3me58BqykKCXglLPSFpeV5WSH2CK27kVFbOeJIrbz7NxXIrYGogkpdJ/pzmfASopSAk45K21xWVlOdogtYuteVMR2nihiO8/OfSViayCakEL3me58BqykKCXglLPSFpeV5WSH2CK27kVFbOeJIrbz7NxXIrYGogkpdJ/pzmfASopSAk45K21xWVlOdogtYuteVMR2nihiO8/OfSViayCakEL3me58BqykKCXglLPSFpeV5WSH2CK27kVFbOeJIr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2gB1gB9gBdoAdYAeO2AHElkU+YpFP+FsmPfC1hB1gB9gBdoAduLYDiC1ii9iyA+wAO8AOsAPsADtwxA4gtizyEYvM33Cv/Q0XfvBjB9gBdoAdOGEHEFvEFrFlB9gBdoAdYAfYAXbgiB1AbFnkIxb5hL9l0gNfS9gBdoAdYAfYgWs78P8BU0IcgNlb/EEAAAAASUVORK5CYII='
@app.route.view('base_test')
class ATestView(BaseView):
@app.route.interface('GET')
async def captcha(self):
self.finish_raw(base64.b64decode(captcha), 206, content_type='image/png')
async def test_get_captcha():
request = make_mocked_request('GET', '/api/base_test', headers={},
protocol=mock.Mock(), app=app)
view = ATestView(app, request)
await view._prepare()
await view.captcha()
assert view.ret_val == base64.b64decode(captcha)
assert view.response.content_type == 'image/png'
assert view.response.status == 206
| 391.666667
| 16,356
| 0.953305
| 588
| 17,625
| 28.544218
| 0.809524
| 0.037893
| 0.051537
| 0.063155
| 0.04123
| 0.04123
| 0.04123
| 0.037893
| 0.037893
| 0.037893
| 0
| 0.145609
| 0.01339
| 17,625
| 44
| 16,357
| 400.568182
| 0.819599
| 0
| 0
| 0
| 0
| 0.032258
| 0.940482
| 0.927319
| 0
| 1
| 0
| 0
| 0.096774
| 1
| 0.096774
| false
| 0
| 0.225806
| 0
| 0.387097
| 0.096774
| 0
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 6
|
b74900b2373a0cc4fc20ed36848d3a34d0fa6313
| 32,361
|
py
|
Python
|
backend/create.py
|
Rafalkufel/alinka
|
6eebd0f8412e858863965572bb2938a2c2b649de
|
[
"MIT"
] | 1
|
2018-09-19T15:56:46.000Z
|
2018-09-19T15:56:46.000Z
|
backend/create.py
|
Rafalkufel/alinka
|
6eebd0f8412e858863965572bb2938a2c2b649de
|
[
"MIT"
] | 36
|
2018-09-19T17:40:42.000Z
|
2018-10-12T19:00:45.000Z
|
backend/create.py
|
Rafalkufel/alinka
|
6eebd0f8412e858863965572bb2938a2c2b649de
|
[
"MIT"
] | 7
|
2018-09-19T15:58:14.000Z
|
2018-10-17T15:35:05.000Z
|
from docx import Document
import os
from .decision_create import (
add_line,
applicant,
individual_group,
insert_reciver,
normal_bold,
normal_center,
normal_justify,
normal_left,
normal_right,
page_break,
reason,
reason_individual,
reason_individual_preschool,
recommendations,
staff,
text_with_tag
)
from .styles import my_styles
from zipfile import ZipFile
from .change_xml import (
change_content_xml,
change_rels,
delete_xml_folder,
document_xml_change1,
insert_footnotes_xml1,
save_changed_xml
)
class Decision():
def __init__(self, value):
self.value = value
self.document = my_styles(Document())
def issue(self):
subject = self.value['subject']
if subject == "kształcenie specjalne":
self.issue_special_education()
elif subject == "indywidualne nauczanie":
self.issue_individual()
elif subject == "indywidualne roczne przygotowanie przedszkolne":
self.issue_individual_preschool()
elif subject == "wczesne wspomaganie rozwoju":
self.issue_development_support()
elif subject == "zajęcia rewalidacyjno-wychowawcze indywidualne":
self.issue_profound()
elif subject == "zajęcia rewalidacyjno-wychowawcze zespołowe":
self.issue_profound()
def issue_special_education(self):
normal_right(
self.document,
"Grodzisk Wielkopolski, {}".format(
self.value["staff_meeting_date"]
),
size=10,
bold=False
)
add_line(
self.document, 2
)
normal_center(
self.document,
"ORZECZENIE NR \n o potrzebie kształcenia specjalnego",
size=12,
bold=True,
)
add_line(
self.document, 8
)
normal_justify(
self.document,
"Działając na podstawie art. 127 ust. 10 ustawy z dnia 14"
"grudnia 2016 r. – Prawo oświatowe (Dz.U. z 2017 r. poz. "
"59 i 949)",
size=9
)
applicant(self.document, self.value["applicant_g"])
staff(self.document, self.value)
add_line(self.document, 12)
normal_center(
self.document,
"orzeka o potrzebie kształcenia specjalnego",
size=12,
bold=True,
)
add_line(self.document, 10)
text_with_tag(
self.document,
self.value["name_n"],
"(imię i nazwisko)"
)
add_line(self.document, 10)
text_with_tag(
self.document,
self.value["birth_date"] + "r., " + self.value["birth_place"],
"data i miejsce urodzenia dziecka lub ucznia"
)
add_line(self.document, 10)
text_with_tag(
self.document,
self.value["pesel"],
"(numer PESEL dziecka lub ucznia, a w przypadku braku"
" numeru PESEL – seria i numer dokumentu potwierdzającego"
" jego tożsamość)"
)
add_line(
self.document, 10
)
text_with_tag(
self.document,
"".join([
self.value["zip_code"],
" ",
self.value["city"],
", ",
self.value["address"]
]),
"(adres zamieszkania dziecka lub ucznia)"
)
add_line(self.document, 10)
text_with_tag(
self.document,
"".join([
self.value['school_name'],
", ",
self.value['school_sort'],
", ",
self.value['school_city'],
", ",
self.value['school_address'],
", ",
self.value['profession'],
", ",
self.value['class']
]),
"(nazwa i adres przedszkola, innej formy wychowania"
" przedszkolnego, szkoły lub ośrodka, o którym mowa w"
" art. 2 pkt 7 ustawy z dnia 14 grudnia 2016 r. – Prawo"
" oświatowe, a w przypadku ucznia – także oznaczenie"
" oddziału w szkole oraz nazwa zawodu&)"
)
add_line(self.document, 10)
text_with_tag(
self.document,
"".join([
self.value["applicant_n"],
", ",
self.value["applicant_zipcode"],
" ",
self.value['applicant_city'],
", ",
self.value['applicant_address']
]),
"(imiona i nazwiska rodziców& oraz adres ich zamieszkania)"
)
add_line(self.document, 10)
normal_center(
self.document,
"na okres&: {}".format(self.value['timespan']),
bold=True
)
page_break(self.document)
reason(self.document, self.value)
add_line(self.document, 10)
normal_center(
self.document,
"Diagnoza",
size=10,
bold=True
)
normal_justify(
self.document,
"Zespół Orzekający przedstawia diagnozę funkcjonowania dziecka lub"
" ucznia, z uwzględnieniem potencjału rozwojowego oraz mocnych "
"stron i uzdolnień dziecka lub ucznia oraz występujących w "
"środowisku nauczania i wychowania barier i ograniczeń "
"utrudniających jego funkcjonowanie:",
size=8
)
add_line(self.document, 10)
normal_center(
self.document,
"Zalecenia",
size=10,
bold=True
)
normal_left(
self.document,
"Zespół Orzekający zaleca:"
)
recommendations(
self.document,
self.value['recommendations']
)
normal_center(
self.document,
"Dodatkowe informacje",
size=10,
bold=True
)
normal_center(
self.document,
"(w zależności od potrzeb podaje się dodatkowe istotne informacje"
" o dziecku lub uczniu, w szczególności o wspomagającej lub"
" alternatywnej metodzie komunikacji (AAC), którą posługuje się"
" dziecko lub uczeń)",
size=8
)
add_line(self.document, 10)
normal_justify(
self.document,
"W przypadku wydania nowego orzeczenia o potrzebie kształcenia"
" specjalnego należy wskazać okoliczności, które Zespół Orzekający"
" uznał za istotne dla rozstrzygnięcia, oraz wyjaśnić powody, na"
" podstawie których stwierdzono potrzebę wydania nowego"
" orzeczenia&:",
size=10
)
add_line(self.document, 10)
normal_left(
self.document,
"Orzeczenie uchyla&:",
size=10,
bold=True
)
normal_left(
self.document,
"1) orzeczenie nr ………… o potrzebie kształcenia specjalnego"
" z dnia ………………… wydane przez ……………………………………………………………",
size=10,
bold=True
)
normal_bold(
self.document,
"2) orzeczenie nr ………….. o potrzebie zajęć rewalidacyjno-"
"wychowawczych zespołowych/indywidualnych& z dnia"
" …………………………… wydane przez …………………………………"
)
add_line(self.document, 10)
normal_bold(
self.document,
"Od niniejszego orzeczenia przysługuje odwołanie do Kuratora"
" Oświaty w ................................................"
" za pośrednictwem Zespołu Orzekającego, który wydał orzeczenie,"
" w terminie 14 dni od dnia jego doręczenia."
)
add_line(self.document, 30)
normal_right(
self.document,
"(podpis Przewodniczącego Zespołu Orzekającego) ",
size=8
)
insert_reciver(self.document, self.value)
def issue_individual(self):
normal_right(
self.document,
"Grodzisk Wielkopolski, {}".format(
self.value["staff_meeting_date"]
),
size=10,
bold=False
)
add_line(self.document, 2)
normal_center(
self.document,
"ORZECZENIE NR \n o potrzebie indywidualnego nauczania",
size=12,
bold=True,
)
add_line(self.document, 8)
normal_justify(
self.document,
"Działając na podstawie art. 127 ust. 10 ustawy z dnia 14 grudnia"
" 2016 r. – Prawo oświatowe (Dz. U. z 2017 r. poz. 59 i 949)",
size=9
)
applicant(self.document, self.value["applicant_n"])
staff(self.document, self.value)
add_line(self.document, 12)
normal_center(
self.document,
"orzeka o potrzebie indywidualnego nauczania",
size=12,
bold=True,
)
add_line(self.document, 10)
text_with_tag(
self.document,
self.value["name_n"],
"(imię/imiona i nazwisko ucznia)"
)
add_line(self.document, 10)
text_with_tag(
self.document,
self.value["birth_date"] + "r., " + self.value["birth_place"],
"(data i miejsce urodzenia ucznia)"
)
add_line(self.document, 10)
text_with_tag(
self.document,
self.value["pesel"],
"(numer PESEL ucznia, a w przypadku braku numeru PESEL – seria i"
" numer dokumentu potwierdzającego jego tożsamość)"
)
add_line(self.document, 10)
text_with_tag(
self.document,
"".join([
self.value["zip_code"],
" ",
self.value["city"],
", ",
self.value["address"]
]),
"(adres zamieszkania ucznia)"
)
add_line(self.document, 10)
text_with_tag(
self.document,
"".join([
self.value['school_name'],
", ",
self.value['school_sort'],
", ",
self.value['school_city'],
", ",
self.value['school_address'],
", ",
self.value['profession'],
", ",
self.value['class']
]),
"(nazwa i adres szkoły oraz oznaczenie oddziału w szkole, nazwa"
" zawodu&)"
)
add_line(self.document, 10)
text_with_tag(
self.document,
"".join([
self.value["applicant_n"],
", ",
self.value["applicant_zipcode"],
" ",
self.value['applicant_city'],
", ",
self.value['applicant_address']
]),
"(imiona i nazwiska rodziców& oraz adres ich zamieszkania)"
)
add_line(self.document, 10)
normal_center(
self.document,
"na okres&: {}".format(self.value['timespan_ind']),
bold=True
)
add_line(self.document, 10)
reason_individual(self.document, self.value['reason'][0])
page_break(self.document)
normal_center(
self.document,
"Diagnoza",
size=10,
bold=True
)
normal_justify(
self.document,
"Zespół Orzekający określa ograniczenia w funkcjonowaniu ucznia"
" wynikające z przebiegu choroby lub procesu terapeutycznego:",
size=8
)
add_line(self.document, 10)
normal_center(
self.document,
"Zalecenia",
size=10,
bold=True
)
normal_left(self.document, "Zespół Orzekający zaleca:")
recommendations(self.document, self.value['recommendations'])
normal_center(
self.document,
"Dodatkowe informacje",
size=10,
bold=True
)
normal_center(
self.document,
"(w zależności od potrzeb podaje się dodatkowe istotne informacje"
" o uczniu, w szczególności o wspomagającej lub alternatywnej"
" metodzie komunikacji (AAC), którą posługuje się uczeń, a w"
" przypadku ucznia szkoły prowadzącej kształcenie zawodowe – "
"także możliwość dalszego kształcenia w zawodzie, w tym warunki"
" realizacji praktycznej nauki zawodu)",
size=8
)
add_line(self.document, 10)
normal_justify(
self.document,
"W przypadku wydania nowego orzeczenia o potrzebie indywidualnego"
" nauczania należy wskazać okoliczności, które Zespół Orzekający"
" uznał za istotne dla rozstrzygnięcia, oraz wyjaśnić powody, na"
" podstawie których stwierdzono potrzebę wydania nowego"
" orzeczenia&:",
size=10
)
add_line(self.document, 10)
normal_bold(
self.document,
"Orzeczenie uchyla orzeczenie nr ...... o potrzebie"
" indywidualnego nauczania z dnia .............."
" wydane przez .....................&.\n\n"
"Od niniejszego orzeczenia przysługuje odwołanie do Kuratora"
" Oświaty w ........................za pośrednictwem Zespołu"
" Orzekającego, który wydał orzeczenie, w terminie 14 dni od"
" dnia jego doręczenia."
)
add_line(self.document, 10)
normal_left(self.document, "\n\n\n")
normal_right(
self.document,
"(podpis Przewodniczącego Zespołu Orzekającego) ",
size=8
)
insert_reciver(self.document, self.value)
def issue_individual_preschool(self):
normal_right(
self.document,
"Grodzisk Wielkopolski, {}".format(
self.value["staff_meeting_date"]
),
size=10,
bold=False
)
add_line(self.document, 2)
normal_center(
self.document,
"ORZECZENIE NR \n o potrzebie indywidualnego obowiązkowego"
" rocznego przygotowania przedszkolnego",
size=12,
bold=True,
)
add_line(self.document, 8)
normal_justify(
self.document,
"Działając na podstawie art. 127 ust. 10 ustawy z dnia 14 grudnia"
" 2016 r. – Prawo oświatowe (Dz. U. z 2017 r. poz. 59 i 949)",
size=9
)
applicant(self.document, self.value["applicant_n"])
staff(self.document, self.value)
add_line(self.document, 12)
normal_center(
self.document,
"orzeka o potrzebie indywidualnego obowiązkowego rocznego"
" przygotowania przedszkolnego",
size=12,
bold=True,
)
add_line(self.document, 10)
text_with_tag(
self.document,
self.value["name_n"],
"(imię/imiona i nazwisko dziecka)"
)
add_line(self.document, 10)
text_with_tag(
self.document,
self.value["birth_date"] + "r., " + self.value["birth_place"],
"(data i miejsce urodzenia dziecka)"
)
add_line(self.document, 10)
text_with_tag(
self.document,
self.value["pesel"],
"(numer PESEL dziecka, a w przypadku braku numeru PESEL – seria"
" i numer dokumentu potwierdzającego jego tożsamość)"
)
add_line(self.document, 10)
text_with_tag(
self.document,
"".join([
self.value["zip_code"],
" ",
self.value["city"],
", ",
self.value["address"]
]),
"(adres zamieszkania dziecka)"
)
add_line(self.document, 10)
text_with_tag(
self.document,
"".join([
self.value['school_name'],
", ",
self.value['school_sort'],
", ",
self.value['school_city'],
", ",
self.value['school_address']
]),
"(nazwa i adres przedszkola, szkoły podstawowej, w której"
" zorganizowano oddział przedszkolny, lub innej formy wychowania"
" przedszkolnego)"
)
add_line(self.document, 10)
text_with_tag(
self.document,
"".join([
self.value["applicant_n"],
", ",
self.value["applicant_zipcode"],
" ",
self.value['applicant_city'],
", ",
self.value['applicant_address']
]),
"(imiona i nazwiska rodziców& oraz adres ich zamieszkania)"
)
add_line(self.document, 10)
normal_center(
self.document,
"na okres&: {}".format(self.value['timespan_ind']),
bold=True
)
add_line(self.document, 10)
reason_individual_preschool(self.document, self.value['reason'][0])
page_break(self.document)
normal_center(
self.document,
"Diagnoza",
size=10,
bold=True
)
normal_justify(
self.document,
"Zespół Orzekający określa ograniczenia w funkcjonowaniu dziecka"
" wynikające z przebiegu choroby lub procesu terapeutycznego:",
size=8
)
add_line(self.document, 10)
normal_center(
self.document,
"Zalecenia",
size=10,
bold=True
)
normal_left(self.document, "Zespół Orzekający zaleca:")
recommendations(self.document, self.value['recommendations'])
normal_center(
self.document,
"Dodatkowe informacje",
size=10,
bold=True
)
normal_center(
self.document,
"(w zależności od potrzeb podaje się dodatkowe istotne informacje"
" o dziecku, w szczególności o wspomagającej lub alternatywnej"
" metodzie komunikacji (AAC), którą posługuje się dziecko)",
size=8
)
add_line(self.document, 10)
normal_justify(
self.document,
"W przypadku wydania nowego orzeczenia o potrzebie indywidualnego"
" obowiązkowego rocznego przygotowania przedszkolnego należy"
" wskazać okoliczności, które Zespół Orzekający uznał za istotne"
" dla rozstrzygnięcia, oraz wyjaśnić powody, na podstawie których"
" stwierdzono potrzebę wydania nowego orzeczenia&:",
size=10
)
add_line(self.document, 10)
normal_bold(
self.document,
"Orzeczenie uchyla orzeczenie nr ...... o potrzebie"
" indywidualnego obowiązkowego rocznego przygotowania"
" przedszkolnego z dnia .............................. wydane"
" przez..................................................&.\n"
"Od niniejszego orzeczenia przysługuje odwołanie do Kuratora"
" Oświaty w ........................za pośrednictwem Zespołu"
" Orzekającego, który wydał orzeczenie, w terminie 14 dni od"
" dnia jego doręczenia."
)
normal_left(self.document, "\n\n\n")
normal_right(
self.document,
"(podpis Przewodniczącego Zespołu Orzekającego) ",
size=8
)
insert_reciver(self.document, self.value)
def issue_development_support(self):
normal_right(
self.document,
"Grodzisk Wielkopolski, {}".format(
self.value["staff_meeting_date"]
),
size=10,
bold=False
)
add_line(self.document, 2)
normal_center(
self.document,
"OPINIA NR \n o potrzebie wczesnego wspomagania rozwoju dziecka",
size=12,
bold=True,
)
add_line(self.document, 8)
normal_justify(
self.document,
"Działając na podstawie art. 127 ust. 10 ustawy z dnia 14 grudnia"
" 2016 r. – Prawo oświatowe (Dz. U. z 2017 r. poz. 59 i 949),",
size=9
)
applicant(
self.document,
self.value["applicant_n"]
)
staff(self.document, self.value)
add_line(self.document, 12)
normal_center(
self.document,
"stwierdza potrzebę wczesnego wspomagania rozwoju dziecka",
size=12,
bold=True,
)
add_line(self.document, 10)
text_with_tag(
self.document,
self.value["name_n"],
"(imię/imiona i nazwisko dziecka)"
)
add_line(self.document, 10)
text_with_tag(
self.document,
self.value["birth_date"] + "r., " + self.value["birth_place"],
"(data i miejsce urodzenia dziecka)"
)
add_line(self.document, 10)
text_with_tag(
self.document,
self.value["pesel"],
"(numer PESEL dziecka, a w przypadku braku numeru PESEL – seria"
"i numer dokumentu potwierdzającego jego tożsamość)"
)
add_line(self.document, 10)
text_with_tag(
self.document,
"".join([
self.value["zip_code"],
" ",
self.value["city"],
", ",
self.value["address"]
]),
"(adres zamieszkania dziecka)"
)
add_line(self.document, 10)
text_with_tag(
self.document,
"".join([
self.value["applicant_n"],
", ",
self.value["applicant_zipcode"],
" ",
self.value['applicant_city'],
", ",
self.value['applicant_address']
]),
"(imiona i nazwiska rodziców& oraz adres ich zamieszkania)"
)
add_line(self.document, 10)
normal_center(
self.document,
"na okres&: {}".format(self.value['timespan']),
bold=True
)
add_line(self.document, 10)
normal_left(
self.document,
"ze względu na wykrytą niepełnosprawność.",
)
page_break(self.document)
normal_center(
self.document,
"Diagnoza",
size=10,
bold=True
)
normal_justify(
self.document,
"Zespół Orzekający przedstawia diagnozę poziomu funkcjonowania"
" dziecka, w tym informację o potencjale rozwojowym i mocnych"
" stronach dziecka oraz występujących w środowisku barierach i"
" ograniczeniach utrudniających jego funkcjonowanie:",
size=8
)
add_line(self.document, 10)
normal_center(
self.document,
"Zalecenia",
size=10,
bold=True
)
normal_left(self.document, "Zespół Orzekający zaleca:")
recommendations(self.document, self.value['recommendations'])
normal_center(
self.document,
"Dodatkowe informacje",
size=10,
bold=True
)
normal_center(
self.document,
"(w zależności od potrzeb podaje się dodatkowe istotne informacje"
" o dziecku, w szczególności o wspomagającej lub alternatywnej"
" metodzie komunikacji (AAC), którą posługuje się dziecko)",
size=8
)
add_line(self.document, 10)
normal_justify(
self.document,
"W przypadku wydania nowej opinii o potrzebie wczesnego"
" wspomagania rozwoju dziecka należy wskazać okoliczności, które"
" Zespół Orzekający uznał za istotne dla rozstrzygnięcia, oraz"
" wyjaśnić powody, na podstawie których stwierdzono potrzebę"
" wydania nowej opinii&:",
size=10
)
add_line(self.document, 10)
normal_left(
self.document,
"Opinia uchyla opinię nr ....o potrzebie wczesnego wspomagania"
" rozwoju dziecka z dnia .......wydaną przez..........&:",
size=10,
bold=True
)
add_line(self.document, 10)
normal_bold(
self.document,
"Od niniejszego orzeczenia przysługuje odwołanie do Kuratora"
" Oświaty w ................."
" za pośrednictwem Zespołu Orzekającego, który wydał orzeczenie,"
" w terminie 14 dni od dnia jego doręczenia."
)
add_line(self.document, 30)
normal_right(
self.document,
"(podpis Przewodniczącego Zespołu Orzekającego) ",
size=8
)
insert_reciver(self.document, self.value)
def issue_profound(self):
normal_right(
self.document,
"Grodzisk Wielkopolski, {}".format(
self.value["staff_meeting_date"]
),
size=10,
bold=False
)
add_line(self.document, 2)
normal_center(
self.document,
"ORZECZENIE NR \n o potrzebie zajęć rewalidacyjno-wychowawczych",
size=12,
bold=True,
)
add_line(self.document, 8)
normal_justify(
self.document,
"Działając na podstawie art. 127 ust. 10 ustawy z dnia 14 grudnia"
" 2016 r. – Prawo oświatowe (Dz. U. z 2017 r. poz. 59 i 949)",
size=9
)
applicant(self.document, self.value["applicant_n"])
staff(self.document, self.value)
add_line(self.document, 12)
individual_group(self.document, self.value)
add_line(self.document, 10)
text_with_tag(
self.document,
self.value["name_n"],
"(imię/imiona i nazwisko dziecka)"
)
add_line(self.document, 10)
text_with_tag(
self.document,
self.value["birth_date"] + "r., " + self.value["birth_place"],
"(data i miejsce urodzenia dziecka)"
)
add_line(self.document, 10)
text_with_tag(
self.document,
self.value["pesel"],
"(numer PESEL dziecka, a w przypadku braku numeru PESEL – seria"
" i numer dokumentu potwierdzającego jego tożsamość)"
)
add_line(self.document, 10)
text_with_tag(
self.document,
"".join([
self.value["zip_code"],
" ",
self.value["city"],
", ",
self.value["address"]
]),
"(adres zamieszkania dziecka)"
)
add_line(self.document, 10)
text_with_tag(
self.document,
"".join([
self.value['school_name'],
", ",
self.value['school_sort'],
", ",
self.value['school_city'],
", ",
self.value['school_address']
]),
"(nazwa i adres podmiotu organizującego zajęcia"
" rewalidacyjno-wychowawcze&)"
)
add_line(self.document, 10)
text_with_tag(
self.document,
"".join([
self.value["applicant_n"],
", ",
self.value["applicant_zipcode"],
" ",
self.value['applicant_city'],
", ",
self.value['applicant_address']
]),
"(imiona i nazwiska rodziców& oraz adres ich zamieszkania)"
)
add_line(self.document, 10)
normal_center(
self.document,
"w okresie do dnia&: {}".format(self.value['timespan_ind']),
bold=True
)
add_line(self.document, 10)
normal_left(
self.document,
"ze względu na niepełnosprawność intelektualną w stopniu głębokim."
)
page_break(self.document)
normal_center(
self.document,
"Diagnoza",
size=10,
bold=True
)
normal_justify(
self.document,
"Zespół Orzekający przedstawia diagnozę funkcjonowania dziecka,"
" z uwzględnieniem potencjału rozwojowego, mocnych stron dziecka"
" oraz występujących w środowisku nauczania i wychowania barier i"
" ograniczeń utrudniających jego funkcjonowanie:",
size=8
)
add_line(self.document, 10)
normal_center(
self.document,
"Zalecenia",
size=10,
bold=True
)
normal_left(self.document, "Zespół Orzekający zaleca:")
recommendations(self.document, self.value['recommendations'])
normal_center(
self.document,
"Dodatkowe informacje",
size=10,
bold=True
)
normal_center(
self.document,
"(w zależności od potrzeb podaje się dodatkowe istotne informacje"
" o dziecku, w szczególności o wspomagającej lub alternatywnej"
" metodzie komunikacji (AAC), którą posługuje się dziecko)",
size=8
)
add_line(self.document, 10)
normal_justify(
self.document,
"W przypadku wydania nowego orzeczenia o potrzebie zajęć"
" rewalidacyjno-wychowawczych należy wskazać okoliczności, które"
" Zespół Orzekający uznał za istotne dla rozstrzygnięcia, oraz"
" wyjaśnić powody, na podstawie których stwierdzono potrzebę"
" wydania nowego orzeczenia&:",
size=10
)
add_line(self.document, 10)
normal_bold(
self.document,
"Orzeczenie uchyla&:\n"
"1) orzeczenie nr ...... o potrzebie zajęć"
" rewalidacyjno-wychowawczych zespołowych/indywidualnych&"
" z dnia ........wydane przez ........................\n"
"2) orzeczenie nr ...... o potrzebie kształcenia specjalnego"
" z dnia ........wydane przez ........................\n\n"
"Od niniejszego orzeczenia przysługuje odwołanie do Kuratora"
" Oświaty w ................"
" za pośrednictwem Zespołu Orzekającego, który wydał orzeczenie,"
" w terminie 14 dni od dnia jego doręczenia."
)
normal_left(self.document, "\n\n\n")
normal_right(
self.document,
"(podpis Przewodniczącego Zespołu Orzekającego) ",
size=8
)
insert_reciver(self.document, self.value)
def save(self):
if not os.path.exists('./orzeczenia'):
os.makedirs('./orzeczenia')
self.document.save('tmp.docx')
def insert_footnotes(self):
zipedfile = ZipFile("tmp.docx", "r")
zipedfile.extractall(path="new")
zipedfile.close()
insert_footnotes_xml1(self.value['footnotes'])
document_xml_change1()
change_content_xml()
change_rels()
save_changed_xml(
"new",
os.path.join(
'./orzeczenia',
"{} - {} orzecz.docx".format(
self.value['name_n'],
self.value['staff_meeting_date']
)
)
)
delete_xml_folder(path="new")
| 33.639293
| 79
| 0.515435
| 2,987
| 32,361
| 5.529294
| 0.108805
| 0.154032
| 0.049286
| 0.08513
| 0.854384
| 0.832465
| 0.822354
| 0.816542
| 0.813877
| 0.801344
| 0
| 0.018033
| 0.383115
| 32,361
| 961
| 80
| 33.674298
| 0.799329
| 0
| 0
| 0.690755
| 0
| 0.004251
| 0.336485
| 0.015605
| 0
| 0
| 0
| 0
| 0
| 1
| 0.009564
| false
| 0
| 0.006376
| 0
| 0.017003
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 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
| 6
|
b7529bfadda4b778d1670cbf635bdec0fc96104d
| 112
|
py
|
Python
|
plotly/graph_objs/scatter3d/marker/__init__.py
|
gnestor/plotly.py
|
a8ae062795ddbf9867b8578fe6d9e244948c15ff
|
[
"MIT"
] | 12
|
2020-04-18T18:10:22.000Z
|
2021-12-06T10:11:15.000Z
|
plotly/graph_objs/scatter3d/marker/__init__.py
|
gnestor/plotly.py
|
a8ae062795ddbf9867b8578fe6d9e244948c15ff
|
[
"MIT"
] | 27
|
2020-04-28T21:23:12.000Z
|
2021-06-25T15:36:38.000Z
|
plotly/graph_objs/scatter3d/marker/__init__.py
|
gnestor/plotly.py
|
a8ae062795ddbf9867b8578fe6d9e244948c15ff
|
[
"MIT"
] | 6
|
2020-04-18T23:07:08.000Z
|
2021-11-18T07:53:06.000Z
|
from ._line import Line
from ._colorbar import ColorBar
from plotly.graph_objs.scatter3d.marker import colorbar
| 28
| 55
| 0.848214
| 16
| 112
| 5.75
| 0.5625
| 0.304348
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.01
| 0.107143
| 112
| 3
| 56
| 37.333333
| 0.91
| 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
| 1
| 0
|
0
| 6
|
b782cf37f63988e8dc73891401078a610177de9b
| 2,282
|
py
|
Python
|
05-mylibrary-lab-next/main_old.py
|
iproduct/intro-python
|
8fcf682286dad3fc65f46ccff33aefab9c601306
|
[
"Apache-2.0"
] | 3
|
2022-01-10T07:56:37.000Z
|
2022-02-14T16:37:56.000Z
|
05-mylibrary-lab-next/main_old.py
|
iproduct/intro-python
|
8fcf682286dad3fc65f46ccff33aefab9c601306
|
[
"Apache-2.0"
] | null | null | null |
05-mylibrary-lab-next/main_old.py
|
iproduct/intro-python
|
8fcf682286dad3fc65f46ccff33aefab9c601306
|
[
"Apache-2.0"
] | 1
|
2022-02-14T16:36:46.000Z
|
2022-02-14T16:36:46.000Z
|
from model.book import Book
from dao.book_repository import BookRepository, IntIdSequence
from dao.book_repository_json import BookRepositoryJson, load_from_file
if __name__ == "__main__":
b1 = Book(
5,
"Head First Python",
"A Brain-Friendly Guide",
["Paul Barry"],
"1491919531",
"O'Reilly UK Ltd.",
2016,
41.82,
"Software Engineering",
[
"python",
"introduction",
"examples",
"programming"
],
"Want to learn the Python language without slogging your way through how-to manuals? With Head First Python, you&;ll quickly grasp Python&;s fundamentals, working with the built-in data structures and functions. Then you&;ll move on to building your very own webapp, exploring database management, exception handling, and data wrangling. If you&;re intrigued by what you can do with context managers, decorators, comprehensions, and generators, it&;s all here. This second edition is a complete learning experience that will help you become a bonafide Python programmer in no time."
)
b2 = Book(
6,
"Head First Python",
"A Brain-Friendly Guide",
["Paul Barry"],
"1491919531",
"O'Reilly UK Ltd.",
2016,
41.82,
description="Want to learn the Python language without slogging your way through how-to manuals? With Head First Python, you&;ll quickly grasp Python&;s fundamentals, working with the built-in data structures and functions. Then you&;ll move on to building your very own webapp, exploring database management, exception handling, and data wrangling. If you&;re intrigued by what you can do with context managers, decorators, comprehensions, and generators, it&;s all here. This second edition is a complete learning experience that will help you become a bonafide Python programmer in no time."
)
# books = BookRepository(id_sequence=IntIdSequence())
books = BookRepositoryJson()
books.load()
books.insert(b1)
books.insert(b2)
print(f"Boook repository has {len(books)} books in total:")
for book in books:
print(book)
books.persist()
# books = load_from_file("books.json", Book)
# print(books)
| 45.64
| 602
| 0.678352
| 300
| 2,282
| 5.106667
| 0.406667
| 0.023499
| 0.039164
| 0.027415
| 0.707572
| 0.707572
| 0.707572
| 0.707572
| 0.707572
| 0.707572
| 0
| 0.024263
| 0.241455
| 2,282
| 49
| 603
| 46.571429
| 0.860774
| 0.046889
| 0
| 0.341463
| 0
| 0.04878
| 0.655919
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.073171
| 0
| 0.073171
| 0.04878
| 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
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 6
|
b787a3c997531d69c4cdb550dca01245befd7b29
| 27
|
py
|
Python
|
RDA_module/module/wage_trust_rda/__init__.py
|
franceoliver/workflow_demo
|
8c6b0fa547ebe1f74463c68bdaa277b2282dcfcb
|
[
"MIT"
] | null | null | null |
RDA_module/module/wage_trust_rda/__init__.py
|
franceoliver/workflow_demo
|
8c6b0fa547ebe1f74463c68bdaa277b2282dcfcb
|
[
"MIT"
] | null | null | null |
RDA_module/module/wage_trust_rda/__init__.py
|
franceoliver/workflow_demo
|
8c6b0fa547ebe1f74463c68bdaa277b2282dcfcb
|
[
"MIT"
] | null | null | null |
from .rda_module import RDA
| 27
| 27
| 0.851852
| 5
| 27
| 4.4
| 0.8
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.111111
| 27
| 1
| 27
| 27
| 0.916667
| 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
| 1
| 0
|
0
| 6
|
b795f1a8edf206ab48f1a327939b89d8240aee22
| 99
|
py
|
Python
|
src/models/classification/__init__.py
|
Alicegaz/torchok
|
7b8f95df466a25b1ad8ee93bed1a3c7516440cf4
|
[
"Apache-2.0"
] | 8
|
2021-10-12T05:39:20.000Z
|
2022-03-31T10:55:01.000Z
|
src/models/classification/__init__.py
|
Alicegaz/torchok
|
7b8f95df466a25b1ad8ee93bed1a3c7516440cf4
|
[
"Apache-2.0"
] | 1
|
2022-03-30T19:23:42.000Z
|
2022-03-30T19:23:42.000Z
|
src/models/classification/__init__.py
|
Alicegaz/torchok
|
7b8f95df466a25b1ad8ee93bed1a3c7516440cf4
|
[
"Apache-2.0"
] | 5
|
2021-11-17T07:38:28.000Z
|
2022-01-31T10:46:36.000Z
|
from . import arcmargin
from . import heads
from . import poolings
from . import transformer_heads
| 19.8
| 31
| 0.79798
| 13
| 99
| 6
| 0.461538
| 0.512821
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.161616
| 99
| 4
| 32
| 24.75
| 0.939759
| 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
| 1
| 0
|
0
| 6
|
b7f3902f28a7b23d6347c50dc1248f49f54503fb
| 40
|
py
|
Python
|
dp_fasttext/ml/supervised/__init__.py
|
ONSdigital/dp-fastText
|
f21949e6c499e08b24423dfe75600bde96b055be
|
[
"MIT"
] | 9
|
2021-09-01T05:54:01.000Z
|
2021-11-03T08:32:21.000Z
|
dp_fasttext/ml/supervised/__init__.py
|
ONSdigital/dp-fastText
|
f21949e6c499e08b24423dfe75600bde96b055be
|
[
"MIT"
] | null | null | null |
dp_fasttext/ml/supervised/__init__.py
|
ONSdigital/dp-fastText
|
f21949e6c499e08b24423dfe75600bde96b055be
|
[
"MIT"
] | 2
|
2021-04-11T08:01:20.000Z
|
2021-12-20T12:52:16.000Z
|
from .supervised import SupervisedModel
| 20
| 39
| 0.875
| 4
| 40
| 8.75
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.1
| 40
| 1
| 40
| 40
| 0.972222
| 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
| 1
| 0
|
0
| 6
|
4d624531a9a85739703e1fe7db14b03479b7f408
| 158
|
py
|
Python
|
owcsimpy/__init__.py
|
ardimasp/owcsimpy
|
155b0f26dd5e247cef9a84265256b0d70ba0b139
|
[
"MIT"
] | null | null | null |
owcsimpy/__init__.py
|
ardimasp/owcsimpy
|
155b0f26dd5e247cef9a84265256b0d70ba0b139
|
[
"MIT"
] | null | null | null |
owcsimpy/__init__.py
|
ardimasp/owcsimpy
|
155b0f26dd5e247cef9a84265256b0d70ba0b139
|
[
"MIT"
] | null | null | null |
from owcsimpy import geoobjects
from owcsimpy import geoutils
from owcsimpy import cir
from owcsimpy import misc
# __all__ = [
# "geoobjects",
# "geoutils"]
| 17.555556
| 31
| 0.772152
| 19
| 158
| 6.210526
| 0.421053
| 0.40678
| 0.610169
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.158228
| 158
| 8
| 32
| 19.75
| 0.887218
| 0.234177
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 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
| 1
| 0
| 0
| 0
|
0
| 6
|
4de1a55782c6e3cf9d10ce4b6cc0859190a8e8b9
| 136
|
py
|
Python
|
nkicap/tests/utils.py
|
Bronte-Mckeown/nkicap
|
38e26f0f5079e73b75f6e3e7f7d6643755f36b79
|
[
"MIT"
] | 1
|
2021-05-18T09:08:00.000Z
|
2021-05-18T09:08:00.000Z
|
nkicap/tests/utils.py
|
Bronte-Mckeown/nkicap
|
38e26f0f5079e73b75f6e3e7f7d6643755f36b79
|
[
"MIT"
] | 13
|
2021-03-12T16:21:01.000Z
|
2021-06-01T16:54:25.000Z
|
nkicap/tests/utils.py
|
Bronte-Mckeown/nkicap
|
38e26f0f5079e73b75f6e3e7f7d6643755f36b79
|
[
"MIT"
] | 1
|
2021-05-17T18:30:59.000Z
|
2021-05-17T18:30:59.000Z
|
from os.path import join
from pathlib import Path
def get_test_data_path():
return join(Path(__file__).absolute().parent, "data")
| 19.428571
| 57
| 0.75
| 21
| 136
| 4.52381
| 0.666667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.139706
| 136
| 6
| 58
| 22.666667
| 0.811966
| 0
| 0
| 0
| 0
| 0
| 0.029412
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| true
| 0
| 0.5
| 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
| 1
| 0
| 1
| 1
| 0
| 0
|
0
| 6
|
127cc638eadbe4dae82ded65db6fb41b8bfaa51b
| 306
|
py
|
Python
|
ucimlr/dataset.py
|
JKPawa/ucimlr
|
b7254414b3bb1bb1c178885cf50e49135c3f7f76
|
[
"MIT"
] | 5
|
2020-03-25T09:03:51.000Z
|
2021-08-30T13:42:19.000Z
|
ucimlr/dataset.py
|
JKPawa/ucimlr
|
b7254414b3bb1bb1c178885cf50e49135c3f7f76
|
[
"MIT"
] | null | null | null |
ucimlr/dataset.py
|
JKPawa/ucimlr
|
b7254414b3bb1bb1c178885cf50e49135c3f7f76
|
[
"MIT"
] | 1
|
2021-06-17T15:59:05.000Z
|
2021-06-17T15:59:05.000Z
|
import abc
class Dataset(abc.ABC):
def __len__(self):
return self.x.shape[0]
def __getitem__(self, i):
return self.x[i], self.y[i]
@property
def name(self):
return self.__class__.__name__
@property
def num_features(self):
return self.x.shape[1]
| 17
| 38
| 0.604575
| 43
| 306
| 3.906977
| 0.44186
| 0.238095
| 0.25
| 0.178571
| 0.238095
| 0
| 0
| 0
| 0
| 0
| 0
| 0.00905
| 0.277778
| 306
| 17
| 39
| 18
| 0.751131
| 0
| 0
| 0.166667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0.083333
| 0.333333
| 0.833333
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 6
|
129751e1eff2b9651edbd2de70a5a0acebdc703e
| 399
|
py
|
Python
|
edbgs_django/settings/develop.py
|
Athanasius/edbgs-mgr
|
1bb5d34730c15ea486c68d82ff8dac8620da2a68
|
[
"CC-BY-4.0"
] | 1
|
2022-02-09T07:12:50.000Z
|
2022-02-09T07:12:50.000Z
|
edbgs_django/settings/develop.py
|
Athanasius/edbgs-mgr
|
1bb5d34730c15ea486c68d82ff8dac8620da2a68
|
[
"CC-BY-4.0"
] | null | null | null |
edbgs_django/settings/develop.py
|
Athanasius/edbgs-mgr
|
1bb5d34730c15ea486c68d82ff8dac8620da2a68
|
[
"CC-BY-4.0"
] | null | null | null |
# flake8: noqa
from .base import *
# INSTALLED_APPS += ["debug_toolbar"]
# MIDDLEWARE.insert(0, "debug_toolbar.middleware.DebugToolbarMiddleware")
# ==============================================================================
# EMAIL SETTINGS
# ==============================================================================
# EMAIL_BACKEND = "django.core.mail.backends.console.EmailBackend"
| 26.6
| 80
| 0.451128
| 26
| 399
| 6.769231
| 0.846154
| 0.136364
| 0.25
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.005435
| 0.077694
| 399
| 14
| 81
| 28.5
| 0.472826
| 0.897243
| 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
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 6
|
12cac70cb0d605f5a00bc4b97eebef69fc588655
| 24,777
|
py
|
Python
|
gif-qa/main.py
|
fanchenyou/VideoQA
|
66cc4ccff3113595b7a7230b1cc73063e4382e27
|
[
"MIT"
] | 60
|
2019-04-10T02:39:24.000Z
|
2022-02-18T14:52:23.000Z
|
gif-qa/main.py
|
fanchenyou/VideoQA
|
66cc4ccff3113595b7a7230b1cc73063e4382e27
|
[
"MIT"
] | 6
|
2019-09-03T06:17:59.000Z
|
2021-09-12T21:46:03.000Z
|
gif-qa/main.py
|
fanchenyou/VideoQA
|
66cc4ccff3113595b7a7230b1cc73063e4382e27
|
[
"MIT"
] | 16
|
2019-04-10T07:01:48.000Z
|
2022-03-18T14:03:59.000Z
|
import argparse
import torch
import torch.nn as nn
import numpy as np
import os
from attention_module_lite import *
from make_tgif import DatasetTGIF
from util import AverageMeter
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
def main(args):
torch.manual_seed(1)
### add arguments ###
args.vc_dir = './data/Vocabulary'
args.df_dir = './data/dataset'
args.max_sequence_length = 35
args.model_name = args.task + args.feat_type
args.memory_type = '_mrm2s'
args.image_feature_net = 'concat'
args.layer = 'fc'
args.save_model_path = args.save_path + '%s_%s_%s%s' % (args.task,args.image_feature_net,args.layer,args.memory_type)
# Create model directory
if not os.path.exists(args.save_model_path):
os.makedirs(args.save_model_path)
######################################################################################
## This part of dataset code is adopted from
## https://github.com/YunseokJANG/tgif-qa/blob/master/code/gifqa/data_util/tgif.py
######################################################################################
print 'Start loading TGIF dataset'
train_dataset = DatasetTGIF(dataset_name='train',
image_feature_net=args.image_feature_net,
layer=args.layer,
max_length=args.max_sequence_length,
data_type=args.task,
dataframe_dir=args.df_dir,
vocab_dir=args.vc_dir)
train_dataset.load_word_vocabulary()
val_dataset = train_dataset.split_dataset(ratio=0.1)
val_dataset.share_word_vocabulary_from(train_dataset)
test_dataset = DatasetTGIF(dataset_name='test',
image_feature_net=args.image_feature_net,
layer=args.layer,
max_length=args.max_sequence_length,
data_type=args.task,
dataframe_dir=args.df_dir,
vocab_dir=args.vc_dir)
test_dataset.share_word_vocabulary_from(train_dataset)
print 'dataset lengths train/val/test %d/%d/%d' % (len(train_dataset),len(val_dataset),len(test_dataset))
#############################
# get video feature dimension
#############################
video_feature_dimension = train_dataset.get_video_feature_dimension()
feat_channel = video_feature_dimension[3]
feat_dim = video_feature_dimension[2]
text_embed_size = train_dataset.GLOVE_EMBEDDING_SIZE
answer_vocab_size = None
#############################
# get word vector dimension
#############################
word_matrix = train_dataset.word_matrix
voc_len = word_matrix.shape[0]
assert text_embed_size==word_matrix.shape[1]
#############################
# Parameters
#############################
SEQUENCE_LENGTH = args.max_sequence_length
VOCABULARY_SIZE = train_dataset.n_words
assert VOCABULARY_SIZE == voc_len
FEAT_DIM = train_dataset.get_video_feature_dimension()[1:]
train_iter = train_dataset.batch_iter(args.num_epochs, args.batch_size)
# Create model directory
if not os.path.exists(args.save_path):
os.makedirs(args.save_path)
if args.task=='Count':
# add L2 loss
criterion = nn.MSELoss(size_average=True).cuda()
elif args.task in ['Action','Trans']:
from embed_loss import MultipleChoiceLoss
criterion = MultipleChoiceLoss(num_option=5, margin=1, size_average=True).cuda()
elif args.task=='FrameQA':
# add classification loss
answer_vocab_size = len(train_dataset.ans2idx)
print('Vocabulary size', answer_vocab_size, VOCABULARY_SIZE)
criterion = nn.CrossEntropyLoss(size_average=True).cuda()
if args.memory_type=='_mrm2s':
rnn = AttentionTwoStream(args.task, feat_channel, feat_dim, text_embed_size, args.hidden_size,
voc_len, args.num_layers, word_matrix, answer_vocab_size = answer_vocab_size,
max_len=args.max_sequence_length)
else:
assert 1==2
rnn = rnn.cuda()
# to directly test, load pre-trained model, replace with your model to test your model
if args.test==1:
if args.task == 'Count':
rnn.load_state_dict(torch.load('./saved_models/Count_concat_fc_mrm2s/rnn-1300-l3.257-a27.942.pkl'))
elif args.task == 'Action':
rnn.load_state_dict(torch.load('./saved_models/Action_concat_fc_mrm2s/rnn-0800-l0.137-a84.663.pkl'))
elif args.task == 'Trans':
rnn.load_state_dict(torch.load('./saved_models/Trans_concat_fc_mrm2s/rnn-1500-l0.246-a78.068.pkl'))
elif args.task == 'FrameQA':
rnn.load_state_dict(torch.load('./saved_models/FrameQA_concat_fc_mrm2s/rnn-4200-l1.233-a69.361.pkl'))
else:
assert 1==2, 'Invalid task'
optimizer = torch.optim.Adam(rnn.parameters(), lr=args.learning_rate)
iter = 0
if args.task=='Count':
best_val_loss = 100.0
best_val_iter = 0.0
# this is a regression problem, predict a value from 1-10
for batch_chunk in train_iter:
if args.test==0:
video_features = torch.from_numpy(batch_chunk['video_features'].astype(np.float32)).cuda()
video_lengths = batch_chunk['video_lengths']
question_words = torch.from_numpy(batch_chunk['question_words'].astype(np.int64)).cuda()
question_lengths = batch_chunk['question_lengths']
answers = torch.from_numpy(batch_chunk['answer'].astype(np.float32)).cuda()
data_dict = {}
data_dict['video_features'] = video_features
data_dict['video_lengths'] = video_lengths
data_dict['question_words'] = question_words
data_dict['question_lengths'] = question_lengths
data_dict['answers'] = answers
outputs, targets, predictions = rnn(data_dict, 'Count')
loss = criterion(outputs, targets)
optimizer.zero_grad()
loss.backward()
optimizer.step()
acc = rnn.accuracy(predictions, targets.int())
print('Train %s iter %d, loss %.3f, acc %.2f' % (args.task,iter,loss.data,acc.item()))
if iter % 100==0:
rnn.eval()
with torch.no_grad():
if args.test == 0:
##### Validation ######
n_iter = len(val_dataset) / args.batch_size
losses = AverageMeter()
accuracy = AverageMeter()
iter_val = 0
for batch_chunk in val_dataset.batch_iter(1, args.batch_size, shuffle=False):
if iter_val % 10 == 0:
print('%d/%d' % (iter_val, n_iter))
iter_val += 1
video_features = torch.from_numpy(batch_chunk['video_features'].astype(np.float32)).cuda()
video_lengths = batch_chunk['video_lengths']
question_words = torch.from_numpy(batch_chunk['question_words'].astype(np.int64)).cuda()
question_lengths = batch_chunk['question_lengths']
answers = torch.from_numpy(batch_chunk['answer'].astype(np.float32)).cuda()
# print(question_words)
data_dict = {}
data_dict['video_features'] = video_features
data_dict['video_lengths'] = video_lengths
data_dict['question_words'] = question_words
data_dict['question_lengths'] = question_lengths
data_dict['answers'] = answers
outputs, targets, predictions = rnn(data_dict, 'Count')
loss = criterion(outputs, targets)
acc = rnn.accuracy(predictions, targets.int())
losses.update(loss.item(), video_features.size(0))
accuracy.update(acc.item(), video_features.size(0))
if best_val_loss > losses.avg:
best_val_loss = losses.avg
best_val_iter = iter
print('[Val] iter %d, loss %.3f, acc %.2f, best loss %.3f at iter %d' % (
iter, losses.avg, accuracy.avg, best_val_loss, best_val_iter))
torch.save(rnn.state_dict(), os.path.join(args.save_model_path, 'rnn-%04d-l%.3f-a%.3f.pkl' % (
iter, losses.avg, accuracy.avg)))
if 1 == 1:
###### Test ######
n_iter = len(test_dataset) / args.batch_size
losses = AverageMeter()
accuracy = AverageMeter()
iter_test = 0
for batch_chunk in test_dataset.batch_iter(1, args.batch_size, shuffle=False):
if iter_test % 10 == 0:
print('%d/%d' % (iter_test, n_iter))
iter_test+=1
video_features = torch.from_numpy(batch_chunk['video_features'].astype(np.float32)).cuda()
video_lengths = batch_chunk['video_lengths']
question_words = torch.from_numpy(batch_chunk['question_words'].astype(np.int64)).cuda()
question_lengths = batch_chunk['question_lengths']
answers = torch.from_numpy(batch_chunk['answer'].astype(np.float32)).cuda()
data_dict = {}
data_dict['video_features'] = video_features
data_dict['video_lengths'] = video_lengths
data_dict['question_words'] = question_words
data_dict['question_lengths'] = question_lengths
data_dict['answers'] = answers
outputs, targets, predictions = rnn(data_dict, 'Count')
loss = criterion(outputs, targets)
acc = rnn.accuracy(predictions, targets.int())
losses.update(loss.item(), video_features.size(0))
accuracy.update(acc.item(), video_features.size(0))
print('[Test] iter %d, loss %.3f, acc %.2f' % (iter,losses.avg,accuracy.avg))
if args.test==1:
exit()
rnn.train()
iter += 1
elif args.task in ['Action','Trans']:
best_val_acc = 0.0
best_val_iter = 0.0
# this is a multiple-choice problem, predict probability of each class
for batch_chunk in train_iter:
if args.test == 0:
video_features = torch.from_numpy(batch_chunk['video_features'].astype(np.float32)).cuda()
video_lengths = batch_chunk['video_lengths']
candidates = torch.from_numpy(batch_chunk['candidates'].astype(np.int64)).cuda()
candidate_lengths = batch_chunk['candidate_lengths']
answers = torch.from_numpy(batch_chunk['answer'].astype(np.int32)).cuda()
num_mult_choices = batch_chunk['num_mult_choices']
data_dict = {}
data_dict['video_features'] = video_features
data_dict['video_lengths'] = video_lengths
data_dict['candidates'] = candidates
data_dict['candidate_lengths'] = candidate_lengths
data_dict['answers'] = answers
data_dict['num_mult_choices'] = num_mult_choices
outputs, targets, predictions = rnn(data_dict, args.task)
loss = criterion(outputs, targets)
optimizer.zero_grad()
loss.backward()
optimizer.step()
acc = rnn.accuracy(predictions, targets.long())
print('Train %s iter %d, loss %.3f, acc %.2f' % (args.task,iter,loss.data,acc.item()))
if iter % 100==0:
rnn.eval()
with torch.no_grad():
if args.test == 0:
n_iter = len(val_dataset) / args.batch_size
losses = AverageMeter()
accuracy = AverageMeter()
iter_val = 0
for batch_chunk in val_dataset.batch_iter(1, args.batch_size, shuffle=False):
if iter_val % 10 == 0:
print('%d/%d' % (iter_val, n_iter))
iter_val += 1
video_features = torch.from_numpy(batch_chunk['video_features'].astype(np.float32)).cuda()
video_lengths = batch_chunk['video_lengths']
candidates = torch.from_numpy(batch_chunk['candidates'].astype(np.int64)).cuda()
candidate_lengths = batch_chunk['candidate_lengths']
answers = torch.from_numpy(batch_chunk['answer'].astype(np.int32)).cuda()
num_mult_choices = batch_chunk['num_mult_choices']
data_dict = {}
data_dict['video_features'] = video_features
data_dict['video_lengths'] = video_lengths
data_dict['candidates'] = candidates
data_dict['candidate_lengths'] = candidate_lengths
data_dict['answers'] = answers
data_dict['num_mult_choices'] = num_mult_choices
outputs, targets, predictions = rnn(data_dict, args.task)
loss = criterion(outputs, targets)
acc = rnn.accuracy(predictions, targets.long())
losses.update(loss.item(), video_features.size(0))
accuracy.update(acc.item(), video_features.size(0))
if best_val_acc < accuracy.avg:
best_val_acc = accuracy.avg
best_val_iter = iter
print('[Val] iter %d, loss %.3f, acc %.2f, best acc %.3f at iter %d' % (
iter, losses.avg, accuracy.avg, best_val_acc, best_val_iter))
torch.save(rnn.state_dict(), os.path.join(args.save_model_path, 'rnn-%04d-l%.3f-a%.3f.pkl' % (
iter, losses.avg, accuracy.avg)))
if 1==1:
n_iter = len(test_dataset) / args.batch_size
losses = AverageMeter()
accuracy = AverageMeter()
iter_test = 0
for batch_chunk in test_dataset.batch_iter(1, args.batch_size, shuffle=False):
if iter_test % 10 == 0:
print('%d/%d' % (iter_test, n_iter))
iter_test+=1
video_features = torch.from_numpy(batch_chunk['video_features'].astype(np.float32)).cuda()
video_lengths = batch_chunk['video_lengths']
candidates = torch.from_numpy(batch_chunk['candidates'].astype(np.int64)).cuda()
candidate_lengths = batch_chunk['candidate_lengths']
answers = torch.from_numpy(batch_chunk['answer'].astype(np.int32)).cuda()
num_mult_choices = batch_chunk['num_mult_choices']
#question_word_nums = batch_chunk['question_word_nums']
data_dict = {}
data_dict['video_features'] = video_features
data_dict['video_lengths'] = video_lengths
data_dict['candidates'] = candidates
data_dict['candidate_lengths'] = candidate_lengths
data_dict['answers'] = answers
data_dict['num_mult_choices'] = num_mult_choices
outputs, targets, predictions = rnn(data_dict, args.task)
loss = criterion(outputs, targets)
acc = rnn.accuracy(predictions, targets.long())
losses.update(loss.item(), video_features.size(0))
accuracy.update(acc.item(), video_features.size(0))
print('[Test] iter %d, loss %.3f, acc %.2f' % (iter,losses.avg,accuracy.avg))
if args.test == 1:
exit()
rnn.train()
iter += 1
elif args.task=='FrameQA':
best_val_acc = 0.0
best_val_iter = 0.0
# this is a multiple-choice problem, predict probability of each class
for batch_chunk in train_iter:
if args.test==0:
video_features = torch.from_numpy(batch_chunk['video_features'].astype(np.float32)).cuda()
video_lengths = batch_chunk['video_lengths']
question_words = torch.from_numpy(batch_chunk['question_words'].astype(np.int64)).cuda()
question_lengths = batch_chunk['question_lengths']
answers = torch.from_numpy(batch_chunk['answer'].astype(np.int64)).cuda()
data_dict = {}
data_dict['video_features'] = video_features
data_dict['video_lengths'] = video_lengths
data_dict['question_words'] = question_words
data_dict['question_lengths'] = question_lengths
data_dict['answers'] = answers
outputs, targets, predictions = rnn(data_dict, args.task)
loss = criterion(outputs, targets)
optimizer.zero_grad()
loss.backward()
optimizer.step()
acc = rnn.accuracy(predictions, targets)
print('Train %s iter %d, loss %.3f, acc %.2f' % (args.task,iter,loss.data,acc.item()))
if iter % 100==0:
rnn.eval()
with torch.no_grad():
if args.test == 0:
losses = AverageMeter()
accuracy = AverageMeter()
n_iter = len(val_dataset) / args.batch_size
iter_val = 0
for batch_chunk in val_dataset.batch_iter(1, args.batch_size, shuffle=False):
if iter_val % 10 == 0:
print('%d/%d' % (iter_val, n_iter))
iter_val += 1
video_features = torch.from_numpy(batch_chunk['video_features'].astype(np.float32)).cuda()
video_lengths = batch_chunk['video_lengths']
question_words = torch.from_numpy(batch_chunk['question_words'].astype(np.int64)).cuda()
question_lengths = batch_chunk['question_lengths']
answers = torch.from_numpy(batch_chunk['answer'].astype(np.int64)).cuda()
data_dict = {}
data_dict['video_features'] = video_features
data_dict['video_lengths'] = video_lengths
data_dict['question_words'] = question_words
data_dict['question_lengths'] = question_lengths
data_dict['answers'] = answers
outputs, targets, predictions = rnn(data_dict, args.task)
loss = criterion(outputs, targets)
acc = rnn.accuracy(predictions, targets)
losses.update(loss.item(), video_features.size(0))
accuracy.update(acc.item(), video_features.size(0))
if best_val_acc < accuracy.avg:
best_val_acc = accuracy.avg
best_val_iter = iter
print('[Val] iter %d, loss %.3f, acc %.2f, best acc %.3f at iter %d' % (
iter, losses.avg, accuracy.avg, best_val_acc, best_val_iter))
torch.save(rnn.state_dict(), os.path.join(args.save_model_path, 'rnn-%04d-l%.3f-a%.3f.pkl' % (
iter, losses.avg, accuracy.avg)))
if 1==1:
losses = AverageMeter()
accuracy = AverageMeter()
n_iter = len(test_dataset) / args.batch_size
iter_test = 0
for batch_chunk in test_dataset.batch_iter(1, args.batch_size, shuffle=False):
if iter_test % 10 == 0:
print('%d/%d' % (iter_test, n_iter))
iter_test+=1
video_features = torch.from_numpy(batch_chunk['video_features'].astype(np.float32)).cuda()
video_lengths = batch_chunk['video_lengths']
question_words = torch.from_numpy(batch_chunk['question_words'].astype(np.int64)).cuda()
question_lengths = batch_chunk['question_lengths']
answers = torch.from_numpy(batch_chunk['answer'].astype(np.int64)).cuda()
data_dict = {}
data_dict['video_features'] = video_features
data_dict['video_lengths'] = video_lengths
data_dict['question_words'] = question_words
data_dict['question_lengths'] = question_lengths
data_dict['answers'] = answers
outputs, targets, predictions = rnn(data_dict, args.task)
loss = criterion(outputs, targets)
acc = rnn.accuracy(predictions, targets)
losses.update(loss.item(), video_features.size(0))
accuracy.update(acc.item(), video_features.size(0))
print('[Test] iter %d, loss %.3f, acc %.2f' % (iter,losses.avg,accuracy))
if args.test==1:
exit()
rnn.train()
iter += 1
if __name__ == '__main__':
parser = argparse.ArgumentParser()
parser.add_argument('--test', type=int , default=0,
help='1-directly test, 0-normal training')
parser.add_argument('--task', type=str , default='Count',
help='[Count, Action, FrameQA, Trans]')
parser.add_argument('--feat_type', type=str , default='SpTp',
help='[C3D, Resnet, Concat, Tp, Sp, SpTp]')
parser.add_argument('--save_path', type=str, default='./saved_models/' ,
help='path for saving trained models')
parser.add_argument('--hidden_size', type=int , default=512 ,
help='dimension of lstm hidden states')
parser.add_argument('--num_layers', type=int , default=2,
help='number of layers in lstm')
parser.add_argument('--num_epochs', type=int, default=1000)
parser.add_argument('--batch_size', type=int, default=32)
parser.add_argument('--num_workers', type=int, default=4)
parser.add_argument('--learning_rate', type=float, default=0.001)
parser.add_argument('--momentum', default=0.9, type=float, help='momentum')
parser.add_argument('--weight_decay', default=1e-4, type=float, help='weight decay (default: 1e-4)')
args = parser.parse_args()
print(args)
main(args)
| 46.31215
| 121
| 0.516326
| 2,554
| 24,777
| 4.752153
| 0.103759
| 0.043503
| 0.031144
| 0.042267
| 0.750515
| 0.73865
| 0.729999
| 0.709236
| 0.692181
| 0.688144
| 0
| 0.018247
| 0.369617
| 24,777
| 535
| 122
| 46.31215
| 0.758819
| 0.026517
| 0
| 0.751323
| 0
| 0.007937
| 0.110418
| 0.01395
| 0
| 0
| 0
| 0
| 0.010582
| 0
| null | null | 0
| 0.02381
| null | null | 0.050265
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 6
|
12d406ceb5291135ec640751c91f773194d64542
| 19
|
py
|
Python
|
demos/gobang/__init__.py
|
YblBarry/xshinnosuke
|
fe71379140910ec073d54fe01f82f8f28f113a98
|
[
"MIT"
] | 290
|
2020-07-06T02:13:12.000Z
|
2021-01-04T14:23:39.000Z
|
demos/gobang/__init__.py
|
YblBarry/xshinnosuke
|
fe71379140910ec073d54fe01f82f8f28f113a98
|
[
"MIT"
] | 1
|
2020-12-03T11:11:48.000Z
|
2020-12-03T11:11:48.000Z
|
demos/gobang/__init__.py
|
E1eveNn/xshinnosuke
|
69da91e0ea5042437edfc31c0e6ff9ef394c6cc9
|
[
"MIT"
] | 49
|
2020-07-16T00:27:47.000Z
|
2020-11-26T03:03:14.000Z
|
from .ui import go
| 9.5
| 18
| 0.736842
| 4
| 19
| 3.5
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.210526
| 19
| 1
| 19
| 19
| 0.933333
| 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
| 1
| 0
|
0
| 6
|
12d7c33beddb2139a6f7fe8b1d0c10b7e1783b45
| 41
|
py
|
Python
|
src/td_sequential_calculator/__init__.py
|
onuratakan/td_sequential_calculator
|
e0e52a96d4b06b82d8f5fb298e8c3877a259ddca
|
[
"MIT"
] | 3
|
2021-08-22T07:59:07.000Z
|
2022-03-24T02:09:18.000Z
|
src/td_sequential_calculator/__init__.py
|
onuratakan/td_sequential_calculator
|
e0e52a96d4b06b82d8f5fb298e8c3877a259ddca
|
[
"MIT"
] | null | null | null |
src/td_sequential_calculator/__init__.py
|
onuratakan/td_sequential_calculator
|
e0e52a96d4b06b82d8f5fb298e8c3877a259ddca
|
[
"MIT"
] | null | null | null |
from .td_sequential_calculator import TDS
| 41
| 41
| 0.902439
| 6
| 41
| 5.833333
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.073171
| 41
| 1
| 41
| 41
| 0.921053
| 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
| 1
| 0
|
0
| 6
|
12d9ed0a0f9ebe759cd29dac261acb2cb8cf8ef6
| 63
|
py
|
Python
|
test_module.py
|
Hexotical/Astr119Hw2
|
37a4539277506fa874e17ab33b798ed97f5a84a4
|
[
"MIT"
] | null | null | null |
test_module.py
|
Hexotical/Astr119Hw2
|
37a4539277506fa874e17ab33b798ed97f5a84a4
|
[
"MIT"
] | 1
|
2020-10-15T04:53:37.000Z
|
2020-10-16T22:50:42.000Z
|
test_module.py
|
Hexotical/Astr119Hw2
|
37a4539277506fa874e17ab33b798ed97f5a84a4
|
[
"MIT"
] | null | null | null |
def hello_world():
print("Hello world in the test module")
| 31.5
| 43
| 0.698413
| 10
| 63
| 4.3
| 0.8
| 0.465116
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.190476
| 63
| 2
| 43
| 31.5
| 0.843137
| 0
| 0
| 0
| 0
| 0
| 0.47619
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| true
| 0
| 0
| 0
| 0.5
| 0.5
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 1
|
0
| 6
|
420bc0bc743fb65673e70cddcc7d95a8f2c8f86e
| 1,662
|
py
|
Python
|
webTrigger.py
|
b1scuit-thi3f/jimiPlugin-webTrigger
|
7f9acb2401efa94f0518eca475f05c00d902ca85
|
[
"Apache-2.0"
] | 2
|
2021-07-26T15:02:18.000Z
|
2021-09-21T13:01:15.000Z
|
webTrigger.py
|
b1scuit-thi3f/jimiPlugin-webTrigger
|
7f9acb2401efa94f0518eca475f05c00d902ca85
|
[
"Apache-2.0"
] | 7
|
2021-09-20T14:03:22.000Z
|
2021-12-07T19:07:58.000Z
|
webTrigger.py
|
b1scuit-thi3f/jimiPlugin-webTrigger
|
7f9acb2401efa94f0518eca475f05c00d902ca85
|
[
"Apache-2.0"
] | null | null | null |
import jimi
class _webTrigger(jimi.plugin._plugin):
version = 0.13
def install(self):
jimi.model.registerModel("webTriggerOutput","_webTriggerOutput","_document","plugins.webTrigger.models.webTrigger")
jimi.model.registerModel("webTrigger","_webTrigger","_trigger","plugins.webTrigger.models.trigger")
jimi.model.registerModel("webTriggerAddOutput","_webTriggerAddOutput","_action","plugins.webTrigger.models.action")
jimi.model.registerModel("webTriggerEvent","_webTriggerEvent","_document","plugins.webTrigger.models.webTrigger")
return True
def uninstall(self):
jimi.model.deregisterModel("webTriggerOutput","_webTriggerOutput","_document","plugins.webTrigger.models.webTrigger")
jimi.model.deregisterModel("webTrigger","_webTrigger","_trigger","plugins.webTrigger.models.trigger")
jimi.model.deregisterModel("webTriggerAddOutput","_webTriggerAddOutput","_action","plugins.webTrigger.models.action")
jimi.model.deregisterModel("webTriggerEvent","_webTriggerEvent","_document","plugins.webTrigger.models.webTrigger")
return True
def upgrade(self,LatestPluginVersion):
if self.version < 0.11:
jimi.model.registerModel("webTriggerOutput","_webTriggerOutput","_document","plugins.webTrigger.models.webTrigger")
jimi.model.registerModel("webTriggerAddOutput","_webTriggerAddOutput","_action","plugins.webTrigger.models.action")
if self.version < 0.12:
jimi.model.registerModel("webTriggerEvent","_webTriggerEvent","_document","plugins.webTrigger.models.webTrigger")
return True
| 61.555556
| 128
| 0.731047
| 146
| 1,662
| 8.157534
| 0.205479
| 0.083123
| 0.212427
| 0.156171
| 0.824517
| 0.824517
| 0.824517
| 0.824517
| 0.824517
| 0.583543
| 0
| 0.006259
| 0.134777
| 1,662
| 26
| 129
| 63.923077
| 0.821975
| 0
| 0
| 0.409091
| 0
| 0
| 0.501222
| 0.231051
| 0
| 0
| 0
| 0
| 0
| 1
| 0.136364
| false
| 0
| 0.045455
| 0
| 0.409091
| 0
| 0
| 0
| 0
| null | 0
| 1
| 0
| 1
| 1
| 1
| 1
| 1
| 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
| 6
|
4210bec1bb8297e6e8473aa2ae6a246e298e0452
| 195
|
py
|
Python
|
morph/base.py
|
scupid-admin/morph-python-sdk
|
b6d528658dcf32b3d39916355a19f5f585f9e54e
|
[
"MIT"
] | 1
|
2019-09-25T08:25:22.000Z
|
2019-09-25T08:25:22.000Z
|
morph/base.py
|
scupid-admin/Custom-Code-Python
|
b6d528658dcf32b3d39916355a19f5f585f9e54e
|
[
"MIT"
] | null | null | null |
morph/base.py
|
scupid-admin/Custom-Code-Python
|
b6d528658dcf32b3d39916355a19f5f585f9e54e
|
[
"MIT"
] | null | null | null |
class MorphSerializable:
def __init__(self, properties_to_serialize, property_dict):
self.property_dict = property_dict
self.properties_to_serialize = properties_to_serialize
| 39
| 63
| 0.784615
| 22
| 195
| 6.363636
| 0.454545
| 0.257143
| 0.45
| 0.357143
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.164103
| 195
| 4
| 64
| 48.75
| 0.858896
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0
| 0
| 0.5
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 6
|
421f1246cef1f24011e81b1a15e4bfaed0a0734a
| 219
|
py
|
Python
|
docs/sections/section2/solutions/sol5.py
|
lingcog/2019-CS109A
|
f1eaa62976fe989c3ad3f3ab4b8dd5d71574a2c3
|
[
"MIT"
] | 442
|
2019-06-11T06:47:00.000Z
|
2022-03-12T11:19:31.000Z
|
docs/sections/section2/solutions/sol5.py
|
lelandroberts97/2019-CS109A
|
976da6b65c26fd3c5db285cbf9ec9cde92751a70
|
[
"MIT"
] | 3
|
2019-09-23T17:32:51.000Z
|
2022-02-09T06:06:00.000Z
|
docs/sections/section2/solutions/sol5.py
|
lelandroberts97/2019-CS109A
|
976da6b65c26fd3c5db285cbf9ec9cde92751a70
|
[
"MIT"
] | 486
|
2019-06-17T05:01:07.000Z
|
2022-03-13T20:30:44.000Z
|
print('The training data length is the', 100*len(train_data)/len(bikeshare),'% of the total dataset length.')
print('The testing data length is the', 100*len(test_data)/len(bikeshare),'% of the total dataset length.')
| 73
| 109
| 0.739726
| 36
| 219
| 4.444444
| 0.416667
| 0.1
| 0.15
| 0.1875
| 0.75
| 0.75
| 0.4875
| 0.4875
| 0
| 0
| 0
| 0.030928
| 0.114155
| 219
| 2
| 110
| 109.5
| 0.793814
| 0
| 0
| 0
| 0
| 0
| 0.557078
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
|
0
| 6
|
42237e1c0c416415e3fc9f8d1e80662b86b40073
| 17,064
|
py
|
Python
|
bak/layer_crxb_ver.py
|
fightingnoble/pytorch_tutorial
|
671e5ff5bf6c123ff33e20b0f31fc91a67869244
|
[
"Apache-2.0"
] | null | null | null |
bak/layer_crxb_ver.py
|
fightingnoble/pytorch_tutorial
|
671e5ff5bf6c123ff33e20b0f31fc91a67869244
|
[
"Apache-2.0"
] | null | null | null |
bak/layer_crxb_ver.py
|
fightingnoble/pytorch_tutorial
|
671e5ff5bf6c123ff33e20b0f31fc91a67869244
|
[
"Apache-2.0"
] | null | null | null |
import math
import torch
import torch.nn as nn
import torch.nn.functional as F
from .adc import _adc
from .dac import _quantize_dac
from .w2g import w2g
from .crossbarlayer import CrossbarLayer
quantize_input = _quantize_dac.apply
# quantize_weight = _quantize_dac.apply
adc = _adc.apply
class crxb_Conv2d(nn.Conv2d):
"""
This is the custom conv layer that takes non-ideal effects of ReRAM crossbar into account. It has three functions.
1) emulate the DAC at the input of the crossbar and qnantize the input and weight tensors.
2) map the quantized tensor to the ReRAM crossbar arrays and include non-ideal effects such as noise, ir drop, and
SAF.
3) emulate the ADC at the output of he crossbar and convert the current back to digital number
to the input of next layers
Args:
scaler_dw(float): weight quantization scaler to reduce the influence of the ir drop.
crxb_size(int): size of the crossbar.
quantize(int): quantization resolution of the crossbar.
"""
def __init__(self, in_channels, out_channels, kernel_size,
stride=1, padding=0, dilation=1, groups=1,
bias=True, crxb_size=64, scaler_dw=1, **crxb_cfg):
super(crxb_Conv2d, self).__init__(in_channels, out_channels, kernel_size,
stride, padding, dilation, groups, bias)
assert self.groups == 1, "currently not support grouped convolution for custom conv"
# self.ir_drop = ir_drop
# self.device = device
################## Crossbar conversion #############################
self.crxb_size = crxb_size
# self.enable_ec_SAF = enable_ec_SAF
# self.nchout_index = nn.Parameter(torch.arange(self.out_channels), requires_grad=False)
self.register_buffer('nchout_index', torch.arange(self.out_channels))
weight_flatten_rows = self.in_channels * torch.cumprod(torch.tensor(self.kernel_size), 0)[-1].item()
weight_flatten_cols = self.out_channels
self.crxb_row, self.crxb_row_pads = self.num_pad(
weight_flatten_rows, self.crxb_size)
self.crxb_col, self.crxb_col_pads = self.num_pad(
weight_flatten_cols, self.crxb_size)
# p3d = (0, 1, 2, 1, 3, 3) # pad by (0, 1), (2, 1), and (3, 3)
self.w_pad = [0, self.crxb_row_pads, 0, self.crxb_col_pads]
self.input_pad = [0, 0, 0, self.crxb_row_pads]
weight_crxb_shape = torch.Size((self.crxb_col, self.crxb_row,
self.crxb_size, self.crxb_size))
################# Hardware conversion ##############################
# weight and input levels
# Q(x) = (2^{k−1} − 1)* round((2^{k−1} − 1) * x)
# self.n_lvl = 2 ** quantize
# self.h_lvl = (self.n_lvl - 2) / 2
# ReRAM cells
# 7-bit precisionis achievable on state-of-the-art RRAM device [9]
# [9] High precision tuning of state for memristive devices by
# adaptable variation-tolerant algorithm
# self.Gmax = gmax # max conductance
# self.Gmin = gmin # min conductance
# self.delta_g = (self.Gmax - self.Gmin) / (2 ** 7) # conductance step
# self.crxb = crxb_layer(ir_drop, device, gmax, gmin, gwire, gload, scaler_dw, vdd, enable_noise,
# freq, temp , crxb_size, quantize, enable_SAF, enable_ec_SAF)
self.crxb = CrossbarLayer(crxb_size=crxb_size, **crxb_cfg)
self.w2g = w2g(self.crxb.delta_g, Gmin=self.crxb.Gmin, G_SA0=self.crxb.Gmax,
G_SA1=self.crxb.Gmin, weight_shape=weight_crxb_shape, enable_SAF=self.crxb.enable_SAF)
# self.Gwire = gwire
# self.Gload = gload
# DAC
# self.Vdd = vdd # unit: volt
# self.delta_v = self.Vdd / (self.n_lvl - 1)
# self.delta_in_sum = nn.Parameter(torch.Tensor(1), requires_grad=False)
# self.delta_out_sum = nn.Parameter(torch.Tensor(1), requires_grad=False)
# self.counter = nn.Parameter(torch.Tensor(1), requires_grad=False)
self.register_buffer('delta_in_sum', torch.zeros(1))
self.register_buffer('delta_out_sum', torch.zeros(1))
self.register_buffer('counter', torch.zeros(1))
self.scaler_dw = scaler_dw
self.delta_w = 0 # self.weight.abs().max() / self.h_lvl * self.scaler_dw
self.delta_x = 0 # self.delta_in_sum.data / self.counter.data
self.h_out = None
self.w_out = None
def num_pad(self, source, target):
crxb_index = math.ceil(source / target)
num_padding = crxb_index * target - source
return crxb_index, num_padding
# Mapping the weights to the crossbar array
def mapping(self, input):
# 1. input data and weight quantization
# delta_x delta_w
with torch.no_grad():
self.delta_w = self.weight.abs().max() / self.crxb.h_lvl * self.scaler_dw
# trainable delta_x
if self.training:
self.counter.data += 1
self.delta_x = input.abs().max() / self.crxb.h_lvl
self.delta_in_sum.data += self.delta_x
else:
self.delta_x = self.delta_in_sum.data / self.counter.data
input_quan, weight_quan = self.crxb.quantize(input, self.delta_x, self.weight, self.delta_w)
# 2. Perform the computation between input voltage and weight conductance
# compute output feature size
if self.h_out is None and self.w_out is None:
self.h_out = int(
(input.shape[2] - self.kernel_size[0] + 2 * self.padding[0]) / self.stride[0] + 1)
self.w_out = int(
(input.shape[3] - self.kernel_size[0] + 2 * self.padding[0]) / self.stride[0] + 1)
num_block = self.h_out * self.w_out
block_size = input.shape[1] * torch.cumprod(torch.tensor(self.kernel_size), 0)[-1]
pad_block_size = block_size + self.input_pad[2] + self.input_pad[3]
# 2.1 flatten and unfold the weight and input
input_unfold = F.unfold(input_quan, kernel_size=self.kernel_size[0],
dilation=self.dilation, padding=self.padding,
stride=self.stride)
weight_flatten = weight_quan.view(self.out_channels, -1)
# 2.2. add paddings
input_padded = F.pad(input_unfold, self.input_pad,
mode='constant', value=0)
weight_padded = F.pad(weight_flatten, self.w_pad,
mode='constant', value=0)
# 2.3. reshape to crxb size
input_crxb = input_padded.view(input.shape[0], 1, self.crxb_row,
self.crxb_size, num_block)
weight_crxb = weight_padded.view(self.crxb_col, self.crxb_size,
self.crxb_row, self.crxb_size).transpose(1, 2)
# convert the floating point weight into conductance pair values
G_crxb = self.w2g(weight_crxb)
return input_crxb, G_crxb
def forward(self, input):
assert input.dim() == 4
# 1. input data and weight quantization
input_crxb, G_crxb = self.mapping(input)
# 2. Perform the computation between input voltage and weight conductance
# 2.1-2.3 Mapping
# 2.4. compute matrix multiplication
G_crxb = self.crxb.noise_injection(input_crxb, G_crxb)
# this block is to calculate the ir drop of the crossbar
output_crxb = self.crxb.solve_crxb(input_crxb, G_crxb)
# 3. perform ADC operation (i.e., current to digital conversion)
# input.shape[0], self.crxb_col, self.crxb_row,
# self.crxb_size, self.num_block
with torch.no_grad():
if self.training:
self.delta_i = output_crxb.abs().max() / (self.crxb.h_lvl)
self.delta_out_sum.data += self.delta_i
else:
self.delta_i = self.delta_out_sum.data / self.counter.data
self.delta_y = self.delta_w * self.delta_x * \
self.delta_i / (self.crxb.delta_v * self.crxb.delta_g)
# print('adc LSB ration:', self.delta_i/self.max_i_LSB)
output_adc = self.crxb.output_convet(output_crxb, self.delta_i, self.delta_y)
if self.w2g.enable_SAF:
if self.enable_ec_SAF:
G_pos_diff, G_neg_diff = self.w2g.error_compensation()
ec_scale = self.delta_y / self.delta_i
output_adc += (torch.matmul(G_pos_diff, input_crxb)
- torch.matmul(G_neg_diff, input_crxb)) * ec_scale
output_sum = torch.sum(output_adc, dim=2)
# input.shape[0], self.crxb_col,
# self.crxb_size, self.num_block
output = output_sum.view(input.shape[0],
output_sum.shape[1] * output_sum.shape[2],
self.h_out,
self.w_out).index_select(dim=1, index=self.nchout_index) # remove the padded columns
if self.bias is not None:
output += self.bias.unsqueeze(1).unsqueeze(1)
return output
def _reset_delta(self):
self.delta_in_sum.data[0] = 0
self.delta_out_sum.data[0] = 0
self.counter.data[0] = 0
class crxb_Linear(nn.Linear):
"""
This is the custom linear layer that takes non-ideal effects of ReRAM crossbar into account. It has three functions.
1) emulate the DAC at the input of the crossbar and qnantize the input and weight tensors.
2) map the quantized tensor to the ReRAM crossbar arrays and include non-ideal effects such as noise, ir drop, and
SAF.
3) emulate the ADC at the output of he crossbar and convert the current back to digital number
to the input of next layers
Args:
scaler_dw(float): weight quantization scaler to reduce the influence of the ir drop.
crxb_size(int): size of the crossbar.
quantize(int): quantization resolution of the crossbar.
"""
def __init__(self, in_features, out_features,
bias=True, crxb_size=64, scaler_dw=1, **crxb_cfg):
super(crxb_Linear, self).__init__(in_features, out_features, bias)
# self.ir_drop = ir_drop
# self.device = device
################## Crossbar conversion #############################
self.crxb_size = crxb_size
# self.enable_ec_SAF = enable_ec_SAF
# self.out_index = nn.Parameter(torch.arange(out_features), requires_grad=False)
self.register_buffer('out_index', torch.arange(out_features))
self.crxb_row, self.crxb_row_pads = self.num_pad(
self.weight.shape[1], self.crxb_size)
self.crxb_col, self.crxb_col_pads = self.num_pad(
self.weight.shape[0], self.crxb_size)
# p3d = (0, 1, 2, 1, 3, 3) # pad by (0, 1), (2, 1), and (3, 3)
self.w_pad = [0, self.crxb_row_pads, 0, self.crxb_col_pads]
self.input_pad = [0, self.crxb_row_pads]
weight_crxb_shape = torch.Size((self.crxb_col, self.crxb_row,
self.crxb_size, self.crxb_size))
################# Hardware conversion ##############################
# weight and input levels
# Q(x) = (2^{k−1} − 1)* round((2^{k−1} − 1) * x)
# self.n_lvl = 2 ** quantize
# self.h_lvl = (self.n_lvl - 2) / 2
# ReRAM cells
# 7-bit precisionis achievable on state-of-the-art RRAM device [9]
# [9] High precision tuning of state for memristive devices by
# adaptable variation-tolerant algorithm
# self.Gmax = gmax # max conductance
# self.Gmin = gmin # min conductance
# self.delta_g = (self.Gmax - self.Gmin) / (2 ** 7) # conductance step
# self.crxb = crxb_layer(ir_drop, device, gmax, gmin, gwire, gload, scaler_dw, vdd, enable_noise,
# freq, temp , crxb_size, quantize, enable_SAF, enable_ec_SAF)
self.crxb = CrossbarLayer(crxb_size=crxb_size, **crxb_cfg)
self.w2g = w2g(self.crxb.delta_g, Gmin=self.crxb.Gmin, G_SA0=self.crxb.Gmax,
G_SA1=self.crxb.Gmin, weight_shape=weight_crxb_shape, enable_SAF=self.crxb.enable_SAF)
# self.Gwire = gwire
# self.Gload = gload
# DAC
# self.Vdd = vdd # unit: volt
# self.delta_v = self.Vdd / (self.n_lvl - 1)
# self.delta_in_sum = nn.Parameter(torch.Tensor(1), requires_grad=False)
# self.delta_out_sum = nn.Parameter(torch.Tensor(1), requires_grad=False)
# self.counter = nn.Parameter(torch.Tensor(1), requires_grad=False)
self.register_buffer('delta_in_sum', torch.zeros(1))
self.register_buffer('delta_out_sum', torch.zeros(1))
self.register_buffer('counter', torch.zeros(1))
self.scaler_dw = scaler_dw
self.delta_w = 0 # self.weight.abs().max() / self.h_lvl * self.scaler_dw
self.delta_x = 0 # self.delta_in_sum.data / self.counter.data
def num_pad(self, source, target):
crxb_index = math.ceil(source / target)
num_padding = crxb_index * target - source
return crxb_index, num_padding
# Mapping the weights to the crossbar array
def mapping(self, input):
# 1. input data and weight quantization
# delta_x delta_w
with torch.no_grad():
self.delta_w = self.weight.abs().max() / self.crxb.h_lvl * self.scaler_dw
# trainable delta_x
if self.training:
self.counter.data += 1
self.delta_x = input.abs().max() / self.crxb.h_lvl
self.delta_in_sum.data += self.delta_x
else:
self.delta_x = self.delta_in_sum.data / self.counter.data
input_quan, weight_quan = self.crxb.quantize(input, self.delta_x, self.weight, self.delta_w)
# 2. Perform the computation between input voltage and weight conductance
# 2.1. skip the input unfold and weight flatten for fully-connected layers
# 2.2. add padding
input_padded = F.pad(input_quan, self.input_pad,
mode='constant', value=0)
weight_padded = F.pad(weight_quan, self.w_pad,
mode='constant', value=0)
# 2.3. reshape
input_crxb = input_padded.view(input.shape[0], 1, self.crxb_row,
self.crxb_size, 1)
weight_crxb = weight_padded.view(self.crxb_col, self.crxb_size,
self.crxb_row, self.crxb_size).transpose(1, 2)
# convert the floating point weight into conductance pair values
G_crxb = self.w2g(weight_crxb)
return input_crxb, G_crxb
def forward(self, input):
assert input.dim() == 2
# 1. input data and weight quantization
input_crxb, G_crxb = self.mapping(input)
# 2. Perform the computation between input voltage and weight conductance
# 2.1-2.3 Mapping
# 2.4. compute matrix multiplication
G_crxb = self.crxb.noise_injection(input_crxb, G_crxb)
# this block is to calculate the ir drop of the crossbar
output_crxb = self.crxb.solve_crxb(input_crxb, G_crxb)
# 3. perform ADC operation (i.e., current to digital conversion)
# input.shape[0], self.crxb_col, self.crxb_row,
# self.crxb_size, self.num_block
with torch.no_grad():
if self.training:
self.delta_i = output_crxb.abs().max() / (self.crxb.h_lvl)
self.delta_out_sum.data += self.delta_i
else:
self.delta_i = self.delta_out_sum.data / self.counter.data
self.delta_y = self.delta_w * self.delta_x * \
self.delta_i / (self.crxb.delta_v * self.crxb.delta_g)
# print('adc LSB ration:', self.delta_i/self.max_i_LSB)
output_adc = self.crxb.output_convet(output_crxb, self.delta_i, self.delta_y)
if self.w2g.enable_SAF:
if self.enable_ec_SAF:
G_pos_diff, G_neg_diff = self.w2g.error_compensation()
ec_scale = self.delta_y / self.delta_i
output_adc += (torch.matmul(G_pos_diff, input_crxb)
- torch.matmul(G_neg_diff, input_crxb)) * ec_scale
output_sum = torch.sum(output_adc, dim=2).squeeze(dim=3)
# input.shape[0], self.crxb_col,
# self.crxb_size, self.num_block
output = output_sum.view(input.shape[0],
output_sum.shape[1] * output_sum.shape[2]
).index_select(dim=1, index=self.out_index) # remove padded columns
if self.bias is not None:
output += self.bias
return output
def _reset_delta(self):
self.delta_in_sum.data[0] = 0
self.delta_out_sum.data[0] = 0
self.counter.data[0] = 0
| 46.750685
| 120
| 0.60572
| 2,384
| 17,064
| 4.131292
| 0.104866
| 0.066606
| 0.024368
| 0.01523
| 0.881714
| 0.863539
| 0.845263
| 0.834907
| 0.834907
| 0.826988
| 0
| 0.017932
| 0.284283
| 17,064
| 364
| 121
| 46.879121
| 0.787849
| 0.333861
| 0
| 0.677419
| 0
| 0
| 0.015866
| 0
| 0
| 0
| 0
| 0
| 0.016129
| 1
| 0.053763
| false
| 0
| 0.043011
| 0
| 0.139785
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 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
| 6
|
42ac102bffe9e75f79f2c0d245418265e8a95527
| 110,329
|
py
|
Python
|
torchslide/bin/multiresolutionimageinterface.py
|
arquolo/torchslide-bin
|
10f0747ee6815d9fcd19647e7b4bbabd5541e465
|
[
"MIT"
] | 1
|
2019-07-13T08:45:44.000Z
|
2019-07-13T08:45:44.000Z
|
torchslide/bin/multiresolutionimageinterface.py
|
arquolo/torchslide-bin
|
10f0747ee6815d9fcd19647e7b4bbabd5541e465
|
[
"MIT"
] | null | null | null |
torchslide/bin/multiresolutionimageinterface.py
|
arquolo/torchslide-bin
|
10f0747ee6815d9fcd19647e7b4bbabd5541e465
|
[
"MIT"
] | null | null | null |
# This file was automatically generated by SWIG (http://www.swig.org).
# Version 3.0.12
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info as _swig_python_version_info
if _swig_python_version_info >= (2, 7, 0):
def swig_import_helper():
import importlib
pkg = __name__.rpartition('.')[0]
mname = '.'.join((pkg, '_multiresolutionimageinterface')).lstrip('.')
try:
return importlib.import_module(mname)
except ImportError:
return importlib.import_module('_multiresolutionimageinterface')
_multiresolutionimageinterface = swig_import_helper()
del swig_import_helper
elif _swig_python_version_info >= (2, 6, 0):
def swig_import_helper():
from os.path import dirname
import imp
fp = None
try:
fp, pathname, description = imp.find_module('_multiresolutionimageinterface', [dirname(__file__)])
except ImportError:
import _multiresolutionimageinterface
return _multiresolutionimageinterface
try:
_mod = imp.load_module('_multiresolutionimageinterface', fp, pathname, description)
finally:
if fp is not None:
fp.close()
return _mod
_multiresolutionimageinterface = swig_import_helper()
del swig_import_helper
else:
import _multiresolutionimageinterface
del _swig_python_version_info
try:
_swig_property = property
except NameError:
pass # Python < 2.2 doesn't have 'property'.
try:
import builtins as __builtin__
except ImportError:
import __builtin__
def _swig_setattr_nondynamic(self, class_type, name, value, static=1):
if (name == "thisown"):
return self.this.own(value)
if (name == "this"):
if type(value).__name__ == 'SwigPyObject':
self.__dict__[name] = value
return
method = class_type.__swig_setmethods__.get(name, None)
if method:
return method(self, value)
if (not static):
if _newclass:
object.__setattr__(self, name, value)
else:
self.__dict__[name] = value
else:
raise AttributeError("You cannot add attributes to %s" % self)
def _swig_setattr(self, class_type, name, value):
return _swig_setattr_nondynamic(self, class_type, name, value, 0)
def _swig_getattr(self, class_type, name):
if (name == "thisown"):
return self.this.own()
method = class_type.__swig_getmethods__.get(name, None)
if method:
return method(self)
raise AttributeError("'%s' object has no attribute '%s'" % (class_type.__name__, name))
def _swig_repr(self):
try:
strthis = "proxy of " + self.this.__repr__()
except __builtin__.Exception:
strthis = ""
return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
try:
_object = object
_newclass = 1
except __builtin__.Exception:
class _object:
pass
_newclass = 0
class SwigPyIterator(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, SwigPyIterator, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, SwigPyIterator, name)
def __init__(self, *args, **kwargs):
raise AttributeError("No constructor defined - class is abstract")
__repr__ = _swig_repr
__swig_destroy__ = _multiresolutionimageinterface.delete_SwigPyIterator
__del__ = lambda self: None
def value(self) -> "PyObject *":
return _multiresolutionimageinterface.SwigPyIterator_value(self)
def incr(self, n: 'size_t'=1) -> "swig::SwigPyIterator *":
return _multiresolutionimageinterface.SwigPyIterator_incr(self, n)
def decr(self, n: 'size_t'=1) -> "swig::SwigPyIterator *":
return _multiresolutionimageinterface.SwigPyIterator_decr(self, n)
def distance(self, x: 'SwigPyIterator') -> "ptrdiff_t":
return _multiresolutionimageinterface.SwigPyIterator_distance(self, x)
def equal(self, x: 'SwigPyIterator') -> "bool":
return _multiresolutionimageinterface.SwigPyIterator_equal(self, x)
def copy(self) -> "swig::SwigPyIterator *":
return _multiresolutionimageinterface.SwigPyIterator_copy(self)
def next(self) -> "PyObject *":
return _multiresolutionimageinterface.SwigPyIterator_next(self)
def __next__(self) -> "PyObject *":
return _multiresolutionimageinterface.SwigPyIterator___next__(self)
def previous(self) -> "PyObject *":
return _multiresolutionimageinterface.SwigPyIterator_previous(self)
def advance(self, n: 'ptrdiff_t') -> "swig::SwigPyIterator *":
return _multiresolutionimageinterface.SwigPyIterator_advance(self, n)
def __eq__(self, x: 'SwigPyIterator') -> "bool":
return _multiresolutionimageinterface.SwigPyIterator___eq__(self, x)
def __ne__(self, x: 'SwigPyIterator') -> "bool":
return _multiresolutionimageinterface.SwigPyIterator___ne__(self, x)
def __iadd__(self, n: 'ptrdiff_t') -> "swig::SwigPyIterator &":
return _multiresolutionimageinterface.SwigPyIterator___iadd__(self, n)
def __isub__(self, n: 'ptrdiff_t') -> "swig::SwigPyIterator &":
return _multiresolutionimageinterface.SwigPyIterator___isub__(self, n)
def __add__(self, n: 'ptrdiff_t') -> "swig::SwigPyIterator *":
return _multiresolutionimageinterface.SwigPyIterator___add__(self, n)
def __sub__(self, *args) -> "ptrdiff_t":
return _multiresolutionimageinterface.SwigPyIterator___sub__(self, *args)
def __iter__(self):
return self
SwigPyIterator_swigregister = _multiresolutionimageinterface.SwigPyIterator_swigregister
SwigPyIterator_swigregister(SwigPyIterator)
SHARED_PTR_DISOWN = _multiresolutionimageinterface.SHARED_PTR_DISOWN
class vector_int(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, vector_int, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, vector_int, name)
__repr__ = _swig_repr
def iterator(self) -> "swig::SwigPyIterator *":
return _multiresolutionimageinterface.vector_int_iterator(self)
def __iter__(self):
return self.iterator()
def __nonzero__(self) -> "bool":
return _multiresolutionimageinterface.vector_int___nonzero__(self)
def __bool__(self) -> "bool":
return _multiresolutionimageinterface.vector_int___bool__(self)
def __len__(self) -> "std::vector< int >::size_type":
return _multiresolutionimageinterface.vector_int___len__(self)
def __getslice__(self, i: 'std::vector< int >::difference_type', j: 'std::vector< int >::difference_type') -> "std::vector< int,std::allocator< int > > *":
return _multiresolutionimageinterface.vector_int___getslice__(self, i, j)
def __setslice__(self, *args) -> "void":
return _multiresolutionimageinterface.vector_int___setslice__(self, *args)
def __delslice__(self, i: 'std::vector< int >::difference_type', j: 'std::vector< int >::difference_type') -> "void":
return _multiresolutionimageinterface.vector_int___delslice__(self, i, j)
def __delitem__(self, *args) -> "void":
return _multiresolutionimageinterface.vector_int___delitem__(self, *args)
def __getitem__(self, *args) -> "std::vector< int >::value_type const &":
return _multiresolutionimageinterface.vector_int___getitem__(self, *args)
def __setitem__(self, *args) -> "void":
return _multiresolutionimageinterface.vector_int___setitem__(self, *args)
def pop(self) -> "std::vector< int >::value_type":
return _multiresolutionimageinterface.vector_int_pop(self)
def append(self, x: 'std::vector< int >::value_type const &') -> "void":
return _multiresolutionimageinterface.vector_int_append(self, x)
def empty(self) -> "bool":
return _multiresolutionimageinterface.vector_int_empty(self)
def size(self) -> "std::vector< int >::size_type":
return _multiresolutionimageinterface.vector_int_size(self)
def swap(self, v: 'vector_int') -> "void":
return _multiresolutionimageinterface.vector_int_swap(self, v)
def begin(self) -> "std::vector< int >::iterator":
return _multiresolutionimageinterface.vector_int_begin(self)
def end(self) -> "std::vector< int >::iterator":
return _multiresolutionimageinterface.vector_int_end(self)
def rbegin(self) -> "std::vector< int >::reverse_iterator":
return _multiresolutionimageinterface.vector_int_rbegin(self)
def rend(self) -> "std::vector< int >::reverse_iterator":
return _multiresolutionimageinterface.vector_int_rend(self)
def clear(self) -> "void":
return _multiresolutionimageinterface.vector_int_clear(self)
def get_allocator(self) -> "std::vector< int >::allocator_type":
return _multiresolutionimageinterface.vector_int_get_allocator(self)
def pop_back(self) -> "void":
return _multiresolutionimageinterface.vector_int_pop_back(self)
def erase(self, *args) -> "std::vector< int >::iterator":
return _multiresolutionimageinterface.vector_int_erase(self, *args)
def __init__(self, *args):
this = _multiresolutionimageinterface.new_vector_int(*args)
try:
self.this.append(this)
except __builtin__.Exception:
self.this = this
def push_back(self, x: 'std::vector< int >::value_type const &') -> "void":
return _multiresolutionimageinterface.vector_int_push_back(self, x)
def front(self) -> "std::vector< int >::value_type const &":
return _multiresolutionimageinterface.vector_int_front(self)
def back(self) -> "std::vector< int >::value_type const &":
return _multiresolutionimageinterface.vector_int_back(self)
def assign(self, n: 'std::vector< int >::size_type', x: 'std::vector< int >::value_type const &') -> "void":
return _multiresolutionimageinterface.vector_int_assign(self, n, x)
def resize(self, *args) -> "void":
return _multiresolutionimageinterface.vector_int_resize(self, *args)
def insert(self, *args) -> "void":
return _multiresolutionimageinterface.vector_int_insert(self, *args)
def reserve(self, n: 'std::vector< int >::size_type') -> "void":
return _multiresolutionimageinterface.vector_int_reserve(self, n)
def capacity(self) -> "std::vector< int >::size_type":
return _multiresolutionimageinterface.vector_int_capacity(self)
__swig_destroy__ = _multiresolutionimageinterface.delete_vector_int
__del__ = lambda self: None
vector_int_swigregister = _multiresolutionimageinterface.vector_int_swigregister
vector_int_swigregister(vector_int)
class vector_uint(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, vector_uint, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, vector_uint, name)
__repr__ = _swig_repr
def iterator(self) -> "swig::SwigPyIterator *":
return _multiresolutionimageinterface.vector_uint_iterator(self)
def __iter__(self):
return self.iterator()
def __nonzero__(self) -> "bool":
return _multiresolutionimageinterface.vector_uint___nonzero__(self)
def __bool__(self) -> "bool":
return _multiresolutionimageinterface.vector_uint___bool__(self)
def __len__(self) -> "std::vector< unsigned int >::size_type":
return _multiresolutionimageinterface.vector_uint___len__(self)
def __getslice__(self, i: 'std::vector< unsigned int >::difference_type', j: 'std::vector< unsigned int >::difference_type') -> "std::vector< unsigned int,std::allocator< unsigned int > > *":
return _multiresolutionimageinterface.vector_uint___getslice__(self, i, j)
def __setslice__(self, *args) -> "void":
return _multiresolutionimageinterface.vector_uint___setslice__(self, *args)
def __delslice__(self, i: 'std::vector< unsigned int >::difference_type', j: 'std::vector< unsigned int >::difference_type') -> "void":
return _multiresolutionimageinterface.vector_uint___delslice__(self, i, j)
def __delitem__(self, *args) -> "void":
return _multiresolutionimageinterface.vector_uint___delitem__(self, *args)
def __getitem__(self, *args) -> "std::vector< unsigned int >::value_type const &":
return _multiresolutionimageinterface.vector_uint___getitem__(self, *args)
def __setitem__(self, *args) -> "void":
return _multiresolutionimageinterface.vector_uint___setitem__(self, *args)
def pop(self) -> "std::vector< unsigned int >::value_type":
return _multiresolutionimageinterface.vector_uint_pop(self)
def append(self, x: 'std::vector< unsigned int >::value_type const &') -> "void":
return _multiresolutionimageinterface.vector_uint_append(self, x)
def empty(self) -> "bool":
return _multiresolutionimageinterface.vector_uint_empty(self)
def size(self) -> "std::vector< unsigned int >::size_type":
return _multiresolutionimageinterface.vector_uint_size(self)
def swap(self, v: 'vector_uint') -> "void":
return _multiresolutionimageinterface.vector_uint_swap(self, v)
def begin(self) -> "std::vector< unsigned int >::iterator":
return _multiresolutionimageinterface.vector_uint_begin(self)
def end(self) -> "std::vector< unsigned int >::iterator":
return _multiresolutionimageinterface.vector_uint_end(self)
def rbegin(self) -> "std::vector< unsigned int >::reverse_iterator":
return _multiresolutionimageinterface.vector_uint_rbegin(self)
def rend(self) -> "std::vector< unsigned int >::reverse_iterator":
return _multiresolutionimageinterface.vector_uint_rend(self)
def clear(self) -> "void":
return _multiresolutionimageinterface.vector_uint_clear(self)
def get_allocator(self) -> "std::vector< unsigned int >::allocator_type":
return _multiresolutionimageinterface.vector_uint_get_allocator(self)
def pop_back(self) -> "void":
return _multiresolutionimageinterface.vector_uint_pop_back(self)
def erase(self, *args) -> "std::vector< unsigned int >::iterator":
return _multiresolutionimageinterface.vector_uint_erase(self, *args)
def __init__(self, *args):
this = _multiresolutionimageinterface.new_vector_uint(*args)
try:
self.this.append(this)
except __builtin__.Exception:
self.this = this
def push_back(self, x: 'std::vector< unsigned int >::value_type const &') -> "void":
return _multiresolutionimageinterface.vector_uint_push_back(self, x)
def front(self) -> "std::vector< unsigned int >::value_type const &":
return _multiresolutionimageinterface.vector_uint_front(self)
def back(self) -> "std::vector< unsigned int >::value_type const &":
return _multiresolutionimageinterface.vector_uint_back(self)
def assign(self, n: 'std::vector< unsigned int >::size_type', x: 'std::vector< unsigned int >::value_type const &') -> "void":
return _multiresolutionimageinterface.vector_uint_assign(self, n, x)
def resize(self, *args) -> "void":
return _multiresolutionimageinterface.vector_uint_resize(self, *args)
def insert(self, *args) -> "void":
return _multiresolutionimageinterface.vector_uint_insert(self, *args)
def reserve(self, n: 'std::vector< unsigned int >::size_type') -> "void":
return _multiresolutionimageinterface.vector_uint_reserve(self, n)
def capacity(self) -> "std::vector< unsigned int >::size_type":
return _multiresolutionimageinterface.vector_uint_capacity(self)
__swig_destroy__ = _multiresolutionimageinterface.delete_vector_uint
__del__ = lambda self: None
vector_uint_swigregister = _multiresolutionimageinterface.vector_uint_swigregister
vector_uint_swigregister(vector_uint)
class vector_float(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, vector_float, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, vector_float, name)
__repr__ = _swig_repr
def iterator(self) -> "swig::SwigPyIterator *":
return _multiresolutionimageinterface.vector_float_iterator(self)
def __iter__(self):
return self.iterator()
def __nonzero__(self) -> "bool":
return _multiresolutionimageinterface.vector_float___nonzero__(self)
def __bool__(self) -> "bool":
return _multiresolutionimageinterface.vector_float___bool__(self)
def __len__(self) -> "std::vector< float >::size_type":
return _multiresolutionimageinterface.vector_float___len__(self)
def __getslice__(self, i: 'std::vector< float >::difference_type', j: 'std::vector< float >::difference_type') -> "std::vector< float,std::allocator< float > > *":
return _multiresolutionimageinterface.vector_float___getslice__(self, i, j)
def __setslice__(self, *args) -> "void":
return _multiresolutionimageinterface.vector_float___setslice__(self, *args)
def __delslice__(self, i: 'std::vector< float >::difference_type', j: 'std::vector< float >::difference_type') -> "void":
return _multiresolutionimageinterface.vector_float___delslice__(self, i, j)
def __delitem__(self, *args) -> "void":
return _multiresolutionimageinterface.vector_float___delitem__(self, *args)
def __getitem__(self, *args) -> "std::vector< float >::value_type const &":
return _multiresolutionimageinterface.vector_float___getitem__(self, *args)
def __setitem__(self, *args) -> "void":
return _multiresolutionimageinterface.vector_float___setitem__(self, *args)
def pop(self) -> "std::vector< float >::value_type":
return _multiresolutionimageinterface.vector_float_pop(self)
def append(self, x: 'std::vector< float >::value_type const &') -> "void":
return _multiresolutionimageinterface.vector_float_append(self, x)
def empty(self) -> "bool":
return _multiresolutionimageinterface.vector_float_empty(self)
def size(self) -> "std::vector< float >::size_type":
return _multiresolutionimageinterface.vector_float_size(self)
def swap(self, v: 'vector_float') -> "void":
return _multiresolutionimageinterface.vector_float_swap(self, v)
def begin(self) -> "std::vector< float >::iterator":
return _multiresolutionimageinterface.vector_float_begin(self)
def end(self) -> "std::vector< float >::iterator":
return _multiresolutionimageinterface.vector_float_end(self)
def rbegin(self) -> "std::vector< float >::reverse_iterator":
return _multiresolutionimageinterface.vector_float_rbegin(self)
def rend(self) -> "std::vector< float >::reverse_iterator":
return _multiresolutionimageinterface.vector_float_rend(self)
def clear(self) -> "void":
return _multiresolutionimageinterface.vector_float_clear(self)
def get_allocator(self) -> "std::vector< float >::allocator_type":
return _multiresolutionimageinterface.vector_float_get_allocator(self)
def pop_back(self) -> "void":
return _multiresolutionimageinterface.vector_float_pop_back(self)
def erase(self, *args) -> "std::vector< float >::iterator":
return _multiresolutionimageinterface.vector_float_erase(self, *args)
def __init__(self, *args):
this = _multiresolutionimageinterface.new_vector_float(*args)
try:
self.this.append(this)
except __builtin__.Exception:
self.this = this
def push_back(self, x: 'std::vector< float >::value_type const &') -> "void":
return _multiresolutionimageinterface.vector_float_push_back(self, x)
def front(self) -> "std::vector< float >::value_type const &":
return _multiresolutionimageinterface.vector_float_front(self)
def back(self) -> "std::vector< float >::value_type const &":
return _multiresolutionimageinterface.vector_float_back(self)
def assign(self, n: 'std::vector< float >::size_type', x: 'std::vector< float >::value_type const &') -> "void":
return _multiresolutionimageinterface.vector_float_assign(self, n, x)
def resize(self, *args) -> "void":
return _multiresolutionimageinterface.vector_float_resize(self, *args)
def insert(self, *args) -> "void":
return _multiresolutionimageinterface.vector_float_insert(self, *args)
def reserve(self, n: 'std::vector< float >::size_type') -> "void":
return _multiresolutionimageinterface.vector_float_reserve(self, n)
def capacity(self) -> "std::vector< float >::size_type":
return _multiresolutionimageinterface.vector_float_capacity(self)
__swig_destroy__ = _multiresolutionimageinterface.delete_vector_float
__del__ = lambda self: None
vector_float_swigregister = _multiresolutionimageinterface.vector_float_swigregister
vector_float_swigregister(vector_float)
class vector_double(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, vector_double, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, vector_double, name)
__repr__ = _swig_repr
def iterator(self) -> "swig::SwigPyIterator *":
return _multiresolutionimageinterface.vector_double_iterator(self)
def __iter__(self):
return self.iterator()
def __nonzero__(self) -> "bool":
return _multiresolutionimageinterface.vector_double___nonzero__(self)
def __bool__(self) -> "bool":
return _multiresolutionimageinterface.vector_double___bool__(self)
def __len__(self) -> "std::vector< double >::size_type":
return _multiresolutionimageinterface.vector_double___len__(self)
def __getslice__(self, i: 'std::vector< double >::difference_type', j: 'std::vector< double >::difference_type') -> "std::vector< double,std::allocator< double > > *":
return _multiresolutionimageinterface.vector_double___getslice__(self, i, j)
def __setslice__(self, *args) -> "void":
return _multiresolutionimageinterface.vector_double___setslice__(self, *args)
def __delslice__(self, i: 'std::vector< double >::difference_type', j: 'std::vector< double >::difference_type') -> "void":
return _multiresolutionimageinterface.vector_double___delslice__(self, i, j)
def __delitem__(self, *args) -> "void":
return _multiresolutionimageinterface.vector_double___delitem__(self, *args)
def __getitem__(self, *args) -> "std::vector< double >::value_type const &":
return _multiresolutionimageinterface.vector_double___getitem__(self, *args)
def __setitem__(self, *args) -> "void":
return _multiresolutionimageinterface.vector_double___setitem__(self, *args)
def pop(self) -> "std::vector< double >::value_type":
return _multiresolutionimageinterface.vector_double_pop(self)
def append(self, x: 'std::vector< double >::value_type const &') -> "void":
return _multiresolutionimageinterface.vector_double_append(self, x)
def empty(self) -> "bool":
return _multiresolutionimageinterface.vector_double_empty(self)
def size(self) -> "std::vector< double >::size_type":
return _multiresolutionimageinterface.vector_double_size(self)
def swap(self, v: 'vector_double') -> "void":
return _multiresolutionimageinterface.vector_double_swap(self, v)
def begin(self) -> "std::vector< double >::iterator":
return _multiresolutionimageinterface.vector_double_begin(self)
def end(self) -> "std::vector< double >::iterator":
return _multiresolutionimageinterface.vector_double_end(self)
def rbegin(self) -> "std::vector< double >::reverse_iterator":
return _multiresolutionimageinterface.vector_double_rbegin(self)
def rend(self) -> "std::vector< double >::reverse_iterator":
return _multiresolutionimageinterface.vector_double_rend(self)
def clear(self) -> "void":
return _multiresolutionimageinterface.vector_double_clear(self)
def get_allocator(self) -> "std::vector< double >::allocator_type":
return _multiresolutionimageinterface.vector_double_get_allocator(self)
def pop_back(self) -> "void":
return _multiresolutionimageinterface.vector_double_pop_back(self)
def erase(self, *args) -> "std::vector< double >::iterator":
return _multiresolutionimageinterface.vector_double_erase(self, *args)
def __init__(self, *args):
this = _multiresolutionimageinterface.new_vector_double(*args)
try:
self.this.append(this)
except __builtin__.Exception:
self.this = this
def push_back(self, x: 'std::vector< double >::value_type const &') -> "void":
return _multiresolutionimageinterface.vector_double_push_back(self, x)
def front(self) -> "std::vector< double >::value_type const &":
return _multiresolutionimageinterface.vector_double_front(self)
def back(self) -> "std::vector< double >::value_type const &":
return _multiresolutionimageinterface.vector_double_back(self)
def assign(self, n: 'std::vector< double >::size_type', x: 'std::vector< double >::value_type const &') -> "void":
return _multiresolutionimageinterface.vector_double_assign(self, n, x)
def resize(self, *args) -> "void":
return _multiresolutionimageinterface.vector_double_resize(self, *args)
def insert(self, *args) -> "void":
return _multiresolutionimageinterface.vector_double_insert(self, *args)
def reserve(self, n: 'std::vector< double >::size_type') -> "void":
return _multiresolutionimageinterface.vector_double_reserve(self, n)
def capacity(self) -> "std::vector< double >::size_type":
return _multiresolutionimageinterface.vector_double_capacity(self)
__swig_destroy__ = _multiresolutionimageinterface.delete_vector_double
__del__ = lambda self: None
vector_double_swigregister = _multiresolutionimageinterface.vector_double_swigregister
vector_double_swigregister(vector_double)
class vector_annotation(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, vector_annotation, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, vector_annotation, name)
__repr__ = _swig_repr
def iterator(self) -> "swig::SwigPyIterator *":
return _multiresolutionimageinterface.vector_annotation_iterator(self)
def __iter__(self):
return self.iterator()
def __nonzero__(self) -> "bool":
return _multiresolutionimageinterface.vector_annotation___nonzero__(self)
def __bool__(self) -> "bool":
return _multiresolutionimageinterface.vector_annotation___bool__(self)
def __len__(self) -> "std::vector< std::shared_ptr< Annotation > >::size_type":
return _multiresolutionimageinterface.vector_annotation___len__(self)
def __getslice__(self, i: 'std::vector< std::shared_ptr< Annotation > >::difference_type', j: 'std::vector< std::shared_ptr< Annotation > >::difference_type') -> "std::vector< std::shared_ptr< Annotation >,std::allocator< std::shared_ptr< Annotation > > > *":
return _multiresolutionimageinterface.vector_annotation___getslice__(self, i, j)
def __setslice__(self, *args) -> "void":
return _multiresolutionimageinterface.vector_annotation___setslice__(self, *args)
def __delslice__(self, i: 'std::vector< std::shared_ptr< Annotation > >::difference_type', j: 'std::vector< std::shared_ptr< Annotation > >::difference_type') -> "void":
return _multiresolutionimageinterface.vector_annotation___delslice__(self, i, j)
def __delitem__(self, *args) -> "void":
return _multiresolutionimageinterface.vector_annotation___delitem__(self, *args)
def __getitem__(self, *args) -> "std::vector< std::shared_ptr< Annotation > >::value_type const &":
return _multiresolutionimageinterface.vector_annotation___getitem__(self, *args)
def __setitem__(self, *args) -> "void":
return _multiresolutionimageinterface.vector_annotation___setitem__(self, *args)
def pop(self) -> "std::vector< std::shared_ptr< Annotation > >::value_type":
return _multiresolutionimageinterface.vector_annotation_pop(self)
def append(self, x: 'std::vector< std::shared_ptr< Annotation > >::value_type const &') -> "void":
return _multiresolutionimageinterface.vector_annotation_append(self, x)
def empty(self) -> "bool":
return _multiresolutionimageinterface.vector_annotation_empty(self)
def size(self) -> "std::vector< std::shared_ptr< Annotation > >::size_type":
return _multiresolutionimageinterface.vector_annotation_size(self)
def swap(self, v: 'vector_annotation') -> "void":
return _multiresolutionimageinterface.vector_annotation_swap(self, v)
def begin(self) -> "std::vector< std::shared_ptr< Annotation > >::iterator":
return _multiresolutionimageinterface.vector_annotation_begin(self)
def end(self) -> "std::vector< std::shared_ptr< Annotation > >::iterator":
return _multiresolutionimageinterface.vector_annotation_end(self)
def rbegin(self) -> "std::vector< std::shared_ptr< Annotation > >::reverse_iterator":
return _multiresolutionimageinterface.vector_annotation_rbegin(self)
def rend(self) -> "std::vector< std::shared_ptr< Annotation > >::reverse_iterator":
return _multiresolutionimageinterface.vector_annotation_rend(self)
def clear(self) -> "void":
return _multiresolutionimageinterface.vector_annotation_clear(self)
def get_allocator(self) -> "std::vector< std::shared_ptr< Annotation > >::allocator_type":
return _multiresolutionimageinterface.vector_annotation_get_allocator(self)
def pop_back(self) -> "void":
return _multiresolutionimageinterface.vector_annotation_pop_back(self)
def erase(self, *args) -> "std::vector< std::shared_ptr< Annotation > >::iterator":
return _multiresolutionimageinterface.vector_annotation_erase(self, *args)
def __init__(self, *args):
this = _multiresolutionimageinterface.new_vector_annotation(*args)
try:
self.this.append(this)
except __builtin__.Exception:
self.this = this
def push_back(self, x: 'std::vector< std::shared_ptr< Annotation > >::value_type const &') -> "void":
return _multiresolutionimageinterface.vector_annotation_push_back(self, x)
def front(self) -> "std::vector< std::shared_ptr< Annotation > >::value_type const &":
return _multiresolutionimageinterface.vector_annotation_front(self)
def back(self) -> "std::vector< std::shared_ptr< Annotation > >::value_type const &":
return _multiresolutionimageinterface.vector_annotation_back(self)
def assign(self, n: 'std::vector< std::shared_ptr< Annotation > >::size_type', x: 'std::vector< std::shared_ptr< Annotation > >::value_type const &') -> "void":
return _multiresolutionimageinterface.vector_annotation_assign(self, n, x)
def resize(self, *args) -> "void":
return _multiresolutionimageinterface.vector_annotation_resize(self, *args)
def insert(self, *args) -> "void":
return _multiresolutionimageinterface.vector_annotation_insert(self, *args)
def reserve(self, n: 'std::vector< std::shared_ptr< Annotation > >::size_type') -> "void":
return _multiresolutionimageinterface.vector_annotation_reserve(self, n)
def capacity(self) -> "std::vector< std::shared_ptr< Annotation > >::size_type":
return _multiresolutionimageinterface.vector_annotation_capacity(self)
__swig_destroy__ = _multiresolutionimageinterface.delete_vector_annotation
__del__ = lambda self: None
vector_annotation_swigregister = _multiresolutionimageinterface.vector_annotation_swigregister
vector_annotation_swigregister(vector_annotation)
class vector_annotation_group(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, vector_annotation_group, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, vector_annotation_group, name)
__repr__ = _swig_repr
def iterator(self) -> "swig::SwigPyIterator *":
return _multiresolutionimageinterface.vector_annotation_group_iterator(self)
def __iter__(self):
return self.iterator()
def __nonzero__(self) -> "bool":
return _multiresolutionimageinterface.vector_annotation_group___nonzero__(self)
def __bool__(self) -> "bool":
return _multiresolutionimageinterface.vector_annotation_group___bool__(self)
def __len__(self) -> "std::vector< std::shared_ptr< AnnotationGroup > >::size_type":
return _multiresolutionimageinterface.vector_annotation_group___len__(self)
def __getslice__(self, i: 'std::vector< std::shared_ptr< AnnotationGroup > >::difference_type', j: 'std::vector< std::shared_ptr< AnnotationGroup > >::difference_type') -> "std::vector< std::shared_ptr< AnnotationGroup >,std::allocator< std::shared_ptr< AnnotationGroup > > > *":
return _multiresolutionimageinterface.vector_annotation_group___getslice__(self, i, j)
def __setslice__(self, *args) -> "void":
return _multiresolutionimageinterface.vector_annotation_group___setslice__(self, *args)
def __delslice__(self, i: 'std::vector< std::shared_ptr< AnnotationGroup > >::difference_type', j: 'std::vector< std::shared_ptr< AnnotationGroup > >::difference_type') -> "void":
return _multiresolutionimageinterface.vector_annotation_group___delslice__(self, i, j)
def __delitem__(self, *args) -> "void":
return _multiresolutionimageinterface.vector_annotation_group___delitem__(self, *args)
def __getitem__(self, *args) -> "std::vector< std::shared_ptr< AnnotationGroup > >::value_type const &":
return _multiresolutionimageinterface.vector_annotation_group___getitem__(self, *args)
def __setitem__(self, *args) -> "void":
return _multiresolutionimageinterface.vector_annotation_group___setitem__(self, *args)
def pop(self) -> "std::vector< std::shared_ptr< AnnotationGroup > >::value_type":
return _multiresolutionimageinterface.vector_annotation_group_pop(self)
def append(self, x: 'std::vector< std::shared_ptr< AnnotationGroup > >::value_type const &') -> "void":
return _multiresolutionimageinterface.vector_annotation_group_append(self, x)
def empty(self) -> "bool":
return _multiresolutionimageinterface.vector_annotation_group_empty(self)
def size(self) -> "std::vector< std::shared_ptr< AnnotationGroup > >::size_type":
return _multiresolutionimageinterface.vector_annotation_group_size(self)
def swap(self, v: 'vector_annotation_group') -> "void":
return _multiresolutionimageinterface.vector_annotation_group_swap(self, v)
def begin(self) -> "std::vector< std::shared_ptr< AnnotationGroup > >::iterator":
return _multiresolutionimageinterface.vector_annotation_group_begin(self)
def end(self) -> "std::vector< std::shared_ptr< AnnotationGroup > >::iterator":
return _multiresolutionimageinterface.vector_annotation_group_end(self)
def rbegin(self) -> "std::vector< std::shared_ptr< AnnotationGroup > >::reverse_iterator":
return _multiresolutionimageinterface.vector_annotation_group_rbegin(self)
def rend(self) -> "std::vector< std::shared_ptr< AnnotationGroup > >::reverse_iterator":
return _multiresolutionimageinterface.vector_annotation_group_rend(self)
def clear(self) -> "void":
return _multiresolutionimageinterface.vector_annotation_group_clear(self)
def get_allocator(self) -> "std::vector< std::shared_ptr< AnnotationGroup > >::allocator_type":
return _multiresolutionimageinterface.vector_annotation_group_get_allocator(self)
def pop_back(self) -> "void":
return _multiresolutionimageinterface.vector_annotation_group_pop_back(self)
def erase(self, *args) -> "std::vector< std::shared_ptr< AnnotationGroup > >::iterator":
return _multiresolutionimageinterface.vector_annotation_group_erase(self, *args)
def __init__(self, *args):
this = _multiresolutionimageinterface.new_vector_annotation_group(*args)
try:
self.this.append(this)
except __builtin__.Exception:
self.this = this
def push_back(self, x: 'std::vector< std::shared_ptr< AnnotationGroup > >::value_type const &') -> "void":
return _multiresolutionimageinterface.vector_annotation_group_push_back(self, x)
def front(self) -> "std::vector< std::shared_ptr< AnnotationGroup > >::value_type const &":
return _multiresolutionimageinterface.vector_annotation_group_front(self)
def back(self) -> "std::vector< std::shared_ptr< AnnotationGroup > >::value_type const &":
return _multiresolutionimageinterface.vector_annotation_group_back(self)
def assign(self, n: 'std::vector< std::shared_ptr< AnnotationGroup > >::size_type', x: 'std::vector< std::shared_ptr< AnnotationGroup > >::value_type const &') -> "void":
return _multiresolutionimageinterface.vector_annotation_group_assign(self, n, x)
def resize(self, *args) -> "void":
return _multiresolutionimageinterface.vector_annotation_group_resize(self, *args)
def insert(self, *args) -> "void":
return _multiresolutionimageinterface.vector_annotation_group_insert(self, *args)
def reserve(self, n: 'std::vector< std::shared_ptr< AnnotationGroup > >::size_type') -> "void":
return _multiresolutionimageinterface.vector_annotation_group_reserve(self, n)
def capacity(self) -> "std::vector< std::shared_ptr< AnnotationGroup > >::size_type":
return _multiresolutionimageinterface.vector_annotation_group_capacity(self)
__swig_destroy__ = _multiresolutionimageinterface.delete_vector_annotation_group
__del__ = lambda self: None
vector_annotation_group_swigregister = _multiresolutionimageinterface.vector_annotation_group_swigregister
vector_annotation_group_swigregister(vector_annotation_group)
class vector_unsigned_long_long(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, vector_unsigned_long_long, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, vector_unsigned_long_long, name)
__repr__ = _swig_repr
def iterator(self) -> "swig::SwigPyIterator *":
return _multiresolutionimageinterface.vector_unsigned_long_long_iterator(self)
def __iter__(self):
return self.iterator()
def __nonzero__(self) -> "bool":
return _multiresolutionimageinterface.vector_unsigned_long_long___nonzero__(self)
def __bool__(self) -> "bool":
return _multiresolutionimageinterface.vector_unsigned_long_long___bool__(self)
def __len__(self) -> "std::vector< unsigned long long >::size_type":
return _multiresolutionimageinterface.vector_unsigned_long_long___len__(self)
def __getslice__(self, i: 'std::vector< unsigned long long >::difference_type', j: 'std::vector< unsigned long long >::difference_type') -> "std::vector< unsigned long long,std::allocator< unsigned long long > > *":
return _multiresolutionimageinterface.vector_unsigned_long_long___getslice__(self, i, j)
def __setslice__(self, *args) -> "void":
return _multiresolutionimageinterface.vector_unsigned_long_long___setslice__(self, *args)
def __delslice__(self, i: 'std::vector< unsigned long long >::difference_type', j: 'std::vector< unsigned long long >::difference_type') -> "void":
return _multiresolutionimageinterface.vector_unsigned_long_long___delslice__(self, i, j)
def __delitem__(self, *args) -> "void":
return _multiresolutionimageinterface.vector_unsigned_long_long___delitem__(self, *args)
def __getitem__(self, *args) -> "std::vector< unsigned long long >::value_type const &":
return _multiresolutionimageinterface.vector_unsigned_long_long___getitem__(self, *args)
def __setitem__(self, *args) -> "void":
return _multiresolutionimageinterface.vector_unsigned_long_long___setitem__(self, *args)
def pop(self) -> "std::vector< unsigned long long >::value_type":
return _multiresolutionimageinterface.vector_unsigned_long_long_pop(self)
def append(self, x: 'std::vector< unsigned long long >::value_type const &') -> "void":
return _multiresolutionimageinterface.vector_unsigned_long_long_append(self, x)
def empty(self) -> "bool":
return _multiresolutionimageinterface.vector_unsigned_long_long_empty(self)
def size(self) -> "std::vector< unsigned long long >::size_type":
return _multiresolutionimageinterface.vector_unsigned_long_long_size(self)
def swap(self, v: 'vector_unsigned_long_long') -> "void":
return _multiresolutionimageinterface.vector_unsigned_long_long_swap(self, v)
def begin(self) -> "std::vector< unsigned long long >::iterator":
return _multiresolutionimageinterface.vector_unsigned_long_long_begin(self)
def end(self) -> "std::vector< unsigned long long >::iterator":
return _multiresolutionimageinterface.vector_unsigned_long_long_end(self)
def rbegin(self) -> "std::vector< unsigned long long >::reverse_iterator":
return _multiresolutionimageinterface.vector_unsigned_long_long_rbegin(self)
def rend(self) -> "std::vector< unsigned long long >::reverse_iterator":
return _multiresolutionimageinterface.vector_unsigned_long_long_rend(self)
def clear(self) -> "void":
return _multiresolutionimageinterface.vector_unsigned_long_long_clear(self)
def get_allocator(self) -> "std::vector< unsigned long long >::allocator_type":
return _multiresolutionimageinterface.vector_unsigned_long_long_get_allocator(self)
def pop_back(self) -> "void":
return _multiresolutionimageinterface.vector_unsigned_long_long_pop_back(self)
def erase(self, *args) -> "std::vector< unsigned long long >::iterator":
return _multiresolutionimageinterface.vector_unsigned_long_long_erase(self, *args)
def __init__(self, *args):
this = _multiresolutionimageinterface.new_vector_unsigned_long_long(*args)
try:
self.this.append(this)
except __builtin__.Exception:
self.this = this
def push_back(self, x: 'std::vector< unsigned long long >::value_type const &') -> "void":
return _multiresolutionimageinterface.vector_unsigned_long_long_push_back(self, x)
def front(self) -> "std::vector< unsigned long long >::value_type const &":
return _multiresolutionimageinterface.vector_unsigned_long_long_front(self)
def back(self) -> "std::vector< unsigned long long >::value_type const &":
return _multiresolutionimageinterface.vector_unsigned_long_long_back(self)
def assign(self, n: 'std::vector< unsigned long long >::size_type', x: 'std::vector< unsigned long long >::value_type const &') -> "void":
return _multiresolutionimageinterface.vector_unsigned_long_long_assign(self, n, x)
def resize(self, *args) -> "void":
return _multiresolutionimageinterface.vector_unsigned_long_long_resize(self, *args)
def insert(self, *args) -> "void":
return _multiresolutionimageinterface.vector_unsigned_long_long_insert(self, *args)
def reserve(self, n: 'std::vector< unsigned long long >::size_type') -> "void":
return _multiresolutionimageinterface.vector_unsigned_long_long_reserve(self, n)
def capacity(self) -> "std::vector< unsigned long long >::size_type":
return _multiresolutionimageinterface.vector_unsigned_long_long_capacity(self)
__swig_destroy__ = _multiresolutionimageinterface.delete_vector_unsigned_long_long
__del__ = lambda self: None
vector_unsigned_long_long_swigregister = _multiresolutionimageinterface.vector_unsigned_long_long_swigregister
vector_unsigned_long_long_swigregister(vector_unsigned_long_long)
class vector_long_long(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, vector_long_long, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, vector_long_long, name)
__repr__ = _swig_repr
def iterator(self) -> "swig::SwigPyIterator *":
return _multiresolutionimageinterface.vector_long_long_iterator(self)
def __iter__(self):
return self.iterator()
def __nonzero__(self) -> "bool":
return _multiresolutionimageinterface.vector_long_long___nonzero__(self)
def __bool__(self) -> "bool":
return _multiresolutionimageinterface.vector_long_long___bool__(self)
def __len__(self) -> "std::vector< long long >::size_type":
return _multiresolutionimageinterface.vector_long_long___len__(self)
def __getslice__(self, i: 'std::vector< long long >::difference_type', j: 'std::vector< long long >::difference_type') -> "std::vector< long long,std::allocator< long long > > *":
return _multiresolutionimageinterface.vector_long_long___getslice__(self, i, j)
def __setslice__(self, *args) -> "void":
return _multiresolutionimageinterface.vector_long_long___setslice__(self, *args)
def __delslice__(self, i: 'std::vector< long long >::difference_type', j: 'std::vector< long long >::difference_type') -> "void":
return _multiresolutionimageinterface.vector_long_long___delslice__(self, i, j)
def __delitem__(self, *args) -> "void":
return _multiresolutionimageinterface.vector_long_long___delitem__(self, *args)
def __getitem__(self, *args) -> "std::vector< long long >::value_type const &":
return _multiresolutionimageinterface.vector_long_long___getitem__(self, *args)
def __setitem__(self, *args) -> "void":
return _multiresolutionimageinterface.vector_long_long___setitem__(self, *args)
def pop(self) -> "std::vector< long long >::value_type":
return _multiresolutionimageinterface.vector_long_long_pop(self)
def append(self, x: 'std::vector< long long >::value_type const &') -> "void":
return _multiresolutionimageinterface.vector_long_long_append(self, x)
def empty(self) -> "bool":
return _multiresolutionimageinterface.vector_long_long_empty(self)
def size(self) -> "std::vector< long long >::size_type":
return _multiresolutionimageinterface.vector_long_long_size(self)
def swap(self, v: 'vector_long_long') -> "void":
return _multiresolutionimageinterface.vector_long_long_swap(self, v)
def begin(self) -> "std::vector< long long >::iterator":
return _multiresolutionimageinterface.vector_long_long_begin(self)
def end(self) -> "std::vector< long long >::iterator":
return _multiresolutionimageinterface.vector_long_long_end(self)
def rbegin(self) -> "std::vector< long long >::reverse_iterator":
return _multiresolutionimageinterface.vector_long_long_rbegin(self)
def rend(self) -> "std::vector< long long >::reverse_iterator":
return _multiresolutionimageinterface.vector_long_long_rend(self)
def clear(self) -> "void":
return _multiresolutionimageinterface.vector_long_long_clear(self)
def get_allocator(self) -> "std::vector< long long >::allocator_type":
return _multiresolutionimageinterface.vector_long_long_get_allocator(self)
def pop_back(self) -> "void":
return _multiresolutionimageinterface.vector_long_long_pop_back(self)
def erase(self, *args) -> "std::vector< long long >::iterator":
return _multiresolutionimageinterface.vector_long_long_erase(self, *args)
def __init__(self, *args):
this = _multiresolutionimageinterface.new_vector_long_long(*args)
try:
self.this.append(this)
except __builtin__.Exception:
self.this = this
def push_back(self, x: 'std::vector< long long >::value_type const &') -> "void":
return _multiresolutionimageinterface.vector_long_long_push_back(self, x)
def front(self) -> "std::vector< long long >::value_type const &":
return _multiresolutionimageinterface.vector_long_long_front(self)
def back(self) -> "std::vector< long long >::value_type const &":
return _multiresolutionimageinterface.vector_long_long_back(self)
def assign(self, n: 'std::vector< long long >::size_type', x: 'std::vector< long long >::value_type const &') -> "void":
return _multiresolutionimageinterface.vector_long_long_assign(self, n, x)
def resize(self, *args) -> "void":
return _multiresolutionimageinterface.vector_long_long_resize(self, *args)
def insert(self, *args) -> "void":
return _multiresolutionimageinterface.vector_long_long_insert(self, *args)
def reserve(self, n: 'std::vector< long long >::size_type') -> "void":
return _multiresolutionimageinterface.vector_long_long_reserve(self, n)
def capacity(self) -> "std::vector< long long >::size_type":
return _multiresolutionimageinterface.vector_long_long_capacity(self)
__swig_destroy__ = _multiresolutionimageinterface.delete_vector_long_long
__del__ = lambda self: None
vector_long_long_swigregister = _multiresolutionimageinterface.vector_long_long_swigregister
vector_long_long_swigregister(vector_long_long)
class vector_string(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, vector_string, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, vector_string, name)
__repr__ = _swig_repr
def iterator(self) -> "swig::SwigPyIterator *":
return _multiresolutionimageinterface.vector_string_iterator(self)
def __iter__(self):
return self.iterator()
def __nonzero__(self) -> "bool":
return _multiresolutionimageinterface.vector_string___nonzero__(self)
def __bool__(self) -> "bool":
return _multiresolutionimageinterface.vector_string___bool__(self)
def __len__(self) -> "std::vector< std::string >::size_type":
return _multiresolutionimageinterface.vector_string___len__(self)
def __getslice__(self, i: 'std::vector< std::string >::difference_type', j: 'std::vector< std::string >::difference_type') -> "std::vector< std::string,std::allocator< std::string > > *":
return _multiresolutionimageinterface.vector_string___getslice__(self, i, j)
def __setslice__(self, *args) -> "void":
return _multiresolutionimageinterface.vector_string___setslice__(self, *args)
def __delslice__(self, i: 'std::vector< std::string >::difference_type', j: 'std::vector< std::string >::difference_type') -> "void":
return _multiresolutionimageinterface.vector_string___delslice__(self, i, j)
def __delitem__(self, *args) -> "void":
return _multiresolutionimageinterface.vector_string___delitem__(self, *args)
def __getitem__(self, *args) -> "std::vector< std::string >::value_type const &":
return _multiresolutionimageinterface.vector_string___getitem__(self, *args)
def __setitem__(self, *args) -> "void":
return _multiresolutionimageinterface.vector_string___setitem__(self, *args)
def pop(self) -> "std::vector< std::string >::value_type":
return _multiresolutionimageinterface.vector_string_pop(self)
def append(self, x: 'std::vector< std::string >::value_type const &') -> "void":
return _multiresolutionimageinterface.vector_string_append(self, x)
def empty(self) -> "bool":
return _multiresolutionimageinterface.vector_string_empty(self)
def size(self) -> "std::vector< std::string >::size_type":
return _multiresolutionimageinterface.vector_string_size(self)
def swap(self, v: 'vector_string') -> "void":
return _multiresolutionimageinterface.vector_string_swap(self, v)
def begin(self) -> "std::vector< std::string >::iterator":
return _multiresolutionimageinterface.vector_string_begin(self)
def end(self) -> "std::vector< std::string >::iterator":
return _multiresolutionimageinterface.vector_string_end(self)
def rbegin(self) -> "std::vector< std::string >::reverse_iterator":
return _multiresolutionimageinterface.vector_string_rbegin(self)
def rend(self) -> "std::vector< std::string >::reverse_iterator":
return _multiresolutionimageinterface.vector_string_rend(self)
def clear(self) -> "void":
return _multiresolutionimageinterface.vector_string_clear(self)
def get_allocator(self) -> "std::vector< std::string >::allocator_type":
return _multiresolutionimageinterface.vector_string_get_allocator(self)
def pop_back(self) -> "void":
return _multiresolutionimageinterface.vector_string_pop_back(self)
def erase(self, *args) -> "std::vector< std::string >::iterator":
return _multiresolutionimageinterface.vector_string_erase(self, *args)
def __init__(self, *args):
this = _multiresolutionimageinterface.new_vector_string(*args)
try:
self.this.append(this)
except __builtin__.Exception:
self.this = this
def push_back(self, x: 'std::vector< std::string >::value_type const &') -> "void":
return _multiresolutionimageinterface.vector_string_push_back(self, x)
def front(self) -> "std::vector< std::string >::value_type const &":
return _multiresolutionimageinterface.vector_string_front(self)
def back(self) -> "std::vector< std::string >::value_type const &":
return _multiresolutionimageinterface.vector_string_back(self)
def assign(self, n: 'std::vector< std::string >::size_type', x: 'std::vector< std::string >::value_type const &') -> "void":
return _multiresolutionimageinterface.vector_string_assign(self, n, x)
def resize(self, *args) -> "void":
return _multiresolutionimageinterface.vector_string_resize(self, *args)
def insert(self, *args) -> "void":
return _multiresolutionimageinterface.vector_string_insert(self, *args)
def reserve(self, n: 'std::vector< std::string >::size_type') -> "void":
return _multiresolutionimageinterface.vector_string_reserve(self, n)
def capacity(self) -> "std::vector< std::string >::size_type":
return _multiresolutionimageinterface.vector_string_capacity(self)
__swig_destroy__ = _multiresolutionimageinterface.delete_vector_string
__del__ = lambda self: None
vector_string_swigregister = _multiresolutionimageinterface.vector_string_swigregister
vector_string_swigregister(vector_string)
class vector_point(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, vector_point, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, vector_point, name)
__repr__ = _swig_repr
def iterator(self) -> "swig::SwigPyIterator *":
return _multiresolutionimageinterface.vector_point_iterator(self)
def __iter__(self):
return self.iterator()
def __nonzero__(self) -> "bool":
return _multiresolutionimageinterface.vector_point___nonzero__(self)
def __bool__(self) -> "bool":
return _multiresolutionimageinterface.vector_point___bool__(self)
def __len__(self) -> "std::vector< Point >::size_type":
return _multiresolutionimageinterface.vector_point___len__(self)
def __getslice__(self, i: 'std::vector< Point >::difference_type', j: 'std::vector< Point >::difference_type') -> "std::vector< Point,std::allocator< Point > > *":
return _multiresolutionimageinterface.vector_point___getslice__(self, i, j)
def __setslice__(self, *args) -> "void":
return _multiresolutionimageinterface.vector_point___setslice__(self, *args)
def __delslice__(self, i: 'std::vector< Point >::difference_type', j: 'std::vector< Point >::difference_type') -> "void":
return _multiresolutionimageinterface.vector_point___delslice__(self, i, j)
def __delitem__(self, *args) -> "void":
return _multiresolutionimageinterface.vector_point___delitem__(self, *args)
def __getitem__(self, *args) -> "std::vector< Point >::value_type const &":
return _multiresolutionimageinterface.vector_point___getitem__(self, *args)
def __setitem__(self, *args) -> "void":
return _multiresolutionimageinterface.vector_point___setitem__(self, *args)
def pop(self) -> "std::vector< Point >::value_type":
return _multiresolutionimageinterface.vector_point_pop(self)
def append(self, x: 'Point') -> "void":
return _multiresolutionimageinterface.vector_point_append(self, x)
def empty(self) -> "bool":
return _multiresolutionimageinterface.vector_point_empty(self)
def size(self) -> "std::vector< Point >::size_type":
return _multiresolutionimageinterface.vector_point_size(self)
def swap(self, v: 'vector_point') -> "void":
return _multiresolutionimageinterface.vector_point_swap(self, v)
def begin(self) -> "std::vector< Point >::iterator":
return _multiresolutionimageinterface.vector_point_begin(self)
def end(self) -> "std::vector< Point >::iterator":
return _multiresolutionimageinterface.vector_point_end(self)
def rbegin(self) -> "std::vector< Point >::reverse_iterator":
return _multiresolutionimageinterface.vector_point_rbegin(self)
def rend(self) -> "std::vector< Point >::reverse_iterator":
return _multiresolutionimageinterface.vector_point_rend(self)
def clear(self) -> "void":
return _multiresolutionimageinterface.vector_point_clear(self)
def get_allocator(self) -> "std::vector< Point >::allocator_type":
return _multiresolutionimageinterface.vector_point_get_allocator(self)
def pop_back(self) -> "void":
return _multiresolutionimageinterface.vector_point_pop_back(self)
def erase(self, *args) -> "std::vector< Point >::iterator":
return _multiresolutionimageinterface.vector_point_erase(self, *args)
def __init__(self, *args):
this = _multiresolutionimageinterface.new_vector_point(*args)
try:
self.this.append(this)
except __builtin__.Exception:
self.this = this
def push_back(self, x: 'Point') -> "void":
return _multiresolutionimageinterface.vector_point_push_back(self, x)
def front(self) -> "std::vector< Point >::value_type const &":
return _multiresolutionimageinterface.vector_point_front(self)
def back(self) -> "std::vector< Point >::value_type const &":
return _multiresolutionimageinterface.vector_point_back(self)
def assign(self, n: 'std::vector< Point >::size_type', x: 'Point') -> "void":
return _multiresolutionimageinterface.vector_point_assign(self, n, x)
def resize(self, *args) -> "void":
return _multiresolutionimageinterface.vector_point_resize(self, *args)
def insert(self, *args) -> "void":
return _multiresolutionimageinterface.vector_point_insert(self, *args)
def reserve(self, n: 'std::vector< Point >::size_type') -> "void":
return _multiresolutionimageinterface.vector_point_reserve(self, n)
def capacity(self) -> "std::vector< Point >::size_type":
return _multiresolutionimageinterface.vector_point_capacity(self)
__swig_destroy__ = _multiresolutionimageinterface.delete_vector_point
__del__ = lambda self: None
vector_point_swigregister = _multiresolutionimageinterface.vector_point_swigregister
vector_point_swigregister(vector_point)
class map_int_string(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, map_int_string, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, map_int_string, name)
__repr__ = _swig_repr
def iterator(self) -> "swig::SwigPyIterator *":
return _multiresolutionimageinterface.map_int_string_iterator(self)
def __iter__(self):
return self.iterator()
def __nonzero__(self) -> "bool":
return _multiresolutionimageinterface.map_int_string___nonzero__(self)
def __bool__(self) -> "bool":
return _multiresolutionimageinterface.map_int_string___bool__(self)
def __len__(self) -> "std::map< int,std::string >::size_type":
return _multiresolutionimageinterface.map_int_string___len__(self)
def __iter__(self):
return self.key_iterator()
def iterkeys(self):
return self.key_iterator()
def itervalues(self):
return self.value_iterator()
def iteritems(self):
return self.iterator()
def __getitem__(self, key: 'std::map< int,std::string >::key_type const &') -> "std::map< int,std::string >::mapped_type const &":
return _multiresolutionimageinterface.map_int_string___getitem__(self, key)
def __delitem__(self, key: 'std::map< int,std::string >::key_type const &') -> "void":
return _multiresolutionimageinterface.map_int_string___delitem__(self, key)
def has_key(self, key: 'std::map< int,std::string >::key_type const &') -> "bool":
return _multiresolutionimageinterface.map_int_string_has_key(self, key)
def keys(self) -> "PyObject *":
return _multiresolutionimageinterface.map_int_string_keys(self)
def values(self) -> "PyObject *":
return _multiresolutionimageinterface.map_int_string_values(self)
def items(self) -> "PyObject *":
return _multiresolutionimageinterface.map_int_string_items(self)
def __contains__(self, key: 'std::map< int,std::string >::key_type const &') -> "bool":
return _multiresolutionimageinterface.map_int_string___contains__(self, key)
def key_iterator(self) -> "swig::SwigPyIterator *":
return _multiresolutionimageinterface.map_int_string_key_iterator(self)
def value_iterator(self) -> "swig::SwigPyIterator *":
return _multiresolutionimageinterface.map_int_string_value_iterator(self)
def __setitem__(self, *args) -> "void":
return _multiresolutionimageinterface.map_int_string___setitem__(self, *args)
def asdict(self) -> "PyObject *":
return _multiresolutionimageinterface.map_int_string_asdict(self)
def __init__(self, *args):
this = _multiresolutionimageinterface.new_map_int_string(*args)
try:
self.this.append(this)
except __builtin__.Exception:
self.this = this
def empty(self) -> "bool":
return _multiresolutionimageinterface.map_int_string_empty(self)
def size(self) -> "std::map< int,std::string >::size_type":
return _multiresolutionimageinterface.map_int_string_size(self)
def swap(self, v: 'map_int_string') -> "void":
return _multiresolutionimageinterface.map_int_string_swap(self, v)
def begin(self) -> "std::map< int,std::string >::iterator":
return _multiresolutionimageinterface.map_int_string_begin(self)
def end(self) -> "std::map< int,std::string >::iterator":
return _multiresolutionimageinterface.map_int_string_end(self)
def rbegin(self) -> "std::map< int,std::string >::reverse_iterator":
return _multiresolutionimageinterface.map_int_string_rbegin(self)
def rend(self) -> "std::map< int,std::string >::reverse_iterator":
return _multiresolutionimageinterface.map_int_string_rend(self)
def clear(self) -> "void":
return _multiresolutionimageinterface.map_int_string_clear(self)
def get_allocator(self) -> "std::map< int,std::string >::allocator_type":
return _multiresolutionimageinterface.map_int_string_get_allocator(self)
def count(self, x: 'std::map< int,std::string >::key_type const &') -> "std::map< int,std::string >::size_type":
return _multiresolutionimageinterface.map_int_string_count(self, x)
def erase(self, *args) -> "void":
return _multiresolutionimageinterface.map_int_string_erase(self, *args)
def find(self, x: 'std::map< int,std::string >::key_type const &') -> "std::map< int,std::string >::iterator":
return _multiresolutionimageinterface.map_int_string_find(self, x)
def lower_bound(self, x: 'std::map< int,std::string >::key_type const &') -> "std::map< int,std::string >::iterator":
return _multiresolutionimageinterface.map_int_string_lower_bound(self, x)
def upper_bound(self, x: 'std::map< int,std::string >::key_type const &') -> "std::map< int,std::string >::iterator":
return _multiresolutionimageinterface.map_int_string_upper_bound(self, x)
__swig_destroy__ = _multiresolutionimageinterface.delete_map_int_string
__del__ = lambda self: None
map_int_string_swigregister = _multiresolutionimageinterface.map_int_string_swigregister
map_int_string_swigregister(map_int_string)
class map_string_int(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, map_string_int, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, map_string_int, name)
__repr__ = _swig_repr
def iterator(self) -> "swig::SwigPyIterator *":
return _multiresolutionimageinterface.map_string_int_iterator(self)
def __iter__(self):
return self.iterator()
def __nonzero__(self) -> "bool":
return _multiresolutionimageinterface.map_string_int___nonzero__(self)
def __bool__(self) -> "bool":
return _multiresolutionimageinterface.map_string_int___bool__(self)
def __len__(self) -> "std::map< std::string,int >::size_type":
return _multiresolutionimageinterface.map_string_int___len__(self)
def __iter__(self):
return self.key_iterator()
def iterkeys(self):
return self.key_iterator()
def itervalues(self):
return self.value_iterator()
def iteritems(self):
return self.iterator()
def __getitem__(self, key: 'std::map< std::string,int >::key_type const &') -> "std::map< std::string,int >::mapped_type const &":
return _multiresolutionimageinterface.map_string_int___getitem__(self, key)
def __delitem__(self, key: 'std::map< std::string,int >::key_type const &') -> "void":
return _multiresolutionimageinterface.map_string_int___delitem__(self, key)
def has_key(self, key: 'std::map< std::string,int >::key_type const &') -> "bool":
return _multiresolutionimageinterface.map_string_int_has_key(self, key)
def keys(self) -> "PyObject *":
return _multiresolutionimageinterface.map_string_int_keys(self)
def values(self) -> "PyObject *":
return _multiresolutionimageinterface.map_string_int_values(self)
def items(self) -> "PyObject *":
return _multiresolutionimageinterface.map_string_int_items(self)
def __contains__(self, key: 'std::map< std::string,int >::key_type const &') -> "bool":
return _multiresolutionimageinterface.map_string_int___contains__(self, key)
def key_iterator(self) -> "swig::SwigPyIterator *":
return _multiresolutionimageinterface.map_string_int_key_iterator(self)
def value_iterator(self) -> "swig::SwigPyIterator *":
return _multiresolutionimageinterface.map_string_int_value_iterator(self)
def __setitem__(self, *args) -> "void":
return _multiresolutionimageinterface.map_string_int___setitem__(self, *args)
def asdict(self) -> "PyObject *":
return _multiresolutionimageinterface.map_string_int_asdict(self)
def __init__(self, *args):
this = _multiresolutionimageinterface.new_map_string_int(*args)
try:
self.this.append(this)
except __builtin__.Exception:
self.this = this
def empty(self) -> "bool":
return _multiresolutionimageinterface.map_string_int_empty(self)
def size(self) -> "std::map< std::string,int >::size_type":
return _multiresolutionimageinterface.map_string_int_size(self)
def swap(self, v: 'map_string_int') -> "void":
return _multiresolutionimageinterface.map_string_int_swap(self, v)
def begin(self) -> "std::map< std::string,int >::iterator":
return _multiresolutionimageinterface.map_string_int_begin(self)
def end(self) -> "std::map< std::string,int >::iterator":
return _multiresolutionimageinterface.map_string_int_end(self)
def rbegin(self) -> "std::map< std::string,int >::reverse_iterator":
return _multiresolutionimageinterface.map_string_int_rbegin(self)
def rend(self) -> "std::map< std::string,int >::reverse_iterator":
return _multiresolutionimageinterface.map_string_int_rend(self)
def clear(self) -> "void":
return _multiresolutionimageinterface.map_string_int_clear(self)
def get_allocator(self) -> "std::map< std::string,int >::allocator_type":
return _multiresolutionimageinterface.map_string_int_get_allocator(self)
def count(self, x: 'std::map< std::string,int >::key_type const &') -> "std::map< std::string,int >::size_type":
return _multiresolutionimageinterface.map_string_int_count(self, x)
def erase(self, *args) -> "void":
return _multiresolutionimageinterface.map_string_int_erase(self, *args)
def find(self, x: 'std::map< std::string,int >::key_type const &') -> "std::map< std::string,int >::iterator":
return _multiresolutionimageinterface.map_string_int_find(self, x)
def lower_bound(self, x: 'std::map< std::string,int >::key_type const &') -> "std::map< std::string,int >::iterator":
return _multiresolutionimageinterface.map_string_int_lower_bound(self, x)
def upper_bound(self, x: 'std::map< std::string,int >::key_type const &') -> "std::map< std::string,int >::iterator":
return _multiresolutionimageinterface.map_string_int_upper_bound(self, x)
__swig_destroy__ = _multiresolutionimageinterface.delete_map_string_int
__del__ = lambda self: None
map_string_int_swigregister = _multiresolutionimageinterface.map_string_int_swigregister
map_string_int_swigregister(map_string_int)
ASAP_MAJOR_VERSION = _multiresolutionimageinterface.ASAP_MAJOR_VERSION
ASAP_MINOR_VERSION = _multiresolutionimageinterface.ASAP_MINOR_VERSION
ASAP_PATCH_VERSION = _multiresolutionimageinterface.ASAP_PATCH_VERSION
class Point(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, Point, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, Point, name)
__repr__ = _swig_repr
def __init__(self, *args):
this = _multiresolutionimageinterface.new_Point(*args)
try:
self.this.append(this)
except __builtin__.Exception:
self.this = this
def getX(self) -> "float":
return _multiresolutionimageinterface.Point_getX(self)
def getY(self) -> "float":
return _multiresolutionimageinterface.Point_getY(self)
def setX(self, x: 'float const &') -> "void":
return _multiresolutionimageinterface.Point_setX(self, x)
def setY(self, y: 'float const &') -> "void":
return _multiresolutionimageinterface.Point_setY(self, y)
__swig_destroy__ = _multiresolutionimageinterface.delete_Point
__del__ = lambda self: None
Point_swigregister = _multiresolutionimageinterface.Point_swigregister
Point_swigregister(Point)
cvar = _multiresolutionimageinterface.cvar
ASAP_VERSION_STRING = cvar.ASAP_VERSION_STRING
class LUT(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, LUT, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, LUT, name)
__repr__ = _swig_repr
__swig_setmethods__["colors"] = _multiresolutionimageinterface.LUT_colors_set
__swig_getmethods__["colors"] = _multiresolutionimageinterface.LUT_colors_get
if _newclass:
colors = _swig_property(_multiresolutionimageinterface.LUT_colors_get, _multiresolutionimageinterface.LUT_colors_set)
__swig_setmethods__["wrapAround"] = _multiresolutionimageinterface.LUT_wrapAround_set
__swig_getmethods__["wrapAround"] = _multiresolutionimageinterface.LUT_wrapAround_get
if _newclass:
wrapAround = _swig_property(_multiresolutionimageinterface.LUT_wrapAround_get, _multiresolutionimageinterface.LUT_wrapAround_set)
def __init__(self):
this = _multiresolutionimageinterface.new_LUT()
try:
self.this.append(this)
except __builtin__.Exception:
self.this = this
__swig_destroy__ = _multiresolutionimageinterface.delete_LUT
__del__ = lambda self: None
LUT_swigregister = _multiresolutionimageinterface.LUT_swigregister
LUT_swigregister(LUT)
InvalidColorType = _multiresolutionimageinterface.InvalidColorType
Monochrome = _multiresolutionimageinterface.Monochrome
RGB = _multiresolutionimageinterface.RGB
ARGB = _multiresolutionimageinterface.ARGB
Indexed = _multiresolutionimageinterface.Indexed
InvalidDataType = _multiresolutionimageinterface.InvalidDataType
UChar = _multiresolutionimageinterface.UChar
UInt16 = _multiresolutionimageinterface.UInt16
UInt32 = _multiresolutionimageinterface.UInt32
Float = _multiresolutionimageinterface.Float
RAW = _multiresolutionimageinterface.RAW
JPEG = _multiresolutionimageinterface.JPEG
LZW = _multiresolutionimageinterface.LZW
JPEG2000 = _multiresolutionimageinterface.JPEG2000
NearestNeighbor = _multiresolutionimageinterface.NearestNeighbor
Linear = _multiresolutionimageinterface.Linear
class ImageSource(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, ImageSource, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, ImageSource, name)
def __init__(self, *args, **kwargs):
raise AttributeError("No constructor defined - class is abstract")
__repr__ = _swig_repr
__swig_destroy__ = _multiresolutionimageinterface.delete_ImageSource
__del__ = lambda self: None
def valid(self) -> "bool":
return _multiresolutionimageinterface.ImageSource_valid(self)
def getDimensions(self) -> "std::vector< unsigned long long,std::allocator< unsigned long long > > const":
return _multiresolutionimageinterface.ImageSource_getDimensions(self)
def getColorType(self) -> "pathology::ColorType const":
return _multiresolutionimageinterface.ImageSource_getColorType(self)
def getDataType(self) -> "pathology::DataType const":
return _multiresolutionimageinterface.ImageSource_getDataType(self)
def getSamplesPerPixel(self) -> "int const":
return _multiresolutionimageinterface.ImageSource_getSamplesPerPixel(self)
def getSpacing(self) -> "std::vector< double,std::allocator< double > > const":
return _multiresolutionimageinterface.ImageSource_getSpacing(self)
def getMinValue(self, channel: 'int'=-1) -> "double":
return _multiresolutionimageinterface.ImageSource_getMinValue(self, channel)
def getMaxValue(self, channel: 'int'=-1) -> "double":
return _multiresolutionimageinterface.ImageSource_getMaxValue(self, channel)
ImageSource_swigregister = _multiresolutionimageinterface.ImageSource_swigregister
ImageSource_swigregister(ImageSource)
ColorLookupTables = cvar.ColorLookupTables
class CmdLineProgressMonitor(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, CmdLineProgressMonitor, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, CmdLineProgressMonitor, name)
__repr__ = _swig_repr
def __init__(self):
this = _multiresolutionimageinterface.new_CmdLineProgressMonitor()
try:
self.this.append(this)
except __builtin__.Exception:
self.this = this
__swig_destroy__ = _multiresolutionimageinterface.delete_CmdLineProgressMonitor
__del__ = lambda self: None
def setProgress(self, progress: 'unsigned int const &') -> "void":
return _multiresolutionimageinterface.CmdLineProgressMonitor_setProgress(self, progress)
def setStatus(self, status: 'std::string const &') -> "void":
return _multiresolutionimageinterface.CmdLineProgressMonitor_setStatus(self, status)
CmdLineProgressMonitor_swigregister = _multiresolutionimageinterface.CmdLineProgressMonitor_swigregister
CmdLineProgressMonitor_swigregister(CmdLineProgressMonitor)
class AnnotationBase(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, AnnotationBase, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, AnnotationBase, name)
def __init__(self, *args, **kwargs):
raise AttributeError("No constructor defined - class is abstract")
__repr__ = _swig_repr
__swig_destroy__ = _multiresolutionimageinterface.delete_AnnotationBase
__del__ = lambda self: None
def setName(self, name: 'std::string const &') -> "void":
return _multiresolutionimageinterface.AnnotationBase_setName(self, name)
def getName(self) -> "std::string":
return _multiresolutionimageinterface.AnnotationBase_getName(self)
def setGroup(self, group: 'std::shared_ptr< AnnotationGroup > const &') -> "void":
return _multiresolutionimageinterface.AnnotationBase_setGroup(self, group)
def getGroup(self) -> "std::shared_ptr< AnnotationGroup >":
return _multiresolutionimageinterface.AnnotationBase_getGroup(self)
def getColor(self) -> "std::string":
return _multiresolutionimageinterface.AnnotationBase_getColor(self)
def setColor(self, color: 'std::string const &') -> "void":
return _multiresolutionimageinterface.AnnotationBase_setColor(self, color)
def getImageBoundingBox(self) -> "std::vector< Point,std::allocator< Point > >":
return _multiresolutionimageinterface.AnnotationBase_getImageBoundingBox(self)
def getLocalBoundingBox(self) -> "std::vector< Point,std::allocator< Point > >":
return _multiresolutionimageinterface.AnnotationBase_getLocalBoundingBox(self)
def getCenter(self) -> "Point":
return _multiresolutionimageinterface.AnnotationBase_getCenter(self)
def getArea(self) -> "float":
return _multiresolutionimageinterface.AnnotationBase_getArea(self)
def getNumberOfPoints(self) -> "unsigned int":
return _multiresolutionimageinterface.AnnotationBase_getNumberOfPoints(self)
def isModified(self) -> "bool":
return _multiresolutionimageinterface.AnnotationBase_isModified(self)
def resetModifiedStatus(self) -> "void":
return _multiresolutionimageinterface.AnnotationBase_resetModifiedStatus(self)
AnnotationBase_swigregister = _multiresolutionimageinterface.AnnotationBase_swigregister
AnnotationBase_swigregister(AnnotationBase)
class Annotation(AnnotationBase):
__swig_setmethods__ = {}
for _s in [AnnotationBase]:
__swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
__setattr__ = lambda self, name, value: _swig_setattr(self, Annotation, name, value)
__swig_getmethods__ = {}
for _s in [AnnotationBase]:
__swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
__getattr__ = lambda self, name: _swig_getattr(self, Annotation, name)
__repr__ = _swig_repr
NONE = _multiresolutionimageinterface.Annotation_NONE
DOT = _multiresolutionimageinterface.Annotation_DOT
POLYGON = _multiresolutionimageinterface.Annotation_POLYGON
SPLINE = _multiresolutionimageinterface.Annotation_SPLINE
POINTSET = _multiresolutionimageinterface.Annotation_POINTSET
MEASUREMENT = _multiresolutionimageinterface.Annotation_MEASUREMENT
RECTANGLE = _multiresolutionimageinterface.Annotation_RECTANGLE
def __init__(self):
this = _multiresolutionimageinterface.new_Annotation()
try:
self.this.append(this)
except __builtin__.Exception:
self.this = this
def addCoordinate(self, *args) -> "void":
return _multiresolutionimageinterface.Annotation_addCoordinate(self, *args)
def insertCoordinate(self, *args) -> "void":
return _multiresolutionimageinterface.Annotation_insertCoordinate(self, *args)
def removeCoordinate(self, index: 'int const &') -> "void":
return _multiresolutionimageinterface.Annotation_removeCoordinate(self, index)
def setCoordinates(self, coordinates: 'vector_point') -> "void":
return _multiresolutionimageinterface.Annotation_setCoordinates(self, coordinates)
def getCoordinate(self, index: 'int const &') -> "Point":
return _multiresolutionimageinterface.Annotation_getCoordinate(self, index)
def getCoordinates(self) -> "std::vector< Point,std::allocator< Point > >":
return _multiresolutionimageinterface.Annotation_getCoordinates(self)
def clearCoordinates(self) -> "void":
return _multiresolutionimageinterface.Annotation_clearCoordinates(self)
def setType(self, type: 'Annotation::Type const &') -> "void":
return _multiresolutionimageinterface.Annotation_setType(self, type)
def getType(self) -> "Annotation::Type":
return _multiresolutionimageinterface.Annotation_getType(self)
def getTypeAsString(self) -> "std::string":
return _multiresolutionimageinterface.Annotation_getTypeAsString(self)
def setTypeFromString(self, type: 'std::string const &') -> "void":
return _multiresolutionimageinterface.Annotation_setTypeFromString(self, type)
def getImageBoundingBox(self) -> "std::vector< Point,std::allocator< Point > >":
return _multiresolutionimageinterface.Annotation_getImageBoundingBox(self)
def getLocalBoundingBox(self) -> "std::vector< Point,std::allocator< Point > >":
return _multiresolutionimageinterface.Annotation_getLocalBoundingBox(self)
def getCenter(self) -> "Point":
return _multiresolutionimageinterface.Annotation_getCenter(self)
def simplify(self, nrPoints: 'unsigned int'=0, epsilon: 'float'=1.0) -> "void":
return _multiresolutionimageinterface.Annotation_simplify(self, nrPoints, epsilon)
def getArea(self) -> "float":
return _multiresolutionimageinterface.Annotation_getArea(self)
def getNumberOfPoints(self) -> "unsigned int":
return _multiresolutionimageinterface.Annotation_getNumberOfPoints(self)
def isClockwise(self) -> "bool":
return _multiresolutionimageinterface.Annotation_isClockwise(self)
__swig_destroy__ = _multiresolutionimageinterface.delete_Annotation
__del__ = lambda self: None
Annotation_swigregister = _multiresolutionimageinterface.Annotation_swigregister
Annotation_swigregister(Annotation)
class AnnotationGroup(AnnotationBase):
__swig_setmethods__ = {}
for _s in [AnnotationBase]:
__swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
__setattr__ = lambda self, name, value: _swig_setattr(self, AnnotationGroup, name, value)
__swig_getmethods__ = {}
for _s in [AnnotationBase]:
__swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
__getattr__ = lambda self, name: _swig_getattr(self, AnnotationGroup, name)
__repr__ = _swig_repr
def __init__(self):
this = _multiresolutionimageinterface.new_AnnotationGroup()
try:
self.this.append(this)
except __builtin__.Exception:
self.this = this
__swig_destroy__ = _multiresolutionimageinterface.delete_AnnotationGroup
__del__ = lambda self: None
def getImageBoundingBox(self) -> "std::vector< Point,std::allocator< Point > >":
return _multiresolutionimageinterface.AnnotationGroup_getImageBoundingBox(self)
def getLocalBoundingBox(self) -> "std::vector< Point,std::allocator< Point > >":
return _multiresolutionimageinterface.AnnotationGroup_getLocalBoundingBox(self)
def getCenter(self) -> "Point":
return _multiresolutionimageinterface.AnnotationGroup_getCenter(self)
def getArea(self) -> "float":
return _multiresolutionimageinterface.AnnotationGroup_getArea(self)
def getNumberOfPoints(self) -> "unsigned int":
return _multiresolutionimageinterface.AnnotationGroup_getNumberOfPoints(self)
def clearAttributes(self) -> "void":
return _multiresolutionimageinterface.AnnotationGroup_clearAttributes(self)
def getAttributes(self) -> "std::map< std::string,std::string,std::less< std::string >,std::allocator< std::pair< std::string const,std::string > > >":
return _multiresolutionimageinterface.AnnotationGroup_getAttributes(self)
def setAttributes(self, attributes: 'std::map< std::string,std::string,std::less< std::string >,std::allocator< std::pair< std::string const,std::string > > >') -> "void":
return _multiresolutionimageinterface.AnnotationGroup_setAttributes(self, attributes)
def addMember(self, member: 'std::shared_ptr< AnnotationBase >') -> "void":
return _multiresolutionimageinterface.AnnotationGroup_addMember(self, member)
def removeMember(self, member: 'std::shared_ptr< AnnotationBase >') -> "void":
return _multiresolutionimageinterface.AnnotationGroup_removeMember(self, member)
AnnotationGroup_swigregister = _multiresolutionimageinterface.AnnotationGroup_swigregister
AnnotationGroup_swigregister(AnnotationGroup)
class AnnotationList(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, AnnotationList, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, AnnotationList, name)
__repr__ = _swig_repr
def __init__(self):
this = _multiresolutionimageinterface.new_AnnotationList()
try:
self.this.append(this)
except __builtin__.Exception:
self.this = this
__swig_destroy__ = _multiresolutionimageinterface.delete_AnnotationList
__del__ = lambda self: None
def isModified(self) -> "bool":
return _multiresolutionimageinterface.AnnotationList_isModified(self)
def resetModifiedStatus(self) -> "void":
return _multiresolutionimageinterface.AnnotationList_resetModifiedStatus(self)
def addGroup(self, group: 'std::shared_ptr< AnnotationGroup > const &') -> "bool":
return _multiresolutionimageinterface.AnnotationList_addGroup(self, group)
def addAnnotation(self, annotation: 'std::shared_ptr< Annotation > const &') -> "bool":
return _multiresolutionimageinterface.AnnotationList_addAnnotation(self, annotation)
def getGroup(self, *args) -> "std::shared_ptr< AnnotationGroup >":
return _multiresolutionimageinterface.AnnotationList_getGroup(self, *args)
def getAnnotation(self, *args) -> "std::shared_ptr< Annotation >":
return _multiresolutionimageinterface.AnnotationList_getAnnotation(self, *args)
def getAnnotations(self) -> "std::vector< std::shared_ptr< Annotation >,std::allocator< std::shared_ptr< Annotation > > >":
return _multiresolutionimageinterface.AnnotationList_getAnnotations(self)
def getGroups(self) -> "std::vector< std::shared_ptr< AnnotationGroup >,std::allocator< std::shared_ptr< AnnotationGroup > > >":
return _multiresolutionimageinterface.AnnotationList_getGroups(self)
def setAnnotations(self, annotations: 'vector_annotation') -> "void":
return _multiresolutionimageinterface.AnnotationList_setAnnotations(self, annotations)
def setGroups(self, groups: 'vector_annotation_group') -> "void":
return _multiresolutionimageinterface.AnnotationList_setGroups(self, groups)
def removeGroup(self, *args) -> "void":
return _multiresolutionimageinterface.AnnotationList_removeGroup(self, *args)
def removeAnnotation(self, *args) -> "void":
return _multiresolutionimageinterface.AnnotationList_removeAnnotation(self, *args)
def removeAllAnnotations(self) -> "void":
return _multiresolutionimageinterface.AnnotationList_removeAllAnnotations(self)
def removeAllGroups(self) -> "void":
return _multiresolutionimageinterface.AnnotationList_removeAllGroups(self)
AnnotationList_swigregister = _multiresolutionimageinterface.AnnotationList_swigregister
AnnotationList_swigregister(AnnotationList)
class AnnotationService(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, AnnotationService, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, AnnotationService, name)
__repr__ = _swig_repr
def __init__(self):
this = _multiresolutionimageinterface.new_AnnotationService()
try:
self.this.append(this)
except __builtin__.Exception:
self.this = this
__swig_destroy__ = _multiresolutionimageinterface.delete_AnnotationService
__del__ = lambda self: None
def getList(self) -> "std::shared_ptr< AnnotationList >":
return _multiresolutionimageinterface.AnnotationService_getList(self)
def getRepository(self) -> "std::shared_ptr< Repository >":
return _multiresolutionimageinterface.AnnotationService_getRepository(self)
def loadRepositoryFromFile(self, source: 'std::string const &') -> "bool":
return _multiresolutionimageinterface.AnnotationService_loadRepositoryFromFile(self, source)
def saveRepositoryToFile(self, source: 'std::string const &') -> "bool":
return _multiresolutionimageinterface.AnnotationService_saveRepositoryToFile(self, source)
AnnotationService_swigregister = _multiresolutionimageinterface.AnnotationService_swigregister
AnnotationService_swigregister(AnnotationService)
class AnnotationToMask(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, AnnotationToMask, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, AnnotationToMask, name)
__repr__ = _swig_repr
def convert(self, *args) -> "void":
return _multiresolutionimageinterface.AnnotationToMask_convert(self, *args)
def setProgressMonitor(self, monitor: 'ProgressMonitor *') -> "void":
return _multiresolutionimageinterface.AnnotationToMask_setProgressMonitor(self, monitor)
def __init__(self):
this = _multiresolutionimageinterface.new_AnnotationToMask()
try:
self.this.append(this)
except __builtin__.Exception:
self.this = this
__swig_destroy__ = _multiresolutionimageinterface.delete_AnnotationToMask
__del__ = lambda self: None
AnnotationToMask_swigregister = _multiresolutionimageinterface.AnnotationToMask_swigregister
AnnotationToMask_swigregister(AnnotationToMask)
class Repository(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, Repository, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, Repository, name)
def __init__(self, *args, **kwargs):
raise AttributeError("No constructor defined - class is abstract")
__repr__ = _swig_repr
__swig_destroy__ = _multiresolutionimageinterface.delete_Repository
__del__ = lambda self: None
def setSource(self, sourcePath: 'std::string const &') -> "void":
return _multiresolutionimageinterface.Repository_setSource(self, sourcePath)
def load(self) -> "bool":
return _multiresolutionimageinterface.Repository_load(self)
def save(self) -> "bool":
return _multiresolutionimageinterface.Repository_save(self)
Repository_swigregister = _multiresolutionimageinterface.Repository_swigregister
Repository_swigregister(Repository)
class XmlRepository(Repository):
__swig_setmethods__ = {}
for _s in [Repository]:
__swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
__setattr__ = lambda self, name, value: _swig_setattr(self, XmlRepository, name, value)
__swig_getmethods__ = {}
for _s in [Repository]:
__swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
__getattr__ = lambda self, name: _swig_getattr(self, XmlRepository, name)
__repr__ = _swig_repr
def __init__(self, list: 'std::shared_ptr< AnnotationList > const &'):
this = _multiresolutionimageinterface.new_XmlRepository(list)
try:
self.this.append(this)
except __builtin__.Exception:
self.this = this
def save(self) -> "bool":
return _multiresolutionimageinterface.XmlRepository_save(self)
__swig_destroy__ = _multiresolutionimageinterface.delete_XmlRepository
__del__ = lambda self: None
XmlRepository_swigregister = _multiresolutionimageinterface.XmlRepository_swigregister
XmlRepository_swigregister(XmlRepository)
class NDPARepository(Repository):
__swig_setmethods__ = {}
for _s in [Repository]:
__swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
__setattr__ = lambda self, name, value: _swig_setattr(self, NDPARepository, name, value)
__swig_getmethods__ = {}
for _s in [Repository]:
__swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
__getattr__ = lambda self, name: _swig_getattr(self, NDPARepository, name)
__repr__ = _swig_repr
def __init__(self, list: 'std::shared_ptr< AnnotationList > const &'):
this = _multiresolutionimageinterface.new_NDPARepository(list)
try:
self.this.append(this)
except __builtin__.Exception:
self.this = this
def setNDPISourceFile(self, ndpiSourcefile: 'std::string const &') -> "void":
return _multiresolutionimageinterface.NDPARepository_setNDPISourceFile(self, ndpiSourcefile)
def NDPISourceFile(self) -> "std::string":
return _multiresolutionimageinterface.NDPARepository_NDPISourceFile(self)
def save(self) -> "bool":
return _multiresolutionimageinterface.NDPARepository_save(self)
__swig_destroy__ = _multiresolutionimageinterface.delete_NDPARepository
__del__ = lambda self: None
NDPARepository_swigregister = _multiresolutionimageinterface.NDPARepository_swigregister
NDPARepository_swigregister(NDPARepository)
class ImageScopeRepository(Repository):
__swig_setmethods__ = {}
for _s in [Repository]:
__swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
__setattr__ = lambda self, name, value: _swig_setattr(self, ImageScopeRepository, name, value)
__swig_getmethods__ = {}
for _s in [Repository]:
__swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
__getattr__ = lambda self, name: _swig_getattr(self, ImageScopeRepository, name)
__repr__ = _swig_repr
def __init__(self, list: 'std::shared_ptr< AnnotationList > const &'):
this = _multiresolutionimageinterface.new_ImageScopeRepository(list)
try:
self.this.append(this)
except __builtin__.Exception:
self.this = this
def save(self) -> "bool":
return _multiresolutionimageinterface.ImageScopeRepository_save(self)
def setClosingDistance(self, closingDistance: 'float const &') -> "void":
return _multiresolutionimageinterface.ImageScopeRepository_setClosingDistance(self, closingDistance)
def getClosingDistance(self) -> "float":
return _multiresolutionimageinterface.ImageScopeRepository_getClosingDistance(self)
__swig_destroy__ = _multiresolutionimageinterface.delete_ImageScopeRepository
__del__ = lambda self: None
ImageScopeRepository_swigregister = _multiresolutionimageinterface.ImageScopeRepository_swigregister
ImageScopeRepository_swigregister(ImageScopeRepository)
class MultiResolutionImage(ImageSource):
__swig_setmethods__ = {}
for _s in [ImageSource]:
__swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
__setattr__ = lambda self, name, value: _swig_setattr(self, MultiResolutionImage, name, value)
__swig_getmethods__ = {}
for _s in [ImageSource]:
__swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
__getattr__ = lambda self, name: _swig_getattr(self, MultiResolutionImage, name)
def __init__(self, *args, **kwargs):
raise AttributeError("No constructor defined - class is abstract")
__repr__ = _swig_repr
__swig_destroy__ = _multiresolutionimageinterface.delete_MultiResolutionImage
__del__ = lambda self: None
def initialize(self, imagePath: 'std::string const &') -> "bool":
return _multiresolutionimageinterface.MultiResolutionImage_initialize(self, imagePath)
def initializeType(self, imagePath: 'std::string const &') -> "bool":
return _multiresolutionimageinterface.MultiResolutionImage_initializeType(self, imagePath)
def getNumberOfZPlanes(self) -> "int":
return _multiresolutionimageinterface.MultiResolutionImage_getNumberOfZPlanes(self)
def setCurrentZPlaneIndex(self, zPlaneIndex: 'unsigned int const &') -> "void":
return _multiresolutionimageinterface.MultiResolutionImage_setCurrentZPlaneIndex(self, zPlaneIndex)
def getCurrentZPlaneIndex(self) -> "unsigned int":
return _multiresolutionimageinterface.MultiResolutionImage_getCurrentZPlaneIndex(self)
def getProperty(self, propertyName: 'std::string const &') -> "std::string":
return _multiresolutionimageinterface.MultiResolutionImage_getProperty(self, propertyName)
def getCacheSize(self) -> "unsigned long long const":
return _multiresolutionimageinterface.MultiResolutionImage_getCacheSize(self)
def setCacheSize(self, cacheSize: 'unsigned long long const') -> "void":
return _multiresolutionimageinterface.MultiResolutionImage_setCacheSize(self, cacheSize)
def getNumberOfLevels(self) -> "int const":
return _multiresolutionimageinterface.MultiResolutionImage_getNumberOfLevels(self)
def getDimensions(self) -> "std::vector< unsigned long long,std::allocator< unsigned long long > > const":
return _multiresolutionimageinterface.MultiResolutionImage_getDimensions(self)
def getLevelDimensions(self, level: 'unsigned int const &') -> "std::vector< unsigned long long,std::allocator< unsigned long long > > const":
return _multiresolutionimageinterface.MultiResolutionImage_getLevelDimensions(self, level)
def getLevelDownsample(self, level: 'unsigned int const &') -> "double const":
return _multiresolutionimageinterface.MultiResolutionImage_getLevelDownsample(self, level)
def getBestLevelForDownSample(self, downsample: 'double const &') -> "int const":
return _multiresolutionimageinterface.MultiResolutionImage_getBestLevelForDownSample(self, downsample)
def getMinValue(self, channel: 'int'=-1) -> "double":
return _multiresolutionimageinterface.MultiResolutionImage_getMinValue(self, channel)
def getMaxValue(self, channel: 'int'=-1) -> "double":
return _multiresolutionimageinterface.MultiResolutionImage_getMaxValue(self, channel)
def getFileType(self) -> "std::string const":
return _multiresolutionimageinterface.MultiResolutionImage_getFileType(self)
def close(self) -> "void":
return _multiresolutionimageinterface.MultiResolutionImage_close(self)
def getUCharPatch(self, startX: 'long long const &', startY: 'long long const &', width: 'unsigned long long const &', height: 'unsigned long long const &', level: 'unsigned int const &') -> "PyObject *":
return _multiresolutionimageinterface.MultiResolutionImage_getUCharPatch(self, startX, startY, width, height, level)
def getUInt16Patch(self, startX: 'long long const &', startY: 'long long const &', width: 'unsigned long long const &', height: 'unsigned long long const &', level: 'unsigned int const &') -> "PyObject *":
return _multiresolutionimageinterface.MultiResolutionImage_getUInt16Patch(self, startX, startY, width, height, level)
def getUInt32Patch(self, startX: 'long long const &', startY: 'long long const &', width: 'unsigned long long const &', height: 'unsigned long long const &', level: 'unsigned int const &') -> "PyObject *":
return _multiresolutionimageinterface.MultiResolutionImage_getUInt32Patch(self, startX, startY, width, height, level)
def getFloatPatch(self, startX: 'long long const &', startY: 'long long const &', width: 'unsigned long long const &', height: 'unsigned long long const &', level: 'unsigned int const &') -> "PyObject *":
return _multiresolutionimageinterface.MultiResolutionImage_getFloatPatch(self, startX, startY, width, height, level)
MultiResolutionImage_swigregister = _multiresolutionimageinterface.MultiResolutionImage_swigregister
MultiResolutionImage_swigregister(MultiResolutionImage)
class TIFFImage(MultiResolutionImage):
__swig_setmethods__ = {}
for _s in [MultiResolutionImage]:
__swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
__setattr__ = lambda self, name, value: _swig_setattr(self, TIFFImage, name, value)
__swig_getmethods__ = {}
for _s in [MultiResolutionImage]:
__swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
__getattr__ = lambda self, name: _swig_getattr(self, TIFFImage, name)
__repr__ = _swig_repr
def __init__(self):
this = _multiresolutionimageinterface.new_TIFFImage()
try:
self.this.append(this)
except __builtin__.Exception:
self.this = this
__swig_destroy__ = _multiresolutionimageinterface.delete_TIFFImage
__del__ = lambda self: None
def initializeType(self, imagePath: 'std::string const &') -> "bool":
return _multiresolutionimageinterface.TIFFImage_initializeType(self, imagePath)
def getMinValue(self, channel: 'int'=-1) -> "double":
return _multiresolutionimageinterface.TIFFImage_getMinValue(self, channel)
def getMaxValue(self, channel: 'int'=-1) -> "double":
return _multiresolutionimageinterface.TIFFImage_getMaxValue(self, channel)
def getEncodedTileSize(self, startX: 'long long const &', startY: 'long long const &', level: 'unsigned int const &') -> "long long":
return _multiresolutionimageinterface.TIFFImage_getEncodedTileSize(self, startX, startY, level)
def readEncodedDataFromImage(self, startX: 'long long const &', startY: 'long long const &', level: 'unsigned int const &') -> "unsigned char *":
return _multiresolutionimageinterface.TIFFImage_readEncodedDataFromImage(self, startX, startY, level)
def getEncodedTile(self, startX: 'long long const &', startY: 'long long const &', level: 'unsigned int const &') -> "PyObject *":
return _multiresolutionimageinterface.TIFFImage_getEncodedTile(self, startX, startY, level)
TIFFImage_swigregister = _multiresolutionimageinterface.TIFFImage_swigregister
TIFFImage_swigregister(TIFFImage)
def MultiResolutionImageToTIFFImage(base: 'std::shared_ptr< MultiResolutionImage >') -> "std::shared_ptr< TIFFImage >":
return _multiresolutionimageinterface.MultiResolutionImageToTIFFImage(base)
MultiResolutionImageToTIFFImage = _multiresolutionimageinterface.MultiResolutionImageToTIFFImage
class MultiResolutionImageReader(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, MultiResolutionImageReader, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, MultiResolutionImageReader, name)
__repr__ = _swig_repr
def __init__(self):
this = _multiresolutionimageinterface.new_MultiResolutionImageReader()
try:
self.this.append(this)
except __builtin__.Exception:
self.this = this
__swig_destroy__ = _multiresolutionimageinterface.delete_MultiResolutionImageReader
__del__ = lambda self: None
def open(self, *args) -> "MultiResolutionImage *":
return _multiresolutionimageinterface.MultiResolutionImageReader_open(self, *args)
MultiResolutionImageReader_swigregister = _multiresolutionimageinterface.MultiResolutionImageReader_swigregister
MultiResolutionImageReader_swigregister(MultiResolutionImageReader)
class MultiResolutionImageWriter(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, MultiResolutionImageWriter, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, MultiResolutionImageWriter, name)
__repr__ = _swig_repr
def __init__(self):
this = _multiresolutionimageinterface.new_MultiResolutionImageWriter()
try:
self.this.append(this)
except __builtin__.Exception:
self.this = this
__swig_destroy__ = _multiresolutionimageinterface.delete_MultiResolutionImageWriter
__del__ = lambda self: None
def openFile(self, fileName: 'std::string const &') -> "int":
return _multiresolutionimageinterface.MultiResolutionImageWriter_openFile(self, fileName)
def getOpenFile(self) -> "std::string const":
return _multiresolutionimageinterface.MultiResolutionImageWriter_getOpenFile(self)
def writeImageInformation(self, sizeX: 'unsigned long long const &', sizeY: 'unsigned long long const &') -> "int":
return _multiresolutionimageinterface.MultiResolutionImageWriter_writeImageInformation(self, sizeX, sizeY)
def writeBaseImagePart(self, data: 'void *') -> "void":
return _multiresolutionimageinterface.MultiResolutionImageWriter_writeBaseImagePart(self, data)
def writeBaseImagePartToLocation(self, data: 'void *', x: 'unsigned long long const &', y: 'unsigned long long const &') -> "void":
return _multiresolutionimageinterface.MultiResolutionImageWriter_writeBaseImagePartToLocation(self, data, x, y)
def writeImageToFile(self, img: 'MultiResolutionImage', fileName: 'std::string const &') -> "void":
return _multiresolutionimageinterface.MultiResolutionImageWriter_writeImageToFile(self, img, fileName)
def finishImage(self) -> "int":
return _multiresolutionimageinterface.MultiResolutionImageWriter_finishImage(self)
def setCompression(self, codec: 'pathology::Compression const &') -> "void":
return _multiresolutionimageinterface.MultiResolutionImageWriter_setCompression(self, codec)
def getCompression(self) -> "pathology::Compression const":
return _multiresolutionimageinterface.MultiResolutionImageWriter_getCompression(self)
def setInterpolation(self, interpolation: 'pathology::Interpolation const &') -> "void":
return _multiresolutionimageinterface.MultiResolutionImageWriter_setInterpolation(self, interpolation)
def getInterpolation(self) -> "pathology::Interpolation const":
return _multiresolutionimageinterface.MultiResolutionImageWriter_getInterpolation(self)
def setDataType(self, dType: 'pathology::DataType const &') -> "void":
return _multiresolutionimageinterface.MultiResolutionImageWriter_setDataType(self, dType)
def getDataType(self) -> "pathology::DataType const":
return _multiresolutionimageinterface.MultiResolutionImageWriter_getDataType(self)
def setColorType(self, cType: 'pathology::ColorType const &') -> "void":
return _multiresolutionimageinterface.MultiResolutionImageWriter_setColorType(self, cType)
def setNumberOfIndexedColors(self, numberOfIndexedColors: 'unsigned int const') -> "void":
return _multiresolutionimageinterface.MultiResolutionImageWriter_setNumberOfIndexedColors(self, numberOfIndexedColors)
def getNumberOfIndexedColors(self) -> "unsigned int":
return _multiresolutionimageinterface.MultiResolutionImageWriter_getNumberOfIndexedColors(self)
def getColorType(self) -> "pathology::ColorType const":
return _multiresolutionimageinterface.MultiResolutionImageWriter_getColorType(self)
def setTileSize(self, tileSize: 'unsigned int const &') -> "void":
return _multiresolutionimageinterface.MultiResolutionImageWriter_setTileSize(self, tileSize)
def setSpacing(self, spacing: 'vector_double') -> "void":
return _multiresolutionimageinterface.MultiResolutionImageWriter_setSpacing(self, spacing)
def getTileSize(self) -> "unsigned int const":
return _multiresolutionimageinterface.MultiResolutionImageWriter_getTileSize(self)
def getOverrideSpacing(self) -> "std::vector< double,std::allocator< double > > const":
return _multiresolutionimageinterface.MultiResolutionImageWriter_getOverrideSpacing(self)
def setOverrideSpacing(self, spacing: 'vector_double') -> "void":
return _multiresolutionimageinterface.MultiResolutionImageWriter_setOverrideSpacing(self, spacing)
def setJPEGQuality(self, quality: 'float const &') -> "int const":
return _multiresolutionimageinterface.MultiResolutionImageWriter_setJPEGQuality(self, quality)
def getJPEGQuality(self) -> "float const":
return _multiresolutionimageinterface.MultiResolutionImageWriter_getJPEGQuality(self)
def setProgressMonitor(self, monitor: 'ProgressMonitor *') -> "void":
return _multiresolutionimageinterface.MultiResolutionImageWriter_setProgressMonitor(self, monitor)
MultiResolutionImageWriter_swigregister = _multiresolutionimageinterface.MultiResolutionImageWriter_swigregister
MultiResolutionImageWriter_swigregister(MultiResolutionImageWriter)
# This file is compatible with both classic and new-style classes.
| 47.658315
| 283
| 0.735872
| 11,057
| 110,329
| 6.875464
| 0.038528
| 0.241246
| 0.167188
| 0.076951
| 0.793586
| 0.732669
| 0.688748
| 0.633264
| 0.58754
| 0.5196
| 0
| 0.000561
| 0.159559
| 110,329
| 2,314
| 284
| 47.678911
| 0.819304
| 0.002674
| 0
| 0.316774
| 1
| 0.003507
| 0.165134
| 0.005753
| 0
| 0
| 0
| 0
| 0
| 1
| 0.339568
| false
| 0.001169
| 0.011105
| 0.318527
| 0.824664
| 0
| 0
| 0
| 0
| null | 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 6
|
42b05f423895c54452abf8e36684d252b7b279df
| 54
|
py
|
Python
|
nlplingo/oregon/event_models/uoregon/models/pipeline/_01/modules/__init__.py
|
BBN-E/nlplingo
|
32ff17b1320937faa3d3ebe727032f4b3e7a353d
|
[
"Apache-2.0"
] | 3
|
2020-10-22T13:28:00.000Z
|
2022-03-24T19:57:22.000Z
|
nlplingo/oregon/event_models/uoregon/models/pipeline/_01/modules/__init__.py
|
BBN-E/nlplingo
|
32ff17b1320937faa3d3ebe727032f4b3e7a353d
|
[
"Apache-2.0"
] | null | null | null |
nlplingo/oregon/event_models/uoregon/models/pipeline/_01/modules/__init__.py
|
BBN-E/nlplingo
|
32ff17b1320937faa3d3ebe727032f4b3e7a353d
|
[
"Apache-2.0"
] | 1
|
2020-10-22T13:29:51.000Z
|
2020-10-22T13:29:51.000Z
|
from .ED_model import *
from .argument_model import *
| 18
| 29
| 0.777778
| 8
| 54
| 5
| 0.625
| 0.55
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.148148
| 54
| 2
| 30
| 27
| 0.869565
| 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
| 1
| 0
|
0
| 6
|
c40f808e2f15eb788e59ae7ec4e21d91cd7db9b3
| 46
|
py
|
Python
|
defx/metrics/__init__.py
|
DFKI-NLP/defx
|
0c8b7a5ff4904a54e28f187b938198744e4a450a
|
[
"MIT"
] | 5
|
2020-04-29T07:41:58.000Z
|
2021-12-09T10:07:08.000Z
|
defx/metrics/__init__.py
|
DFKI-NLP/defx
|
0c8b7a5ff4904a54e28f187b938198744e4a450a
|
[
"MIT"
] | 1
|
2020-10-17T16:51:06.000Z
|
2020-10-27T13:44:35.000Z
|
defx/metrics/__init__.py
|
DFKI-NLP/defx
|
0c8b7a5ff4904a54e28f187b938198744e4a450a
|
[
"MIT"
] | null | null | null |
from defx.metrics.f1_measure import F1Measure
| 23
| 45
| 0.869565
| 7
| 46
| 5.571429
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.047619
| 0.086957
| 46
| 1
| 46
| 46
| 0.880952
| 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
| 1
| 0
|
0
| 6
|
c431c34ca406edcae46c45602a9989f594043857
| 291
|
py
|
Python
|
ansible-devel/test/units/utils/collection_loader/fixtures/collections/ansible_collections/testns/testcoll/plugins/module_utils/my_util.py
|
satishcarya/ansible
|
ed091e174c26316f621ac16344a95c99f56bdc43
|
[
"MIT"
] | null | null | null |
ansible-devel/test/units/utils/collection_loader/fixtures/collections/ansible_collections/testns/testcoll/plugins/module_utils/my_util.py
|
satishcarya/ansible
|
ed091e174c26316f621ac16344a95c99f56bdc43
|
[
"MIT"
] | null | null | null |
ansible-devel/test/units/utils/collection_loader/fixtures/collections/ansible_collections/testns/testcoll/plugins/module_utils/my_util.py
|
satishcarya/ansible
|
ed091e174c26316f621ac16344a95c99f56bdc43
|
[
"MIT"
] | null | null | null |
# WARNING: Changing line numbers of code in this file will break collection tests that use tracing to check paths and line numbers.
# Also, do not import division from __future__ as this will break detection of __future__ inheritance on Python 2.
def question():
return 3 / 2
| 41.571429
| 131
| 0.749141
| 45
| 291
| 4.666667
| 0.822222
| 0.104762
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.013158
| 0.216495
| 291
| 6
| 132
| 48.5
| 0.907895
| 0.862543
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| true
| 0
| 0
| 0.5
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 1
| 1
| 0
|
0
| 6
|
c438898ba3153bcc7954a555139d3a8a2f69b83d
| 144
|
py
|
Python
|
scripts/update_db.py
|
pmbarrett314/mtg-skeleton-generator
|
ea1d70ce523516dc4c0d67932012f225cf62c59c
|
[
"MIT"
] | null | null | null |
scripts/update_db.py
|
pmbarrett314/mtg-skeleton-generator
|
ea1d70ce523516dc4c0d67932012f225cf62c59c
|
[
"MIT"
] | null | null | null |
scripts/update_db.py
|
pmbarrett314/mtg-skeleton-generator
|
ea1d70ce523516dc4c0d67932012f225cf62c59c
|
[
"MIT"
] | null | null | null |
from context import mtg_skeleton_gen
from mtg_skeleton_gen.mtg_db import db_file, update_db
if __name__ == "__main__":
update_db(db_file)
| 20.571429
| 54
| 0.798611
| 24
| 144
| 4.083333
| 0.5
| 0.22449
| 0.285714
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.138889
| 144
| 6
| 55
| 24
| 0.790323
| 0
| 0
| 0
| 0
| 0
| 0.055556
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 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
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 6
|
675bea785d93ef1dd70db1e9f6d8bcd59faa1a39
| 214
|
py
|
Python
|
imacs_app/admin.py
|
pnmadelaine/imacs
|
9a5203cfe98e0af8368d442f6bcf9941689b0155
|
[
"MIT"
] | null | null | null |
imacs_app/admin.py
|
pnmadelaine/imacs
|
9a5203cfe98e0af8368d442f6bcf9941689b0155
|
[
"MIT"
] | 1
|
2022-02-28T23:22:37.000Z
|
2022-03-13T16:12:31.000Z
|
imacs_app/admin.py
|
pnmadelaine/imacs
|
9a5203cfe98e0af8368d442f6bcf9941689b0155
|
[
"MIT"
] | 2
|
2021-10-31T22:55:46.000Z
|
2022-02-27T09:55:57.000Z
|
from django.contrib import admin
from .models import TaskList, TaskCategory, Task, TaskDone
admin.site.register(TaskList)
admin.site.register(TaskCategory)
admin.site.register(Task)
admin.site.register(TaskDone)
| 23.777778
| 58
| 0.82243
| 28
| 214
| 6.285714
| 0.428571
| 0.204545
| 0.386364
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.079439
| 214
| 8
| 59
| 26.75
| 0.893401
| 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 | 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
| 6
|
e1dbdd93faf9167684505dfad64957c5785d26c2
| 123
|
py
|
Python
|
hypothesize/__init__.py
|
bwettimz/hypothesize
|
56d75ade8cd2341542a770d05ebead3eef45d363
|
[
"BSD-3-Clause"
] | 26
|
2020-08-20T04:27:27.000Z
|
2022-02-25T02:50:32.000Z
|
hypothesize/__init__.py
|
bwettimz/hypothesize
|
56d75ade8cd2341542a770d05ebead3eef45d363
|
[
"BSD-3-Clause"
] | 9
|
2020-03-04T21:34:22.000Z
|
2021-11-25T20:11:46.000Z
|
hypothesize/__init__.py
|
bwettimz/hypothesize
|
56d75ade8cd2341542a770d05ebead3eef45d363
|
[
"BSD-3-Clause"
] | 2
|
2020-10-09T03:43:15.000Z
|
2021-11-30T11:44:30.000Z
|
from hypothesize import compare_groups_with_single_factor, measuring_associations, \
compare_groups_with_two_factors
| 24.6
| 84
| 0.869919
| 15
| 123
| 6.533333
| 0.8
| 0.265306
| 0.346939
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.105691
| 123
| 4
| 85
| 30.75
| 0.890909
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 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
| 6
|
c02e3c98b6ec9c39a55f4789e1c6c2fa32bd8f2e
| 4,108
|
py
|
Python
|
script/validator/tests.py
|
sowd/ECHONETLite-ObjectDatabase
|
be7b2ac6c5ef12b15e6100aa0091905d608b58b8
|
[
"CC0-1.0"
] | 6
|
2015-04-23T03:51:42.000Z
|
2021-09-14T03:29:46.000Z
|
script/validator/tests.py
|
sowd/ECHONETLite-ObjectDatabase
|
be7b2ac6c5ef12b15e6100aa0091905d608b58b8
|
[
"CC0-1.0"
] | 2
|
2015-12-25T00:13:26.000Z
|
2016-04-13T23:01:25.000Z
|
script/validator/tests.py
|
sowd/ECHONETLite-ObjectDatabase
|
be7b2ac6c5ef12b15e6100aa0091905d608b58b8
|
[
"CC0-1.0"
] | 5
|
2015-12-10T04:33:35.000Z
|
2022-01-18T15:14:13.000Z
|
#/usr/bin/env python
#coding:utf-8
from validator import *
import unittest
class ValidatorIsValidBytesString(unittest.TestCase):
def test_1(self):
self.assertFalse(Validator.is_valid_bytes_string("0"))
def test_2(self):
self.assertFalse(Validator.is_valid_bytes_string("0x"))
def test_3(self):
self.assertFalse(Validator.is_valid_bytes_string("0x8"))
def test_4(self):
self.assertTrue(Validator.is_valid_bytes_string("0x80"))
def test_5(self):
self.assertFalse(Validator.is_valid_bytes_string("0x800"))
def test_first_1(self):
self.assertFalse(Validator.is_valid_bytes_string("0a00"))
def test_first_2(self):
self.assertTrue(Validator.is_valid_bytes_string("0x80"))
def test_hex_00(self):
self.assertTrue(Validator.is_valid_bytes_string("0x00"))
def test_hex_aa(self):
self.assertTrue(Validator.is_valid_bytes_string("0xaa"))
def test_hex_Aa(self):
self.assertTrue(Validator.is_valid_bytes_string("0xAa"))
def test_hex_AA(self):
self.assertTrue(Validator.is_valid_bytes_string("0xAA"))
def test_hex_N0(self):
self.assertFalse(Validator.is_valid_bytes_string("0xN0"))
def test_hex_0N(self):
self.assertFalse(Validator.is_valid_bytes_string("0x0N"))
class ValidatorCheckHeader(unittest.TestCase):
def test_checkheader_same(self):
self.assertTrue(Validator.check_header([1,2,3],[1,2,3]))
def test_checkheader_1(self):
self.assertTrue(Validator.check_header([1,2,3],[1,2,3,4]))
def test_checkheader_2(self):
self.assertFalse(Validator.check_header([1,2,3,4],[1,2,3]))
class ValidatorIsValidUnitString(unittest.TestCase):
pass
class ValidatorIsValidDataSize(unittest.TestCase):
def test_decimal1(self):
self.assertTrue(Validator.is_valid_data_size("0"))
def test_decimal2(self):
self.assertTrue(Validator.is_valid_data_size("10"))
def test_real(self):
self.assertFalse(Validator.is_valid_data_size("1.0"))
def test_hex1(self):
self.assertFalse(Validator.is_valid_data_size("A"))
def test_hex2(self):
self.assertFalse(Validator.is_valid_data_size("0A"))
def test_max1(self):
self.assertFalse(Validator.is_valid_data_size("<="))
def test_max2(self):
self.assertTrue(Validator.is_valid_data_size("<= 1"))
def test_max3(self):
self.assertFalse(Validator.is_valid_data_size("<= 1 2"))
def test_or1(self):
self.assertFalse(Validator.is_valid_data_size("or"))
def test_or2(self):
self.assertFalse(Validator.is_valid_data_size("or 1"))
def test_or3(self):
self.assertTrue(Validator.is_valid_data_size("or 1 2"))
def test_or4(self):
self.assertTrue(Validator.is_valid_data_size("or 1 2 3"))
def test_or5(self):
self.assertFalse(Validator.is_valid_data_size("or 1 2a"))
class ValidatorIsValidAccessRule(unittest.TestCase):
def test_mandatory(self):
self.assertTrue(Validator.is_valid_access_rule("mandatory"))
def test_optional(self):
self.assertTrue(Validator.is_valid_access_rule("optional"))
def test_(self):
self.assertTrue(Validator.is_valid_access_rule("-"))
def test_none(self):
self.assertFalse(Validator.is_valid_access_rule("none"))
class ValidatorIsValidAnnouncement(unittest.TestCase):
def test_mandatory(self):
self.assertTrue(Validator.is_valid_announcement("mandatory"))
def test_optional(self):
self.assertFalse(Validator.is_valid_announcement("optional"))
def test_(self):
self.assertTrue(Validator.is_valid_announcement("-"))
def test_none(self):
self.assertFalse(Validator.is_valid_announcement("none"))
class ValidatorIsValidText(unittest.TestCase):
def test_null(self):
self.assertTrue(Validator.is_valid_text(""))
def test_enter(self):
self.assertTrue(Validator.is_valid_text("\n"))
def test_x000a(self):
self.assertFalse(Validator.is_valid_text("_x000a_"))
if __name__ == "__main__":
unittest.main()
| 38.392523
| 69
| 0.713486
| 545
| 4,108
| 5.069725
| 0.163303
| 0.101339
| 0.21426
| 0.202678
| 0.735433
| 0.718784
| 0.680058
| 0.622512
| 0.407528
| 0.256605
| 0
| 0.027842
| 0.160662
| 4,108
| 106
| 70
| 38.754717
| 0.773492
| 0.007546
| 0
| 0.108696
| 0
| 0
| 0.038292
| 0
| 0
| 0
| 0.007855
| 0
| 0.434783
| 1
| 0.434783
| false
| 0.01087
| 0.021739
| 0
| 0.532609
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 6
|
fbf3270cebbd586fbcef3449db1464221c390e3d
| 41,553
|
py
|
Python
|
test/lens/util/test_lens_fit_stack_util.py
|
AshKelly/PyAutoLens
|
043795966338a655339e61782253ad67cc3c14e6
|
[
"MIT"
] | null | null | null |
test/lens/util/test_lens_fit_stack_util.py
|
AshKelly/PyAutoLens
|
043795966338a655339e61782253ad67cc3c14e6
|
[
"MIT"
] | null | null | null |
test/lens/util/test_lens_fit_stack_util.py
|
AshKelly/PyAutoLens
|
043795966338a655339e61782253ad67cc3c14e6
|
[
"MIT"
] | null | null | null |
import numpy as np
import pytest
from autolens.data.array import scaled_array
from autolens.data.array import mask as msk
from autolens.data.array import grids
from autolens.data import ccd as im, convolution
from autolens.model.profiles import light_profiles as lp
from autolens.model.profiles import mass_profiles as mp
from autolens.lens.util import lens_fit_stack_util as stack_util
from autolens.lens.stack import ray_tracing_stack
from autolens.model.inversion import pixelizations as pix
from autolens.model.inversion import regularization as reg
from autolens.model.galaxy import galaxy as g
@pytest.fixture(name='mask_0')
def make_mask_0():
return msk.Mask(array=np.array([[True, True, True, True],
[True, False, False, True],
[True, False, False, True],
[True, True, True, True]]), pixel_scale=1.0)
@pytest.fixture(name='mask_1')
def make_mask_1():
return msk.Mask(array=np.array([[True, True, True, True],
[True, False, False, True],
[True, True, False, True],
[True, True, True, True]]), pixel_scale=1.0)
@pytest.fixture(name='blurring_mask_0')
def make_blurring_mask_0():
return msk.Mask(array=np.array([[False, False, False, False],
[False, True, True, False],
[False, True, True, False],
[False, False, False, False]]), pixel_scale=1.0)
@pytest.fixture(name='blurring_mask_1')
def make_blurring_mask_1():
return msk.Mask(array=np.array([[False, False, False, False],
[False, True, True, False],
[False, True, False, False],
[False, False, False, True]]), pixel_scale=1.0)
@pytest.fixture(name='convolver_no_blur_0')
def make_convolver_no_blur_0(mask_0, blurring_mask_0):
psf = np.array([[0.0, 0.0, 0.0],
[0.0, 1.0, 0.0],
[0.0, 0.0, 0.0]])
return convolution.ConvolverImage(mask=mask_0, blurring_mask=blurring_mask_0, psf=psf)
@pytest.fixture(name='convolver_no_blur_1')
def make_convolver_no_blur_1(mask_1, blurring_mask_1):
psf = np.array([[0.0, 0.0, 0.0],
[0.0, 1.0, 0.0],
[0.0, 0.0, 0.0]])
return convolution.ConvolverImage(mask=mask_1, blurring_mask=blurring_mask_1, psf=psf)
@pytest.fixture(name='convolver_blur_0')
def make_convolver_blur_0(mask_0, blurring_mask_0):
psf = np.array([[1.0, 1.0, 1.0],
[1.0, 1.0, 1.0],
[1.0, 1.0, 1.0]])
return convolution.ConvolverImage(mask=mask_0, blurring_mask=blurring_mask_0, psf=psf)
@pytest.fixture(name='convolver_blur_1')
def make_convolver_blur_1(mask_1, blurring_mask_1):
psf = np.array([[1.0, 1.0, 1.0],
[1.0, 1.0, 1.0],
[1.0, 1.0, 1.0]])
return convolution.ConvolverImage(mask=mask_1, blurring_mask=blurring_mask_1, psf=psf)
@pytest.fixture(name="galaxy_light")
def make_galaxy_light():
return g.Galaxy(light_profile=lp.EllipticalSersic(centre=(0.1, 0.1), axis_ratio=1.0, phi=0.0, intensity=1.0,
effective_radius=0.6, sersic_index=4.0))
class MapArrays1D:
def test__two_1d_arrays_in__mapped_2d_arrays_out(self, mask_0, mask_1):
array_1d_0 = np.array([1.0, 2.0, 3.0, 4.0])
regular_grid_0 = grids.RegularGrid.from_mask(mask=mask_0)
array_1d_1 = np.array([5.0, 6.0, 7.0])
regular_grid_1 = grids.RegularGrid.from_mask(mask=mask_1)
arrays_2d = stack_util.map_arrays_1d_to_scaled_arrays(arrays_1d=[array_1d_0, array_1d_1],
map_to_scaled_arrays=[regular_grid_0.scaled_array_from_array_1d,
regular_grid_1.scaled_array_from_array_1d])
assert (arrays_2d[0] == np.array([[0.0, 0.0, 0.0, 0.0],
[0.0, 1.0, 2.0, 0.0],
[0.0, 3.0, 4.0, 0.0],
[0.0, 0.0, 0.0, 0.0]])).all()
assert (arrays_2d[1] == np.array([[0.0, 0.0, 0.0, 0.0],
[0.0, 5.0, 6.0, 0.0],
[0.0, 7.0, 0.0, 0.0],
[0.0, 0.0, 0.0, 0.0]])).all()
class TestBlurredImages:
def test__2x2_image_all_1s__3x3__psf_central_1__no_blurring(self, convolver_no_blur_0, convolver_blur_0):
image_1d_0 = np.array([1.0, 1.0, 1.0, 1.0])
blurring_image_1d_0 = np.array([0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0])
image_1d_1 = np.array([1.0, 1.0, 1.0, 1.0])
blurring_image_1d_1 = np.array([0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0])
blurred_images_1d = stack_util.blurred_images_1d_of_images_from_1d_unblurred_and_bluring_images(
unblurred_images_1d=[image_1d_0, image_1d_1],
blurring_images_1d=[blurring_image_1d_0, blurring_image_1d_1],
convolvers=[convolver_no_blur_0, convolver_blur_0])
assert (blurred_images_1d[0] == np.array([1.0, 1.0, 1.0, 1.0])).all()
assert (blurred_images_1d[1] == np.array([4.0, 4.0, 4.0, 4.0])).all()
class TestBlurredImageOfPlanes:
def test__blurred_image_of_planes__x2_images(self, mask_0, mask_1, convolver_blur_0, convolver_blur_1):
data_grid_stack_0 = grids.GridStack.grid_stack_from_mask_sub_grid_size_and_psf_shape(mask=mask_0,
sub_grid_size=1, psf_shape=(3, 3))
data_grid_stack_1 = grids.GridStack.grid_stack_from_mask_sub_grid_size_and_psf_shape(mask=mask_1,
sub_grid_size=1, psf_shape=(3, 3))
g0 = g.Galaxy(light_profile=lp.EllipticalSersic(intensity=1.0))
g1 = g.Galaxy(light_profile=lp.EllipticalSersic(intensity=2.0))
tracer = ray_tracing_stack.TracerImageSourcePlanesStack(lens_galaxies=[g0], source_galaxies=[g1],
image_plane_grid_stacks=[data_grid_stack_0, data_grid_stack_1])
blurred_lens_image_0 = convolver_blur_0.convolve_image(image_array=tracer.image_plane.image_plane_images_1d[0],
blurring_array=tracer.image_plane.image_plane_blurring_images_1d[0])
blurred_lens_image_0 = data_grid_stack_0.regular.scaled_array_from_array_1d(array_1d=blurred_lens_image_0)
blurred_source_image_0 = convolver_blur_0.convolve_image(image_array=tracer.source_plane.image_plane_images_1d[0],
blurring_array=tracer.source_plane.image_plane_blurring_images_1d[0])
blurred_source_image_0 = data_grid_stack_0.regular.scaled_array_from_array_1d(array_1d=blurred_source_image_0)
blurred_lens_image_1 = convolver_blur_1.convolve_image(image_array=tracer.image_plane.image_plane_images_1d[1],
blurring_array=tracer.image_plane.image_plane_blurring_images_1d[1])
blurred_lens_image_1 = data_grid_stack_1.regular.scaled_array_from_array_1d(array_1d=blurred_lens_image_1)
blurred_source_image_1 = convolver_blur_1.convolve_image(image_array=tracer.source_plane.image_plane_images_1d[1],
blurring_array=tracer.source_plane.image_plane_blurring_images_1d[1])
blurred_source_image_1 = data_grid_stack_1.regular.scaled_array_from_array_1d(array_1d=blurred_source_image_1)
blurred_images_of_planes = stack_util.blurred_images_of_images_and_planes_from_1d_images_and_convolver(
total_planes=tracer.total_planes, image_plane_images_1d_of_planes=tracer.image_plane_images_1d_of_planes,
image_plane_blurring_images_1d_of_planes=tracer.image_plane_blurring_images_1d_of_planes,
convolvers=[convolver_blur_0, convolver_blur_1],
map_to_scaled_arrays=[data_grid_stack_0.regular.array_2d_from_array_1d,
data_grid_stack_1.regular.array_2d_from_array_1d])
assert (blurred_images_of_planes[0][0] == blurred_lens_image_0).all()
assert (blurred_images_of_planes[0][1] == blurred_source_image_0).all()
assert (blurred_images_of_planes[1][0] == blurred_lens_image_1).all()
assert (blurred_images_of_planes[1][1] == blurred_source_image_1).all()
class TestUnmaskedModelImagesOfDatas:
def test___3x3_padded_image__one_psf_blurs__other_asymmetric(self):
mask = msk.Mask(array=np.array([[True, True, True],
[True, False, True],
[True, True, True]]), pixel_scale=1.0)
padded_grid_stack = grids.GridStack.padded_grid_stack_from_mask_sub_grid_size_and_psf_shape(mask=mask,
sub_grid_size=1,
psf_shape=(3, 3))
psf_0 = im.PSF(array=(np.array([[0.0, 0.0, 0.0],
[0.0, 1.0, 0.0],
[0.0, 0.0, 0.0]])), pixel_scale=1.0)
psf_1 = im.PSF(array=(np.array([[0.0, 3.0, 0.0],
[0.0, 1.0, 2.0],
[0.0, 0.0, 0.0]])), pixel_scale=1.0)
unmasked_image_1d_1 = np.zeros(25)
unmasked_image_1d_1[12] = 1.0
unmasked_blurred_images_of_datas = \
stack_util.unmasked_blurred_image_of_datas_from_padded_grid_stacks_psfs_and_unmasked_images(
padded_grid_stacks=[padded_grid_stack, padded_grid_stack], psfs=[psf_0, psf_1],
unmasked_images_1d=[np.ones(25), unmasked_image_1d_1])
assert (unmasked_blurred_images_of_datas[0] == np.ones((3, 3))).all()
assert (unmasked_blurred_images_of_datas[1] == np.array([[0.0, 3.0, 0.0],
[0.0, 1.0, 2.0],
[0.0, 0.0, 0.0]])).all()
class TestUnmaskedModelImageOfDatasAndPlanes:
def test___x2_galaxies__3x3_padded_image__x2_images__one_blurs__one_asymetric_psf_blurring(self):
mask = msk.Mask(array=np.array([[True, True, True],
[True, False, True],
[True, True, True]]), pixel_scale=1.0)
padded_grid_stack = grids.GridStack.padded_grid_stack_from_mask_sub_grid_size_and_psf_shape(mask=mask,
sub_grid_size=1,
psf_shape=(3, 3))
psf_0 = im.PSF(array=(np.array([[0.0, 0.0, 0.0],
[0.0, 1.0, 0.0],
[0.0, 0.0, 0.0]])), pixel_scale=1.0)
psf_1 = im.PSF(array=(np.array([[0.0, 3.0, 0.0],
[0.0, 1.0, 2.0],
[0.0, 0.0, 0.0]])), pixel_scale=1.0)
g0 = g.Galaxy(light_profile=lp.EllipticalSersic(intensity=0.1))
g1 = g.Galaxy(light_profile=lp.EllipticalSersic(intensity=0.2))
tracer = ray_tracing_stack.TracerImagePlaneStack(lens_galaxies=[g0, g1],
image_plane_grid_stacks=[padded_grid_stack, padded_grid_stack])
manual_blurred_image_0 = tracer.image_plane.image_plane_images_1d[0]
manual_blurred_image_0 = padded_grid_stack.regular.map_to_2d_keep_padded(
padded_array_1d=manual_blurred_image_0)
manual_blurred_image_0 = psf_0.convolve(array=manual_blurred_image_0)
manual_blurred_image_1 = tracer.image_plane.image_plane_images_1d[1]
manual_blurred_image_1 = padded_grid_stack.regular.map_to_2d_keep_padded(
padded_array_1d=manual_blurred_image_1)
manual_blurred_image_1 = psf_1.convolve(array=manual_blurred_image_1)
unmasked_blurred_image_of_datas_and_planes = \
stack_util.unmasked_blurred_image_of_datas_and_planes_from_padded_grid_stacks_and_psf(
planes=tracer.planes, padded_grid_stacks=[padded_grid_stack, padded_grid_stack], psfs=[psf_0, psf_1])
assert unmasked_blurred_image_of_datas_and_planes[0][0] == \
pytest.approx(manual_blurred_image_0[1:4, 1:4], 1.0e-4)
assert unmasked_blurred_image_of_datas_and_planes[1][0] == \
pytest.approx(manual_blurred_image_1[1:4, 1:4], 1.0e-4)
def test___same_as_above__use_galaxies_to_make_plane_images(self):
mask = msk.Mask(array=np.array([[True, True, True],
[True, False, True],
[True, True, True]]), pixel_scale=1.0)
padded_grid_stack = grids.GridStack.padded_grid_stack_from_mask_sub_grid_size_and_psf_shape(mask=mask,
sub_grid_size=1,
psf_shape=(3, 3))
psf_0 = im.PSF(array=(np.array([[0.0, 0.0, 0.0],
[0.0, 1.0, 0.0],
[0.0, 0.0, 0.0]])), pixel_scale=1.0)
psf_1 = im.PSF(array=(np.array([[0.0, 3.0, 0.0],
[0.0, 1.0, 2.0],
[0.0, 0.0, 0.0]])), pixel_scale=1.0)
g0 = g.Galaxy(light_profile=lp.EllipticalSersic(intensity=0.1))
g1 = g.Galaxy(light_profile=lp.EllipticalSersic(intensity=0.2))
tracer = ray_tracing_stack.TracerImagePlaneStack(lens_galaxies=[g0, g1],
image_plane_grid_stacks=[padded_grid_stack, padded_grid_stack])
manual_blurred_image_00 = tracer.image_plane.image_plane_images_1d_of_galaxies[0][0]
manual_blurred_image_00 = padded_grid_stack.regular.map_to_2d_keep_padded(
padded_array_1d=manual_blurred_image_00)
manual_blurred_image_00 = psf_0.convolve(array=manual_blurred_image_00)
manual_blurred_image_01 = tracer.image_plane.image_plane_images_1d_of_galaxies[0][1]
manual_blurred_image_01 = padded_grid_stack.regular.map_to_2d_keep_padded(
padded_array_1d=manual_blurred_image_01)
manual_blurred_image_01 = psf_0.convolve(array=manual_blurred_image_01)
manual_blurred_image_10 = tracer.image_plane.image_plane_images_1d_of_galaxies[1][0]
manual_blurred_image_10 = padded_grid_stack.regular.map_to_2d_keep_padded(
padded_array_1d=manual_blurred_image_10)
manual_blurred_image_10 = psf_1.convolve(array=manual_blurred_image_10)
manual_blurred_image_11 = tracer.image_plane.image_plane_images_1d_of_galaxies[1][1]
manual_blurred_image_11 = padded_grid_stack.regular.map_to_2d_keep_padded(
padded_array_1d=manual_blurred_image_11)
manual_blurred_image_11 = psf_1.convolve(array=manual_blurred_image_11)
unmasked_blurred_image_of_datas_and_planes = \
stack_util.unmasked_blurred_image_of_datas_and_planes_from_padded_grid_stacks_and_psf(
planes=tracer.planes, padded_grid_stacks=[padded_grid_stack, padded_grid_stack], psfs=[psf_0, psf_1])
assert unmasked_blurred_image_of_datas_and_planes[0][0] == \
pytest.approx(manual_blurred_image_00[1:4, 1:4] + manual_blurred_image_01[1:4, 1:4], 1.0e-4)
assert unmasked_blurred_image_of_datas_and_planes[1][0] == \
pytest.approx(manual_blurred_image_10[1:4, 1:4] + manual_blurred_image_11[1:4, 1:4], 1.0e-4)
def test___same_as_above__image_and_source_plane__use_planes(self):
mask = msk.Mask(array=np.array([[True, True, True],
[True, False, True],
[True, True, True]]), pixel_scale=1.0)
padded_grid_stack = grids.GridStack.padded_grid_stack_from_mask_sub_grid_size_and_psf_shape(mask=mask,
sub_grid_size=1,
psf_shape=(3, 3))
psf_0 = im.PSF(array=(np.array([[0.0, 0.0, 0.0],
[0.0, 1.0, 0.0],
[0.0, 0.0, 0.0]])), pixel_scale=1.0)
psf_1 = im.PSF(array=(np.array([[0.0, 3.0, 0.0],
[0.0, 1.0, 2.0],
[0.0, 0.0, 0.0]])), pixel_scale=1.0)
g0 = g.Galaxy(light_profile=lp.EllipticalSersic(intensity=0.1))
g1 = g.Galaxy(light_profile=lp.EllipticalSersic(intensity=0.2))
g2 = g.Galaxy(mass_profile=mp.SphericalIsothermal(einstein_radius=1.0))
tracer = ray_tracing_stack.TracerImageSourcePlanesStack(lens_galaxies=[g0, g1, g2], source_galaxies=[g0, g1],
image_plane_grid_stacks=[padded_grid_stack,
padded_grid_stack])
manual_blurred_image_i0 = tracer.image_plane.image_plane_images_1d[0]
manual_blurred_image_i0 = padded_grid_stack.regular.map_to_2d_keep_padded(
padded_array_1d=manual_blurred_image_i0)
manual_blurred_image_i0 = psf_0.convolve(array=manual_blurred_image_i0)
manual_blurred_image_i1 = tracer.image_plane.image_plane_images_1d[1]
manual_blurred_image_i1 = padded_grid_stack.regular.map_to_2d_keep_padded(
padded_array_1d=manual_blurred_image_i1)
manual_blurred_image_i1 = psf_1.convolve(array=manual_blurred_image_i1)
manual_blurred_image_s0 = tracer.source_plane.image_plane_images_1d[0]
manual_blurred_image_s0 = padded_grid_stack.regular.map_to_2d_keep_padded(
padded_array_1d=manual_blurred_image_s0)
manual_blurred_image_s0 = psf_0.convolve(array=manual_blurred_image_s0)
manual_blurred_image_s1 = tracer.source_plane.image_plane_images_1d[1]
manual_blurred_image_s1 = padded_grid_stack.regular.map_to_2d_keep_padded(
padded_array_1d=manual_blurred_image_s1)
manual_blurred_image_s1 = psf_1.convolve(array=manual_blurred_image_s1)
unmasked_blurred_image_of_datas_and_planes = \
stack_util.unmasked_blurred_image_of_datas_and_planes_from_padded_grid_stacks_and_psf(
planes=tracer.planes, padded_grid_stacks=[padded_grid_stack, padded_grid_stack], psfs=[psf_0, psf_1])
assert unmasked_blurred_image_of_datas_and_planes[0][0] == \
pytest.approx(manual_blurred_image_i0[1:4,1:4], 1.0e-4)
assert unmasked_blurred_image_of_datas_and_planes[1][0] == \
pytest.approx(manual_blurred_image_i1[1:4,1:4], 1.0e-4)
assert unmasked_blurred_image_of_datas_and_planes[0][1] == \
pytest.approx(manual_blurred_image_s0[1:4,1:4], 1.0e-4)
assert unmasked_blurred_image_of_datas_and_planes[1][1] == \
pytest.approx(manual_blurred_image_s1[1:4,1:4], 1.0e-4)
def test___same_as_above__image_and_source_plane__use_galaxies(self):
mask = msk.Mask(array=np.array([[True, True, True],
[True, False, True],
[True, True, True]]), pixel_scale=1.0)
padded_grid_stack = grids.GridStack.padded_grid_stack_from_mask_sub_grid_size_and_psf_shape(mask=mask,
sub_grid_size=1,
psf_shape=(3, 3))
psf_0 = im.PSF(array=(np.array([[0.0, 0.0, 0.0],
[0.0, 1.0, 0.0],
[0.0, 0.0, 0.0]])), pixel_scale=1.0)
psf_1 = im.PSF(array=(np.array([[0.0, 3.0, 0.0],
[0.0, 1.0, 2.0],
[0.0, 0.0, 0.0]])), pixel_scale=1.0)
g0 = g.Galaxy(light_profile=lp.EllipticalSersic(intensity=0.1))
g1 = g.Galaxy(light_profile=lp.EllipticalSersic(intensity=0.2))
g2 = g.Galaxy(mass_profile=mp.SphericalIsothermal(einstein_radius=1.0))
tracer = ray_tracing_stack.TracerImageSourcePlanesStack(lens_galaxies=[g0, g1, g2], source_galaxies=[g0, g1],
image_plane_grid_stacks=[padded_grid_stack,
padded_grid_stack])
manual_blurred_image_i00 = tracer.image_plane.image_plane_images_1d_of_galaxies[0][0]
manual_blurred_image_i00 = padded_grid_stack.regular.map_to_2d_keep_padded(
padded_array_1d=manual_blurred_image_i00)
manual_blurred_image_i00 = psf_0.convolve(array=manual_blurred_image_i00)
manual_blurred_image_i01 = tracer.image_plane.image_plane_images_1d_of_galaxies[0][1]
manual_blurred_image_i01 = padded_grid_stack.regular.map_to_2d_keep_padded(
padded_array_1d=manual_blurred_image_i01)
manual_blurred_image_i01 = psf_0.convolve(array=manual_blurred_image_i01)
manual_blurred_image_i10 = tracer.image_plane.image_plane_images_1d_of_galaxies[1][0]
manual_blurred_image_i10 = padded_grid_stack.regular.map_to_2d_keep_padded(
padded_array_1d=manual_blurred_image_i10)
manual_blurred_image_i10 = psf_1.convolve(array=manual_blurred_image_i10)
manual_blurred_image_i11 = tracer.image_plane.image_plane_images_1d_of_galaxies[1][1]
manual_blurred_image_i11 = padded_grid_stack.regular.map_to_2d_keep_padded(
padded_array_1d=manual_blurred_image_i11)
manual_blurred_image_i11 = psf_1.convolve(array=manual_blurred_image_i11)
manual_blurred_image_s00 = tracer.source_plane.image_plane_images_1d_of_galaxies[0][0]
manual_blurred_image_s00 = padded_grid_stack.regular.map_to_2d_keep_padded(
padded_array_1d=manual_blurred_image_s00)
manual_blurred_image_s00 = psf_0.convolve(array=manual_blurred_image_s00)
manual_blurred_image_s01 = tracer.source_plane.image_plane_images_1d_of_galaxies[0][1]
manual_blurred_image_s01 = padded_grid_stack.regular.map_to_2d_keep_padded(
padded_array_1d=manual_blurred_image_s01)
manual_blurred_image_s01 = psf_0.convolve(array=manual_blurred_image_s01)
manual_blurred_image_s10 = tracer.source_plane.image_plane_images_1d_of_galaxies[1][0]
manual_blurred_image_s10 = padded_grid_stack.regular.map_to_2d_keep_padded(
padded_array_1d=manual_blurred_image_s10)
manual_blurred_image_s10 = psf_1.convolve(array=manual_blurred_image_s10)
manual_blurred_image_s11 = tracer.source_plane.image_plane_images_1d_of_galaxies[1][1]
manual_blurred_image_s11 = padded_grid_stack.regular.map_to_2d_keep_padded(
padded_array_1d=manual_blurred_image_s11)
manual_blurred_image_s11 = psf_1.convolve(array=manual_blurred_image_s11)
unmasked_blurred_image_of_datas_and_planes = \
stack_util.unmasked_blurred_image_of_datas_and_planes_from_padded_grid_stacks_and_psf(
planes=tracer.planes, padded_grid_stacks=[padded_grid_stack, padded_grid_stack], psfs=[psf_0, psf_1])
assert unmasked_blurred_image_of_datas_and_planes[0][0] == \
pytest.approx(manual_blurred_image_i00[1:4,1:4] + manual_blurred_image_i01[1:4,1:4], 1.0e-4)
assert unmasked_blurred_image_of_datas_and_planes[1][0] == \
pytest.approx(manual_blurred_image_i10[1:4,1:4] + manual_blurred_image_i11[1:4,1:4], 1.0e-4)
assert unmasked_blurred_image_of_datas_and_planes[0][1] == \
pytest.approx(manual_blurred_image_s00[1:4,1:4] + manual_blurred_image_s01[1:4,1:4], 1.0e-4)
assert unmasked_blurred_image_of_datas_and_planes[1][1] == \
pytest.approx(manual_blurred_image_s10[1:4,1:4] + manual_blurred_image_s11[1:4,1:4], 1.0e-4)
def test___if_plane_has_pixelization__unmasked_image_is_none(self):
mask = msk.Mask(array=np.array([[True, True, True],
[True, False, True],
[True, True, True]]), pixel_scale=1.0)
padded_grid_stack = grids.GridStack.padded_grid_stack_from_mask_sub_grid_size_and_psf_shape(mask=mask,
sub_grid_size=1,
psf_shape=(3, 3))
psf_0 = im.PSF(array=(np.array([[0.0, 0.0, 0.0],
[0.0, 1.0, 0.0],
[0.0, 0.0, 0.0]])), pixel_scale=1.0)
psf_1 = im.PSF(array=(np.array([[0.0, 3.0, 0.0],
[0.0, 1.0, 2.0],
[0.0, 0.0, 0.0]])), pixel_scale=1.0)
g0 = g.Galaxy(light_profile=lp.EllipticalSersic(intensity=0.1),
pixelization=pix.Rectangular(), regularization=reg.Constant())
g1 = g.Galaxy(light_profile=lp.EllipticalSersic(intensity=0.2))
g2 = g.Galaxy(mass_profile=mp.SphericalIsothermal(einstein_radius=1.0))
tracer = ray_tracing_stack.TracerImageSourcePlanesStack(lens_galaxies=[g0, g1, g2], source_galaxies=[g1],
image_plane_grid_stacks=[padded_grid_stack,
padded_grid_stack])
unmasked_blurred_image_of_datas_and_planes = \
stack_util.unmasked_blurred_image_of_datas_and_planes_from_padded_grid_stacks_and_psf(
planes=tracer.planes, padded_grid_stacks=[padded_grid_stack, padded_grid_stack], psfs=[psf_0, psf_1])
assert unmasked_blurred_image_of_datas_and_planes[0][0] == None
assert type(unmasked_blurred_image_of_datas_and_planes[0][1]) == scaled_array.ScaledSquarePixelArray
assert unmasked_blurred_image_of_datas_and_planes[1][0] == None
assert type(unmasked_blurred_image_of_datas_and_planes[1][1]) == scaled_array.ScaledSquarePixelArray
g0 = g.Galaxy(light_profile=lp.EllipticalSersic(intensity=0.1))
g1 = g.Galaxy(light_profile=lp.EllipticalSersic(intensity=0.2),
pixelization=pix.Rectangular(), regularization=reg.Constant())
g2 = g.Galaxy(mass_profile=mp.SphericalIsothermal(einstein_radius=1.0))
tracer = ray_tracing_stack.TracerImageSourcePlanesStack(lens_galaxies=[g0, g2], source_galaxies=[g1],
image_plane_grid_stacks=[padded_grid_stack,
padded_grid_stack])
unmasked_blurred_image_of_datas_and_planes = \
stack_util.unmasked_blurred_image_of_datas_and_planes_from_padded_grid_stacks_and_psf(
planes=tracer.planes, padded_grid_stacks=[padded_grid_stack, padded_grid_stack], psfs=[psf_0, psf_1])
assert type(unmasked_blurred_image_of_datas_and_planes[0][0]) == scaled_array.ScaledSquarePixelArray
assert unmasked_blurred_image_of_datas_and_planes[0][1] == None
assert type(unmasked_blurred_image_of_datas_and_planes[1][0]) == scaled_array.ScaledSquarePixelArray
assert unmasked_blurred_image_of_datas_and_planes[1][1] == None
class TestUnmaskedModelImageOfDatasPlanesAndGalaxies:
def test___x2_galaxies__3x3_padded_image__x2_images__one_blurs__one_asymetric_psf_blurring(self):
mask = msk.Mask(array=np.array([[True, True, True],
[True, False, True],
[True, True, True]]), pixel_scale=1.0)
padded_grid_stack = grids.GridStack.padded_grid_stack_from_mask_sub_grid_size_and_psf_shape(mask=mask,
sub_grid_size=1,
psf_shape=(3, 3))
psf_0 = im.PSF(array=(np.array([[0.0, 0.0, 0.0],
[0.0, 1.0, 0.0],
[0.0, 0.0, 0.0]])), pixel_scale=1.0)
psf_1 = im.PSF(array=(np.array([[0.0, 3.0, 0.0],
[0.0, 1.0, 2.0],
[0.0, 0.0, 0.0]])), pixel_scale=1.0)
g0 = g.Galaxy(light_profile=lp.EllipticalSersic(intensity=0.1))
g1 = g.Galaxy(light_profile=lp.EllipticalSersic(intensity=0.2))
tracer = ray_tracing_stack.TracerImagePlaneStack(lens_galaxies=[g0, g1],
image_plane_grid_stacks=[padded_grid_stack, padded_grid_stack])
manual_blurred_image_00 = tracer.image_plane.image_plane_images_1d_of_galaxies[0][0]
manual_blurred_image_00 = padded_grid_stack.regular.map_to_2d_keep_padded(padded_array_1d=manual_blurred_image_00)
manual_blurred_image_00 = psf_0.convolve(array=manual_blurred_image_00)
manual_blurred_image_01 = tracer.image_plane.image_plane_images_1d_of_galaxies[0][1]
manual_blurred_image_01 = padded_grid_stack.regular.map_to_2d_keep_padded(padded_array_1d=manual_blurred_image_01)
manual_blurred_image_01 = psf_0.convolve(array=manual_blurred_image_01)
manual_blurred_image_10 = tracer.image_plane.image_plane_images_1d_of_galaxies[1][0]
manual_blurred_image_10 = padded_grid_stack.regular.map_to_2d_keep_padded(padded_array_1d=manual_blurred_image_10)
manual_blurred_image_10 = psf_1.convolve(array=manual_blurred_image_10)
manual_blurred_image_11 = tracer.image_plane.image_plane_images_1d_of_galaxies[1][1]
manual_blurred_image_11 = padded_grid_stack.regular.map_to_2d_keep_padded(padded_array_1d=manual_blurred_image_11)
manual_blurred_image_11 = psf_1.convolve(array=manual_blurred_image_11)
unmasked_blurred_image_of_datas_planes_and_galaxies = \
stack_util.unmasked_blurred_image_of_datas_planes_and_galaxies_from_padded_grid_stacks_and_psf(
planes=tracer.planes, padded_grid_stacks=[padded_grid_stack, padded_grid_stack], psfs=[psf_0, psf_1])
assert (unmasked_blurred_image_of_datas_planes_and_galaxies[0][0][0] == manual_blurred_image_00[1:4, 1:4]).all()
assert (unmasked_blurred_image_of_datas_planes_and_galaxies[0][0][1] == manual_blurred_image_01[1:4, 1:4]).all()
assert (unmasked_blurred_image_of_datas_planes_and_galaxies[1][0][0] == manual_blurred_image_10[1:4, 1:4]).all()
assert (unmasked_blurred_image_of_datas_planes_and_galaxies[1][0][1] == manual_blurred_image_11[1:4, 1:4]).all()
def test___same_as_above__image_and_source_plane(self):
mask = msk.Mask(array=np.array([[True, True, True],
[True, False, True],
[True, True, True]]), pixel_scale=1.0)
padded_grid_stack = grids.GridStack.padded_grid_stack_from_mask_sub_grid_size_and_psf_shape(mask=mask,
sub_grid_size=1,
psf_shape=(3, 3))
psf_0 = im.PSF(array=(np.array([[0.0, 0.0, 0.0],
[0.0, 1.0, 0.0],
[0.0, 0.0, 0.0]])), pixel_scale=1.0)
psf_1 = im.PSF(array=(np.array([[0.0, 3.0, 0.0],
[0.0, 1.0, 2.0],
[0.0, 0.0, 0.0]])), pixel_scale=1.0)
g0 = g.Galaxy(light_profile=lp.EllipticalSersic(intensity=0.1))
g1 = g.Galaxy(light_profile=lp.EllipticalSersic(intensity=0.2))
g2 = g.Galaxy(mass_profile=mp.SphericalIsothermal(einstein_radius=1.0))
tracer = ray_tracing_stack.TracerImageSourcePlanesStack(lens_galaxies=[g0, g1, g2], source_galaxies=[g0, g1],
image_plane_grid_stacks=[padded_grid_stack, padded_grid_stack])
manual_blurred_image_i00 = tracer.image_plane.image_plane_images_1d_of_galaxies[0][0]
manual_blurred_image_i00 = padded_grid_stack.regular.map_to_2d_keep_padded(padded_array_1d=manual_blurred_image_i00)
manual_blurred_image_i00 = psf_0.convolve(array=manual_blurred_image_i00)
manual_blurred_image_i01 = tracer.image_plane.image_plane_images_1d_of_galaxies[0][1]
manual_blurred_image_i01 = padded_grid_stack.regular.map_to_2d_keep_padded(padded_array_1d=manual_blurred_image_i01)
manual_blurred_image_i01 = psf_0.convolve(array=manual_blurred_image_i01)
manual_blurred_image_i10 = tracer.image_plane.image_plane_images_1d_of_galaxies[1][0]
manual_blurred_image_i10 = padded_grid_stack.regular.map_to_2d_keep_padded(padded_array_1d=manual_blurred_image_i10)
manual_blurred_image_i10 = psf_1.convolve(array=manual_blurred_image_i10)
manual_blurred_image_i11 = tracer.image_plane.image_plane_images_1d_of_galaxies[1][1]
manual_blurred_image_i11 = padded_grid_stack.regular.map_to_2d_keep_padded(padded_array_1d=manual_blurred_image_i11)
manual_blurred_image_i11 = psf_1.convolve(array=manual_blurred_image_i11)
manual_blurred_image_s00 = tracer.source_plane.image_plane_images_1d_of_galaxies[0][0]
manual_blurred_image_s00 = padded_grid_stack.regular.map_to_2d_keep_padded(padded_array_1d=manual_blurred_image_s00)
manual_blurred_image_s00 = psf_0.convolve(array=manual_blurred_image_s00)
manual_blurred_image_s01 = tracer.source_plane.image_plane_images_1d_of_galaxies[0][1]
manual_blurred_image_s01 = padded_grid_stack.regular.map_to_2d_keep_padded(padded_array_1d=manual_blurred_image_s01)
manual_blurred_image_s01 = psf_0.convolve(array=manual_blurred_image_s01)
manual_blurred_image_s10 = tracer.source_plane.image_plane_images_1d_of_galaxies[1][0]
manual_blurred_image_s10 = padded_grid_stack.regular.map_to_2d_keep_padded(padded_array_1d=manual_blurred_image_s10)
manual_blurred_image_s10 = psf_1.convolve(array=manual_blurred_image_s10)
manual_blurred_image_s11 = tracer.source_plane.image_plane_images_1d_of_galaxies[1][1]
manual_blurred_image_s11 = padded_grid_stack.regular.map_to_2d_keep_padded(padded_array_1d=manual_blurred_image_s11)
manual_blurred_image_s11 = psf_1.convolve(array=manual_blurred_image_s11)
unmasked_blurred_image_of_datas_planes_and_galaxies = \
stack_util.unmasked_blurred_image_of_datas_planes_and_galaxies_from_padded_grid_stacks_and_psf(
planes=tracer.planes, padded_grid_stacks=[padded_grid_stack, padded_grid_stack], psfs=[psf_0, psf_1])
assert (unmasked_blurred_image_of_datas_planes_and_galaxies[0][0][0] == manual_blurred_image_i00[1:4, 1:4]).all()
assert (unmasked_blurred_image_of_datas_planes_and_galaxies[0][0][1] == manual_blurred_image_i01[1:4, 1:4]).all()
assert (unmasked_blurred_image_of_datas_planes_and_galaxies[1][0][0] == manual_blurred_image_i10[1:4, 1:4]).all()
assert (unmasked_blurred_image_of_datas_planes_and_galaxies[1][0][1] == manual_blurred_image_i11[1:4, 1:4]).all()
assert (unmasked_blurred_image_of_datas_planes_and_galaxies[0][1][0] == manual_blurred_image_s00[1:4, 1:4]).all()
assert (unmasked_blurred_image_of_datas_planes_and_galaxies[0][1][1] == manual_blurred_image_s01[1:4, 1:4]).all()
assert (unmasked_blurred_image_of_datas_planes_and_galaxies[1][1][0] == manual_blurred_image_s10[1:4, 1:4]).all()
assert (unmasked_blurred_image_of_datas_planes_and_galaxies[1][1][1] == manual_blurred_image_s11[1:4, 1:4]).all()
def test___if_galaxy_has_pixelization__unmasked_image_is_none(self):
mask = msk.Mask(array=np.array([[True, True, True],
[True, False, True],
[True, True, True]]), pixel_scale=1.0)
padded_grid_stack = grids.GridStack.padded_grid_stack_from_mask_sub_grid_size_and_psf_shape(mask=mask,
sub_grid_size=1,
psf_shape=(3, 3))
psf_0 = im.PSF(array=(np.array([[0.0, 0.0, 0.0],
[0.0, 1.0, 0.0],
[0.0, 0.0, 0.0]])), pixel_scale=1.0)
psf_1 = im.PSF(array=(np.array([[0.0, 3.0, 0.0],
[0.0, 1.0, 2.0],
[0.0, 0.0, 0.0]])), pixel_scale=1.0)
g0 = g.Galaxy(light_profile=lp.EllipticalSersic(intensity=0.1),
pixelization=pix.Rectangular(), regularization=reg.Constant())
g1 = g.Galaxy(light_profile=lp.EllipticalSersic(intensity=0.2))
g2 = g.Galaxy(mass_profile=mp.SphericalIsothermal(einstein_radius=1.0))
tracer = ray_tracing_stack.TracerImageSourcePlanesStack(lens_galaxies=[g0, g1, g2], source_galaxies=[g0, g1],
image_plane_grid_stacks=[padded_grid_stack,
padded_grid_stack])
unmasked_blurred_image_of_datas_planes_and_galaxies = \
stack_util.unmasked_blurred_image_of_datas_planes_and_galaxies_from_padded_grid_stacks_and_psf(
planes=tracer.planes, padded_grid_stacks=[padded_grid_stack, padded_grid_stack], psfs=[psf_0, psf_1])
assert unmasked_blurred_image_of_datas_planes_and_galaxies[0][0][0] == None
assert type(unmasked_blurred_image_of_datas_planes_and_galaxies[0][0][1]) == scaled_array.ScaledSquarePixelArray
assert unmasked_blurred_image_of_datas_planes_and_galaxies[1][0][0] == None
assert type(unmasked_blurred_image_of_datas_planes_and_galaxies[1][0][1]) == scaled_array.ScaledSquarePixelArray
assert unmasked_blurred_image_of_datas_planes_and_galaxies[0][1][0] == None
assert type(unmasked_blurred_image_of_datas_planes_and_galaxies[0][1][1]) == scaled_array.ScaledSquarePixelArray
assert unmasked_blurred_image_of_datas_planes_and_galaxies[1][1][0] == None
assert type(unmasked_blurred_image_of_datas_planes_and_galaxies[1][1][1]) == scaled_array.ScaledSquarePixelArray
g0 = g.Galaxy(light_profile=lp.EllipticalSersic(intensity=0.1))
g1 = g.Galaxy(light_profile=lp.EllipticalSersic(intensity=0.2),
pixelization=pix.Rectangular(), regularization=reg.Constant())
g2 = g.Galaxy(mass_profile=mp.SphericalIsothermal(einstein_radius=1.0))
tracer = ray_tracing_stack.TracerImageSourcePlanesStack(lens_galaxies=[g0, g1, g2], source_galaxies=[g0, g1],
image_plane_grid_stacks=[padded_grid_stack,
padded_grid_stack])
unmasked_blurred_image_of_datas_planes_and_galaxies = \
stack_util.unmasked_blurred_image_of_datas_planes_and_galaxies_from_padded_grid_stacks_and_psf(
planes=tracer.planes, padded_grid_stacks=[padded_grid_stack, padded_grid_stack], psfs=[psf_0, psf_1])
assert type(unmasked_blurred_image_of_datas_planes_and_galaxies[0][0][0]) == scaled_array.ScaledSquarePixelArray
assert unmasked_blurred_image_of_datas_planes_and_galaxies[0][0][1] == None
assert type(unmasked_blurred_image_of_datas_planes_and_galaxies[1][0][0]) == scaled_array.ScaledSquarePixelArray
assert unmasked_blurred_image_of_datas_planes_and_galaxies[1][0][1] == None
assert type(unmasked_blurred_image_of_datas_planes_and_galaxies[0][1][0]) == scaled_array.ScaledSquarePixelArray
assert unmasked_blurred_image_of_datas_planes_and_galaxies[0][1][1] == None
assert type(unmasked_blurred_image_of_datas_planes_and_galaxies[1][1][0]) == scaled_array.ScaledSquarePixelArray
assert unmasked_blurred_image_of_datas_planes_and_galaxies[1][1][1] == None
| 60.396802
| 130
| 0.626429
| 5,647
| 41,553
| 4.1592
| 0.029927
| 0.033295
| 0.038958
| 0.042747
| 0.930898
| 0.902244
| 0.884745
| 0.856303
| 0.829906
| 0.81841
| 0
| 0.060725
| 0.277934
| 41,553
| 688
| 131
| 60.396802
| 0.72207
| 0
| 0
| 0.563601
| 0
| 0
| 0.002984
| 0
| 0
| 0
| 0
| 0
| 0.113503
| 1
| 0.041096
| false
| 0
| 0.02544
| 0.009785
| 0.09589
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 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
| 6
|
220ed627da8051a417ce770b622ff6cbe9fa7435
| 5,230
|
py
|
Python
|
metricks/result_worksheet_data_processor.py
|
hamsternik/medical-metricks-parser
|
9307038fcf20cfa514f74f2ff4f6c25f32727e2e
|
[
"MIT"
] | null | null | null |
metricks/result_worksheet_data_processor.py
|
hamsternik/medical-metricks-parser
|
9307038fcf20cfa514f74f2ff4f6c25f32727e2e
|
[
"MIT"
] | null | null | null |
metricks/result_worksheet_data_processor.py
|
hamsternik/medical-metricks-parser
|
9307038fcf20cfa514f74f2ff4f6c25f32727e2e
|
[
"MIT"
] | null | null | null |
__author__ = 'khomitsevich'
import metricks.excel_char_index_generator as excel_char_index_generator
RESULT_PARAM_COLUMN_LEADING_IND = 3
RESULT_PARAM_TITLES = ["DICE", "SPEC", "SENS", "ACCUR", "Time (w init)"]
class ResultWorkSheetDataProcessor:
def __init__(self, result_worksheet, cell_title_prefix, metrics_dict_keys_full_sorted_list):
self.result_worksheet = result_worksheet
self.cell_title_prefix = cell_title_prefix
self.metrics_dict_keys_full_sorted_list = metrics_dict_keys_full_sorted_list
### For each folder
def calculate_average_and_std_of_dice(self, dice_indexes_dict, param_row_index: int = 2):
self.__calculate_average_and_std_of_param(dice_indexes_dict, param_row_index)
def calculate_average_and_std_of_spec(self, spec_indexes_dict, param_row_index: int = 3):
self.__calculate_average_and_std_of_param(spec_indexes_dict, param_row_index)
def calculate_average_and_std_of_sens(self, sens_indexes_dict, param_row_index: int = 4):
self.__calculate_average_and_std_of_param(sens_indexes_dict, param_row_index)
def calculate_average_and_std_of_accur(self, accur_indexes_dict, param_row_index: int = 5):
self.__calculate_average_and_std_of_param(accur_indexes_dict, param_row_index)
def calculate_average_and_std_of_time(self, time_indexes_dict, param_row_index: int = 6):
self.__calculate_average_and_std_of_param(time_indexes_dict, param_row_index)
### Overall
def calculate_average_and_std_of_dice_overall(self, dice_indexes_dict, param_row_index: int = 2):
self.__calculate_average_and_std_of_param_overall(dice_indexes_dict, param_row_index)
def calculate_average_and_std_of_spec_overall(self, spec_indexes_dict, param_row_index: int = 3):
self.__calculate_average_and_std_of_param_overall(spec_indexes_dict, param_row_index)
def calculate_average_and_std_of_sens_overall(self, sens_indexes_dict, param_row_index: int = 4):
self.__calculate_average_and_std_of_param_overall(sens_indexes_dict, param_row_index)
def calculate_average_and_std_of_accur_overall(self, accur_indexes_dict, param_row_index: int = 5):
self.__calculate_average_and_std_of_param_overall(accur_indexes_dict, param_row_index)
def calculate_average_and_std_of_time_overall(self, time_indexes_dict, param_row_index: int = 6):
self.__calculate_average_and_std_of_param_overall(time_indexes_dict, param_row_index)
### Private methods
def __calculate_average_and_std_of_param(self, param_indexes_dict, param_row_index:int):
for dir_path in self.metrics_dict_keys_full_sorted_list:
average_excel_formulae = "=AVERAGE("
std_excel_formulae = "=STDEV("
for sens_ind_tuple in param_indexes_dict[dir_path]:
""" Calculate average and standard deviation formulaes for a specific parameter. """
result_index = excel_char_index_generator.get_excel_char_index_by_numeric(sens_ind_tuple[1]) + str(sens_ind_tuple[0])
average_excel_formulae += f"{self.cell_title_prefix}{result_index},"
std_excel_formulae += f"{self.cell_title_prefix}{result_index},"
average_excel_formulae = average_excel_formulae[:len(average_excel_formulae) - 1] + ")"
std_excel_formulae = std_excel_formulae[:len(std_excel_formulae) - 1] + ")"
workseet_first_time_std_row_index = param_row_index + len(RESULT_PARAM_TITLES) + 1
worksheet_first_time_col_index = RESULT_PARAM_COLUMN_LEADING_IND + self.metrics_dict_keys_full_sorted_list.index(dir_path) + 1
self.result_worksheet.cell(param_row_index, worksheet_first_time_col_index, average_excel_formulae)
self.result_worksheet.cell(workseet_first_time_std_row_index, worksheet_first_time_col_index, std_excel_formulae)
# __calculate_average_and_std_of_param
def __calculate_average_and_std_of_param_overall(self, param_indexes_dict, param_row_index:int):
average_excel_formulae = "=AVERAGE("
std_excel_formulae = "=STDEV("
for dir_path in self.metrics_dict_keys_full_sorted_list:
for sens_ind_tuple in param_indexes_dict[dir_path]:
""" Calculate average and standard deviation formulaes for a specific parameter. """
result_index = excel_char_index_generator.get_excel_char_index_by_numeric(sens_ind_tuple[1]) + str(sens_ind_tuple[0])
average_excel_formulae += f"{self.cell_title_prefix}{result_index},"
std_excel_formulae += f"{self.cell_title_prefix}{result_index},"
average_excel_formulae = average_excel_formulae[:len(average_excel_formulae) - 1] + ")"
std_excel_formulae = std_excel_formulae[:len(std_excel_formulae) - 1] + ")"
std_row_final_index = param_row_index + len(RESULT_PARAM_TITLES) + 1
col_final_index = RESULT_PARAM_COLUMN_LEADING_IND - 1
self.result_worksheet.cell(param_row_index, col_final_index, average_excel_formulae)
self.result_worksheet.cell(std_row_final_index, col_final_index, std_excel_formulae)
# __calculate_average_and_std_of_param_overall
| 60.114943
| 138
| 0.767495
| 740
| 5,230
| 4.797297
| 0.106757
| 0.063099
| 0.139155
| 0.148732
| 0.888732
| 0.875211
| 0.821127
| 0.74
| 0.661972
| 0.612958
| 0
| 0.005255
| 0.163098
| 5,230
| 87
| 139
| 60.114943
| 0.805803
| 0.023327
| 0
| 0.315789
| 0
| 0
| 0.047474
| 0.031649
| 0
| 0
| 0
| 0
| 0
| 1
| 0.22807
| false
| 0
| 0.017544
| 0
| 0.263158
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 6
|
97d6583915892f072e9d9995aa695f72e80018c0
| 3,790
|
py
|
Python
|
examples/http.py
|
doriath/sdgen
|
8e602797a1d552c00e54c1371fe1f437b6d20841
|
[
"MIT"
] | 1
|
2021-06-22T00:47:34.000Z
|
2021-06-22T00:47:34.000Z
|
examples/http.py
|
doriath/sdgen
|
8e602797a1d552c00e54c1371fe1f437b6d20841
|
[
"MIT"
] | null | null | null |
examples/http.py
|
doriath/sdgen
|
8e602797a1d552c00e54c1371fe1f437b6d20841
|
[
"MIT"
] | null | null | null |
# -*- coding: utf-8 -*-
import sys
sys.path.append('.')
from sdgen.svg import *
data = {
"view": "Group",
"name": "Identyfikator HTTP",
"children": [
{"view": "Terminal", "value": "http"},
{
"view": "Detour",
"children": [
{"view": "Terminal", "value": "s"}
]
},
{"view": "Terminal", "value": "://"},
{
"view": "Detour",
"children": [
{
"view": "Group",
"name": u"Wyraz z małpą",
"children": [
{
"view": "QuantityAbove",
"value": "1..",
"children": [
{
"view": "InvTerminal",
"children": [
{"view": "Terminal", "value": "a..z"}
]
}
]
},
{"view": "Terminal", "value": ":"},
{
"view": "QuantityAbove",
"value": "1..",
"children": [
{
"view": "InvTerminal",
"children": [
{"view": "Terminal", "value": "a..z"}
]
}
]
},
{"view": "Terminal", "value": "@"}
]
}
]
},
{
"view": "QuantityAbove",
"value": "1..",
"children": [
{
"view": "Group",
"name": u"Wyraz z kropką",
"children": [
{
"view": "QuantityAbove",
"value": "1..",
"children": [
{
"view": "InvTerminal",
"children": [
{"view": "Terminal", "value": "a..z"}
]
}
]
},
{"view": "Terminal", "value": "."}
]
}
]
},
{
"view": "QuantityAbove",
"value": "2..",
"children": [
{
"view": "InvTerminal",
"children": [
{"view": "Terminal", "value": "a..z"}
]
}
]
},
{
"view": "Detour",
"children": [
{
"view": "Group",
"name": u"Końcówka",
"children": [
{"view": "Terminal", "value": ":"},
{
"view": "InvTerminal",
"children": [
{"view": "Terminal", "value": "0..65535"}
]
}
]
}
]
},
{
"view": "Detour",
"children": [
{"view": "Terminal", "value": "/"}
]
}
]
}
result = as_svg(data)
print result[0][1].encode('utf-8')
| 31.065574
| 77
| 0.21372
| 155
| 3,790
| 5.219355
| 0.245161
| 0.266996
| 0.273177
| 0.278121
| 0.728059
| 0.728059
| 0.592089
| 0.490729
| 0.490729
| 0.490729
| 0
| 0.011202
| 0.646702
| 3,790
| 121
| 78
| 31.322314
| 0.59298
| 0.005541
| 0
| 0.393162
| 0
| 0
| 0.199894
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0.017094
| null | null | 0.008547
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 6
|
3f6f19a9a981463fef816d3565405197549948ed
| 6,273
|
py
|
Python
|
tests/functional/commands/validate/lib/test_sam_template_validator.py
|
TinLe/aws-sam-cli
|
6e3740ad6511d2a31f9f977cf918cd08688076f7
|
[
"Apache-2.0"
] | 3
|
2018-10-26T23:41:19.000Z
|
2018-11-04T04:13:27.000Z
|
tests/functional/commands/validate/lib/test_sam_template_validator.py
|
TinLe/aws-sam-cli
|
6e3740ad6511d2a31f9f977cf918cd08688076f7
|
[
"Apache-2.0"
] | null | null | null |
tests/functional/commands/validate/lib/test_sam_template_validator.py
|
TinLe/aws-sam-cli
|
6e3740ad6511d2a31f9f977cf918cd08688076f7
|
[
"Apache-2.0"
] | null | null | null |
from unittest import TestCase
from mock import Mock
from samcli.commands.validate.lib.sam_template_validator import SamTemplateValidator
from samcli.commands.validate.lib.exceptions import InvalidSamDocumentException
class TestValidate(TestCase):
def test_valid_template(self):
template = {
"AWSTemplateFormatVersion": "2010-09-09",
"Transform": "AWS::Serverless-2016-10-31",
"Resources": {
"ServerlessFunction": {
"Type": "AWS::Serverless::Function",
"Properties": {
"Handler": "index.handler",
"CodeUri": "s3://fake-bucket/lambda-code.zip",
"Runtime": "nodejs6.10",
"Timeout": 60
}
}
}
}
managed_policy_mock = Mock()
managed_policy_mock.load.return_value = {"PolicyName": "FakePolicy"}
validator = SamTemplateValidator(template, managed_policy_mock)
# Should not throw an exception
validator.is_valid()
def test_invalid_template(self):
template = {
"AWSTemplateFormatVersion": "2010-09-09",
"Transform": "AWS::Serverless-2016-10-31",
"Resources": {
"ServerlessFunction": {
"Type": "AWS::Serverless::Function",
"Properties": {
"Handler": "index.handler",
"CodeUri": "s3://lambda-code.zip",
"Timeout": 60
}
}
}
}
managed_policy_mock = Mock()
managed_policy_mock.load.return_value = {"PolicyName": "FakePolicy"}
validator = SamTemplateValidator(template, managed_policy_mock)
with self.assertRaises(InvalidSamDocumentException):
validator.is_valid()
def test_valid_template_with_local_code_for_function(self):
template = {
"AWSTemplateFormatVersion": "2010-09-09",
"Transform": "AWS::Serverless-2016-10-31",
"Resources": {
"ServerlessFunction": {
"Type": "AWS::Serverless::Function",
"Properties": {
"Handler": "index.handler",
"CodeUri": "./",
"Runtime": "nodejs6.10",
"Timeout": 60
}
}
}
}
managed_policy_mock = Mock()
managed_policy_mock.load.return_value = {"PolicyName": "FakePolicy"}
validator = SamTemplateValidator(template, managed_policy_mock)
# Should not throw an exception
validator.is_valid()
def test_valid_template_with_local_code_for_api(self):
template = {
"AWSTemplateFormatVersion": "2010-09-09",
"Transform": "AWS::Serverless-2016-10-31",
"Resources": {
"ServerlessApi": {
"Type": "AWS::Serverless::Api",
"Properties": {
"StageName": "Prod",
"DefinitionUri": "./"
}
}
}
}
managed_policy_mock = Mock()
managed_policy_mock.load.return_value = {"PolicyName": "FakePolicy"}
validator = SamTemplateValidator(template, managed_policy_mock)
# Should not throw an exception
validator.is_valid()
def test_valid_template_with_DefinitionBody_for_api(self):
template = {
"AWSTemplateFormatVersion": "2010-09-09",
"Transform": "AWS::Serverless-2016-10-31",
"Resources": {
"ServerlessApi": {
"Type": "AWS::Serverless::Api",
"Properties": {
"StageName": "Prod",
"DefinitionBody": {"swagger": "2.0"}
}
}
}
}
managed_policy_mock = Mock()
managed_policy_mock.load.return_value = {"PolicyName": "FakePolicy"}
validator = SamTemplateValidator(template, managed_policy_mock)
# Should not throw an exception
validator.is_valid()
def test_valid_template_with_s3_object_passed(self):
template = {
"AWSTemplateFormatVersion": "2010-09-09",
"Transform": "AWS::Serverless-2016-10-31",
"Resources": {
"ServerlessApi": {
"Type": "AWS::Serverless::Api",
"Properties": {
"StageName": "Prod",
"DefinitionUri": {
"Bucket": "mybucket-name",
"Key": "swagger",
"Version": 121212
}
}
},
"ServerlessFunction": {
"Type": "AWS::Serverless::Function",
"Properties": {
"Handler": "index.handler",
"CodeUri": {
"Bucket": "mybucket-name",
"Key": "code.zip",
"Version": 121212
},
"Runtime": "nodejs6.10",
"Timeout": 60
}
}
}
}
managed_policy_mock = Mock()
managed_policy_mock.load.return_value = {"PolicyName": "FakePolicy"}
validator = SamTemplateValidator(template, managed_policy_mock)
# Should not throw an exception
validator.is_valid()
# validate the CodeUri was not changed
self.assertEquals(validator.sam_template.get("Resources").get("ServerlessApi").get("Properties").get("DefinitionUri"), {"Bucket": "mybucket-name", "Key": "swagger", "Version": 121212})
self.assertEquals(validator.sam_template.get("Resources").get("ServerlessFunction").get("Properties").get("CodeUri"), {"Bucket": "mybucket-name", "Key": "code.zip", "Version": 121212})
| 36.47093
| 192
| 0.489399
| 463
| 6,273
| 6.453564
| 0.187905
| 0.078313
| 0.10241
| 0.080321
| 0.86178
| 0.842369
| 0.842369
| 0.842369
| 0.776439
| 0.746653
| 0
| 0.037447
| 0.395505
| 6,273
| 172
| 193
| 36.47093
| 0.750527
| 0.029651
| 0
| 0.630435
| 0
| 0
| 0.250617
| 0.071041
| 0
| 0
| 0
| 0
| 0.021739
| 1
| 0.043478
| false
| 0.007246
| 0.028986
| 0
| 0.07971
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 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
| 6
|
58c447c6863176bdfc4f22ecc9c5cd9c0487c991
| 36
|
py
|
Python
|
ml/perks/netconfig/__init__.py
|
TiFu/runepicker-helper
|
dcbd7bcce06a80ed5c800b3aaca26d53e4cace8f
|
[
"MIT"
] | null | null | null |
ml/perks/netconfig/__init__.py
|
TiFu/runepicker-helper
|
dcbd7bcce06a80ed5c800b3aaca26d53e4cace8f
|
[
"MIT"
] | 1
|
2018-01-01T03:56:01.000Z
|
2018-01-01T03:56:01.000Z
|
ml/perks/netconfig/__init__.py
|
TiFu/runepicker-helper
|
dcbd7bcce06a80ed5c800b3aaca26d53e4cace8f
|
[
"MIT"
] | null | null | null |
from .netconfig import loadNetConfig
| 36
| 36
| 0.888889
| 4
| 36
| 8
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.083333
| 36
| 1
| 36
| 36
| 0.969697
| 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
| 1
| 0
|
0
| 6
|
58eee6b3a208a242d94d7193d75d818bfddb047a
| 28
|
py
|
Python
|
gpsinflux/__init__.py
|
iotfablab/gpsinflux
|
438830f11ee0c02cb9a071ef8db7e559ea537e9a
|
[
"MIT"
] | null | null | null |
gpsinflux/__init__.py
|
iotfablab/gpsinflux
|
438830f11ee0c02cb9a071ef8db7e559ea537e9a
|
[
"MIT"
] | 3
|
2019-06-28T09:26:32.000Z
|
2020-02-27T12:25:16.000Z
|
gpsinflux/__init__.py
|
iotfablab/gpsinflux
|
438830f11ee0c02cb9a071ef8db7e559ea537e9a
|
[
"MIT"
] | null | null | null |
from .gpsinflux import main
| 14
| 27
| 0.821429
| 4
| 28
| 5.75
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.142857
| 28
| 1
| 28
| 28
| 0.958333
| 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
| 1
| 0
|
0
| 6
|
1895850492935b61e3f65367f5c956a4abe33635
| 108
|
py
|
Python
|
src/handlers/special/__init__.py
|
PDevgut/My37
|
cdd5d8a8a9d0f16ac071704f6ada9c294fbe452e
|
[
"MIT"
] | null | null | null |
src/handlers/special/__init__.py
|
PDevgut/My37
|
cdd5d8a8a9d0f16ac071704f6ada9c294fbe452e
|
[
"MIT"
] | null | null | null |
src/handlers/special/__init__.py
|
PDevgut/My37
|
cdd5d8a8a9d0f16ac071704f6ada9c294fbe452e
|
[
"MIT"
] | null | null | null |
from .handlers_4xx import handle_404
from .handlers_5xx import handle_500
from .static import handle_static
| 27
| 36
| 0.861111
| 17
| 108
| 5.176471
| 0.529412
| 0.409091
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.083333
| 0.111111
| 108
| 3
| 37
| 36
| 0.833333
| 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
| 1
| 0
|
0
| 6
|
18c04eca161f97b0a5cd1dc3ce5644a02fe70018
| 73
|
py
|
Python
|
logging/modulesb/moduleb.py
|
bclipp/python_ideas
|
c6058d49603f663ac57c55261777ace55fd2788a
|
[
"Apache-2.0"
] | null | null | null |
logging/modulesb/moduleb.py
|
bclipp/python_ideas
|
c6058d49603f663ac57c55261777ace55fd2788a
|
[
"Apache-2.0"
] | null | null | null |
logging/modulesb/moduleb.py
|
bclipp/python_ideas
|
c6058d49603f663ac57c55261777ace55fd2788a
|
[
"Apache-2.0"
] | null | null | null |
import logging
def do_something():
logging.info('Doing something')
| 12.166667
| 35
| 0.726027
| 9
| 73
| 5.777778
| 0.777778
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.164384
| 73
| 5
| 36
| 14.6
| 0.852459
| 0
| 0
| 0
| 0
| 0
| 0.205479
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| 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
| 1
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 6
|
18c17b3469a44864759c62fc78e36760e41b764a
| 68
|
py
|
Python
|
venv/lib/python2.7/site-packages/netlib/__init__.py
|
sravani-m/Web-Application-Security-Framework
|
d9f71538f5cba6fe1d8eabcb26c557565472f6a6
|
[
"MIT"
] | 3
|
2019-04-09T22:59:33.000Z
|
2019-06-14T09:23:24.000Z
|
venv/lib/python2.7/site-packages/netlib/__init__.py
|
sravani-m/Web-Application-Security-Framework
|
d9f71538f5cba6fe1d8eabcb26c557565472f6a6
|
[
"MIT"
] | null | null | null |
venv/lib/python2.7/site-packages/netlib/__init__.py
|
sravani-m/Web-Application-Security-Framework
|
d9f71538f5cba6fe1d8eabcb26c557565472f6a6
|
[
"MIT"
] | null | null | null |
from __future__ import (absolute_import, print_function, division)
| 34
| 67
| 0.838235
| 8
| 68
| 6.375
| 0.875
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.102941
| 68
| 1
| 68
| 68
| 0.836066
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 1
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 1
|
0
| 6
|
18c9adf593798eb40a0304a93125647c4261f6a0
| 49
|
py
|
Python
|
modules/__init__.py
|
trusted-ws/alarm-thread
|
22e517720c3dfc1f1e305b375af51feea47ac800
|
[
"MIT"
] | null | null | null |
modules/__init__.py
|
trusted-ws/alarm-thread
|
22e517720c3dfc1f1e305b375af51feea47ac800
|
[
"MIT"
] | null | null | null |
modules/__init__.py
|
trusted-ws/alarm-thread
|
22e517720c3dfc1f1e305b375af51feea47ac800
|
[
"MIT"
] | null | null | null |
from .alarm import Alarm
from .auxiliary import *
| 24.5
| 24
| 0.795918
| 7
| 49
| 5.571429
| 0.571429
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.142857
| 49
| 2
| 25
| 24.5
| 0.928571
| 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
| 1
| 0
|
0
| 6
|
18cf4c2854535b880b405fae653641ef01178cf7
| 48
|
py
|
Python
|
QCPU_Setup/DWave-library/dist-packages/dwave_networkx2/generators/__init__.py
|
cogrpar/qcpuWARE
|
9b8233e830f8cfacbef787781b2279e42f26fec5
|
[
"Apache-2.0"
] | 1
|
2022-02-01T14:40:05.000Z
|
2022-02-01T14:40:05.000Z
|
QCPU_Setup/DWave-library/dist-packages/dwave_networkx2/generators/__init__.py
|
cogrpar/qcpuWARE
|
9b8233e830f8cfacbef787781b2279e42f26fec5
|
[
"Apache-2.0"
] | null | null | null |
QCPU_Setup/DWave-library/dist-packages/dwave_networkx2/generators/__init__.py
|
cogrpar/qcpuWARE
|
9b8233e830f8cfacbef787781b2279e42f26fec5
|
[
"Apache-2.0"
] | 1
|
2022-02-01T14:40:31.000Z
|
2022-02-01T14:40:31.000Z
|
from dwave_networkx.generators.chimera import *
| 24
| 47
| 0.854167
| 6
| 48
| 6.666667
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.083333
| 48
| 1
| 48
| 48
| 0.909091
| 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
| 1
| 0
|
0
| 6
|
18ef388cccf31b9eee8c768de2ede5d859b7ee91
| 89
|
py
|
Python
|
pkg/handlers/hello.py
|
GKAurora/Aurora2.0-WebAPI
|
d91a028115c449e77f07681f39cfd4dd25870137
|
[
"MIT"
] | null | null | null |
pkg/handlers/hello.py
|
GKAurora/Aurora2.0-WebAPI
|
d91a028115c449e77f07681f39cfd4dd25870137
|
[
"MIT"
] | null | null | null |
pkg/handlers/hello.py
|
GKAurora/Aurora2.0-WebAPI
|
d91a028115c449e77f07681f39cfd4dd25870137
|
[
"MIT"
] | null | null | null |
class Hello(object):
@staticmethod
def hello_w() -> str:
return f"hello"
| 17.8
| 25
| 0.595506
| 11
| 89
| 4.727273
| 0.818182
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.280899
| 89
| 4
| 26
| 22.25
| 0.8125
| 0
| 0
| 0
| 0
| 0
| 0.05618
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| true
| 0
| 0
| 0.25
| 0.75
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 1
| 1
| 0
|
0
| 6
|
e17bc280fa48d9fa14d8d88718da02b94c0f466f
| 203
|
py
|
Python
|
tccli/services/cvm/__init__.py
|
hapsyou/tencentcloud-cli-intl-en
|
fa8ba71164484f9a2be4b983080a1de08606c0b0
|
[
"Apache-2.0"
] | null | null | null |
tccli/services/cvm/__init__.py
|
hapsyou/tencentcloud-cli-intl-en
|
fa8ba71164484f9a2be4b983080a1de08606c0b0
|
[
"Apache-2.0"
] | null | null | null |
tccli/services/cvm/__init__.py
|
hapsyou/tencentcloud-cli-intl-en
|
fa8ba71164484f9a2be4b983080a1de08606c0b0
|
[
"Apache-2.0"
] | null | null | null |
# -*- coding: utf-8 -*-
from tccli.services.cvm.cvm_client import register_arg
from tccli.services.cvm.cvm_client import get_actions_info
from tccli.services.cvm.cvm_client import AVAILABLE_VERSION_LIST
| 40.6
| 64
| 0.827586
| 32
| 203
| 5
| 0.53125
| 0.16875
| 0.31875
| 0.375
| 0.65625
| 0.65625
| 0.65625
| 0
| 0
| 0
| 0
| 0.005376
| 0.083744
| 203
| 4
| 65
| 50.75
| 0.854839
| 0.103448
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 6
|
e1a369120872d1335aee637deae14eb6f2bf4cd7
| 25
|
py
|
Python
|
wikiclean/__init__.py
|
daemon/pywikiclean
|
b680833ff0692a73cd0906cd4d3b052e5c0d8aa1
|
[
"MIT"
] | null | null | null |
wikiclean/__init__.py
|
daemon/pywikiclean
|
b680833ff0692a73cd0906cd4d3b052e5c0d8aa1
|
[
"MIT"
] | null | null | null |
wikiclean/__init__.py
|
daemon/pywikiclean
|
b680833ff0692a73cd0906cd4d3b052e5c0d8aa1
|
[
"MIT"
] | null | null | null |
from .wikiclean import *
| 12.5
| 24
| 0.76
| 3
| 25
| 6.333333
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.16
| 25
| 1
| 25
| 25
| 0.904762
| 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
| 1
| 0
|
0
| 6
|
e1ac187e7c05609969d964b58cef8a99f64fcdc6
| 4,475
|
py
|
Python
|
tests/test.py
|
darshanbaral/pyrle
|
0278cbe5676a9fe424274a455e28ceaeb98e0724
|
[
"MIT"
] | null | null | null |
tests/test.py
|
darshanbaral/pyrle
|
0278cbe5676a9fe424274a455e28ceaeb98e0724
|
[
"MIT"
] | null | null | null |
tests/test.py
|
darshanbaral/pyrle
|
0278cbe5676a9fe424274a455e28ceaeb98e0724
|
[
"MIT"
] | null | null | null |
import unittest
from parameterized import parameterized
import pandas
import numpy
import pdrle
class TestPdrle(unittest.TestCase):
# test encode
@parameterized.expand([
[pandas.Series(["a", "a", "b", "b", "b", "a", "a", "c"]),
pandas.DataFrame({"vals": ["a", "b", "a", "c"],
"runs": [2, 3, 2, 1]})],
[pandas.Series(["home", "home", "home", "home"]),
pandas.DataFrame({"vals": ["home"],
"runs": [4]})],
[pandas.Series(["home", "home", numpy.nan, numpy.nan, numpy.nan, "home", "home"]),
pandas.DataFrame({"vals": ["home", numpy.nan, "home"],
"runs": [2, 3, 2]})],
[pandas.Series([1, 1, 1, 1, 1, 1, 1]),
pandas.DataFrame({"vals": [1],
"runs": [7]})],
[pandas.Series([2]),
pandas.DataFrame({"vals": [2],
"runs": [1]})],
[pandas.Series({"a": 1, "b": 1, "c": numpy.nan, "d": numpy.nan, "e": numpy.nan, "f": 2}),
pandas.DataFrame({"vals": [1, numpy.nan, 2],
"runs": [2, 3, 1]})]
])
def test_encode(self, input_data, expected_output):
actual_output = pdrle.encode(input_data)
pandas.testing.assert_frame_equal(actual_output, expected_output)
# test decode
@parameterized.expand([
[pandas.Series(["a", "a", "b", "b", "b", "a", "a", "c"]),
pandas.DataFrame({"vals": ["a", "b", "a", "c"],
"runs": [2, 3, 2, 1]})],
[pandas.Series([1, 1, 1, 1, 1, 1, 1]),
pandas.DataFrame({"vals": [1],
"runs": [7]})],
[pandas.Series([2]),
pandas.DataFrame({"vals": [2],
"runs": [1]})]
])
def test_decode(self, expected_output, input_data):
actual_output = pdrle.decode(input_data.vals, input_data.runs)
pandas.testing.assert_series_equal(actual_output, expected_output)
# test get_id
@parameterized.expand([
[pandas.Series(["a", "a", "b", "b", "b", "a", "a", "c"]),
pandas.Series([0, 0, 1, 1, 1, 2, 2, 3])],
[pandas.Series([(1, 2), (1, 2), (1, 3), (4, 5)]),
pandas.Series([0, 0, 1, 2])],
[pandas.Series([(1, 2), (1, 2), (numpy.nan, numpy.nan), (numpy.nan, numpy.nan)]),
pandas.Series([0, 0, 1, 1])],
[pandas.Series([1, 1, 1, 1, 1, 1, 1]),
pandas.Series([0, 0, 0, 0, 0, 0, 0])],
[pandas.Series(["home", "home", numpy.nan, numpy.nan, numpy.nan, "home", "home"]),
pandas.Series([0, 0, 1, 1, 1, 2, 2])],
[pandas.Series([2]),
pandas.Series([0])],
[pandas.Series({"a": 1, "b": 2, "c": 3, "d": 3, "e": 3, "f": 1}),
pandas.Series({"a": 0, "b": 1, "c": 2, "d": 2, "e": 2, "f": 3})],
[pandas.Series({"a": 1, "b": 1, "c": numpy.nan, "d": 1, "e": 2, "f": 2}),
pandas.Series({"a": 0, "b": 0, "c": 1, "d": 2, "e": 3, "f": 3})],
[pandas.Series({"a": 1, "b": 1, "c": numpy.nan, "d": numpy.nan, "e": numpy.nan, "f": 2}),
pandas.Series({"a": 0, "b": 0, "c": 1, "d": 1, "e": 1, "f": 2})]
])
def test_get_id(self, input_data, expected_output):
actual_output = pdrle.get_id(input_data)
pandas.testing.assert_series_equal(actual_output, expected_output)
# test get_sn
@parameterized.expand([
[pandas.Series(["a", "a", "b", "b", "b", "a", "a", "c"]),
pandas.Series([0, 1, 0, 1, 2, 0, 1, 0])],
[pandas.Series([1, 1, 1, 1, 1, 1, 1]),
pandas.Series([0, 1, 2, 3, 4, 5, 6])],
[pandas.Series(["home", "home", numpy.nan, numpy.nan, numpy.nan, "home", "home"]),
pandas.Series([0, 1, 0, 1, 2, 0, 1])],
[pandas.Series([2]),
pandas.Series([0])],
[pandas.Series({"a": 1, "b": 2, "c": 3, "d": 3, "e": 3, "f": 1}),
pandas.Series({"a": 0, "b": 0, "c": 0, "d": 1, "e": 2, "f": 0})],
[pandas.Series({"a": 1, "b": 1, "c": numpy.nan, "d": 1, "e": 2, "f": 2}),
pandas.Series({"a": 0, "b": 1, "c": 0, "d": 0, "e": 0, "f": 1})],
[pandas.Series({"a": 1, "b": 1, "c": numpy.nan, "d": numpy.nan, "e": numpy.nan, "f": 2}),
pandas.Series({"a": 0, "b": 1, "c": 0, "d": 1, "e": 2, "f": 0})]
])
def test_get_sn(self, input_data, expected_output):
actual_output = pdrle.get_sn(input_data)
pandas.testing.assert_series_equal(actual_output, expected_output)
| 47.105263
| 97
| 0.466145
| 631
| 4,475
| 3.237718
| 0.07607
| 0.240822
| 0.032305
| 0.031326
| 0.820852
| 0.799315
| 0.717083
| 0.715614
| 0.687714
| 0.629956
| 0
| 0.058787
| 0.277765
| 4,475
| 94
| 98
| 47.606383
| 0.573329
| 0.010503
| 0
| 0.529412
| 0
| 0
| 0.06014
| 0
| 0
| 0
| 0
| 0
| 0.047059
| 1
| 0.047059
| false
| 0
| 0.058824
| 0
| 0.117647
| 0
| 0
| 0
| 0
| null | 1
| 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
| 6
|
e1c77e8738fd4837363dd6a976184a81167426e4
| 211
|
py
|
Python
|
resilient-circuits/tests/__init__.py
|
COLDTURNIP/resilient-python-api
|
14423f1dec32af67f7203c8d4d36d0a9e2651802
|
[
"MIT"
] | 28
|
2017-12-22T00:26:59.000Z
|
2022-01-22T14:51:33.000Z
|
resilient-circuits/tests/__init__.py
|
COLDTURNIP/resilient-python-api
|
14423f1dec32af67f7203c8d4d36d0a9e2651802
|
[
"MIT"
] | 18
|
2018-03-06T19:04:20.000Z
|
2022-03-21T15:06:30.000Z
|
resilient-circuits/tests/__init__.py
|
COLDTURNIP/resilient-python-api
|
14423f1dec32af67f7203c8d4d36d0a9e2651802
|
[
"MIT"
] | 28
|
2018-05-01T17:53:22.000Z
|
2022-03-28T09:56:59.000Z
|
#
from .shared_mock_data import mock_constants, mock_paths
from .shared_mock_data.mock_component import MockInboundAppComponent
from .shared_mock_data.mock_app_function_component import AppFunctionMockComponent
| 42.2
| 82
| 0.900474
| 27
| 211
| 6.592593
| 0.444444
| 0.168539
| 0.235955
| 0.303371
| 0.247191
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.066351
| 211
| 4
| 83
| 52.75
| 0.903553
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 6
|
e1c9666917317d59e74a6903c155e861491aff67
| 70,724
|
py
|
Python
|
tests/mock_api.py
|
bernard357/plumbery
|
4e7a69040f75ad21d35e3119dd9783e665fee122
|
[
"Apache-2.0"
] | 2
|
2016-01-14T15:06:32.000Z
|
2016-01-29T09:41:07.000Z
|
tests/mock_api.py
|
bernard357/plumbery
|
4e7a69040f75ad21d35e3119dd9783e665fee122
|
[
"Apache-2.0"
] | 7
|
2015-11-26T22:28:45.000Z
|
2016-02-10T22:35:56.000Z
|
tests/mock_api.py
|
bernard357/plumbery
|
4e7a69040f75ad21d35e3119dd9783e665fee122
|
[
"Apache-2.0"
] | 8
|
2015-11-25T09:56:07.000Z
|
2018-07-03T12:34:27.000Z
|
import os
from libcloud.utils.py3 import PY3
from libcloud.utils.py3 import u
from libcloud.utils.py3 import httplib
from libcloud.test import MockHttp
try:
from lxml import etree as ET
except ImportError:
from xml.etree import ElementTree as ET
class FileFixtures(object):
def __init__(self):
script_dir = os.path.abspath(os.path.split(__file__)[0])
self.root = os.path.join(script_dir, 'fixtures')
def load(self, file):
path = os.path.join(self.root, file)
if os.path.exists(path):
if PY3:
kwargs = {'encoding': 'utf-8'}
else:
kwargs = {}
with open(path, 'r', **kwargs) as fh:
content = fh.read()
return u(content)
else:
raise IOError(path)
class ComputeFileFixtures(FileFixtures):
def __init__(self):
super(ComputeFileFixtures, self).__init__()
class InvalidRequestError(Exception):
def __init__(self, tag):
super(InvalidRequestError, self).__init__("Invalid Request - %s" % tag)
class DimensionDataMockHttp(MockHttp):
fixtures = ComputeFileFixtures()
def _oec_0_9_myaccount_UNAUTHORIZED(self, method, url, body, headers):
return (httplib.UNAUTHORIZED, "", {}, httplib.responses[httplib.UNAUTHORIZED])
def _oec_0_9_myaccount(self, method, url, body, headers):
body = self.fixtures.load('oec_0_9_myaccount.xml')
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
def _oec_0_9_myaccount_INPROGRESS(self, method, url, body, headers):
body = self.fixtures.load('oec_0_9_myaccount.xml')
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
def _oec_0_9_myaccount_PAGINATED(self, method, url, body, headers):
body = self.fixtures.load('oec_0_9_myaccount.xml')
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
def _oec_0_9_myaccount_ALLFILTERS(self, method, url, body, headers):
body = self.fixtures.load('oec_0_9_myaccount.xml')
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
def _oec_0_9_base_image(self, method, url, body, headers):
body = self.fixtures.load('oec_0_9_base_image.xml')
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
def _oec_0_9_base_imageWithDiskSpeed(self, method, url, body, headers):
body = self.fixtures.load('oec_0_9_base_imageWithDiskSpeed.xml')
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
def _oec_0_9_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_server_deployed(self, method, url, body, headers):
body = self.fixtures.load(
'oec_0_9_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_server_deployed.xml')
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
def _oec_0_9_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_server_pendingDeploy(self, method, url, body, headers):
body = self.fixtures.load(
'oec_0_9_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_server_pendingDeploy.xml')
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
def _oec_0_9_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_datacenter(self, method, url, body, headers):
body = self.fixtures.load(
'oec_0_9_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_datacenter.xml')
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
def _oec_0_9_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_server_11(self, method, url, body, headers):
body = None
action = url.split('?')[-1]
if action == 'restart':
body = self.fixtures.load(
'oec_0_9_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_server_11_restart.xml')
elif action == 'shutdown':
body = self.fixtures.load(
'oec_0_9_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_server_11_shutdown.xml')
elif action == 'delete':
body = self.fixtures.load(
'oec_0_9_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_server_11_delete.xml')
elif action == 'start':
body = self.fixtures.load(
'oec_0_9_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_server_11_start.xml')
elif action == 'poweroff':
body = self.fixtures.load(
'oec_0_9_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_server_11_poweroff.xml')
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
def _oec_0_9_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_server_11_INPROGRESS(self, method, url, body, headers):
body = None
action = url.split('?')[-1]
if action == 'restart':
body = self.fixtures.load(
'oec_0_9_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_server_11_restart_INPROGRESS.xml')
elif action == 'shutdown':
body = self.fixtures.load(
'oec_0_9_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_server_11_shutdown_INPROGRESS.xml')
elif action == 'delete':
body = self.fixtures.load(
'oec_0_9_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_server_11_delete_INPROGRESS.xml')
elif action == 'start':
body = self.fixtures.load(
'oec_0_9_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_server_11_start_INPROGRESS.xml')
elif action == 'poweroff':
body = self.fixtures.load(
'oec_0_9_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_server_11_poweroff_INPROGRESS.xml')
return (httplib.BAD_REQUEST, body, {}, httplib.responses[httplib.OK])
def _oec_0_9_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_server(self, method, url, body, headers):
body = self.fixtures.load(
'_oec_0_9_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_server.xml')
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
def _oec_0_9_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_networkWithLocation(self, method, url, body, headers):
if method is "POST":
request = ET.fromstring(body)
if request.tag != "{http://oec.api.opsource.net/schemas/network}NewNetworkWithLocation":
raise InvalidRequestError(request.tag)
body = self.fixtures.load(
'oec_0_9_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_networkWithLocation.xml')
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
def _oec_0_9_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_networkWithLocation_NA9(self, method, url, body, headers):
body = self.fixtures.load(
'oec_0_9_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_networkWithLocation.xml')
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
def _oec_0_9_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_network_4bba37be_506f_11e3_b29c_001517c4643e(self, method,
url, body, headers):
body = self.fixtures.load(
'oec_0_9_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_network_4bba37be_506f_11e3_b29c_001517c4643e.xml')
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
def _oec_0_9_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_server_e75ead52_692f_4314_8725_c8a4f4d13a87_disk_1_changeSize(self, method, url, body, headers):
body = self.fixtures.load(
'oec_0_9_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_server_e75ead52_692f_4314_8725_c8a4f4d13a87_disk_1_changeSize.xml')
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
def _oec_0_9_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_server_e75ead52_692f_4314_8725_c8a4f4d13a87_disk_1_changeSpeed(self, method, url, body, headers):
body = self.fixtures.load(
'oec_0_9_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_server_e75ead52_692f_4314_8725_c8a4f4d13a87_disk_1_changeSpeed.xml')
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
def _oec_0_9_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_server_e75ead52_692f_4314_8725_c8a4f4d13a87_disk_1(self, method, url, body, headers):
action = url.split('?')[-1]
if action == 'delete':
body = self.fixtures.load(
'oec_0_9_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_server_e75ead52_692f_4314_8725_c8a4f4d13a87_disk_1.xml')
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
def _oec_0_9_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_server_e75ead52_692f_4314_8725_c8a4f4d13a87(self, method, url, body, headers):
if method == 'GET':
body = self.fixtures.load(
'oec_0_9_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_server_e75ead52_692f_4314_8725_c8a4f4d13a87.xml')
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
if method == 'POST':
body = self.fixtures.load(
'oec_0_9_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_server_e75ead52_692f_4314_8725_c8a4f4d13a87_POST.xml')
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
def _oec_0_9_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_antiAffinityRule(self, method, url, body, headers):
body = self.fixtures.load(
'oec_0_9_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_antiAffinityRule_create.xml'
)
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
def _oec_0_9_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_antiAffinityRule_FAIL_EXISTING(self, method, url, body, headers):
body = self.fixtures.load(
'oec_0_9_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_antiAffinityRule_create_FAIL.xml'
)
return (httplib.BAD_REQUEST, body, {}, httplib.responses[httplib.OK])
def _oec_0_9_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_antiAffinityRule_07e3621a_a920_4a9a_943c_d8021f27f418(self, method, url, body, headers):
body = self.fixtures.load(
'oec_0_9_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_antiAffinityRule_delete.xml'
)
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
def _oec_0_9_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_antiAffinityRule_07e3621a_a920_4a9a_943c_d8021f27f418_FAIL(self, method, url, body, headers):
body = self.fixtures.load(
'oec_0_9_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_antiAffinityRule_delete_FAIL.xml'
)
return (httplib.BAD_REQUEST, body, {}, httplib.responses[httplib.OK])
def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_server(self, method, url, body, headers):
body = self.fixtures.load(
'server.xml')
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_server_deleteServer(self, method, url, body, headers):
request = ET.fromstring(body)
if request.tag != "{urn:didata.com:api:cloud:types}deleteServer":
raise InvalidRequestError(request.tag)
body = self.fixtures.load(
'server_deleteServer.xml')
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_server_deleteServer_INPROGRESS(self, method, url, body, headers):
request = ET.fromstring(body)
if request.tag != "{urn:didata.com:api:cloud:types}deleteServer":
raise InvalidRequestError(request.tag)
body = self.fixtures.load(
'server_deleteServer_RESOURCEBUSY.xml')
return (httplib.BAD_REQUEST, body, {}, httplib.responses[httplib.OK])
def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_server_rebootServer(self, method, url, body, headers):
request = ET.fromstring(body)
if request.tag != "{urn:didata.com:api:cloud:types}rebootServer":
raise InvalidRequestError(request.tag)
body = self.fixtures.load(
'server_rebootServer.xml')
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_server_rebootServer_INPROGRESS(self, method, url, body, headers):
request = ET.fromstring(body)
if request.tag != "{urn:didata.com:api:cloud:types}rebootServer":
raise InvalidRequestError(request.tag)
body = self.fixtures.load(
'server_rebootServer_RESOURCEBUSY.xml')
return (httplib.BAD_REQUEST, body, {}, httplib.responses[httplib.OK])
def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_server_server(self, method, url, body, headers):
if url.endswith('datacenterId=NA3'):
body = self.fixtures.load(
'2.4/server_server_NA3.xml')
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
body = self.fixtures.load(
'2.4/server_server.xml')
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_server_server_PAGESIZE50(self, method, url, body, headers):
if not url.endswith('pageSize=50'):
raise ValueError("pageSize is not set as expected")
body = self.fixtures.load(
'2.4/server_server.xml')
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_server_server_EMPTY(self, method, url, body, headers):
body = self.fixtures.load(
'server_server_paginated_empty.xml')
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_server_server_PAGED_THEN_EMPTY(self, method, url, body, headers):
if 'pageNumber=2' in url:
body = self.fixtures.load(
'server_server_paginated_empty.xml')
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
else:
body = self.fixtures.load(
'2.4/server_server_paginated.xml')
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_server_server_PAGINATED(self, method, url, body, headers):
if 'pageNumber=2' in url:
body = self.fixtures.load(
'2.4/server_server.xml')
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
else:
body = self.fixtures.load(
'2.4/server_server_paginated.xml')
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_server_server_PAGINATEDEMPTY(self, method, url, body, headers):
body = self.fixtures.load(
'server_server_paginated_empty.xml')
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_server_server_ALLFILTERS(self, method, url, body, headers):
(_, params) = url.split('?')
parameters = params.split('&')
for parameter in parameters:
(key, value) = parameter.split('=')
if key == 'datacenterId':
assert value == 'fake_loc'
elif key == 'networkId':
assert value == 'fake_network'
elif key == 'networkDomainId':
assert value == 'fake_network_domain'
elif key == 'vlanId':
assert value == 'fake_vlan'
elif key == 'ipv6':
assert value == 'fake_ipv6'
elif key == 'privateIpv4':
assert value == 'fake_ipv4'
elif key == 'name':
assert value == 'fake_name'
elif key == 'state':
assert value == 'fake_state'
elif key == 'started':
assert value == 'True'
elif key == 'deployed':
assert value == 'True'
elif key == 'sourceImageId':
assert value == 'fake_image'
else:
raise ValueError("Could not find in url parameters {0}:{1}".format(key, value))
body = self.fixtures.load(
'2.4/server_server.xml')
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_server_antiAffinityRule(self, method, url, body, headers):
body = self.fixtures.load(
'server_antiAffinityRule_list.xml'
)
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_server_antiAffinityRule_ALLFILTERS(self, method, url, body, headers):
(_, params) = url.split('?')
parameters = params.split('&')
for parameter in parameters:
(key, value) = parameter.split('=')
if key == 'id':
assert value == 'FAKE_ID'
elif key == 'state':
assert value == 'FAKE_STATE'
elif key == 'pageSize':
assert value == '250'
elif key == 'networkDomainId':
pass
else:
raise ValueError("Could not find in url parameters {0}:{1}".format(key, value))
body = self.fixtures.load(
'server_antiAffinityRule_list.xml'
)
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_server_antiAffinityRule_PAGINATED(self, method, url, body, headers):
if 'pageNumber=2' in url:
body = self.fixtures.load(
'server_antiAffinityRule_list.xml')
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
else:
body = self.fixtures.load(
'server_antiAffinityRule_list_PAGINATED.xml')
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_infrastructure_datacenter(self, method, url, body, headers):
if url.endswith('id=NA9'):
body = self.fixtures.load(
'infrastructure_datacenter_NA9.xml')
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
body = self.fixtures.load(
'infrastructure_datacenter.xml')
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_infrastructure_datacenter_ALLFILTERS(self, method, url, body, headers):
if url.endswith('id=NA9'):
body = self.fixtures.load(
'infrastructure_datacenter_NA9.xml')
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
body = self.fixtures.load(
'infrastructure_datacenter.xml')
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_server_updateVmwareTools(self, method, url, body, headers):
request = ET.fromstring(body)
if request.tag != "{urn:didata.com:api:cloud:types}updateVmwareTools":
raise InvalidRequestError(request.tag)
body = self.fixtures.load(
'server_updateVmwareTools.xml')
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_server_startServer(self, method, url, body, headers):
request = ET.fromstring(body)
if request.tag != "{urn:didata.com:api:cloud:types}startServer":
raise InvalidRequestError(request.tag)
body = self.fixtures.load(
'server_startServer.xml')
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_server_startServer_INPROGRESS(self, method, url, body, headers):
request = ET.fromstring(body)
if request.tag != "{urn:didata.com:api:cloud:types}startServer":
raise InvalidRequestError(request.tag)
body = self.fixtures.load(
'server_startServer_INPROGRESS.xml')
return (httplib.BAD_REQUEST, body, {}, httplib.responses[httplib.OK])
def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_server_shutdownServer(self, method, url, body, headers):
request = ET.fromstring(body)
if request.tag != "{urn:didata.com:api:cloud:types}shutdownServer":
raise InvalidRequestError(request.tag)
body = self.fixtures.load(
'server_shutdownServer.xml')
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_server_shutdownServer_INPROGRESS(self, method, url, body, headers):
request = ET.fromstring(body)
if request.tag != "{urn:didata.com:api:cloud:types}shutdownServer":
raise InvalidRequestError(request.tag)
body = self.fixtures.load(
'server_shutdownServer_INPROGRESS.xml')
return (httplib.BAD_REQUEST, body, {}, httplib.responses[httplib.OK])
def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_server_resetServer(self, method, url, body, headers):
request = ET.fromstring(body)
if request.tag != "{urn:didata.com:api:cloud:types}resetServer":
raise InvalidRequestError(request.tag)
body = self.fixtures.load(
'server_resetServer.xml')
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_server_powerOffServer(self, method, url, body, headers):
request = ET.fromstring(body)
if request.tag != "{urn:didata.com:api:cloud:types}powerOffServer":
raise InvalidRequestError(request.tag)
body = self.fixtures.load(
'server_powerOffServer.xml')
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_server_powerOffServer_INPROGRESS(self, method, url, body, headers):
request = ET.fromstring(body)
if request.tag != "{urn:didata.com:api:cloud:types}powerOffServer":
raise InvalidRequestError(request.tag)
body = self.fixtures.load(
'server_powerOffServer_INPROGRESS.xml')
return (httplib.BAD_REQUEST, body, {}, httplib.responses[httplib.OK])
def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_server_server_11_INPROGRESS(
self, method, url, body, headers):
body = self.fixtures.load('2.4/server_GetServer.xml')
return (httplib.BAD_REQUEST, body, {}, httplib.responses[httplib.OK])
def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_network_networkDomain(self, method, url, body, headers):
body = self.fixtures.load(
'network_networkDomain.xml')
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_network_networkDomain_ALLFILTERS(self, method, url, body, headers):
(_, params) = url.split('?')
parameters = params.split('&')
for parameter in parameters:
(key, value) = parameter.split('=')
if key == 'datacenterId':
assert value == 'fake_location'
elif key == 'type':
assert value == 'fake_plan'
elif key == 'name':
assert value == 'fake_name'
elif key == 'state':
assert value == 'fake_state'
else:
raise ValueError("Could not find in url parameters {0}:{1}".format(key, value))
body = self.fixtures.load(
'network_networkDomain.xml')
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_network_vlan(self, method, url, body, headers):
body = self.fixtures.load(
'network_vlan.xml')
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_network_vlan_ALLFILTERS(self, method, url, body, headers):
(_, params) = url.split('?')
parameters = params.split('&')
for parameter in parameters:
(key, value) = parameter.split('=')
if key == 'datacenterId':
assert value == 'fake_location'
elif key == 'networkDomainId':
assert value == 'fake_network_domain'
elif key == 'ipv6Address':
assert value == 'fake_ipv6'
elif key == 'privateIpv4Address':
assert value == 'fake_ipv4'
elif key == 'name':
assert value == 'fake_name'
elif key == 'state':
assert value == 'fake_state'
else:
raise ValueError("Could not find in url parameters {0}:{1}".format(key, value))
body = self.fixtures.load(
'network_vlan.xml')
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_server_deployServer(self, method, url, body, headers):
request = ET.fromstring(body)
if request.tag != "{urn:didata.com:api:cloud:types}deployServer":
raise InvalidRequestError(request.tag)
# Make sure the we either have a network tag with an IP or networkId
# Or Network info with a primary nic that has privateip or vlanid
network = request.find(fixxpath('network', TYPES_URN))
network_info = request.find(fixxpath('networkInfo', TYPES_URN))
if network is not None:
if network_info is not None:
raise InvalidRequestError("Request has both MCP1 and MCP2 values")
ipv4 = findtext(network, 'privateIpv4', TYPES_URN)
networkId = findtext(network, 'networkId', TYPES_URN)
if ipv4 is None and networkId is None:
raise InvalidRequestError('Invalid request MCP1 requests need privateIpv4 or networkId')
elif network_info is not None:
if network is not None:
raise InvalidRequestError("Request has both MCP1 and MCP2 values")
primary_nic = network_info.find(fixxpath('primaryNic', TYPES_URN))
ipv4 = findtext(primary_nic, 'privateIpv4', TYPES_URN)
vlanId = findtext(primary_nic, 'vlanId', TYPES_URN)
if ipv4 is None and vlanId is None:
raise InvalidRequestError('Invalid request MCP2 requests need privateIpv4 or vlanId')
else:
raise InvalidRequestError('Invalid request, does not have network or network_info in XML')
body = self.fixtures.load(
'server_deployServer.xml')
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_server_server_e75ead52_692f_4314_8725_c8a4f4d13a87(self, method, url, body, headers):
body = self.fixtures.load(
'2.4/server_server_e75ead52_692f_4314_8725_c8a4f4d13a87.xml')
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_network_deployNetworkDomain(self, method, url, body, headers):
request = ET.fromstring(body)
if request.tag != "{urn:didata.com:api:cloud:types}deployNetworkDomain":
raise InvalidRequestError(request.tag)
body = self.fixtures.load(
'network_deployNetworkDomain.xml')
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_network_networkDomain_8cdfd607_f429_4df6_9352_162cfc0891be(self, method, url, body, headers):
body = self.fixtures.load(
'network_networkDomain_8cdfd607_f429_4df6_9352_162cfc0891be.xml')
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_network_networkDomain_8cdfd607_f429_4df6_9352_162cfc0891be_ALLFILTERS(self, method, url, body, headers):
body = self.fixtures.load(
'network_networkDomain_8cdfd607_f429_4df6_9352_162cfc0891be.xml')
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_network_editNetworkDomain(self, method, url, body, headers):
request = ET.fromstring(body)
if request.tag != "{urn:didata.com:api:cloud:types}editNetworkDomain":
raise InvalidRequestError(request.tag)
body = self.fixtures.load(
'network_editNetworkDomain.xml')
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_network_deleteNetworkDomain(self, method, url, body, headers):
request = ET.fromstring(body)
if request.tag != "{urn:didata.com:api:cloud:types}deleteNetworkDomain":
raise InvalidRequestError(request.tag)
body = self.fixtures.load(
'network_deleteNetworkDomain.xml')
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_network_deployVlan(self, method, url, body, headers):
request = ET.fromstring(body)
if request.tag != "{urn:didata.com:api:cloud:types}deployVlan":
raise InvalidRequestError(request.tag)
body = self.fixtures.load(
'network_deployVlan.xml')
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_network_vlan_0e56433f_d808_4669_821d_812769517ff8(self, method, url, body, headers):
body = self.fixtures.load(
'network_vlan_0e56433f_d808_4669_821d_812769517ff8.xml')
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_network_editVlan(self, method, url, body, headers):
request = ET.fromstring(body)
if request.tag != "{urn:didata.com:api:cloud:types}editVlan":
raise InvalidRequestError(request.tag)
body = self.fixtures.load(
'network_editVlan.xml')
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_network_deleteVlan(self, method, url, body, headers):
request = ET.fromstring(body)
if request.tag != "{urn:didata.com:api:cloud:types}deleteVlan":
raise InvalidRequestError(request.tag)
body = self.fixtures.load(
'network_deleteVlan.xml')
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_network_expandVlan(self, method, url, body, headers):
request = ET.fromstring(body)
if request.tag != "{urn:didata.com:api:cloud:types}expandVlan":
raise InvalidRequestError(request.tag)
body = self.fixtures.load(
'network_expandVlan.xml')
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_network_addPublicIpBlock(self, method, url, body, headers):
request = ET.fromstring(body)
if request.tag != "{urn:didata.com:api:cloud:types}addPublicIpBlock":
raise InvalidRequestError(request.tag)
body = self.fixtures.load(
'network_addPublicIpBlock.xml')
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_network_publicIpBlock_4487241a_f0ca_11e3_9315_d4bed9b167ba(self, method, url, body, headers):
body = self.fixtures.load(
'network_publicIpBlock_4487241a_f0ca_11e3_9315_d4bed9b167ba.xml')
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_network_publicIpBlock(self, method, url, body, headers):
body = self.fixtures.load(
'network_publicIpBlock.xml')
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_network_publicIpBlock_9945dc4a_bdce_11e4_8c14_b8ca3a5d9ef8(self, method, url, body, headers):
body = self.fixtures.load(
'network_publicIpBlock_9945dc4a_bdce_11e4_8c14_b8ca3a5d9ef8.xml')
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_network_removePublicIpBlock(self, method, url, body, headers):
request = ET.fromstring(body)
if request.tag != "{urn:didata.com:api:cloud:types}removePublicIpBlock":
raise InvalidRequestError(request.tag)
body = self.fixtures.load(
'network_removePublicIpBlock.xml')
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_network_firewallRule(self, method, url, body, headers):
body = self.fixtures.load(
'network_firewallRule.xml')
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_network_createFirewallRule(self, method, url, body, headers):
request = ET.fromstring(body)
if request.tag != "{urn:didata.com:api:cloud:types}createFirewallRule":
raise InvalidRequestError(request.tag)
body = self.fixtures.load(
'network_createFirewallRule.xml')
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_network_firewallRule_d0a20f59_77b9_4f28_a63b_e58496b73a6c(self, method, url, body, headers):
body = self.fixtures.load(
'network_firewallRule_d0a20f59_77b9_4f28_a63b_e58496b73a6c.xml')
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_network_editFirewallRule(self, method, url, body, headers):
request = ET.fromstring(body)
if request.tag != "{urn:didata.com:api:cloud:types}editFirewallRule":
raise InvalidRequestError(request.tag)
body = self.fixtures.load(
'network_editFirewallRule.xml')
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_network_deleteFirewallRule(self, method, url, body, headers):
request = ET.fromstring(body)
if request.tag != "{urn:didata.com:api:cloud:types}deleteFirewallRule":
raise InvalidRequestError(request.tag)
body = self.fixtures.load(
'network_deleteFirewallRule.xml')
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_network_createNatRule(self, method, url, body, headers):
request = ET.fromstring(body)
if request.tag != "{urn:didata.com:api:cloud:types}createNatRule":
raise InvalidRequestError(request.tag)
body = self.fixtures.load(
'network_createNatRule.xml')
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_network_natRule(self, method, url, body, headers):
body = self.fixtures.load(
'network_natRule.xml')
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_network_natRule_2187a636_7ebb_49a1_a2ff_5d617f496dce(self, method, url, body, headers):
body = self.fixtures.load(
'network_natRule_2187a636_7ebb_49a1_a2ff_5d617f496dce.xml')
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_network_deleteNatRule(self, method, url, body, headers):
request = ET.fromstring(body)
if request.tag != "{urn:didata.com:api:cloud:types}deleteNatRule":
raise InvalidRequestError(request.tag)
body = self.fixtures.load(
'network_deleteNatRule.xml')
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_server_addNic(self, method, url, body, headers):
request = ET.fromstring(body)
if request.tag != "{urn:didata.com:api:cloud:types}addNic":
raise InvalidRequestError(request.tag)
body = self.fixtures.load(
'server_addNic.xml')
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_server_removeNic(self, method, url, body, headers):
request = ET.fromstring(body)
if request.tag != "{urn:didata.com:api:cloud:types}removeNic":
raise InvalidRequestError(request.tag)
body = self.fixtures.load(
'server_removeNic.xml')
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_server_disableServerMonitoring(self, method, url, body, headers):
request = ET.fromstring(body)
if request.tag != "{urn:didata.com:api:cloud:types}disableServerMonitoring":
raise InvalidRequestError(request.tag)
body = self.fixtures.load(
'server_disableServerMonitoring.xml')
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_server_enableServerMonitoring(self, method, url, body, headers):
request = ET.fromstring(body)
if request.tag != "{urn:didata.com:api:cloud:types}enableServerMonitoring":
raise InvalidRequestError(request.tag)
body = self.fixtures.load(
'server_enableServerMonitoring.xml')
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_server_changeServerMonitoringPlan(self, method, url, body, headers):
request = ET.fromstring(body)
if request.tag != "{urn:didata.com:api:cloud:types}changeServerMonitoringPlan":
raise InvalidRequestError(request.tag)
body = self.fixtures.load(
'server_changeServerMonitoringPlan.xml')
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_image_osImage(self, method, url, body, headers):
body = self.fixtures.load(
'2.4/image_osImage.xml')
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_image_osImage_c14b1a46_2428_44c1_9c1a_b20e6418d08c(self, method, url, body, headers):
body = self.fixtures.load(
'2.4/image_osImage_c14b1a46_2428_44c1_9c1a_b20e6418d08c.xml')
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_image_osImage_6b4fb0c7_a57b_4f58_b59c_9958f94f971a(self, method, url, body, headers):
body = self.fixtures.load(
'2.4/image_osImage_6b4fb0c7_a57b_4f58_b59c_9958f94f971a.xml')
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_image_osImage_5234e5c7_01de_4411_8b6e_baeb8d91cf5d(self, method, url, body, headers):
body = self.fixtures.load(
'image_osImage_BAD_REQUEST.xml')
return (httplib.BAD_REQUEST, body, {}, httplib.responses[httplib.OK])
def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_image_osImage_2ffa36c8_1848_49eb_b4fa_9d908775f68c(self, method, url, body, headers):
body = self.fixtures.load(
'image_osImage_BAD_REQUEST.xml')
return (httplib.BAD_REQUEST, body, {}, httplib.responses[httplib.OK])
def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_image_osImage_FAKE_IMAGE_ID(self, method, url, body, headers):
body = self.fixtures.load(
'image_osImage_BAD_REQUEST.xml')
return (httplib.BAD_REQUEST, body, {}, httplib.responses[httplib.OK])
def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_image_customerImage(self, method, url, body, headers):
body = self.fixtures.load(
'2.4/image_customerImage.xml')
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_image_customerImage_5234e5c7_01de_4411_8b6e_baeb8d91cf5d(self, method, url, body, headers):
body = self.fixtures.load(
'2.4/image_customerImage_5234e5c7_01de_4411_8b6e_baeb8d91cf5d.xml')
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_image_customerImage_2ffa36c8_1848_49eb_b4fa_9d908775f68c(self, method, url, body, headers):
body = self.fixtures.load(
'2.4/image_customerImage_2ffa36c8_1848_49eb_b4fa_9d908775f68c.xml')
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_image_customerImage_FAKE_IMAGE_ID(self, method, url, body, headers):
body = self.fixtures.load(
'image_customerImage_BAD_REQUEST.xml')
return (httplib.BAD_REQUEST, body, {}, httplib.responses[httplib.OK])
def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_server_reconfigureServer(self, method, url, body, headers):
request = ET.fromstring(body)
if request.tag != "{urn:didata.com:api:cloud:types}reconfigureServer":
raise InvalidRequestError(request.tag)
body = self.fixtures.load(
'server_reconfigureServer.xml')
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_server_cleanServer(self, method, url, body, headers):
body = self.fixtures.load(
'server_cleanServer.xml')
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_server_addDisk(self, method, url, body, headers):
body = self.fixtures.load(
'server_addDisk.xml')
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_server_removeDisk(self, method, url, body, headers):
body = self.fixtures.load(
'server_removeDisk.xml')
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_tag_createTagKey(self, method, url, body, headers):
request = ET.fromstring(body)
if request.tag != "{urn:didata.com:api:cloud:types}createTagKey":
raise InvalidRequestError(request.tag)
name = findtext(request, 'name', TYPES_URN)
description = findtext(request, 'description', TYPES_URN)
value_required = findtext(request, 'valueRequired', TYPES_URN)
display_on_report = findtext(request, 'displayOnReport', TYPES_URN)
if name is None:
raise ValueError("Name must have a value in the request")
if description is not None:
raise ValueError("Default description for a tag should be blank")
if value_required is None or value_required != 'true':
raise ValueError("Default valueRequired should be true")
if display_on_report is None or display_on_report != 'true':
raise ValueError("Default displayOnReport should be true")
body = self.fixtures.load(
'tag_createTagKey.xml'
)
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_tag_createTagKey_ALLPARAMS(self, method, url, body, headers):
request = ET.fromstring(body)
if request.tag != "{urn:didata.com:api:cloud:types}createTagKey":
raise InvalidRequestError(request.tag)
name = findtext(request, 'name', TYPES_URN)
description = findtext(request, 'description', TYPES_URN)
value_required = findtext(request, 'valueRequired', TYPES_URN)
display_on_report = findtext(request, 'displayOnReport', TYPES_URN)
if name is None:
raise ValueError("Name must have a value in the request")
if description is None:
raise ValueError("Description should have a value")
if value_required is None or value_required != 'false':
raise ValueError("valueRequired should be false")
if display_on_report is None or display_on_report != 'false':
raise ValueError("displayOnReport should be false")
body = self.fixtures.load(
'tag_createTagKey.xml'
)
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_tag_createTagKey_BADREQUEST(self, method, url, body, headers):
body = self.fixtures.load(
'tag_createTagKey_BADREQUEST.xml')
return (httplib.BAD_REQUEST, body, {}, httplib.responses[httplib.OK])
def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_tag_tagKey(self, method, url, body, headers):
body = self.fixtures.load(
'tag_tagKey_list.xml'
)
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_tag_tagKey_SINGLE(self, method, url, body, headers):
body = self.fixtures.load(
'tag_tagKey_list_SINGLE.xml'
)
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_tag_tagKey_ALLFILTERS(self, method, url, body, headers):
(_, params) = url.split('?')
parameters = params.split('&')
for parameter in parameters:
(key, value) = parameter.split('=')
if key == 'id':
assert value == 'fake_id'
elif key == 'name':
assert value == 'fake_name'
elif key == 'valueRequired':
assert value == 'false'
elif key == 'displayOnReport':
assert value == 'false'
elif key == 'pageSize':
assert value == '250'
else:
raise ValueError("Could not find in url parameters {0}:{1}".format(key, value))
body = self.fixtures.load(
'tag_tagKey_list.xml'
)
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_tag_tagKey_d047c609_93d7_4bc5_8fc9_732c85840075(self, method, url, body, headers):
body = self.fixtures.load(
'tag_tagKey_5ab77f5f_5aa9_426f_8459_4eab34e03d54.xml'
)
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_tag_tagKey_d047c609_93d7_4bc5_8fc9_732c85840075_NOEXIST(self, method, url, body, headers):
body = self.fixtures.load(
'tag_tagKey_5ab77f5f_5aa9_426f_8459_4eab34e03d54_BADREQUEST.xml'
)
return (httplib.BAD_REQUEST, body, {}, httplib.responses[httplib.OK])
def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_tag_editTagKey_NAME(self, method, url, body, headers):
request = ET.fromstring(body)
if request.tag != "{urn:didata.com:api:cloud:types}editTagKey":
raise InvalidRequestError(request.tag)
name = findtext(request, 'name', TYPES_URN)
description = findtext(request, 'description', TYPES_URN)
value_required = findtext(request, 'valueRequired', TYPES_URN)
display_on_report = findtext(request, 'displayOnReport', TYPES_URN)
if name is None:
raise ValueError("Name must have a value in the request")
if description is not None:
raise ValueError("Description should be empty")
if value_required is not None:
raise ValueError("valueRequired should be empty")
if display_on_report is not None:
raise ValueError("displayOnReport should be empty")
body = self.fixtures.load(
'tag_editTagKey.xml'
)
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_tag_editTagKey_NOTNAME(self, method, url, body, headers):
request = ET.fromstring(body)
if request.tag != "{urn:didata.com:api:cloud:types}editTagKey":
raise InvalidRequestError(request.tag)
name = findtext(request, 'name', TYPES_URN)
description = findtext(request, 'description', TYPES_URN)
value_required = findtext(request, 'valueRequired', TYPES_URN)
display_on_report = findtext(request, 'displayOnReport', TYPES_URN)
if name is not None:
raise ValueError("Name should be empty")
if description is None:
raise ValueError("Description should not be empty")
if value_required is None:
raise ValueError("valueRequired should not be empty")
if display_on_report is None:
raise ValueError("displayOnReport should not be empty")
body = self.fixtures.load(
'tag_editTagKey.xml'
)
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_tag_editTagKey_NOCHANGE(self, method, url, body, headers):
body = self.fixtures.load(
'tag_editTagKey_BADREQUEST.xml'
)
return (httplib.BAD_REQUEST, body, {}, httplib.responses[httplib.OK])
def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_tag_deleteTagKey(self, method, url, body, headers):
request = ET.fromstring(body)
if request.tag != "{urn:didata.com:api:cloud:types}deleteTagKey":
raise InvalidRequestError(request.tag)
body = self.fixtures.load(
'tag_deleteTagKey.xml'
)
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_tag_deleteTagKey_NOEXIST(self, method, url, body, headers):
body = self.fixtures.load(
'tag_deleteTagKey_BADREQUEST.xml'
)
return (httplib.BAD_REQUEST, body, {}, httplib.responses[httplib.OK])
def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_tag_applyTags(self, method, url, body, headers):
request = ET.fromstring(body)
if request.tag != "{urn:didata.com:api:cloud:types}applyTags":
raise InvalidRequestError(request.tag)
asset_type = findtext(request, 'assetType', TYPES_URN)
asset_id = findtext(request, 'assetId', TYPES_URN)
tag = request.find(fixxpath('tag', TYPES_URN))
tag_key_name = findtext(tag, 'tagKeyName', TYPES_URN)
value = findtext(tag, 'value', TYPES_URN)
if asset_type is None:
raise ValueError("assetType should not be empty")
if asset_id is None:
raise ValueError("assetId should not be empty")
if tag_key_name is None:
raise ValueError("tagKeyName should not be empty")
if value is None:
raise ValueError("value should not be empty")
body = self.fixtures.load(
'tag_applyTags.xml'
)
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_tag_applyTags_NOVALUE(self, method, url, body, headers):
request = ET.fromstring(body)
if request.tag != "{urn:didata.com:api:cloud:types}applyTags":
raise InvalidRequestError(request.tag)
asset_type = findtext(request, 'assetType', TYPES_URN)
asset_id = findtext(request, 'assetId', TYPES_URN)
tag = request.find(fixxpath('tag', TYPES_URN))
tag_key_name = findtext(tag, 'tagKeyName', TYPES_URN)
value = findtext(tag, 'value', TYPES_URN)
if asset_type is None:
raise ValueError("assetType should not be empty")
if asset_id is None:
raise ValueError("assetId should not be empty")
if tag_key_name is None:
raise ValueError("tagKeyName should not be empty")
if value is not None:
raise ValueError("value should be empty")
body = self.fixtures.load(
'tag_applyTags.xml'
)
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_tag_applyTags_NOTAGKEY(self, method, url, body, headers):
body = self.fixtures.load(
'tag_applyTags_BADREQUEST.xml'
)
return (httplib.BAD_REQUEST, body, {}, httplib.responses[httplib.OK])
def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_tag_removeTags(self, method, url, body, headers):
request = ET.fromstring(body)
if request.tag != "{urn:didata.com:api:cloud:types}removeTags":
raise InvalidRequestError(request.tag)
body = self.fixtures.load(
'tag_removeTag.xml'
)
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_tag_removeTags_NOTAG(self, method, url, body, headers):
body = self.fixtures.load(
'tag_removeTag_BADREQUEST.xml'
)
return (httplib.BAD_REQUEST, body, {}, httplib.responses[httplib.OK])
def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_tag_tag(self, method, url, body, headers):
body = self.fixtures.load(
'tag_tag_list.xml'
)
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_tag_tag_ALLPARAMS(self, method, url, body, headers):
(_, params) = url.split('?')
parameters = params.split('&')
for parameter in parameters:
(key, value) = parameter.split('=')
if key == 'assetId':
assert value == 'fake_asset_id'
elif key == 'assetType':
assert value == 'fake_asset_type'
elif key == 'valueRequired':
assert value == 'false'
elif key == 'displayOnReport':
assert value == 'false'
elif key == 'pageSize':
assert value == '250'
elif key == 'datacenterId':
assert value == 'fake_location'
elif key == 'value':
assert value == 'fake_value'
elif key == 'tagKeyName':
assert value == 'fake_tag_key_name'
elif key == 'tagKeyId':
assert value == 'fake_tag_key_id'
else:
raise ValueError("Could not find in url parameters {0}:{1}".format(key, value))
body = self.fixtures.load(
'tag_tag_list.xml'
)
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_network_ipAddressList(
self, method, url, body, headers):
body = self.fixtures.load('ip_address_lists.xml')
return httplib.OK, body, {}, httplib.responses[httplib.OK]
def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_network_ipAddressList_FILTERBYNAME(
self, method, url, body, headers):
body = self.fixtures.load('ip_address_lists_FILTERBYNAME.xml')
return httplib.OK, body, {}, httplib.responses[httplib.OK]
def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_network_createIpAddressList(
self, method, url, body, headers):
request = ET.fromstring(body)
if request.tag != "{urn:didata.com:api:cloud:types}" \
"createIpAddressList":
raise InvalidRequestError(request.tag)
net_domain = findtext(request, 'networkDomainId', TYPES_URN)
if net_domain is None:
raise ValueError("Network Domain should not be empty")
name = findtext(request, 'name', TYPES_URN)
if name is None:
raise ValueError("Name should not be empty")
ip_version = findtext(request, 'ipVersion', TYPES_URN)
if ip_version is None:
raise ValueError("IP Version should not be empty")
ip_address_col_required = findall(request, 'ipAddress', TYPES_URN)
child_ip_address_required = findall(request, 'childIpAddressListId',
TYPES_URN)
if 0 == len(ip_address_col_required) and \
0 == len(child_ip_address_required):
raise ValueError("At least one ipAddress element or "
"one childIpAddressListId element must be "
"provided.")
if ip_address_col_required[0].get('begin') is None:
raise ValueError("IP Address should not be empty")
body = self.fixtures.load(
'ip_address_list_create.xml'
)
return httplib.OK, body, {}, httplib.responses[httplib.OK]
def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_network_editIpAddressList(
self, method, url, body, headers):
request = ET.fromstring(body)
if request.tag != "{urn:didata.com:api:cloud:types}" \
"editIpAddressList":
raise InvalidRequestError(request.tag)
ip_address_list = request.get('id')
if ip_address_list is None:
raise ValueError("IpAddressList ID should not be empty")
name = findtext(request, 'name', TYPES_URN)
if name is not None:
raise ValueError("Name should not exists in request")
ip_version = findtext(request, 'ipVersion', TYPES_URN)
if ip_version is not None:
raise ValueError("IP Version should not exists in request")
ip_address_col_required = findall(request, 'ipAddress', TYPES_URN)
child_ip_address_required = findall(request, 'childIpAddressListId',
TYPES_URN)
if 0 == len(ip_address_col_required) and \
0 == len(child_ip_address_required):
raise ValueError("At least one ipAddress element or "
"one childIpAddressListId element must be "
"provided.")
if ip_address_col_required[0].get('begin') is None:
raise ValueError("IP Address should not be empty")
body = self.fixtures.load(
'ip_address_list_edit.xml'
)
return httplib.OK, body, {}, httplib.responses[httplib.OK]
def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_network_deleteIpAddressList(
self, method, url, body, headers):
request = ET.fromstring(body)
if request.tag != "{urn:didata.com:api:cloud:types}" \
"deleteIpAddressList":
raise InvalidRequestError(request.tag)
ip_address_list = request.get('id')
if ip_address_list is None:
raise ValueError("IpAddressList ID should not be empty")
body = self.fixtures.load(
'ip_address_list_delete.xml'
)
return httplib.OK, body, {}, httplib.responses[httplib.OK]
def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_network_portList(
self, method, url, body, headers):
body = self.fixtures.load(
'port_list_lists.xml'
)
return httplib.OK, body, {}, httplib.responses[httplib.OK]
def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_network_portList_c8c92ea3_2da8_4d51_8153_f39bec794d69(
self, method, url, body, headers):
body = self.fixtures.load(
'port_list_get.xml'
)
return httplib.OK, body, {}, httplib.responses[httplib.OK]
def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_network_createPortList(
self, method, url, body, headers):
request = ET.fromstring(body)
if request.tag != "{urn:didata.com:api:cloud:types}" \
"createPortList":
raise InvalidRequestError(request.tag)
net_domain = findtext(request, 'networkDomainId', TYPES_URN)
if net_domain is None:
raise ValueError("Network Domain should not be empty")
ports_required = findall(request, 'port', TYPES_URN)
child_port_list_required = findall(request, 'childPortListId',
TYPES_URN)
if 0 == len(ports_required) and \
0 == len(child_port_list_required):
raise ValueError("At least one port element or one "
"childPortListId element must be provided")
if ports_required[0].get('begin') is None:
raise ValueError("PORT begin value should not be empty")
body = self.fixtures.load(
'port_list_create.xml'
)
return httplib.OK, body, {}, httplib.responses[httplib.OK]
def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_network_editPortList(
self, method, url, body, headers):
request = ET.fromstring(body)
if request.tag != "{urn:didata.com:api:cloud:types}" \
"editPortList":
raise InvalidRequestError(request.tag)
ports_required = findall(request, 'port', TYPES_URN)
child_port_list_required = findall(request, 'childPortListId',
TYPES_URN)
if 0 == len(ports_required) and \
0 == len(child_port_list_required):
raise ValueError("At least one port element or one "
"childPortListId element must be provided")
if ports_required[0].get('begin') is None:
raise ValueError("PORT begin value should not be empty")
body = self.fixtures.load(
'port_list_edit.xml'
)
return httplib.OK, body, {}, httplib.responses[httplib.OK]
def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_network_deletePortList(
self, method, url, body, headers):
request = ET.fromstring(body)
if request.tag != "{urn:didata.com:api:cloud:types}" \
"deletePortList":
raise InvalidRequestError(request.tag)
port_list = request.get('id')
if port_list is None:
raise ValueError("Port List ID should not be empty")
body = self.fixtures.load(
'ip_address_list_delete.xml'
)
return httplib.OK, body, {}, httplib.responses[httplib.OK]
def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_server_cloneServer(
self, method, url, body, headers):
body = self.fixtures.load(
'2.4/server_clone_response.xml'
)
return httplib.OK, body, {}, httplib.responses[httplib.OK]
def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_image_importImage(
self, method, url, body, headers):
body = self.fixtures.load(
'2.4/import_image_response.xml'
)
return httplib.OK, body, {}, httplib.responses[httplib.OK]
def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_server_exchangeNicVlans(
self, method, url, body, headers):
body = self.fixtures.load(
'2.4/exchange_nic_vlans_response.xml'
)
return httplib.OK, body, {}, httplib.responses[httplib.OK]
def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_server_changeNetworkAdapter(
self, method, url, body, headers):
body = self.fixtures.load(
'2.4/change_nic_networkadapter_response.xml'
)
return httplib.OK, body, {}, httplib.responses[httplib.OK]
def _caas_2_4_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_server_deployUncustomizedServer(
self, method, url, body, headers):
body = self.fixtures.load(
'2.4/deploy_customised_server.xml'
)
return httplib.OK, body, {}, httplib.responses[httplib.OK]
def _oec_0_9_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_server_e75ead52_692f_4314_8725_c8a4f4d13a87_backup_client_type(self, method, url, body, headers):
body = self.fixtures.load(
'_backup_client_type.xml')
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
def _oec_0_9_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_server_e75ead52_692f_4314_8725_c8a4f4d13a87_backup_client_storagePolicy(
self, method, url, body, headers):
body = self.fixtures.load(
'_backup_client_storagePolicy.xml')
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
def _oec_0_9_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_server_e75ead52_692f_4314_8725_c8a4f4d13a87_backup_client_schedulePolicy(
self, method, url, body, headers):
body = self.fixtures.load(
'_backup_client_schedulePolicy.xml')
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
def _oec_0_9_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_server_e75ead52_692f_4314_8725_c8a4f4d13a87_backup_client(
self, method, url, body, headers):
if method == 'POST':
body = self.fixtures.load(
'_backup_client_SUCCESS_PUT.xml')
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
else:
raise ValueError("Unknown Method {0}".format(method))
def _oec_0_9_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_server_e75ead52_692f_4314_8725_c8a4f4d13a87_backup_NOCLIENT(
self, method, url, body, headers):
# only gets here are implemented
# If we get any other method something has gone wrong
assert(method == 'GET')
body = self.fixtures.load(
'_backup_INFO_NOCLIENT.xml')
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
def _oec_0_9_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_server_e75ead52_692f_4314_8725_c8a4f4d13a87_backup_DISABLED(
self, method, url, body, headers):
# only gets here are implemented
# If we get any other method something has gone wrong
assert(method == 'GET')
body = self.fixtures.load(
'_backup_INFO_DISABLED.xml')
return (httplib.BAD_REQUEST, body, {}, httplib.responses[httplib.OK])
def _oec_0_9_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_server_e75ead52_692f_4314_8725_c8a4f4d13a87_backup_NOJOB(
self, method, url, body, headers):
# only gets here are implemented
# If we get any other method something has gone wrong
assert(method == 'GET')
body = self.fixtures.load(
'_backup_INFO_NOJOB.xml')
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
def _oec_0_9_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_server_e75ead52_692f_4314_8725_c8a4f4d13a87_backup_DEFAULT(
self, method, url, body, headers):
if method != 'POST':
raise InvalidRequestError('Only POST is accepted for this test')
request = ET.fromstring(body)
service_plan = request.get('servicePlan')
if service_plan != DEFAULT_BACKUP_PLAN:
raise InvalidRequestError('The default plan %s should have been passed in. Not %s' % (DEFAULT_BACKUP_PLAN, service_plan))
body = self.fixtures.load(
'_backup_ENABLE.xml')
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
def _oec_0_9_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_server_e75ead52_692f_4314_8725_c8a4f4d13a87_backup(
self, method, url, body, headers):
if method == 'POST':
body = self.fixtures.load(
'_backup_ENABLE.xml')
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
elif method == 'GET':
if url.endswith('disable'):
body = self.fixtures.load(
'_backup_DISABLE.xml')
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
body = self.fixtures.load(
'_backup_INFO.xml')
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
else:
raise ValueError("Unknown Method {0}".format(method))
def _oec_0_9_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_server_e75ead52_692f_4314_8725_c8a4f4d13a87_backup_EXISTS(
self, method, url, body, headers):
# only POSTs are implemented
# If we get any other method something has gone wrong
assert(method == 'POST')
body = self.fixtures.load(
'_backup_EXISTS.xml')
return (httplib.BAD_REQUEST, body, {}, httplib.responses[httplib.OK])
def _oec_0_9_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_server_e75ead52_692f_4314_8725_c8a4f4d13a87_backup_modify(
self, method, url, body, headers):
request = ET.fromstring(body)
service_plan = request.get('servicePlan')
if service_plan != 'Essentials':
raise InvalidRequestError("Expected Essentials backup plan in request")
body = self.fixtures.load('_backup_modify.xml')
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
def _oec_0_9_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_server_e75ead52_692f_4314_8725_c8a4f4d13a87_backup_modify_DEFAULT(
self, method, url, body, headers):
request = ET.fromstring(body)
service_plan = request.get('servicePlan')
if service_plan != DEFAULT_BACKUP_PLAN:
raise InvalidRequestError("Expected % backup plan in test" % DEFAULT_BACKUP_PLAN)
body = self.fixtures.load('_backup_modify.xml')
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
def _oec_0_9_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_server_e75ead52_692f_4314_8725_c8a4f4d13a87_backup_client_30b1ff76_c76d_4d7c_b39d_3b72be0384c8(
self, method, url, body, headers):
if url.endswith('disable'):
body = self.fixtures.load(
('_remove_backup_client.xml')
)
elif url.endswith('cancelJob'):
body = self.fixtures.load(
(''
'_backup_client_30b1ff76_c76d_4d7c_b39d_3b72be0384c8_cancelJob.xml')
)
else:
raise ValueError("Unknown URL: %s" % url)
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
def _oec_0_9_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_server_e75ead52_692f_4314_8725_c8a4f4d13a87_backup_client_30b1ff76_c76d_4d7c_b39d_3b72be0384c8_FAIL(
self, method, url, body, headers):
if url.endswith('disable'):
body = self.fixtures.load(
('_remove_backup_client_FAIL.xml')
)
elif url.endswith('cancelJob'):
body = self.fixtures.load(
(''
'_backup_client_30b1ff76_c76d_4d7c_b39d_3b72be0384c8_cancelJob_FAIL.xml')
)
else:
raise ValueError("Unknown URL: %s" % url)
return (httplib.BAD_REQUEST, body, {}, httplib.responses[httplib.OK])
| 49.113889
| 159
| 0.666916
| 8,338
| 70,724
| 5.346966
| 0.052291
| 0.058542
| 0.059933
| 0.074916
| 0.907454
| 0.89099
| 0.880291
| 0.861741
| 0.852096
| 0.815827
| 0
| 0.079806
| 0.234263
| 70,724
| 1,439
| 160
| 49.148019
| 0.743426
| 0.006476
| 0
| 0.61854
| 0
| 0
| 0.172486
| 0.108334
| 0
| 0
| 0
| 0
| 0.034454
| 1
| 0.124692
| false
| 0.001641
| 0.008203
| 0.00082
| 0.266612
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 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
| 6
|
beda3b8a8d79ccb2ae6bbdb60c7ba828189148e7
| 33
|
py
|
Python
|
src/__init__.py
|
Tygovanommen/relational-database-data-import
|
7a4743101228dc4be8a3ec76dc2879ef6523344f
|
[
"MIT"
] | null | null | null |
src/__init__.py
|
Tygovanommen/relational-database-data-import
|
7a4743101228dc4be8a3ec76dc2879ef6523344f
|
[
"MIT"
] | null | null | null |
src/__init__.py
|
Tygovanommen/relational-database-data-import
|
7a4743101228dc4be8a3ec76dc2879ef6523344f
|
[
"MIT"
] | null | null | null |
from src.dbEbgine import dbEbgine
| 33
| 33
| 0.878788
| 5
| 33
| 5.8
| 0.8
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.090909
| 33
| 1
| 33
| 33
| 0.966667
| 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
| 1
| 0
|
0
| 6
|
bedab2642f36f021563cac9548d9cc3bc49da55f
| 29
|
py
|
Python
|
tests/core/test_pandas.py
|
aluhrs13/HPI
|
e750666e30e8987f3a4c46755857dc85dd64446c
|
[
"MIT"
] | 1,026
|
2020-03-16T16:53:29.000Z
|
2022-03-29T16:03:38.000Z
|
tests/core/test_pandas.py
|
aluhrs13/HPI
|
e750666e30e8987f3a4c46755857dc85dd64446c
|
[
"MIT"
] | 102
|
2020-03-18T22:53:29.000Z
|
2022-03-22T00:34:46.000Z
|
tests/core/test_pandas.py
|
aluhrs13/HPI
|
e750666e30e8987f3a4c46755857dc85dd64446c
|
[
"MIT"
] | 50
|
2020-03-17T21:00:34.000Z
|
2022-03-28T08:37:13.000Z
|
from my.core.pandas import *
| 14.5
| 28
| 0.758621
| 5
| 29
| 4.4
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.137931
| 29
| 1
| 29
| 29
| 0.88
| 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
| 1
| 0
|
0
| 6
|
8300b277a4ee8df0d7731d83c1ec13d9bec52373
| 1,868
|
py
|
Python
|
python_liftbridge/errors.py
|
LaPetiteSouris/python-liftbridge
|
e97f795ae1be8ea871ac032d61464fb91a45973e
|
[
"Apache-2.0"
] | null | null | null |
python_liftbridge/errors.py
|
LaPetiteSouris/python-liftbridge
|
e97f795ae1be8ea871ac032d61464fb91a45973e
|
[
"Apache-2.0"
] | null | null | null |
python_liftbridge/errors.py
|
LaPetiteSouris/python-liftbridge
|
e97f795ae1be8ea871ac032d61464fb91a45973e
|
[
"Apache-2.0"
] | 1
|
2020-05-30T13:49:50.000Z
|
2020-05-30T13:49:50.000Z
|
from functools import wraps
import grpc
class ErrNoSuchStream(Exception):
def __init__(self, message=None):
message = message or 'Given stream does not exist'
super().__init__(message)
class ErrStreamExists(Exception):
def __init__(self, message=None):
message = message or 'Given stream already exists'
super().__init__(message)
class ErrChannelClosed(Exception):
def __init__(self, message=None):
message = message or 'Given channel has been closed'
super().__init__(message)
def handle_rpc_errors(fnc):
"""Decorator to add more context to RPC errors"""
@wraps(fnc)
def wrapper(*args, **kwargs):
try:
return fnc(*args, **kwargs)
except grpc.RpcError as e:
if e.code() == grpc.StatusCode.NOT_FOUND:
raise ErrNoSuchStream from None
elif e.code() == grpc.StatusCode.ALREADY_EXISTS:
raise ErrStreamExists from None
elif e.code() == grpc.StatusCode.CANCELLED:
raise ErrChannelClosed from None
else:
print('Failed with {1}: {2}'.format(e.code(), e.details()))
return wrapper
def handle_rpc_errors_in_generator(fnc):
"""Decorator to add more context to RPC errors"""
@wraps(fnc)
def wrapper(*args, **kwargs):
try:
yield from fnc(*args, **kwargs)
except grpc.RpcError as e:
if e.code() == grpc.StatusCode.NOT_FOUND:
raise ErrNoSuchStream from None
elif e.code() == grpc.StatusCode.ALREADY_EXISTS:
raise ErrStreamExists from None
elif e.code() == grpc.StatusCode.CANCELLED:
raise ErrChannelClosed from None
else:
print('Failed with {1}: {2}'.format(e.code(), e.details()))
return wrapper
| 30.129032
| 75
| 0.604925
| 213
| 1,868
| 5.14554
| 0.300469
| 0.036496
| 0.04927
| 0.104015
| 0.771898
| 0.771898
| 0.771898
| 0.771898
| 0.771898
| 0.771898
| 0
| 0.003026
| 0.292291
| 1,868
| 61
| 76
| 30.622951
| 0.826021
| 0.046574
| 0
| 0.727273
| 0
| 0
| 0.069492
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.159091
| false
| 0
| 0.045455
| 0
| 0.340909
| 0.045455
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 6
|
831f0b158174593e4a01ba0a4e2de5cde05b7c37
| 26
|
py
|
Python
|
video/__init__.py
|
mikesmithlab/Video
|
7b8b67fde3715b5cbe80d26ff5f6dfbaa04702ca
|
[
"MIT"
] | null | null | null |
video/__init__.py
|
mikesmithlab/Video
|
7b8b67fde3715b5cbe80d26ff5f6dfbaa04702ca
|
[
"MIT"
] | null | null | null |
video/__init__.py
|
mikesmithlab/Video
|
7b8b67fde3715b5cbe80d26ff5f6dfbaa04702ca
|
[
"MIT"
] | null | null | null |
from .opencv_io import *
| 8.666667
| 24
| 0.730769
| 4
| 26
| 4.5
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.192308
| 26
| 2
| 25
| 13
| 0.857143
| 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
| 1
| 0
|
0
| 6
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.