def METHOD_NAME(self, repair_dir, sql_repair_contents, segment):
    sql_filename = self._get_sql_filename(segment) + ".sql"
    sql_file_path = os.path.join(repair_dir, sql_filename)
    with open(sql_file_path, 'w') as sql_file:
        for content in sql_repair_contents:
            sql_file.write(content + "\n")
    return sql_filename