code stringlengths 3 6.57k |
|---|
plt.tight_layout() |
fig.savefig(os.path.join(cwd,'LogFiles','sub-{}'.format(subject_ID) |
format(session) |
format(subject_ID,session) |
print('success: sub-{}_sess-{}_colors.pdf'.format(subject_ID,session) |
test_find_one() |
find_one(none, needle) |
find_one(beginning, needle) |
find_one(end, needle) |
find_one(several, needle) |
test_find_n() |
find_n([2, 3, 4, 5, 6], 2, -1) |
find_n([1, 2, 3, 4, 5], 42, 2) |
find_n([1, 2, 3, 4, 5], 1, 2) |
find_n([1, 2, 3, 2, 4, 5], 2, 2) |
find_n([1, 2, 3, 4, 5, 4, 6, 4, 7, 4, 6], 4, 2) |
find_n([1, 2, 3, 4], 'x', 0) |
test_find_streak() |
find_streak([1, 2, 3, 4, 5], 4, -1) |
find_streak([1, 2, 3, 4, 5], 42, 2) |
find_streak([1, 2, 3, 4], 4, 1) |
find_streak([1, 2, 3, 1, 2], 2, 2) |
find_streak([1, 2, 3, 4, 5, 5, 5], 5, 3) |
find_streak([5, 5, 5, 1, 2, 3, 4], 5, 3) |
find_streak([1, 2, 5, 5, 5, 3, 4], 5, 3) |
find_streak([1, 2, 3, 4, 5, 5, 5], 5, 4) |
test_first_elements() |
first_elements(original) |
test_transpose() |
transpose(original) |
transpose(transpose(original) |
test_zero_distance_displace() |
displace([], 0) |
displace(l1, 0) |
displace(l2, 0) |
displace(l3, 0) |
test_positive_distance_displace() |
displace([], 2) |
displace(l1, 2) |
displace(l2, 3, '-') |
displace(l3, 1, '#') |
displace(l4, 3, 0) |
test_negative_distance_displace() |
displace([], -2) |
displace(l1, -2) |
displace(l2, -3, '-') |
displace(l3, -1, '#') |
displace(l4, -3, 0) |
test_reverse_list() |
reverse_list([]) |
reverse_list([1, 2, 3, 4, 5, 6]) |
test_reverse_matrix() |
reverse_matrix([]) |
reverse_matrix([[0, 1, 2, 3], [0, 1, 2, 3]]) |
test_all_same() |
all_same([9, 1, 2, 3, 4]) |
all_same([[], [], []]) |
all_same([]) |
all_same([ColumnRecommendation(0, ColumnClassification.WIN) |
ColumnRecommendation(2, ColumnClassification.WIN) |
all_same([ColumnRecommendation(0, ColumnClassification.MAYBE) |
ColumnRecommendation(0, ColumnClassification.WIN) |
test_collapse_list() |
collapse_list([]) |
collapse_list(['o', 'x', 'x', 'o']) |
collapse_list(['x', 'x', None, None, None]) |
test_collapse_matrix() |
collapse_matrix([]) |
test_replace_all_in_list() |
replace_all_in_list([None, 3, '546', 33, None], None, '#') |
replace_all_in_list([1, 2, 3, 4, 5], 'e', 42) |
replace_all_in_list([], 34, 43) |
test_replace_all_in_matrix() |
replace_all_in_matrix([[None, None, 2, True], [4, 5, '#']], 'k', 42) |
replace_all_in_matrix([], None, 7) |
replace_all_in_matrix([[], []], None, 7) |
main(req: func.HttpRequest) |
logging.info('Python HTTP trigger function processed a request.') |
TableService(connection_string= os.environ['AzureWebJobsStorage']) |
table_service.create_table('intents') |
table_service.exists('intents') |
req.get_json() |
print(req_body.get('ConversationId') |
req_body.get('ConversationId') |
req_body.get('MessageId') |
table_service.insert_or_replace_entity('intents', data) |
func.HttpResponse(f"Row {req_body.get('MessageId') |
req_body.get('ConversationId') |
_load_tcc(f_tcc, msk) |
gx.read_block(f_tcc, msk) |
np.zeros(msk.data.shape, dtype=np.uint8) |
config.getfloat('conf', 'min_tcc') |
msk.from_grid(_dat, nodata=255) |
_task(tile, d_out, d_ref, opts) |
config.get('conf', 'test_tile') |
_ttt.replace(' ', '') |
split(',') |
re.match(r'(h\d+) |
_m.group(1) |
_m.group(2) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.