This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
================================ Human Message ================================= | |
What was the annual failure rate of the ST8000NM000A drive model in Q3 2024? | |
================================== Ai Message ================================== | |
Tool Calls: | |
sql_db_list_tables (call_LLdny3ctJeEkZQOdFVfCuLhw) | |
Call ID: call_LLdny3ctJeEkZQOdFVfCuLhw | |
Args: | |
================================= Tool Message ================================= | |
Name: sql_db_list_tables |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
================================ Human Message ================================= | |
What is the annual failure rate of the ST4000DM000 drive model? | |
================================== Ai Message ================================== | |
Tool Calls: | |
sql_db_list_tables (call_BYVEqCmtF2zbEDwPyHlps2in) | |
Call ID: call_BYVEqCmtF2zbEDwPyHlps2in | |
Args: | |
================================= Tool Message ================================= | |
Name: sql_db_list_tables |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
================================ Human Message ================================= | |
Each drive has its own serial number. What is the annualized failure rate of the ST4000DM000 drive model? | |
================================== Ai Message ================================== | |
Tool Calls: | |
sql_db_list_tables (call_ShVR0SwihRgw2hzPpdMXGyxn) | |
Call ID: call_ShVR0SwihRgw2hzPpdMXGyxn | |
Args: | |
================================= Tool Message ================================= | |
Name: sql_db_list_tables |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
================================ Human Message ================================= | |
Each drive has its own serial number. How many drives did each data center have on 9/1/2024? | |
================================== Ai Message ================================== | |
Tool Calls: | |
sql_db_list_tables (call_e8gfZp1frECuMjDEjXt13wj4) | |
Call ID: call_e8gfZp1frECuMjDEjXt13wj4 | |
Args: | |
================================= Tool Message ================================= | |
Name: sql_db_list_tables |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import asyncio | |
import datetime | |
import functools | |
from dotenv import load_dotenv | |
from aiobotocore.session import get_session | |
ITERATIONS = 100 | |
# Set the following environment variables, or add them to a .env file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import argparse | |
from datetime import datetime, MINYEAR, timezone | |
import boto3 | |
from dotenv import load_dotenv | |
def list_objects(client, bucket_name, prefix=''): | |
""" | |
Python generator to allow easy iteration over object versions, making |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// PHP sample code to show multipart file upload using the B2 Native API | |
// User supplies optional -v for verbose output from curl, then bucket name | |
// and path to local file | |
$rest_index = null; | |
$opts = getopt("v::", [], $rest_index); | |
$args = array_slice($argv, $rest_index); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# MIT License | |
# | |
# Copyright (c) 2023 Backblaze, Inc. | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
# copies of the Software, and to permit persons to whom the Software is | |
# furnished to do so, subject to the following conditions: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import copy | |
import os | |
import re | |
from datetime import date | |
from io import BytesIO | |
from zipfile import ZipFile | |
import pyarrow as pa | |
import pyarrow.csv as csv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Backblaze wants developers and organization to copy and re-use our | |
# code examples, so we make the samples available by several different | |
# licenses. One option is the MIT license (below). Other options are | |
# available here: | |
# | |
# https://www.backblaze.com/using_b2_code.html | |
# | |
# | |
# The MIT License (MIT) | |
# |
NewerOlder