This file contains hidden or 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 | |
| import json | |
| import re | |
| from pathlib import Path | |
| import gspread | |
| import pandas as pd | |
| from getfilelistpy import getfilelist | |
| from google.oauth2 import service_account | |
| from tqdm import tqdm |
This file contains hidden or 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
| #!/bin/bash | |
| # Description: This script will create the AWS access keys using the Azure account credentials. | |
| # First, run the docker container (code below) and then enter the Azure account credentials. | |
| # The AWS access keys will be created and stored in the ~/.aws/credentials file in the host machine. | |
| docker run -it --rm \ | |
| --name aws-azure-login \ | |
| --workdir /root \ | |
| -v ${HOME}/.aws:/root/.aws \ |
This file contains hidden or 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
| from typing import Any | |
| import numpy as np | |
| import openai | |
| from numpy import ndarray, dtype | |
| class LanguageModels: | |
| """Enum for the supported language models.""" | |
| OPENAI_GPT35TURBO = 'gpt-3.5-turbo' | |
| OPENAI_GPT4O = 'gpt-4o' |
This file contains hidden or 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
| #!/bin/bash | |
| # Download a dataset or competition data from Kaggle using the Kaggle API | |
| # Usage: download_kaggle_dataset.sh <type> <dataset-name> <output_dir> | |
| # Arguments: | |
| # type: The type of the Kaggle data to download. Either '-d' or 'dataset' for dataset, or '-c' or 'competition' for competition. | |
| # dataset-name: The name of the dataset or competition on Kaggle. For datasets, it should be in the format 'username/dataset-name'. | |
| # output_dir: The directory where the data will be downloaded and extracted. | |
| # Examples: |
This file contains hidden or 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
| #!/bin/bash | |
| # List of the packages to be installed and their descriptions | |
| packages=( | |
| "duf:Disk Usage/Free Utility" | |
| "fzf:A general-purpose command-line fuzzy finder" | |
| "bpytop:Resource monitor that shows usage and stats for processor, memory, disks, network and processes" | |
| "htop:Interactive process viewer" | |
| "nano:Easy-to-use text editor" | |
| "tmux:A terminal multiplexer" |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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 pathlib import Path | |
| import duckdb | |
| # Create the parser | |
| parser = argparse.ArgumentParser('`init_database.py` creates a DuckDB database ' | |
| 'from the eICU dataset.') | |
| # Add the arguments |
This file contains hidden or 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
| # EditorConfig is awesome: https://EditorConfig.org | |
| # Top-most EditorConfig file | |
| root = true | |
| # Unix-style newlines with a newline ending every file | |
| [*] | |
| charset = utf-8 | |
| end_of_line = lf | |
| insert_final_newline = true |