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
ec59f47cdd49b11f75af7b6ab14f64ade6c800e4
4,970
py
Python
MatataCore/python/controller/motion_sensor.py
Jean-Daniel/MatataKit
e6ca2d5c09bbfc5df9739560f64699f5a33291f9
[ "Apache-2.0" ]
null
null
null
MatataCore/python/controller/motion_sensor.py
Jean-Daniel/MatataKit
e6ca2d5c09bbfc5df9739560f64699f5a33291f9
[ "Apache-2.0" ]
null
null
null
MatataCore/python/controller/motion_sensor.py
Jean-Daniel/MatataKit
e6ca2d5c09bbfc5df9739560f64699f5a33291f9
[ "Apache-2.0" ]
null
null
null
import sys import math import random import imp import struct class motion_sensor: def __init__(self, call): self.call = call def is_shaked(self): data = [0x20, 0x02, 0x01] self.call.blewrite(data) r = self.call.blewait(0x20) if(r == None): return False else: if(r[4] > 0): return True else: return False def is_halo_up(self): data = [0x20, 0x02, 0x02] self.call.blewrite(data) r = self.call.blewait(0x20) if(r == None): return False else: if(r[4] > 0): return True else: return False def is_halo_down(self): data = [0x20, 0x02, 0x03] self.call.blewrite(data) r = self.call.blewait(0x20) if(r == None): return False else: if(r[4] > 0): return True else: return False def is_stable(self): data = [0x20, 0x02, 0x02] self.call.blewrite(data) r = self.call.blewait(0x20) if(r == None): return False else: if(r[4] > 0): return False else: return True def is_tilted_left(self): data = [0x20, 0x02, 0x04] self.call.blewrite(data) r = self.call.blewait(0x20) if(r == None): return False else: if(r[4] > 0): return True else: return False def is_tilted_right(self): data = [0x20, 0x02, 0x05] self.call.blewrite(data) r = self.call.blewait(0x20) if(r == None): return False else: if(r[4] > 0): return True else: return False def is_tilted_forward(self): data = [0x20, 0x02, 0x06] self.call.blewrite(data) r = self.call.blewait(0x20) if(r == None): return False else: if(r[4] > 0): return True else: return False def is_tilted_backward(self): data = [0x20, 0x02, 0x07] self.call.blewrite(data) r = self.call.blewait(0x20) if(r == None): return False else: if(r[4] > 0): return True else: return False def is_fall(self): data = [0x20, 0x02, 0x08] self.call.blewrite(data) r = self.call.blewait(0x20) if(r == None): return False else: if(r[4] > 0): return True else: return False def is_color(self, color): return True def is_pressed(self, key): return True def is_sound_detected(self): return True def is_obstacle_disappear(self): return True def get_pitch(self): data = [0x28, 0x01, 0x05] self.call.blewrite(data) r = self.call.blewait(0x28) if(r == None): return 0 re = r[4] << 24 | r[5] << 16 | r[6] << 8 | r[7] re = re & 0xffffffff f = struct.unpack('<f', struct.pack('I', re))[0] return f def get_yaw(self): data = [0x28, 0x01, 0x06] self.call.blewrite(data) r = self.call.blewait(0x28) if(r == None): return 0 else: re = r[4] << 24 | r[5] << 16 | r[6] << 8 | r[7] re = re & 0xffffffff f = struct.unpack('<f', struct.pack('I', re))[0] return f def get_roll(self): data = [0x28, 0x01, 0x04] self.call.blewrite(data) r = self.call.blewait(0x28) if(r == None): return 0 else: re = r[4] << 24 | r[5] << 16 | r[6] << 8 | r[7] re = re & 0xffffffff f = struct.unpack('<f', struct.pack('I', re))[0] return f def get_acceleration(self, xyz): data = [0x28, 0x01, 0x01] if(xyz == "X"): data[2] = 0x01 elif(xyz == "Y"): data[2] = 0x02 elif(xyz == "Z"): data[2] = 0x03 self.call.blewrite(data) r = self.call.blewait(0x28) if(r == None): return 0 else: re = r[4] << 24 | r[5] << 16 | r[6] << 8 | r[7] re = re & 0xffffffff f = struct.unpack('<f', struct.pack('I', re))[0] return f def get_shaked_strength(self): data = [0x28, 0x01, 0x07] self.call.blewrite(data) r = self.call.blewait(0x28) if(r == None): return 0 else: re = r[4] << 24 | r[5] << 16 | r[6] << 8 | r[7] re = re & 0xffffffff f = struct.unpack('<f', struct.pack('I', re))[0] return f
25.357143
60
0.444869
606
4,970
3.59571
0.128713
0.110142
0.102799
0.128499
0.727398
0.727398
0.727398
0.727398
0.727398
0.709041
0
0.091263
0.431187
4,970
195
61
25.487179
0.679519
0
0
0.748571
0
0
0.003622
0
0
0
0.057545
0
0
1
0.108571
false
0
0.028571
0.022857
0.377143
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
ec6479c57c43b6ab4a6ea7c95d4b764fb9ce9e7c
18
py
Python
contrib/MSU/Lib/__init__.py
xylar/cdat
8a5080cb18febfde365efc96147e25f51494a2bf
[ "BSD-3-Clause" ]
62
2018-03-30T15:46:56.000Z
2021-12-08T23:30:24.000Z
contrib/MSU/Lib/__init__.py
xylar/cdat
8a5080cb18febfde365efc96147e25f51494a2bf
[ "BSD-3-Clause" ]
114
2018-03-21T01:12:43.000Z
2021-07-05T12:29:54.000Z
contrib/MSU/Lib/__init__.py
CDAT/uvcdat
5133560c0c049b5c93ee321ba0af494253b44f91
[ "BSD-3-Clause" ]
14
2018-06-06T02:42:47.000Z
2021-11-26T03:27:00.000Z
from MSU import *
9
17
0.722222
3
18
4.333333
1
0
0
0
0
0
0
0
0
0
0
0
0.222222
18
1
18
18
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
ec6bf5d1ec7d2743106e9a65967ec83a43409bd8
237
py
Python
eval/architectures/losses.py
ratschlab/ncl
8ad4e779cdc6f2465cbb3cfbd449904d62e17154
[ "MIT" ]
7
2021-06-11T08:18:15.000Z
2022-03-23T14:56:13.000Z
eval/architectures/losses.py
ratschlab/ncl
8ad4e779cdc6f2465cbb3cfbd449904d62e17154
[ "MIT" ]
2
2022-01-19T08:05:17.000Z
2022-02-08T09:50:55.000Z
eval/architectures/losses.py
ratschlab/ncl
8ad4e779cdc6f2465cbb3cfbd449904d62e17154
[ "MIT" ]
null
null
null
import tensorflow as tf import tensorflow_addons as tfa import gin gin.external_configurable(tf.keras.losses.SparseCategoricalCrossentropy, name='cross_entropy') gin.external_configurable(tf.keras.losses.MeanSquaredError, name='mse')
26.333333
94
0.843882
30
237
6.533333
0.566667
0.163265
0.234694
0.255102
0.367347
0.367347
0
0
0
0
0
0
0.07173
237
8
95
29.625
0.890909
0
0
0
0
0
0.067797
0
0
0
0
0
0
1
0
true
0
0.6
0
0.6
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
6
ecab086b99213f00c1fd9960423961f85e97d7fc
142
py
Python
app.py
JesterOrNot/Find-Linear-Relationships
714dab1750c06a330e8e4a88194dee6e61296406
[ "MIT" ]
null
null
null
app.py
JesterOrNot/Find-Linear-Relationships
714dab1750c06a330e8e4a88194dee6e61296406
[ "MIT" ]
1
2019-11-27T03:49:15.000Z
2019-11-27T03:49:15.000Z
app.py
JesterOrNot/Find-Mathematical-Relationships
714dab1750c06a330e8e4a88194dee6e61296406
[ "MIT" ]
null
null
null
from model import mathRelationshipID print(mathRelationshipID([-1.0, 0.0, 1.0, 2.0, 3.0, 4.0], [-2.0, 1.0, 4.0, 7.0, 10.0, 13.0], 700, 2000))
47.333333
104
0.626761
32
142
2.78125
0.46875
0.067416
0.067416
0
0
0
0
0
0
0
0
0.266129
0.126761
142
2
105
71
0.451613
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0.5
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
1
0
6
ecd4f67b4262c03e8c476848c84d38043eae1bf0
151
py
Python
projectaile/utils/__init__.py
anubhav-tiwari-abt/projectaile
98f582851a76fb6e6ff96c38cc0b21141f6b3e78
[ "MIT" ]
null
null
null
projectaile/utils/__init__.py
anubhav-tiwari-abt/projectaile
98f582851a76fb6e6ff96c38cc0b21141f6b3e78
[ "MIT" ]
null
null
null
projectaile/utils/__init__.py
anubhav-tiwari-abt/projectaile
98f582851a76fb6e6ff96c38cc0b21141f6b3e78
[ "MIT" ]
null
null
null
from .base_class import BASE from .exception_handler import EXCEPTION_HANDLER from .exceptions import _EXCEPTION_LIST_ from .validator import VALIDATOR
37.75
48
0.874172
20
151
6.3
0.45
0.253968
0
0
0
0
0
0
0
0
0
0
0.099338
151
4
49
37.75
0.926471
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
01bae5e5b0b01f41443209fbfc802edffcf9cbd6
26,074
py
Python
pommerman/agents/dqn_agent_utilities.py
b-kartal/playground
0efcf44661ea42c0bca75cfa70fe3025527b5e49
[ "Apache-2.0" ]
null
null
null
pommerman/agents/dqn_agent_utilities.py
b-kartal/playground
0efcf44661ea42c0bca75cfa70fe3025527b5e49
[ "Apache-2.0" ]
null
null
null
pommerman/agents/dqn_agent_utilities.py
b-kartal/playground
0efcf44661ea42c0bca75cfa70fe3025527b5e49
[ "Apache-2.0" ]
null
null
null
import numpy as np import queue from pommerman import constants from pommerman import utility from collections import defaultdict # Pommerman Domain Information to Simulate the Game all_actions = [constants.Action.Stop, constants.Action.Left, constants.Action.Right, constants.Action.Up, constants.Action.Down, constants.Action.Bomb] directions = [constants.Action.Stop, constants.Action.Left, constants.Action.Right, constants.Action.Up, constants.Action.Down] _directionsAsVector = {constants.Action.Up: (0, 1), constants.Action.Down: (0, -1), constants.Action.Left: (1, 0), constants.Action.Right: (-1, 0), constants.Action.Stop: (0, 0)} _directionsAsList = _directionsAsVector.items() def _filter_legal_actions(state): my_position = tuple(state['position']) board = np.array(state['board']) enemies = [constants.Item(e) for e in state['enemies']] ret = [constants.Action.Bomb] for direction in directions: position = utility.get_next_position(my_position, direction) if utility.position_on_board(board, position) and utility.position_is_passable(board, position, enemies): ret.append(direction) return ret def _walls(board): ret = np.zeros(board.shape) locations = np.where(board == constants.Item.Rigid.value) for r, c in zip(locations[0], locations[1]): ret[r][c] = 1 return ret def _flame(board): ret = np.zeros(board.shape) locations = np.where(board == constants.Item.Flames.value) for r, c in zip(locations[0], locations[1]): ret[r][c] = 1 return ret def _passage(board): ret = np.zeros(board.shape) locations = np.where(board == constants.Item.Passage.value) for r, c in zip(locations[0], locations[1]): ret[r][c] = 1 return ret def _flame_counter(board): ret = np.zeros(board.shape) locations = np.where(board == constants.Item.Flames.value) for r, c in zip(locations[0], locations[1]): ret[r][c] = 2 # TODO hardcode 2 is flame life if change - then this must be changed as well return ret def _wood(board): ret = np.zeros(board.shape) locations = np.where(board == constants.Item.Wood.value) for r, c in zip(locations[0], locations[1]): ret[r][c] = 1 return ret def _bombs(board): ret = np.zeros(board.shape) locations = np.where(board == constants.Item.Bomb.value) for r, c in zip(locations[0], locations[1]): ret[r][c] = 1 return ret def _powerup_ExtraBomb(board): ret = np.zeros(board.shape) locations = np.where(board == constants.Item.ExtraBomb) for r, c in zip(locations[0], locations[1]): ret[r][c] = 1 return ret def _powerup_IncRange(board): ret = np.zeros(board.shape) locations = np.where( board == constants.Item.IncrRange ) for r, c in zip(locations[0], locations[1]): ret[r][c] = 1 return ret def _powerup_Kick(board): ret = np.zeros(board.shape) locations = np.where(board == constants.Item.Kick ) for r, c in zip(locations[0], locations[1]): ret[r][c] = 1 return ret def is_valid_position(board, position, direction, step): row, col = position invalid_values = [item.value for item \ in [constants.Item.Rigid]] if utility.position_on_board(board,position)== False: return False if constants.Action(direction) == constants.Action.Stop: return True if constants.Action(direction) == constants.Action.Up: return row - step >= 0 and board[row-step][col] not in invalid_values if constants.Action(direction) == constants.Action.Down: return row + step < len(board) and board[row+step][col] not in invalid_values if constants.Action(direction) == constants.Action.Left: return col - step >= 0 and board[row][col-step] not in invalid_values if constants.Action(direction) == constants.Action.Right: return col + step < len(board[0]) and \ board[row][col+step] not in invalid_values raise constants.InvalidAction("We did not receive a valid direction: ", direction) def get_next_position_steps(position, direction, steps): x, y = position if direction == constants.Action.Right: return (x, y + steps) elif direction == constants.Action.Left: return (x, y - steps) elif direction == constants.Action.Down: return (x + steps, y) elif direction == constants.Action.Up: return (x - steps, y) return (x, y) def _wood_positions(board): ret = [] locations = np.where(board == constants.Item.Wood.value) for r, c in zip(locations[0], locations[1]): ret.append((r,c)) return ret def _flames_positions(board): ret = [] locations = np.where(board == constants.Item.Flames.value) for r, c in zip(locations[0], locations[1]): ret.append((r, c)) return ret def _enemies_positions(board, enemies): ret = [] for e in enemies: locations = np.where(board == e.value) for r, c in zip(locations[0], locations[1]): ret.append((r, c)) return ret def _agents_positions(board): ret = {} agent_ids = [10,11,12,13] for e in agent_ids: locations = np.where(board == e) for r, c in zip(locations[0], locations[1]): ret[e-10] = (r,c) return ret def convert_bombs(bomb_map): ret = [] locations = np.where(bomb_map > 0) for r, c in zip(locations[0], locations[1]): ret.append({'position': (r, c), 'blast_strength': int(bomb_map[(r, c)])}) return ret def convert_flames(flame_map): ret = [] locations = np.where(flame_map > 0) for r, c in zip(locations[0], locations[1]): ret.append({'position': (r, c)}) return ret # agent alive or not? # for flames # binary - flame locations # integer - flame time remaining def diagonalAgentId(ourAgentId): list = [constants.Item.Agent0.value ,constants.Item.Agent1.value, constants.Item.Agent2.value, constants.Item.Agent3.value] # agent IDs from the list return list[(list.index(ourAgentId)+2)%len(list)] def nonDiagonalAgents(ourAgentId): # returns two adjacent (non-diagonal) enemy ids list = [constants.Item.Agent0.value, constants.Item.Agent1.value, constants.Item.Agent2.value, constants.Item.Agent3.value] # agent IDs from the list # get diagonal agent - remove diagonal and itself , return the other remaining two. list.remove(diagonalAgentId(ourAgentId)) list.remove(ourAgentId) return list def _teammate_position(board,e): ret = [] locations = np.where(board == e.value) for r, c in zip(locations[0], locations[1]): ret.append((r, c)) return ret def generate_NN_input_with_ids(my_game_id ,observation, time_step): # latest channel version where one additional feature map with agent type #print(observation) numberOfChannels = 19 current_board = np.array(observation['board']) # done board_size = current_board.shape[0] # TODO ASSUMING THE BOARD IS SQUARE ret = np.zeros((numberOfChannels, board_size, board_size)) # inspired from backplay pommerman paper index_bomb_strength = 0 # integer index_bomb_t_explode = 1 # integer index_agent_loc = 2 index_agent_bomb_count = 3 index_agent_blast = 4 index_agent_can_kick = 5 index_agent_has_teammate = 6 index_agent_mate_or_enemy1_loc = 7 index_agent_enemy2_loc = 8 index_agent_enemy3_loc = 9 index_passage_loc = 10 index_wall_loc = 11 # binary index_wood_loc = 12 # binary index_flame_loc = 13 # binary index_powerup_extrabomb = 14 index_powerup_increaseblast = 15 index_powerup_cankick = 16 index_game_timestep = 17 # float % of game episode index_agentid_class = 18 # This will be 1 if agent id is 10 or 11, and 2 if agent id 12 or 13 ... #print("current board is \n") #print(current_board, "\n") alives = np.array(observation['alive']) our_agent_pos = np.array(observation['position']) #print("our position is ", our_agent_pos) our_agentid = my_game_id #print("our agent id is ", our_agentid) agent_positions = _agents_positions(current_board) # returns all the agent locations # print("agent positions are", agent_positions, " \n") enemies = np.array(observation['enemies']) # print("enemies are ", enemies) # print("alive agents are ", alives) ret[index_bomb_strength, :, :] = np.array(observation['bomb_blast_strength']) # done #print( " bomb blast strength is ", ret[index_bomb_strength, :, :] ) ret[index_bomb_t_explode, :, :] = np.array(observation['bomb_life']) # done #print (" bomb time to explode is ", ret[index_bomb_t_explode,:,:]) # print(f"agent locations {agent_positions} and our aget id {our_agentid}") if our_agentid in alives: # otherwise return our agent location empty or noT? TODO ret[index_agent_loc,agent_positions[our_agentid-10][0], agent_positions[our_agentid-10][1]] = 1 # binary map for our agent #print(" channel for our agent location ",ret[index_agent_loc,:,:]) ret[index_agent_bomb_count,:,:] = np.ones((board_size,board_size)) * np.array(observation['ammo']) # integer full map #print(" channel for our agent ammo size ",ret[index_agent_bomb_count,:,:]) ret[index_agent_blast,:,:] = np.ones((board_size, board_size)) * np.array(observation['blast_strength']) # integer map full #print(" channel for agent blast strength ",ret[index_agent_blast,:,:]) ret[index_agent_can_kick,:,:] = np.ones((board_size, board_size)) * np.array(observation['can_kick']) # binary map full #print(" channel for agent kick ",ret[index_agent_can_kick,:,:]) diagonalPlayer = diagonalAgentId(our_agentid) # TODO remove lines setting to zeros after testing if diagonalPlayer in alives and agent_positions.get(diagonalPlayer - 10,False): #Fixed for partially pbservable version ret[index_agent_mate_or_enemy1_loc, agent_positions[diagonalPlayer - 10][0], agent_positions[diagonalPlayer - 10][1]] = 1 # set location to binary if np.array(observation['teammate']) != constants.Item.AgentDummy: # team game ret[index_agent_has_teammate,:,:] = np.ones((board_size, board_size)) # full binary map #print("team mate channel is ", ret[index_agent_has_teammate,:,:]) #print("team mate location channel is ", ret[index_agent_mate_or_enemy1_loc, :, :]) otherTwoEnemyIds = nonDiagonalAgents(our_agentid) # returns an array with two elements # print("other agents are ", otherTwoEnemyIds) # first layer is the smallest id among two # second layer is the higher one if otherTwoEnemyIds[0] in alives and agent_positions.get(otherTwoEnemyIds[0]-10,False): #Fixed for partially pbservable version ret[index_agent_enemy2_loc,agent_positions[otherTwoEnemyIds[0]-10][0], agent_positions[otherTwoEnemyIds[0]-10][1]] = 1 # set location to binary if otherTwoEnemyIds[1] in alives and agent_positions.get(otherTwoEnemyIds[1]-10,False): #Fixed for partially pbservable version ret[index_agent_enemy3_loc, agent_positions[otherTwoEnemyIds[1]-10][0], agent_positions[otherTwoEnemyIds[1]-10][1]] = 1 # set location to binary # print("enemy2 location channel is ", ret[index_agent_enemy2_loc, :, :]) # print("enemy3 location channel is ", ret[index_agent_enemy3_loc, :, :]) ret[index_passage_loc,:,:] = _passage(current_board) # done ret[index_wall_loc,:,:] = _walls(current_board) # done ret[index_wood_loc,:,:] = _wood(current_board) # done ret[index_flame_loc,:,:] = _flame(current_board) # done #print("passage is ", ret[index_passage_loc,:,:]) #print("wall is ", ret[index_wall_loc,:,:]) #print("wood is ", ret[index_wood_loc,:,:]) #print("flame is ", ret[index_flame_loc,:,:]) ret[index_powerup_extrabomb,:,:] = _powerup_ExtraBomb(current_board) # done ret[index_powerup_increaseblast, :, :] = _powerup_IncRange(current_board) # done ret[index_powerup_cankick, :, :] = _powerup_Kick(current_board) # done ignoreTimeIndex=False #This will partition the timesteps only in two phases if ignoreTimeIndex: if index_game_timestep<=40: ret[index_game_timestep, :, :] = np.zeros((board_size, board_size)) else: ret[index_game_timestep, :, :] = np.ones((board_size, board_size)) else: ret[index_game_timestep,:,:] = np.ones((board_size,board_size))*(time_step/800.0) # done TODO 800 game length here #print("time is ", ret[index_game_timestep,:,:]) #print("generated channels") if our_agentid in (10,11): ret[index_agentid_class,:,:] = np.ones((board_size, board_size)) else: # agent id is 12 or 13 ret[index_agentid_class, :, :] = np.ones((board_size, board_size))*2 #print(ret) return ret #print(" >>>>>>>>>>>>>>>>>>>>>>>>> \n") def generate_NN_input(my_game_id ,observation, time_step): #print(observation) numberOfChannels = 18 current_board = np.array(observation['board']) # done board_size = current_board.shape[0] # TODO ASSUMING THE BOARD IS SQUARE ret = np.zeros((numberOfChannels, board_size, board_size)) # inspired from backplay pommerman paper index_bomb_strength = 0 # integer index_bomb_t_explode = 1 # integer index_agent_loc = 2 index_agent_bomb_count = 3 index_agent_blast = 4 index_agent_can_kick = 5 index_agent_has_teammate = 6 index_agent_mate_or_enemy1_loc = 7 index_agent_enemy2_loc = 8 index_agent_enemy3_loc = 9 index_passage_loc = 10 index_wall_loc = 11 # binary index_wood_loc = 12 # binary index_flame_loc = 13 # binary index_powerup_extrabomb = 14 index_powerup_increaseblast = 15 index_powerup_cankick = 16 index_game_timestep = 17 # float % of game episode #print("current board is \n") #print(current_board, "\n") alives = np.array(observation['alive']) our_agent_pos = np.array(observation['position']) #print("our position is ", our_agent_pos) our_agentid = my_game_id #print("our agent id is ", our_agentid) agent_positions = _agents_positions(current_board) # returns all the agent locations # print("agent positions are", agent_positions, " \n") enemies = np.array(observation['enemies']) # print("enemies are ", enemies) # print("alive agents are ", alives) ret[index_bomb_strength, :, :] = np.array(observation['bomb_blast_strength']) # done #print( " bomb blast strength is ", ret[index_bomb_strength, :, :] ) ret[index_bomb_t_explode, :, :] = np.array(observation['bomb_life']) # done #print (" bomb time to explode is ", ret[index_bomb_t_explode,:,:]) # print(f"agent locations {agent_positions} and our aget id {our_agentid}") if our_agentid in alives: # otherwise return our agent location empty or noT? TODO ret[index_agent_loc,agent_positions[our_agentid-10][0], agent_positions[our_agentid-10][1]] = 1 # binary map for our agent #print(" channel for our agent location ",ret[index_agent_loc,:,:]) ret[index_agent_bomb_count,:,:] = np.ones((board_size,board_size)) * np.array(observation['ammo']) # integer full map #print(" channel for our agent ammo size ",ret[index_agent_bomb_count,:,:]) ret[index_agent_blast,:,:] = np.ones((board_size, board_size)) * np.array(observation['blast_strength']) # integer map full #print(" channel for agent blast strength ",ret[index_agent_blast,:,:]) ret[index_agent_can_kick,:,:] = np.ones((board_size, board_size)) * np.array(observation['can_kick']) # binary map full #print(" channel for agent kick ",ret[index_agent_can_kick,:,:]) diagonalPlayer = diagonalAgentId(our_agentid) # TODO remove lines setting to zeros after testing if diagonalPlayer in alives and agent_positions.get(diagonalPlayer - 10,False): #Fixed for partially pbservable version ret[index_agent_mate_or_enemy1_loc, agent_positions[diagonalPlayer - 10][0], agent_positions[diagonalPlayer - 10][1]] = 1 # set location to binary if np.array(observation['teammate']) != constants.Item.AgentDummy: # team game ret[index_agent_has_teammate,:,:] = np.ones((board_size, board_size)) # full binary map #print("team mate channel is ", ret[index_agent_has_teammate,:,:]) #print("team mate location channel is ", ret[index_agent_mate_or_enemy1_loc, :, :]) otherTwoEnemyIds = nonDiagonalAgents(our_agentid) # returns an array with two elements # print("other agents are ", otherTwoEnemyIds) # first layer is the smallest id among two # second layer is the higher one if otherTwoEnemyIds[0] in alives and agent_positions.get(otherTwoEnemyIds[0]-10,False): #Fixed for partially pbservable version ret[index_agent_enemy2_loc,agent_positions[otherTwoEnemyIds[0]-10][0], agent_positions[otherTwoEnemyIds[0]-10][1]] = 1 # set location to binary if otherTwoEnemyIds[1] in alives and agent_positions.get(otherTwoEnemyIds[1]-10,False): #Fixed for partially pbservable version ret[index_agent_enemy3_loc, agent_positions[otherTwoEnemyIds[1]-10][0], agent_positions[otherTwoEnemyIds[1]-10][1]] = 1 # set location to binary # print("enemy2 location channel is ", ret[index_agent_enemy2_loc, :, :]) # print("enemy3 location channel is ", ret[index_agent_enemy3_loc, :, :]) ret[index_passage_loc,:,:] = _passage(current_board) # done ret[index_wall_loc,:,:] = _walls(current_board) # done ret[index_wood_loc,:,:] = _wood(current_board) # done ret[index_flame_loc,:,:] = _flame(current_board) # done #print("passage is ", ret[index_passage_loc,:,:]) #print("wall is ", ret[index_wall_loc,:,:]) #print("wood is ", ret[index_wood_loc,:,:]) #print("flame is ", ret[index_flame_loc,:,:]) ret[index_powerup_extrabomb,:,:] = _powerup_ExtraBomb(current_board) # done ret[index_powerup_increaseblast, :, :] = _powerup_IncRange(current_board) # done ret[index_powerup_cankick, :, :] = _powerup_Kick(current_board) # done ignoreTimeIndex=False #This will partition the timesteps only in two phases if ignoreTimeIndex: if index_game_timestep<=40: ret[index_game_timestep, :, :] = np.zeros((board_size, board_size)) else: ret[index_game_timestep, :, :] = np.ones((board_size, board_size)) else: ret[index_game_timestep,:,:] = np.ones((board_size,board_size))*(time_step/800.0) # done TODO 800 game length here #print("time is ", ret[index_game_timestep,:,:]) #print("generated channels") return ret #print(" >>>>>>>>>>>>>>>>>>>>>>>>> \n") def generate_NN_input_team(my_game_id ,observation, my_game_id2, observation2,time_step): #print(observation) numberOfChannels = 20 current_board = np.array(observation['board']) # done board_size = current_board.shape[0] # TODO ASSUMING THE BOARD IS SQUARE ret = np.zeros((numberOfChannels, board_size, board_size)) # inspired from backplay pommerman paper index_bomb_strength = 0 # integer index_bomb_t_explode = 1 # integer index_agent_loc = 2 index_agent_bomb_count = 3 index_agent_blast = 4 index_agent_can_kick = 5 # index_agent_has_teammate = 6 # index_agent_mate_or_enemy1_loc = 7 index_agent_enemy2_loc = 6 index_agent_enemy3_loc = 7 index_passage_loc = 8 index_wall_loc = 9 # binary index_wood_loc = 10 # binary index_flame_loc = 11 # binary index_powerup_extrabomb = 12 index_powerup_increaseblast = 13 index_powerup_cankick = 14 index_game_timestep = 15 # float % of game episode index2_agent_loc = 16 index2_agent_bomb_count = 17 index2_agent_blast = 18 index2_agent_can_kick = 19 #print("current board is \n") #print(current_board, "\n") alives = np.array(observation['alive']) our_agent_pos = np.array(observation['position']) #print("our position is ", our_agent_pos) our_agentid = my_game_id #print("our agent id is ", our_agentid) agent_positions = _agents_positions(current_board) # returns all the agent locations # print("agent positions are", agent_positions, " \n") enemies = np.array(observation['enemies']) # print("enemies are ", enemies) # print("alive agents are ", alives) ret[index_bomb_strength, :, :] = np.array(observation['bomb_blast_strength']) # done #print( " bomb blast strength is ", ret[index_bomb_strength, :, :] ) ret[index_bomb_t_explode, :, :] = np.array(observation['bomb_life']) # done #print (" bomb time to explode is ", ret[index_bomb_t_explode,:,:]) # print(f"agent locations {agent_positions} and our aget id {our_agentid}") if our_agentid in alives: # otherwise return our agent location empty or noT? TODO ret[index_agent_loc,agent_positions[our_agentid-10][0], agent_positions[our_agentid-10][1]] = 1 # binary map for our agent #print(" channel for our agent location ",ret[index_agent_loc,:,:]) ret[index_agent_bomb_count,:,:] = np.ones((board_size,board_size)) * np.array(observation['ammo']) # integer full map #print(" channel for our agent ammo size ",ret[index_agent_bomb_count,:,:]) ret[index_agent_blast,:,:] = np.ones((board_size, board_size)) * np.array(observation['blast_strength']) # integer map full #print(" channel for agent blast strength ",ret[index_agent_blast,:,:]) ret[index_agent_can_kick,:,:] = np.ones((board_size, board_size)) * np.array(observation['can_kick']) # binary map full #print(" channel for agent kick ",ret[index_agent_can_kick,:,:]) diagonalPlayer = diagonalAgentId(our_agentid) # TODO remove lines setting to zeros after testing #if diagonalPlayer in alives and agent_positions.get(diagonalPlayer - 10,False): #Fixed for partially pbservable version # ret[index_agent_mate_or_enemy1_loc, agent_positions[diagonalPlayer - 10][0], agent_positions[diagonalPlayer - 10][1]] = 1 # set location to binary # if np.array(observation['teammate']) != constants.Item.AgentDummy: # team game # ret[index_agent_has_teammate,:,:] = np.ones((board_size, board_size)) # full binary map #print("team mate channel is ", ret[index_agent_has_teammate,:,:]) #print("team mate location channel is ", ret[index_agent_mate_or_enemy1_loc, :, :]) otherTwoEnemyIds = nonDiagonalAgents(our_agentid) # returns an array with two elements # print("other agents are ", otherTwoEnemyIds) # first layer is the smallest id among two # second layer is the higher one if otherTwoEnemyIds[0] in alives and agent_positions.get(otherTwoEnemyIds[0]-10,False): #Fixed for partially pbservable version ret[index_agent_enemy2_loc,agent_positions[otherTwoEnemyIds[0]-10][0], agent_positions[otherTwoEnemyIds[0]-10][1]] = 1 # set location to binary if otherTwoEnemyIds[1] in alives and agent_positions.get(otherTwoEnemyIds[1]-10,False): #Fixed for partially pbservable version ret[index_agent_enemy3_loc, agent_positions[otherTwoEnemyIds[1]-10][0], agent_positions[otherTwoEnemyIds[1]-10][1]] = 1 # set location to binary # print("enemy2 location channel is ", ret[index_agent_enemy2_loc, :, :]) # print("enemy3 location channel is ", ret[index_agent_enemy3_loc, :, :]) ret[index_passage_loc,:,:] = _passage(current_board) # done ret[index_wall_loc,:,:] = _walls(current_board) # done ret[index_wood_loc,:,:] = _wood(current_board) # done ret[index_flame_loc,:,:] = _flame(current_board) # done #print("passage is ", ret[index_passage_loc,:,:]) #print("wall is ", ret[index_wall_loc,:,:]) #print("wood is ", ret[index_wood_loc,:,:]) #print("flame is ", ret[index_flame_loc,:,:]) ret[index_powerup_extrabomb,:,:] = _powerup_ExtraBomb(current_board) # done ret[index_powerup_increaseblast, :, :] = _powerup_IncRange(current_board) # done ret[index_powerup_cankick, :, :] = _powerup_Kick(current_board) # done ignoreTimeIndex=False #This will partition the timesteps only in two phases if ignoreTimeIndex: if index_game_timestep<=40: ret[index_game_timestep, :, :] = np.zeros((board_size, board_size)) else: if index_game_timestep < 750: ret[index_game_timestep, :, :] = np.ones((board_size, board_size)) else: ret[index_game_timestep, :, :] = np.ones((board_size, board_size)) * ( time_step / 800.0) # done TODO 800 game length here else: ret[index_game_timestep,:,:] = np.ones((board_size,board_size))*(time_step/800.0) # done TODO 800 game length here #print("time is ", ret[index_game_timestep,:,:]) #print("generated channels") our_agentid2 = my_game_id2 if our_agentid2 in alives: # otherwise return our agent location empty or noT? TODO ret[index2_agent_loc,agent_positions[our_agentid2-10][0], agent_positions[our_agentid2-10][1]] = 1 # binary map for our agent #print(" channel for teammate agent location ",ret[index2_agent_loc,:,:]) ret[index2_agent_bomb_count,:,:] = np.ones((board_size,board_size)) * np.array(observation2['ammo']) # integer full map #print(" channel for teammate agent ammo size ",ret[index2_agent_bomb_count,:,:]) ret[index2_agent_blast,:,:] = np.ones((board_size, board_size)) * np.array(observation2['blast_strength']) # integer map full #print(" channel for teammate agent blast strength ",ret[index2_agent_blast,:,:]) ret[index2_agent_can_kick,:,:] = np.ones((board_size, board_size)) * np.array(observation2['can_kick']) # binary map full #print(" channel for teammate agent kick ",ret[index2_agent_can_kick,:,:]) return ret
39.3273
156
0.682404
3,547
26,074
4.798985
0.07161
0.050758
0.036658
0.031724
0.861767
0.837504
0.827047
0.818999
0.805781
0.801668
0
0.019748
0.194025
26,074
662
157
39.386707
0.790245
0.304134
0
0.653521
0
0
0.020484
0
0
0
0
0.001511
0
1
0.067606
false
0.025352
0.014085
0
0.174648
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
bf0aafa45bfec5dd8b5caa126a581ce40c14f414
64
py
Python
tests/utils.py
dimkonko/pyramid_api_example
b3bfb8dbe623544af9b147081d3e25c75a191c24
[ "MIT" ]
null
null
null
tests/utils.py
dimkonko/pyramid_api_example
b3bfb8dbe623544af9b147081d3e25c75a191c24
[ "MIT" ]
null
null
null
tests/utils.py
dimkonko/pyramid_api_example
b3bfb8dbe623544af9b147081d3e25c75a191c24
[ "MIT" ]
null
null
null
import json def parse_json(data): return json.loads(data)
10.666667
27
0.71875
10
64
4.5
0.7
0
0
0
0
0
0
0
0
0
0
0
0.1875
64
5
28
12.8
0.865385
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
bf1781a32486a95f26f2bd2615f5706c8df905eb
5,152
py
Python
tests/test_mongo_controller_int_float.py
lucafaggianelli/layabase
90733c6b9efd56051dfce5c3d89bd4e657ce7b3f
[ "MIT" ]
3
2019-12-02T23:29:44.000Z
2019-12-31T00:55:01.000Z
tests/test_mongo_controller_int_float.py
lucafaggianelli/layabase
90733c6b9efd56051dfce5c3d89bd4e657ce7b3f
[ "MIT" ]
29
2019-12-02T16:12:45.000Z
2022-02-17T16:01:55.000Z
tests/test_mongo_controller_int_float.py
lucafaggianelli/layabase
90733c6b9efd56051dfce5c3d89bd4e657ce7b3f
[ "MIT" ]
3
2020-01-02T10:58:47.000Z
2022-02-17T10:55:18.000Z
import pytest import layabase import layabase.mongo @pytest.fixture def controller(): class TestCollection: __collection_name__ = "test" int_value = layabase.mongo.Column(int) float_value = layabase.mongo.Column(float) controller = layabase.CRUDController(TestCollection) layabase.load("mongomock", [controller]) return controller def test_post_int_str_in_int_column(controller): assert controller.post({"int_value": "15", "float_value": 1.0}) == { "int_value": 15, "float_value": 1.0, } def test_put_int_str_in_int_column(controller): controller.post({"int_value": 15, "float_value": 1.0}) assert controller.put({"int_value": "16", "float_value": 1.0}) == ( {"int_value": 15, "float_value": 1.0}, {"int_value": 16, "float_value": 1.0}, ) def test_delete_int_str_in_int_column(controller): controller.post({"int_value": 15, "float_value": 1.0}) assert controller.delete({"int_value": "15"}) == 1 def test_post_float_str_in_float_column(controller): assert controller.post({"int_value": 15, "float_value": "1.3"}) == { "int_value": 15, "float_value": 1.3, } def test_put_float_str_in_float_column(controller): controller.post({"int_value": 15, "float_value": 1.3}) assert controller.put({"int_value": 15, "float_value": "1.4"}) == ( {"int_value": 15, "float_value": 1.3}, {"int_value": 15, "float_value": 1.4}, ) def test_delete_float_str_in_float_column(controller): controller.post({"int_value": 15, "float_value": 1.3}) assert controller.delete({"float_value": "1.3"}) == 1 def test_post_with_non_int_str_in_int_column(controller): with pytest.raises(layabase.ValidationFailed) as exception_info: controller.post({"int_value": "abc", "float_value": 1.0}) assert exception_info.value.errors == {"int_value": ["Not a valid int."]} assert exception_info.value.received_data == { "int_value": "abc", "float_value": 1.0, } def test_post_with_non_float_str_in_float_column(controller): with pytest.raises(layabase.ValidationFailed) as exception_info: controller.post({"int_value": 1, "float_value": "abc"}) assert exception_info.value.errors == {"float_value": ["Not a valid float."]} assert exception_info.value.received_data == {"float_value": "abc", "int_value": 1} def test_get_with_non_int_str_in_int_column(controller): with pytest.raises(layabase.ValidationFailed) as exception_info: controller.get({"int_value": "abc", "float_value": 1.0}) assert exception_info.value.errors == {"int_value": ["Not a valid int."]} assert exception_info.value.received_data == { "int_value": "abc", "float_value": 1.0, } def test_get_with_non_float_str_in_float_column(controller): with pytest.raises(layabase.ValidationFailed) as exception_info: controller.get({"int_value": 1, "float_value": "abc"}) assert exception_info.value.errors == {"float_value": ["Not a valid float."]} assert exception_info.value.received_data == {"float_value": "abc", "int_value": 1} def test_put_with_non_int_str_in_int_column(controller): with pytest.raises(layabase.ValidationFailed) as exception_info: controller.put({"int_value": "abc", "float_value": 1.0}) assert exception_info.value.errors == {"int_value": ["Not a valid int."]} assert exception_info.value.received_data == { "int_value": "abc", "float_value": 1.0, } def test_put_with_non_float_str_in_float_column(controller): with pytest.raises(layabase.ValidationFailed) as exception_info: controller.put({"int_value": 1, "float_value": "abc"}) assert exception_info.value.errors == {"float_value": ["Not a valid float."]} assert exception_info.value.received_data == {"float_value": "abc", "int_value": 1} def test_delete_with_non_int_str_in_int_column(controller): with pytest.raises(layabase.ValidationFailed) as exception_info: controller.delete({"int_value": "abc", "float_value": 1.0}) assert exception_info.value.errors == {"int_value": ["Not a valid int."]} assert exception_info.value.received_data == { "int_value": "abc", "float_value": 1.0, } def test_delete_with_non_float_str_in_float_column(controller): with pytest.raises(layabase.ValidationFailed) as exception_info: controller.delete({"int_value": 1, "float_value": "abc"}) assert exception_info.value.errors == {"float_value": ["Not a valid float."]} assert exception_info.value.received_data == {"float_value": "abc", "int_value": 1} def test_get_is_valid_with_int_str_in_int_column(controller): controller.post({"int_value": 123, "float_value": 1.0}) assert controller.get_one({"int_value": "123"}) == { "int_value": 123, "float_value": 1.0, } def test_get_is_valid_with_float_str_in_float_column(controller): controller.post({"int_value": 1, "float_value": 1.23}) assert controller.get_one({"float_value": "1.23"}) == { "int_value": 1, "float_value": 1.23, }
36.28169
87
0.685947
704
5,152
4.680398
0.072443
0.099545
0.093475
0.061912
0.879211
0.870106
0.850683
0.8
0.8
0.797572
0
0.025593
0.165761
5,152
141
88
36.539007
0.741042
0
0
0.384615
0
0
0.197787
0
0
0
0
0
0.230769
1
0.163462
false
0
0.028846
0
0.240385
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
1716239c0f8f6a326a6a576d2ac69904cc613e18
43
py
Python
BetaWarning/ceta4.py
binyao2020/ElegantRL
bf79f0d071d00cd93be03f1ca005020c3ab8dfe0
[ "Apache-2.0" ]
null
null
null
BetaWarning/ceta4.py
binyao2020/ElegantRL
bf79f0d071d00cd93be03f1ca005020c3ab8dfe0
[ "Apache-2.0" ]
null
null
null
BetaWarning/ceta4.py
binyao2020/ElegantRL
bf79f0d071d00cd93be03f1ca005020c3ab8dfe0
[ "Apache-2.0" ]
null
null
null
from AgentRun import run__demo run__demo()
14.333333
30
0.837209
7
43
4.571429
0.714286
0.4375
0
0
0
0
0
0
0
0
0
0
0.116279
43
3
31
14.333333
0.842105
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
17163d0870548fbcb6e97301d18dd8d0f2f28d99
1,473
py
Python
hsse_api/migrations/0030_auto_20181111_1405.py
JEpifanio90/HSSE_APIv2
7b8e8fee9cffa932884f979d24658f08726b656d
[ "MIT" ]
null
null
null
hsse_api/migrations/0030_auto_20181111_1405.py
JEpifanio90/HSSE_APIv2
7b8e8fee9cffa932884f979d24658f08726b656d
[ "MIT" ]
null
null
null
hsse_api/migrations/0030_auto_20181111_1405.py
JEpifanio90/HSSE_APIv2
7b8e8fee9cffa932884f979d24658f08726b656d
[ "MIT" ]
1
2018-12-07T03:43:32.000Z
2018-12-07T03:43:32.000Z
# Generated by Django 2.1 on 2018-11-11 19:05 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('hsse_api', '0029_auto_20181020_2026'), ] operations = [ migrations.RemoveField( model_name='correctiveaction', name='created_by', ), migrations.RemoveField( model_name='correctiveaction', name='ehhs_leader', ), migrations.RemoveField( model_name='correctiveaction', name='manager', ), migrations.RemoveField( model_name='correctiveaction', name='supervisor', ), migrations.RemoveField( model_name='environmentalindicator', name='month_created', ), migrations.RemoveField( model_name='environmentalindicator', name='year_created', ), migrations.RemoveField( model_name='monthlyreport', name='month_created', ), migrations.RemoveField( model_name='monthlyreport', name='year_created', ), migrations.RemoveField( model_name='report', name='month_created', ), migrations.RemoveField( model_name='report', name='year_created', ), migrations.DeleteModel( name='CorrectiveAction', ), ]
25.842105
48
0.541073
110
1,473
7.045455
0.354545
0.270968
0.335484
0.387097
0.701935
0.701935
0.348387
0
0
0
0
0.031612
0.355737
1,473
56
49
26.303571
0.785037
0.029192
0
0.74
1
0
0.214286
0.046919
0
0
0
0
0
1
0
false
0
0.02
0
0.08
0
0
0
0
null
1
1
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
6
1735b030d759988a61084c8dafd12706a92a5965
16,080
py
Python
yoti_python_sdk/tests/test_activity_details.py
getyoti/python
3df169145d5c818d0e79743768dde78e482eec9b
[ "MIT" ]
9
2017-11-12T05:38:58.000Z
2021-08-04T16:33:26.000Z
yoti_python_sdk/tests/test_activity_details.py
getyoti/python
3df169145d5c818d0e79743768dde78e482eec9b
[ "MIT" ]
237
2017-04-26T09:40:44.000Z
2022-02-24T10:29:43.000Z
yoti_python_sdk/tests/test_activity_details.py
getyoti/python
3df169145d5c818d0e79743768dde78e482eec9b
[ "MIT" ]
9
2017-05-02T11:41:44.000Z
2021-04-28T13:49:20.000Z
# -*- coding: utf-8 -*- import collections import json import os import sys from datetime import datetime from yoti_python_sdk import config from yoti_python_sdk.activity_details import ActivityDetails from yoti_python_sdk.protobuf.protobuf import Protobuf from yoti_python_sdk.tests.conftest import ( successful_receipt, failure_receipt, no_values_receipt, user_id, parent_remember_me_id, empty_strings, ) ADDRESS_FORMAT_KEY = "address_format" ADDRESS_FORMAT_VALUE = 1 INDIA_FORMAT_VALUE = 2 USA_FORMAT_VALUE = 3 BUILDING_NUMBER_KEY = "building_number" BUILDING_NUMBER_VALUE = "15a" CARE_OF_KEY = "care_of" CARE_OF_VALUE = "S/O: Name" STATE_KEY = "state" INDIA_STATE_VALUE = "Punjab" USA_STATE_VALUE = "AL" BUILDING_KEY = "building" BUILDING_VALUE = "House No.1111-A" STREET_KEY = "street" STREET_VALUE = "42nd Street" DISTRICT_KEY = "district" DISTRICT_VALUE = "DISTRICT 10" SUBDISTRICT_KEY = "subdistrict" SUBDISTRICT_VALUE = "Sub-DISTRICT 10" POST_OFFICE_KEY = "post_office" INDIA_POST_OFFICE_VALUE = "Rajguru Nagar" ADDRESS_LINE_1_KEY = "address_line_1" ADDRESS_LINE_1_VALUE = "15a North Street" TOWN_CITY_KEY = "town_city" TOWN_CITY_VALUE = "TOWN/CITY NAME" POSTAL_CODE_KEY = "postal_code" POSTAL_CODE_VALUE = "SM5 2HW" INDIA_POSTAL_CODE_VALUE = "141012" USA_POSTAL_CODE_VALUE = "36201" COUNTRY_ISO_KEY = "country_iso" COUNTRY_ISO_VALUE = "GBR" INDIA_COUNTRY_ISO_VALUE = "IND" USA_COUNTRY_ISO_VALUE = "USA" COUNTRY_KEY = "country" COUNTRY_VALUE = "UK" INDIA_COUNTRY_VALUE = "India" USA_COUNTRY_VALUE = "USA" FORMATTED_ADDRESS_VALUE = "15a North Street\nCARSHALTON\nSM5 2HW\nUK" INDIA_FORMATTED_ADDRESS_VALUE = "S/O: Name\nHouse No.1111-A\n42nd Street\nTOWN/CITY NAME\nSub-DISTRICT 10\nDISTRICT 10\nPunjab\n141012\nRajgura Nagar\nIndia" USA_FORMATTED_ADDRESS_VALUE = "15a North Street\nTOWN/CITY NAME\nAL\n36201\nUSA" def create_selfie_field(activity_details): activity_details.field = lambda: None activity_details.field.name = config.ATTRIBUTE_SELFIE activity_details.field.value = "base64(ง •̀_•́)ง" activity_details.field.content_type = Protobuf.CT_STRING def create_age_verified_field( activity_details, over, encoded_string_verified_value, age ): activity_details.field = lambda: None activity_details.field.name = ( "age_over:{0}".format(age) if over is True else "age_under:".format(age) ) activity_details.field.value = encoded_string_verified_value activity_details.field.content_type = Protobuf.CT_STRING def create_structured_postal_address_field(activity_details, json_address_value): activity_details.field = lambda: None activity_details.field.name = config.ATTRIBUTE_STRUCTURED_POSTAL_ADDRESS activity_details.field.value = json_address_value activity_details.field.content_type = Protobuf.CT_JSON def test_try_parse_age_verified_both_missing_not_parsed(successful_receipt): activity_details = ActivityDetails(successful_receipt) field = None ActivityDetails.try_parse_age_verified_field(activity_details, field) assert not isinstance( activity_details.user_profile.get(config.KEY_AGE_VERIFIED), bool ) def test_failure_receipt_handled(failure_receipt, user_id): activity_details = ActivityDetails(failure_receipt) assert activity_details.user_id == user_id assert activity_details.remember_me_id == user_id assert activity_details.outcome == "FAILURE" assert activity_details.timestamp == datetime(2016, 11, 14, 11, 35, 33) def test_missing_values_handled(no_values_receipt): activity_details = ActivityDetails(no_values_receipt) assert isinstance(activity_details, ActivityDetails) def test_remember_me_id_empty(empty_strings): activity_details = ActivityDetails(empty_strings) assert activity_details.user_id == "" assert activity_details.remember_me_id == "" assert isinstance(activity_details, ActivityDetails) def test_remember_me_id_valid(successful_receipt, user_id): activity_details = ActivityDetails(successful_receipt) assert activity_details.user_id == user_id assert activity_details.remember_me_id == user_id def test_parent_remember_me_id_empty(empty_strings): activity_details = ActivityDetails(empty_strings) assert activity_details.user_id == "" assert activity_details.remember_me_id == "" assert isinstance(activity_details, ActivityDetails) def test_parent_remember_me_id_valid(successful_receipt, parent_remember_me_id): activity_details = ActivityDetails(successful_receipt) assert activity_details.parent_remember_me_id == parent_remember_me_id def test_try_parse_age_verified_field_age_over(successful_receipt): activity_details = ActivityDetails(successful_receipt) create_age_verified_field(activity_details, True, "true".encode(), 18) ActivityDetails.try_parse_age_verified_field( activity_details, activity_details.field ) assert activity_details.user_profile[config.KEY_AGE_VERIFIED] is True def test_try_parse_age_verified_field_age_under(successful_receipt): activity_details = ActivityDetails(successful_receipt) create_age_verified_field(activity_details, False, "false".encode(), 55) ActivityDetails.try_parse_age_verified_field( activity_details, activity_details.field ) assert activity_details.user_profile[config.KEY_AGE_VERIFIED] is False def test_try_parse_age_verified_field_non_bool_value_not_parsed(successful_receipt): activity_details = ActivityDetails(successful_receipt) create_age_verified_field(activity_details, True, "18".encode(), 18) sys.stdout = open(os.devnull, "w") # disable print ActivityDetails.try_parse_age_verified_field( activity_details, activity_details.field ) sys.stdout = sys.__stdout__ # enable print assert not isinstance( activity_details.user_profile.get(config.KEY_AGE_VERIFIED), bool ) def test_try_parse_structured_postal_address_uk(successful_receipt): activity_details = ActivityDetails(successful_receipt) structured_postal_address = { ADDRESS_FORMAT_KEY: ADDRESS_FORMAT_VALUE, BUILDING_NUMBER_KEY: BUILDING_NUMBER_VALUE, ADDRESS_LINE_1_KEY: ADDRESS_LINE_1_VALUE, TOWN_CITY_KEY: TOWN_CITY_VALUE, POSTAL_CODE_KEY: POSTAL_CODE_VALUE, COUNTRY_ISO_KEY: COUNTRY_ISO_VALUE, COUNTRY_KEY: COUNTRY_VALUE, config.KEY_FORMATTED_ADDRESS: FORMATTED_ADDRESS_VALUE, } structured_postal_address_json = json.dumps(structured_postal_address) create_structured_postal_address_field( activity_details, structured_postal_address_json ) activity_details.user_profile[ config.ATTRIBUTE_STRUCTURED_POSTAL_ADDRESS ] = ActivityDetails.try_convert_structured_postal_address_to_dict( activity_details.field ) actual_structured_postal_address_user_profile = activity_details.user_profile[ config.ATTRIBUTE_STRUCTURED_POSTAL_ADDRESS ] assert ( type(actual_structured_postal_address_user_profile) is collections.OrderedDict ) assert ( actual_structured_postal_address_user_profile[ADDRESS_FORMAT_KEY] == ADDRESS_FORMAT_VALUE ) assert ( actual_structured_postal_address_user_profile[BUILDING_NUMBER_KEY] == BUILDING_NUMBER_VALUE ) assert ( actual_structured_postal_address_user_profile[ADDRESS_LINE_1_KEY] == ADDRESS_LINE_1_VALUE ) assert ( actual_structured_postal_address_user_profile[TOWN_CITY_KEY] == TOWN_CITY_VALUE ) assert ( actual_structured_postal_address_user_profile[POSTAL_CODE_KEY] == POSTAL_CODE_VALUE ) assert ( actual_structured_postal_address_user_profile[COUNTRY_ISO_KEY] == COUNTRY_ISO_VALUE ) assert actual_structured_postal_address_user_profile[COUNTRY_KEY] == COUNTRY_VALUE assert ( actual_structured_postal_address_user_profile[config.KEY_FORMATTED_ADDRESS] == FORMATTED_ADDRESS_VALUE ) def test_try_parse_structured_postal_address_india(successful_receipt): activity_details = ActivityDetails(successful_receipt) structured_postal_address = { ADDRESS_FORMAT_KEY: INDIA_FORMAT_VALUE, CARE_OF_KEY: CARE_OF_VALUE, BUILDING_KEY: BUILDING_VALUE, STREET_KEY: STREET_VALUE, TOWN_CITY_KEY: TOWN_CITY_VALUE, SUBDISTRICT_KEY: SUBDISTRICT_VALUE, DISTRICT_KEY: DISTRICT_VALUE, STATE_KEY: INDIA_STATE_VALUE, POSTAL_CODE_KEY: INDIA_POSTAL_CODE_VALUE, POST_OFFICE_KEY: INDIA_POST_OFFICE_VALUE, COUNTRY_ISO_KEY: INDIA_COUNTRY_ISO_VALUE, COUNTRY_KEY: INDIA_COUNTRY_VALUE, config.KEY_FORMATTED_ADDRESS: INDIA_FORMATTED_ADDRESS_VALUE, } structured_postal_address_json = json.dumps(structured_postal_address) create_structured_postal_address_field( activity_details, structured_postal_address_json ) activity_details.user_profile[ config.ATTRIBUTE_STRUCTURED_POSTAL_ADDRESS ] = ActivityDetails.try_convert_structured_postal_address_to_dict( activity_details.field ) actual_structured_postal_address_user_profile = activity_details.user_profile[ config.ATTRIBUTE_STRUCTURED_POSTAL_ADDRESS ] assert ( type(actual_structured_postal_address_user_profile) is collections.OrderedDict ) assert ( actual_structured_postal_address_user_profile[ADDRESS_FORMAT_KEY] == INDIA_FORMAT_VALUE ) assert actual_structured_postal_address_user_profile[CARE_OF_KEY] == CARE_OF_VALUE assert actual_structured_postal_address_user_profile[BUILDING_KEY] == BUILDING_VALUE assert actual_structured_postal_address_user_profile[STREET_KEY] == STREET_VALUE assert ( actual_structured_postal_address_user_profile[TOWN_CITY_KEY] == TOWN_CITY_VALUE ) assert ( actual_structured_postal_address_user_profile[SUBDISTRICT_KEY] == SUBDISTRICT_VALUE ) assert actual_structured_postal_address_user_profile[DISTRICT_KEY] == DISTRICT_VALUE assert actual_structured_postal_address_user_profile[STATE_KEY] == INDIA_STATE_VALUE assert ( actual_structured_postal_address_user_profile[POSTAL_CODE_KEY] == INDIA_POSTAL_CODE_VALUE ) assert ( actual_structured_postal_address_user_profile[POST_OFFICE_KEY] == INDIA_POST_OFFICE_VALUE ) assert ( actual_structured_postal_address_user_profile[COUNTRY_ISO_KEY] == INDIA_COUNTRY_ISO_VALUE ) assert ( actual_structured_postal_address_user_profile[COUNTRY_KEY] == INDIA_COUNTRY_VALUE ) assert ( actual_structured_postal_address_user_profile[config.KEY_FORMATTED_ADDRESS] == INDIA_FORMATTED_ADDRESS_VALUE ) def test_try_parse_structured_postal_address_usa(successful_receipt): activity_details = ActivityDetails(successful_receipt) structured_postal_address = { ADDRESS_FORMAT_KEY: USA_FORMAT_VALUE, ADDRESS_LINE_1_KEY: ADDRESS_LINE_1_VALUE, TOWN_CITY_KEY: TOWN_CITY_VALUE, STATE_KEY: USA_STATE_VALUE, POSTAL_CODE_KEY: USA_POSTAL_CODE_VALUE, COUNTRY_ISO_KEY: USA_COUNTRY_ISO_VALUE, COUNTRY_KEY: USA_COUNTRY_VALUE, config.KEY_FORMATTED_ADDRESS: USA_FORMATTED_ADDRESS_VALUE, } structured_postal_address_json = json.dumps(structured_postal_address) create_structured_postal_address_field( activity_details, structured_postal_address_json ) activity_details.user_profile[ config.ATTRIBUTE_STRUCTURED_POSTAL_ADDRESS ] = ActivityDetails.try_convert_structured_postal_address_to_dict( activity_details.field ) actual_structured_postal_address_user_profile = activity_details.user_profile[ config.ATTRIBUTE_STRUCTURED_POSTAL_ADDRESS ] assert ( type(actual_structured_postal_address_user_profile) is collections.OrderedDict ) assert ( actual_structured_postal_address_user_profile[ADDRESS_FORMAT_KEY] == USA_FORMAT_VALUE ) assert ( actual_structured_postal_address_user_profile[ADDRESS_LINE_1_KEY] == ADDRESS_LINE_1_VALUE ) assert ( actual_structured_postal_address_user_profile[TOWN_CITY_KEY] == TOWN_CITY_VALUE ) assert actual_structured_postal_address_user_profile[STATE_KEY] == USA_STATE_VALUE assert ( actual_structured_postal_address_user_profile[POSTAL_CODE_KEY] == USA_POSTAL_CODE_VALUE ) assert ( actual_structured_postal_address_user_profile[COUNTRY_ISO_KEY] == USA_COUNTRY_ISO_VALUE ) assert ( actual_structured_postal_address_user_profile[COUNTRY_KEY] == USA_COUNTRY_VALUE ) assert ( actual_structured_postal_address_user_profile[config.KEY_FORMATTED_ADDRESS] == USA_FORMATTED_ADDRESS_VALUE ) def test_try_parse_structured_postal_address_nested_json(successful_receipt): formatted_address_json = { "item1": [[1, "a1"], [2, "a2"]], "item2": [[3, "b3"], [4, "b4"]], } activity_details = ActivityDetails(successful_receipt) structured_postal_address = { ADDRESS_FORMAT_KEY: ADDRESS_FORMAT_VALUE, BUILDING_NUMBER_KEY: BUILDING_NUMBER_VALUE, ADDRESS_LINE_1_KEY: ADDRESS_LINE_1_VALUE, TOWN_CITY_KEY: TOWN_CITY_VALUE, POSTAL_CODE_KEY: POSTAL_CODE_VALUE, COUNTRY_ISO_KEY: COUNTRY_ISO_VALUE, COUNTRY_KEY: COUNTRY_VALUE, config.KEY_FORMATTED_ADDRESS: formatted_address_json, } structured_postal_address_json = json.dumps(structured_postal_address) create_structured_postal_address_field( activity_details, structured_postal_address_json ) activity_details.user_profile[ config.ATTRIBUTE_STRUCTURED_POSTAL_ADDRESS ] = ActivityDetails.try_convert_structured_postal_address_to_dict( activity_details.field ) actual_structured_postal_address_user_profile = activity_details.user_profile[ config.ATTRIBUTE_STRUCTURED_POSTAL_ADDRESS ] assert ( type(actual_structured_postal_address_user_profile) is collections.OrderedDict ) assert ( actual_structured_postal_address_user_profile[ADDRESS_FORMAT_KEY] == ADDRESS_FORMAT_VALUE ) assert ( actual_structured_postal_address_user_profile[BUILDING_NUMBER_KEY] == BUILDING_NUMBER_VALUE ) assert ( actual_structured_postal_address_user_profile[ADDRESS_LINE_1_KEY] == ADDRESS_LINE_1_VALUE ) assert ( actual_structured_postal_address_user_profile[TOWN_CITY_KEY] == TOWN_CITY_VALUE ) assert ( actual_structured_postal_address_user_profile[POSTAL_CODE_KEY] == POSTAL_CODE_VALUE ) assert ( actual_structured_postal_address_user_profile[COUNTRY_ISO_KEY] == COUNTRY_ISO_VALUE ) assert actual_structured_postal_address_user_profile[COUNTRY_KEY] == COUNTRY_VALUE assert ( actual_structured_postal_address_user_profile[config.KEY_FORMATTED_ADDRESS] == formatted_address_json ) def test_set_address_to_be_formatted_address(successful_receipt): activity_details = ActivityDetails(successful_receipt) structured_postal_address = {config.KEY_FORMATTED_ADDRESS: FORMATTED_ADDRESS_VALUE} structured_postal_address_json = json.dumps(structured_postal_address) create_structured_postal_address_field( activity_details, structured_postal_address_json ) activity_details.user_profile[ config.ATTRIBUTE_STRUCTURED_POSTAL_ADDRESS ] = ActivityDetails.try_convert_structured_postal_address_to_dict( activity_details.field ) assert config.ATTRIBUTE_POSTAL_ADDRESS not in activity_details.user_profile ActivityDetails.ensure_postal_address(activity_details) assert ( activity_details.user_profile[config.ATTRIBUTE_POSTAL_ADDRESS] == FORMATTED_ADDRESS_VALUE )
33.710692
157
0.770398
1,938
16,080
5.841589
0.089267
0.106793
0.182846
0.115273
0.812384
0.786238
0.752142
0.712393
0.682272
0.649589
0
0.008093
0.170087
16,080
476
158
33.781513
0.83994
0.002985
0
0.4677
0
0.002584
0.035937
0.00312
0
0
0
0
0.157623
1
0.046512
false
0
0.023256
0
0.069767
0
0
0
0
null
0
1
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
178a0394f3bd04f73f5f217b70e680fe97469e79
9
py
Python
tests/python_float/float.py
hixio-mh/plugin-python
d59dca4b6166dc20eec3e7aa57b0649c072507ce
[ "MIT" ]
362
2018-02-17T10:25:11.000Z
2022-03-30T21:04:59.000Z
tests/python_float/float.py
hixio-mh/plugin-python
d59dca4b6166dc20eec3e7aa57b0649c072507ce
[ "MIT" ]
70
2018-02-17T04:00:14.000Z
2019-08-21T18:01:52.000Z
tests/python_float/float.py
hixio-mh/plugin-python
d59dca4b6166dc20eec3e7aa57b0649c072507ce
[ "MIT" ]
36
2018-02-18T23:11:25.000Z
2021-09-20T07:19:36.000Z
b = 3.75
4.5
8
0.444444
3
9
1.333333
1
0
0
0
0
0
0
0
0
0
0
0.5
0.333333
9
1
9
9
0.166667
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
1
1
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
6
bd90a3f28185d28f252e9347a5eebd91df95f0bf
42
py
Python
src/saturnv_api/saturnv/api/repositories/base/__init__.py
epkaz93/saturnv
b8a2c61bb0e833f2e31698050113038bab3ca5a4
[ "MIT" ]
1
2022-03-12T07:38:09.000Z
2022-03-12T07:38:09.000Z
src/saturnv_api/saturnv/api/repositories/base/__init__.py
epkaz93/saturnv
b8a2c61bb0e833f2e31698050113038bab3ca5a4
[ "MIT" ]
null
null
null
src/saturnv_api/saturnv/api/repositories/base/__init__.py
epkaz93/saturnv
b8a2c61bb0e833f2e31698050113038bab3ca5a4
[ "MIT" ]
null
null
null
from .repository import AbstractRepository
42
42
0.904762
4
42
9.5
1
0
0
0
0
0
0
0
0
0
0
0
0.071429
42
1
42
42
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
da2872f1a021bb5dee5b54087e537310edefc634
680
py
Python
ee/clickhouse/queries/session_recordings/test/test_clickhouse_session_recording.py
csmatar/posthog
4587cfe18625f302726c531f06a32c18e9749e9d
[ "MIT" ]
7,409
2020-02-09T23:18:10.000Z
2022-03-31T22:36:25.000Z
ee/clickhouse/queries/session_recordings/test/test_clickhouse_session_recording.py
csmatar/posthog
4587cfe18625f302726c531f06a32c18e9749e9d
[ "MIT" ]
5,709
2020-02-09T23:26:13.000Z
2022-03-31T20:20:01.000Z
ee/clickhouse/queries/session_recordings/test/test_clickhouse_session_recording.py
csmatar/posthog
4587cfe18625f302726c531f06a32c18e9749e9d
[ "MIT" ]
647
2020-02-13T17:50:55.000Z
2022-03-31T11:24:19.000Z
from uuid import uuid4 from ee.clickhouse.models.session_recording_event import create_session_recording_event from ee.clickhouse.queries.session_recordings.clickhouse_session_recording import ClickhouseSessionRecording from ee.clickhouse.util import ClickhouseTestMixin from posthog.queries.session_recordings.test.test_session_recording import factory_session_recording_test def _create_session_recording_event(**kwargs): create_session_recording_event( uuid=uuid4(), **kwargs, ) class TestClickhouseSessionRecording(ClickhouseTestMixin, factory_session_recording_test(ClickhouseSessionRecording, _create_session_recording_event)): # type: ignore pass
40
167
0.858824
75
680
7.413333
0.346667
0.258993
0.188849
0.194245
0
0
0
0
0
0
0
0.003226
0.088235
680
16
168
42.5
0.893548
0.017647
0
0
0
0
0
0
0
0
0
0
0
1
0.090909
true
0.090909
0.454545
0
0.636364
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
1
0
0
0
0
6
da379690be6cdd3199a3ac7ae34087b665bf370b
26
py
Python
models/aux_nets/__init__.py
nilsec/cycle_gan
c9dddd8d396566774bd4a52f2980b0b8d420bc22
[ "BSD-3-Clause" ]
null
null
null
models/aux_nets/__init__.py
nilsec/cycle_gan
c9dddd8d396566774bd4a52f2980b0b8d420bc22
[ "BSD-3-Clause" ]
null
null
null
models/aux_nets/__init__.py
nilsec/cycle_gan
c9dddd8d396566774bd4a52f2980b0b8d420bc22
[ "BSD-3-Clause" ]
null
null
null
from .vgg_2d import Vgg2D
13
25
0.807692
5
26
4
1
0
0
0
0
0
0
0
0
0
0
0.090909
0.153846
26
1
26
26
0.818182
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
da50837559ec8844c8d44e125c515b6597f2bf27
102
py
Python
scattertext/distancemeasures/__init__.py
shettyprithvi/scattertext
a15613b6feef3ddc56c03aadb8e1e629d28a427d
[ "Apache-2.0" ]
1,823
2016-07-28T00:25:56.000Z
2022-03-30T12:33:57.000Z
scattertext/distancemeasures/__init__.py
shettyprithvi/scattertext
a15613b6feef3ddc56c03aadb8e1e629d28a427d
[ "Apache-2.0" ]
92
2016-07-28T23:13:20.000Z
2022-01-24T03:53:38.000Z
scattertext/distancemeasures/__init__.py
shettyprithvi/scattertext
a15613b6feef3ddc56c03aadb8e1e629d28a427d
[ "Apache-2.0" ]
271
2016-12-26T12:56:08.000Z
2022-03-24T19:35:13.000Z
from .DistanceMeasureBase import DistanceMeasureBase from .EuclideanDistance import EuclideanDistance
34
52
0.901961
8
102
11.5
0.5
0
0
0
0
0
0
0
0
0
0
0
0.078431
102
2
53
51
0.978723
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
6
e54c4bfa3d93f08f797d5276ee62cd7428361dde
97
py
Python
python/paper_design_cifar10/test.py
GG-yuki/bugs
aabd576e9e57012a3390007af890b7c6ab6cdda8
[ "MIT" ]
null
null
null
python/paper_design_cifar10/test.py
GG-yuki/bugs
aabd576e9e57012a3390007af890b7c6ab6cdda8
[ "MIT" ]
null
null
null
python/paper_design_cifar10/test.py
GG-yuki/bugs
aabd576e9e57012a3390007af890b7c6ab6cdda8
[ "MIT" ]
null
null
null
import torch print('available gpus is ', torch.cuda.device_count(), torch.cuda.get_device_name())
48.5
84
0.783505
15
97
4.866667
0.733333
0.246575
0
0
0
0
0
0
0
0
0
0
0.072165
97
2
84
48.5
0.811111
0
0
0
0
0
0.183673
0
0
0
0
0
0
1
0
true
0
0.5
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
0
1
0
1
0
0
1
0
6
e5860aac3112e39c9815b07b71e52fb222b17f92
96
py
Python
venv/lib/python3.8/site-packages/numpy/lib/__init__.py
GiulianaPola/select_repeats
17a0d053d4f874e42cf654dd142168c2ec8fbd11
[ "MIT" ]
2
2022-03-13T01:58:52.000Z
2022-03-31T06:07:54.000Z
venv/lib/python3.8/site-packages/numpy/lib/__init__.py
DesmoSearch/Desmobot
b70b45df3485351f471080deb5c785c4bc5c4beb
[ "MIT" ]
19
2021-11-20T04:09:18.000Z
2022-03-23T15:05:55.000Z
venv/lib/python3.8/site-packages/numpy/lib/__init__.py
DesmoSearch/Desmobot
b70b45df3485351f471080deb5c785c4bc5c4beb
[ "MIT" ]
null
null
null
/home/runner/.cache/pip/pool/15/b1/53/76a69e656f9eb85d2f79ba60d6313731812307cb52f5ea18211b675078
96
96
0.895833
9
96
9.555556
1
0
0
0
0
0
0
0
0
0
0
0.489583
0
96
1
96
96
0.40625
0
0
0
0
0
0
0
0
1
0
0
0
0
null
null
0
0
null
null
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
1
0
0
0
0
0
0
0
null
1
0
0
0
1
0
0
0
0
0
0
0
0
6
e5930d78e285734b6dc4e5e6dd8ff85d048e4bd8
151
py
Python
tests/monkeypatch_godot_import.py
apockill/CreepyCrawlAI
2862c03e686801884ffb579a7be29f3c9d0da610
[ "MIT" ]
13
2020-05-04T03:11:26.000Z
2021-12-05T03:57:45.000Z
tests/monkeypatch_godot_import.py
apockill/CreepyCrawlAI
2862c03e686801884ffb579a7be29f3c9d0da610
[ "MIT" ]
null
null
null
tests/monkeypatch_godot_import.py
apockill/CreepyCrawlAI
2862c03e686801884ffb579a7be29f3c9d0da610
[ "MIT" ]
null
null
null
import sys # Do an import hack to replace the godot libraries with mocks for testing import tests.godot_mock sys.modules["godot"] = tests.godot_mock
21.571429
73
0.788079
25
151
4.68
0.68
0.17094
0.239316
0
0
0
0
0
0
0
0
0
0.152318
151
6
74
25.166667
0.914063
0.470199
0
0
0
0
0.064103
0
0
0
0
0
0
1
0
true
0
0.666667
0
0.666667
0
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
6
e59e87b8a621b35dcfd03a9adc833d65bed9bc13
29
py
Python
eqcart/__init__.py
rishsriv/equalareacartogram
0c7caf1a36099458427da686b96769fcaba2ae26
[ "MIT" ]
83
2017-11-18T16:52:04.000Z
2021-11-04T15:25:21.000Z
eqcart/__init__.py
rishsriv/equalareacartogram
0c7caf1a36099458427da686b96769fcaba2ae26
[ "MIT" ]
12
2017-11-18T20:13:45.000Z
2019-02-07T08:54:20.000Z
eqcart/__init__.py
rishsriv/equalareacartogram
0c7caf1a36099458427da686b96769fcaba2ae26
[ "MIT" ]
11
2017-11-19T07:53:49.000Z
2021-06-22T05:10:22.000Z
from .eqcart import Cartogram
29
29
0.862069
4
29
6.25
1
0
0
0
0
0
0
0
0
0
0
0
0.103448
29
1
29
29
0.961538
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
e5a0e471f8ceceb10a935edee4207bf3f4137506
1,223
py
Python
run_example.py
carushi/GSEA-InContext
6131bc8f6a51014aaeabb625b048af67d6850487
[ "MIT" ]
9
2018-02-04T21:09:07.000Z
2020-09-16T22:33:57.000Z
run_example.py
carushi/GSEA-InContext
6131bc8f6a51014aaeabb625b048af67d6850487
[ "MIT" ]
null
null
null
run_example.py
carushi/GSEA-InContext
6131bc8f6a51014aaeabb625b048af67d6850487
[ "MIT" ]
4
2018-07-11T23:05:20.000Z
2020-04-14T15:40:10.000Z
import gseapy import sys, logging rnk = "GSE4773_DEG_Expt1_Control_vs_Group1_gene.rnk" # Run GSEA preranked - Kegg prerank_results = gseapy.prerank( rnk='data/rnk_lists/' + rnk, gene_sets='data/gene_sets/c2.cp.kegg.v6.0.symbols.gmt', outdir='out/Prerank_KEGG/' + rnk[:-4], permutation_num=100, no_plot=True, processes=4 ) # Run GSEA-InContext - Kegg gseapen_results = gseapy.incontext( rnk='data/rnk_lists/' + rnk, gene_sets='data/gene_sets/c2.cp.kegg.v6.0.symbols.gmt', background_rnks='data/bg_rnk_lists/all_442_lists_permuted_x100.csv', outdir='out/InContext_KEGG/' + rnk[:-4], permutation_num=100, no_plot=True, processes=4 ) # Run GSEA preranked - Hallmarks prerank_results = gseapy.prerank( rnk='data/rnk_lists/' + rnk, gene_sets='data/gene_sets/hallmarks.gmt', outdir='out/Prerank_Hallmarks/' + rnk[:-4], permutation_num=100, no_plot=True, processes=4 ) # Run GSEA-InContext - Hallmarks gseapen_results = gseapy.incontext( rnk='data/rnk_lists/' + rnk, gene_sets='data/gene_sets/hallmarks.gmt', background_rnks='data/bg_rnk_lists/all_442_lists_permuted_x100.csv', outdir='out/InContext_Hallmarks/' + rnk[:-4], permutation_num=100, no_plot=True, processes=4 ) print('Done!')
25.479167
70
0.74489
186
1,223
4.639785
0.268817
0.07416
0.04635
0.069525
0.8146
0.8146
0.8146
0.8146
0.8146
0.8146
0
0.04033
0.107931
1,223
48
71
25.479167
0.750687
0.092396
0
0.684211
0
0
0.387884
0.296564
0
0
0
0
0
1
0
false
0
0.052632
0
0.052632
0.026316
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
e5b4e122c20b6266368403bbf02dbca6e0da6170
1,967
py
Python
tests/excerptexport/rest_api/views/test_export.py
tyrasd/osmaxx
da4454083d17b2ef8b0623cad62e39992b6bd52a
[ "MIT" ]
27
2015-03-30T14:17:26.000Z
2022-02-19T17:30:44.000Z
tests/excerptexport/rest_api/views/test_export.py
tyrasd/osmaxx
da4454083d17b2ef8b0623cad62e39992b6bd52a
[ "MIT" ]
483
2015-03-09T16:58:03.000Z
2022-03-14T09:29:06.000Z
tests/excerptexport/rest_api/views/test_export.py
tyrasd/osmaxx
da4454083d17b2ef8b0623cad62e39992b6bd52a
[ "MIT" ]
6
2015-04-07T07:38:30.000Z
2020-04-01T12:45:53.000Z
import os from rest_framework.reverse import reverse from rest_framework.test import APIClient PERMISSION_DENIED = 403 NOT_FOUND = 404 DELETED_SUCCESS = 204 def test_existing_file_is_kept_when_not_authenticated(output_file_with_file): client = APIClient() request_url = reverse('excerptexport_api:export-detail', kwargs={'pk': output_file_with_file.export.id}) file_path = output_file_with_file.file.path assert os.path.exists(file_path) response = client.delete(request_url, format='json') assert response.status_code == PERMISSION_DENIED assert os.path.exists(file_path) def test_existing_file_is_deleted_when_authenticated(output_file_with_file, frontend_accessible_authenticated_api_client): request_url = reverse('excerptexport_api:export-detail', kwargs={'pk': output_file_with_file.export.id}) file_path = output_file_with_file.file.path assert os.path.exists(file_path) response = frontend_accessible_authenticated_api_client.delete(request_url, format='json') assert response.status_code == DELETED_SUCCESS assert not os.path.exists(file_path) def test_existing_file_is_kept_when_access_is_denied(output_file_with_file, authenticated_api_client): request_url = reverse('excerptexport_api:export-detail', kwargs={'pk': output_file_with_file.export.id}) file_path = output_file_with_file.file.path assert os.path.exists(file_path) response = authenticated_api_client.delete(request_url, format='json') assert response.status_code == PERMISSION_DENIED assert os.path.exists(file_path) def test_export_is_deleted_without_attached_output_file(export, frontend_accessible_authenticated_api_client): assert not hasattr(export, 'output_file') request_url = reverse('excerptexport_api:export-detail', kwargs={'pk': export.id}) response = frontend_accessible_authenticated_api_client.delete(request_url, format='json') assert response.status_code == DELETED_SUCCESS
44.704545
122
0.806304
272
1,967
5.426471
0.1875
0.065041
0.085366
0.109756
0.807588
0.726287
0.726287
0.70122
0.70122
0.665312
0
0.005131
0.108287
1,967
43
123
45.744186
0.836374
0
0
0.515152
0
0
0.080834
0.06304
0
0
0
0
0.333333
1
0.121212
false
0
0.090909
0
0.212121
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
00850f8f1386a6f6d41925aff0f418b298d70543
102
py
Python
sfsimodels/print_all_parameters.py
eng-tools/sfsimodels
4771f7693c7ed30c05e82e41401c7d141e02dcf9
[ "MIT" ]
4
2017-12-16T10:17:13.000Z
2020-10-13T05:04:19.000Z
sfsimodels/print_all_parameters.py
eng-tools/sfsimodels
4771f7693c7ed30c05e82e41401c7d141e02dcf9
[ "MIT" ]
1
2021-05-19T05:33:43.000Z
2021-05-19T05:33:43.000Z
sfsimodels/print_all_parameters.py
eng-tools/sfsimodels
4771f7693c7ed30c05e82e41401c7d141e02dcf9
[ "MIT" ]
2
2020-11-07T04:46:55.000Z
2021-07-29T07:07:44.000Z
from sfsimodels.build_model_descriptions import all_descriptions print("\n".join(all_descriptions()))
34
64
0.843137
13
102
6.307692
0.769231
0.365854
0
0
0
0
0
0
0
0
0
0
0.04902
102
2
65
51
0.845361
0
0
0
0
0
0.019608
0
0
0
0
0
0
1
0
true
0
0.5
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
0
1
0
1
0
0
1
0
6
008807b9a710c6480627cb89b71f0f67b024e40d
86
py
Python
sgkfold/__init__.py
yu-ya-k/stratified_group_kfold
4bfc230c5fe29fd28652b0133a96c69b1212139b
[ "MIT" ]
null
null
null
sgkfold/__init__.py
yu-ya-k/stratified_group_kfold
4bfc230c5fe29fd28652b0133a96c69b1212139b
[ "MIT" ]
null
null
null
sgkfold/__init__.py
yu-ya-k/stratified_group_kfold
4bfc230c5fe29fd28652b0133a96c69b1212139b
[ "MIT" ]
null
null
null
from .stratified_group_kfold import StratifiedGroupKFold, RepeatedStratifiedGroupKFold
86
86
0.930233
7
86
11.142857
1
0
0
0
0
0
0
0
0
0
0
0
0.046512
86
1
86
86
0.95122
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
6
00a3cc931a0a640ec37d04e59655cbba043aff2f
34
py
Python
blockstream/__init__.py
pasquantonio/blockstream-explorer-api-wrapper
fa30e06fa200d78f6dce958292f12a2eb07df366
[ "MIT" ]
4
2019-05-14T21:11:35.000Z
2020-01-11T21:16:25.000Z
blockstream/__init__.py
pasquantonio/blockstream-explorer-api-wrapper
fa30e06fa200d78f6dce958292f12a2eb07df366
[ "MIT" ]
1
2020-06-26T01:15:00.000Z
2020-07-07T20:27:47.000Z
blockstream/__init__.py
pasquantonio/blockstream-explorer-api-wrapper
fa30e06fa200d78f6dce958292f12a2eb07df366
[ "MIT" ]
3
2019-08-29T12:24:20.000Z
2020-05-13T17:41:46.000Z
from . import blockexplorer, util
17
33
0.794118
4
34
6.75
1
0
0
0
0
0
0
0
0
0
0
0
0.147059
34
1
34
34
0.931034
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
dac7e1cf051c706e3d5151a9c582b979ce6ad60f
26
py
Python
surrogate_models_training/saturation/injection_allocation_ratio/models/__init__.py
tang39/DLADA
8e855997df6453a03028a7a01c300fa6aa8a4087
[ "MIT" ]
null
null
null
surrogate_models_training/saturation/injection_allocation_ratio/models/__init__.py
tang39/DLADA
8e855997df6453a03028a7a01c300fa6aa8a4087
[ "MIT" ]
null
null
null
surrogate_models_training/saturation/injection_allocation_ratio/models/__init__.py
tang39/DLADA
8e855997df6453a03028a7a01c300fa6aa8a4087
[ "MIT" ]
null
null
null
from .WideResNet import *
13
25
0.769231
3
26
6.666667
1
0
0
0
0
0
0
0
0
0
0
0
0.153846
26
1
26
26
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
97084bf01366d94d62bde578af33096ee97d3194
316
py
Python
apidoc_to_openapi/lib/annotations/__init__.py
GrahamMThomas/apidoc_to_openapi
9ffbf44766c79a2151135e111ff08855df28ec4b
[ "MIT" ]
2
2019-10-03T19:56:03.000Z
2019-10-19T00:25:12.000Z
apidoc_to_openapi/lib/annotations/__init__.py
GrahamMThomas/apidoc_to_openapi
9ffbf44766c79a2151135e111ff08855df28ec4b
[ "MIT" ]
3
2019-11-13T20:30:40.000Z
2020-09-03T17:28:58.000Z
apidoc_to_openapi/lib/annotations/__init__.py
GrahamMThomas/apidoc_to_openapi
9ffbf44766c79a2151135e111ff08855df28ec4b
[ "MIT" ]
2
2020-01-09T13:20:51.000Z
2021-05-19T14:29:36.000Z
from apidoc_to_openapi.lib.annotations.api import Api from apidoc_to_openapi.lib.annotations.api_name import ApiName from apidoc_to_openapi.lib.annotations.api_group import ApiGroup from apidoc_to_openapi.lib.annotations.api_param import ApiParam from apidoc_to_openapi.lib.annotations.api_success import ApiSuccess
52.666667
68
0.889241
49
316
5.44898
0.326531
0.187266
0.224719
0.355805
0.674157
0.674157
0.674157
0
0
0
0
0
0.063291
316
5
69
63.2
0.902027
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
97457150e99b640ba02b0da7699a6129e46c5fed
111
py
Python
main.py
antikleya/MikoIino
6eae79b2e9728ba7268e113a7284b0c45f6ed1b9
[ "MIT" ]
null
null
null
main.py
antikleya/MikoIino
6eae79b2e9728ba7268e113a7284b0c45f6ed1b9
[ "MIT" ]
null
null
null
main.py
antikleya/MikoIino
6eae79b2e9728ba7268e113a7284b0c45f6ed1b9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from core import client from utils import json_handler client.run(json_handler.token)
18.5
30
0.747748
17
111
4.764706
0.705882
0.271605
0
0
0
0
0
0
0
0
0
0.010417
0.135135
111
5
31
22.2
0.833333
0.189189
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.666667
0
0.666667
0
1
0
0
null
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
9773137529040c04c9d2ba2aaedf49bd695e7f75
50
py
Python
problem_1/__init__.py
oltionzefi/daily-coding-problem
4fe3ec53e1f3c7d299849671fdfead462d548cd3
[ "MIT" ]
null
null
null
problem_1/__init__.py
oltionzefi/daily-coding-problem
4fe3ec53e1f3c7d299849671fdfead462d548cd3
[ "MIT" ]
null
null
null
problem_1/__init__.py
oltionzefi/daily-coding-problem
4fe3ec53e1f3c7d299849671fdfead462d548cd3
[ "MIT" ]
null
null
null
from .problem_1 import count_sets, count_sets_mem
25
49
0.86
9
50
4.333333
0.777778
0.461538
0
0
0
0
0
0
0
0
0
0.022222
0.1
50
1
50
50
0.844444
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
97c185a0101b0975f06d2d61249a82ddd56eb11a
3,091
py
Python
output/models/nist_data/list_pkg/nmtokens/schema_instance/nistschema_sv_iv_list_nmtokens_enumeration_2_xsd/nistschema_sv_iv_list_nmtokens_enumeration_2.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
1
2021-08-14T17:59:21.000Z
2021-08-14T17:59:21.000Z
output/models/nist_data/list_pkg/nmtokens/schema_instance/nistschema_sv_iv_list_nmtokens_enumeration_2_xsd/nistschema_sv_iv_list_nmtokens_enumeration_2.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
4
2020-02-12T21:30:44.000Z
2020-04-15T20:06:46.000Z
output/models/nist_data/list_pkg/nmtokens/schema_instance/nistschema_sv_iv_list_nmtokens_enumeration_2_xsd/nistschema_sv_iv_list_nmtokens_enumeration_2.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
null
null
null
from dataclasses import dataclass, field from enum import Enum from typing import Optional __NAMESPACE__ = "NISTSchema-SV-IV-list-NMTOKENS-enumeration-2-NS" class NistschemaSvIvListNmtokensEnumeration2Type(Enum): IS_TO_B_PRINT_IMPROVED_THEN_OF_IS_WITH_BOTH_SPECIF_DOCUMENTS_CONFERENCE_CONFERENCE_DEVELOP_FACT_WEB_THE_AND_VERTI_CROSS_REFERENCE_THOSE_INTERNET_ENABLED_HARDW_OF_ANY_SIGNATURE_IN_NEWCOMERS_REPUTATION_TRANSACTION = ( "is.to:b", "print_improved:then_of_is.with.both-specif", "documents_Conference_Conference-Develop_fact-web-the-and_verti", "cross-reference-those.Internet-enabled_hardw", "of.any", "signature:in:newcomers-reputation-transaction", ) PARTICIPATE_HELP_SUPPLY_FUTURE_AND_CONTAINING_SOFTWARE_NATURE_XSL_F_TO_UNDERSTAND_SERVICE_AND_CREATED_DEFINE_A_DEVELO_WITHOUT_MEETS_OF_FOR_WILL_TECHNOLOGIES_OF_XML_PICO_CELLULA_IMPROVED_THAT_TO_SYSTEMS_ADDRESS_IS_THE_EFFORTS_FILTER_C_ACHIEVED_AND_RESOURCES_AND_LA_BUILT_A_I_JAVA_TECHNOL = ( "participate_help_supply", "future_and.containing-software_nature-XSL-F", "to:understand_service.and-created:define.a-develo", "without.meets:of-for-will.technologies.of-XML-pico-cellula", "improved_that-to:systems.address-is.The:efforts", "filter-c", "achieved_and:resources:and_la", "built-a-i_Java:technol", ) WE_HTML_OF_PERFORMANCE_OF_BE_FURTHER_ALSO_THAT_THEIR_BASE_PROCESSORS_O_RETRI_APPLICATION_EC_BEING_HELP_ADOPTION_TOOLS_O_A_VOCABULAR_A_SYSTEMS_WHERE_CONTAINED_FOR_SCHEMA_EB_XML_HIGHLY_PROCESSO = ( "we_HTML-", "of-performance:of:be:further:also:that_their:base.processors.o", "retri", "application_EC:being:help:", "adoption.tools:o", "A-vocabular", "a.systems-where:contained-for-Schema-ebXML:highly:processo", ) APPLICATIONS_THEIR_HIGHLY_P_WITH_THE_APPLICATIONS_MUST_INVE_XML_EARLY_AND_PROFI_CORRECTNESS_SUBJECT_FILES_FO_SENSORS_XML_THE_I_H_DEPENDS_USING_DEVELOPED_QUALITY_FILE_FOR_COMP = ( "applications:", "their_highly:p", "with.the.applications_must.Inve", "XML-early_and.profi", "correctness-subject:files.fo", "sensors.XML_the-i", "H", "depends-using_developed.quality.file.for.comp", ) WITH_OASIS_R_POSSIBLE_NEW_INCLUDE_CAN_TH_CHALLENGES_SERVICES_AND_TECHNICAL_PA_CO_OF_S = ( "with-OASIS_r", "possible_new-include.can-th", "challenges_services-and:technical-pa", "co", "of:S-", ) @dataclass class NistschemaSvIvListNmtokensEnumeration2: class Meta: name = "NISTSchema-SV-IV-list-NMTOKENS-enumeration-2" namespace = "NISTSchema-SV-IV-list-NMTOKENS-enumeration-2-NS" value: Optional[NistschemaSvIvListNmtokensEnumeration2Type] = field( default=None, metadata={ "required": True, } )
46.134328
294
0.709156
373
3,091
5.378016
0.399464
0.017946
0.020937
0.026919
0.839482
0.839482
0.839482
0.820538
0.820538
0.771685
0
0.002439
0.204141
3,091
66
295
46.833333
0.813008
0
0
0
0
0
0.345196
0.296021
0
0
0
0
0
1
0
false
0
0.05
0
0.2
0.016667
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
c1480b066ee60dad79c1f61167aad924bec91a5c
2,925
py
Python
src/build/lib/binance_f/model/__init__.py
Han1018/Cryptocurrency-Automated-Trading
52a5b6d15eb9b2a3a69cc53bd159f6eec073614d
[ "MIT" ]
1
2021-04-12T09:15:01.000Z
2021-04-12T09:15:01.000Z
binance_f/model/__init__.py
rmdpadula/Binance_Futures
1297a0a0be7b396e5a3980c8ae68f18ca492cb9a
[ "MIT" ]
1
2021-07-20T15:25:11.000Z
2021-07-20T15:25:11.000Z
binance_f/model/__init__.py
rmdpadula/Binance_Futures
1297a0a0be7b396e5a3980c8ae68f18ca492cb9a
[ "MIT" ]
1
2021-12-14T02:39:04.000Z
2021-12-14T02:39:04.000Z
from binance_f.model.constant import * from binance_f.model.message import Msg from binance_f.model.exchangeinformation import ExchangeInformation from binance_f.model.orderbook import OrderBook from binance_f.model.trade import Trade from binance_f.model.aggregatetrade import AggregateTrade from binance_f.model.candlestick import Candlestick from binance_f.model.markprice import MarkPrice from binance_f.model.openinterest import OpenInterest from binance_f.model.fundingrate import FundingRate from binance_f.model.tickerpricechangestatistics import TickerPriceChangeStatistics from binance_f.model.symbolprice import SymbolPrice from binance_f.model.symbolorderbook import SymbolOrderBook from binance_f.model.liquidationorder import LiquidationOrder from binance_f.model.aggregatetradeevent import AggregateTradeEvent from binance_f.model.markpriceevent import MarkPriceEvent from binance_f.model.candlestickevent import CandlestickEvent from binance_f.model.symbolminitickerevent import SymbolMiniTickerEvent from binance_f.model.symboltickerevent import SymbolTickerEvent from binance_f.model.symbolbooktickerevent import SymbolBookTickerEvent from binance_f.model.liquidationorderevent import LiquidationOrderEvent from binance_f.model.orderbookevent import OrderBookEvent from binance_f.model.diffdepthevent import DiffDepthEvent from binance_f.model.order import Order from binance_f.model.balance import Balance from binance_f.model.accountinformation import AccountInformation from binance_f.model.leverage import Leverage from binance_f.model.codeandmsg import CodeMsg from binance_f.model.positionmode import PositionMode from binance_f.model.positionmargin import PositionMargin from binance_f.model.positionmarginhistory import PositionMarginHist from binance_f.model.position import Position from binance_f.model.mytrade import MyTrade from binance_f.model.income import Income from binance_f.model.accountupdate import AccountUpdate from binance_f.model.orderupdate import OrderUpdate from binance_f.model.listenkeyexpired import ListenKeyExpired from binance_f.model.accountinformationv2 import AccountInformationV2 from binance_f.model.adlquantile import AdlQuantile from binance_f.model.apitradingstatus import ApiTradingStatus from binance_f.model.balancev2 import BalanceV2 from binance_f.model.blvtnavcandlestick import BLVTNAVCandlestick from binance_f.model.countdowncancelall import CountdownCancelAll from binance_f.model.indexInfo import IndexInfo from binance_f.model.leveragebracket import LeverageBracket from binance_f.model.openintereststats import OpenInterestStats from binance_f.model.longshortratio import LongShortRatio from binance_f.model.takerbuysellratio import TakerBuySellRatio from binance_f.model.blvtinfoevent import BLVTInfoEvent from binance_f.model.blvtnavcandlestickevent import BLVTNAVCandlestickEvent from binance_f.model.compositeindexevent import CompositeIndexEvent
56.25
83
0.895043
356
2,925
7.210674
0.16573
0.218543
0.238411
0.337748
0
0
0
0
0
0
0
0.00147
0.069744
2,925
52
84
56.25
0.941933
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
6
c153b1c0ef67d18e163c2629bbd4aa4cf09748fe
590
py
Python
codegate2020/Final/Cloud9/prob_src/secret.py
pcw109550/my-ctf-challenges
a24401394c317a0694ab2722a97aed515c312977
[ "MIT" ]
7
2020-07-15T00:28:48.000Z
2021-07-01T04:53:32.000Z
codegate2020/Final/Cloud9/prob_src/secret.py
pcw109550/my-ctf-challenges
a24401394c317a0694ab2722a97aed515c312977
[ "MIT" ]
null
null
null
codegate2020/Final/Cloud9/prob_src/secret.py
pcw109550/my-ctf-challenges
a24401394c317a0694ab2722a97aed515c312977
[ "MIT" ]
1
2020-10-13T12:31:49.000Z
2020-10-13T12:31:49.000Z
P1 = 0xd8881537762c266ac44ac01d84d2967d2b25aeae3d615b9ce4a46986684c1325 # 97940012926710762153437884674079301076079191877203953722437921714333988067208 # [2, 3, 13, 151, 37277, 63737, 743689, 14743331, 20904431, 3659465143, 38635749385473505471502894387389] # 2^3 * 3^4 * 13 * 151 * 37277 * 63737 * 743689 * 14743331 * 20904431 * 3659465143 * 38635749385473505471502894387389 Q1 = 0x83c31018323d944f15df2b56f485c38566a5ba67f5e73a1541014ac15b949e7b a = 0x548b9720776981ba9e1e6f8322b9a8b8d6fe0f186c87fa81d2847031ac6ef3ea b = 0x661f06bba055fc2cae04944a7943250742b7662cf19738b0a1674dad65a77930
73.75
117
0.866102
33
590
15.484848
0.636364
0.007828
0.039139
0.058708
0.309198
0.309198
0.309198
0.309198
0.309198
0
0
0.778598
0.081356
590
7
118
84.285714
0.164207
0.50339
0
0
0
0
0
0
0
1
0.913495
0
0
1
0
false
0
0
0
0
0
0
0
1
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
1
0
0
0
0
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
6
c1ab5f10f68dff497075b81be143f71af71b677a
60
py
Python
src/ts_analysis/analysis/__init__.py
tedchengf/ts_analysis
b1ed127b5392d177c51bd136107aa0fec4a1759c
[ "MIT" ]
1
2022-01-11T00:19:26.000Z
2022-01-11T00:19:26.000Z
src/ts_analysis/analysis/__init__.py
tedchengf/ts_analysis
b1ed127b5392d177c51bd136107aa0fec4a1759c
[ "MIT" ]
null
null
null
src/ts_analysis/analysis/__init__.py
tedchengf/ts_analysis
b1ed127b5392d177c51bd136107aa0fec4a1759c
[ "MIT" ]
null
null
null
from . import clustering from . import mds from . import pca
20
24
0.766667
9
60
5.111111
0.555556
0.652174
0
0
0
0
0
0
0
0
0
0
0.183333
60
3
25
20
0.938776
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
c1b46e1369105e5aa7c400bed3035787cdd8b19b
58
py
Python
runUnitTests.py
mmasata/miniweb
442f11c09b15d7341c0a759b5674c849904f6ff5
[ "MIT" ]
6
2021-07-01T06:54:40.000Z
2021-07-17T05:56:29.000Z
runUnitTests.py
mmasata/miniweb
442f11c09b15d7341c0a759b5674c849904f6ff5
[ "MIT" ]
null
null
null
runUnitTests.py
mmasata/miniweb
442f11c09b15d7341c0a759b5674c849904f6ff5
[ "MIT" ]
3
2021-07-06T03:43:39.000Z
2022-02-09T13:49:15.000Z
from miniwebTest import run_all_tests run_all_tests()
8.285714
37
0.810345
9
58
4.777778
0.666667
0.27907
0.511628
0
0
0
0
0
0
0
0
0
0.155172
58
6
38
9.666667
0.877551
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
c1f3e1206d74e097d2945dfe1300678c9e0b0ae0
123
py
Python
tests/pyflakes_bears/pep8_naming_test_files/E11/valid.py
MacBox7/coala-pyflakes
637f8a2e77973384be79d30b0dae1f43072e60c8
[ "MIT" ]
null
null
null
tests/pyflakes_bears/pep8_naming_test_files/E11/valid.py
MacBox7/coala-pyflakes
637f8a2e77973384be79d30b0dae1f43072e60c8
[ "MIT" ]
12
2018-05-21T06:12:59.000Z
2018-07-30T10:37:16.000Z
tests/pyflakes_bears/pep8_naming_test_files/E11/valid.py
MacBox7/coala-pyflakes
637f8a2e77973384be79d30b0dae1f43072e60c8
[ "MIT" ]
1
2018-06-10T16:16:47.000Z
2018-06-10T16:16:47.000Z
class Foo: lowercase = 0 def bar(): ''' >>> class Foo(FooParent): ... _1 = 0 ''' pass
12.3
33
0.390244
12
123
3.916667
0.75
0.340426
0
0
0
0
0
0
0
0
0
0.043478
0.439024
123
9
34
13.666667
0.637681
0.325203
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0.25
0
0
0.75
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
1
0
0
6
c1f5f2eb6b61cb227ea0b268dd1b7cdfe316827d
165
py
Python
platform/core/polyaxon/auditor/events/superuser.py
hackerwins/polyaxon
ff56a098283ca872abfbaae6ba8abba479ffa394
[ "Apache-2.0" ]
null
null
null
platform/core/polyaxon/auditor/events/superuser.py
hackerwins/polyaxon
ff56a098283ca872abfbaae6ba8abba479ffa394
[ "Apache-2.0" ]
null
null
null
platform/core/polyaxon/auditor/events/superuser.py
hackerwins/polyaxon
ff56a098283ca872abfbaae6ba8abba479ffa394
[ "Apache-2.0" ]
null
null
null
import auditor from events.registry import superuser auditor.subscribe(superuser.SuperUserRoleGrantedEvent) auditor.subscribe(superuser.SuperUserRoleRevokedEvent)
23.571429
54
0.884848
15
165
9.733333
0.6
0.219178
0.342466
0
0
0
0
0
0
0
0
0
0.060606
165
6
55
27.5
0.941935
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
a9f3170d18af39055b1cd90ba4250795e7868617
34,939
py
Python
tensorflow_quantum/datasets/spin_system.py
quantummind/quantum
fd952d0362c5445eef0da4437fb3e5ebb16b7948
[ "Apache-2.0" ]
1,501
2020-03-09T00:40:31.000Z
2022-03-28T19:59:57.000Z
tensorflow_quantum/datasets/spin_system.py
tappinganalytics/quantum
ef3a34341d997d485a7e43335a8ed61a8e7c6ea6
[ "Apache-2.0" ]
381
2020-03-09T18:31:04.000Z
2022-03-28T18:47:32.000Z
tensorflow_quantum/datasets/spin_system.py
tappinganalytics/quantum
ef3a34341d997d485a7e43335a8ed61a8e7c6ea6
[ "Apache-2.0" ]
410
2020-03-09T03:05:48.000Z
2022-03-31T12:08:14.000Z
# Copyright 2020 The TensorFlow Quantum Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ============================================================================== """Quantum datasets for quantum many-body spin systems.""" from collections import namedtuple import os import numpy as np import sympy import cirq import tensorflow as tf SpinSystemInfo = namedtuple( "SpinSystemInfo", [ "g", # Numpy `float` order parameter. "gs", # Complex `np.ndarray` ground state wave function from # exact diagonalization. "gs_energy", # Numpy `float` ground state energy from exact # diagonalization. "res_energy", # Python `float` residual between the circuit energy and # the exact energy from exact diagonalization. "fidelity", # Python `float` overlap between the circuit state and the # exact ground state from exact diagonalization. "params", # Dict with Python `str` keys and Numpy`float` values. # Contains $M \times P parameters. Here $M$ is the number of # parameters per circuit layer and $P$ the circuit depth. "var_circuit" # Variational `cirq.Circuit` quantum circuit with # unresolved Sympy parameters. ]) def unique_name(): """Generator to generate an infinite number of unique names. Yields: Python `str` of the form "theta_<integer>". """ num = 0 while True: yield "theta_" + str(num) num += 1 def _download_spin_data(system_name, boundary_condition, nspins, data_dir): """Download and load the data and convert to useful data structures. Args: system_name: Python `str` name of the system. boundary_condition: Python `str` specifying the boundary conditions of the system. nspins: Python `int` number of spins in the system. data_dir: Python `str` location where to store the data on disk. If None, the default path is `~/tfq-datasets`.If the passed `data_dir` does not exist, defaults to `~/tmp/.keras`. Returns: A Python `str` path where the data is stored. """ # Set default storage location. if data_dir is None: data_dir = os.path.expanduser("~/tfq-datasets") # Use Keras file downloader. file_path = tf.keras.utils.get_file( fname=system_name + '.zip', cache_dir=data_dir, cache_subdir='spin_systems', origin="https://storage.googleapis.com/download" ".tensorflow.org/data/quantum/" "spin_systems/" + system_name + ".zip ", extract=True) file_path = os.path.splitext(file_path)[0] data_path = os.path.join(file_path, boundary_condition, str(nspins)) return data_path def tfi_chain(qubits, boundary_condition="closed", data_dir=None): """1D Transverse field Ising-model quantum data set. $$ H = - \sum_{i} \sigma_i^z \sigma_{i+1}^z - g\sigma_i^x $$ Contains 81 circuit parameterizations corresponding to the ground states of the 1D TFI chain for g in [0.2,1.8]. This dataset contains 81 datapoints. Each datapoint is represented by a circuit (`cirq.Circuit`), a label (Python `float`) a Hamiltonian (`cirq.PauliSum`) and some additional metadata. Each Hamiltonian in a datapoint is a 1D TFI chain with boundary condition `boundary_condition` on `qubits` whos order parameter dictates the value of label. The circuit in a datapoint prepares (an approximation to) the ground state of the Hamiltonian in the datapoint. Example usage: >>> qbs = cirq.GridQubit.rect(4, 1) >>> circuits, labels, pauli_sums, addinfo = ... tfq.datasets.tfi_chain(qbs, "closed") You can print the available order parameters >>> [info.g for info in addinfo] [0.20, 0.22, 0.24, ... ,1.76, 1.78, 1.8] and the circuit corresponding to the ground state for a certain order parameter >>> print(circuits[10]) ┌─────── ... (0, 0): ───H───ZZ──────────────────────────────────ZZ───────── ... │ │ (1, 0): ───H───ZZ^0.761───ZZ─────────X^0.641───────┼────────── ... │ │ (2, 0): ───H──────────────ZZ^0.761───ZZ────────────┼────────── ... │ │ (3, 0): ───H─────────────────────────ZZ^0.761──────ZZ^0.761─── ... └─────────── ... The labels indicate the phase of the system >>> labels[10] 0 Additionally, you can obtain the `cirq.PauliSum` representation of the Hamiltonian >>> print(pauli_sums[10]) -1.000*Z((0, 0))*Z((1, 0))-1.000*Z((1, 0))*Z((2, 0))-1.000*Z((2, 0))* Z((3, 0))-1.000*Z((0, 0))*Z((3, 0)) ... -0.400*X((2, 0))-0.400*X((3, 0)) The fourth output, `addinfo`, contains additional information about each instance of the system (see `tfq.datasets.spin_system.SpinSystem` ). For instance, you can print the ground state obtained from exact diagonalization >>> addinfo[10].gs [[-0.38852974+0.57092165j] [-0.04107317+0.06035461j] ... [-0.04107317+0.06035461j] [-0.38852974+0.57092165j]] with corresponding ground state energy >>> addinfo[10].gs_energy -4.169142950406478 You can also inspect the parameters >>> addinfo[10].params {"theta_0": 0.7614564630036476, "theta_1": 0.6774991338794768, "theta_2": 0.6407093304791429, "theta_3": 0.7335369771742435} and change them to experiment with different parameter values by using the unresolved variational circuit returned by tfichain >>> new_params = {} ... for symbol_name, value in addinfo[10].params.items(): ... new_params[symbol_name] = 0.5 * value >>> new_params {"theta_0": 0.3807282315018238, "theta_1": 0.3387495669397384, "theta_2": 0.32035466523957146, "theta_3": 0.36676848858712174} >>> new_circuit = cirq.resolve_parameters(addinfo[10].var_circuit, ... new_params) >>> print(new_circuit) ┌─────── ... (0, 0): ───H───ZZ──────────────────────────────────ZZ───────── ... │ │ (1, 0): ───H───ZZ^0.761───ZZ─────────X^0.32────────┼────────── ... │ │ (2, 0): ───H──────────────ZZ^0.761───ZZ────────────┼────────── ... │ │ (3, 0): ───H─────────────────────────ZZ^0.761──────ZZ^0.761─── ... └─────────── ... Args: qubits: Python `lst` of `cirq.GridQubit`s. Supported number of spins are [4, 8, 12, 16]. boundary_condition: Python `str` indicating the boundary condition of the chain. Supported boundary conditions are ["closed"]. data_dir: Optional Python `str` location where to store the data on disk. Defaults to `/tmp/.keras`. Returns: A Python `lst` cirq.Circuit of depth len(qubits) / 2 with resolved parameters. A Python `lst` of labels, 0, for the ferromagnetic phase (`g<1`), 1 for the critical point (`g==1`) and 2 for the paramagnetic phase (`g>1`). A Python `lst` of `cirq.PauliSum`s. A Python `lst` of `namedtuple` instances containing the following fields: - `g`: Numpy `float` order parameter. - `gs`: Complex `np.ndarray` ground state wave function from exact diagonalization. - `gs_energy`: Numpy `float` ground state energy from exact diagonalization. - `res_energy`: Python `float` residual between the circuit energy and the exact energy from exact diagonalization. - `fidelity`: Python `float` overlap between the circuit state and the exact ground state from exact diagonalization. - `params`: Dict with Python `str` keys and Numpy`float` values. Contains $M \times P $ parameters. Here $M$ is the number of parameters per circuit layer and $P$ the circuit depth. - `var_circuit`: Variational `cirq.Circuit` quantum circuit with unresolved Sympy parameters. """ supported_n = [4, 8, 12, 16] supported_bc = ["closed"] if any(isinstance(q, list) for q in qubits): raise TypeError("qubits must be a one-dimensional list") if not all(isinstance(q, cirq.GridQubit) for q in qubits): raise TypeError("qubits must be a list of cirq.GridQubit objects.") nspins = len(qubits) depth = nspins // 2 if nspins not in supported_n: raise ValueError("Supported number of spins are {}, received {}".format( supported_n, nspins)) if boundary_condition not in supported_bc: raise ValueError( "Supported boundary conditions are {}, received {}".format( supported_bc, boundary_condition)) data_path = _download_spin_data('TFI_chain', boundary_condition, nspins, data_dir) name_generator = unique_name() # 2 * N/2 parameters. symbol_names = [next(name_generator) for _ in range(nspins)] symbols = [sympy.Symbol(name) for name in symbol_names] # Define the circuit. circuit = cirq.Circuit(cirq.H.on_each(qubits)) for d in range(depth): circuit.append( cirq.ZZ(q1, q2)**(symbols[d]) for q1, q2 in zip(qubits, qubits[1:])) if boundary_condition == "closed": circuit.append(cirq.ZZ(qubits[nspins - 1], qubits[0])**(symbols[d])) circuit.append(cirq.X(q1)**(symbols[d + depth]) for q1 in qubits) # Initiate lists. resolved_circuits = [] hamiltonians = [] order_parameters = [] additional_info = [] labels = [] # Load the data and append to the lists. for i, directory in enumerate(x for x in os.listdir(data_path)): # The folders are named according to the order value data they contain. g = float(directory) with open(os.path.join(data_path, directory, "stats.txt"), "r") as file: lines = file.readlines() res_e = float(lines[0].split("=")[1].strip("\n")) fidelity = float(lines[2].split("=")[1].strip("\n")) order_parameters.append(g) params = np.load(os.path.join(data_path, directory, "params.npy")) \ / np.pi # Parameters are stored as np.float32, but cirq expects np.float64 # See https://github.com/quantumlib/Cirq/issues/3359 params = params.astype(np.float) additional_info.append( SpinSystemInfo(g=g, gs=np.load( os.path.join(data_path, directory, "groundstate.npy"))[:, 0], gs_energy=np.load( os.path.join(data_path, directory, "energy.npy"))[0], res_energy=res_e, fidelity=fidelity, params=dict(zip(symbol_names, params.flatten())), var_circuit=circuit)) # Resolve the circuit parameters. resolved_circuit = cirq.resolve_parameters(circuit, additional_info[i].params) resolved_circuits.append(resolved_circuit) # Make the PauliSum. paulisum = sum( -cirq.Z(q1) * cirq.Z(q2) for q1, q2 in zip(qubits, qubits[1:])) if boundary_condition == "closed": paulisum += -cirq.Z(qubits[0]) * cirq.Z(qubits[-1]) paulisum += -order_parameters[i] * sum(cirq.X(q) for q in qubits) hamiltonians.append(paulisum) # Set labels for the different phases. if order_parameters[i] < 1.0: labels.append(0) elif order_parameters[i] == 1.0: labels.append(1) else: labels.append(2) # Make sure that the data is ordered from g=0.2 to g=1.8. _, resolved_circuits, labels, hamiltonians, additional_info = zip(*sorted( zip(order_parameters, resolved_circuits, labels, hamiltonians, additional_info))) return resolved_circuits, labels, hamiltonians, additional_info def xxz_chain(qubits, boundary_condition="closed", data_dir=None): """1D XXZ model quantum data set. $$ H = \sum_{i} \sigma_i^x \sigma_{i+1}^x + \sigma_i^y \sigma_{i+1}^y + \Delta\sigma_i^z \sigma_{i+1}^z $$ Contains 76 circuit parameterizations corresponding to the ground states of the 1D XXZ chain for g in [0.3,1.8]. This dataset contains 76 datapoints. Each datapoint is represented by a circuit (`cirq.Circuit`), a label (Python `float`) a Hamiltonian (`cirq.PauliSum`) and some additional metadata. Each Hamiltonian in a datapoint is a 1D XXZ chain with boundary condition `boundary_condition` on `qubits` whos order parameter dictates the value of label. The circuit in a datapoint prepares (an approximation to) the ground state of the Hamiltonian in the datapoint. Example usage: >>> qbs = cirq.GridQubit.rect(4, 1) >>> circuits, labels, pauli_sums, addinfo = ... tfq.datasets.xxz_chain(qbs, "closed") You can print the available order parameters >>> [info.g for info in addinfo] [0.30, 0.32, 0.34, ... ,1.76, 1.78, 1.8] and the circuit corresponding to the ground state for a certain order parameter >>> print(circuits[10]) ┌──────────────────┐ ┌──────────────────┐ (0, 0): ───X───H───@─────────────ZZ─────────────────────YY────────── ... │ │ │ (1, 0): ───X───────X────ZZ───────┼─────────────YY───────┼─────────── ... │ │ │ │ (2, 0): ───X───H───@────ZZ^-0.922┼─────────────YY^-0.915┼─────────── ... │ │ │ (3, 0): ───X───────X─────────────ZZ^-0.922──────────────YY^-0.915─── ... └──────────────────┘ └──────────────────┘ The labels indicate the phase of the system >>> labels[10] 0 Additionally, you can obtain the `cirq.PauliSum` representation of the Hamiltonian >>> print(pauli_sums[10]) 0.400*Z((0, 0))*Z((1, 0))+0.400*Z((1, 0))*Z((2, 0))+ ... +1.000*Y((0, 0))*Y((3, 0))+1.000*X((0, 0))*X((3, 0)) The fourth output, `addinfo`, contains additional information about each instance of the system (see `tfq.datasets.spin_system.SpinSystem` ). For instance, you can print the ground state obtained from exact diagonalization >>> addinfo[10].gs [-8.69032854e-18-6.58023246e-20j 4.54546402e-17+3.08736567e-17j -9.51026525e-18+2.42638062e-17j 4.52284042e-02+3.18111120e-01j ... 4.52284042e-02+3.18111120e-01j -6.57974275e-18-3.84526414e-17j -1.60673943e-17+5.79767820e-17j 2.86193021e-17-5.06694574e-17j] with corresponding ground state energy >>> addinfo[10].gs_energy -6.744562646538039 You can also inspect the parameters >>> addinfo[10].params {'theta_0': 1.0780547, 'theta_1': 0.99271035, 'theta_2': 1.0854135, ... and change them to experiment with different parameter values by using the unresolved variational circuit returned by xxzchain >>> new_params = {} ... for symbol_name, value in addinfo[10].params.items(): ... new_params[symbol_name] = 0.5 * value >>> new_params {'theta_0': 0.5390273332595825, 'theta_1': 0.49635517597198486, ... >>> new_circuit = cirq.resolve_parameters(addinfo[10].var_circuit, ... new_params) >>> print(new_circuit) ┌──────────────────┐ ┌──────────────────┐ (0, 0): ───X───H───@─────────────ZZ─────────────────────YY────────── ... │ │ │ (1, 0): ───X───────X────ZZ───────┼─────────────YY───────┼─────────── ... │ │ │ │ (2, 0): ───X───H───@────ZZ^(7/13)┼─────────────YY^0.543 ┼─────────── ... │ │ │ (3, 0): ───X───────X─────────────ZZ^(7/13)──────────────YY^0.543 ─── ... └──────────────────┘ └──────────────────┘ Args: qubits: Python `lst` of `cirq.GridQubit`s. Supported number of spins are [4, 8, 12, 16]. boundary_condition: Python `str` indicating the boundary condition of the chain. Supported boundary conditions are ["closed"]. data_dir: Optional Python `str` location where to store the data on disk. Defaults to `/tmp/.keras`. Returns: A Python `lst` cirq.Circuit of depth len(qubits) / 2 with resolved parameters. A Python `lst` of labels, 0, for the critical metallic phase (`Delta<=1`) and 1 for the insulating phase (`Delta>1`). A Python `lst` of `cirq.PauliSum`s. A Python `lst` of `namedtuple` instances containing the following fields: - `g`: Numpy `float` order parameter. - `gs`: Complex `np.ndarray` ground state wave function from exact diagonalization. - `gs_energy`: Numpy `float` ground state energy from exact diagonalization. - `res_energy`: Python `float` residual between the circuit energy and the exact energy from exact diagonalization. - `fidelity`: Python `float` overlap between the circuit state and the exact ground state from exact diagonalization. - `params`: Dict with Python `str` keys and Numpy`float` values. Contains $M \times P $ parameters. Here $M$ is the number of parameters per circuit layer and $P$ the circuit depth. - `var_circuit`: Variational `cirq.Circuit` quantum circuit with unresolved Sympy parameters. """ supported_n = [4, 8, 12, 16] supported_bc = ["closed"] if any(isinstance(q, list) for q in qubits): raise TypeError("qubits must be a one-dimensional list") if not all(isinstance(q, cirq.GridQubit) for q in qubits): raise TypeError("qubits must be a list of cirq.GridQubit objects.") nspins = len(qubits) depth = nspins // 2 if nspins not in supported_n: raise ValueError("Supported number of spins are {}, received {}".format( supported_n, nspins)) if boundary_condition not in supported_bc: raise ValueError( "Supported boundary conditions are {}, received {}".format( supported_bc, boundary_condition)) data_path = _download_spin_data('XXZ_chain', boundary_condition, nspins, data_dir) name_generator = unique_name() # 4 * N/2 parameters. symbol_names = [next(name_generator) for _ in range(2 * nspins)] symbols = [sympy.Symbol(name) for name in symbol_names] # Define the circuit. circuit = cirq.Circuit(cirq.X.on_each(qubits)) even_qubits = qubits[::2] odd_qubits = qubits[1::2] circuit.append(cirq.H(qubits[i]) for i in range(0, nspins, 2)) circuit.append(cirq.CNOT(q1, q2) for q1, q2 in zip(even_qubits, odd_qubits)) for d in range(depth): for q1, q2 in zip(odd_qubits, even_qubits[1:]): circuit.append(cirq.ZZ(q1, q2)**(symbols[d])) circuit.append(cirq.YY(q1, q2)**(symbols[d + depth])) circuit.append(cirq.XX(q1, q2)**(symbols[d + depth])) if boundary_condition == "closed": circuit.append(cirq.ZZ(qubits[-1], qubits[0])**(symbols[d])) circuit.append(cirq.YY(qubits[-1], qubits[0])**(symbols[d + depth])) circuit.append(cirq.XX(qubits[-1], qubits[0])**(symbols[d + depth])) for q1, q2 in zip(even_qubits, odd_qubits): circuit.append(cirq.ZZ(q1, q2)**(symbols[d + 2 * depth])) circuit.append(cirq.YY(q1, q2)**(symbols[d + 3 * depth])) circuit.append(cirq.XX(q1, q2)**(symbols[d + 3 * depth])) # Initiate lists. resolved_circuits = [] hamiltonians = [] order_parameters = [] additional_info = [] labels = [] # Load the data and append to the lists. for i, directory in enumerate(x for x in os.listdir(data_path)): # The folders are named according to the order value data they contain. g = float(directory) with open(os.path.join(data_path, directory, "stats.txt"), "r") as file: lines = file.readlines() res_e = float(lines[0].split("=")[1].strip("\n")) fidelity = float(lines[2].split("=")[1].strip("\n")) order_parameters.append(g) params = np.load(os.path.join(data_path, directory, "params.npy")) \ / np.pi # Parameters are stored as np.float32, but cirq expects np.float64 # See https://github.com/quantumlib/Cirq/issues/3359 params = params.astype(np.float) additional_info.append( SpinSystemInfo(g=g, gs=np.load( os.path.join(data_path, directory, "groundstate.npy"))[:, 0], gs_energy=np.load( os.path.join(data_path, directory, "energy.npy"))[0], res_energy=res_e, fidelity=fidelity, params=dict(zip(symbol_names, params.flatten())), var_circuit=circuit)) # Resolve the circuit parameters. resolved_circuit = cirq.resolve_parameters(circuit, additional_info[i].params) resolved_circuits.append(resolved_circuit) # Make the PauliSum. paulisum = sum(order_parameters[i] * cirq.Z(q1) * cirq.Z(q2) + cirq.Y(q1) * cirq.Y(q2) + cirq.X(q1) * cirq.X(q2) for q1, q2 in zip(qubits, qubits[1:])) if boundary_condition == "closed": paulisum += order_parameters[i] * cirq.Z(qubits[0]) * cirq.Z( qubits[-1]) + cirq.Y(qubits[0]) * cirq.Y(qubits[-1]) + cirq.X( qubits[0]) * cirq.X(qubits[-1]) hamiltonians.append(paulisum) # Set labels for the different phases. if order_parameters[i] <= 1.0: labels.append(0) else: labels.append(1) # Make sure that the data is ordered from g=0.2 to g=1.8. _, resolved_circuits, labels, hamiltonians, additional_info = zip(*sorted( zip(order_parameters, resolved_circuits, labels, hamiltonians, additional_info))) return resolved_circuits, labels, hamiltonians, additional_info def tfi_rectangular(qubits, boundary_condition="torus", data_dir=None): """2D transverse field Ising-model quantum data set. $$ H = - \sum_{\langle i,j \rangle} \sigma_i^z \sigma_{j}^z - g\sigma_i^x $$ Contains 51 circuit parameterizations corresponding to the ground states of the 2D TFI chain for g in [2.5,3.5]. This dataset contains 51 datapoints. Each datapoint is represented by a circuit (`cirq.Circuit`), a label (Python `float`) a Hamiltonian (`cirq.PauliSum`) and some additional metadata. Each Hamiltonian in a datapoint is a 2D TFI rectangular lattice with boundary condition `boundary_condition` on `qubits` whos order parameter dictates the value of label. The circuit in a datapoint prepares (an approximation to) the ground state of the Hamiltonian in the datapoint. Example usage: >>> qbs = cirq.GridQubit.rect(9, 1) >>> circuits, labels, pauli_sums, addinfo = ... tfq.datasets.tfi_rectangular(qbs, "torus") You can print the available order parameters >>> [info.g for info in addinfo] [2.5, 2.52, 2.54, ... ,3.46 , 3.48, 3.5] and the circuit corresponding to the ground state for a certain order parameter >>> print(circuits[10]) ┌──────────────────────┐ ┌───────────────────── ... (0, 0): ───H────ZZ─────────────────────────ZZ─────────────────────── ... │ │ (1, 0): ───H────ZZ^0.948896────────────────┼──────────ZZ──────────── ... │ │ (2, 0): ───H────ZZ─────────────────────────┼──────────┼───────────── ... │ │ │ (3, 0): ───H────┼──────────ZZ──────────────┼──────────┼───────────── ... . . . . . . . . The labels indicate the phase of the system >>> labels[10] 0 Additionally, you can obtain the `cirq.PauliSum` representation of the Hamiltonian >>> print(pauli_sums[10]) -2.700*X((0, 0))-2.700*X((1, 0))-2.700*X((2, 0))-2.700*X((3, 0))- 2.700*X((4, 0))-2.700*X((5, 0))-2.700*X((6, 0))-2.700*X((7, 0))- ... -1.000*Z((3, 0))*Z((6, 0))-1.000*Z((4, 0))*Z((5, 0)) The fourth output, `addinfo`, contains additional information about each instance of the system (see `tfq.datasets.spin_system.SpinSystem` ). For instance, you can print the ground state obtained from exact diagonalization >>> addinfo[10].gs [-0.11843355-0.30690906j -0.04374221-0.11335368j -0.04374221-0.11335368j -0.02221491-0.0575678j -0.04374221-0.11335368j -0.02221491-0.0575678j ... -0.04374221-0.11335368j -0.02221491-0.0575678j -0.04374221-0.11335368j -0.04374221-0.11335368j -0.11843355-0.30690906j] with corresponding ground state energy >>> addinfo[10].gs_energy -26.974953331962762 You can also inspect the parameters >>> addinfo[10].params {'theta_0': 0.948896, 'theta_1': 0.90053445, ... 'theta_8': 0.76966083, 'theta_9': 0.87608284} and change them to experiment with different parameter values by using the unresolved variational circuit returned by tfichain >>> new_params = {} ... for symbol_name, value in addinfo[10].params.items(): ... new_params[symbol_name] = 0.5 * value >>> new_params {'theta_0': 0.47444799542427063, 'theta_1': 0.4502672255039215, ... 'theta_8': 0.38483041524887085, 'theta_9': 0.43804141879081726} >>> new_circuit = cirq.resolve_parameters(addinfo[10].var_circuit, ... new_params) >>> print(new_circuit) ┌──────────────────────┐ ┌───────────────────── ... (0, 0): ───H────ZZ─────────────────────────ZZ─────────────────────── ... │ │ (1, 0): ───H────ZZ^0.474───────────────────┼──────────ZZ──────────── ... │ │ (2, 0): ───H────ZZ─────────────────────────┼──────────┼───────────── ... │ │ │ (3, 0): ───H────┼──────────ZZ──────────────┼──────────┼───────────── ... . . . . . . . . Args: qubits: Python `lst` of `cirq.GridQubit`s. Supported number of spins are [9, 12, 16]. boundary_condition: Python `str` indicating the boundary condition of the chain. Supported boundary conditions are ["torus"]. data_dir: Optional Python `str` location where to store the data on disk. Defaults to `/tmp/.keras`. Returns: A Python `lst` cirq.Circuit of depth ceil(len(qubits) / 2) with resolved parameters. A Python `lst` of labels, 0, for the phase (`g<3.04`), 1 for the critical point (`g==3.04`) and 2 for the phase (`g>3.04`). A Python `lst` of `cirq.PauliSum`s. A Python `lst` of `namedtuple` instances containing the following fields: - `g`: Numpy `float` order parameter. - `gs`: Complex `np.ndarray` ground state wave function from exact diagonalization. - `gs_energy`: Numpy `float` ground state energy from exact diagonalization. - `res_energy`: Python `float` residual between the circuit energy and the exact energy from exact diagonalization. - `fidelity`: Python `float` overlap between the circuit state and the exact ground state from exact diagonalization. - `params`: Dict with Python `str` keys and Numpy`float` values. Contains $M \times P $ parameters. Here $M$ is the number of parameters per circuit layer and $P$ the circuit depth. - `var_circuit`: Variational `cirq.Circuit` quantum circuit with unresolved Sympy parameters. """ supported_n = [9, 12, 16] supported_bc = ["torus"] if any(isinstance(q, list) for q in qubits): raise TypeError("qubits must be a one-dimensional list") if not all(isinstance(q, cirq.GridQubit) for q in qubits): raise TypeError("qubits must be a list of cirq.GridQubit objects.") nspins = len(qubits) depth = int(np.ceil(nspins / 2)) if nspins not in supported_n: raise ValueError("Supported number of spins are {}, received {}".format( supported_n, nspins)) if boundary_condition not in supported_bc: raise ValueError( "Supported boundary conditions are {}, received {}".format( supported_bc, boundary_condition)) data_path = _download_spin_data('TFI_rect', boundary_condition, nspins, data_dir) name_generator = unique_name() # 2 * depth parameters. symbol_names = [next(name_generator) for _ in range(2 * depth)] symbols = [sympy.Symbol(name) for name in symbol_names] # Define the circuit. circuit = cirq.Circuit(cirq.H.on_each(qubits)) if boundary_condition == 'torus': if nspins == 9: #3x3 edges = { 'g1': [[0, 1], [2, 5], [3, 4], [6, 7]], 'g2': [[0, 6], [1, 4], [7, 8]], 'g3': [[0, 3], [1, 2], [4, 7], [5, 8]], 'g4': [[0, 2], [1, 7], [3, 5], [6, 8]], 'g5': [[2, 8], [3, 6], [4, 5]] } if nspins == 12: #4x3 edges = { 'g1': [[0, 3], [1, 2], [4, 7], [5, 8], [6, 9], [10, 11]], 'g2': [[0, 1], [2, 5], [3, 4], [6, 7], [8, 11], [9, 10]], 'g3': [[0, 9], [1, 10], [2, 11], [3, 6], [4, 5], [7, 8]], 'g4': [[0, 2], [1, 4], [3, 5], [6, 8], [7, 10], [9, 11]] } if nspins == 16: #4x4 edges = { 'g1': [[0, 3], [1, 2], [4, 7], [5, 9], [6, 10], [8, 12], [11, 15], [13, 14]], 'g2': [[0, 4], [1, 5], [2, 6], [3, 15], [7, 11], [8, 9], [10, 14], [12, 13]], 'g3': [[0, 12], [1, 13], [2, 3], [4, 5], [6, 7], [8, 11], [9, 10], [14, 15]], 'g4': [[0, 1], [2, 14], [3, 7], [4, 8], [5, 6], [9, 13], [10, 11], [12, 15]] } for d in range(depth): for graph in edges.values(): circuit.append( cirq.ZZ(qubits[edge[0]], qubits[edge[1]])**(symbols[d]) for edge in graph) circuit.append(cirq.X(q1)**(symbols[d + depth]) for q1 in qubits) # Initiate lists. resolved_circuits = [] hamiltonians = [] order_parameters = [] additional_info = [] labels = [] # Load the data and append to the lists. for i, directory in enumerate(x for x in os.listdir(data_path)): # The folders are named according to the order value data they contain. g = float(directory) with open(os.path.join(data_path, directory, "stats.txt"), "r") as file: lines = file.readlines() res_e = float(lines[0].split("=")[1].strip("\n")) fidelity = float(lines[2].split("=")[1].strip("\n")) order_parameters.append(g) params = np.load(os.path.join(data_path, directory, "params.npy")) \ / np.pi additional_info.append( SpinSystemInfo(g=g, gs=np.load( os.path.join(data_path, directory, "groundstate.npy"))[:, 0], gs_energy=np.load( os.path.join(data_path, directory, "energy.npy"))[0], res_energy=res_e, fidelity=fidelity, params=dict(zip(symbol_names, params.flatten())), var_circuit=circuit)) # Resolve the circuit parameters. param_resolver = cirq.resolve_parameters(circuit, additional_info[i].params) resolved_circuits.append(param_resolver) paulisum = -order_parameters[i] * sum(cirq.X(q) for q in qubits) # Make the PauliSum. for graph in edges.values(): paulisum -= sum( cirq.Z(qubits[edge[0]]) * cirq.Z(qubits[edge[1]]) for edge in graph) hamiltonians.append(paulisum) # Set labels for the different phases. if order_parameters[i] < 3.04: labels.append(0) elif order_parameters[i] == 3.04: labels.append(1) else: labels.append(2) # Make sure that the data is ordered from g=2.5 to g=3.5. _, resolved_circuits, labels, hamiltonians, additional_info = zip(*sorted( zip(order_parameters, resolved_circuits, labels, hamiltonians, additional_info))) return resolved_circuits, labels, hamiltonians, additional_info
42.556638
80
0.539512
4,376
34,939
4.572212
0.114031
0.027189
0.022791
0.008397
0.821821
0.808627
0.794282
0.784786
0.769942
0.732357
0
0.06793
0.30227
34,939
820
81
42.608537
0.692346
0.549071
0
0.623729
0
0
0.069019
0.002026
0
0
0
0
0
1
0.016949
false
0
0.020339
0
0.050847
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
a9fbf49c60d86c2a6a74d31b3bcd543aa810f9e7
1,637
py
Python
tests/test_decorator.py
andymckay/amo-validator
d13e3644eb657e56666ee40d91a9c67382cfa725
[ "BSD-3-Clause" ]
null
null
null
tests/test_decorator.py
andymckay/amo-validator
d13e3644eb657e56666ee40d91a9c67382cfa725
[ "BSD-3-Clause" ]
null
null
null
tests/test_decorator.py
andymckay/amo-validator
d13e3644eb657e56666ee40d91a9c67382cfa725
[ "BSD-3-Clause" ]
null
null
null
import validator.decorator as decorator def test_tiers(): """ Tests to make sure that the decorator module is properly registering test functions. """ dtt = decorator.TEST_TIERS decorator.TEST_TIERS = {} decorator.register_test(tier=1)(lambda: None) decorator.register_test(tier=2, expected_type=5)(lambda: None) decorator.register_test(tier=2)(lambda: None) decorator.register_test(tier=2, simple=True)(lambda: None) tiers = decorator.get_tiers() print tiers assert len(tiers) == 2 decorator.TEST_TIERS = dtt def test_specifictype(): """ Test to make sure that the decorator module can return a test of a specific type. """ dtt = decorator.TEST_TIERS decorator.TEST_TIERS = {} decorator.register_test(tier=1)(lambda: None) decorator.register_test(tier=2, expected_type=5)(lambda: None) decorator.register_test(tier=2)(lambda: None) decorator.register_test(tier=2, simple=True)(lambda: None) tests = list(decorator.get_tests(2, 1)) assert len(tests) == 2 decorator.TEST_TIERS = dtt def test_assumedtype(): """ Test to see if the decorator module can find tests for generic as well as specific types. """ dtt = decorator.TEST_TIERS decorator.TEST_TIERS = {} decorator.register_test(tier=1)(lambda: None) decorator.register_test(tier=2, expected_type=5)(lambda: None) decorator.register_test(tier=2)(lambda: None) decorator.register_test(tier=2, simple=True)(lambda: None) tests = list(decorator.get_tests(2, 5)) assert len(tests) == 3 decorator.TEST_TIERS = dtt
26.836066
77
0.693952
224
1,637
4.9375
0.223214
0.184448
0.227848
0.271248
0.717902
0.717902
0.717902
0.607595
0.607595
0.607595
0
0.016705
0.19548
1,637
60
78
27.283333
0.823083
0
0
0.65625
0
0
0
0
0
0
0
0
0.09375
0
null
null
0
0.03125
null
null
0.03125
0
0
0
null
0
1
1
0
1
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
6
e70dd2fee595f67cb3d5b2ac0125d2ba7086659b
112,077
py
Python
Assignment-2/images/HH_VS_ALIGN.py
ErikSchutte/Structural-Bioinformatics
5dc371400d14c48f7bdabbf5e9aa8f8c79b90b97
[ "Apache-2.0" ]
null
null
null
Assignment-2/images/HH_VS_ALIGN.py
ErikSchutte/Structural-Bioinformatics
5dc371400d14c48f7bdabbf5e9aa8f8c79b90b97
[ "Apache-2.0" ]
null
null
null
Assignment-2/images/HH_VS_ALIGN.py
ErikSchutte/Structural-Bioinformatics
5dc371400d14c48f7bdabbf5e9aa8f8c79b90b97
[ "Apache-2.0" ]
null
null
null
(1, ('RGB', (128, 128), 'x\x9c\xed\xdbyTT\xd7\x1d\x07\xf0\xef}\x0b\xb3\xc0\xcc8\xc0,\xc2\x80(Q\x04\x04\x8a\x12E\x16\x89;nUq\xabZ\xdc\xd0`\xdc-.\xa8a\xd1\xa8E\x8d\xad\xd5\x1e\xb7D\x1b=i4\'6F-1Q{4\x1es\x12\xd3\x1c\x9b4\xd1V1\xd2ZM<\x9e\x1a=\xc6%\x12u\xfa\xe6\n\xe3\xe0\xcc(X\x90\x03\xf3\xfb\xfc1\xe7\xbd\xfb\xee\x9d\xb9\xf3\xde\x9b\xdf]\xde\x1d\x80\x10B\x08!\x84\x10B\x08!\x84\x10B\x08!\x84\x10B\x08!\x84\x10B\x08!\x84\x10B\x08!\x84\x10B\x08!\x84\x10B\xfe_juF\xb3f\xf9*\xd5t`|C\xd7\xc5\xe7\x08\xc2^Y\xfe\x18\xd8\x00\x0c\x01\xba\x02\xb1\r]\xa3&\xae\x8d\xcb\xb6$\xed\x05v\x03\xa9\rV\x1b\x1f\x13\x06\x0c\x00V\xe9t|/\x05X\x03\xcci\xe0:\xf9\x8c\x88\xaa\x1b}\xb4,\x0f\x12\x04`%\xb0\xb5a\xab\xe4S\x94;_\xcf7Z\x029\xea\x04`2P\xda\xc0u\xf2%\t.\xdbc\xfdF\x02\x19<\xf8\x93\x06\x10\x8e>\xc0W\xc0\x82\x86\xae\x88\xcf\xea\x01\xac\x03~\xf1\xd4\xe5\x95\xa6\xe4\xbe \xfc\x04\\\x05\xde\xac\xc3z\xf9\x8aL`3c\x7fb\xeci.A\xb2N\xb71*\xb9\xaf\xcd\xf6\x961\xf3\xbe\xd9|\x837$\xad\xea\xbc\x8eM\x99\xd2\xf9<\x0e\xbc\x01t\xaam\xc9\xbe@?t\x98\xc2\xcc\x05\x820\xdf\xd1\x8f\xea\xbd\x1d\x9d\xf6\x03E\xf5P\xcb\xa6\xeb\x15\xe0\x10\xd0\x13\x18V\xabb\x9d\x81w\x04a\x8c\xe3f7\x02\xbd\xd2\xd9\xf0),\x7f!\x12\x16 \xea\xc5z\xaai\xd3\xa4\x9c\xfcYpL7\xd4b\xfc\x15\xa3\xc4\x19YVJ\x0e\xc7Pg\xe2\xcb\xc09`\x1e\x10X\xf7\x95l\xaaV\x03#\x1f\x9c\x7f`C\xd6\x132g8\xb72\xd1\xec}m\xc8.G\xec:Y\x8f\xb5k\xe2\xd2\x801\xc0k\xc0L\xbe;w\x88\xe7l\xca\xcd>K\xab\xfd\xf1\xa8\xa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\x9dI\x8c\xdd\xf4\xf3\xbb\xcf\'x<\xcb\xf7v\xc0\xe7\x05\x06\xce\xafm\x11A\xf8{D\xc4\xf9\xae]\x1f\x9e\x7f\x95\xea\x8f\xfcy\xa27\xad\x1f3\xba\xf3q11\xb5>\xff\xc0\x87\x01\x01\x17\x941\xafs?\xd3\x7fa\xc8c\xb2\xa3/\xcd3x3x\xf0S\xc4\x86\xdd\xb2|\x89\xaf\xff\xact\x9b?s\xf7H\x14\x17Dc<\x9d\x7fo\x82\x83\xcbk_\xe8c\x97%\x88\x0e\x9b\xe2\x7f\xe3\xb2W\xc4Ga_\x02\x1f\xc8\xb22\xf6\x1d\xb0\xa7j-\x1cq\xa7\xd1,\xe23l5\xb4\x88/\x91\x1a\xfdHj_k\xc1\x8b\xdat\xc6v\x01\x9b\xf9?\xf2\x1e\xcaP\xabs\xbd\xff:\x08\xd0\xc6h\xfcT\x102\x1e\x9fI\x10\ny\xdf\xb2\xa3\xc7\xa3)\xc0\x01\xad\xd6\xe3\xa13z\x1f\x7f\xaa[#\xadZ\xad\xf5\xf7\xdf\xdb\xa1C\x11c\xd5.\x84$\x15j4{$i\x1b\xff\x9f\xef\xe3\x14h4\xb9\xa2\xf8H\xe2\x01\x83\x81\x16\xb3\xd5F\x92\xc1\xb0\xa0g\xcf\xad))[bc_7\x9b_c,\xa7\xe6\x93\xf4;\x05\xc1\xf5\xa9b\x91(\xae\xb1Z\xeb\xa3\x96\xc4\xa3`\xbe$t\x03_j\xb8[\xad\xae\xdd\xffQI\xdd\xe9\xc6\xa7\xfd\t!\x84\x10B\x08!\x84\x10B\x08!\x84\x10B\x08!\x84\x10B\x08!\x84\x10B\x08!\x84\x10B\x08!\x84\x90:\xf4?\xcf\xb0\xe4\xb3'), None) import cPickle, base64 try: from SimpleSession.versions.v65 import beginRestore,\ registerAfterModelsCB, reportRestoreError, checkVersion except ImportError: from chimera import UserError raise UserError('Cannot open session that was saved in a' ' newer version of Chimera; update your version') checkVersion([1, 12, 41623]) import chimera from chimera import replyobj replyobj.status('Restoring session...', \ blankAfter=0) replyobj.status('Beginning session restore...', \ blankAfter=0, secondary=True) beginRestore() def restoreCoreModels(): from SimpleSession.versions.v65 import init, restoreViewer, \ restoreMolecules, restoreColors, restoreSurfaces, \ restoreVRML, restorePseudoBondGroups, restoreModelAssociations molInfo = cPickle.loads(base64.b64decode('gAJ9cQEoVRFyaWJib25JbnNpZGVDb2xvcnECSwJOfYdVCWJhbGxTY2FsZXEDSwJHP9AAAAAAAAB9h1UJcG9pbnRTaXplcQRLAkc/8AAAAAAAAH2HVQVjb2xvcnEFSwJLAH1xBksBXXEHSwFhc4dVCnJpYmJvblR5cGVxCEsCSwB9h1UKc3RpY2tTY2FsZXEJSwJHP/AAAAAAAAB9h1UMbW1DSUZIZWFkZXJzcQpdcQsoTk5lVQxhcm9tYXRpY01vZGVxDEsCSwF9h1UKdmR3RGVuc2l0eXENSwJHQBQAAAAAAAB9h1UGaGlkZGVucQ5LAol9h1UNYXJvbWF0aWNDb2xvcnEPSwJOfYdVD3JpYmJvblNtb290aGluZ3EQSwJLAH2HVQlhdXRvY2hhaW5xEUsCiH2HVQpwZGJWZXJzaW9ucRJLAksCfYdVCG9wdGlvbmFscRN9cRRVCG9wZW5lZEFzcRWIiUsCKFVSL2hvbWUvbmtyOTUwL1NCSU8vU3RydWN0dXJhbC1CaW9pbmZvcm1hdGljcy9Bc3NpZ25tZW50LTIvdGVzdDIvVDA4ODIuQjk5OTkwMDAxLnBkYnEWVQNQREJxF06JdHEYfXEZKFVaL2hvbWUvbmtyOTUwL1NCSU8vU3RydWN0dXJhbC1CaW9pbmZvcm1hdGljcy9Bc3NpZ25tZW50LTIvUGFpcndpc2VNb2RlbC9UMDg4Mi5COTk5OTAwMDUucGRicRpoF06JdHEbXXEcSwBhc4eHc1UPbG93ZXJDYXNlQ2hhaW5zcR1LAol9h1UJbGluZVdpZHRocR5LAkc/8AAAAAAAAH2HVQ9yZXNpZHVlTGFiZWxQb3NxH0sC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FHrhR9HwBdDlYEGJN2HcgkCAABHP+el41P3ztlHwBB2yLQ5WBBHwBu1P3ztkWiHcgoCAABHv+NcKPXCj1xHwBJZFocrAgxHwB3xqfvnbIuHcgsCAABHv/CwIMSbpeNHwAzxqfvnbItHwCEl41P3ztmHcgwCAABHv/2NT987ZFpHwA+uFHrhR65HwCLhR64UeuGHcg0CAABHv+AYk3S8an9HwAL1wo9cKPZHwCEP3ztkWh2Hcg4CAABHQAThR64UeuFHwBIAAAAAAABHwBWXjU/fO2SHcg8CAABHQAW+dsi0OVhHwAtN0vGp++dHwBNXCj1wo9eHchACAABHQA1N0vGp++dHwBUfvnbItDlHwBazMzMzMzOHchECAABHQBP987ZFoctHwBO+dsi0OVhHwBVCj1wo9cOHchICAABHQBdysCDEm6ZHwBjR64UeuFJHwBUSbpeNT9+HchMCAABHQB0KPXCj1wpHwBguFHrhR65HwBKp++dsi0SHchQCAABHQByuFHrhR65HwBd987ZFoctHwAkm6XjU/fSHchUCAABHQCBVgQYk3S9HwBzZFocrAgxHwBRS8an7522HchYCAABHQBYAAAAAAABHwBBul41P3ztHwBnJul41P32HchcCAABHQBhAgxJul41HwBKLQ5WBBiVHwB2crAgxJumHchgCAABHQBVGp++dsi1HwAY5WBBiTdNHwBl64UeuFHuHchkCAABHQBcVgQYk3S9Hv/+l41P3ztlHwB3eNT987ZGHchoCAABHQBNaHKwIMSdHv+m6XjU/fO5HwB9Jul41P32HchsCAABHQBKwIMSbpeNHP82yLQ5WBBlHwBrU/fO2RaKHchwCAABHQA3dLxqfvndHP/Uan752yLRHwBzXCj1wo9eHch0CAABHQBAWhysCDEpHP/6DEm6XjVBHwCCSbpeNT9+Hch4CAABHQAWl41P3ztlHP/km6XjU/fRHwBoan752yLSHch8CAABHQBxZFocrAgxHv/a8an752yNHwBxHrhR64UiHciACAABHQBz52yLQ5WBHv+uFHrhR64VHwBfysCDEm6aHciECAABHQCAxqfvnbItHv/lHrhR64UhHwB/BiTdLxqiHciICAABHQCK3S8an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AgxJxHwCfwo9cKPXGHcjwCAABHQChP3ztkWh1HwA9FocrAgxJHwChvnbItDlaHcj0CAABHQCgS8an7521HwBOZmZmZmZpHwCYfO2RaHKyHcj4CAABHQCjJul41P31HwBlQ5WBBiTdHwCbzMzMzMzOHcj8CAABHQCtn752yLQ5HwBkan752yLRHwChfO2RaHKyHckACAABHQC264UeuFHtHwBmTdLxqfvpHwCb3S8an756HckECAABHQC2nbItDlYFHwBpwo9cKPXFHwCRFHrhR64WHckICAABHQDAQYk3S8apHwBk4UeuFHrhHwChCDEm6XjWHckMCAABHQCQCj1wo9cNHwAaTdLxqfvpHwCeaHKwIMSeHckQCAABHQCKnbItDlYFHwAGwIMSbpeNHwCX2yLQ5WBCHckUCAABHQCL41P3ztkZHwA5DlYEGJN1HwCkxJul41P6HckYCAABHQCAxJul41P5HwBCfvnbItDlHwClj1wo9cKSHckcCAABHQB+NT987ZFpHwBXR64UeuFJHwCr52yLQ5WCHckgCAABHQCDcrAgxJulHwBWi0OVgQYlHwC3U/fO2RaKHckkCAABHQCEeuFHrhR9HwBsxJul41P5HwC8WhysCDEqHckoCAABHQCI4UeuFHrhHwBsj1wo9cKRHwDD4k3S8an+HcksCAABHQCA3S8an755HwBjWBBiTdLxHwDHkm6XjU/iHckwCAABHQB4IMSbpeNVHwBGVgQYk3S9HwCasCDEm6XmHck0CAABHQCBwIMSbpeNHwBH3ztkWhytHwCSsi0OVgQaHck4CAABHQBifvnbItDlHwBHgQYk3S8dHwCaTdLxqfvqHck8CAABHQBWuFHrhR65HwBKl41P3ztlHwCQiTdLxqfyHclACAABHQBCbpeNT989HwA5gQYk3S8dHwCPztkWhysGHclECAABHQAip++dsi0RHwBDqfvnbItFHwCX2RaHKwIOHclICAABHP/dgQYk3S8dHwAuFHrhR64VHwCWItDlYEGKHclMCAABHP+VYEGJN0vJHwBFrhR64UexHwCg9cKPXCj2HclQCAABHQBPLxqfvnbJHwBhXCj1wo9dHwCQEm6XjU/iHclUCAABHQBHpeNT987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jU/fO2RHv9t0vGp++duHctQCAABHQCdxqfvnbItHwCkp++dsi0RHv/hysCDEm6aHctUCAABHQCavnbItDlZHwCsLQ5WBBiVHP98an752yLSHctYCAABHQChcrAgxJulHwC1LQ5WBBiVHP8an752yLQ6HctcCAABHQCjMSbpeNT9HwC8si0OVgQZHP/VHrhR64UiHctgCAABHQCZiTdLxqfxHwDA9LxqfvndHP/sCDEm6XjWHctkCAABHQCnhR64UeuFHwC2PXCj1wo9HQAQtDlYEGJOHctoCAABHQCci0OVgQYlHwC7eNT987ZFHv+4UeuFHrhSHctsCAABHQCiKwIMSbphHwC+987ZFoctHv/2ZmZmZmZqHctwCAABHQCR3S8an755HwC9EGJN0vGpHv+0/fO2RaHOHct0CAABHQCM752yLQ5ZHwDBn752yLQ5Hv/9LxqfvnbKHct4CAABHQCBJul41P31HwDCuVgQYk3VHv/yPXCj1wo+Hct8CAABHQB0sCDEm6XlHwC7SbpeNT99Hv/5N0vGp++eHcuACAABHQB/fO2RaHKxHwDFtT987ZFpHv9ztkWhysCGHcuECAABHQBcvGp++dslHwC9kWhysCDFHwAAKPXCj1wqHcuICAABHQCOm6XjU/fRHwC9SbpeNT99HwAnbItDlYEKHcuMCAABHQCQS8an7521HwDBBiTdLxqhHwBEl41P3ztmHcuQCAABHQCOT987ZFodHwCyjU/fO2RdHwAk5WBBiTdOHcuUCAABHQCPvnbItDlZHwCr8an752yNHwBE8an752yOHcuYCAABHQCQeNT987ZFHwCgAgxJul41HwA+ZmZmZmZqHcucCAABHQCGKPXCj1wpHwCbHrhR64UhHwAszMzMzMzOHcugCAABHQB4QYk3S8apHwCYKwIMSbphHwBKi0OVgQYmHcukCAABHQBman752yLRHwCRJN0vGp/BHwAw3S8an756HcuoCAABHQCaXjU/fO2RHwCuztkWhysFHwBOgxJul41SHcusCAABHQCbXjU/fO2RHwCvysCDEm6ZHwBh++dsi0OWHcuwCAABHQCin752yLQ5HwCwKwIMSbphHwBA9cKPXCj2Hcu0CAABHQCtLxqfv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wBR752yLQ5ZHwByOVgQYk3WHcjoDAABHQDAS8an7521HwBy1P3ztkWhHv/vS8an7522HcjsDAABHQC5P3ztkWh1HwBnEm6XjU/hHv/YtDlYEGJOHcjwDAABHQDBKfvnbItFHwCC7ZFocrAhHv/JWBBiTdLyHcj0DAABHQC687ZFocrBHwCHj1wo9cKRHv8m6XjU/fO6Hcj4DAABHQC/0OVgQYk5HwCRU/fO2RaJHP+BaHKwIMSeHcj8DAABHQC4XjU/fO2RHwCWrAgxJul5HP/hqfvnbItGHckADAABHQC+KPXCj1wpHwCeaHKwIMSdHQAO8an752yOHckEDAABHQDBotDlYEGJHwCm0vGp++dtHP/oMSbpeNT+HckIDAABHQDFysCDEm6ZHwCsrAgxJul5HQAEGJN0vGqCHckMDAABHQDHkWhysCDFHwCq3S8an755HQAsxJul41P6HckQDAABHQDILxqfvnbJHwC0T987ZFodHP/W2RaHKwIOHckUDAABHQC3ul41P3ztHwB/qfvnbItFHP+wQYk3S8aqHckYDAABHQCuMSbpeNT9HwB9Q5WBBiTdHP/JJul41P32HckcDAABHQC/XCj1wo9dHwB0p++dsi0RHP/h2yLQ5WBCHckgDAABHQC8UeuFHrhRHwBmUeuFHrhRHQASwIMSbpeOHckkDAABHQDC7peNT989HwBb987ZFoctHQAp87ZFocrCHckoDAABHQDGFocrAgxJHwBrbItDlYEJHQBDJul41P32HcksDAABHQDKXjU/fO2RHwBej1wo9cKRHQBOvGp++dsmHckwDAABHQDJLQ5WBBiVHwBMDEm6XjVBHQBVItDlYEGKHck0DAABHQDO5FocrAgxHwBnEm6XjU/hHQBRS8an7522Hck4DAABHQC1ul41P3ztHwBUfvnbItDlHQAAxJul41P6Hck8DAABHQCt1P3ztkWhHwBNztkWhysFHQAUGJN0vGqCHclADAABHQC4ysCDEm6ZHwBMfvnbItDlHP+rItDlYEGKHclEDAABHQCzdLxqfvndHwA1WBBiTdLxHP841P3ztkWiHclIDAABHQC4ZmZmZmZpHwApgQYk3S8dHv/HrhR64UeyHclMD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2RaHKwKHcrgDAABHwAYGJN0vGqBHv/wIMSbpeNVHQBlU/fO2RaKHcrkDAABHwA5ul41P3ztHP90vGp++dslHQBqo9cKPXCmHcroDAABHwBO2RaHKwINHP85WBBiTdLxHQBiSbpeNT9+HcrsDAABHwAz52yLQ5WBHP/ORaHKwIMVHQB6XjU/fO2SHcrwDAABlamcBAABLAHV1Lg==')) surfInfo = {'category': (0, None, {}), 'probeRadius': (0, None, {}), 'pointSize': (0, None, {}), 'name': [], 'density': (0, None, {}), 'colorMode': (0, None, {}), 'useLighting': (0, None, {}), 'transparencyBlendMode': (0, None, {}), 'molecule': [], 'smoothLines': (0, None, {}), 'lineWidth': (0, None, {}), 'allComponents': (0, None, {}), 'twoSidedLighting': (0, None, {}), 'customVisibility': [], 'drawMode': (0, None, {}), 'display': (0, None, {}), 'customColors': []} vrmlInfo = {'subid': (0, None, {}), 'display': (0, None, {}), 'id': (0, None, {}), 'vrmlString': [], 'name': (0, None, {})} colors = {u'Ru': ((0.141176, 0.560784, 0.560784), 1, u'default'), u'gold': ((1, 0.843137, 0), 1, u'default'), u'firebrick': ((0.698039, 0.133333, 0.133333), 1, u'default'), u'Re': ((0.14902, 0.490196, 0.670588), 1, u'default'), u'Rf': ((0.8, 0, 0.34902), 1, u'default'), u'Ra': ((0, 0.490196, 0), 1, u'default'), u'Rb': ((0.439216, 0.180392, 0.690196), 1, u'default'), u'Rn': ((0.258824, 0.509804, 0.588235), 1, u'default'), u'Rh': ((0.0392157, 0.490196, 0.54902), 1, u'default'), u'Sr': ((0, 1, 0), 1, u'default'), u'Be': ((0.760784, 1, 0), 1, u'default'), u'Ba': ((0, 0.788235, 0), 1, u'default'), u'Bh': ((0.878431, 0, 0.219608), 1, u'default'), u'Bi': ((0.619608, 0.309804, 0.709804), 1, u'default'), u'Bk': ((0.541176, 0.309804, 0.890196), 1, u'default'), u'Br': ((0.65098, 0.160784, 0.160784), 1, u'default'), u'H': ((1, 1, 1), 1, u'default'), u'P': ((1, 0.501961, 0), 1, u'default'), u'Os': ((0.14902, 0.4, 0.588235), 1, u'default'), u'orange red': ((1, 0.270588, 0), 1, u'default'), u'Ge': ((0.4, 0.560784, 0.560784), 1, u'default'), u'Gd': ((0.270588, 1, 0.780392), 1, u'default'), u'Ga': ((0.760784, 0.560784, 0.560784), 1, u'default'), u'Pr': ((0.85098, 1, 0.780392), 1, u'default'), u'deep pink': ((1, 0.0784314, 0.576471), 1, u'default'), u'Pt': ((0.815686, 0.815686, 0.878431), 1, u'default'), u'Pu': ((0, 0.419608, 1), 1, u'default'), u'C': ((0.564706, 0.564706, 0.564706), 1, u'default'), u'Pb': ((0.341176, 0.34902, 0.380392), 1, u'default'), u'Pa': ((0, 0.631373, 1), 1, u'default'), u'Pd': ((0, 0.411765, 0.521569), 1, u'default'), u'Xe': ((0.258824, 0.619608, 0.690196), 1, u'default'), u'Po': ((0.670588, 0.360784, 0), 1, u'default'), u'Pm': ((0.639216, 1, 0.780392), 1, u'default'), u'Hs': ((0.901961, 0, 0.180392), 1, u'default'), u'Ho': ((0, 1, 0.611765), 1, u'default'), u'Hf': ((0.301961, 0.760784, 1), 1, u'default'), u'Hg': ((0.721569, 0.721569, 0.815686), 1, u'default'), u'He': ((0.85098, 1, 1), 1, u'default'), u'Md': ((0.701961, 0.0509804, 0.65098), 1, u'default'), u'Mg': ((0.541176, 1, 0), 1, u'default'), u'K': ((0.560784, 0.25098, 0.831373), 1, u'default'), u'Mn': ((0.611765, 0.478431, 0.780392), 1, u'default'), u'O': ((1, 0.0509804, 0.0509804), 1, u'default'), u'Mt': ((0.921569, 0, 0.14902), 1, u'default'), u'S': ((1, 1, 0.188235), 1, u'default'), u'W': ((0.129412, 0.580392, 0.839216), 1, u'default'), u'sky blue': ((0.529412, 0.807843, 0.921569), 1, u'default'), u'Zn': ((0.490196, 0.501961, 0.690196), 1, u'default'), u'plum': ((0.866667, 0.627451, 0.866667), 1, u'default'), u'Eu': ((0.380392, 1, 0.780392), 1, u'default'), u'Es': ((0.701961, 0.121569, 0.831373), 1, u'default'), u'Er': ((0, 0.901961, 0.458824), 1, u'default'), u'Ni': ((0.313725, 0.815686, 0.313725), 1, u'default'), u'No': ((0.741176, 0.0509804, 0.529412), 1, u'default'), u'Na': ((0.670588, 0.360784, 0.94902), 1, u'default'), u'Nb': ((0.45098, 0.760784, 0.788235), 1, u'default'), u'Nd': ((0.780392, 1, 0.780392), 1, u'default'), u'Ne': ((0.701961, 0.890196, 0.960784), 1, u'default'), u'dodger blue': ((0.117647, 0.564706, 1), 1, u'default'), u'Np': ((0, 0.501961, 1), 1, u'default'), u'Fr': ((0.258824, 0, 0.4), 1, u'default'), u'Fe': ((0.878431, 0.4, 0.2), 1, u'default'), u'Fm': ((0.701961, 0.121569, 0.729412), 1, u'default'), u'B': ((1, 0.709804, 0.709804), 1, u'default'), u'F': ((0.564706, 0.878431, 0.313725), 1, u'default'), u'navy blue': ((0, 0, 0.501961), 1, u'default'), u'N': ((0.188235, 0.313725, 0.972549), 1, u'default'), u'Kr': ((0.360784, 0.721569, 0.819608), 1, u'default'), u'Si': ((0.941176, 0.784314, 0.627451), 1, u'default'), u'Sn': ((0.4, 0.501961, 0.501961), 1, u'default'), u'Sm': ((0.560784, 1, 0.780392), 1, u'default'), u'V': ((0.65098, 0.65098, 0.670588), 1, u'default'), u'Sc': ((0.901961, 0.901961, 0.901961), 1, u'default'), u'Sb': ((0.619608, 0.388235, 0.709804), 1, u'default'), u'Sg': ((0.85098, 0, 0.270588), 1, u'default'), u'Se': ((1, 0.631373, 0), 1, u'default'), u'Co': ((0.941176, 0.564706, 0.627451), 1, u'default'), u'Cm': ((0.470588, 0.360784, 0.890196), 1, u'default'), u'Cl': ((0.121569, 0.941176, 0.121569), 1, u'default'), u'Ca': ((0.239216, 1, 0), 1, u'default'), u'Cf': ((0.631373, 0.211765, 0.831373), 1, u'default'), u'Ce': ((1, 1, 0.780392), 1, u'default'), u'Cd': ((1, 0.85098, 0.560784), 1, u'default'), u'Lu': ((0, 0.670588, 0.141176), 1, u'default'), u'light green': ((0.564706, 0.933333, 0.564706), 1, u'default'), u'Cs': ((0.341176, 0.0901961, 0.560784), 1, u'default'), u'Cr': ((0.541176, 0.6, 0.780392), 1, u'default'), u'Cu': ((0.784314, 0.501961, 0.2), 1, u'default'), u'La': ((0.439216, 0.831373, 1), 1, u'default'), u'Li': ((0.8, 0.501961, 1), 1, u'default'), u'Tl': ((0.65098, 0.329412, 0.301961), 1, u'default'), u'Tm': ((0, 0.831373, 0.321569), 1, u'default'), u'Lr': ((0.780392, 0, 0.4), 1, u'default'), u'Th': ((0, 0.729412, 1), 1, u'default'), u'Ti': ((0.74902, 0.760784, 0.780392), 1, u'default'), u'tan': ((0.823529, 0.705882, 0.54902), 1, u'default'), u'Te': ((0.831373, 0.478431, 0), 1, u'default'), u'Tb': ((0.188235, 1, 0.780392), 1, u'default'), u'Tc': ((0.231373, 0.619608, 0.619608), 1, u'default'), u'Ta': ((0.301961, 0.65098, 1), 1, u'default'), u'Yb': ((0, 0.74902, 0.219608), 1, u'default'), u'Db': ((0.819608, 0, 0.309804), 1, u'default'), u'Zr': ((0.580392, 0.878431, 0.878431), 1, u'default'), u'Dy': ((0.121569, 1, 0.780392), 1, u'default'), u'I': ((0.580392, 0, 0.580392), 1, u'default'), u'salmon': ((0.980392, 0.501961, 0.447059), 1, u'default'), u'U': ((0, 0.560784, 1), 1, u'default'), u'Y': ((0.580392, 1, 1), 1, u'default'), u'Ac': ((0.439216, 0.670588, 0.980392), 1, u'default'), u'Ag': ((0.752941, 0.752941, 0.752941), 1, u'default'), u'Ir': ((0.0901961, 0.329412, 0.529412), 1, u'default'), u'Am': ((0.329412, 0.360784, 0.94902), 1, u'default'), u'Al': ((0.74902, 0.65098, 0.65098), 1, u'default'), u'As': ((0.741176, 0.501961, 0.890196), 1, u'default'), u'Ar': ((0.501961, 0.819608, 0.890196), 1, u'default'), u'Au': ((1, 0.819608, 0.137255), 1, u'default'), u'At': ((0.458824, 0.309804, 0.270588), 1, u'default'), u'In': ((0.65098, 0.458824, 0.45098), 1, u'default'), u'Mo': ((0.329412, 0.709804, 0.709804), 1, u'default'), u'light gray': ((0.827451, 0.827451, 0.827451), 1, u'default')} materials = {u'default': ((1, 1, 1), 30)} pbInfo = {'category': [u'distance monitor'], 'bondInfo': [{'color': (0, None, {}), 'atoms': [], 'label': (0, None, {}), 'halfbond': (0, None, {}), 'labelColor': (0, None, {}), 'labelOffset': (0, None, {}), 'drawMode': (0, None, {}), 'display': (0, None, {})}], 'lineType': (1, 2, {}), 'color': (1, 4, {}), 'optional': {'fixedLabels': (True, False, (1, False, {}))}, 'display': (1, True, {}), 'showStubBonds': (1, False, {}), 'lineWidth': (1, 1, {}), 'stickScale': (1, 1, {}), 'id': [-2]} modelAssociations = {} colorInfo = (6, (u'green', (0, 1, 0, 1)), {(u'sky blue', (0.529412, 0.807843, 0.921569, 1)): [1], (u'tan', (0.823529, 0.705882, 0.54902, 1)): [0], (u'yellow', (1, 1, 0, 1)): [4], (u'red', (1, 0, 0, 1)): [2], (u'blue', (0, 0, 1, 1)): [3]}) viewerInfo = {'cameraAttrs': {'center': (2.741, -3.4240000047684, -3.8309999952316), 'fieldOfView': 2.5817517567938, 'nearFar': (22.759320062969, -27.660589623506), 'ortho': False, 'eyeSeparation': 50.8, 'focal': -3.8309999952316}, 'viewerAttrs': {'silhouetteColor': None, 'clipping': False, 'showSilhouette': False, 'showShadows': False, 'viewSize': 28.261294478629, 'labelsOnTop': True, 'depthCueRange': (0.5, 1), 'silhouetteWidth': 2, 'singleLayerTransparency': True, 'shadowTextureSize': 2048, 'backgroundImage': [None, 1, 2, 1, 0, 0], 'backgroundGradient': [('Chimera default', [(1, 1, 1, 1), (0, 0, 1, 1)], 1), 1, 0, 0], 'depthCue': True, 'highlight': 0, 'scaleFactor': 0.77190045901119, 'angleDependentTransparency': True, 'backgroundMethod': 0}, 'viewerHL': 5, 'cameraMode': 'mono', 'detail': 1.5, 'viewerFog': None, 'viewerBG': None} replyobj.status("Initializing session restore...", blankAfter=0, secondary=True) from SimpleSession.versions.v65 import expandSummary init(dict(enumerate(expandSummary(colorInfo)))) replyobj.status("Restoring colors...", blankAfter=0, secondary=True) restoreColors(colors, materials) replyobj.status("Restoring molecules...", blankAfter=0, secondary=True) restoreMolecules(molInfo, resInfo, atomInfo, bondInfo, crdInfo) replyobj.status("Restoring surfaces...", blankAfter=0, secondary=True) restoreSurfaces(surfInfo) replyobj.status("Restoring VRML models...", blankAfter=0, secondary=True) restoreVRML(vrmlInfo) replyobj.status("Restoring pseudobond groups...", blankAfter=0, secondary=True) restorePseudoBondGroups(pbInfo) replyobj.status("Restoring model associations...", blankAfter=0, secondary=True) restoreModelAssociations(modelAssociations) replyobj.status("Restoring camera...", blankAfter=0, secondary=True) restoreViewer(viewerInfo) try: restoreCoreModels() except: reportRestoreError("Error restoring core models") replyobj.status("Restoring extension info...", blankAfter=0, secondary=True) try: import StructMeasure from StructMeasure.DistMonitor import restoreDistances registerAfterModelsCB(restoreDistances, 1) except: reportRestoreError("Error restoring distances in session") def restoreMidasBase(): formattedPositions = {} import Midas Midas.restoreMidasBase(formattedPositions) try: restoreMidasBase() except: reportRestoreError('Error restoring Midas base state') def restoreMidasText(): from Midas import midas_text midas_text.aliases = {} midas_text.userSurfCategories = {} try: restoreMidasText() except: reportRestoreError('Error restoring Midas text state') def restore_volume_data(): volume_data_state = \ { 'class': 'Volume_Manager_State', 'data_and_regions_state': [ ], 'version': 2, } from VolumeViewer import session session.restore_volume_data_state(volume_data_state) try: restore_volume_data() except: reportRestoreError('Error restoring volume data') def restore_surface_capping(): capper_dialog_state = \ { 'cap_offset': '0.01', 'cap_rgba': ( 1, 1, 1, 1, ), 'cap_style': 'solid', 'class': 'Capper_Dialog_State', 'color_caps': True, 'geometry': u'222x159+1694+374', 'is_visible': False, 'show_caps': True, 'subdivision_factor': '1', 'version': 1, } import SurfaceCap.session SurfaceCap.session.restore_capper_dialog_state(capper_dialog_state) try: restore_surface_capping() except: reportRestoreError('Error restoring surface capping') def restore_cap_attributes(): cap_attributes = \ { 'cap_attributes': [ ], 'cap_color': ( 1, 1, 1, 1, ), 'cap_offset': 0.01, 'class': 'Caps_State', 'default_cap_offset': 0.01, 'mesh_style': False, 'shown': True, 'subdivision_factor': 1.0, 'version': 1, } import SurfaceCap.session SurfaceCap.session.restore_cap_attributes(cap_attributes) registerAfterModelsCB(restore_cap_attributes) geomData = {'AxisManager': {}, 'CentroidManager': {}, 'PlaneManager': {}} try: from StructMeasure.Geometry import geomManager geomManager._restoreSession(geomData) except: reportRestoreError("Error restoring geometry objects in session") def restoreSession_RibbonStyleEditor(): import SimpleSession import RibbonStyleEditor userScalings = [] userXSections = [] userResidueClasses = [] residueData = [(2, 'Chimera default', 'rounded', u'amino acid'), (3, 'Chimera default', 'rounded', u'amino acid'), (4, 'Chimera default', 'rounded', u'amino acid'), (5, 'Chimera default', 'rounded', u'amino acid'), (6, 'Chimera default', 'rounded', u'amino acid'), (7, 'Chimera default', 'rounded', u'amino acid'), (8, 'Chimera default', 'rounded', u'amino acid'), (9, 'Chimera default', 'rounded', u'amino acid'), (10, 'Chimera default', 'rounded', u'amino acid'), (11, 'Chimera default', 'rounded', u'amino acid'), (12, 'Chimera default', 'rounded', u'amino acid'), (13, 'Chimera default', 'rounded', u'amino acid'), (14, 'Chimera default', 'rounded', u'amino acid'), (15, 'Chimera default', 'rounded', u'amino acid'), (16, 'Chimera default', 'rounded', u'amino acid'), (17, 'Chimera default', 'rounded', u'amino acid'), (18, 'Chimera default', 'rounded', u'amino acid'), (19, 'Chimera default', 'rounded', u'amino acid'), (20, 'Chimera default', 'rounded', u'amino acid'), (21, 'Chimera default', 'rounded', u'amino acid'), (22, 'Chimera default', 'rounded', u'amino acid'), (23, 'Chimera default', 'rounded', u'amino acid'), (24, 'Chimera default', 'rounded', u'amino acid'), (25, 'Chimera default', 'rounded', u'amino acid'), (26, 'Chimera default', 'rounded', u'amino acid'), (27, 'Chimera default', 'rounded', u'amino acid'), (28, 'Chimera default', 'rounded', u'amino acid'), (29, 'Chimera default', 'rounded', u'amino acid'), (30, 'Chimera default', 'rounded', u'amino acid'), (31, 'Chimera default', 'rounded', u'amino acid'), (32, 'Chimera default', 'rounded', u'amino acid'), (33, 'Chimera default', 'rounded', u'amino acid'), (34, 'Chimera default', 'rounded', u'amino acid'), (35, 'Chimera default', 'rounded', u'amino acid'), (36, 'Chimera default', 'rounded', u'amino acid'), (37, 'Chimera default', 'rounded', u'amino acid'), (38, 'Chimera default', 'rounded', u'amino acid'), (39, 'Chimera default', 'rounded', u'amino acid'), (40, 'Chimera default', 'rounded', u'amino acid'), (41, 'Chimera default', 'rounded', u'amino acid'), (42, 'Chimera default', 'rounded', u'amino acid'), (43, 'Chimera default', 'rounded', u'amino acid'), (44, 'Chimera default', 'rounded', u'amino acid'), (45, 'Chimera default', 'rounded', u'amino acid'), (46, 'Chimera default', 'rounded', u'amino acid'), (47, 'Chimera default', 'rounded', u'amino acid'), (48, 'Chimera default', 'rounded', u'amino acid'), (49, 'Chimera default', 'rounded', u'amino acid'), (50, 'Chimera default', 'rounded', u'amino acid'), (51, 'Chimera default', 'rounded', u'amino acid'), (52, 'Chimera default', 'rounded', u'amino acid'), (53, 'Chimera default', 'rounded', u'amino acid'), (54, 'Chimera default', 'rounded', u'amino acid'), (55, 'Chimera default', 'rounded', u'amino acid'), (56, 'Chimera default', 'rounded', u'amino acid'), (57, 'Chimera default', 'rounded', u'amino acid'), (58, 'Chimera default', 'rounded', u'amino acid'), (59, 'Chimera default', 'rounded', u'amino acid'), (60, 'Chimera default', 'rounded', u'amino acid'), (61, 'Chimera default', 'rounded', u'amino acid'), (62, 'Chimera default', 'rounded', u'amino acid'), (63, 'Chimera default', 'rounded', u'amino acid'), (64, 'Chimera default', 'rounded', u'amino acid'), (65, 'Chimera default', 'rounded', u'amino acid'), (66, 'Chimera default', 'rounded', u'amino acid'), (67, 'Chimera default', 'rounded', u'amino acid'), (68, 'Chimera default', 'rounded', u'amino acid'), (69, 'Chimera default', 'rounded', u'amino acid'), (70, 'Chimera default', 'rounded', u'amino acid'), (71, 'Chimera default', 'rounded', u'amino acid'), (72, 'Chimera default', 'rounded', u'amino acid'), (73, 'Chimera default', 'rounded', u'amino acid'), (74, 'Chimera default', 'rounded', u'amino acid'), (75, 'Chimera default', 'rounded', u'amino acid'), (76, 'Chimera default', 'rounded', u'amino acid'), (77, 'Chimera default', 'rounded', u'amino acid'), (78, 'Chimera default', 'rounded', u'amino acid'), (79, 'Chimera default', 'rounded', u'amino acid'), (80, 'Chimera default', 'rounded', u'amino acid'), (81, 'Chimera default', 'rounded', u'amino acid'), (82, 'Chimera default', 'rounded', u'amino acid'), (83, 'Chimera default', 'rounded', u'amino acid'), (84, 'Chimera default', 'rounded', u'amino acid'), (85, 'Chimera default', 'rounded', u'amino acid'), (86, 'Chimera default', 'rounded', u'amino acid'), (87, 'Chimera default', 'rounded', u'amino acid'), (88, 'Chimera default', 'rounded', u'amino acid'), (89, 'Chimera default', 'rounded', u'amino acid'), (90, 'Chimera default', 'rounded', u'amino acid'), (91, 'Chimera default', 'rounded', u'amino acid'), (92, 'Chimera default', 'rounded', u'amino acid'), (93, 'Chimera default', 'rounded', u'amino acid'), (94, 'Chimera default', 'rounded', u'amino acid'), (95, 'Chimera default', 'rounded', u'amino acid'), (96, 'Chimera default', 'rounded', u'amino acid'), (97, 'Chimera default', 'rounded', u'amino acid'), (98, 'Chimera default', 'rounded', u'amino acid'), (99, 'Chimera default', 'rounded', u'amino acid'), (100, 'Chimera default', 'rounded', u'amino acid'), (101, 'Chimera default', 'rounded', u'amino acid'), (102, 'Chimera default', 'rounded', u'amino acid'), (103, 'Chimera default', 'rounded', u'amino acid'), (104, 'Chimera default', 'rounded', u'amino acid'), (105, 'Chimera default', 'rounded', u'amino acid'), (106, 'Chimera default', 'rounded', u'amino acid'), (107, 'Chimera default', 'rounded', u'amino acid'), (108, 'Chimera default', 'rounded', u'amino acid'), (109, 'Chimera default', 'rounded', u'amino acid'), (110, 'Chimera default', 'rounded', u'amino acid'), (111, 'Chimera default', 'rounded', u'amino acid'), (112, 'Chimera default', 'rounded', u'amino acid'), (113, 'Chimera default', 'rounded', u'amino acid'), (114, 'Chimera default', 'rounded', u'amino acid'), (115, 'Chimera default', 'rounded', u'amino acid'), (116, 'Chimera default', 'rounded', u'amino acid'), (117, 'Chimera default', 'rounded', u'amino acid')] flags = RibbonStyleEditor.NucleicDefault1 SimpleSession.registerAfterModelsCB(RibbonStyleEditor.restoreState, (userScalings, userXSections, userResidueClasses, residueData, flags)) try: restoreSession_RibbonStyleEditor() except: reportRestoreError("Error restoring RibbonStyleEditor state") trPickle = 'gAJjQW5pbWF0ZS5UcmFuc2l0aW9ucwpUcmFuc2l0aW9ucwpxASmBcQJ9cQMoVQxjdXN0b21fc2NlbmVxBGNBbmltYXRlLlRyYW5zaXRpb24KVHJhbnNpdGlvbgpxBSmBcQZ9cQcoVQZmcmFtZXNxCEsBVQ1kaXNjcmV0ZUZyYW1lcQlLAVUKcHJvcGVydGllc3EKXXELVQNhbGxxDGFVBG5hbWVxDWgEVQRtb2RlcQ5VBmxpbmVhcnEPdWJVCGtleWZyYW1lcRBoBSmBcRF9cRIoaAhLFGgJSwFoCl1xE2gMYWgNaBBoDmgPdWJVBXNjZW5lcRRoBSmBcRV9cRYoaAhLAWgJSwFoCl1xF2gMYWgNaBRoDmgPdWJ1Yi4=' scPickle = 'gAJjQW5pbWF0ZS5TY2VuZXMKU2NlbmVzCnEBKYFxAn1xA1UHbWFwX2lkc3EEfXNiLg==' kfPickle = 'gAJjQW5pbWF0ZS5LZXlmcmFtZXMKS2V5ZnJhbWVzCnEBKYFxAn1xA1UHZW50cmllc3EEXXEFc2Iu' def restoreAnimation(): 'A method to unpickle and restore animation objects' # Scenes must be unpickled after restoring transitions, because each # scene links to a 'scene' transition. Likewise, keyframes must be # unpickled after restoring scenes, because each keyframe links to a scene. # The unpickle process is left to the restore* functions, it's # important that it doesn't happen prior to calling those functions. import SimpleSession from Animate.Session import restoreTransitions from Animate.Session import restoreScenes from Animate.Session import restoreKeyframes SimpleSession.registerAfterModelsCB(restoreTransitions, trPickle) SimpleSession.registerAfterModelsCB(restoreScenes, scPickle) SimpleSession.registerAfterModelsCB(restoreKeyframes, kfPickle) try: restoreAnimation() except: reportRestoreError('Error in Animate.Session') def restoreLightController(): import Lighting Lighting._setFromParams({'ratio': 1.25, 'brightness': 1.16, 'material': [30.0, (1.0, 1.0, 1.0), 1], 'back': [(0.35740674433659325, 0.6604015517481454, -0.6604015517481455), (1.0, 1.0, 1.0), 0.0], 'mode': 'two-point', 'key': [(-0.35740674433659325, 0.6604015517481454, 0.6604015517481455), (1.0, 1.0, 1.0), 1.0], 'contrast': 0.83, 'fill': [(0.25056280708573153, 0.25056280708573153, 0.9351131265310293), (1.0, 1.0, 1.0), 0.0]}) try: restoreLightController() except: reportRestoreError("Error restoring lighting parameters") def restoreRemainder(): from SimpleSession.versions.v65 import restoreWindowSize, \ restoreOpenStates, restoreSelections, restoreFontInfo, \ restoreOpenModelsAttrs, restoreModelClip, restoreSilhouettes curSelIds = [] savedSels = [] openModelsAttrs = { 'cofrMethod': 4 } windowSize = (1920, 927) xformMap = {0: (((-0.32711035073322, 0.42036342413833, 0.84634119011773), 105.79026514322), (2.7671566773956, -1.0760675962465, 0.46214516569061), True), 1: (((0.69846627798656, -0.21410583559566, 0.68286422492285), 64.485351766647), (-5.7523166356309, -4.0911020398247, 0.4472842187989), True)} fontInfo = {'face': ('Sans Serif', 'Normal', 16)} clipPlaneInfo = {} silhouettes = {0: True, 1: True, 2028: True} replyobj.status("Restoring window...", blankAfter=0, secondary=True) restoreWindowSize(windowSize) replyobj.status("Restoring open states...", blankAfter=0, secondary=True) restoreOpenStates(xformMap) replyobj.status("Restoring font info...", blankAfter=0, secondary=True) restoreFontInfo(fontInfo) replyobj.status("Restoring selections...", blankAfter=0, secondary=True) restoreSelections(curSelIds, savedSels) replyobj.status("Restoring openModel attributes...", blankAfter=0, secondary=True) restoreOpenModelsAttrs(openModelsAttrs) replyobj.status("Restoring model clipping...", blankAfter=0, secondary=True) restoreModelClip(clipPlaneInfo) replyobj.status("Restoring per-model silhouettes...", blankAfter=0, secondary=True) restoreSilhouettes(silhouettes) replyobj.status("Restoring remaining extension info...", blankAfter=0, secondary=True) try: restoreRemainder() except: reportRestoreError("Error restoring post-model state") from SimpleSession.versions.v65 import makeAfterModelsCBs makeAfterModelsCBs() from SimpleSession.versions.v65 import endRestore replyobj.status('Finishing restore...', blankAfter=0, secondary=True) endRestore({'thumbnailSize': 128}) replyobj.status('', secondary=True) replyobj.status('Restore finished.')
407.552727
40,926
0.903129
5,931
112,077
17.053279
0.387119
0.002432
0.010767
0.011864
0.073282
0.065729
0.02097
0.017866
0.015038
0.014544
0
0.137368
0.024019
112,077
274
40,927
409.040146
0.787283
0.003453
0
0.194093
0
0.033755
0.823153
0.760487
0
1
0
0
0
1
0.042194
false
0
0.109705
0
0.151899
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
41469b96c86aa57c0f2627020d3a4d3bc341c3e1
108
py
Python
freeqdsk/__init__.py
ZedThree/FreeQDSK
25c9e61bb91ee5a51c545d82f3d9e0b4e67a3afe
[ "MIT" ]
null
null
null
freeqdsk/__init__.py
ZedThree/FreeQDSK
25c9e61bb91ee5a51c545d82f3d9e0b4e67a3afe
[ "MIT" ]
null
null
null
freeqdsk/__init__.py
ZedThree/FreeQDSK
25c9e61bb91ee5a51c545d82f3d9e0b4e67a3afe
[ "MIT" ]
1
2021-12-16T14:36:03.000Z
2021-12-16T14:36:03.000Z
__all__ = ["geqdsk", "aeqdsk"] from . import aeqdsk from . import geqdsk from ._version import __version__
18
33
0.740741
13
108
5.461538
0.461538
0.28169
0.450704
0
0
0
0
0
0
0
0
0
0.157407
108
5
34
21.6
0.78022
0
0
0
0
0
0.111111
0
0
0
0
0
0
1
0
false
0
0.75
0
0.75
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
6
418ff4313da07c567894e6138c95e8bb1fe0102d
27
py
Python
src/ep1/QR_method/__init__.py
VanderSant/MAP3121_Calculo_Numerico
ac663f277409eda41942ce8513c49c2591532148
[ "MIT" ]
1
2022-01-30T14:03:19.000Z
2022-01-30T14:03:19.000Z
src/ep2/QR_method/__init__.py
VanderSant/MAP3121_Calculo_Numerico
ac663f277409eda41942ce8513c49c2591532148
[ "MIT" ]
null
null
null
src/ep2/QR_method/__init__.py
VanderSant/MAP3121_Calculo_Numerico
ac663f277409eda41942ce8513c49c2591532148
[ "MIT" ]
null
null
null
from . import QR_algorithm
13.5
26
0.814815
4
27
5.25
1
0
0
0
0
0
0
0
0
0
0
0
0.148148
27
1
27
27
0.913043
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
419584a9e1c96f64bf0d57779a98271faf2e7be5
3,392
py
Python
examples/01_Example_Bus.py
davilamds/py_dss_interface
a447c97787aeac962381db88dd622ccb235eef4b
[ "MIT" ]
8
2020-08-15T12:56:03.000Z
2022-01-04T15:51:14.000Z
examples/01_Example_Bus.py
rodolfoplondero/py_dss_interface
cb6771b34ed322a5df7ef1cc194611e794f26441
[ "MIT" ]
24
2021-04-24T18:33:19.000Z
2021-11-13T14:59:54.000Z
examples/01_Example_Bus.py
rodolfoplondero/py_dss_interface
cb6771b34ed322a5df7ef1cc194611e794f26441
[ "MIT" ]
7
2020-08-15T12:56:04.000Z
2021-10-04T16:14:30.000Z
# -*- encoding: utf-8 -*- """ Created by Ênio Viana at 12/05/2021 """ from py_dss_interface.models.Example.ExampleBase import ExampleBase dss = ExampleBase("13").dss dss.circuit_set_active_bus('692') print(dss.bus_name()) # # Integer methods # print(45 * '=' + ' Integer Methods ' + 45 * '=') # print(f'dss.bus_num_nodes(): {dss.bus_num_nodes()}') # print(f'dss.bus_zsc_refresh(): {dss.bus_zsc_refresh()}') # print(f'dss.bus_coord_defined(): {dss.bus_coord_defined()}') # print(f'dss.bus_get_unique_node_number(): {dss.bus_get_unique_node_number()}') # print(f'dss.bus_total_customers(): {dss.bus_total_customers()}') # print(f'dss.bus_section_id(): {dss.bus_section_id()}') # print() # # # Float methods # print(45 * '=' + ' Float Methods ' + 45 * '=') # print(f'dss.bus_kv_base(): {dss.bus_kv_base()}') # # print(f'dss.bus_read_x(): {dss.bus_read_x()}') # print(f'dss.bus_write_x(): {dss.bus_write_x(35.921882)}') # print(f'dss.bus_read_x(): {dss.bus_read_x()}') # # print(f'dss.bus_read_y(): {dss.bus_read_y()}') # print(f'dss.bus_write_y(): {dss.bus_write_y(-84.141987)}') # print(f'dss.bus_read_y(): {dss.bus_read_y()}') # # print(f'dss.bus_distance(): {dss.bus_distance()}') # print(f'dss.bus_accumulated_failure_rate(): {dss.bus_accumulated_failure_rate()}') # print() # print(f'dss.bus_interruptions_num(): {dss.bus_interruptions_num()}') # print(f'dss.bus_interruptions_avg_duration(): {dss.bus_interruptions_avg_duration()}') # print(f'dss.bus_interruptions_total_customers_(): {dss.bus_interruptions_total_customers_()}') # print(f'dss.bus_outage_customer_accum_duration(): {dss.bus_outage_customer_accum_duration()}') # print(f'dss.bus_line_total_miles(): {dss.bus_line_total_miles()}') # print() # print(f'dss.bus_latitude_read(): {dss.bus_latitude_read()}') # print(f'dss.bus_latitude_write(): {dss.bus_latitude_write(35.921882)}') # print(f'dss.bus_latitude_read(): {dss.bus_latitude_read()}') # print() # print(f'dss.bus_longitude_read(): {dss.bus_longitude_read()}') # print(f'dss.bus_longitude_read(): {dss.bus_longitude_write(-84.141987)}') # print(f'dss.bus_longitude_read(): {dss.bus_longitude_read()}') # # # String methods # print(45 * '=' + ' String Methods ' + 45 * '=') # print(f'dss.bus_name(): {dss.bus_name()}') # Variant methods print(45 * '=' + ' Variant Methods ' + 45 * '=') print(f'dss.bus_voltages(): {dss.bus_voltages()}') print(f'dss.bus_seqvoltages(): {dss.bus_seq_voltages()}') print(f'dss.bus_nodes(): {dss.bus_nodes()}') print(f'dss.bus_voc(): {dss.bus_voc()}') print(f'dss.bus_isc(): {dss.bus_isc()}') print(f'dss.bus_pu_voltages(): {dss.bus_pu_voltages()}') print(f'dss.bus_zsc_matrix(): {dss.bus_zsc_matrix()}') print(f'dss.bus_zsc1(): {dss.bus_zsc1()}') print(f'dss.bus_zsc0(): {dss.bus_zsc0()}') print(f'dss.bus_ysc_matrix(): {dss.bus_ysc_matrix()}') print(f'dss.bus_sequence_voltages(): {dss.bus_sequence_voltages()}') print(f'dss.bus_vll(): {dss.bus_vll()}') print(f'dss.bus_pu_vll(): {dss.bus_pu_vll()}') print(f'dss.bus_vmag_angle(): {dss.bus_vmag_angle()}') print(f'dss.bus_pu_vmag_angle(): {dss.bus_pu_vmag_angle()}') print(f'dss.bus_line_list(): {dss.bus_line_list()}') print(f'dss.bus_load_list(): {dss.bus_load_list()}') print(f'dss.bus_axc_012_matrix(): {dss.bus_axc_012_matrix()}') print(f'dss.bus_all_pce_active_bus(): {dss.bus_all_pce_active_bus()}') print(f'dss.bus_all_pde_active_bus(): {dss.bus_all_pde_active_bus()}')
40.86747
96
0.706368
553
3,392
3.962025
0.168174
0.260155
0.193063
0.257417
0.620265
0.353263
0.168873
0.168873
0.168873
0.150616
0
0.022792
0.068691
3,392
82
97
41.365854
0.670782
0.591981
0
0
0
0
0.659895
0.404063
0
0
0
0
0
1
0
false
0
0.04
0
0.04
0.88
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
null
0
0
0
0
0
0
0
0
0
0
0
1
0
6
68c3629a655eb0ea0a963d2d7195a9d721c586a2
39
py
Python
launch.py
rgerum/saenopy
18197afac266ef9f35c1c9c89c195db96dc782ab
[ "MIT" ]
8
2019-08-21T15:08:37.000Z
2022-01-28T09:57:06.000Z
launch.py
rgerum/saenopy
18197afac266ef9f35c1c9c89c195db96dc782ab
[ "MIT" ]
1
2022-03-18T12:54:30.000Z
2022-03-18T13:51:15.000Z
launch.py
rgerum/saenopy
18197afac266ef9f35c1c9c89c195db96dc782ab
[ "MIT" ]
2
2020-04-27T13:43:12.000Z
2020-06-12T08:50:09.000Z
from saeno import main main.main()
9.75
23
0.692308
6
39
4.5
0.666667
0.592593
0
0
0
0
0
0
0
0
0
0
0.230769
39
3
24
13
0.9
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
ec3561a50386d4aea0d2702b77f4d2765424c4d6
1,858
py
Python
airdrop/alembic/versions/9c0ce1942023_alterrewardsonsnapshottable.py
anandrgitnirman/airdrop-services
041118e986d595b2764a838af834bd08c283d374
[ "MIT" ]
null
null
null
airdrop/alembic/versions/9c0ce1942023_alterrewardsonsnapshottable.py
anandrgitnirman/airdrop-services
041118e986d595b2764a838af834bd08c283d374
[ "MIT" ]
5
2021-09-27T05:08:41.000Z
2022-03-02T03:58:04.000Z
airdrop/alembic/versions/9c0ce1942023_alterrewardsonsnapshottable.py
anandrgitnirman/airdrop-services
041118e986d595b2764a838af834bd08c283d374
[ "MIT" ]
8
2021-09-24T10:52:50.000Z
2022-01-14T12:07:41.000Z
"""AlterRewardsOnSnapShotTable Revision ID: 9c0ce1942023 Revises: 2abbd40b9025 Create Date: 2022-03-03 17:04:56.088786 """ from alembic import op import sqlalchemy as sa from sqlalchemy.dialects import mysql # revision identifiers, used by Alembic. revision = '9c0ce1942023' down_revision = '2abbd40b9025' branch_labels = None depends_on = None def upgrade(): # ### commands auto generated by Alembic - please adjust! ### op.alter_column('user_balance_snapshot', 'balance', existing_type=mysql.BIGINT(display_width=20), type_=sa.DECIMAL(precision=64, scale=0), existing_nullable=False) op.alter_column('user_balance_snapshot', 'staked', existing_type=mysql.BIGINT(display_width=20), type_=sa.DECIMAL(precision=64, scale=0), existing_nullable=False) op.alter_column('user_balance_snapshot', 'total', existing_type=mysql.BIGINT(display_width=20), type_=sa.DECIMAL(precision=64, scale=0), existing_nullable=False) # ### end Alembic commands ### def downgrade(): # ### commands auto generated by Alembic - please adjust! ### op.alter_column('user_balance_snapshot', 'total', existing_type=sa.DECIMAL(precision=64, scale=0), type_=mysql.BIGINT(display_width=20), existing_nullable=False) op.alter_column('user_balance_snapshot', 'staked', existing_type=sa.DECIMAL(precision=64, scale=0), type_=mysql.BIGINT(display_width=20), existing_nullable=False) op.alter_column('user_balance_snapshot', 'balance', existing_type=sa.DECIMAL(precision=64, scale=0), type_=mysql.BIGINT(display_width=20), existing_nullable=False) # ### end Alembic commands ###
36.431373
65
0.655544
212
1,858
5.533019
0.287736
0.035806
0.066496
0.086957
0.746803
0.746803
0.716113
0.716113
0.716113
0.695652
0
0.057504
0.232508
1,858
50
66
37.16
0.765077
0.166308
0
0.727273
0
0
0.123016
0.083333
0
0
0
0
0
1
0.060606
false
0
0.090909
0
0.151515
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
6b9bdbcfc499aff42451afc4fbc31311b2670da4
25
py
Python
change_detection_pytorch/stanet/__init__.py
yjt2018/change_detection.pytorch
cbd6150708eeddbd66e30e311f2482d43334b738
[ "MIT" ]
99
2021-07-08T01:01:58.000Z
2022-03-31T14:20:52.000Z
change_detection_pytorch/stanet/__init__.py
yjt2018/change_detection.pytorch
cbd6150708eeddbd66e30e311f2482d43334b738
[ "MIT" ]
11
2021-08-18T07:14:57.000Z
2022-03-16T05:23:52.000Z
change_detection_pytorch/stanet/__init__.py
yjt2018/change_detection.pytorch
cbd6150708eeddbd66e30e311f2482d43334b738
[ "MIT" ]
32
2021-08-03T07:00:28.000Z
2022-03-19T11:15:59.000Z
from .model import STANet
25
25
0.84
4
25
5.25
1
0
0
0
0
0
0
0
0
0
0
0
0.12
25
1
25
25
0.954545
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
6ba94c84ba6429b17c88ed4f8ba0ee7c4ee9846e
25
py
Python
basic/__init__.py
sljoai/test_py
1b93aaba7c362188c1c4dfc8127ffb5400a1fa79
[ "Apache-2.0" ]
1
2020-05-16T23:40:54.000Z
2020-05-16T23:40:54.000Z
basic/__init__.py
sljoai/test_py
1b93aaba7c362188c1c4dfc8127ffb5400a1fa79
[ "Apache-2.0" ]
null
null
null
basic/__init__.py
sljoai/test_py
1b93aaba7c362188c1c4dfc8127ffb5400a1fa79
[ "Apache-2.0" ]
null
null
null
from basic import matrix
12.5
24
0.84
4
25
5.25
1
0
0
0
0
0
0
0
0
0
0
0
0.16
25
1
25
25
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
6bb7394550523b3874ea2fdabcbeeabecb8b636d
262
py
Python
src/test/python/mysql/test_mysql.py
photowey/pytest-dynamic-framework
4e7b6d74594191006b50831d42e7aae21e154d56
[ "Apache-2.0" ]
null
null
null
src/test/python/mysql/test_mysql.py
photowey/pytest-dynamic-framework
4e7b6d74594191006b50831d42e7aae21e154d56
[ "Apache-2.0" ]
null
null
null
src/test/python/mysql/test_mysql.py
photowey/pytest-dynamic-framework
4e7b6d74594191006b50831d42e7aae21e154d56
[ "Apache-2.0" ]
null
null
null
# -*- coding:utf-8 -*- # --------------------------------------------- # @file test_mysql.py # @description test_mysql # @author WcJun # @date 2021/07/31 # --------------------------------------------- class TestMysql: def test_mysql(self): pass
17.466667
47
0.400763
23
262
4.434783
0.826087
0.264706
0
0
0
0
0
0
0
0
0
0.040724
0.156489
262
14
48
18.714286
0.420814
0.71374
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0.333333
0
0
0.666667
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
1
0
0
6
d419aa55856de3f4db6e8fb4cf378f9d4b3c5c70
191
py
Python
pymel/util/namedtuple.py
JFlynnXYZ/pymel
2aa254c7982c78aac3e30e8d1b6a85f2465f898e
[ "BSD-3-Clause" ]
287
2015-01-03T21:18:59.000Z
2022-03-16T07:55:33.000Z
pymel/util/namedtuple.py
JFlynnXYZ/pymel
2aa254c7982c78aac3e30e8d1b6a85f2465f898e
[ "BSD-3-Clause" ]
412
2015-06-19T15:13:33.000Z
2022-02-25T08:12:25.000Z
pymel/util/namedtuple.py
JFlynnXYZ/pymel
2aa254c7982c78aac3e30e8d1b6a85f2465f898e
[ "BSD-3-Clause" ]
106
2015-01-03T06:46:44.000Z
2022-03-30T15:43:01.000Z
from __future__ import print_function from __future__ import division from __future__ import absolute_import # module just here for backward compatibility from collections import namedtuple
27.285714
45
0.86911
24
191
6.333333
0.625
0.197368
0.315789
0
0
0
0
0
0
0
0
0
0.125654
191
6
46
31.833333
0.91018
0.225131
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0.25
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
6
00f91cb249f0795d02e641e6349d2e057c7eaa81
29
py
Python
memebot/__init__.py
Phanabani/discord-screenshot-memebot
44cd7af28f2860de58328a37ca272b74adc45cba
[ "MIT" ]
1
2021-09-18T15:15:05.000Z
2021-09-18T15:15:05.000Z
memebot/__init__.py
Phanabani/discord-screenshot-memebot
44cd7af28f2860de58328a37ca272b74adc45cba
[ "MIT" ]
null
null
null
memebot/__init__.py
Phanabani/discord-screenshot-memebot
44cd7af28f2860de58328a37ca272b74adc45cba
[ "MIT" ]
null
null
null
from .memebot import Memebot
14.5
28
0.827586
4
29
6
0.75
0
0
0
0
0
0
0
0
0
0
0
0.137931
29
1
29
29
0.96
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
2e153afb8fb4b4a43e21ca7d992a60e82eb8e77a
29
py
Python
wooey/conf/project_template/settings/__init__.py
fridmundklaus/wooey
4a2e31c282bfe86edf77b0ff8f58f4177eeab9dd
[ "BSD-3-Clause" ]
1,572
2015-06-19T21:31:41.000Z
2022-03-30T23:37:13.000Z
wooey/conf/project_template/settings/__init__.py
fridmundklaus/wooey
4a2e31c282bfe86edf77b0ff8f58f4177eeab9dd
[ "BSD-3-Clause" ]
309
2015-07-08T02:33:08.000Z
2022-02-08T00:37:11.000Z
wooey/conf/project_template/settings/__init__.py
fridmundklaus/wooey
4a2e31c282bfe86edf77b0ff8f58f4177eeab9dd
[ "BSD-3-Clause" ]
220
2015-07-01T10:30:27.000Z
2022-02-05T04:10:54.000Z
from .user_settings import *
14.5
28
0.793103
4
29
5.5
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
2e44ffa3235697cca7d08ad3af15372f6beac57b
239
py
Python
counterfit-app/src/CounterFit/__init__.py
CallumTarttelin/CounterFit
0f8b2ad8a884339857979dce6aa6dccc9644756b
[ "MIT" ]
86
2021-03-25T22:01:37.000Z
2022-03-29T19:09:58.000Z
counterfit-app/src/CounterFit/__init__.py
CallumTarttelin/CounterFit
0f8b2ad8a884339857979dce6aa6dccc9644756b
[ "MIT" ]
13
2021-03-25T22:00:31.000Z
2022-03-30T17:59:06.000Z
counterfit-app/src/CounterFit/__init__.py
CallumTarttelin/CounterFit
0f8b2ad8a884339857979dce6aa6dccc9644756b
[ "MIT" ]
43
2021-07-11T04:12:15.000Z
2022-03-22T01:42:23.000Z
# pylint: disable=C0103 from CounterFit.sensors import * from CounterFit.serial_sensors import * from CounterFit.binary_sensors import * from CounterFit.i2c_sensors import * from CounterFit.actuators import * __version__ = "0.1.3.dev29"
23.9
39
0.803347
31
239
5.967742
0.516129
0.378378
0.367568
0.583784
0
0
0
0
0
0
0
0.047393
0.117155
239
9
40
26.555556
0.829384
0.087866
0
0
0
0
0.050926
0
0
0
0
0
0
1
0
false
0
0.833333
0
0.833333
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
6
2e756d99440004041157f0671e56d4f6629d3a3d
203
py
Python
src/multicast/__init__.py
faisyl/py-multicast
31aeef4b2e3667a6ca4f0df8189d429211751add
[ "BSD-3-Clause" ]
null
null
null
src/multicast/__init__.py
faisyl/py-multicast
31aeef4b2e3667a6ca4f0df8189d429211751add
[ "BSD-3-Clause" ]
null
null
null
src/multicast/__init__.py
faisyl/py-multicast
31aeef4b2e3667a6ca4f0df8189d429211751add
[ "BSD-3-Clause" ]
null
null
null
from .Receiver import Datagram as UDPReceiver from .Receiver import Multicast as MulticastUDPReceiver from .Receiver import DatagramReceiver from .Sender import Datagram as DatagramSender VERSION="1.4"
29
55
0.842365
25
203
6.84
0.56
0.210526
0.315789
0
0
0
0
0
0
0
0
0.011173
0.118227
203
6
56
33.833333
0.944134
0
0
0
0
0
0.014778
0
0
0
0
0
0
1
0
false
0
0.8
0
0.8
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
6
5ceb234ee4e586c23e4d3c81482f95a3ec0ef0dd
200
py
Python
cnab/util.py
xbcsmith/pycnab
9d8b707b8d7990214c3dcb2ccfe3f32af8c36d8d
[ "Apache-2.0" ]
16
2018-12-31T20:33:03.000Z
2020-07-15T12:24:49.000Z
cnab/util.py
xbcsmith/pycnab
9d8b707b8d7990214c3dcb2ccfe3f32af8c36d8d
[ "Apache-2.0" ]
2
2019-01-18T10:05:35.000Z
2021-03-25T02:58:25.000Z
cnab/util.py
xbcsmith/pycnab
9d8b707b8d7990214c3dcb2ccfe3f32af8c36d8d
[ "Apache-2.0" ]
2
2019-05-03T17:31:14.000Z
2020-05-28T11:05:57.000Z
from typing import List from cnab.types import InvocationImage def extract_docker_images(images: List[InvocationImage]) -> list: return list(filter(lambda x: x.image_type == "docker", images))
25
67
0.765
27
200
5.555556
0.62963
0.16
0
0
0
0
0
0
0
0
0
0
0.135
200
7
68
28.571429
0.867052
0
0
0
0
0
0.03
0
0
0
0
0
0
1
0.25
false
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
0
0
1
1
1
0
0
6
cf0e915b2a72e83e068e4b1cf3f9371d7b360359
602
py
Python
python/testData/inspections/PyUnresolvedReferencesInspection/DunderAll/a.py
tgodzik/intellij-community
f5ef4191fc30b69db945633951fb160c1cfb7b6f
[ "Apache-2.0" ]
2
2019-04-28T07:48:50.000Z
2020-12-11T14:18:08.000Z
python/testData/inspections/PyUnresolvedReferencesInspection/DunderAll/a.py
tgodzik/intellij-community
f5ef4191fc30b69db945633951fb160c1cfb7b6f
[ "Apache-2.0" ]
2
2022-02-19T09:45:05.000Z
2022-02-27T20:32:55.000Z
python/testData/inspections/PyUnresolvedReferencesInspection/DunderAll/a.py
tgodzik/intellij-community
f5ef4191fc30b69db945633951fb160c1cfb7b6f
[ "Apache-2.0" ]
2
2020-03-15T08:57:37.000Z
2020-04-07T04:48:14.000Z
<warning descr="Unused import statement 'from m4 import *'">from m4 import *</warning> print(<error descr="Unresolved reference 'm4m3'">m4m3</error>) <warning descr="Unused import statement 'from m1 import *'">from m1 import *</warning> print(<error descr="Unresolved reference 'm1m3'">m1m3</error>) <warning descr="Unused import statement 'from m2 import *'">from m2 import *</warning> print(<error descr="Unresolved reference 'm2m3'">m2m3</error>) <warning descr="Unused import statement 'from m3 import *'">from m3 import *</warning> print(<error descr="Unresolved reference 'm3m3'">m3m3</error>)
54.727273
86
0.737542
80
602
5.55
0.225
0.108108
0.162162
0.216216
0.790541
0.790541
0.707207
0
0
0
0
0.044444
0.10299
602
11
87
54.727273
0.777778
0
0
0
0
0
0.457711
0
0
0
0
0
0
0
null
null
0
0.5
null
null
0.5
0
0
0
null
0
0
1
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
1
0
6
cf2ad69cb819d22a0be9411d0f84ed1aebb89446
1,133
py
Python
sources/client/classes/inventory.py
armandmgt/zappy
055792feac1a48811e13243ce88b6296022ea97a
[ "MIT" ]
null
null
null
sources/client/classes/inventory.py
armandmgt/zappy
055792feac1a48811e13243ce88b6296022ea97a
[ "MIT" ]
null
null
null
sources/client/classes/inventory.py
armandmgt/zappy
055792feac1a48811e13243ce88b6296022ea97a
[ "MIT" ]
null
null
null
_ITEMS = [ 'food', 'sibur', 'phiras', 'mendiane', 'thystame', 'linemate', 'deraumere', 'player' ] class Inventory(dict): def __init__(self, items=[10]+[0]*len(_ITEMS)): super().__init__() for k, v in zip(_ITEMS, items): self.__setitem__(k, v) def __setitem__(self, k, v): super(Inventory, self).__setitem__(k, v) def __getitem__(self, k): return super(Inventory, self).__getitem__(k) def __repr__(self): return super(Inventory, self).__repr__() def __str__(self): return super(Inventory, self).__str__().replace("'", '"') def __len__(self): return super(Inventory, self).__len__() def __delitem__(self, k): return super(Inventory, self).__delitem__(k) def clear(self): return super(Inventory, self).clear() def copy(self): return super(Inventory, self).copy() def has_k(self, k): return k in super().__dict__ def update(self, *args, **kwargs): return super(Inventory, self).update(*args, **kwargs) def keys(self): return super(Inventory, self).keys() def values(self): return super(Inventory, self).values() def items(self): return super(Inventory, self).items()
19.877193
59
0.676964
151
1,133
4.629139
0.258278
0.240343
0.309013
0.377682
0.449213
0.082976
0
0
0
0
0
0.003119
0.150927
1,133
56
60
20.232143
0.723493
0
0
0
0
0
0.049426
0
0
0
0
0
0
1
0.341463
false
0
0
0.292683
0.658537
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
cf2c0d87ee6dd8f91941a7bd36ec33f18bffeef2
134
py
Python
packages/pytea/pylib/torchvision/__init__.py
Sehun0819/pytea
3f068016a71a1915722e51d977fedab01427a42c
[ "MIT" ]
241
2021-03-19T01:11:44.000Z
2022-03-25T03:15:22.000Z
packages/pytea/pylib/torchvision/__init__.py
Sehun0819/pytea
3f068016a71a1915722e51d977fedab01427a42c
[ "MIT" ]
2
2021-02-26T08:16:04.000Z
2022-02-28T02:52:58.000Z
packages/pytea/pylib/torchvision/__init__.py
Sehun0819/pytea
3f068016a71a1915722e51d977fedab01427a42c
[ "MIT" ]
14
2021-01-08T02:22:58.000Z
2022-01-19T14:13:14.000Z
from . import models as models from . import datasets as datasets from . import transforms as transforms from . import utils as utils
26.8
38
0.791045
20
134
5.3
0.35
0.377358
0
0
0
0
0
0
0
0
0
0
0.179104
134
4
39
33.5
0.963636
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
cf71fba0a7e6b65560eb3026c1359e6353aa6f0f
49
py
Python
pyleecan/Methods/Simulation/LUTslip/comp_Lm_from_Phim.py
thalesmaoa/pyleecan
c4fdc6362fdeba3d0766d5d1df3ff9c97c3f9fa3
[ "Apache-2.0" ]
1
2021-11-10T11:52:57.000Z
2021-11-10T11:52:57.000Z
pyleecan/Methods/Simulation/LUTslip/comp_Lm_from_Phim.py
thalesmaoa/pyleecan
c4fdc6362fdeba3d0766d5d1df3ff9c97c3f9fa3
[ "Apache-2.0" ]
null
null
null
pyleecan/Methods/Simulation/LUTslip/comp_Lm_from_Phim.py
thalesmaoa/pyleecan
c4fdc6362fdeba3d0766d5d1df3ff9c97c3f9fa3
[ "Apache-2.0" ]
null
null
null
def comp_Lm_from_Phim(self): pass # TODO
12.25
28
0.653061
8
49
3.625
1
0
0
0
0
0
0
0
0
0
0
0
0.265306
49
3
29
16.333333
0.805556
0.081633
0
0
0
0
0
0
0
0
0
0.333333
0
1
0.5
false
0.5
0
0
0.5
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
1
0
1
0
0
0
0
0
6
cf83f119bbbd60022fb9792dced0f7617b93c3c7
116
py
Python
my_python_module/algorithm/tree/__init__.py
a358003542/wanze_python_project
db52515af80319000e9a47a7b02f3ccd2cf46afd
[ "MIT" ]
1
2020-10-30T08:54:22.000Z
2020-10-30T08:54:22.000Z
my_python_module/algorithm/tree/__init__.py
a358003542/wanze_python_project
db52515af80319000e9a47a7b02f3ccd2cf46afd
[ "MIT" ]
null
null
null
my_python_module/algorithm/tree/__init__.py
a358003542/wanze_python_project
db52515af80319000e9a47a7b02f3ccd2cf46afd
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*-coding:utf-8-*- from .tree import Tree from .binary_search_tree import BinarySearchTree
19.333333
48
0.75
17
116
5
0.764706
0.235294
0
0
0
0
0
0
0
0
0
0.009709
0.112069
116
6
48
19.333333
0.815534
0.336207
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
d88704f31a6e60d2758e3602de6b228c7b70cb6f
17,531
py
Python
spss_converter/write.py
insightindustry/spss-converter
0368aada1e3de9d8017f44a66b3a0f52361b7b4e
[ "MIT" ]
null
null
null
spss_converter/write.py
insightindustry/spss-converter
0368aada1e3de9d8017f44a66b3a0f52361b7b4e
[ "MIT" ]
4
2021-03-31T02:39:44.000Z
2021-07-23T04:48:59.000Z
spss_converter/write.py
insightindustry/spss-converter
0368aada1e3de9d8017f44a66b3a0f52361b7b4e
[ "MIT" ]
1
2021-05-31T08:40:29.000Z
2021-05-31T08:40:29.000Z
from typing import Union, Optional, Any from os import PathLike import tempfile from io import BytesIO import yaml import simplejson as json import pyreadstat from validator_collection import validators, checkers from spss_converter.Metadata import Metadata import pandas DataFrame = pandas.DataFrame def from_dataframe(df: DataFrame, target: Optional[Union['PathLike[Any]', BytesIO]] = None, metadata: Optional[Metadata] = None, compress: bool = False): """Create an SPSS dataset from a `Pandas <https://pandas.pydata.org/>`_ :class:`DataFrame <pandas:DataFrame>`. :param df: The :class:`DataFrame` to serialize to an SPSS dataset. :type df: :class:`pandas.DataFrame <pandas:DataFrame>` :param target: The target to which the SPSS dataset should be written. Accepts either a filename/path, a :class:`BytesIO <python:io.BytesIO>` object, or :obj:`None <python:None>`. If :obj:`None <python:None>` will return a :class:`BytesIO <python:io.BytesIO>` object containing the SPSS dataset. Defaults to :obj:`None <python:None>`. :type target: Path-like / :class:`BytesIO <python:io.BytesIO>` / :obj:`None <python:None>` :param metadata: The :class:`Metadata` associated with the dataset. If :obj:`None <python:None>`, will attempt to derive it form ``df``. Defaults to :obj:`None <python:None>`. :type metadata: :class:`Metadata` / :obj:`None <python:None>` :param compress: If ``True``, will return data in the compressed ZSAV format. If ``False``, will return data in the standards SAV format. Defaults to ``False``. :type compress: :class:`bool <python:bool>` :returns: A :class:`BytesIO <python:io.BytesIO>` object containing the SPSS data if ``target`` is :obj:`None <python:None>` or not a filename, otherwise :obj:`None <python:None>` :rtype: :class:`BytesIO <python:io.BytesIO>` or :obj:`None <python:None>` :raises ValueError: if ``df`` is not a :class:`pandas.DataFrame <pandas:DataFrame>` :raises ValueError: if ``metadata`` is not a :class:`Metadata` """ if not checkers.is_type(df, 'DataFrame'): raise ValueError(f'df must be a pandas.DataFrame. Was: {df.__class__.__name__}') if metadata and not checkers.is_type(metadata, ('Metadata', 'metadata_container', 'dict')): raise ValueError(f'metadata must be a Metadata instance or compatible object. ' f'Was: {metadata.__class__.__name__}') elif metadata and checkers.is_type(metadata, 'metadata_container'): metadata = Metadata.from_pyreadstat(metadata) elif metadata and checkers.is_type(metadata, 'dict'): metadata = Metadata.from_dict(metadata) is_file = False if target and checkers.is_pathlike(target): is_file = True elif target: target = validators.bytesIO(target, allow_empty = False) if metadata: as_pyreadstat = metadata.to_pyreadstat() else: as_pyreadstat = None if target and is_file: with open(target, 'wb') as target_file: if as_pyreadstat: pyreadstat.write_sav( df = df, dst_path = target_file, file_label = as_pyreadstat.file_label, column_labels = as_pyreadstat.column_labels, compress = compress, note = as_pyreadstat.notes, variable_value_labels = as_pyreadstat.variable_value_labels, missing_ranges = as_pyreadstat.missing_ranges, variable_display_width = as_pyreadstat.variable_display_width, variable_measure = as_pyreadstat.variable_measure ) else: pyreadstat.write_sav(df = df, dst_path = target_file, compress = compress) else: with tempfile.NamedTemporaryFile() as temp_file: if as_pyreadstat: pyreadstat.write_sav( df = df, dst_path = temp_file.name, file_label = as_pyreadstat.file_label, column_labels = as_pyreadstat.column_labels, compress = compress, note = as_pyreadstat.notes, variable_value_labels = as_pyreadstat.variable_value_labels, missing_ranges = as_pyreadstat.missing_ranges, variable_display_width = as_pyreadstat.variable_display_width, variable_measure = as_pyreadstat.variable_measure ) else: pyreadstat.write_sav(df = df, dst_path = temp_file.name, compress = compress) if target: target.write(temp_file.read()) else: target = BytesIO(temp_file.read()) return target def from_csv(as_csv: Union[str, 'PathLike[Any]', BytesIO], target: Optional[Union['PathLike[Any]', BytesIO]] = None, compress: bool = False, delimiter = '|', **kwargs): """Convert a CSV file into an SPSS dataset. .. tip:: If you pass any additional keyword arguments, those keyword arguments will be passed onto the :func:`pandas.read_csv() <pandas:pandas.read_csv>` function. :param as_csv: The CSV data that you wish to convert into an SPSS dataset. :type as_csv: :class:`str <python:str>` / File-location / :class:`BytesIO <python:io.BytesIO>` :param target: The target to which the SPSS dataset should be written. Accepts either a filename/path, a :class:`BytesIO <python:io.BytesIO>` object, or :obj:`None <python:None>`. If :obj:`None <python:None>` will return a :class:`BytesIO <python:io.BytesIO>` object containing the SPSS dataset. Defaults to :obj:`None <python:None>`. :type target: Path-like / :class:`BytesIO <python:io.BytesIO>` / :obj:`None <python:None>` :param compress: If ``True``, will return data in the compressed ZSAV format. If ``False``, will return data in the standards SAV format. Defaults to ``False``. :type compress: :class:`bool <python:bool>` :param delimiter: The delimiter used between columns. Defaults to ``|``. :type delimiter: :class:`str <python:str>` :param kwargs: Additional keyword arguments which will be passed onto the :func:`pandas.read_csv() <pandas:pandas.read_csv>` function. :type kwargs: :class:`dict <python:dict>` :returns: A :class:`BytesIO <python:io.BytesIO>` object containing the SPSS data if ``target`` is :obj:`None <python:None>` or not a filename, otherwise :obj:`None <python:None>` :rtype: :class:`BytesIO <python:io.BytesIO>` or :obj:`None <python:None>` """ df = pandas.read_csv(as_csv, delimiter = delimiter, **kwargs) if 'Unnamed: 0' in df: df = df.drop(['Unnamed: 0'], axis = 1) result = from_dataframe(df, target = target, compress = compress) return result def from_dict(as_dict: dict, target: Optional[Union['PathLike[Any]', BytesIO]] = None, compress: bool = False, **kwargs): """Convert a :class:`dict <python:dict>` object into an SPSS dataset. .. tip:: If you pass any additional keyword arguments, those keyword arguments will be passed onto the :meth:`DataFrame.from_dict() <pandas:pandas.DataFrame.from_dict>` method. :param as_dict: The :class:`dict <python:dict>` data that you wish to convert into an SPSS dataset. :type as_dict: :class:`dict <python:dict>` :param target: The target to which the SPSS dataset should be written. Accepts either a filename/path, a :class:`BytesIO <python:io.BytesIO>` object, or :obj:`None <python:None>`. If :obj:`None <python:None>` will return a :class:`BytesIO <python:io.BytesIO>` object containing the SPSS dataset. Defaults to :obj:`None <python:None>`. :type target: Path-like / :class:`BytesIO <python:io.BytesIO>` / :obj:`None <python:None>` :param compress: If ``True``, will return data in the compressed ZSAV format. If ``False``, will return data in the standards SAV format. Defaults to ``False``. :type compress: :class:`bool <python:bool>` :param kwargs: Additional keyword arguments which will be passed onto the :meth:`DataFrame.from_dict() <pandas:pandas.DataFrame.from_dict>` method. :type kwargs: :class:`dict <python:dict>` :returns: A :class:`BytesIO <python:io.BytesIO>` object containing the SPSS data if ``target`` is :obj:`None <python:None>` or not a filename, otherwise :obj:`None <python:None>` :rtype: :class:`BytesIO <python:io.BytesIO>` or :obj:`None <python:None>` """ df = DataFrame.from_dict(as_dict, **kwargs) result = from_dataframe(df, target = target, compress = compress) return result def from_json(as_json: Union[str, 'PathLike[Any]', BytesIO], target: Optional[Union['PathLike[Any]', BytesIO]] = None, compress: bool = False, **kwargs): """Convert JSON data into an SPSS dataset. .. tip:: If you pass any additional keyword arguments, those keyword arguments will be passed onto the :func:`pandas.read_json() <pandas:pandas.read_json>` function. :param as_json: The JSON data that you wish to convert into an SPSS dataset. :type as_json: :class:`str <python:str>` / File-location / :class:`BytesIO <python:io.BytesIO>` :param target: The target to which the SPSS dataset should be written. Accepts either a filename/path, a :class:`BytesIO <python:io.BytesIO>` object, or :obj:`None <python:None>`. If :obj:`None <python:None>` will return a :class:`BytesIO <python:io.BytesIO>` object containing the SPSS dataset. Defaults to :obj:`None <python:None>`. :type target: Path-like / :class:`BytesIO <python:io.BytesIO>` / :obj:`None <python:None>` :param compress: If ``True``, will return data in the compressed ZSAV format. If ``False``, will return data in the standards SAV format. Defaults to ``False``. :type compress: :class:`bool <python:bool>` :param kwargs: Additional keyword arguments which will be passed onto the :func:`pandas.read_json() <pandas:pandas.read_json>` function. :type kwargs: :class:`dict <python:dict>` :returns: A :class:`BytesIO <python:io.BytesIO>` object containing the SPSS data if ``target`` is :obj:`None <python:None>` or not a filename, otherwise :obj:`None <python:None>` :rtype: :class:`BytesIO <python:io.BytesIO>` or :obj:`None <python:None>` """ df = pandas.read_json(as_json, **kwargs) result = from_dataframe(df, target = target, compress = compress) return result def from_yaml(as_yaml: Union[str, 'PathLike[Any]', BytesIO], target: Optional[Union['PathLike[Any]', BytesIO]] = None, compress: bool = False, **kwargs): """Convert YAML data into an SPSS dataset. .. tip:: If you pass any additional keyword arguments, those keyword arguments will be passed onto the :meth:`DataFrame.from_dict() <pandas:pandas.DataFrame.from_dict>` method. :param as_yaml: The YAML data that you wish to convert into an SPSS dataset. :type as_yaml: :class:`str <python:str>` / File-location / :class:`BytesIO <python:io.BytesIO>` :param target: The target to which the SPSS dataset should be written. Accepts either a filename/path, a :class:`BytesIO <python:io.BytesIO>` object, or :obj:`None <python:None>`. If :obj:`None <python:None>` will return a :class:`BytesIO <python:io.BytesIO>` object containing the SPSS dataset. Defaults to :obj:`None <python:None>`. :type target: Path-like / :class:`BytesIO <python:io.BytesIO>` / :obj:`None <python:None>` :param compress: If ``True``, will return data in the compressed ZSAV format. If ``False``, will return data in the standards SAV format. Defaults to ``False``. :type compress: :class:`bool <python:bool>` :param kwargs: Additional keyword arguments which will be passed onto the :meth:`DataFrame.from_dict() <pandas:pandas.DataFrame.from_dict>` method. :type kwargs: :class:`dict <python:dict>` :returns: A :class:`BytesIO <python:io.BytesIO>` object containing the SPSS data if ``target`` is :obj:`None <python:None>` or not a filename, otherwise :obj:`None <python:None>` :rtype: :class:`BytesIO <python:io.BytesIO>` or :obj:`None <python:None>` """ if checkers.is_file(as_yaml) or checkers.is_bytesIO(as_yaml): file_path = as_yaml with open(file_path, 'rb') as yaml_file: as_dict = yaml.safe_load(yaml_file) else: as_yaml = validators.string(as_yaml, allow_empty = False) as_dict = yaml.safe_load(as_yaml) as_json = json.dumps(as_dict) return from_json(as_json, target = target, compress = compress, **kwargs) def from_excel(as_excel, target: Optional[Union['PathLike[Any]', BytesIO]] = None, compress: bool = False, **kwargs): """Convert Excel data into an SPSS dataset. .. tip:: If you pass any additional keyword arguments, those keyword arguments will be passed onto the :func:`pandas.read_excel() <pandas:pandas.read_excel>` function. :param as_excel: The Excel data that you wish to convert into an SPSS dataset. :type as_excel: :class:`str <python:str>` / File-location / :class:`BytesIO <python:io.BytesIO>` / :class:`bytes <python:bytes>` / :class:`ExcelFile <pandas.ExcelFile>` :param target: The target to which the SPSS dataset should be written. Accepts either a filename/path, a :class:`BytesIO <python:io.BytesIO>` object, or :obj:`None <python:None>`. If :obj:`None <python:None>` will return a :class:`BytesIO <python:io.BytesIO>` object containing the SPSS dataset. Defaults to :obj:`None <python:None>`. :type target: Path-like / :class:`BytesIO <python:io.BytesIO>` / :obj:`None <python:None>` :param compress: If ``True``, will return data in the compressed ZSAV format. If ``False``, will return data in the standards SAV format. Defaults to ``False``. :type compress: :class:`bool <python:bool>` :param kwargs: Additional keyword arguments which will be passed onto the :func:`pandas.read_excel() <pandas:pandas.read_excel>` function. :type kwargs: :class:`dict <python:dict>` :returns: A :class:`BytesIO <python:io.BytesIO>` object containing the SPSS data if ``target`` is :obj:`None <python:None>` or not a filename, otherwise :obj:`None <python:None>` :rtype: :class:`BytesIO <python:io.BytesIO>` or :obj:`None <python:None>` """ df = pandas.read_excel(as_excel, **kwargs) if 'Unnamed: 0' in df: df = df.drop(['Unnamed: 0'], axis = 1) result = from_dataframe(df, target = target, compress = compress) return result def apply_metadata(df: DataFrame, metadata: Union[Metadata, dict, pyreadstat.metadata_container], as_category: bool = True): """Updates the :class:`DataFrame <pandas:DataFrame>` ``df`` based on the ``metadata``. :param df: The :class:`DataFrame <pandas:pandas.DataFrame>` to update. :type df: :class:`pandas.DataFrame <pandas:pandas.DataFrame>` :param metadata: The :class:`Metadata` to apply to ``df``. :type metadata: :class:`Metadata`, :class:`pyreadstat.metadata_container`, or compatible :class:`dict <python:dict>` :param as_category: if ``True``, will variables with formats will be transformed into categories in the :class:`DataFrame <pandas:pandas.DataFrame>`. Defaults to ``True``. :type as_category: :class:`bool <python:bool>` :returns: A copy of ``df`` updated to reflect ``metadata``. :rtype: :class:`DataFrame <pandas:pandas.DataFrame>` """ if not checkers.is_type(df, 'DataFrame'): raise ValueError(f'df must be a pandas.DataFrame. Was: {df.__class__.__name__}') if not checkers.is_type(metadata, ('Metadata', 'metadata_container', 'dict')): raise ValueError(f'metadata must be a Metadata instance or compatible object. ' f'Was: {metadata.__class__.__name__}') elif checkers.is_type(metadata, 'metadata_container'): metadata = Metadata.from_pyreadstat(metadata) elif checkers.is_type(metadata, 'dict'): metadata = Metadata.from_dict(metadata) as_pyreadstat = metadata.to_pyreadstat() return pyreadstat.set_value_labels(df, metadata = as_pyreadstat.value_labels, formats_as_category = as_category)
43.393564
90
0.626547
2,173
17,531
4.957202
0.079153
0.029242
0.054307
0.071017
0.80932
0.786855
0.762347
0.753621
0.753621
0.751764
0
0.00046
0.256631
17,531
403
91
43.501241
0.82612
0.562318
0
0.588235
0
0
0.084144
0.014883
0
0
0
0
0
1
0.045752
false
0
0.065359
0
0.156863
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
d8b486ce16ce258b19dca77cdb9f59b79efa2c8a
41
py
Python
jinahub/indexers/searcher/compound/NumpyPostgresSearcher/__init__.py
makram93/executors
9e88b56650ee154e811b8ecfaf883861475c082f
[ "Apache-2.0" ]
3
2021-07-20T02:17:23.000Z
2022-03-15T02:31:51.000Z
jinahub/indexers/searcher/compound/NumpyPostgresSearcher/__init__.py
makram93/executors
9e88b56650ee154e811b8ecfaf883861475c082f
[ "Apache-2.0" ]
32
2021-06-16T07:31:45.000Z
2021-07-26T08:18:26.000Z
jinahub/indexers/searcher/compound/NumpyPostgresSearcher/__init__.py
makram93/executors
9e88b56650ee154e811b8ecfaf883861475c082f
[ "Apache-2.0" ]
1
2021-07-08T09:35:08.000Z
2021-07-08T09:35:08.000Z
from .nppsql import NumpyPostgresSearcher
41
41
0.902439
4
41
9.25
1
0
0
0
0
0
0
0
0
0
0
0
0.073171
41
1
41
41
0.973684
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
d8f230f78132b38f637acc1453a36a7b2ce66912
111
py
Python
hypney/utils/__init__.py
JelleAalbers/hypney
3e38e21743fc9babe0ed47af299d08242a9b6d32
[ "MIT" ]
null
null
null
hypney/utils/__init__.py
JelleAalbers/hypney
3e38e21743fc9babe0ed47af299d08242a9b6d32
[ "MIT" ]
null
null
null
hypney/utils/__init__.py
JelleAalbers/hypney
3e38e21743fc9babe0ed47af299d08242a9b6d32
[ "MIT" ]
null
null
null
from . import eagerpy from . import hashing from . import interpolation from . import numba from . import misc
18.5
27
0.774775
15
111
5.733333
0.466667
0.581395
0
0
0
0
0
0
0
0
0
0
0.18018
111
5
28
22.2
0.945055
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
d8fb8fb4b876734f24f42d025cd6a9b71dbf2ba4
116
py
Python
Module4_HW/task2.py
vladspirin/python_core
8d91dce246a438c15c8c17d30971fa5572247eb4
[ "Unlicense" ]
null
null
null
Module4_HW/task2.py
vladspirin/python_core
8d91dce246a438c15c8c17d30971fa5572247eb4
[ "Unlicense" ]
null
null
null
Module4_HW/task2.py
vladspirin/python_core
8d91dce246a438c15c8c17d30971fa5572247eb4
[ "Unlicense" ]
null
null
null
# 1 print(ord('A'), ord('a'), ord('Z'), ord('z')) # 2 print(chr(28), chr(32), chr(46), chr(52), chr(200), chr(255))
23.2
61
0.517241
24
116
2.5
0.541667
0.133333
0.233333
0
0
0
0
0
0
0
0
0.156863
0.12069
116
4
62
29
0.431373
0.025862
0
0
0
0
0.036364
0
0
0
0
0
0
1
0
true
0
0
0
0
1
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
1
0
6
2b06b2d37eca96d1bb4d6b8ad905d7805d118fff
77,069
py
Python
actions/actions.py
ngocpham97/vnd-ai-chabot-nlp
c498b176295b92ae411ac1e42c2d5943eaf4043b
[ "Apache-2.0" ]
null
null
null
actions/actions.py
ngocpham97/vnd-ai-chabot-nlp
c498b176295b92ae411ac1e42c2d5943eaf4043b
[ "Apache-2.0" ]
null
null
null
actions/actions.py
ngocpham97/vnd-ai-chabot-nlp
c498b176295b92ae411ac1e42c2d5943eaf4043b
[ "Apache-2.0" ]
null
null
null
"""Custom actions""" import os from typing import Dict, Text, Any, List import logging from dateutil import parser import sqlalchemy as sa import re import uuid # from dotenv import load_dotenv from rasa_sdk.interfaces import Action from rasa_sdk.events import ( SlotSet, EventType, ActionExecuted, SessionStarted, Restarted, FollowupAction, UserUtteranceReverted, AllSlotsReset, ) from rasa_sdk import Tracker from rasa_sdk.executor import CollectingDispatcher from actions.parsing import ( parse_duckling_time_as_interval, parse_duckling_time, get_entity_details, parse_duckling_currency, ) # from actions.posgresql import PostgreSQL from actions.custom_forms import CustomFormValidationAction from actions.constant import ENVIRONMENT_CONFIG_FILE from actions.constant import loan_information_table, loan_information_columns, loan_register_table, loan_register_columns # load_dotenv(dotenv_path=ENVIRONMENT_CONFIG_FILE) logger = logging.getLogger(__name__) # host = os.environ['host'] # port = os.environ['port'] # username = os.environ['username'] # password = os.environ['password'] # database = os.environ['database'] # host = "10.1.21.3" # port = 5432 # username = "postgres" # password = "postgres" # database = "postgres" # global conn # conn = PostgreSQL(host=host, port=port, username=username, # password=password, database=database # ) NEXT_FORM_NAME = { "borrow_money": "borrow_money_form", } FORM_DESCRIPTION = { "borrow_money_form": "borrow money", } class ActionBorrowMoney(Action): """Transfers Money.""" def name(self) -> Text: """Unique identifier of the action""" return "action_borrow_money" async def run( self, dispatcher: CollectingDispatcher, tracker: Tracker, domain: Dict ) -> List[EventType]: """Executes the action""" #get user information id = str(uuid.uuid4()) user_name = tracker.get_slot('user_name') amount_of_money = float(tracker.get_slot('amount-of-money')) id_card = tracker.get_slot('id_card') telephone_number = tracker.get_slot('telephone_number') # insert user infomation to db # if user_name != None and amount_of_money != None and id_card != None and id_card != telephone_number: # conn.insert(table_name=loan_register_table, columns=loan_register_columns, values=[id, user_name, id_card, telephone_number, amount_of_money]) slots = { "AA_CONTINUE_FORM": None, "zz_confirm_form": None, "user_name": None, "telephone_number": None, "id_card": None, # "email":None, # "location":None, # "age":None, # "job_title":None, # "income": None, "amount-of-money": None, "number": None, } if tracker.get_slot("zz_confirm_form") == "yes": user_name = tracker.get_slot("user_name") # email = tracker.get_slot("email") # location = tracker.get_slot("location") # job_title = tracker.get_slot("job_title") # income = tracker.get_slot("income") # age = tracker.get_slot("age") telephone_number = tracker.get_slot("telephone_number") id_card = tracker.get_slot("id_card") amount_of_money = float(tracker.get_slot("amount-of-money")) dispatcher.utter_message(response="utter_wait_complete") else: dispatcher.utter_message(response="utter_borrow_money_cancelled") return [SlotSet(slot, value) for slot, value in slots.items()] class ValidateBorrowMoneyForm(CustomFormValidationAction): """Validates Slots of the borrow_money_form""" def name(self) -> Text: """Unique identifier of the action""" return "validate_borrow_money_form" def is_int(self, string: Text) -> bool: """Check if a string is an integer.""" try: int(string) return True except ValueError: return False async def validate_user_name( self, value: Text, dispatcher: CollectingDispatcher, tracker: Tracker, domain: Dict[Text, Any], ) -> Dict[Text, Any]: """Validates value of 'user_name' slot""" # It is possible that both Spacy & DIET extracted the user_name # Just pick the first one if isinstance(value, list): value = value[0] name = value.lower() if value else None if name is not None: return {"user_name": name.title()} dispatcher.utter_message(response="utter_unknown_name") return {"user_name": None} # async def validate_job_title( # self, # value: Text, # dispatcher: CollectingDispatcher, # tracker: Tracker, # domain: Dict[Text, Any], # ) -> Dict[Text, Any]: # """Validates value of 'PERSON' slot""" # # It is possible that both Spacy & DIET extracted the PERSON # # Just pick the first one # if isinstance(value, list): # value = value[0] # name = value.lower() if value else None # if name is not None: # return {"job_title": name.title()} # dispatcher.utter_message(response="utter_unknown_name") # return {"job_title": None} async def validate_amount_of_money( self, value: Text, dispatcher: CollectingDispatcher, tracker: Tracker, domain: Dict[Text, Any], ) -> Dict[Text, Any]: """Validates value of 'amount_of_money' slot""" try: entity = get_entity_details(tracker, "amount-of-money") if not entity: entity = get_entity_details(tracker, "number") amount_currency = parse_duckling_currency(entity) if not amount_currency: raise TypeError if float(amount_currency.get("amount-of-money")) < 1000000 or float(amount_currency.get("amount-of-money")) > 5000000: dispatcher.utter_message(response="utter_insufficient_funds") return {"amount-of-money": None} return amount_currency except: pass async def validate_id_card( self, value: Text, dispatcher: CollectingDispatcher, tracker: Tracker, domain: Dict[Text, Any], ) -> Dict[Text, Any]: """Validates value of 'vendor_name' slot""" value = str(value) print("$$$$$$$$$$$$$$$$$$$$", value) if value and not any(map(str.isalpha, value)) and '[' not in value: return {"id_card": value} else: dispatcher.utter_message(response="utter_no_id_card") return {"id_card": None} async def validate_telephone_number( self, value: Text, dispatcher: CollectingDispatcher, tracker: Tracker, domain: Dict[Text, Any], ) -> Dict[Text, Any]: """Validates value of 'telephone_number' slot""" value = str(value) if value and not any(map(str.isalpha, value)) and '[' not in value: return {"telephone_number": value} else: dispatcher.utter_message(response="utter_no_telephone_number") return {"telephone_number": None} # async def validate_income( # self, # value: Text, # dispatcher: CollectingDispatcher, # tracker: Tracker, # domain: Dict[Text, Any], # ) -> Dict[Text, Any]: # """Validates value of 'telephone_number' slot""" # value = str(value) # if value and not any(map(str.isalpha, value)) and '[' not in value: # return {"income": value} # else: # dispatcher.utter_message(response="utter_no_income") # return {"income": None} # async def validate_email( # self, # value: Text, # dispatcher: CollectingDispatcher, # tracker: Tracker, # domain: Dict[Text, Any], # ) -> Dict[Text, Any]: # """Validates value of 'email' slot""" # value = str(value) # if re.match("^[a-z0-9]+[\._]?[a-z0-9]+[@]\w+[.]\w{2,3}$", value): # return {"email": value} # else: # dispatcher.utter_message(response="utter_no_email") # # validation failed, set this slot to None, meaning the # # user will be asked for the slot again # return {"email": None} # async def validate_location( # self, # value: Text, # dispatcher: CollectingDispatcher, # tracker: Tracker, # domain: Dict[Text, Any], # ) -> Dict[Text, Any]: # """Validates value of 'location' slot""" # value = str(value) # if 2 < len(value) < 50: # # validation succeeded, set the value of the "name" slot to value # return {"location": value} # else: # dispatcher.utter_message(response="utter_location_null") # # validation failed, set this slot to None, meaning the # # user will be asked for the slot again # return {"location": None} # async def validate_age( # self, # value: Text, # dispatcher: CollectingDispatcher, # tracker: Tracker, # domain: Dict[Text, Any], # ) -> Dict[Text, Any]: # """Validates value of 'age' slot""" # if self.is_int(value) and int(value) >= 19 and int(value) <= 100: # return {'age': value} # else: # dispatcher.utter_message(response='utter_wrong_age') # return {'age': None} async def validate_zz_confirm_form( self, value: Text, dispatcher: CollectingDispatcher, tracker: Tracker, domain: Dict[Text, Any], ) -> Dict[Text, Any]: """Validates value of 'zz_confirm_form' slot""" if value in ["yes", "no"]: return {"zz_confirm_form": value} return {"zz_confirm_form": None} class ActionChangeOrder(Action): def name(self) -> Text: return 'action_change_inform' async def run( self, dispatcher: CollectingDispatcher, tracker: Tracker, domain: Dict ) -> List[EventType]: if tracker.latest_message['intent'].get('name') == "change_person": return [SlotSet("user_name", None)] elif tracker.latest_message['intent'].get('name') == "change_email": return [SlotSet("email", None)] elif tracker.latest_message['intent'].get('name') == "change_location": return [SlotSet("location", None)] elif tracker.latest_message['intent'].get('name') == "change_age": return [SlotSet("age", None)] elif tracker.latest_message['intent'].get('name') == "change_telephone_number": return [SlotSet("telephone_number", None)] elif tracker.latest_message['intent'].get('name') == "change_id_card": return [SlotSet("id_card", None)] elif tracker.latest_message['intent'].get('name') == "change_amount_of_money": return [SlotSet("amount-of-money", None)] elif tracker.latest_message['intent'].get('name') == "change_income": return [SlotSet("income", None)] elif tracker.latest_message['intent'].get('name') == "change_job_title": return [SlotSet("job_title", None)] elif tracker.latest_message['intent'].get('name') == "change_house_type": return [SlotSet("house_type", None)] else: dispatcher.utter_message(response="utter_handoff") return [] class ActionShowPayBackTime(Action): """Lists the contents of then known_recipients slot""" def name(self) -> Text: """Unique identifier of the action""" return "action_show_payback_time" async def run( self, dispatcher: CollectingDispatcher, tracker: Tracker, domain: Dict ) -> List[EventType]: """Executes the custom action""" dispatcher.utter_message( response="utter_payback_time", ) events = [] active_form_name = tracker.active_form.get("name") if active_form_name: dispatcher.utter_message( response="utter_ask_continue", ) # keep the tracker clean for the predictions with form switch stories events.append(UserUtteranceReverted()) # trigger utter_ask_{form}_AA_CONTINUE_FORM, by making it the requested_slot events.append(SlotSet("AA_CONTINUE_FORM", None)) # # avoid that bot goes in listen mode after UserUtteranceReverted events.append(FollowupAction(active_form_name)) return events class ActionShowInterestRate(Action): """Lists the transfer charges""" def name(self) -> Text: """Unique identifier of the action""" return "action_show_interest_rate" async def run( self, dispatcher: CollectingDispatcher, tracker: Tracker, domain: Dict ) -> List[EventType]: """Executes the custom action""" dispatcher.utter_message(response="utter_interest_rate") events = [] active_form_name = tracker.active_form.get("name") if active_form_name: dispatcher.utter_message( response="utter_ask_continue", ) # keep the tracker clean for the predictions with form switch stories events.append(UserUtteranceReverted()) # trigger utter_ask_{form}_AA_CONTINUE_FORM, by making it the requested_slot events.append(SlotSet("AA_CONTINUE_FORM", None)) # # avoid that bot goes in listen mode after UserUtteranceReverted events.append(FollowupAction(active_form_name)) return events class ActionInformationCompany(Action): """Lists the transfer charges""" def name(self) -> Text: """Unique identifier of the action""" return "action_information_company" async def run( self, dispatcher: CollectingDispatcher, tracker: Tracker, domain: Dict ) -> List[EventType]: """Executes the custom action""" dispatcher.utter_message(response="utter_information_company") events = [] active_form_name = tracker.active_form.get("name") if active_form_name: dispatcher.utter_message( response="utter_ask_continue", ) # keep the tracker clean for the predictions with form switch stories events.append(UserUtteranceReverted()) # trigger utter_ask_{form}_AA_CONTINUE_FORM, by making it the requested_slot events.append(SlotSet("AA_CONTINUE_FORM", None)) # # avoid that bot goes in listen mode after UserUtteranceReverted events.append(FollowupAction(active_form_name)) return events class ActionShowPaymentMethods(Action): """Lists the transfer charges""" def name(self) -> Text: """Unique identifier of the action""" return "action_payment_methods" async def run( self, dispatcher: CollectingDispatcher, tracker: Tracker, domain: Dict ) -> List[EventType]: """Executes the custom action""" dispatcher.utter_message(response="utter_payment_methods") events = [] active_form_name = tracker.active_form.get("name") if active_form_name: dispatcher.utter_message( response="utter_ask_continue", ) # keep the tracker clean for the predictions with form switch stories events.append(UserUtteranceReverted()) # trigger utter_ask_{form}_AA_CONTINUE_FORM, by making it the requested_slot events.append(SlotSet("AA_CONTINUE_FORM", None)) # # avoid that bot goes in listen mode after UserUtteranceReverted events.append(FollowupAction(active_form_name)) return events class ActionShowInformationCompany(Action): """Lists the transfer charges""" def name(self) -> Text: """Unique identifier of the action""" return "action_late_payment" async def run( self, dispatcher: CollectingDispatcher, tracker: Tracker, domain: Dict ) -> List[EventType]: """Executes the custom action""" dispatcher.utter_message(response="utter_late_payment") events = [] active_form_name = tracker.active_form.get("name") if active_form_name: # keep the tracker clean for the predictions with form switch stories events.append(UserUtteranceReverted()) # trigger utter_ask_{form}_AA_CONTINUE_FORM, by making it the requested_slot events.append(SlotSet("AA_CONTINUE_FORM", None)) # # avoid that bot goes in listen mode after UserUtteranceReverted events.append(FollowupAction(active_form_name)) return events class ActionSessionStart(Action): """Executes at start of session""" def name(self) -> Text: """Unique identifier of the action""" return "action_session_start" @staticmethod def _slot_set_events_from_tracker( tracker: "Tracker", ) -> List["SlotSet"]: """Fetches SlotSet events from tracker and carries over keys and values""" # when restarting most slots should be reset relevant_slots = ["currency"] return [ SlotSet( key=event.get("name"), value=event.get("value"), ) for event in tracker.events if event.get("event") == "slot" and event.get("name") in relevant_slots ] async def run( self, dispatcher: CollectingDispatcher, tracker: Tracker, domain: Dict[Text, Any], ) -> List[EventType]: """Executes the custom action""" # the session should begin with a `session_started` event events = [SessionStarted()] events.extend(self._slot_set_events_from_tracker(tracker)) currency = 'VND' # initialize slots from mock profile events.append(SlotSet("currency", currency)) # add `action_listen` at the end events.append(ActionExecuted("action_listen")) return events class ActionRestart(Action): """Executes after restart of a session""" def name(self) -> Text: """Unique identifier of the action""" return "action_restart" async def run( self, dispatcher: CollectingDispatcher, tracker: Tracker, domain: Dict[Text, Any], ) -> List[EventType]: """Executes the custom action""" return [Restarted(), FollowupAction("action_session_start")] class ActionSwitchFormsAsk(Action): """Asks to switch forms""" def name(self) -> Text: return "action_switch_forms_ask" async def run( self, dispatcher: CollectingDispatcher, tracker: Tracker, domain: Dict ) -> List[EventType]: """Executes the custom action""" active_form_name = tracker.active_form.get("name") intent_name = tracker.latest_message["intent"]["name"] next_form_name = NEXT_FORM_NAME.get(intent_name) if ( active_form_name not in FORM_DESCRIPTION.keys() or next_form_name not in FORM_DESCRIPTION.keys() ): logger.debug( f"Cannot create text for `active_form_name={active_form_name}` & " f"`next_form_name={next_form_name}`" ) next_form_name = None else: text = ( f"We haven't completed the {FORM_DESCRIPTION[active_form_name]} yet. " f"Are you sure you want to switch to {FORM_DESCRIPTION[next_form_name]}?" ) buttons = [ {"payload": "/affirm", "title": "Yes"}, {"payload": "/deny", "title": "No"}, ] dispatcher.utter_message(text=text, buttons=buttons) return [SlotSet("next_form_name", next_form_name)] class ActionSwitchFormsDeny(Action): """Does not switch forms""" def name(self) -> Text: return "action_switch_forms_deny" async def run( self, dispatcher: CollectingDispatcher, tracker: Tracker, domain: Dict ) -> List[EventType]: """Executes the custom action""" active_form_name = tracker.active_form.get("name") if active_form_name not in FORM_DESCRIPTION.keys(): logger.debug( f"Cannot create text for `active_form_name={active_form_name}`." ) else: text = f"Ok, let's continue with the {FORM_DESCRIPTION[active_form_name]}." dispatcher.utter_message(text=text) return [SlotSet("next_form_name", None)] class ActionSwitchFormsAffirm(Action): """Switches forms""" def name(self) -> Text: return "action_switch_forms_affirm" async def run( self, dispatcher: CollectingDispatcher, tracker: Tracker, domain: Dict ) -> List[EventType]: """Executes the custom action""" active_form_name = tracker.active_form.get("name") next_form_name = tracker.get_slot("next_form_name") if ( active_form_name not in FORM_DESCRIPTION.keys() or next_form_name not in FORM_DESCRIPTION.keys() ): logger.debug( f"Cannot create text for `active_form_name={active_form_name}` & " f"`next_form_name={next_form_name}`" ) else: text = ( f"Chúng ta sẽ chuyển từ {FORM_DESCRIPTION[active_form_name]} " f"đến {FORM_DESCRIPTION[next_form_name]}. " f"Một khi hoàn tất bạn có thể quay trở lại để hoàn tất những thông tin." ) dispatcher.utter_message(text=text) return [ SlotSet("previous_form_name", active_form_name), SlotSet("next_form_name", None), ] class ActionSwitchBackAsk(Action): """Asks to switch back to previous form""" def name(self) -> Text: return "action_switch_back_ask" async def run( self, dispatcher: CollectingDispatcher, tracker: Tracker, domain: Dict ) -> List[EventType]: """Executes the custom action""" previous_form_name = tracker.get_slot("previous_form_name") if previous_form_name not in FORM_DESCRIPTION.keys(): logger.debug( f"Cannot create text for `previous_form_name={previous_form_name}`" ) previous_form_name = None else: text = ( f"Bạn có muốn hoàn tất thông tin " f"{FORM_DESCRIPTION[previous_form_name]} bây giờ?." ) buttons = [ {"payload": "/affirm", "title": "Yes"}, {"payload": "/deny", "title": "No"}, ] dispatcher.utter_message(text=text, buttons=buttons) return [SlotSet("previous_form_name", None)] class ActionResetAllSlots(Action): def name(self): return "action_reset_all_slots" def run(self, dispatcher, tracker, domain): gender_value = tracker.get_slot("gender_value") slots = { "AA_CONTINUE_FORM": None, "PERSON": None, "user_name": None, "age": None, "amount-of-money": None, "company": None, "currency": "VND", "email": None, "end_time": None, "end_time_formatted": None, "grain": None, "handoff_to": None, "id_card": None, "income": None, "job_title": None, "location": None, "next_form_name": None, "number": None, "previous_form_name": None, "repeated_validation_failures": None, "requested_slot": None, "start_time": None, "start_time_formatted": None, "telephone_number": None, "time": None, "time_formatted": None, "zz_confirm_form": None, "loan_name": None, "gender_value": gender_value, } return [SlotSet(slot, value) for slot, value in slots.items()] class ActionNLUFallBack(Action): """Lists the contents of then known_recipients slot""" def name(self) -> Text: """Unique identifier of the action""" return "action_default" async def run( self, dispatcher: CollectingDispatcher, tracker: Tracker, domain: Dict ) -> List[EventType]: """Executes the custom action""" dispatcher.utter_message( response="utter_default", ) events = [] active_form_name = tracker.active_form.get("name") if active_form_name: # keep the tracker clean for the predictions with form switch stories events.append(UserUtteranceReverted()) # trigger utter_ask_{form}_AA_CONTINUE_FORM, by making it the requested_slot events.append(SlotSet("AA_CONTINUE_FORM", None)) # # avoid that bot goes in listen mode after UserUtteranceReverted events.append(FollowupAction(active_form_name)) return events class ActionOutOfScope(Action): """Lists the contents of then known_recipients slot""" def name(self) -> Text: """Unique identifier of the action""" return "action_out_of_scope" async def run( self, dispatcher: CollectingDispatcher, tracker: Tracker, domain: Dict ) -> List[EventType]: """Executes the custom action""" dispatcher.utter_message( response="utter_out_of_scope", ) dispatcher.utter_message( response="utter_bot_function", ) events = [] active_form_name = tracker.active_form.get("name") if active_form_name: # keep the tracker clean for the predictions with form switch stories dispatcher.utter_message( response="utter_ask_continue", ) events.append(UserUtteranceReverted()) # trigger utter_ask_{form}_AA_CONTINUE_FORM, by making it the requested_slot events.append(SlotSet("AA_CONTINUE_FORM", None)) # # avoid that bot goes in listen mode after UserUtteranceReverted events.append(FollowupAction(active_form_name)) return events class ActionShowAllLoan(Action): """Lists the contents of then known_recipients slot""" def name(self) -> Text: """Unique identifier of the action""" return "action_show_all_loan" async def run( self, dispatcher: CollectingDispatcher, tracker: Tracker, domain: Dict ) -> List[EventType]: """Executes the custom action""" # loans = conn.list_loans() # formatted_loans = "\n" + "\n".join( # [f"- {loan[0]} : {loan[1]}VND" for loan in loans] # ) formatted_loans= "" dispatcher.utter_message( response="utter_loan_information", formatted_loans=formatted_loans, ) dispatcher.utter_message( response="utter_loan_information_addtion", ) events = [] active_form_name = tracker.active_form.get("name") if active_form_name: dispatcher.utter_message( response="utter_ask_continue", ) # keep the tracker clean for the predictions with form switch stories events.append(UserUtteranceReverted()) # trigger utter_ask_{form}_AA_CONTINUE_FORM, by making it the requested_slot events.append(SlotSet("AA_CONTINUE_FORM", None)) # # avoid that bot goes in listen mode after UserUtteranceReverted events.append(FollowupAction(active_form_name)) return events # class ActionShowDetailLoan(Action): # """Lists the contents of then known_recipients slot""" # def name(self) -> Text: # """Unique identifier of the action""" # return "action_show_detail_loan" # async def run( # self, dispatcher: CollectingDispatcher, tracker: Tracker, domain: Dict # ) -> List[EventType]: # """Executes the custom action""" # loan_name = tracker.get_slot("loan_name") # formatted_loan = "" # # loan_detail = conn.detail_loan(['loan_name'], [loan_name]) # # formatted_loan = "- Tên gói vay : {} \n- Số tiền : {}VND \n- Hình thức vay : {} \n- Yêu cầu : {} \ # # \n- Thời hạn vay : {} \n- Lãi xuất : {} \n- Thời gian giải ngân : {}".format(loan_detail[0][0], loan_detail[0][1], loan_detail[0][2], loan_detail[0][3], loan_detail[0][4], loan_detail[0][5], loan_detail[0][6]) # dispatcher.utter_message( # response="utter_detail_loan", # formatted_loan=formatted_loan, # ) # events = [] # active_form_name = tracker.active_form.get("name") # if active_form_name: # # keep the tracker clean for the predictions with form switch stories # events.append(UserUtteranceReverted()) # # trigger utter_ask_{form}_AA_CONTINUE_FORM, by making it the requested_slot # events.append(SlotSet("AA_CONTINUE_FORM", None)) # # # avoid that bot goes in listen mode after UserUtteranceReverted # events.append(FollowupAction(active_form_name)) # return events class ActionConfirmCallBackTime(Action): """Lists the contents of then known_recipients slot""" def name(self) -> Text: """Unique identifier of the action""" return "action_confirm_callback_time" async def run( self, dispatcher: CollectingDispatcher, tracker: Tracker, domain: Dict ) -> List[EventType]: """Executes the custom action""" time = tracker.get_slot('time') time = time.split('T') hour = time[1][:5] day = time[0][8:] month = time[0][5:7] year = time[0][0:4] formatted_time = "{} ngày {} tháng {} năm {}".format(hour, day, month, year) dispatcher.utter_message( response="utter_confirm_callback_time", formatted_time=formatted_time, ) events = [] active_form_name = tracker.active_form.get("name") if active_form_name: # keep the tracker clean for the predictions with form switch stories events.append(UserUtteranceReverted()) # trigger utter_ask_{form}_AA_CONTINUE_FORM, by making it the requested_slot events.append(SlotSet("AA_CONTINUE_FORM", None)) # # avoid that bot goes in listen mode after UserUtteranceReverted events.append(FollowupAction(active_form_name)) return events class ActionRepeat(Action): """Lists the contents of then known_recipients slot""" def name(self) -> Text: """Unique identifier of the action""" return "action_repeat" async def run( self, dispatcher: CollectingDispatcher, tracker: Tracker, domain: Dict ) -> List[EventType]: """Executes the custom action""" events = [] active_form_name = tracker.active_form.get("name") if not active_form_name: bot_events = next(e for e in reversed(tracker.events) if e["event"]== "bot") dispatcher.utter_message(bot_events.get("text")) if active_form_name: # keep the tracker clean for the predictions with form switch stories events.append(UserUtteranceReverted()) # trigger utter_ask_{form}_AA_CONTINUE_FORM, by making it the requested_slot events.append(SlotSet("AA_CONTINUE_FORM", None)) # # avoid that bot goes in listen mode after UserUtteranceReverted events.append(FollowupAction(active_form_name)) return events class ActionTimeGetMoney(Action): """Lists the contents of then known_recipients slot""" def name(self) -> Text: """Unique identifier of the action""" return "action_time_get_money" async def run( self, dispatcher: CollectingDispatcher, tracker: Tracker, domain: Dict ) -> List[EventType]: """Executes the custom action""" dispatcher.utter_message( response="utter_time_get_money", ) events = [] active_form_name = tracker.active_form.get("name") if active_form_name: dispatcher.utter_message( response="utter_ask_continue", ) # keep the tracker clean for the predictions with form switch stories events.append(UserUtteranceReverted()) # trigger utter_ask_{form}_AA_CONTINUE_FORM, by making it the requested_slot events.append(SlotSet("AA_CONTINUE_FORM", None)) # # avoid that bot goes in listen mode after UserUtteranceReverted events.append(FollowupAction(active_form_name)) return events class ActionMethobGetMoney(Action): """Lists the contents of then known_recipients slot""" def name(self) -> Text: """Unique identifier of the action""" return "action_methob_get_money" async def run( self, dispatcher: CollectingDispatcher, tracker: Tracker, domain: Dict ) -> List[EventType]: """Executes the custom action""" dispatcher.utter_message( response="utter_methob_get_money", ) events = [] active_form_name = tracker.active_form.get("name") if active_form_name: dispatcher.utter_message( response="utter_ask_continue", ) # keep the tracker clean for the predictions with form switch stories events.append(UserUtteranceReverted()) # trigger utter_ask_{form}_AA_CONTINUE_FORM, by making it the requested_slot events.append(SlotSet("AA_CONTINUE_FORM", None)) # # avoid that bot goes in listen mode after UserUtteranceReverted events.append(FollowupAction(active_form_name)) return events class ActionPurposeInformation(Action): """Lists the contents of then known_recipients slot""" def name(self) -> Text: """Unique identifier of the action""" return "action_purpose_information" async def run( self, dispatcher: CollectingDispatcher, tracker: Tracker, domain: Dict ) -> List[EventType]: """Executes the custom action""" dispatcher.utter_message( response="utter_purpose_information", ) events = [] active_form_name = tracker.active_form.get("name") if active_form_name: # keep the tracker clean for the predictions with form switch stories events.append(UserUtteranceReverted()) # trigger utter_ask_{form}_AA_CONTINUE_FORM, by making it the requested_slot events.append(SlotSet("AA_CONTINUE_FORM", None)) # # avoid that bot goes in listen mode after UserUtteranceReverted events.append(FollowupAction(active_form_name)) return events class ActionAcceptOrNot(Action): """Lists the contents of then known_recipients slot""" def name(self) -> Text: """Unique identifier of the action""" return "action_accept_or_not" async def run( self, dispatcher: CollectingDispatcher, tracker: Tracker, domain: Dict ) -> List[EventType]: """Executes the custom action""" dispatcher.utter_message( response="utter_accept_or_not", ) events = [] active_form_name = tracker.active_form.get("name") if active_form_name: # keep the tracker clean for the predictions with form switch stories events.append(UserUtteranceReverted()) # trigger utter_ask_{form}_AA_CONTINUE_FORM, by making it the requested_slot events.append(SlotSet("AA_CONTINUE_FORM", None)) # # avoid that bot goes in listen mode after UserUtteranceReverted events.append(FollowupAction(active_form_name)) # class ActionSetGender(Action): # def name(self) -> Text: # """Unique identifier of the action""" # return "action_set_gender" # async def run( # self, dispatcher: CollectingDispatcher, tracker: Tracker, domain: Dict # ) -> List[EventType]: # gender_value = list(tracker.get_latest_entity_values('gender_value'))[0] # slots = { # "gender_value": gender_value, # } # return [SlotSet(slot, value) for slot, value in slots.items()] class ActionCostConsulting(Action): """Lists the contents of then known_recipients slot""" def name(self) -> Text: """Unique identifier of the action""" return "action_cost_consulting" async def run( self, dispatcher: CollectingDispatcher, tracker: Tracker, domain: Dict ) -> List[EventType]: """Executes the custom action""" formatted_number_money = tracker.get_slot("number") formatted_profit = int(0.08 * formatted_number_money) formatted_money_received = int(formatted_number_money - formatted_profit) dispatcher.utter_message( response="utter_cost_consulting", formatted_number_money=formatted_number_money, formatted_profit=formatted_profit, formatted_money_received=formatted_money_received, ) events = [] active_form_name = tracker.active_form.get("name") if active_form_name: # keep the tracker clean for the predictions with form switch stories events.append(UserUtteranceReverted()) # trigger utter_ask_{form}_AA_CONTINUE_FORM, by making it the requested_slot events.append(SlotSet("AA_CONTINUE_FORM", None)) # # avoid that bot goes in listen mode after UserUtteranceReverted events.append(FollowupAction(active_form_name)) return events class ActionOverdueInterest(Action): """Lists the contents of then known_recipients slot""" def name(self) -> Text: """Unique identifier of the action""" return "action_overdue_interest" async def run( self, dispatcher: CollectingDispatcher, tracker: Tracker, domain: Dict ) -> List[EventType]: """Executes the custom action""" dispatcher.utter_message( response="utter_overdue_interest", ) formatted_number_money = tracker.get_slot("number") if formatted_number_money > 5000000: formatted_number_money = 5000000 if formatted_number_money != None and formatted_number_money>= 1000000: formatted_profit = int(0.3/365 * 5 * formatted_number_money) formatted_penalties = int(0.08 * formatted_number_money) formatted_compensation = 9000 * 5 formatted_total = formatted_profit + formatted_penalties + formatted_compensation dispatcher.utter_message( response="utter_detail_overdue_interest", formatted_number_money=formatted_number_money, formatted_profit=formatted_profit, formatted_penalties=formatted_penalties, formatted_compensation=formatted_compensation, formatted_total=formatted_total, ) events = [] active_form_name = tracker.active_form.get("name") if active_form_name: # keep the tracker clean for the predictions with form switch stories events.append(UserUtteranceReverted()) # trigger utter_ask_{form}_AA_CONTINUE_FORM, by making it the requested_slot events.append(SlotSet("AA_CONTINUE_FORM", None)) # # avoid that bot goes in listen mode after UserUtteranceReverted events.append(FollowupAction(active_form_name)) return events class ActionThankYou(Action): """Lists the contents of then known_recipients slot""" def name(self) -> Text: """Unique identifier of the action""" return "action_thank_you" async def run( self, dispatcher: CollectingDispatcher, tracker: Tracker, domain: Dict ) -> List[EventType]: """Executes the custom action""" dispatcher.utter_message( response="utter_noworries", ) events = [] active_form_name = tracker.active_form.get("name") if active_form_name: dispatcher.utter_message( response="utter_ask_continue", ) # keep the tracker clean for the predictions with form switch stories events.append(UserUtteranceReverted()) # trigger utter_ask_{form}_AA_CONTINUE_FORM, by making it the requested_slot events.append(SlotSet("AA_CONTINUE_FORM", None)) # # avoid that bot goes in listen mode after UserUtteranceReverted events.append(FollowupAction(active_form_name)) return events class ActionLoanHelper(Action): """Lists the contents of then known_recipients slot""" def name(self) -> Text: """Unique identifier of the action""" return "action_loan_helper" async def run( self, dispatcher: CollectingDispatcher, tracker: Tracker, domain: Dict ) -> List[EventType]: """Executes the custom action""" dispatcher.utter_message( response="utter_loan_helper", ) events = [] active_form_name = tracker.active_form.get("name") if active_form_name: dispatcher.utter_message( response="utter_ask_continue", ) # keep the tracker clean for the predictions with form switch stories events.append(UserUtteranceReverted()) # trigger utter_ask_{form}_AA_CONTINUE_FORM, by making it the requested_slot events.append(SlotSet("AA_CONTINUE_FORM", None)) # # avoid that bot goes in listen mode after UserUtteranceReverted events.append(FollowupAction(active_form_name)) return events class ActionInformationProvided(Action): """Lists the contents of then known_recipients slot""" def name(self) -> Text: """Unique identifier of the action""" return "action_information_provided" async def run( self, dispatcher: CollectingDispatcher, tracker: Tracker, domain: Dict ) -> List[EventType]: """Executes the custom action""" dispatcher.utter_message( response="utter_information_provided", ) events = [] active_form_name = tracker.active_form.get("name") if active_form_name: dispatcher.utter_message( response="utter_ask_continue", ) # keep the tracker clean for the predictions with form switch stories events.append(UserUtteranceReverted()) # trigger utter_ask_{form}_AA_CONTINUE_FORM, by making it the requested_slot events.append(SlotSet("AA_CONTINUE_FORM", None)) # # avoid that bot goes in listen mode after UserUtteranceReverted events.append(FollowupAction(active_form_name)) return events class ActionSignContract(Action): """Lists the contents of then known_recipients slot""" def name(self) -> Text: """Unique identifier of the action""" return "action_sign_contract" async def run( self, dispatcher: CollectingDispatcher, tracker: Tracker, domain: Dict ) -> List[EventType]: """Executes the custom action""" dispatcher.utter_message( response="utter_sign_contract", ) events = [] active_form_name = tracker.active_form.get("name") if active_form_name: dispatcher.utter_message( response="utter_ask_continue", ) # keep the tracker clean for the predictions with form switch stories events.append(UserUtteranceReverted()) # trigger utter_ask_{form}_AA_CONTINUE_FORM, by making it the requested_slot events.append(SlotSet("AA_CONTINUE_FORM", None)) # # avoid that bot goes in listen mode after UserUtteranceReverted events.append(FollowupAction(active_form_name)) return events class ActionSignContract(Action): """Lists the contents of then known_recipients slot""" def name(self) -> Text: """Unique identifier of the action""" return "action_sign_contract" async def run( self, dispatcher: CollectingDispatcher, tracker: Tracker, domain: Dict ) -> List[EventType]: """Executes the custom action""" dispatcher.utter_message( response="utter_sign_contract", ) events = [] active_form_name = tracker.active_form.get("name") if active_form_name: dispatcher.utter_message( response="utter_ask_continue", ) # keep the tracker clean for the predictions with form switch stories events.append(UserUtteranceReverted()) # trigger utter_ask_{form}_AA_CONTINUE_FORM, by making it the requested_slot events.append(SlotSet("AA_CONTINUE_FORM", None)) # # avoid that bot goes in listen mode after UserUtteranceReverted events.append(FollowupAction(active_form_name)) return events class ActionLoanExtention(Action): """Lists the contents of then known_recipients slot""" def name(self) -> Text: """Unique identifier of the action""" return "action_loan_extension" async def run( self, dispatcher: CollectingDispatcher, tracker: Tracker, domain: Dict ) -> List[EventType]: """Executes the custom action""" dispatcher.utter_message( response="utter_loan_extension", ) events = [] active_form_name = tracker.active_form.get("name") if active_form_name: dispatcher.utter_message( response="utter_ask_continue", ) # keep the tracker clean for the predictions with form switch stories events.append(UserUtteranceReverted()) # trigger utter_ask_{form}_AA_CONTINUE_FORM, by making it the requested_slot events.append(SlotSet("AA_CONTINUE_FORM", None)) # # avoid that bot goes in listen mode after UserUtteranceReverted events.append(FollowupAction(active_form_name)) return events class ActionLendingArea(Action): """Lists the contents of then known_recipients slot""" def name(self) -> Text: """Unique identifier of the action""" return "action_lending_area" async def run( self, dispatcher: CollectingDispatcher, tracker: Tracker, domain: Dict ) -> List[EventType]: """Executes the custom action""" dispatcher.utter_message( response="utter_lending_area", ) events = [] active_form_name = tracker.active_form.get("name") if active_form_name: dispatcher.utter_message( response="utter_ask_continue", ) # keep the tracker clean for the predictions with form switch stories events.append(UserUtteranceReverted()) # trigger utter_ask_{form}_AA_CONTINUE_FORM, by making it the requested_slot events.append(SlotSet("AA_CONTINUE_FORM", None)) # # avoid that bot goes in listen mode after UserUtteranceReverted events.append(FollowupAction(active_form_name)) return events class ActionLoanConsulting(Action): """Lists the contents of then known_recipients slot""" def name(self) -> Text: """Unique identifier of the action""" return "action_loan_consulting" async def run( self, dispatcher: CollectingDispatcher, tracker: Tracker, domain: Dict ) -> List[EventType]: """Executes the custom action""" dispatcher.utter_message( response="utter_loan_consulting", ) events = [] active_form_name = tracker.active_form.get("name") if active_form_name: dispatcher.utter_message( response="utter_ask_continue", ) # keep the tracker clean for the predictions with form switch stories events.append(UserUtteranceReverted()) # trigger utter_ask_{form}_AA_CONTINUE_FORM, by making it the requested_slot events.append(SlotSet("AA_CONTINUE_FORM", None)) # # avoid that bot goes in listen mode after UserUtteranceReverted events.append(FollowupAction(active_form_name)) return events class ActionExchangeFee(Action): """Lists the contents of then known_recipients slot""" def name(self) -> Text: """Unique identifier of the action""" return "action_exchange_fee" async def run( self, dispatcher: CollectingDispatcher, tracker: Tracker, domain: Dict ) -> List[EventType]: """Executes the custom action""" dispatcher.utter_message( response="utter_exchange_fee", ) events = [] active_form_name = tracker.active_form.get("name") if active_form_name: dispatcher.utter_message( response="utter_ask_continue", ) # keep the tracker clean for the predictions with form switch stories events.append(UserUtteranceReverted()) # trigger utter_ask_{form}_AA_CONTINUE_FORM, by making it the requested_slot events.append(SlotSet("AA_CONTINUE_FORM", None)) # # avoid that bot goes in listen mode after UserUtteranceReverted events.append(FollowupAction(active_form_name)) return events class ActionHighInterest(Action): """Lists the contents of then known_recipients slot""" def name(self) -> Text: """Unique identifier of the action""" return "action_high_interest" async def run( self, dispatcher: CollectingDispatcher, tracker: Tracker, domain: Dict ) -> List[EventType]: """Executes the custom action""" dispatcher.utter_message( response="utter_high_interest", ) events = [] active_form_name = tracker.active_form.get("name") if active_form_name: dispatcher.utter_message( response="utter_ask_continue", ) # keep the tracker clean for the predictions with form switch stories events.append(UserUtteranceReverted()) # trigger utter_ask_{form}_AA_CONTINUE_FORM, by making it the requested_slot events.append(SlotSet("AA_CONTINUE_FORM", None)) # # avoid that bot goes in listen mode after UserUtteranceReverted events.append(FollowupAction(active_form_name)) return events class ActionLoanType(Action): """Lists the contents of then known_recipients slot""" def name(self) -> Text: """Unique identifier of the action""" return "action_loan_type" async def run( self, dispatcher: CollectingDispatcher, tracker: Tracker, domain: Dict ) -> List[EventType]: """Executes the custom action""" dispatcher.utter_message( response="utter_loan_type", ) events = [] active_form_name = tracker.active_form.get("name") if active_form_name: dispatcher.utter_message( response="utter_ask_continue", ) # keep the tracker clean for the predictions with form switch stories events.append(UserUtteranceReverted()) # trigger utter_ask_{form}_AA_CONTINUE_FORM, by making it the requested_slot events.append(SlotSet("AA_CONTINUE_FORM", None)) # # avoid that bot goes in listen mode after UserUtteranceReverted events.append(FollowupAction(active_form_name)) return events class ActionLoanProcess(Action): """Lists the contents of then known_recipients slot""" def name(self) -> Text: """Unique identifier of the action""" return "action_loan_process" async def run( self, dispatcher: CollectingDispatcher, tracker: Tracker, domain: Dict ) -> List[EventType]: """Executes the custom action""" dispatcher.utter_message( response="utter_loan_process", ) events = [] active_form_name = tracker.active_form.get("name") if active_form_name: dispatcher.utter_message( response="utter_ask_continue", ) # keep the tracker clean for the predictions with form switch stories events.append(UserUtteranceReverted()) # trigger utter_ask_{form}_AA_CONTINUE_FORM, by making it the requested_slot events.append(SlotSet("AA_CONTINUE_FORM", None)) # # avoid that bot goes in listen mode after UserUtteranceReverted events.append(FollowupAction(active_form_name)) return events class ActionIncentives(Action): """Lists the contents of then known_recipients slot""" def name(self) -> Text: """Unique identifier of the action""" return "action_incentives" async def run( self, dispatcher: CollectingDispatcher, tracker: Tracker, domain: Dict ) -> List[EventType]: """Executes the custom action""" dispatcher.utter_message( response="utter_incentives", ) events = [] active_form_name = tracker.active_form.get("name") if active_form_name: dispatcher.utter_message( response="utter_ask_continue", ) # keep the tracker clean for the predictions with form switch stories events.append(UserUtteranceReverted()) # trigger utter_ask_{form}_AA_CONTINUE_FORM, by making it the requested_slot events.append(SlotSet("AA_CONTINUE_FORM", None)) # # avoid that bot goes in listen mode after UserUtteranceReverted events.append(FollowupAction(active_form_name)) return events class ActionLoanAppraisal(Action): """Lists the contents of then known_recipients slot""" def name(self) -> Text: """Unique identifier of the action""" return "action_loan_appraisal" async def run( self, dispatcher: CollectingDispatcher, tracker: Tracker, domain: Dict ) -> List[EventType]: """Executes the custom action""" dispatcher.utter_message( response="utter_loan_appraisal", ) events = [] active_form_name = tracker.active_form.get("name") if active_form_name: dispatcher.utter_message( response="utter_ask_continue", ) # keep the tracker clean for the predictions with form switch stories events.append(UserUtteranceReverted()) # trigger utter_ask_{form}_AA_CONTINUE_FORM, by making it the requested_slot events.append(SlotSet("AA_CONTINUE_FORM", None)) # # avoid that bot goes in listen mode after UserUtteranceReverted events.append(FollowupAction(active_form_name)) return events class ActionBadDebt(Action): """Lists the contents of then known_recipients slot""" def name(self) -> Text: """Unique identifier of the action""" return "action_bad_debt" async def run( self, dispatcher: CollectingDispatcher, tracker: Tracker, domain: Dict ) -> List[EventType]: """Executes the custom action""" dispatcher.utter_message( response="utter_bad_debt", ) events = [] active_form_name = tracker.active_form.get("name") if active_form_name: dispatcher.utter_message( response="utter_ask_continue", ) # keep the tracker clean for the predictions with form switch stories events.append(UserUtteranceReverted()) # trigger utter_ask_{form}_AA_CONTINUE_FORM, by making it the requested_slot events.append(SlotSet("AA_CONTINUE_FORM", None)) # # avoid that bot goes in listen mode after UserUtteranceReverted events.append(FollowupAction(active_form_name)) return events class ActionContactInformation(Action): """Lists the contents of then known_recipients slot""" def name(self) -> Text: """Unique identifier of the action""" return "action_contact_information" async def run( self, dispatcher: CollectingDispatcher, tracker: Tracker, domain: Dict ) -> List[EventType]: """Executes the custom action""" dispatcher.utter_message( response="utter_contact_information", ) events = [] active_form_name = tracker.active_form.get("name") if active_form_name: dispatcher.utter_message( response="utter_ask_continue", ) # keep the tracker clean for the predictions with form switch stories events.append(UserUtteranceReverted()) # trigger utter_ask_{form}_AA_CONTINUE_FORM, by making it the requested_slot events.append(SlotSet("AA_CONTINUE_FORM", None)) # # avoid that bot goes in listen mode after UserUtteranceReverted events.append(FollowupAction(active_form_name)) return events class ActionLoanError(Action): """Lists the contents of then known_recipients slot""" def name(self) -> Text: """Unique identifier of the action""" return "action_loan_error" async def run( self, dispatcher: CollectingDispatcher, tracker: Tracker, domain: Dict ) -> List[EventType]: """Executes the custom action""" dispatcher.utter_message( response="utter_loan_error", ) events = [] active_form_name = tracker.active_form.get("name") if active_form_name: dispatcher.utter_message( response="utter_ask_continue", ) # keep the tracker clean for the predictions with form switch stories events.append(UserUtteranceReverted()) # trigger utter_ask_{form}_AA_CONTINUE_FORM, by making it the requested_slot events.append(SlotSet("AA_CONTINUE_FORM", None)) # # avoid that bot goes in listen mode after UserUtteranceReverted events.append(FollowupAction(active_form_name)) return events class ActionNotAccept(Action): """Lists the contents of then known_recipients slot""" def name(self) -> Text: """Unique identifier of the action""" return "action_not_accept" async def run( self, dispatcher: CollectingDispatcher, tracker: Tracker, domain: Dict ) -> List[EventType]: """Executes the custom action""" dispatcher.utter_message( response="utter_not_accept", ) events = [] active_form_name = tracker.active_form.get("name") if active_form_name: dispatcher.utter_message( response="utter_ask_continue", ) # keep the tracker clean for the predictions with form switch stories events.append(UserUtteranceReverted()) # trigger utter_ask_{form}_AA_CONTINUE_FORM, by making it the requested_slot events.append(SlotSet("AA_CONTINUE_FORM", None)) # # avoid that bot goes in listen mode after UserUtteranceReverted events.append(FollowupAction(active_form_name)) return events class ActionDeptCollectionPolicy(Action): """Lists the contents of then known_recipients slot""" def name(self) -> Text: """Unique identifier of the action""" return "action_debt_collection_policy" async def run( self, dispatcher: CollectingDispatcher, tracker: Tracker, domain: Dict ) -> List[EventType]: """Executes the custom action""" dispatcher.utter_message( response="utter_debt_collection_policy", ) events = [] active_form_name = tracker.active_form.get("name") if active_form_name: dispatcher.utter_message( response="utter_ask_continue", ) # keep the tracker clean for the predictions with form switch stories events.append(UserUtteranceReverted()) # trigger utter_ask_{form}_AA_CONTINUE_FORM, by making it the requested_slot events.append(SlotSet("AA_CONTINUE_FORM", None)) # # avoid that bot goes in listen mode after UserUtteranceReverted events.append(FollowupAction(active_form_name)) return events class ActionIncomeCondition(Action): """Lists the contents of then known_recipients slot""" def name(self) -> Text: """Unique identifier of the action""" return "action_income_condition" async def run( self, dispatcher: CollectingDispatcher, tracker: Tracker, domain: Dict ) -> List[EventType]: """Executes the custom action""" dispatcher.utter_message( response="utter_income_condition", ) events = [] active_form_name = tracker.active_form.get("name") if active_form_name: dispatcher.utter_message( response="utter_ask_continue", ) # keep the tracker clean for the predictions with form switch stories events.append(UserUtteranceReverted()) # trigger utter_ask_{form}_AA_CONTINUE_FORM, by making it the requested_slot events.append(SlotSet("AA_CONTINUE_FORM", None)) # # avoid that bot goes in listen mode after UserUtteranceReverted events.append(FollowupAction(active_form_name)) return events class ActionFillInfoRequest(Action): """Lists the contents of then known_recipients slot""" def name(self) -> Text: """Unique identifier of the action""" return "action_fill_info_request" async def run( self, dispatcher: CollectingDispatcher, tracker: Tracker, domain: Dict ) -> List[EventType]: """Executes the custom action""" dispatcher.utter_message( response="utter_fill_info_request", ) events = [] active_form_name = tracker.active_form.get("name") if active_form_name: dispatcher.utter_message( response="utter_ask_continue", ) # keep the tracker clean for the predictions with form switch stories events.append(UserUtteranceReverted()) # trigger utter_ask_{form}_AA_CONTINUE_FORM, by making it the requested_slot events.append(SlotSet("AA_CONTINUE_FORM", None)) # # avoid that bot goes in listen mode after UserUtteranceReverted events.append(FollowupAction(active_form_name)) return events class ActionSurcharge(Action): """Lists the contents of then known_recipients slot""" def name(self) -> Text: """Unique identifier of the action""" return "action_surcharge" async def run( self, dispatcher: CollectingDispatcher, tracker: Tracker, domain: Dict ) -> List[EventType]: """Executes the custom action""" dispatcher.utter_message( response="utter_surcharge", ) events = [] active_form_name = tracker.active_form.get("name") if active_form_name: dispatcher.utter_message( response="utter_ask_continue", ) # keep the tracker clean for the predictions with form switch stories events.append(UserUtteranceReverted()) # trigger utter_ask_{form}_AA_CONTINUE_FORM, by making it the requested_slot events.append(SlotSet("AA_CONTINUE_FORM", None)) # # avoid that bot goes in listen mode after UserUtteranceReverted events.append(FollowupAction(active_form_name)) return events class ActionMortgage(Action): """Lists the contents of then known_recipients slot""" def name(self) -> Text: """Unique identifier of the action""" return "action_mortgage" async def run( self, dispatcher: CollectingDispatcher, tracker: Tracker, domain: Dict ) -> List[EventType]: """Executes the custom action""" dispatcher.utter_message( response="utter_mortgage", ) events = [] active_form_name = tracker.active_form.get("name") if active_form_name: dispatcher.utter_message( response="utter_ask_continue", ) # keep the tracker clean for the predictions with form switch stories events.append(UserUtteranceReverted()) # trigger utter_ask_{form}_AA_CONTINUE_FORM, by making it the requested_slot events.append(SlotSet("AA_CONTINUE_FORM", None)) # # avoid that bot goes in listen mode after UserUtteranceReverted events.append(FollowupAction(active_form_name)) return events class ActionLoanSecurity(Action): """Lists the contents of then known_recipients slot""" def name(self) -> Text: """Unique identifier of the action""" return "action_loan_security" async def run( self, dispatcher: CollectingDispatcher, tracker: Tracker, domain: Dict ) -> List[EventType]: """Executes the custom action""" dispatcher.utter_message( response="utter_loan_security", ) events = [] active_form_name = tracker.active_form.get("name") if active_form_name: dispatcher.utter_message( response="utter_ask_continue", ) # keep the tracker clean for the predictions with form switch stories events.append(UserUtteranceReverted()) # trigger utter_ask_{form}_AA_CONTINUE_FORM, by making it the requested_slot events.append(SlotSet("AA_CONTINUE_FORM", None)) # # avoid that bot goes in listen mode after UserUtteranceReverted events.append(FollowupAction(active_form_name)) return events class ActionDisbursement(Action): """Lists the contents of then known_recipients slot""" def name(self) -> Text: """Unique identifier of the action""" return "action_disbursement" async def run( self, dispatcher: CollectingDispatcher, tracker: Tracker, domain: Dict ) -> List[EventType]: """Executes the custom action""" dispatcher.utter_message( response="utter_disbursement", ) events = [] active_form_name = tracker.active_form.get("name") if active_form_name: dispatcher.utter_message( response="utter_ask_continue", ) # keep the tracker clean for the predictions with form switch stories events.append(UserUtteranceReverted()) # trigger utter_ask_{form}_AA_CONTINUE_FORM, by making it the requested_slot events.append(SlotSet("AA_CONTINUE_FORM", None)) # # avoid that bot goes in listen mode after UserUtteranceReverted events.append(FollowupAction(active_form_name)) return events class ActionContractInformation(Action): """Lists the contents of then known_recipients slot""" def name(self) -> Text: """Unique identifier of the action""" return "action_contract_information" async def run( self, dispatcher: CollectingDispatcher, tracker: Tracker, domain: Dict ) -> List[EventType]: """Executes the custom action""" dispatcher.utter_message( response="utter_contract_information", ) events = [] active_form_name = tracker.active_form.get("name") if active_form_name: dispatcher.utter_message( response="utter_ask_continue", ) # keep the tracker clean for the predictions with form switch stories events.append(UserUtteranceReverted()) # trigger utter_ask_{form}_AA_CONTINUE_FORM, by making it the requested_slot events.append(SlotSet("AA_CONTINUE_FORM", None)) # # avoid that bot goes in listen mode after UserUtteranceReverted events.append(FollowupAction(active_form_name)) return events class ActionInterestPaymentPeriod(Action): """Lists the contents of then known_recipients slot""" def name(self) -> Text: """Unique identifier of the action""" return "action_interest_payment_period" async def run( self, dispatcher: CollectingDispatcher, tracker: Tracker, domain: Dict ) -> List[EventType]: """Executes the custom action""" dispatcher.utter_message( response="utter_interest_payment_period", ) events = [] active_form_name = tracker.active_form.get("name") if active_form_name: dispatcher.utter_message( response="utter_ask_continue", ) # keep the tracker clean for the predictions with form switch stories events.append(UserUtteranceReverted()) # trigger utter_ask_{form}_AA_CONTINUE_FORM, by making it the requested_slot events.append(SlotSet("AA_CONTINUE_FORM", None)) # # avoid that bot goes in listen mode after UserUtteranceReverted events.append(FollowupAction(active_form_name)) return events class ActionBorrower(Action): """Lists the contents of then known_recipients slot""" def name(self) -> Text: """Unique identifier of the action""" return "action_borrower" async def run( self, dispatcher: CollectingDispatcher, tracker: Tracker, domain: Dict ) -> List[EventType]: """Executes the custom action""" dispatcher.utter_message( response="utter_borrower", ) events = [] active_form_name = tracker.active_form.get("name") if active_form_name: dispatcher.utter_message( response="utter_ask_continue", ) # keep the tracker clean for the predictions with form switch stories events.append(UserUtteranceReverted()) # trigger utter_ask_{form}_AA_CONTINUE_FORM, by making it the requested_slot events.append(SlotSet("AA_CONTINUE_FORM", None)) # # avoid that bot goes in listen mode after UserUtteranceReverted events.append(FollowupAction(active_form_name)) return events class ActionCicIntroduce(Action): """Lists the contents of then known_recipients slot""" def name(self) -> Text: """Unique identifier of the action""" return "action_cic_introduce" async def run( self, dispatcher: CollectingDispatcher, tracker: Tracker, domain: Dict ) -> List[EventType]: """Executes the custom action""" dispatcher.utter_message( response="utter_cic_introduce", ) events = [] active_form_name = tracker.active_form.get("name") if active_form_name: dispatcher.utter_message( response="utter_ask_continue", ) # keep the tracker clean for the predictions with form switch stories events.append(UserUtteranceReverted()) # trigger utter_ask_{form}_AA_CONTINUE_FORM, by making it the requested_slot events.append(SlotSet("AA_CONTINUE_FORM", None)) # # avoid that bot goes in listen mode after UserUtteranceReverted events.append(FollowupAction(active_form_name)) return events class ActionBot(Action): """Lists the contents of then known_recipients slot""" def name(self) -> Text: """Unique identifier of the action""" return "action_bot" async def run( self, dispatcher: CollectingDispatcher, tracker: Tracker, domain: Dict ) -> List[EventType]: """Executes the custom action""" dispatcher.utter_message( response="utter_bot", ) events = [] active_form_name = tracker.active_form.get("name") if active_form_name: dispatcher.utter_message( response="utter_ask_continue", ) # keep the tracker clean for the predictions with form switch stories events.append(UserUtteranceReverted()) # trigger utter_ask_{form}_AA_CONTINUE_FORM, by making it the requested_slot events.append(SlotSet("AA_CONTINUE_FORM", None)) # # avoid that bot goes in listen mode after UserUtteranceReverted events.append(FollowupAction(active_form_name)) return events class ActionExclamationSentence(Action): """Lists the contents of then known_recipients slot""" def name(self) -> Text: """Unique identifier of the action""" return "action_exclamation_sentence" async def run( self, dispatcher: CollectingDispatcher, tracker: Tracker, domain: Dict ) -> List[EventType]: """Executes the custom action""" dispatcher.utter_message( response="utter_exclamation_sentence", ) events = [] active_form_name = tracker.active_form.get("name") if active_form_name: dispatcher.utter_message( response="utter_ask_continue", ) # keep the tracker clean for the predictions with form switch stories events.append(UserUtteranceReverted()) # trigger utter_ask_{form}_AA_CONTINUE_FORM, by making it the requested_slot events.append(SlotSet("AA_CONTINUE_FORM", None)) # # avoid that bot goes in listen mode after UserUtteranceReverted events.append(FollowupAction(active_form_name)) return events class ActionCheckLoanAmount(Action): """Lists the contents of then known_recipients slot""" def name(self) -> Text: """Unique identifier of the action""" return "action_check_loan_amount" async def run( self, dispatcher: CollectingDispatcher, tracker: Tracker, domain: Dict ) -> List[EventType]: """Executes the custom action""" amount_of_money = float(tracker.get_slot('number')) if amount_of_money > 5000000: dispatcher.utter_message( text="Rất tiếc, hiện nay công ty em chỉ cho vay tối đa là 5 triệu đồng", ) else: dispatcher.utter_message( text="Dạ được ạ. Anh chị vui lòng vào [link đăng kí](https://www.vndcredit.vn) để điền các thông tin cần thiết để thực hiện khoản vay.", ) events = [] active_form_name = tracker.active_form.get("name") if active_form_name: dispatcher.utter_message( response="utter_ask_continue", ) # keep the tracker clean for the predictions with form switch stories events.append(UserUtteranceReverted()) # trigger utter_ask_{form}_AA_CONTINUE_FORM, by making it the requested_slot events.append(SlotSet("AA_CONTINUE_FORM", None)) # # avoid that bot goes in listen mode after UserUtteranceReverted events.append(FollowupAction(active_form_name)) return events class ActionVerifyUserConfirm(Action): """Lists the contents of then known_recipients slot""" def name(self) -> Text: """Unique identifier of the action""" return "action_verify_user_confirm" async def run( self, dispatcher: CollectingDispatcher, tracker: Tracker, domain: Dict ) -> List[EventType]: """Executes the custom action""" amount_of_money = next(tracker.get_latest_entity_values("number"), None) if amount_of_money!= None: if float(amount_of_money) <= 5000000: dispatcher.utter_message( response="utter_verify_user_confirm", ) else: dispatcher.utter_message( response="utter_verify_number_of_money", ) else: dispatcher.utter_message( response="utter_verify_user_confirm", ) events = [] active_form_name = tracker.active_form.get("name") if active_form_name: dispatcher.utter_message( response="utter_ask_continue", ) # keep the tracker clean for the predictions with form switch stories events.append(UserUtteranceReverted()) # trigger utter_ask_{form}_AA_CONTINUE_FORM, by making it the requested_slot events.append(SlotSet("AA_CONTINUE_FORM", None)) # # avoid that bot goes in listen mode after UserUtteranceReverted events.append(FollowupAction(active_form_name)) return events class ActionSad(Action): """Lists the contents of then known_recipients slot""" def name(self) -> Text: """Unique identifier of the action""" return "action_sad" async def run( self, dispatcher: CollectingDispatcher, tracker: Tracker, domain: Dict ) -> List[EventType]: """Executes the custom action""" dispatcher.utter_message( response="utter_sad", ) events = [] active_form_name = tracker.active_form.get("name") if active_form_name: dispatcher.utter_message( response="utter_ask_continue", ) # keep the tracker clean for the predictions with form switch stories events.append(UserUtteranceReverted()) # trigger utter_ask_{form}_AA_CONTINUE_FORM, by making it the requested_slot events.append(SlotSet("AA_CONTINUE_FORM", None)) # # avoid that bot goes in listen mode after UserUtteranceReverted events.append(FollowupAction(active_form_name)) return events class ActionNotPaid(Action): """Lists the contents of then known_recipients slot""" def name(self) -> Text: """Unique identifier of the action""" return "action_not_paid" async def run( self, dispatcher: CollectingDispatcher, tracker: Tracker, domain: Dict ) -> List[EventType]: """Executes the custom action""" dispatcher.utter_message( response="utter_not_paid", ) events = [] active_form_name = tracker.active_form.get("name") if active_form_name: dispatcher.utter_message( response="utter_ask_continue", ) # keep the tracker clean for the predictions with form switch stories events.append(UserUtteranceReverted()) # trigger utter_ask_{form}_AA_CONTINUE_FORM, by making it the requested_slot events.append(SlotSet("AA_CONTINUE_FORM", None)) # # avoid that bot goes in listen mode after UserUtteranceReverted events.append(FollowupAction(active_form_name)) return events class ActionHelp(Action): """Lists the contents of then known_recipients slot""" def name(self) -> Text: """Unique identifier of the action""" return "action_help" async def run( self, dispatcher: CollectingDispatcher, tracker: Tracker, domain: Dict ) -> List[EventType]: """Executes the custom action""" dispatcher.utter_message( response="utter_help", ) events = [] active_form_name = tracker.active_form.get("name") if active_form_name: dispatcher.utter_message( response="utter_ask_continue", ) # keep the tracker clean for the predictions with form switch stories events.append(UserUtteranceReverted()) # trigger utter_ask_{form}_AA_CONTINUE_FORM, by making it the requested_slot events.append(SlotSet("AA_CONTINUE_FORM", None)) # # avoid that bot goes in listen mode after UserUtteranceReverted events.append(FollowupAction(active_form_name)) return events class ActionNotInterest(Action): """Lists the contents of then known_recipients slot""" def name(self) -> Text: """Unique identifier of the action""" return "action_not_interest" async def run( self, dispatcher: CollectingDispatcher, tracker: Tracker, domain: Dict ) -> List[EventType]: """Executes the custom action""" dispatcher.utter_message( response="utter_not_interest", ) events = [] active_form_name = tracker.active_form.get("name") if active_form_name: dispatcher.utter_message( response="utter_ask_continue", ) # keep the tracker clean for the predictions with form switch stories events.append(UserUtteranceReverted()) # trigger utter_ask_{form}_AA_CONTINUE_FORM, by making it the requested_slot events.append(SlotSet("AA_CONTINUE_FORM", None)) # # avoid that bot goes in listen mode after UserUtteranceReverted events.append(FollowupAction(active_form_name)) return events
34.207279
248
0.669141
8,847
77,069
5.625975
0.058664
0.047415
0.050349
0.068712
0.840456
0.825809
0.815743
0.798686
0.793603
0.78203
0
0.002048
0.233271
77,069
2,253
249
34.207279
0.840263
0.279204
0
0.640671
0
0.000729
0.130875
0.035175
0
0
0
0
0
1
0.048105
false
0.000729
0.010933
0.004373
0.212099
0.000729
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
2b0b21d62962907350fcb17ed6fe7962a771e1fd
62
py
Python
tests/subscribe/__init__.py
bwold001/django-push
ee83ff553aa4bdf2ff969f5443971450cdd25eb5
[ "BSD-3-Clause" ]
38
2015-02-04T15:48:01.000Z
2020-12-27T19:34:28.000Z
tests/subscribe/__init__.py
bwold001/django-push
ee83ff553aa4bdf2ff969f5443971450cdd25eb5
[ "BSD-3-Clause" ]
12
2015-04-03T23:35:40.000Z
2019-05-27T09:46:49.000Z
cvproject/Lib/site-packages/tests/subscribe/__init__.py
MdReyajuddin/Big-Project-Codes
79ab22f2f51e29e2ff17f680306877559c719a56
[ "BSD-3-Clause" ]
9
2015-02-15T08:13:03.000Z
2019-06-02T17:23:57.000Z
def credentials(hub_url): return ('username', 'password')
20.666667
35
0.693548
7
62
6
1
0
0
0
0
0
0
0
0
0
0
0
0.145161
62
2
36
31
0.792453
0
0
0
0
0
0.258065
0
0
0
0
0
0
1
0.5
false
0.5
0
0.5
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
1
1
0
0
6
990bd0591e3b2d7874d44f1919d22506eb106554
262
py
Python
odoo-13.0/addons/stock_dropshipping/tests/__init__.py
VaibhavBhujade/Blockchain-ERP-interoperability
b5190a037fb6615386f7cbad024d51b0abd4ba03
[ "MIT" ]
null
null
null
odoo-13.0/addons/stock_dropshipping/tests/__init__.py
VaibhavBhujade/Blockchain-ERP-interoperability
b5190a037fb6615386f7cbad024d51b0abd4ba03
[ "MIT" ]
null
null
null
odoo-13.0/addons/stock_dropshipping/tests/__init__.py
VaibhavBhujade/Blockchain-ERP-interoperability
b5190a037fb6615386f7cbad024d51b0abd4ba03
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from . import test_crossdock from . import test_dropship from . import test_lifo_price from . import test_procurement_exception from . import test_stockvaluation
29.111111
74
0.78626
37
262
5.378378
0.675676
0.251256
0.351759
0
0
0
0
0
0
0
0
0.004484
0.148855
262
8
75
32.75
0.887892
0.358779
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
6
5118cc8b11bfbfb294ab5fdee205dde5ddca4c0c
48
py
Python
__init__.py
IAmSuyogJadhav/pytorch-unsupervised-segmentation-tip
2094ec9c7728d49928d6806286c03fcd14c2042b
[ "MIT" ]
null
null
null
__init__.py
IAmSuyogJadhav/pytorch-unsupervised-segmentation-tip
2094ec9c7728d49928d6806286c03fcd14c2042b
[ "MIT" ]
null
null
null
__init__.py
IAmSuyogJadhav/pytorch-unsupervised-segmentation-tip
2094ec9c7728d49928d6806286c03fcd14c2042b
[ "MIT" ]
null
null
null
from .main import deep_unsupervised_segmentation
48
48
0.916667
6
48
7
1
0
0
0
0
0
0
0
0
0
0
0
0.0625
48
1
48
48
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
5140f75e39419649896555ec7a127cd87958fbea
115
py
Python
portfolio_project/demo/views.py
KimEunYeol/web-portfolio
cd56191bdf12c712b252015d3ecb31b037f922ed
[ "MIT" ]
null
null
null
portfolio_project/demo/views.py
KimEunYeol/web-portfolio
cd56191bdf12c712b252015d3ecb31b037f922ed
[ "MIT" ]
7
2021-03-19T03:41:33.000Z
2022-03-12T00:30:35.000Z
portfolio_project/demo/views.py
KimEunYeol/web-portfolio
cd56191bdf12c712b252015d3ecb31b037f922ed
[ "MIT" ]
null
null
null
from django.shortcuts import render def demo(request): return render(request, 'demo/demo.html', context=None)
23
58
0.756522
16
115
5.4375
0.75
0
0
0
0
0
0
0
0
0
0
0
0.130435
115
5
58
23
0.87
0
0
0
0
0
0.12069
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
516962203d5ee7acd40cf8eb5305aa5bffd08586
42
py
Python
xlib/api/win32/oaidl/__init__.py
jkennedyvz/DeepFaceLive
274c20808da089eb7fc0fc0e8abe649379a29ffe
[ "MIT" ]
null
null
null
xlib/api/win32/oaidl/__init__.py
jkennedyvz/DeepFaceLive
274c20808da089eb7fc0fc0e8abe649379a29ffe
[ "MIT" ]
null
null
null
xlib/api/win32/oaidl/__init__.py
jkennedyvz/DeepFaceLive
274c20808da089eb7fc0fc0e8abe649379a29ffe
[ "MIT" ]
null
null
null
from .oaidl import IPropertyBag, IErrorLog
42
42
0.857143
5
42
7.2
1
0
0
0
0
0
0
0
0
0
0
0
0.095238
42
1
42
42
0.947368
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
5ab9fb41d5c06ebb54038ddf00e99d531562b5d4
29
py
Python
source/__init__.py
vered1986/NC_embeddings
8dec4e2f7918ab7606abf61b9d90e4f2786a9652
[ "Apache-2.0" ]
9
2019-06-11T02:55:07.000Z
2019-09-04T23:51:36.000Z
source/__init__.py
vered1986/NC_embeddings
8dec4e2f7918ab7606abf61b9d90e4f2786a9652
[ "Apache-2.0" ]
null
null
null
source/__init__.py
vered1986/NC_embeddings
8dec4e2f7918ab7606abf61b9d90e4f2786a9652
[ "Apache-2.0" ]
2
2020-08-26T10:20:07.000Z
2021-02-24T07:00:33.000Z
from source.training import *
29
29
0.827586
4
29
6
1
0
0
0
0
0
0
0
0
0
0
0
0.103448
29
1
29
29
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
5ac8f91c55a979d29fb2b750680e70f37379dd4f
96
py
Python
venv/lib/python3.8/site-packages/virtualenv/activation/via_template.py
Retraces/UkraineBot
3d5d7f8aaa58fa0cb8b98733b8808e5dfbdb8b71
[ "MIT" ]
2
2022-03-13T01:58:52.000Z
2022-03-31T06:07:54.000Z
venv/lib/python3.8/site-packages/virtualenv/activation/via_template.py
DesmoSearch/Desmobot
b70b45df3485351f471080deb5c785c4bc5c4beb
[ "MIT" ]
19
2021-11-20T04:09:18.000Z
2022-03-23T15:05:55.000Z
venv/lib/python3.8/site-packages/virtualenv/activation/via_template.py
DesmoSearch/Desmobot
b70b45df3485351f471080deb5c785c4bc5c4beb
[ "MIT" ]
null
null
null
/home/runner/.cache/pip/pool/53/c2/e0/1fe9724e35c840151d6ddd31399a573480a988a86c7e9899c33420eed5
96
96
0.895833
9
96
9.555556
1
0
0
0
0
0
0
0
0
0
0
0.46875
0
96
1
96
96
0.427083
0
0
0
0
0
0
0
0
1
0
0
0
0
null
null
0
0
null
null
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
1
0
0
0
0
0
0
0
null
1
0
0
0
1
0
0
0
0
0
0
0
0
6
51ee856326fce1a39550355a2eb22e6e2d870e93
24,349
py
Python
tests/test_Cluster.py
ekpgh/AvereSDK-1
1e3584f08d2fb519ea3870e7e440cded9aacacd2
[ "MIT" ]
5
2018-11-19T22:19:37.000Z
2020-05-20T13:33:15.000Z
tests/test_Cluster.py
ekpgh/AvereSDK-1
1e3584f08d2fb519ea3870e7e440cded9aacacd2
[ "MIT" ]
2
2019-03-07T23:59:08.000Z
2019-03-20T21:47:25.000Z
tests/test_Cluster.py
ekpgh/AvereSDK-1
1e3584f08d2fb519ea3870e7e440cded9aacacd2
[ "MIT" ]
3
2019-02-27T18:55:58.000Z
2020-12-28T10:15:50.000Z
#!/usr/bin/python # Copyright (c) 2015-2020 Avere Systems, Inc. All Rights Reserved. # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See LICENSE in the project root for license information. import unittest import time import logging from vFXT.cluster import Cluster import vFXT.service import tests.vFXTTestCase logging.basicConfig() log = logging.getLogger(__name__) class Cluster_test(tests.vFXTTestCase.Base): def test__init__aws(self): if not self.aws['enabled']: self.skipTest("skipping test for AWS") aws = self.mk_aws_service() self.assertIsInstance(aws, vFXT.aws.Service) cluster = Cluster(service=aws) self.assertIsInstance(cluster, Cluster) def _check_all_nodes_have_cluster_addresses(self, cluster, retries=300): while True: if all([len(_.in_use_addresses()) > 1 for _ in cluster.nodes]): break if retries == 0: self.fail("All nodes have cluster addresses assigned") retries -= 1 cluster._sleep(1) cluster.refresh() def _run_cluster_steps(self, cluster, skip_corefiler=False, use_instance_for_mgmt=False, custom_corefiler_name=None): service = cluster.service self.assertIsInstance(cluster, Cluster) self.assertTrue(cluster.is_on()) self.assertTrue(len(cluster.nodes) == 3) self.assertTrue(cluster.xmlrpc().cluster.get()) # verify we can load the cluster and get the same info back mgmt_ip = cluster.nodes[0].ip() if use_instance_for_mgmt else cluster.mgmt_ip loaded = Cluster.load(service, mgmt_ip=mgmt_ip, admin_password=cluster.admin_password) loaded.refresh() self.assertTrue(len(loaded.nodes) == len(cluster.nodes)) loaded_export = loaded.export() cluster_export = cluster.export() loaded_export['nodes'].sort() # may be out of order cluster_export['nodes'].sort() # may be out of order self.assertDictEqual(cluster_export, loaded_export) initted = Cluster(service, **loaded_export) initted_export = initted.export() initted_export['nodes'].sort() # may be out of order self.assertDictEqual(cluster_export, initted_export) # check that all nodes have more than one address self._check_all_nodes_have_cluster_addresses(cluster) # add vserver, corefiler cluster.add_vserver('vserver') cluster.wait_for_healthcheck(state='green', duration=10) self.assertTrue(cluster.xmlrpc().vserver.get('vserver')) if not skip_corefiler: corefiler_name = custom_corefiler_name or cluster.name cluster.make_test_bucket(corefiler_name) self.assertTrue(corefiler_name in cluster.xmlrpc().corefiler.list()) cluster.add_vserver_junction('vserver', corefiler_name) self.assertTrue(cluster.in_use_addresses()) self.assertTrue(cluster.in_use_addresses('mgmt')) self.assertTrue(cluster.in_use_addresses('vserver')) self.assertTrue(cluster.in_use_addresses('cluster')) node_count = len(cluster.nodes) cluster.add_nodes(2) cluster.rebalance_directory_managers() new_node_count = len(cluster.nodes) self.assertTrue(new_node_count > node_count) self.assertTrue(new_node_count == len(cluster.xmlrpc().node.list())) # check that all nodes have more than one address self._check_all_nodes_have_cluster_addresses(cluster) if self.shelve: cluster.shelve() self.assertTrue(cluster.is_off()) self.assertTrue(cluster.is_shelved()) cluster.unshelve() cluster.wait_for_healthcheck(state='red', duration=1) self.assertTrue(cluster.is_on()) self.assertFalse(cluster.is_shelved()) def test_create_aws(self): if not self.create_clusters: self.skipTest("skipping full cluster create tests for AWS") if not self.aws['enabled']: self.skipTest("skipping test for AWS") service = self.mk_aws_service() name = 'vfxtpy-unittest-{}'.format(int(time.time())) cluster = Cluster.create(service, self.aws['instance_type'], name, 'PLACEHOLDER', root_image=self.aws['vfxt_image'], wait_for_state='yellow', tags={'vfxtpy-unittest': 'auto'}) try: self._run_cluster_steps(cluster) except Exception as e: log.error(e) raise finally: cluster.destroy(quick_destroy=True) cleanups = [service.instance_id(_) for _ in service.find_instances() if name in service.name(_)] if cleanups: Cluster(service, nodes=cleanups).destroy(quick_destroy=True) def test__init__gce(self): if not self.gce['enabled']: self.skipTest("skipping test for GCE") gce = self.mk_gce_service() self.assertIsInstance(gce, vFXT.gce.Service) cluster = Cluster(service=gce) self.assertIsInstance(cluster, Cluster) def test_create_gce(self): if not self.create_clusters: self.skipTest("skipping full cluster create tests for GCE") if not self.gce['enabled']: self.skipTest("skipping test for GCE") service = self.mk_gce_service() name = 'vfxtpy-unittest-{}'.format(int(time.time())) cluster = Cluster.create(service, self.gce['instance_type'], name, 'PLACEHOLDER', root_image=self.gce['vfxt_image'], size=3, wait_for_state='yellow', tags=['unittest'], metadata={'vfxtpy-unittest': 'auto'}) try: self._run_cluster_steps(cluster) except Exception as e: log.error(e) raise finally: cluster.destroy(quick_destroy=True) cleanups = [service.instance_id(_) for _ in service.find_instances() if name in service.name(_)] if cleanups: Cluster(service, nodes=cleanups).destroy(quick_destroy=True) def test__init__azure(self): if not self.azure['enabled']: self.skipTest("skipping test for Azure") azure = self.mk_azure_service() self.assertIsInstance(azure, vFXT.msazure.Service) cluster = Cluster(service=azure) self.assertIsInstance(cluster, Cluster) def test_create_azure(self): if not self.create_clusters: self.skipTest("skipping full cluster create tests for Azure") if not self.azure['enabled']: self.skipTest("skipping test for Azure") service = self.mk_azure_service() name = 'vfxt-unittest-{}'.format(int(time.time())) cluster = Cluster.create(service, self.azure['instance_type'], name, 'PLACEHOLDER', root_image=self.azure['vfxt_image'], size=3, wait_for_state='yellow') self.assertIsInstance(cluster, Cluster) self.assertTrue(cluster.is_on()) self.assertTrue(len(cluster.nodes) == 3) self.assertTrue(cluster.xmlrpc().cluster.get()) try: custom_corefiler_name = '{}/{}'.format(self.azure['storage_account'], name) self._run_cluster_steps(cluster, use_instance_for_mgmt=True, custom_corefiler_name=custom_corefiler_name) except Exception as e: log.error(e) raise finally: cluster.destroy(quick_destroy=True) cleanups = [service.instance_id(_) for _ in service.find_instances() if name in service.name(_)] if cleanups: Cluster(service, nodes=cleanups).destroy(quick_destroy=True) def test_bad_machine_type_aws(self): if not self.aws['enabled']: self.skipTest("skipping test for AWS") aws = self.mk_aws_service() self.assertRaises(vFXT.service.vFXTConfigurationException, Cluster.create, aws, 'bogus', 'clustername', 'PLACEHOLDER') def test_bad_machine_type_gce(self): if not self.gce['enabled']: self.skipTest("skipping test for GCE") gce = self.mk_gce_service() self.assertRaises(vFXT.service.vFXTConfigurationException, Cluster.create, gce, 'bogus', 'clustername', 'PLACEHOLDER') def test_bad_machine_type_azure(self): if not self.azure['enabled']: self.skipTest("skipping test for Azure") azure = self.mk_azure_service() self.assertRaises(vFXT.service.vFXTConfigurationException, Cluster.create, azure, 'bogus', 'clustername', 'PLACEHOLDER') def test_bad_cluster_name_aws(self): if not self.aws['enabled']: self.skipTest("skipping test for AWS") aws = self.mk_aws_service() self.assertRaises(vFXT.service.vFXTConfigurationException, Cluster.create, aws, self.aws['instance_type'], '', 'PLACEHOLDER') self.assertRaises(vFXT.service.vFXTConfigurationException, Cluster.create, aws, self.aws['instance_type'], '1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890', 'PLACEHOLDER') def test_bad_cluster_name_azure(self): if not self.azure['enabled']: self.skipTest("skipping test for Azure") azure = self.mk_azure_service() self.assertRaises(vFXT.service.vFXTConfigurationException, Cluster.create, azure, self.azure['instance_type'], '', 'PLACEHOLDER') self.assertRaises(vFXT.service.vFXTConfigurationException, Cluster.create, azure, self.azure['instance_type'], '1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890', 'PLACEHOLDER') def test_bad_cluster_name_gce(self): if not self.gce['enabled']: self.skipTest("skipping test for GCE") gce = self.mk_gce_service() self.assertRaises(vFXT.service.vFXTConfigurationException, Cluster.create, gce, self.gce['instance_type'], '', 'PLACEHOLDER') self.assertRaises(vFXT.service.vFXTConfigurationException, Cluster.create, gce, self.gce['instance_type'], '1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890', 'PLACEHOLDER') def test_in_use_mgmt_ip_fail_aws(self): if not self.aws['enabled']: self.skipTest("skipping test for AWS") service = self.mk_aws_service() name = 'vfxtpy-unittest-{}'.format(int(time.time())) instances = service.get_instances(self.aws['existing']) existing_address = service.ip(instances[0]) def _should_fail(): cluster = Cluster.create(service, self.aws['instance_type'], name, 'PLACEHOLDER', management_address=existing_address, tags=['unittest'], metadata={'vfxtpy-unittest': 'auto'}) # the above should not complete... but if it does cluster.destroy(quick_destroy=True) raise Exception("test_aws_in_use_mgmt_ip_fail did not fail") self.assertRaises(vFXT.service.vFXTConfigurationException, _should_fail) def test_in_use_instance_ip_fail_aws(self): if not self.aws['enabled']: self.skipTest("skipping test for AWS") service = self.mk_aws_service() name = 'vfxtpy-unittest-{}'.format(int(time.time())) instances = service.get_instances(self.aws['existing']) existing_address = service.ip(instances[0]) def _should_fail(): cluster = Cluster.create(service, self.aws['instance_type'], name, 'PLACEHOLDER', instance_addresses=[existing_address], size=1, tags=['unittest'], metadata={'vfxtpy-unittest': 'auto'}) # the above should not complete... but if it does cluster.destroy(quick_destroy=True) raise Exception("test_aws_in_use_instance_ip_fail did not fail") self.assertRaises(vFXT.service.vFXTConfigurationException, _should_fail) def test_in_use_cluster_ip_fail_aws(self): if not self.aws['enabled']: self.skipTest("skipping test for AWS") service = self.mk_aws_service() name = 'vfxtpy-unittest-{}'.format(int(time.time())) instances = service.get_instances(self.aws['existing']) existing_address = service.ip(instances[0]) def _should_fail(): cluster = Cluster.create(service, self.aws['instance_type'], name, 'PLACEHOLDER', address_range_start=existing_address, address_range_end=vFXT.Cidr.to_address(vFXT.Cidr.from_address(existing_address) + 1), address_range_netmask='255.255.255.255', size=1, tags=['unittest'], metadata={'vfxtpy-unittest': 'auto'}) # the above should not complete... but if it does cluster.destroy(quick_destroy=True) raise Exception("test_aws_in_use_cluster_ip_fail did not fail") self.assertRaises(vFXT.service.vFXTConfigurationException, _should_fail) def test_in_use_mgmt_ip_fail_azure(self): if not self.azure['enabled']: self.skipTest("skipping test for Azure") service = self.mk_azure_service() name = 'vfxtpy-unittest-{}'.format(int(time.time())) instances = service.get_instances(self.azure['existing']) existing_address = service.ip(instances[0]) def _should_fail(): cluster = Cluster.create(service, self.azure['instance_type'], name, 'PLACEHOLDER', management_address=existing_address, tags=['unittest'], metadata={'vfxtpy-unittest': 'auto'}) # the above should not complete... but if it does cluster.destroy(quick_destroy=True) raise Exception("test_azure_in_use_mgmt_ip_fail did not fail") self.assertRaises(vFXT.service.vFXTConfigurationException, _should_fail) def test_in_use_instance_ip_fail_azure(self): if not self.azure['enabled']: self.skipTest("skipping test for Azure") service = self.mk_azure_service() name = 'vfxtpy-unittest-{}'.format(int(time.time())) instances = service.get_instances(self.azure['existing']) existing_address = service.ip(instances[0]) def _should_fail(): cluster = Cluster.create(service, self.azure['instance_type'], name, 'PLACEHOLDER', instance_addresses=[existing_address], size=1, tags=['unittest'], metadata={'vfxtpy-unittest': 'auto'}) # the above should not complete... but if it does cluster.destroy(quick_destroy=True) raise Exception("test_azure_in_use_instance_ip_fail did not fail") self.assertRaises(vFXT.service.vFXTConfigurationException, _should_fail) def test_in_use_cluster_ip_fail_azure(self): if not self.azure['enabled']: self.skipTest("skipping test for Azure") service = self.mk_azure_service() name = 'vfxtpy-unittest-{}'.format(int(time.time())) instances = service.get_instances(self.azure['existing']) existing_address = service.ip(instances[0]) def _should_fail(): cluster = Cluster.create(service, self.azure['instance_type'], name, 'PLACEHOLDER', address_range_start=existing_address, address_range_end=vFXT.Cidr.to_address(vFXT.Cidr.from_address(existing_address) + 1), address_range_netmask='255.255.255.255', size=1, tags=['unittest'], metadata={'vfxtpy-unittest': 'auto'}) # the above should not complete... but if it does cluster.destroy(quick_destroy=True) raise Exception("test_azure_in_use_cluster_ip_fail did not fail") self.assertRaises(vFXT.service.vFXTConfigurationException, _should_fail) def test_in_use_mgmt_ip_fail_gce(self): if not self.gce['enabled']: self.skipTest("skipping test for GCE") service = self.mk_gce_service() name = 'vfxtpy-unittest-{}'.format(int(time.time())) instances = service.get_instances(self.gce['existing']) existing_address = service.ip(instances[0]) def _should_fail(): cluster = Cluster.create(service, self.gce['instance_type'], name, 'PLACEHOLDER', management_address=existing_address, tags=['unittest'], metadata={'vfxtpy-unittest': 'auto'}) # the above should not complete... but if it does cluster.destroy(quick_destroy=True) raise Exception("test_gce_in_use_mgmt_ip_fail did not fail") self.assertRaises(vFXT.service.vFXTConfigurationException, _should_fail) def test_in_use_instance_ip_fail_gce(self): if not self.gce['enabled']: self.skipTest("skipping test for GCE") service = self.mk_gce_service() name = 'vfxtpy-unittest-{}'.format(int(time.time())) instances = service.get_instances(self.gce['existing']) existing_address = service.ip(instances[0]) def _should_fail(): cluster = Cluster.create(service, self.gce['instance_type'], name, 'PLACEHOLDER', instance_addresses=[existing_address], size=1, tags=['unittest'], metadata={'vfxtpy-unittest': 'auto'}) # the above should not complete... but if it does cluster.destroy(quick_destroy=True) raise Exception("test_gce_in_use_instance_ip_fail did not fail") self.assertRaises(vFXT.service.vFXTConfigurationException, _should_fail) def test_in_use_cluster_ip_fail_gce(self): if not self.gce['enabled']: self.skipTest("skipping test for GCE") service = self.mk_gce_service() name = 'vfxtpy-unittest-{}'.format(int(time.time())) instances = service.get_instances(self.gce['existing']) existing_address = service.ip(instances[0]) def _should_fail(): cluster = Cluster.create(service, self.gce['instance_type'], name, 'PLACEHOLDER', address_range_start=existing_address, address_range_end=vFXT.Cidr.to_address(vFXT.Cidr.from_address(existing_address) + 1), address_range_netmask='255.255.255.255', size=1, tags=['unittest'], metadata={'vfxtpy-unittest': 'auto'}) # the above should not complete... but if it does cluster.destroy(quick_destroy=True) raise Exception("test_gce_in_use_cluster_ip_fail did not fail") self.assertRaises(vFXT.service.vFXTConfigurationException, _should_fail) def test_bad_add_node_ip_validation_azure(self): if not self.create_clusters: self.skipTest("skipping full cluster create tests for Azure") if not self.azure['enabled']: self.skipTest("skipping test for Azure") service = self.mk_azure_service() instances = service.get_instances(self.azure['existing']) existing_address = service.ip(instances[0]) name = 'vfxt-unittest-{}'.format(int(time.time())) cluster = Cluster.create(service, self.azure['instance_type'], name, 'PLACEHOLDER', root_image=self.azure['vfxt_image'], size=3, wait_for_state='yellow') try: def _should_fail_instance_in_use(): cluster.add_nodes(1, instance_addresses=[existing_address]) raise Exception("test did not fail") self.assertRaises(vFXT.service.vFXTConfigurationException, _should_fail_instance_in_use) def _should_fail_not_enough_instance(): cluster.add_nodes(2, instance_addresses=[existing_address]) raise Exception("test did not fail") self.assertRaises(vFXT.service.vFXTConfigurationException, _should_fail_not_enough_instance) def _should_fail_not_enough_cluster(): cluster.add_nodes(2, address_range_start=existing_address, address_range_end=existing_address, address_range_netmask='255.255.255.255') raise Exception("test did not fail") self.assertRaises(vFXT.service.vFXTConfigurationException, _should_fail_not_enough_cluster) def _should_fail_cluster_in_use(): cluster.add_nodes(1, address_range_start=existing_address, address_range_end=existing_address, address_range_netmask='255.255.255.255') raise Exception("test did not fail") self.assertRaises(vFXT.service.vFXTConfigurationException, _should_fail_cluster_in_use) finally: cluster.destroy(quick_destroy=True) def test_bad_add_node_ip_validation_aws(self): if not self.create_clusters: self.skipTest("skipping full cluster create tests for AWS") if not self.aws['enabled']: self.skipTest("skipping test for AWS") service = self.mk_aws_service() instances = service.get_instances(self.aws['existing']) existing_address = service.ip(instances[0]) name = 'vfxtpy-unittest-{}'.format(int(time.time())) cluster = Cluster.create(service, self.aws['instance_type'], name, 'PLACEHOLDER', root_image=self.aws['vfxt_image'], wait_for_state='yellow', tags={'vfxtpy-unittest': 'auto'}) try: def _should_fail_instance_in_use(): cluster.add_nodes(1, instance_addresses=[existing_address]) raise Exception("test did not fail") self.assertRaises(vFXT.service.vFXTConfigurationException, _should_fail_instance_in_use) def _should_fail_not_enough_instance(): cluster.add_nodes(2, instance_addresses=[existing_address]) raise Exception("test did not fail") self.assertRaises(vFXT.service.vFXTConfigurationException, _should_fail_not_enough_instance) def _should_fail_not_enough_cluster(): cluster.add_nodes(2, address_range_start=existing_address, address_range_end=existing_address, address_range_netmask='255.255.255.255') raise Exception("test did not fail") self.assertRaises(vFXT.service.vFXTConfigurationException, _should_fail_not_enough_cluster) def _should_fail_cluster_in_use(): cluster.add_nodes(1, address_range_start=existing_address, address_range_end=existing_address, address_range_netmask='255.255.255.255') raise Exception("test did not fail") self.assertRaises(vFXT.service.vFXTConfigurationException, _should_fail_cluster_in_use) finally: cluster.destroy(quick_destroy=True) def test_bad_add_node_ip_validation_gce(self): if not self.create_clusters: self.skipTest("skipping full cluster create tests for GCE") if not self.gce['enabled']: self.skipTest("skipping test for GCE") service = self.mk_gce_service() instances = service.get_instances(self.gce['existing']) existing_address = service.ip(instances[0]) name = 'vfxtpy-unittest-{}'.format(int(time.time())) cluster = Cluster.create(service, self.gce['instance_type'], name, 'PLACEHOLDER', root_image=self.gce['vfxt_image'], size=3, wait_for_state='yellow', tags=['unittest'], metadata={'vfxtpy-unittest': 'auto'}) try: def _should_fail_instance_in_use(): cluster.add_nodes(1, instance_addresses=[existing_address]) raise Exception("test did not fail") self.assertRaises(vFXT.service.vFXTConfigurationException, _should_fail_instance_in_use) def _should_fail_not_enough_instance(): cluster.add_nodes(2, instance_addresses=[existing_address]) raise Exception("test did not fail") self.assertRaises(vFXT.service.vFXTConfigurationException, _should_fail_not_enough_instance) def _should_fail_not_enough_cluster(): cluster.add_nodes(2, address_range_start=existing_address, address_range_end=existing_address, address_range_netmask='255.255.255.255') raise Exception("test did not fail") self.assertRaises(vFXT.service.vFXTConfigurationException, _should_fail_not_enough_cluster) def _should_fail_cluster_in_use(): cluster.add_nodes(1, address_range_start=existing_address, address_range_end=existing_address, address_range_netmask='255.255.255.255') raise Exception("test did not fail") self.assertRaises(vFXT.service.vFXTConfigurationException, _should_fail_cluster_in_use) finally: cluster.destroy(quick_destroy=True) if __name__ == '__main__': unittest.main()
52.932609
325
0.681096
2,874
24,349
5.520181
0.068894
0.03971
0.017019
0.051056
0.889127
0.865301
0.840656
0.832146
0.824204
0.803782
0
0.028943
0.209618
24,349
459
326
53.04793
0.795427
0.03688
0
0.682667
0
0
0.152704
0.028552
0
0
0
0
0.157333
1
0.125333
false
0.002667
0.016
0
0.144
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
51f9dd7cf7ee8cdf43e2c96c4438d9d5954c17f4
36
py
Python
FileAccessor/__init__.py
Ristellise/Wenn
0564579bd0dd801360a20db7e909e6c493821241
[ "MIT" ]
1
2022-02-02T22:14:23.000Z
2022-02-02T22:14:23.000Z
FileAccessor/__init__.py
Ristellise/bust-up-dream
0564579bd0dd801360a20db7e909e6c493821241
[ "MIT" ]
null
null
null
FileAccessor/__init__.py
Ristellise/bust-up-dream
0564579bd0dd801360a20db7e909e6c493821241
[ "MIT" ]
null
null
null
from .rackPlaylist import RackReader
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
cf96da2a68903564dd9cad66f6b28c4ee8f360ca
267
py
Python
lib/core/extended/__init__.py
tuaris/TidePool
5d44fa11a7de3f5c05130d0ad4030671806cd501
[ "BSD-3-Clause" ]
3
2018-06-30T12:10:50.000Z
2021-09-18T16:10:12.000Z
lib/core/extended/__init__.py
tuaris/TidePool
5d44fa11a7de3f5c05130d0ad4030671806cd501
[ "BSD-3-Clause" ]
null
null
null
lib/core/extended/__init__.py
tuaris/TidePool
5d44fa11a7de3f5c05130d0ad4030671806cd501
[ "BSD-3-Clause" ]
9
2017-04-12T22:59:49.000Z
2021-09-18T16:10:25.000Z
from block import CPosBlock from block import CMasterNodeBlock from transaction import CPosTransaction from transaction import CPosTransactionMessage from transaction import CTransactionMessage from coinbase import MasterNodeCoinbase from other import CMasterNodeVote
38.142857
46
0.898876
28
267
8.571429
0.464286
0.1875
0.2625
0
0
0
0
0
0
0
0
0
0.101124
267
7
47
38.142857
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
6
5c9452e54538065296f31b99dbfe898050906e6c
554
py
Python
chainer/serializers/__init__.py
takeratta/chainer
02686e98cd6dc8f20979a1f3a79130f076cbfc6c
[ "MIT" ]
7
2017-05-08T07:02:40.000Z
2018-12-02T18:35:39.000Z
chainer/serializers/__init__.py
takeratta/chainer
02686e98cd6dc8f20979a1f3a79130f076cbfc6c
[ "MIT" ]
null
null
null
chainer/serializers/__init__.py
takeratta/chainer
02686e98cd6dc8f20979a1f3a79130f076cbfc6c
[ "MIT" ]
1
2022-02-20T10:32:59.000Z
2022-02-20T10:32:59.000Z
from chainer.serializers import hdf5 # NOQA from chainer.serializers import npz # NOQA from chainer.serializers.hdf5 import HDF5Deserializer # NOQA from chainer.serializers.hdf5 import HDF5Serializer # NOQA from chainer.serializers.hdf5 import load_hdf5 # NOQA from chainer.serializers.hdf5 import save_hdf5 # NOQA from chainer.serializers.npz import DictionarySerializer # NOQA from chainer.serializers.npz import load_npz # NOQA from chainer.serializers.npz import NpzDeserializer # NOQA from chainer.serializers.npz import save_npz # NOQA
42.615385
64
0.819495
72
554
6.25
0.180556
0.244444
0.488889
0.52
0.728889
0.631111
0
0
0
0
0
0.018672
0.129964
554
12
65
46.166667
0.914938
0.088448
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
6
5cabcb6b835ef22ec14a1672eb5a3ef5eb99d9d6
8,052
py
Python
src/zope/app/container/browser/tests/test_directive.py
zopefoundation/zope.app.container
5a472543abe39f0d120c8aff4616d24c17e91eb7
[ "ZPL-2.1" ]
1
2021-03-05T17:28:36.000Z
2021-03-05T17:28:36.000Z
src/zope/app/container/browser/tests/test_directive.py
zopefoundation/zope.app.container
5a472543abe39f0d120c8aff4616d24c17e91eb7
[ "ZPL-2.1" ]
4
2017-04-22T15:30:17.000Z
2022-03-22T11:29:24.000Z
src/zope/app/container/browser/tests/test_directive.py
zopefoundation/zope.app.container
5a472543abe39f0d120c8aff4616d24c17e91eb7
[ "ZPL-2.1" ]
2
2015-04-03T07:33:24.000Z
2018-10-31T00:01:47.000Z
############################################################################## # # Copyright (c) 2003 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS # FOR A PARTICULAR PURPOSE. # ############################################################################## """'containerView' directive test """ try: from cStringIO import StringIO # pragma: PY2 except ImportError: from io import StringIO import doctest import pprint import re from zope.testing import renormalizing from zope.interface import Interface from zope.component.interface import provideInterface from zope.publisher.interfaces.browser import IBrowserRequest atre = re.compile(' at [0-9a-fA-Fx]+') class Context(object): info = '' def __init__(self): self.actions = [] def action(self, discriminator, callable, args): if discriminator is None: if callable is provideInterface: self.actions.append((callable, args[1])) # name is args[0] else: self.actions.append(discriminator) self.info = 'info' def __repr__(self): stream = StringIO() pprinter = pprint.PrettyPrinter(stream=stream, width=60) pprinter.pprint(self.actions) r = stream.getvalue() return (''.join(atre.split(r))).strip() class Iface(Interface): pass class ITestLayer(IBrowserRequest): pass def test_containerViews(): """ >>> from zope.browsermenu.metaconfigure import menus >>> from zope.interface.interface import InterfaceClass >>> from zope.app.container.browser.metaconfigure import containerViews >>> zmi_views = InterfaceClass('zmi_views', __module__='zope.app.menus') >>> menus.zmi_views = zmi_views >>> zmi_actions = InterfaceClass('zmi_actions', __module__='zope.app.menus') >>> menus.zmi_actions = zmi_actions >>> context = Context() >>> containerViews(context, for_=Iface, contents='zope.ManageContent', ... add='zope.ManageContent', index='zope.View') >>> context [('adapter', (<InterfaceClass zope.app.container.browser.tests.test_directive.Iface>, <InterfaceClass zope.publisher.interfaces.browser.IDefaultBrowserLayer>), <InterfaceClass zope.app.menus.zmi_views>, u'Contents'), (<function provideInterface>, <InterfaceClass zope.app.menus.zmi_views>), (<function provideInterface>, <InterfaceClass zope.app.container.browser.tests.test_directive.Iface>), (<function provideInterface>, <InterfaceClass zope.publisher.interfaces.browser.IDefaultBrowserLayer>), (<function provideInterface>, <InterfaceClass zope.app.container.browser.tests.test_directive.Iface>), ('view', (<InterfaceClass zope.app.container.browser.tests.test_directive.Iface>, <InterfaceClass zope.publisher.interfaces.browser.IDefaultBrowserLayer>), 'contents.html', <InterfaceClass zope.publisher.interfaces.browser.IBrowserRequest>), (<function provideInterface>, <InterfaceClass zope.app.container.browser.tests.test_directive.Iface>), ('view', (<InterfaceClass zope.app.container.browser.tests.test_directive.Iface>, <InterfaceClass zope.publisher.interfaces.browser.IDefaultBrowserLayer>), 'index.html', <InterfaceClass zope.publisher.interfaces.browser.IBrowserRequest>), ('adapter', (<InterfaceClass zope.app.container.browser.tests.test_directive.Iface>, <InterfaceClass zope.publisher.interfaces.browser.IDefaultBrowserLayer>), <InterfaceClass zope.app.menus.zmi_actions>, u'Add'), (<function provideInterface>, <InterfaceClass zope.app.menus.zmi_actions>), (<function provideInterface>, <InterfaceClass zope.app.container.browser.tests.test_directive.Iface>), (<function provideInterface>, <InterfaceClass zope.publisher.interfaces.browser.IDefaultBrowserLayer>), (<function provideInterface>, <InterfaceClass zope.app.container.browser.tests.test_directive.Iface>), (<function provideInterface>, <InterfaceClass zope.interface.Interface>), ('view', (<InterfaceClass zope.app.container.browser.tests.test_directive.Iface>, <InterfaceClass zope.publisher.interfaces.browser.IDefaultBrowserLayer>), '+', <InterfaceClass zope.interface.Interface>)] """ # noqa: E501 line too long def test_containerViews_layer(): """ >>> from zope.browsermenu.metaconfigure import menus >>> from zope.interface.interface import InterfaceClass >>> from zope.app.container.browser.metaconfigure import containerViews >>> zmi_views = InterfaceClass('zmi_views', __module__='zope.app.menus') >>> menus.zmi_views = zmi_views >>> zmi_actions = InterfaceClass('zmi_actions', __module__='zope.app.menus') >>> menus.zmi_actions = zmi_actions >>> context = Context() >>> containerViews(context, for_=Iface, contents='zope.ManageContent', ... add='zope.ManageContent', index='zope.View', layer=ITestLayer) >>> context [('adapter', (<InterfaceClass zope.app.container.browser.tests.test_directive.Iface>, <InterfaceClass zope.app.container.browser.tests.test_directive.ITestLayer>), <InterfaceClass zope.app.menus.zmi_views>, u'Contents'), (<function provideInterface>, <InterfaceClass zope.app.menus.zmi_views>), (<function provideInterface>, <InterfaceClass zope.app.container.browser.tests.test_directive.Iface>), (<function provideInterface>, <InterfaceClass zope.app.container.browser.tests.test_directive.ITestLayer>), (<function provideInterface>, <InterfaceClass zope.app.container.browser.tests.test_directive.Iface>), ('view', (<InterfaceClass zope.app.container.browser.tests.test_directive.Iface>, <InterfaceClass zope.app.container.browser.tests.test_directive.ITestLayer>), 'contents.html', <InterfaceClass zope.publisher.interfaces.browser.IBrowserRequest>), (<function provideInterface>, <InterfaceClass zope.app.container.browser.tests.test_directive.Iface>), ('view', (<InterfaceClass zope.app.container.browser.tests.test_directive.Iface>, <InterfaceClass zope.app.container.browser.tests.test_directive.ITestLayer>), 'index.html', <InterfaceClass zope.publisher.interfaces.browser.IBrowserRequest>), ('adapter', (<InterfaceClass zope.app.container.browser.tests.test_directive.Iface>, <InterfaceClass zope.app.container.browser.tests.test_directive.ITestLayer>), <InterfaceClass zope.app.menus.zmi_actions>, u'Add'), (<function provideInterface>, <InterfaceClass zope.app.menus.zmi_actions>), (<function provideInterface>, <InterfaceClass zope.app.container.browser.tests.test_directive.Iface>), (<function provideInterface>, <InterfaceClass zope.app.container.browser.tests.test_directive.ITestLayer>), (<function provideInterface>, <InterfaceClass zope.app.container.browser.tests.test_directive.Iface>), (<function provideInterface>, <InterfaceClass zope.interface.Interface>), ('view', (<InterfaceClass zope.app.container.browser.tests.test_directive.Iface>, <InterfaceClass zope.app.container.browser.tests.test_directive.ITestLayer>), '+', <InterfaceClass zope.interface.Interface>)] """ # noqa: E501 line too long checker = renormalizing.RENormalizing([ # Python 3 unicode removed the "u". (re.compile("u('.*?')"), r"\1"), (re.compile('u(".*?")'), r"\1"), ]) def test_suite(): return doctest.DocTestSuite(checker=checker)
41.081633
85
0.693865
810
8,052
6.797531
0.182716
0.163458
0.133491
0.121141
0.768434
0.764076
0.764076
0.764076
0.764076
0.750636
0
0.003265
0.163065
8,052
195
86
41.292308
0.813771
0.753974
0
0.04878
0
0
0.030758
0
0
0
0
0
0
1
0.146341
false
0.04878
0.243902
0.02439
0.536585
0.073171
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
5caf1c65cc646a8025bad5691406e11efc85e57b
99
py
Python
derpgen/utility/has_class.py
pdarragh/pwd-parser-generator
8db2a8fee19c4720664065f7a1b045d0f3abd28d
[ "Apache-2.0" ]
1
2020-06-22T07:22:50.000Z
2020-06-22T07:22:50.000Z
derpgen/utility/has_class.py
pdarragh/derpgen
8db2a8fee19c4720664065f7a1b045d0f3abd28d
[ "Apache-2.0" ]
null
null
null
derpgen/utility/has_class.py
pdarragh/derpgen
8db2a8fee19c4720664065f7a1b045d0f3abd28d
[ "Apache-2.0" ]
null
null
null
from typing import Any, Type def has_class(o: Any, c: Type) -> bool: return o.__class__ is c
16.5
39
0.676768
18
99
3.444444
0.722222
0
0
0
0
0
0
0
0
0
0
0
0.222222
99
5
40
19.8
0.805195
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
7a3f466207d5c75f52338d6fb64a099ebd14fdd6
130
py
Python
daraja_api/clients/reversal_api_client.py
jakhax/python_daraja_api
7584679d0c5eaa2beafbfa221254e6370f40f12d
[ "MIT" ]
4
2019-10-30T09:19:58.000Z
2020-04-18T12:32:09.000Z
daraja_api/clients/reversal_api_client.py
jakhax/python_daraja_api
7584679d0c5eaa2beafbfa221254e6370f40f12d
[ "MIT" ]
2
2019-10-31T20:39:57.000Z
2019-10-31T20:41:32.000Z
daraja_api/clients/reversal_api_client.py
jakhax/python_daraja_api
7584679d0c5eaa2beafbfa221254e6370f40f12d
[ "MIT" ]
3
2020-04-17T23:03:25.000Z
2021-05-14T08:26:07.000Z
from daraja_api.clients.abstract_api_client import AbstractApiClient class AbstractReversalApiClient(AbstractApiClient): pass
32.5
68
0.876923
13
130
8.538462
0.846154
0
0
0
0
0
0
0
0
0
0
0
0.084615
130
4
69
32.5
0.932773
0
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
7a702fe593f9cddc42e461d0ba9f6c63759a5b9b
791
py
Python
runner/tests/conftest.py
PC-Trip/runner
e13291e25a2bc2962523a1de2d13725609497cb5
[ "MIT" ]
null
null
null
runner/tests/conftest.py
PC-Trip/runner
e13291e25a2bc2962523a1de2d13725609497cb5
[ "MIT" ]
null
null
null
runner/tests/conftest.py
PC-Trip/runner
e13291e25a2bc2962523a1de2d13725609497cb5
[ "MIT" ]
null
null
null
import sys import subprocess from pathlib import Path import pytest @pytest.fixture() def run(request, monkeypatch): monkeypatch.chdir(request.fspath.dirname) python = sys.executable cfd = Path(__file__).parent.resolve() root = cfd.parent script = root / "run.py" p = Path(request.param).resolve() args = [python, str(script), str(p)] result = subprocess.run(args) return result.returncode @pytest.fixture() def plot(request, monkeypatch): monkeypatch.chdir(request.fspath.dirname) python = sys.executable cfd = Path(__file__).parent.resolve() root = cfd.parent script = root / "plot.py" p = Path(request.param).resolve() args = [python, str(script), str(p)] result = subprocess.run(args) return result.returncode
24.71875
45
0.68268
98
791
5.428571
0.326531
0.048872
0.06015
0.12782
0.804511
0.804511
0.804511
0.804511
0.804511
0.804511
0
0
0.190898
791
31
46
25.516129
0.83125
0
0
0.692308
0
0
0.016435
0
0
0
0
0
0
1
0.076923
false
0
0.153846
0
0.307692
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
7a87f7565d35129a63ca452cd8f3121cf7ef434d
36
py
Python
models/__init__.py
gaochangfeng/pykaldi2
5e988e5968aa9a5867f8179e6c53ea715ac46bdc
[ "MIT" ]
1
2019-07-11T04:29:36.000Z
2019-07-11T04:29:36.000Z
models/__init__.py
gaochangfeng/pykaldi2
5e988e5968aa9a5867f8179e6c53ea715ac46bdc
[ "MIT" ]
null
null
null
models/__init__.py
gaochangfeng/pykaldi2
5e988e5968aa9a5867f8179e6c53ea715ac46bdc
[ "MIT" ]
null
null
null
from .lstm import LSTMStack, NnetAM
18
35
0.805556
5
36
5.8
1
0
0
0
0
0
0
0
0
0
0
0
0.138889
36
1
36
36
0.935484
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
7aac3c7fe3f30d11073f55b799616caea2446e0d
41
py
Python
ke/models/TransformerKB/__init__.py
WangShengguang/KE
6f33303e6b43c4acaeb764917d1afad4d6a79e11
[ "MIT" ]
null
null
null
ke/models/TransformerKB/__init__.py
WangShengguang/KE
6f33303e6b43c4acaeb764917d1afad4d6a79e11
[ "MIT" ]
null
null
null
ke/models/TransformerKB/__init__.py
WangShengguang/KE
6f33303e6b43c4acaeb764917d1afad4d6a79e11
[ "MIT" ]
2
2021-04-08T11:46:26.000Z
2021-08-21T09:21:49.000Z
from .transformerKB import TransformerKB
20.5
40
0.878049
4
41
9
0.75
0
0
0
0
0
0
0
0
0
0
0
0.097561
41
1
41
41
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
8fce0b0e99fd183ebd8b22af7e3eddbde5db17ea
120
py
Python
qpost/viz/__init__.py
johnaparker/Qpost
3fcbe79221687fc87dc17b1fd06239966ca9414d
[ "MIT" ]
null
null
null
qpost/viz/__init__.py
johnaparker/Qpost
3fcbe79221687fc87dc17b1fd06239966ca9414d
[ "MIT" ]
null
null
null
qpost/viz/__init__.py
johnaparker/Qpost
3fcbe79221687fc87dc17b1fd06239966ca9414d
[ "MIT" ]
null
null
null
#main submodules from . import draw from . import video from . import flux from . import layout from . import material
17.142857
22
0.758333
17
120
5.352941
0.529412
0.549451
0
0
0
0
0
0
0
0
0
0
0.191667
120
6
23
20
0.938144
0.125
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
8fd4342de58c74be9a148c29a183c614470d37b8
503
py
Python
aula008 - UTILIZANDO MODULOS/ex019.py
miradouro/CursoEmVideo-Python
cc7b05a9a4aad8e6ef3b29453d83370094d75e41
[ "MIT" ]
null
null
null
aula008 - UTILIZANDO MODULOS/ex019.py
miradouro/CursoEmVideo-Python
cc7b05a9a4aad8e6ef3b29453d83370094d75e41
[ "MIT" ]
null
null
null
aula008 - UTILIZANDO MODULOS/ex019.py
miradouro/CursoEmVideo-Python
cc7b05a9a4aad8e6ef3b29453d83370094d75e41
[ "MIT" ]
null
null
null
''' import random n1 = str(input('Primeiro aluno: ')) n2 = str(input('Segundo aluno: ')) n3 = str(input('Terceiro aluno: ')) n4 = str(input('Quarto aluno: ')) li = [n1, n2, n3, n4] es = random.choice(li) print('O aluno escolhido foi {}'.format(es)) ''' from random import choice n1 = str(input('Primeiro aluno: ')) n2 = str(input('Segundo aluno: ')) n3 = str(input('Terceiro aluno: ')) n4 = str(input('Quarto aluno: ')) li = [n1, n2, n3, n4] es = choice(li) print('O aluno escolhido foi {}'.format(es))
26.473684
44
0.636183
77
503
4.155844
0.285714
0.2
0.0625
0.1125
0.875
0.875
0.875
0.875
0.875
0.63125
0
0.037471
0.151093
503
19
45
26.473684
0.711944
0.485089
0
0
0
0
0.337302
0
0
0
0
0
0
1
0
false
0
0.125
0
0.125
0.125
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
8fdf7d3c2212b38b1aa2fdf1ed3eb082cfe44925
62
py
Python
shikshalaya/settings/__init__.py
vimm0/djwebshiksha
e83e79f65e6ea0b59dc684a80fc2f0215012f0d7
[ "MIT" ]
null
null
null
shikshalaya/settings/__init__.py
vimm0/djwebshiksha
e83e79f65e6ea0b59dc684a80fc2f0215012f0d7
[ "MIT" ]
6
2020-06-05T18:14:41.000Z
2022-03-11T23:20:13.000Z
shikshalaya/settings/__init__.py
vimm0/djws-backend
e83e79f65e6ea0b59dc684a80fc2f0215012f0d7
[ "MIT" ]
null
null
null
from .base import * # from .dev import * from .prod import *
12.4
20
0.66129
9
62
4.555556
0.555556
0.487805
0
0
0
0
0
0
0
0
0
0
0.225806
62
4
21
15.5
0.854167
0.290323
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
64f28df72e4a691eee3ca4f7529a0a5320f58084
19
py
Python
__init_.py
Tshino118/SQLMaker
e598f2a01773fc7b04b580fcac586b7e571ff863
[ "Unlicense" ]
null
null
null
__init_.py
Tshino118/SQLMaker
e598f2a01773fc7b04b580fcac586b7e571ff863
[ "Unlicense" ]
null
null
null
__init_.py
Tshino118/SQLMaker
e598f2a01773fc7b04b580fcac586b7e571ff863
[ "Unlicense" ]
null
null
null
from . import setup
19
19
0.789474
3
19
5
1
0
0
0
0
0
0
0
0
0
0
0
0.157895
19
1
19
19
0.9375
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
8f48459404dda484a3b7c6dcfd2546f6755adbd1
6,621
py
Python
socialserver/tests/api/legacy/test_comments.py
niallasher/socialserver-neo
7e7d25d939133d149b56ccd54fbfa62d75cabb73
[ "MIT" ]
null
null
null
socialserver/tests/api/legacy/test_comments.py
niallasher/socialserver-neo
7e7d25d939133d149b56ccd54fbfa62d75cabb73
[ "MIT" ]
11
2022-03-10T04:55:09.000Z
2022-03-30T14:24:19.000Z
socialserver/tests/api/legacy/test_comments.py
niallasher/socialserver-neo
7e7d25d939133d149b56ccd54fbfa62d75cabb73
[ "MIT" ]
null
null
null
# Copyright (c) Niall Asher 2022 # noinspection PyUnresolvedReferences from socialserver.util.test import ( test_db, server_address, create_user_with_request, create_post_with_request, ) import requests def test_create_comment_legacy(test_db, server_address): post_id = create_post_with_request( test_db.access_token, text_content="post text post text" ) # make a comment r = requests.post( f"{server_address}/api/v1/comments", json={ "session_token": test_db.access_token, "post_id": post_id, "comment": "the quick brown fox smth smth", }, ) assert r.status_code == 201 def test_get_comment_legacy(test_db, server_address): comment_text = "the quick brown fox smth smth" post_id = create_post_with_request( test_db.access_token, text_content="post text post text" ) # make a comment r = requests.post( f"{server_address}/api/v1/comments", json={ "session_token": test_db.access_token, "post_id": post_id, "comment": comment_text, }, ) assert r.status_code == 201 # get the comment (fresh db, so it will always be comment id 1) r = requests.get( f"{server_address}/api/v1/comments", json={"session_token": test_db.access_token, "comment_id": 1}, ) assert r.status_code == 201 assert r.json()["username"] == test_db.username assert r.json()["comment"] == comment_text def test_get_comment_feed_legacy(test_db, server_address): comment_text = "the quick brown fox smth smth" post_id = create_post_with_request( test_db.access_token, text_content="post text post text" ) # make a comment r = requests.post( f"{server_address}/api/v1/comments", json={ "session_token": test_db.access_token, "post_id": post_id, "comment": comment_text, }, ) assert r.status_code == 201 # get the comment (fresh db, so it will always be comment id 1) r = requests.get( f"{server_address}/api/v1/comments/byPost", json={ "session_token": test_db.access_token, "post_id": post_id, "count": 10, "offset": 0, }, ) assert r.status_code == 201 assert len(r.json()) == 1 # 1 will be comment id since it's a blank db assert r.json()[0] == 1 def test_get_comment_feed_empty_legacy(test_db, server_address): post_id = create_post_with_request( test_db.access_token, text_content="post text post text" ) # get the comment (fresh db, so it will always be comment id 1) r = requests.get( f"{server_address}/api/v1/comments/byPost", json={ "session_token": test_db.access_token, "post_id": post_id, "count": 10, "offset": 0, }, ) assert r.status_code == 201 assert len(r.json()) == 0 def test_delete_comment_legacy(test_db, server_address): comment_text = "the quick brown fox smth smth" post_id = create_post_with_request( test_db.access_token, text_content="post text post text" ) # make a comment r = requests.post( f"{server_address}/api/v1/comments", json={ "session_token": test_db.access_token, "post_id": post_id, "comment": comment_text, }, ) assert r.status_code == 201 # get rid of it immediately r = requests.delete( f"{server_address}/api/v1/comments", json={"session_token": test_db.access_token, "comment_id": 1}, ) assert r.status_code == 201 # try to get it r = requests.get( f"{server_address}/api/v1/comments", json={"session_token": test_db.access_token, "comment_id": 1}, ) # weird oddity with the old server code. this is supposed to be 400, # not 404! assert r.status_code == 400 def test_delete_comment_invalid_id_legacy(test_db, server_address): comment_text = "the quick brown fox smth smth" post_id = create_post_with_request( test_db.access_token, text_content="post text post text" ) # try to remove the non-existent comment r = requests.delete( f"{server_address}/api/v1/comments", json={"session_token": test_db.access_token, "comment_id": 1}, ) assert r.status_code == 404 def test_like_comment_legacy(test_db, server_address): post_id = create_post_with_request( test_db.access_token, text_content="post text post text" ) # make a comment r = requests.post( f"{server_address}/api/v1/comments", json={ "session_token": test_db.access_token, "post_id": post_id, "comment": "the quick brown fox smth smth", }, ) assert r.status_code == 201 # like it oh yes r = requests.post( f"{server_address}/api/v2/comments/like", json={"session_token": test_db.access_token, "comment_id": 1}, ) assert r.status_code == 201 assert r.json()["commentLiked"] is True # get the comment like count, just to make sure! r = requests.get( f"{server_address}/api/v1/comments", json={"session_token": test_db.access_token, "comment_id": 1}, ) assert r.json()["likeCount"] == 1 def test_unlike_comment_legacy(test_db, server_address): post_id = create_post_with_request( test_db.access_token, text_content="post text post text" ) # make a comment r = requests.post( f"{server_address}/api/v1/comments", json={ "session_token": test_db.access_token, "post_id": post_id, "comment": "the quick brown fox smth smth", }, ) assert r.status_code == 201 # like it oh yes r = requests.post( f"{server_address}/api/v2/comments/like", json={"session_token": test_db.access_token, "comment_id": 1}, ) assert r.status_code == 201 assert r.json()["commentLiked"] is True # i do not like it anymore :( r = requests.post( f"{server_address}/api/v2/comments/like", json={"session_token": test_db.access_token, "comment_id": 1}, ) assert r.status_code == 201 assert r.json()["commentLiked"] is False # get the comment like count, just to make sure! r = requests.get( f"{server_address}/api/v1/comments", json={"session_token": test_db.access_token, "comment_id": 1}, ) assert r.json()["likeCount"] == 0
28.416309
72
0.619695
899
6,621
4.31257
0.111235
0.054166
0.077379
0.109621
0.86536
0.854527
0.854527
0.854527
0.854527
0.854527
0
0.019984
0.266878
6,621
232
73
28.538793
0.778739
0.104516
0
0.658824
0
0
0.241829
0.097036
0
0
0
0
0.147059
1
0.047059
false
0
0.011765
0
0.058824
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
8f6d55896e401bba3fd7e895424bf511ab23381d
47
py
Python
allennlp/semparse/common/__init__.py
annaproxy/udify-metalearning
55206a3aac0aba74a3615a36192d03b6467cfd6f
[ "MIT" ]
65
2020-11-13T05:36:29.000Z
2022-03-26T22:45:46.000Z
allennlp/semparse/common/__init__.py
annaproxy/udify-metalearning
55206a3aac0aba74a3615a36192d03b6467cfd6f
[ "MIT" ]
11
2021-05-26T16:22:17.000Z
2022-03-02T04:03:18.000Z
allennlp/semparse/common/__init__.py
annaproxy/udify-metalearning
55206a3aac0aba74a3615a36192d03b6467cfd6f
[ "MIT" ]
10
2020-11-21T15:25:02.000Z
2022-02-25T11:09:50.000Z
from allennlp.semparse.common.date import Date
23.5
46
0.851064
7
47
5.714286
0.857143
0
0
0
0
0
0
0
0
0
0
0
0.085106
47
1
47
47
0.930233
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
8f79349fe2b51097a648d76d6d27d2f9f8e97924
465
py
Python
Software de Trading/freqtrade/resolvers/__init__.py
NatanNMB15/tcc-pytradebot
52b19251a030ab9c1a1b95157b4d57a9cf6df9dc
[ "MIT" ]
1
2020-05-13T14:12:42.000Z
2020-05-13T14:12:42.000Z
Software de Trading/freqtrade/resolvers/__init__.py
NatanNMB15/tcc-pytradebot
52b19251a030ab9c1a1b95157b4d57a9cf6df9dc
[ "MIT" ]
7
2020-02-12T02:58:40.000Z
2021-06-04T23:24:08.000Z
Software de Trading/freqtrade/resolvers/__init__.py
NatanNMB15/tcc-pytradebot
52b19251a030ab9c1a1b95157b4d57a9cf6df9dc
[ "MIT" ]
null
null
null
from freqtrade.resolvers.iresolver import IResolver # noqa: F401 from freqtrade.resolvers.exchange_resolver import ExchangeResolver # noqa: F401 # Don't import HyperoptResolver to avoid loading the whole Optimize tree # from freqtrade.resolvers.hyperopt_resolver import HyperOptResolver # noqa: F401 from freqtrade.resolvers.pairlist_resolver import PairListResolver # noqa: F401 from freqtrade.resolvers.strategy_resolver import StrategyResolver # noqa: F401
66.428571
82
0.83871
55
465
7.018182
0.454545
0.168394
0.284974
0.163212
0.233161
0
0
0
0
0
0
0.03632
0.111828
465
6
83
77.5
0.898305
0.417204
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
56b31c68fe6d0a6d553731da1a6f0f81a735c6e1
213
py
Python
thermotar/__init__.py
chappertron/thermotar
2ab4c7fdb4e63ed296822f5f139010dd9a08a361
[ "MIT" ]
null
null
null
thermotar/__init__.py
chappertron/thermotar
2ab4c7fdb4e63ed296822f5f139010dd9a08a361
[ "MIT" ]
2
2022-03-29T11:24:11.000Z
2022-03-29T11:26:16.000Z
thermotar/__init__.py
chappertron/thermotar
2ab4c7fdb4e63ed296822f5f139010dd9a08a361
[ "MIT" ]
null
null
null
#from . import utils from . import utils from .thermo import * from .chunk import * from .replicator import * ### aliases for constructors create_thermos = Thermo.create_thermos create_chunk = Chunk.create_chunk
21.3
38
0.779343
28
213
5.785714
0.392857
0.123457
0.185185
0.234568
0
0
0
0
0
0
0
0
0.14554
213
9
39
23.666667
0.89011
0.206573
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.666667
0
0.666667
0
1
0
0
null
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
56ecf39021176ddf6f99d632ecb71435c37741af
142
py
Python
awwards/admin.py
cecibarasa/Awwards
cddb498a56a44db9e4ce1768519b13600b8bcfe0
[ "MIT" ]
null
null
null
awwards/admin.py
cecibarasa/Awwards
cddb498a56a44db9e4ce1768519b13600b8bcfe0
[ "MIT" ]
5
2021-03-30T13:54:51.000Z
2021-09-22T19:24:27.000Z
awwards/admin.py
cecibarasa/Awwards
cddb498a56a44db9e4ce1768519b13600b8bcfe0
[ "MIT" ]
null
null
null
from django.contrib import admin from . models import * admin.site.register(Profile) admin.site.register(Project) admin.site.register(Rate)
20.285714
32
0.795775
20
142
5.65
0.55
0.238938
0.451327
0
0
0
0
0
0
0
0
0
0.098592
142
7
33
20.285714
0.882813
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.4
0
0.4
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
6
7134392696f22f1e93b2ee4fe036c2a677637ed5
93
py
Python
utils/__init__.py
cjdjr/cosp_nas
f54243176e8398d79df25d295704f24238f24cc7
[ "MIT" ]
3
2021-12-09T18:59:40.000Z
2021-12-09T19:00:08.000Z
utils/__init__.py
cjdjr/cosp_nas
f54243176e8398d79df25d295704f24238f24cc7
[ "MIT" ]
null
null
null
utils/__init__.py
cjdjr/cosp_nas
f54243176e8398d79df25d295704f24238f24cc7
[ "MIT" ]
null
null
null
from .functions import * from .data_utils import * from .flops import * from .logger import *
23.25
25
0.752688
13
93
5.307692
0.538462
0.434783
0
0
0
0
0
0
0
0
0
0
0.16129
93
4
26
23.25
0.884615
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
71393b297f445b993a7d05d2b5956f40cc23a0f2
2,432
py
Python
tries/test/plots/insert.py
hpaucar/datastructures-ii-repo
203dbafcd4bb82a4214f93e21f15b3be89cea76c
[ "MIT" ]
null
null
null
tries/test/plots/insert.py
hpaucar/datastructures-ii-repo
203dbafcd4bb82a4214f93e21f15b3be89cea76c
[ "MIT" ]
null
null
null
tries/test/plots/insert.py
hpaucar/datastructures-ii-repo
203dbafcd4bb82a4214f93e21f15b3be89cea76c
[ "MIT" ]
null
null
null
#!/usr/bin/env python2.7 from numpy import * from pylab import * from matplotlib import rc, rcParams trie = genfromtxt('../data/trie_insert.output') tst = genfromtxt('../data/tst_insert.output') radix = genfromtxt('../data/radix_insert.output') _map = genfromtxt('../data/map_insert.output') umap = genfromtxt('../data/umap_insert.output') ######## TIME ######## plot(trie[:,0], trie[:,1], '-o', label='Trie') hold(True) plot(tst[:,0], tst[:,1], '-o', label='Ternary Search Tree') plot(radix[:,0], radix[:,1], '-o', label='Radix Tree') plot(_map[:,0], _map[:,1], '-o', label='STL ordered Map') plot(umap[:,0], umap[:,1], '-o', label='STL unordered Map') xlabel('Max length of the string') ylabel('Time(ms)') title('Insert test') legend(loc='best') grid(True) savefig('../images/insert/random/insert_time_ALL.eps') hold(False) plot(tst[:,0], tst[:,1], '-o', label='Ternary Search Tree') hold(True) plot(radix[:,0], radix[:,1], '-o', label='Radix Tree') plot(_map[:,0], _map[:,1], '-o', label='STL ordered Map') plot(umap[:,0], umap[:,1], '-o', label='STL unordered Map') xlabel('Max length of the string') ylabel('Time(ms)') title('Insert test') legend(loc='best') grid(True) savefig('../images/insert/random/insert_time_TRMU.eps') hold(False) plot(radix[:,0], radix[:,1], '-o', label='Radix Tree') hold(True) plot(_map[:,0], _map[:,1], '-o', label='STL ordered Map') plot(umap[:,0], umap[:,1], '-o', label='STL unordered Map') xlabel('Max length of the string') ylabel('Time(ms)') title('Insert test') legend(loc='best') grid(True) savefig('../images/insert/random/insert_time_RMU.eps') hold(False) plot(trie[:,0], trie[:,1], '-o', label='Trie') hold(True) plot(tst[:,0], tst[:,1], '-o', label='Ternary Search Tree') plot(radix[:,0], radix[:,1], '-o', label='Radix Tree') xlabel('Max length of the string') ylabel('Time(ms)') title('Insert test') legend(loc='best') grid(True) savefig('../images/insert/random/insert_time_TTR.eps') ###### MEMORY ###### hold(False) plot(trie[:,0], trie[:,2], '-o', label='Trie') hold(True) plot(tst[:,0], tst[:,2], '-o', label='Ternary Search Tree') plot(radix[:,0], radix[:,2], '-o', label='Radix Tree') plot(_map[:,0], _map[:,2], '-o', label='STL ordered Map') plot(umap[:,0], umap[:,2], '-o', label='STL unordered Map') xlabel('Max length of the string') ylabel('Size in memory(Kb)') title('Memory test') legend(loc='best') grid(True) savefig('../images/insert/random/memory.eps')
28.611765
59
0.641859
380
2,432
4.05
0.165789
0.077973
0.068226
0.038986
0.77063
0.77063
0.750487
0.750487
0.733593
0.649123
0
0.019039
0.092928
2,432
84
60
28.952381
0.678604
0.014803
0
0.701493
0
0
0.375053
0.142072
0
0
0
0
0
1
0
false
0
0.044776
0
0.044776
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
8540473c9e5509378861ef641fab6836b041be3b
395
py
Python
server/python/get_request.py
kosyachniy/dev
39bb5c5ee10780bfcd8a59cf59cfb1a348ac52a4
[ "Apache-2.0" ]
13
2018-12-17T23:30:54.000Z
2021-12-29T14:31:43.000Z
server/python/get_request.py
kosyachniy/dev
39bb5c5ee10780bfcd8a59cf59cfb1a348ac52a4
[ "Apache-2.0" ]
36
2018-06-07T21:34:13.000Z
2022-03-13T21:01:43.000Z
server/python/get_request.py
kosyachniy/dev
39bb5c5ee10780bfcd8a59cf59cfb1a348ac52a4
[ "Apache-2.0" ]
2
2021-01-03T11:47:20.000Z
2021-12-29T14:31:49.000Z
import requests def get(src, headers={}, params={}, data={}, json={}, files={}): return requests.get(src, headers=headers, params=params, data=data, json=json, files=files).text def post(src, headers={}, params={}, data={}, json={}, files={}): return requests.post(src, headers=headers, params=params, data=data, json=json, files=files).text if __name__=='__main__': print(get(input()))
30.384615
98
0.681013
54
395
4.833333
0.333333
0.153257
0.099617
0.153257
0.781609
0.781609
0.781609
0.781609
0.452107
0.452107
0
0
0.103797
395
12
99
32.916667
0.737288
0
0
0
0
0
0.020253
0
0
0
0
0
0
1
0.285714
false
0
0.142857
0.285714
0.714286
0.142857
0
0
0
null
0
0
0
0
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
6
854f3065faaf65b9360c35cc72b5c8d3d686fd88
123
py
Python
apiapp/lib/paging.py
genwch/apiapp
ebfdf284c81e135a21f22e5a924ad131869adbec
[ "MIT" ]
null
null
null
apiapp/lib/paging.py
genwch/apiapp
ebfdf284c81e135a21f22e5a924ad131869adbec
[ "MIT" ]
null
null
null
apiapp/lib/paging.py
genwch/apiapp
ebfdf284c81e135a21f22e5a924ad131869adbec
[ "MIT" ]
null
null
null
def data_paging(data, paging, page): rtn = data[paging*(page-1):paging*(page)] return rtn, int(len(data)/paging)+1
30.75
45
0.666667
20
123
4.05
0.45
0.493827
0.345679
0
0
0
0
0
0
0
0
0.019048
0.146341
123
3
46
41
0.752381
0
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0
0
0.666667
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
6
859bf70a092e2c0766724c7e94193f8c6a72e1ff
396
py
Python
conda-recipes/conmin/run_test.py
mjfwest/OpenMDAO-Framework
a5521f47ad7686c25b203de74e1c7dff5fd7a52b
[ "Apache-2.0" ]
69
2015-01-02T19:10:08.000Z
2021-11-14T04:42:28.000Z
conda-recipes/conmin/run_test.py
jcchin/OpenMDAO-Framework
038e89b06da1c74f00918f4c6fbd8bd365e25657
[ "Apache-2.0" ]
3
2015-01-15T23:08:18.000Z
2015-03-11T16:57:35.000Z
conda-recipes/conmin/run_test.py
jcchin/OpenMDAO-Framework
038e89b06da1c74f00918f4c6fbd8bd365e25657
[ "Apache-2.0" ]
31
2015-09-16T00:37:35.000Z
2022-01-10T06:27:55.000Z
import conmin import conmin.conmin from conmin.conmin import conmin from conmin.conmin import consav from conmin.conmin import cnmn01 from conmin.conmin import cnmn02 from conmin.conmin import cnmn03 from conmin.conmin import cnmn04 from conmin.conmin import cnmn05 from conmin.conmin import cnmn06 from conmin.conmin import cnmn07 from conmin.conmin import cnmn08 from conmin.conmin import cnmn1
30.461538
32
0.85101
60
396
5.616667
0.216667
0.4273
0.522255
0.718101
0.166172
0
0
0
0
0
0
0.048711
0.118687
396
13
33
30.461538
0.916905
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
6
85c2c7fcbe0d59b16c85f17c323ce0fad18de8d6
163
py
Python
vega/algorithms/nas/auto_lane/__init__.py
jie311/vega
1bba6100ead802697e691403b951e6652a99ccae
[ "MIT" ]
724
2020-06-22T12:05:30.000Z
2022-03-31T07:10:54.000Z
vega/algorithms/nas/auto_lane/__init__.py
jie311/vega
1bba6100ead802697e691403b951e6652a99ccae
[ "MIT" ]
147
2020-06-30T13:34:46.000Z
2022-03-29T11:30:17.000Z
vega/algorithms/nas/auto_lane/__init__.py
jie311/vega
1bba6100ead802697e691403b951e6652a99ccae
[ "MIT" ]
160
2020-06-29T18:27:58.000Z
2022-03-23T08:42:21.000Z
from .auto_lane_nas_algorithm import AutoLaneNas from .auto_lane_nas_codec import AutoLaneNasCodec from .auto_lane_trainer_callback import AutoLaneTrainerCallback
40.75
63
0.907975
21
163
6.619048
0.571429
0.172662
0.258993
0.215827
0
0
0
0
0
0
0
0
0.07362
163
3
64
54.333333
0.92053
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
a42665dfa4b3abb2b26c09f36a51e6f2490809b7
21,627
py
Python
server/kcaa/manipulators/base_test.py
kcaa/kcaa
b317f4c630dff3aca766873c8cd9fcf37c075fd3
[ "Apache-2.0" ]
6
2015-03-01T18:34:22.000Z
2015-09-03T15:43:20.000Z
server/kcaa/manipulators/base_test.py
kcaa/kcaa
b317f4c630dff3aca766873c8cd9fcf37c075fd3
[ "Apache-2.0" ]
132
2015-01-01T00:31:27.000Z
2015-07-29T14:43:17.000Z
server/kcaa/manipulators/base_test.py
kcaa/kcaa
b317f4c630dff3aca766873c8cd9fcf37c075fd3
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import datetime import pytest import base from kcaa import kcsapi from kcaa import manipulator_util class TestManipulator(object): def test_require_objects(object): class Manipulator(base.Manipulator): def run(self): self.require_objects(['ShipList', 'FleetList']) yield 0.0 manager = manipulator_util.MockManipulatorManager() manipulator = Manipulator(manager, priority=0) with pytest.raises(Exception): manipulator.update(0.1) assert not manipulator.alive assert (manipulator.exception.message == 'Required object ShipList not found') manager.objects['ShipList'] = None manipulator = Manipulator(manager, priority=0) with pytest.raises(Exception): manipulator.update(0.1) assert not manipulator.alive assert (manipulator.exception.message == 'Required object FleetList not found') manager.objects['FleetList'] = None manipulator = Manipulator(manager, priority=0) with pytest.raises(StopIteration): manipulator.update(0.1) assert not manipulator.alive assert manipulator.success class TestAutoManipulatorTriggerer(object): def pytest_funcarg__manipulator(self): return base.MockAutoManipulator.clone() def test_has_required_objects_empty(self, manipulator): triggerer = base.AutoManipulatorTriggerer( manipulator_util.MockManipulatorManager(), None, manipulator) assert triggerer.has_required_objects() def test_has_required_objects_single(self, manipulator): manipulator.mockable_required_objects = ['SomeObject'] manager = manipulator_util.MockManipulatorManager() triggerer = base.AutoManipulatorTriggerer(manager, None, manipulator) # The manipulator requires SomeObject; nothing is there, thus reject. assert not triggerer.has_required_objects() some_object = kcsapi.KCAAObject(generation=1) manager.objects['SomeObject'] = some_object # There is SomeObject with generation 1, it should accept that. assert triggerer.has_required_objects() def test_has_required_objects_double(self, manipulator): manipulator.mockable_required_objects = ['SomeObject', 'AnotherObject'] manager = manipulator_util.MockManipulatorManager() triggerer = base.AutoManipulatorTriggerer(manager, None, manipulator) # No object is available. assert not triggerer.has_required_objects() some_object = kcsapi.KCAAObject(generation=1) manager.objects['SomeObject'] = some_object # SomeObject is there, but AnotherObject is not; reject. assert not triggerer.has_required_objects() another_object = kcsapi.KCAAObject(generation=1) manager.objects['AnotherObject'] = another_object # Now both objects are present. assert triggerer.has_required_objects() def test_get_objeect_generation_updates_empty(self, manipulator): triggerer = base.AutoManipulatorTriggerer( manipulator_util.MockManipulatorManager(), None, manipulator) # If there is no monitored object, monitored objects are considered # ready. assert triggerer.get_object_generation_updates()[0] def test_get_object_generation_updates_single(self, manipulator): manipulator.mockable_monitored_objects = ['SomeObject'] manager = manipulator_util.MockManipulatorManager() triggerer = base.AutoManipulatorTriggerer(manager, None, manipulator) # The manipulator requires SomeObject; nothing is there, thus reject. assert not triggerer.get_object_generation_updates()[0] some_object = kcsapi.KCAAObject(generation=1) manager.objects['SomeObject'] = some_object # There is SomeObject with generation 1, it should accept that. assert (triggerer.get_object_generation_updates() == (True, True, {'SomeObject': 1})) triggerer.update_generations({'SomeObject': 1}) # Now the update was consumed. Consecutive calls should reject. assert (triggerer.get_object_generation_updates() == (True, False, {})) assert (triggerer.get_object_generation_updates() == (True, False, {})) some_object.generation += 1 # SomeObject was updated. The first call should accept. assert (triggerer.get_object_generation_updates() == (True, True, {'SomeObject': 2})) triggerer.update_generations({'SomeObject': 2}) assert (triggerer.get_object_generation_updates() == (True, False, {})) def test_get_object_generation_updates_double(self, manipulator): manipulator.mockable_monitored_objects = ['SomeObject', 'AnotherObject'] manager = manipulator_util.MockManipulatorManager() triggerer = base.AutoManipulatorTriggerer(manager, None, manipulator) # No object is available. assert not triggerer.get_object_generation_updates()[0] some_object = kcsapi.KCAAObject(generation=1) manager.objects['SomeObject'] = some_object # SomeObject is there, but AnotherObject is not; reject. assert not triggerer.get_object_generation_updates()[0] another_object = kcsapi.KCAAObject(generation=1) manager.objects['AnotherObject'] = another_object # Now both objects are present. assert (triggerer.get_object_generation_updates() == (True, True, {'SomeObject': 1, 'AnotherObject': 1})) triggerer.update_generations({'SomeObject': 1, 'AnotherObject': 1}) assert (triggerer.get_object_generation_updates() == (True, False, {})) # Any updates in either object can be accepted. some_object.generation += 1 assert (triggerer.get_object_generation_updates() == (True, True, {'SomeObject': 2})) triggerer.update_generations({'SomeObject': 2}) assert (triggerer.get_object_generation_updates() == (True, False, {})) another_object.generation += 1 assert (triggerer.get_object_generation_updates() == (True, True, {'AnotherObject': 2})) triggerer.update_generations({'AnotherObject': 2}) assert (triggerer.get_object_generation_updates() == (True, False, {})) def test_run_already_scheduled(self, manipulator): manager = manipulator_util.MockManipulatorManager() triggerer = base.AutoManipulatorTriggerer(manager, None, manipulator) manager.scheduled_manipulators['MockAutoManipulator'] = manipulator assert not manipulator.can_trigger_called triggerer.update(0.1) assert not manipulator.can_trigger_called del manager.scheduled_manipulators['MockAutoManipulator'] triggerer.update(0.2) assert manipulator.can_trigger_called def test_run_required_objects(self, manipulator): manipulator.mockable_required_objects = ['SomeObject'] manager = manipulator_util.MockManipulatorManager() triggerer = base.AutoManipulatorTriggerer(manager, None, manipulator) assert not manipulator.can_trigger_called triggerer.update(0.1) assert not manipulator.can_trigger_called some_object = kcsapi.KCAAObject(generation=1) manager.objects['SomeObject'] = some_object triggerer.update(0.2) assert manipulator.can_trigger_called def test_run_monitored_objects(self, manipulator): manipulator.mockable_monitored_objects = ['SomeObject'] manager = manipulator_util.MockManipulatorManager() triggerer = base.AutoManipulatorTriggerer(manager, None, manipulator) assert not manipulator.can_trigger_called triggerer.update(0.1) assert not manipulator.can_trigger_called some_object = kcsapi.KCAAObject(generation=0) manager.objects['SomeObject'] = some_object triggerer.update(0.2) assert not manipulator.can_trigger_called some_object.generation += 1 triggerer.update(0.3) assert manipulator.can_trigger_called def test_run_run_only_when_idle(self, manipulator): manipulator.mockable_run_only_when_idle = True manager = manipulator_util.MockManipulatorManager() triggerer = base.AutoManipulatorTriggerer(manager, None, manipulator) manager.idle = False assert not manipulator.can_trigger_called triggerer.update(0.1) assert not manipulator.can_trigger_called manager.idle = True triggerer.update(0.2) assert manipulator.can_trigger_called def test_run_unaffected_by_idle(self, manipulator): manipulator.mockable_run_only_when_idle = False manager = manipulator_util.MockManipulatorManager() triggerer = base.AutoManipulatorTriggerer(manager, None, manipulator) manager.idle = False assert not manipulator.can_trigger_called triggerer.update(0.1) assert manipulator.can_trigger_called def test_run_precondition(self, manipulator): manipulator.mockable_precondition = False manager = manipulator_util.MockManipulatorManager() triggerer = base.AutoManipulatorTriggerer(manager, None, manipulator) assert not manipulator.can_trigger_called triggerer.update(0.1) assert not manipulator.can_trigger_called manipulator.mockable_precondition = True triggerer.update(0.2) assert manipulator.can_trigger_called # TODO: Add tests for screen generation check class TestScheduledManipulator(object): def datetime(self, *args, **kwargs): return classmethod(lambda cls: datetime.datetime(*args, **kwargs)) def pytest_funcarg__owner(self): return manipulator_util.MockManipulatorManager() def test_don_trigger_with_no_schedule(self, owner): class NoScheduleManipulator(base.ScheduledManipulator): run = lambda: None NoScheduleManipulator._now = self.datetime(2015, 1, 1, 0, 0) assert NoScheduleManipulator.can_trigger(owner) is None assert NoScheduleManipulator.can_trigger(owner) is None NoScheduleManipulator._now = self.datetime(2015, 1, 2, 0, 0) assert NoScheduleManipulator.can_trigger(owner) is None def test_dont_trigger_for_initial_run(self, owner): class SingleScheduleManipulator(base.ScheduledManipulator): schedules = classmethod(lambda cls: [datetime.time(9, 0)]) run = lambda: None SingleScheduleManipulator._now = self.datetime(2015, 1, 1, 9, 1) assert SingleScheduleManipulator.can_trigger(owner) is None def test_trigger_for_first_schedule(self, owner): class SingleScheduleManipulator(base.ScheduledManipulator): schedules = classmethod(lambda cls: [datetime.time(9, 0)]) run = lambda: None SingleScheduleManipulator._now = self.datetime(2015, 1, 1, 8, 58) assert SingleScheduleManipulator.can_trigger(owner) is None SingleScheduleManipulator._now = self.datetime(2015, 1, 1, 8, 59) assert SingleScheduleManipulator.can_trigger(owner) is None SingleScheduleManipulator._now = self.datetime(2015, 1, 1, 9, 0) assert SingleScheduleManipulator.can_trigger(owner) is not None def test_trigger_next_day(self, owner): class SingleScheduleManipulator(base.ScheduledManipulator): schedules = classmethod(lambda cls: [datetime.time(9, 0)]) run = lambda: None SingleScheduleManipulator._now = self.datetime(2015, 1, 1, 9, 1) assert SingleScheduleManipulator.can_trigger(owner) is None SingleScheduleManipulator._now = self.datetime(2015, 1, 2, 8, 59) assert SingleScheduleManipulator.can_trigger(owner) is None SingleScheduleManipulator._now = self.datetime(2015, 1, 2, 9, 0) assert SingleScheduleManipulator.can_trigger(owner) is not None def test_trigger_two_schedules(self, owner): class DoubleScheduleManipulator(base.ScheduledManipulator): schedules = classmethod(lambda cls: [datetime.time(9, 0), datetime.time(21, 0)]) run = lambda: None DoubleScheduleManipulator._now = self.datetime(2015, 1, 1, 8, 59) assert DoubleScheduleManipulator.can_trigger(owner) is None DoubleScheduleManipulator._now = self.datetime(2015, 1, 1, 9, 0) assert DoubleScheduleManipulator.can_trigger(owner) is not None DoubleScheduleManipulator._now = self.datetime(2015, 1, 1, 9, 1) assert DoubleScheduleManipulator.can_trigger(owner) is None DoubleScheduleManipulator._now = self.datetime(2015, 1, 1, 20, 59) assert DoubleScheduleManipulator.can_trigger(owner) is None DoubleScheduleManipulator._now = self.datetime(2015, 1, 1, 21, 0) assert DoubleScheduleManipulator.can_trigger(owner) is not None DoubleScheduleManipulator._now = self.datetime(2015, 1, 1, 21, 1) assert DoubleScheduleManipulator.can_trigger(owner) is None DoubleScheduleManipulator._now = self.datetime(2015, 1, 2, 8, 59) assert DoubleScheduleManipulator.can_trigger(owner) is None DoubleScheduleManipulator._now = self.datetime(2015, 1, 2, 9, 0) assert DoubleScheduleManipulator.can_trigger(owner) is not None def test_trigger_within_acceptable_range(self, owner): class SingleScheduleManipulator(base.ScheduledManipulator): schedules = classmethod(lambda cls: [datetime.time(9, 0)]) acceptable_delay = classmethod( lambda cls: datetime.timedelta(hours=1)) run = lambda: None SingleScheduleManipulator._now = self.datetime(2015, 1, 1, 8, 59) assert SingleScheduleManipulator.can_trigger(owner) is None SingleScheduleManipulator._now = self.datetime(2015, 1, 1, 9, 59) assert SingleScheduleManipulator.can_trigger(owner) is not None def test_dont_trigger_exceeding_acceptable_range(self, owner): class SingleScheduleManipulator(base.ScheduledManipulator): schedules = classmethod(lambda cls: [datetime.time(9, 0)]) acceptable_delay = classmethod( lambda cls: datetime.timedelta(hours=1)) run = lambda: None SingleScheduleManipulator._now = self.datetime(2015, 1, 1, 8, 59) assert SingleScheduleManipulator.can_trigger(owner) is None SingleScheduleManipulator._now = self.datetime(2015, 1, 1, 10, 0) assert SingleScheduleManipulator.can_trigger(owner) is None # Try for the next schedule. SingleScheduleManipulator._now = self.datetime(2015, 1, 2, 8, 59) assert SingleScheduleManipulator.can_trigger(owner) is None SingleScheduleManipulator._now = self.datetime(2015, 1, 2, 9, 0) assert SingleScheduleManipulator.can_trigger(owner) is not None def test_trigger_random_delay(self, owner): class SingleScheduleManipulator(base.ScheduledManipulator): schedules = classmethod(lambda cls: [datetime.time(9, 0)]) random_delay_params = classmethod( lambda cls: base.GammaDistributedRandomDelayParams( 1.0, 2.0, 60)) run = lambda: None class MockRandom(object): def gammavariate(self, alpha, beta): assert alpha == 1.0 assert beta == 2.0 return 3 SingleScheduleManipulator._now = self.datetime(2015, 1, 1, 8, 59, 0) SingleScheduleManipulator._rand = MockRandom() assert SingleScheduleManipulator.can_trigger(owner) is None SingleScheduleManipulator._now = self.datetime(2015, 1, 1, 9, 0, 0) assert SingleScheduleManipulator.can_trigger(owner) is None SingleScheduleManipulator._now = self.datetime(2015, 1, 1, 9, 0, 2) assert SingleScheduleManipulator.can_trigger(owner) is None SingleScheduleManipulator._now = self.datetime(2015, 1, 1, 9, 0, 3) assert SingleScheduleManipulator.can_trigger(owner) is not None def test_trigger_random_delay_max_delay_capped(self, owner): class SingleScheduleManipulator(base.ScheduledManipulator): schedules = classmethod(lambda cls: [datetime.time(9, 0)]) random_delay_params = classmethod( lambda cls: base.GammaDistributedRandomDelayParams( 10.0, 20.0, 60)) run = lambda: None class MockRandom(object): def gammavariate(self, alpha, beta): assert alpha == 10.0 assert beta == 20.0 return 200 SingleScheduleManipulator._now = self.datetime(2015, 1, 1, 8, 59, 0) SingleScheduleManipulator._rand = MockRandom() assert SingleScheduleManipulator.can_trigger(owner) is None SingleScheduleManipulator._now = self.datetime(2015, 1, 1, 9, 0, 0) assert SingleScheduleManipulator.can_trigger(owner) is None SingleScheduleManipulator._now = self.datetime(2015, 1, 1, 9, 0, 59) assert SingleScheduleManipulator.can_trigger(owner) is None SingleScheduleManipulator._now = self.datetime(2015, 1, 1, 9, 1, 0) assert SingleScheduleManipulator.can_trigger(owner) is not None def test_trigger_random_delay_but_within_acceptable_range(self, owner): class SingleScheduleManipulator(base.ScheduledManipulator): schedules = classmethod(lambda cls: [datetime.time(9, 0)]) acceptable_delay = classmethod( lambda cls: datetime.timedelta(seconds=60)) random_delay_params = classmethod( lambda cls: base.GammaDistributedRandomDelayParams( 10.0, 20.0, 120)) run = lambda: None class MockRandom(object): def gammavariate(self, alpha, beta): return 59 SingleScheduleManipulator._now = self.datetime(2015, 1, 1, 8, 59, 0) SingleScheduleManipulator._rand = MockRandom() assert SingleScheduleManipulator.can_trigger(owner) is None SingleScheduleManipulator._now = self.datetime(2015, 1, 1, 9, 0, 0) assert SingleScheduleManipulator.can_trigger(owner) is None SingleScheduleManipulator._now = self.datetime(2015, 1, 1, 9, 0, 59) assert SingleScheduleManipulator.can_trigger(owner) is not None def test_dont_trigger_random_delay_exceeding_acceptable_range(self, owner): class SingleScheduleManipulator(base.ScheduledManipulator): schedules = classmethod(lambda cls: [datetime.time(9, 0)]) acceptable_delay = classmethod( lambda cls: datetime.timedelta(seconds=60)) random_delay_params = classmethod( lambda cls: base.GammaDistributedRandomDelayParams( 10.0, 20.0, 120)) run = lambda: None class MockRandom(object): def gammavariate(self, alpha, beta): return 60 SingleScheduleManipulator._now = self.datetime(2015, 1, 1, 8, 59, 0) SingleScheduleManipulator._rand = MockRandom() assert SingleScheduleManipulator.can_trigger(owner) is None SingleScheduleManipulator._now = self.datetime(2015, 1, 1, 9, 0, 0) assert SingleScheduleManipulator.can_trigger(owner) is None SingleScheduleManipulator._now = self.datetime(2015, 1, 1, 9, 0, 59) assert SingleScheduleManipulator.can_trigger(owner) is None SingleScheduleManipulator._now = self.datetime(2015, 1, 1, 9, 1, 0) assert SingleScheduleManipulator.can_trigger(owner) is None def test_trigger_for_wanted_object(self, owner): class WantingScheduleManipulator(base.ScheduledManipulator): schedules = classmethod(lambda cls: [datetime.time(9, 0)]) wanted_objects = classmethod(lambda cls: ['Foo', 'Bar']) run = lambda: None WantingScheduleManipulator._now = self.datetime(2015, 1, 1, 0, 0) assert WantingScheduleManipulator.can_trigger(owner) is not None def test_trigger_for_partially_wanted_object(self, owner): class WantingScheduleManipulator(base.ScheduledManipulator): schedules = classmethod(lambda cls: [datetime.time(9, 0)]) wanted_objects = classmethod(lambda cls: ['Foo', 'Bar']) run = lambda: None WantingScheduleManipulator._now = self.datetime(2015, 1, 1, 0, 0) owner.objects = {'Foo': None} # Bar is still missing. assert WantingScheduleManipulator.can_trigger(owner) is not None def test_dont_trigger_for_satisfied_wanted_object(self, owner): class WantingScheduleManipulator(base.ScheduledManipulator): schedules = classmethod(lambda cls: [datetime.time(9, 0)]) wanted_objects = classmethod(lambda cls: ['Foo', 'Bar']) run = lambda: None WantingScheduleManipulator._now = self.datetime(2015, 1, 1, 0, 0) owner.objects = {'Foo': None, 'Bar': None} assert WantingScheduleManipulator.can_trigger(owner) is None def main(): import doctest doctest.testmod(base) import sys sys.exit(pytest.main(args=[__file__.replace('.pyc', '.py')])) if __name__ == '__main__': main()
48.929864
79
0.68396
2,244
21,627
6.416221
0.08467
0.041672
0.043756
0.04959
0.877066
0.872482
0.855119
0.837825
0.813307
0.788096
0
0.030912
0.231146
21,627
441
80
49.040816
0.834977
0.038193
0
0.699187
0
0
0.023434
0
0
0
0
0.002268
0.246612
1
0.097561
false
0
0.01897
0.01355
0.195122
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
f177a6b37f459db5e44e6eb774f995677bb43a4f
26
py
Python
mlutils/__init__.py
edouardlp/ml-utils
9b69d9dabf52ad05a21854316dc127ed995adb7f
[ "MIT" ]
null
null
null
mlutils/__init__.py
edouardlp/ml-utils
9b69d9dabf52ad05a21854316dc127ed995adb7f
[ "MIT" ]
null
null
null
mlutils/__init__.py
edouardlp/ml-utils
9b69d9dabf52ad05a21854316dc127ed995adb7f
[ "MIT" ]
null
null
null
from . import transformers
26
26
0.846154
3
26
7.333333
1
0
0
0
0
0
0
0
0
0
0
0
0.115385
26
1
26
26
0.956522
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
74cb6c37274d94affcd9804e2c52b74bf0be55be
209
py
Python
pyulog/__init__.py
ndepal/pyulog
a73c2cc5fd473ed261800613fe61ab83ec5f40b1
[ "BSD-3-Clause" ]
71
2016-07-08T20:05:24.000Z
2022-03-30T12:56:06.000Z
pyulog/__init__.py
ndepal/pyulog
a73c2cc5fd473ed261800613fe61ab83ec5f40b1
[ "BSD-3-Clause" ]
50
2016-08-16T11:36:08.000Z
2022-01-10T13:11:45.000Z
pyulog/__init__.py
ndepal/pyulog
a73c2cc5fd473ed261800613fe61ab83ec5f40b1
[ "BSD-3-Clause" ]
117
2016-07-20T08:11:00.000Z
2022-03-13T12:02:19.000Z
""" Wrapper to include the main library modules """ from .core import ULog from . import px4 from . import _version from ._version import get_versions __version__ = get_versions()['version'] del get_versions
23.222222
51
0.770335
29
209
5.241379
0.551724
0.217105
0.236842
0
0
0
0
0
0
0
0
0.005618
0.148325
209
8
52
26.125
0.848315
0.205742
0
0
0
0
0.044304
0
0
0
0
0
0
1
0
false
0
0.666667
0
0.666667
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
6
2d26141c6323be546ef7455f90a9811c608eb25f
120
py
Python
Documentation/Max Documentation/9_cleanup.py
jamesb93/FrameLib
5229355698f1bc3c4a2ba16dd75c7189f29c03f2
[ "BSD-3-Clause" ]
1
2020-01-19T21:26:57.000Z
2020-01-19T21:26:57.000Z
Documentation/Max Documentation/9_cleanup.py
jamesb93/FrameLib
5229355698f1bc3c4a2ba16dd75c7189f29c03f2
[ "BSD-3-Clause" ]
1
2019-08-24T09:20:22.000Z
2019-08-24T09:20:22.000Z
Documentation/Max Documentation/9_cleanup.py
jamesb93/FrameLib
5229355698f1bc3c4a2ba16dd75c7189f29c03f2
[ "BSD-3-Clause" ]
2
2019-02-19T21:48:14.000Z
2019-12-05T10:34:28.000Z
import os import shutil from FrameLibDocs.variables import temporary_dir def main(): shutil.rmtree(temporary_dir)
15
48
0.8
16
120
5.875
0.6875
0.255319
0
0
0
0
0
0
0
0
0
0
0.141667
120
7
49
17.142857
0.912621
0
0
0
0
0
0
0
0
0
0
0
0
1
0.2
true
0
0.6
0
0.8
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
6
2d3bacbd2f60bac568817d7d8b90830fe55ce108
20,947
py
Python
SquareV1-master/cogs/logging.py
SquareDiscord/SquareV1
2d14d25fc0f94a6951598ece80eb2c8f25c3210b
[ "Unlicense" ]
3
2021-05-20T19:55:06.000Z
2021-07-03T11:24:33.000Z
SquareV1-master/cogs/logging.py
PythonSerious/SquareV1
2d14d25fc0f94a6951598ece80eb2c8f25c3210b
[ "Unlicense" ]
null
null
null
SquareV1-master/cogs/logging.py
PythonSerious/SquareV1
2d14d25fc0f94a6951598ece80eb2c8f25c3210b
[ "Unlicense" ]
null
null
null
import discord, datetime, time from discord.ext import commands, tasks from discord.ext.commands import Bot import time from itertools import cycle import sqlite3 import json import asyncio import os import random class Logging(commands.Cog): def __init__(self, client): self.client = client @commands.command() @commands.has_permissions(manage_roles=True) async def arsetup(self, ctx, *, arg): db = sqlite3.connect('autorole.sqlite') cursor = db.cursor() cursor.execute(f'SELECT role_name from autorole WHERE guild_id = {ctx.guild.id}') result = cursor.fetchone() if result is None: sql = ("INSERT INTO autorole(role_name, guild_id) VALUES(?,?)") val = (arg, ctx.guild.id) embed = discord.Embed( colour=discord.Colour.dark_green(), title=f"Auto role `{ctx.guild.name}`", description=f"Your auto role system has been set: `SUCCESSFULLY`" ) embed.add_field(name=f"What was done:", value=f"The role was changed to: {arg}", inline=False) await ctx.send(embed=embed) cursor.execute(sql, val) db.commit() cursor.close() db.close() elif result is not None: sql = ("UPDATE autorole SET role_name = ? WHERE guild_id = ?") val = (arg, ctx.guild.id) embed = discord.Embed( colour=discord.Colour.dark_green(), title=f"Auto role `{ctx.guild.name}`", description=f"Your auto role system has been set: `SUCCESSFULLY`" ) embed.add_field(name=f"What was done:", value=f"The role was updated to: {arg}", inline=False) await ctx.send(embed=embed) cursor.execute(sql, val) db.commit() cursor.close() db.close() @commands.command() @commands.has_permissions(manage_channels=True) async def antilink(self, ctx, arg): db = sqlite3.connect('antilink.sqlite') cursor = db.cursor() cursor.execute(f'SELECT status from antilink WHERE guild_id = {ctx.guild.id}') result = cursor.fetchone() if result is None: sql = ("INSERT INTO antilink(status, guild_id) VALUES(?,?)") val = (arg, ctx.guild.id) cursor.execute(sql, val) db.commit() cursor.close() db.close() await ctx.send(f"Anti-link was set to {arg}") elif result is not None: sql = ("UPDATE antilink SET status = ? WHERE guild_id = ?") val = (arg, ctx.guild.id) cursor.execute(sql, val) db.commit() cursor.close() db.close() await ctx.send(f"Anti-link was set to {arg}") @commands.command() @commands.has_permissions(manage_roles=True) async def mlchannel(self, ctx, channel: discord.TextChannel): db = sqlite3.connect('main.sqlite') cursor = db.cursor() cursor.execute(f'SELECT channel_id from main WHERE guild_id = {ctx.guild.id}') result = cursor.fetchone() if result is None: sql = ("INSERT INTO main(channel_id, guild_id) VALUES(?,?)") val = (channel.id, ctx.guild.id) embed = discord.Embed( colour=discord.Colour.dark_green(), title=f"Mod logs `{ctx.guild.name}`", description=f"Your mod log message system has been set: `SUCCESSFULLY`" ) embed.add_field(name=f"What was done:", value=f"The channel was changed to: {channel.mention}", inline=False) await ctx.send(embed=embed) elif result is not None: sql = ("UPDATE main SET channel_id = ? WHERE guild_id = ?") val = (channel.id, ctx.guild.id) embed = discord.Embed( colour=discord.Colour.dark_green(), title=f"Mod logs `{ctx.guild.name}`", description=f"Your mod log message system has been updated: `SUCCESSFULLY`" ) embed.add_field(name=f"What was done:", value=f"The channel was changed to: {channel.mention}", inline=False) await ctx.send(embed=embed) cursor.execute(sql, val) db.commit() cursor.close() db.close() @commands.command() @commands.has_permissions(manage_roles=True) async def alchannel(self, ctx, channel: discord.TextChannel): db = sqlite3.connect('action.sqlite') cursor = db.cursor() cursor.execute(f'SELECT channel_id from action WHERE guild_id = {ctx.guild.id}') result = cursor.fetchone() if result is None: sql = ("INSERT INTO action(channel_id, guild_id) VALUES(?,?)") val = (channel.id, ctx.guild.id) embed = discord.Embed( colour=discord.Colour.dark_green(), title=f"Action logs `{ctx.guild.name}`", description=f"Your action log message system has been set: `SUCCESSFULLY`" ) embed.add_field(name=f"What was done:", value=f"The channel was changed to: {channel.mention}", inline=False) await ctx.send(embed=embed) cursor.execute(sql, val) db.commit() cursor.close() db.close() elif result is not None: sql = ("UPDATE action SET channel_id = ? WHERE guild_id = ?") val = (channel.id, ctx.guild.id) embed = discord.Embed( colour=discord.Colour.dark_green(), title=f"Action logs `{ctx.guild.name}`", description=f"Your action log message system has been updated: `SUCCESSFULLY`" ) embed.add_field(name=f"What was done:", value=f"The channel was changed to: {channel.mention}", inline=False) await ctx.send(embed=embed) cursor.execute(sql, val) db.commit() cursor.close() db.close() @commands.command() async def logs(self, ctx, member: discord.Member): db = sqlite3.connect('logs.sqlite') cursor1 = db.cursor() cursor1.execute(f'SELECT warns from logs WHERE member_id = {member.id} AND guild_id = {ctx.guild.id}') result1 = cursor1.fetchone() db1 = sqlite3.connect('logs.sqlite') cursor2 = db1.cursor() cursor2.execute(f'SELECT kicks from logs WHERE member_id = {member.id} AND guild_id = {ctx.guild.id}') result2 = cursor2.fetchone() if result1 is None: embed = discord.Embed( colour=discord.Colour.blue(), title=f"logs for {member.name}#{member.discriminator}", description=f"**Kicks: `0` Mutes: `0` Warns: `0`**" ) await ctx.send(embed=embed) elif result1 is not None: if result2 is None: embed = discord.Embed( colour=discord.Colour.blue(), title=f"logs for {member.name}#{member.discriminator}", description=f"**Kicks: `0` Mutes: `0` Warns: `{str(result1[0])}`**" ) await ctx.send(embed=embed) elif result2 is not None: embed = discord.Embed( colour=discord.Colour.blue(), title=f"logs for {member.name}#{member.discriminator}", description=f"**Kicks: `0` Mutes: `0` Warns: `{str(result1[0])}`**" ) await ctx.send(embed=embed) @commands.Cog.listener() async def on_message_delete(self, message): if message.author.id == 684919629365510154: return else: db = sqlite3.connect('action.sqlite') cursor = db.cursor() cursor.execute(f'SELECT channel_id from action WHERE guild_id = {message.guild.id}') result = cursor.fetchone() if result is None: return elif result is not None: print(message.content) channel = self.client.get_channel(id=int(result[0])) embed = discord.Embed( colour=discord.Colour.blue(), title="Message deleted", timestamp=datetime.datetime.utcnow() ) embed.set_author(icon_url=message.author.avatar_url, name=f"{message.author.name}#{message.author.discriminator}") embed.add_field(name="Message content:", value=f"{message.content}") embed.add_field(name="Channel:", value=f"{message.channel.mention}") embed.set_footer(text=f"Time of deletion:",) await channel.send(embed=embed) return @mlchannel.error async def mlchannel_error(self, ctx, error): if isinstance(error, commands.MissingRequiredArgument): embed = discord.Embed( colour=discord.Colour.dark_red(), title=f"Mod logs `{ctx.guild.name}`", description=f"Your mod log message system has been updated: `UNSUCCESSFULLY`" ) embed.add_field(name=f"Cause of error:", value=f"No channel mention was provided", inline=False) await ctx.send(embed=embed) elif isinstance(error, commands.MissingPermissions): embed = discord.Embed( colour=discord.Colour.dark_red(), title=f"Mod logs `{ctx.guild.name}`", description=f"Your mod log message system has been updated: `UNSUCCESSFULLY`" ) embed.add_field(name=f"Cause of error:", value=f"Author missing permissions to run this command", inline=False) await ctx.send(embed=embed) else: embed = discord.Embed( colour=discord.Colour.dark_red(), title=f"Mod logs `{ctx.guild.name}`", description=f"Your mod log message system has been updated: `UNSUCCESSFULLY`" ) embed.add_field(name=f"Cause of error:", value=f"Error: `{error}`", inline=False) await ctx.send(embed=embed) @alchannel.error async def alchannel_error(self, ctx, error): if isinstance(error, commands.MissingRequiredArgument): embed = discord.Embed( colour=discord.Colour.dark_red(), title=f"Action logs `{ctx.guild.name}`", description=f"Your action log message system has been updated: `UNSUCCESSFULLY`" ) embed.add_field(name=f"Cause of error:", value=f"No channel mention was provided", inline=False) await ctx.send(embed=embed) elif isinstance(error, commands.MissingPermissions): embed = discord.Embed( colour=discord.Colour.dark_red(), title=f"Action logs `{ctx.guild.name}`", description=f"Your action log message system has been updated: `UNSUCCESSFULLY`" ) embed.add_field(name=f"Cause of error:", value=f"Author missing permissions to run this command", inline=False) await ctx.send(embed=embed) else: embed = discord.Embed( colour=discord.Colour.dark_red(), title=f"Action logs `{ctx.guild.name}`", description=f"Your action log message system has been updated: `UNSUCCESSFULLY`" ) embed.add_field(name=f"Cause of error:", value=f"Error: `{error}`", inline=False) await ctx.send(embed=embed) @arsetup.error async def arsetup_error(self, ctx, error): if isinstance(error, commands.MissingRequiredArgument): embed = discord.Embed( colour=discord.Colour.dark_red(), title=f"Auto-role `{ctx.guild.name}`", description=f"Your auto-role system has been updated: `UNSUCCESSFULLY`" ) embed.add_field(name=f"Cause of error:", value=f"No role name was provided", inline=False) await ctx.send(embed=embed) elif isinstance(error, commands.MissingPermissions): embed = discord.Embed( colour=discord.Colour.dark_red(), title=f"Auto-role `{ctx.guild.name}`", description=f"Your auto-role system has been updated: `UNSUCCESSFULLY`" ) embed.add_field(name=f"Cause of error:", value=f"Author missing permissions to run this command", inline=False) await ctx.send(embed=embed) else: embed = discord.Embed( colour=discord.Colour.dark_red(), title=f"Auto-role `{ctx.guild.name}`", description=f"Your auto-role system has been updated: `UNSUCCESSFULLY`" ) embed.add_field(name=f"Cause of error:", value=f"Error: `{error}`", inline=False) await ctx.send(embed=embed) @commands.Cog.listener() async def on_message_edit(self, before, after): if before.content == '': return if before.author.bot: return if "https://" in before.content: return elif not before.author.id == 684919629365510154: db = sqlite3.connect('action.sqlite') cursor = db.cursor() cursor.execute(f'SELECT channel_id from action WHERE guild_id = {before.guild.id}') result = cursor.fetchone() if result is None: return elif result is not None: channel = self.client.get_channel(id=int(result[0])) embed = discord.Embed( colour=discord.Colour.blue(), title="Message edited", timestamp=datetime.datetime.utcnow() ) embed.set_author(icon_url=before.author.avatar_url, name=f"{before.author.name}#{before.author.discriminator}") embed.add_field(name=f"Pre-edit content:", value=f"{before.content}", inline=True) embed.add_field(name=f"Post-edit content:", value=f"{after.content}", inline=True) embed.add_field(name=f"Channel edit was made in:", value=f"{before.channel.mention}", inline=False) embed.add_field(name=f"Message link:", value=f"[Jump to edited message.]({before.jump_url})", inline=False) embed.set_footer(text=f"Time of edit:", ) await channel.send(embed=embed) return @commands.Cog.listener() async def on_member_join(self, member): db1 = sqlite3.connect('autorole.sqlite') cursor1 = db1.cursor() cursor1.execute(f'SELECT role_name from autorole WHERE guild_id = {member.guild.id}') result1 = cursor1.fetchone() if result1 is None: return elif result1 is not None: role = discord.utils.get(member.guild.roles, name=f"{str(result1[0])}") await member.add_roles(role) db = sqlite3.connect('action.sqlite') cursor = db.cursor() cursor.execute(f'SELECT channel_id from action WHERE guild_id = {member.guild.id}') result = cursor.fetchone() if result is None: return elif result is not None: channel = self.client.get_channel(id=int(result[0])) embed = discord.Embed(color=0x02eaf2, title=f"A user has joined the server:", timestamp=datetime.datetime.utcnow()) embed.add_field(name="User info", value=f"{member.name}#{member.discriminator} ID `{member.id}`") embed.set_thumbnail(url=member.avatar_url) embed.add_field(name="Account creation date", value=member.created_at.strftime("`%A, %B %d %Y, %H:%M:%S %p`"), inline=False) embed.add_field(name="Server join date", value=member.joined_at.strftime("`%A, %B %d %Y @ %H:%M:%S %p`")) await channel.send(embed=embed) @commands.Cog.listener() async def on_member_remove(self, member): db = sqlite3.connect('action.sqlite') cursor = db.cursor() cursor.execute(f'SELECT channel_id from action WHERE guild_id = {member.guild.id}') result = cursor.fetchone() if result is None: return elif result is not None: channel = self.client.get_channel(id=int(result[0])) embed = discord.Embed(color=0xd10000, title=f"A user has left the server:", timestamp=datetime.datetime.utcnow()) embed.add_field(name="User info", value=f"{member.name}#{member.discriminator} ID `{member.id}`") embed.set_thumbnail(url=member.avatar_url) embed.add_field(name="Account creation date", value=member.created_at.strftime("`%A, %B %d %Y, %H:%M:%S %p`"), inline=False) embed.add_field(name="Server join date", value=member.joined_at.strftime("`%A, %B %d %Y @ %H:%M:%S %p`")) await channel.send(embed=embed) @commands.Cog.listener() async def on_message(self, message): if self.client.user in message.mentions: with open('prefixes.json', 'r') as f: prefixes = json.load(f) prefix = prefixes[str(message.guild.id)] await message.channel.send( f'**My prefix currently is `{prefix}` but can be changed using the `prefix` command**') db = sqlite3.connect('antilink.sqlite') cursor = db.cursor() cursor.execute(f'SELECT status from antilink WHERE guild_id = {message.guild.id}') result = cursor.fetchone() try: if str(result[0]) == "T": if "https://" in message.content: await message.channel.purge(limit=1) await message.channel.send(f"Hey, **{message.author.mention}** please refrain from posting links in this server") await asyncio.sleep(3) await message.channel.purge(limit=1) await self.client.process_commands(message) elif "discord.gg/" in message.content: await message.channel.purge(limit=1) await message.channel.send( f"Hey, {message.author.mention} please refrain from posting invites in this server") await asyncio.sleep(6.5) await message.channel.purge(limit=1) await self.client.process_commands(message) elif str(result[0]) == "t": if "https://" in message.content: await message.channel.purge(limit=1) await message.channel.send(f"Hey, {message.author.mention} please refrain from posting links in this server") await asyncio.sleep(6.5) await message.channel.purge(limit=1) await self.client.process_commands(message) elif "discord.gg/" in message.content: await message.channel.purge(limit=1) await message.channel.send( f"Hey, {message.author.mention} please refrain from posting invites in this server") await asyncio.sleep(6.5) await message.channel.purge(limit=1) await self.client.process_commands(message) except: pass if result is None: return else: return await self.client.process_commands(message) def setup(client): client.add_cog(Logging(client))
43.100823
137
0.541128
2,333
20,947
4.802829
0.094728
0.025614
0.031325
0.040964
0.853101
0.829362
0.80705
0.791522
0.770995
0.758054
0
0.008429
0.348642
20,947
486
138
43.100823
0.812811
0
0
0.687204
0
0.004739
0.242926
0.024483
0
0
0.000782
0
0
1
0.004739
false
0.00237
0.023697
0
0.061611
0.00237
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