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
| """coalesce_parquets.py | |
| gist of how to coalesce small row groups into larger row groups. | |
| Solves the problem described in https://issues.apache.org/jira/browse/PARQUET-1115 | |
| """ | |
| from __future__ import annotations | |
| from pathlib import Path | |
| from typing import Callable, Iterable, TypeVar |
We can't make this file beautiful and searchable because it's too large.
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
| zip,city,state,state_abbr,county,count_code,latitude,longitude | |
| 99553,Akutan,Alaska,AK,Aleutians East,13,54.143,-165.7854 | |
| 99571,Cold Bay,Alaska,AK,Aleutians East,13,55.1858,-162.7211 | |
| 99583,False Pass,Alaska,AK,Aleutians East,13,54.841,-163.4368 | |
| 99612,King Cove,Alaska,AK,Aleutians East,13,55.0628,-162.3056 | |
| 99661,Sand Point,Alaska,AK,Aleutians East,13,55.3192,-160.4914 | |
| 99546,Adak,Alaska,AK,Aleutians West,16,51.88,-176.6581 | |
| 99547,Atka,Alaska,AK,Aleutians West,16,52.1224,-174.4301 | |
| 99591,Saint George Island,Alaska,AK,Aleutians West,16,56.5944,-169.6186 |
We can't make this file beautiful and searchable because it's too large.
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
| zip,city,state,state_abbr,county,count_code,latitude,longitude | |
| 99553,Akutan,Alaska,AK,Aleutians East,13,54.143,-165.7854 | |
| 99571,Cold Bay,Alaska,AK,Aleutians East,13,55.1858,-162.7211 | |
| 99583,False Pass,Alaska,AK,Aleutians East,13,54.841,-163.4368 | |
| 99612,King Cove,Alaska,AK,Aleutians East,13,55.0628,-162.3056 | |
| 99661,Sand Point,Alaska,AK,Aleutians East,13,55.3192,-160.4914 | |
| 99546,Adak,Alaska,AK,Aleutians West,16,51.88,-176.6581 | |
| 99547,Atka,Alaska,AK,Aleutians West,16,52.1224,-174.4301 | |
| 99591,Saint George Island,Alaska,AK,Aleutians West,16,56.5944,-169.6186 |
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
| // Updated: Aug. 15, 2024 | |
| // Run: node testRegex.js testText.txt | |
| // Used in https://jina.ai/tokenizer | |
| const fs = require('fs'); | |
| const util = require('util'); | |
| // Define variables for magic numbers | |
| const MAX_HEADING_LENGTH = 7; | |
| const MAX_HEADING_CONTENT_LENGTH = 200; | |
| const MAX_HEADING_UNDERLINE_LENGTH = 200; |
Launch a new agent that has access to the following tools: Bash, Glob, Grep, LS, exit_plan_mode, Read, Edit, MultiEdit, Write, NotebookRead, NotebookEdit, WebFetch, TodoRead, TodoWrite, WebSearch. When you are searching for a keyword or file and are not confident that you will find the right match in the first few tries, use the Agent tool to perform the search for you.
When to use the Agent tool:
- If you are searching for a keyword like "config" or "logger", or for questions like "which file does X?", the Agent tool is strongly recommended
When NOT to use the Agent tool:
- If you want to read a specific file path, use the Read or Glob tool instead of the Agent tool, to find the match more quickly
- If you are searching for a specific class definition like "class Foo", use the Glob tool instead, to find the match more quickly
- If you are searching for code within a specific file or set of 2-3 files, use the Read tool instead of the Agent tool, to find the match more quickly