Install MLX LM and openai
:
pip install mlx-lm openai
// Used in https://jina.ai/tokenizer (Aug. 14th version) | |
// Define variables for magic numbers | |
const MAX_HEADING_LENGTH = 6; | |
const MAX_HEADING_CONTENT_LENGTH = 200; | |
const MAX_HEADING_UNDERLINE_LENGTH = 200; | |
const MAX_HTML_HEADING_ATTRIBUTES_LENGTH = 100; | |
const MAX_LIST_ITEM_LENGTH = 200; | |
const MAX_NESTED_LIST_ITEMS = 5; | |
const MAX_LIST_INDENT_SPACES = 7; | |
const MAX_BLOCKQUOTE_LINE_LENGTH = 200; |
from great_tables import GT, md, html, system_fonts | |
import pandas as pd | |
power_cie_prepared_tbl = pd.read_csv("./data/2023_cie_power_cons.csv") | |
# Create a Great Tables object | |
ciep_gt_tbl = GT(data=power_cie_prepared_tbl) | |
# Apply wider color ranges & formatting | |
gt_tbl = ciep_gt_tbl \ |
[alias] | |
co = checkout | |
cob = checkout -b | |
coo = !git fetch && git checkout | |
br = branch | |
brd = branch -d | |
brD = branch -D | |
merged = branch --merged | |
st = status | |
aa = add -A . |
# Some options that may or may not be applicable to you | |
[user] | |
name = Zach Olivare | |
email = [email protected] | |
[push] | |
default = upstream | |
[core] | |
autocrlf = input # Force replacing CRLF line endings with LF | |
ignorecase = false | |
[merge] |
# Some options that may or may not be applicable to you | |
[user] | |
name = Zach Olivare | |
email = [email protected] | |
[push] | |
default = upstream | |
[core] | |
autocrlf = input # Force replacing CRLF line endings with LF | |
ignorecase = false | |
[merge] |