code
stringlengths
3
6.57k
get("Value")
result.get("Parameter")
get("SourceResult")
self.assertTrue(source_result is not None, "SourceResult should be present")
self.assertTrue(type(source_result)
test_get_inexistent_secret(self)
aws_stack.connect_to_service("ssm")
test_get_parameters_and_secrets(self)
aws_stack.connect_to_service("ssm")
aws_stack.connect_to_service("secretsmanager")
response.get("Parameters")
response.get("InvalidParameters")
self.assertIn(param["Name"], [param_name, complete_secret])
self.assertIn(param, ["inexistent_param", secret_path + "inexistent_secret"])
_assert(self, search_name, param_name)
aws_stack.connect_to_service("ssm")
do_assert(result)
self.assertGreater(len(result)
self.assertEqual(param_name, result[0]["Name"])
self.assertEqual("123", result[0]["Value"])
ssm_client.get_parameter(Name=search_name)
do_assert([response["Parameter"]])
ssm_client.get_parameters(Names=[search_name])
do_assert(response["Parameters"])
test_get_parameters_by_path_and_filter_by_labels(self)
aws_stack.connect_to_service("ssm")
ssm_client.put_parameter(Name=path, Value=value, Type="String")
self.assertEqual("/my/path", list_of_params["Parameters"][0]["Name"])
verify_mapillary_tag(filepath)
processing.processed_images_rootpath(filepath)
os.path.isfile(filepath_keep_original)
exif_read.ExifRead(filepath)
mapillary_tag_exists()
os.path.isdir(video_import_path)
sys.exit(1)
os.path.isdir(video_import_path)
os.path.dirname(video_import_path)
os.path.join(os.path.abspath(import_path)
os.path.join(os.path.abspath(video_dirname)
os.path.isdir(import_path)
print(f"Error, import directory {import_path} does not exist, exiting...")
sys.exit(1)
uploader.get_total_file_list(import_path, skip_subfolders)
uploader.get_upload_file_list(import_path, skip_subfolders)
len(success_file_list)
len(total_file_list)
print("All images have already been uploaded")
verify_mapillary_tag(f)
len(upload_file_list)
len(to_finalize_file_list)
print("No images to upload.")
sys.exit(1)
uploader.log_rootpath(image)
os.path.isfile(upload_params_path)
open(upload_params_path, "r")
json.load(fp)
list_per_sequence_mapping.setdefault(sequence, [])
append(image)
direct_upload_file_list.append(image)
os.path.isfile(description_path)
open(description_path, "r")
json.load(fp)
set(description)
params.get(image, {})
params.get(image, {})
params.setdefault(image, {})
update(description)
len(upload_file_list)
tags (Skipping {len(total_file_list)
len(upload_file_list)
len(direct_upload_file_list)
len(list_per_sequence_mapping)
enumerate(list_per_sequence_mapping)
uploader.log_rootpath(image)
os.path.isfile(upload_params_path)
open(upload_params_path, "rb")
json.load(jf)
sequences.append(sequence)
uploader.flag_finalization(to_finalize_file_list)
uploader.print_summary(upload_file_list)
validate_scene_range(ctx, param, value)
int(value)
return (start,)
map(int, re.split(r"[;,\-]", value)
logger.error("Couldn't determine a range for -n option.")
exit()
validate_resolution(ctx, param, value)
map(int, re.split(r"[;,\-]", value)
return (start, end)
logger.error("Resolution option is invalid.")
exit()
click.Choice(["png", "gif", "mp4", "webm", "mov"], case_sensitive=False)
option("-s", "--save_last_frame", is_flag=True, default=None)
click.Choice(["l", "m", "h", "p", "k"], case_sensitive=False)
in (W,H)
click.Choice(["cairo", "opengl", "webgl"], case_sensitive=False)
OpenGL (Deprecated)
frontend (Deprecated)
click.Path()
png (Deprecated)