Skip to content

Commit bc04769

Browse files
committed
retrigger codeQL scan
1 parent 74e99d2 commit bc04769

File tree

2 files changed

+1
-40
lines changed

2 files changed

+1
-40
lines changed

libs/text-splitters/langchain_text_splitters/character.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -815,7 +815,7 @@ def get_separators_for_language(language: Language) -> list[str]:
815815
"\nEXPLAIN ",
816816
"\ncall ",
817817
"\nCALL ",
818-
# aplit along permissions and transactions
818+
# split along permissions and transactions
819819
"\ngrant ",
820820
"\nGRANT ",
821821
"\nrevoke ",

libs/text-splitters/tests/unit_tests/test_text_splitters.py

Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -3277,45 +3277,6 @@ def test_visualbasic6_code_splitter() -> None:
32773277
]
32783278

32793279

3280-
def test_mysql_code_splitter() -> None:
3281-
splitter = RecursiveCharacterTextSplitter.from_language(
3282-
Language.MYSQL,
3283-
chunk_size=CHUNK_SIZE,
3284-
chunk_overlap=0,
3285-
)
3286-
code = """
3287-
CREATE TABLE products (
3288-
id INT PRIMARY KEY,
3289-
name VARCHAR(100)
3290-
);
3291-
INSERT INTO products VALUES (1, 'Keyboard'), (2, 'Mouse');
3292-
SELECT * FROM products WHERE id = 1;
3293-
SELECT name FROM products ORDER BY name DESC;
3294-
"""
3295-
chunks = splitter.split_text(code)
3296-
assert chunks == [
3297-
"CREATE TABLE",
3298-
"products (",
3299-
"id INT",
3300-
"PRIMARY KEY,",
3301-
"name",
3302-
"VARCHAR(100)",
3303-
");",
3304-
"INSERT INTO",
3305-
"products VALUES",
3306-
"(1,",
3307-
"'Keyboard'),",
3308-
"(2, 'Mouse');",
3309-
"SELECT * FROM",
3310-
"products WHERE",
3311-
"id = 1;",
3312-
"SELECT name",
3313-
"FROM products",
3314-
"ORDER BY name",
3315-
"DESC;",
3316-
]
3317-
3318-
33193280
def custom_iframe_extractor(iframe_tag: Tag) -> str:
33203281
iframe_src = iframe_tag.get("src", "")
33213282
return f"[iframe:{iframe_src}]({iframe_src})"

0 commit comments

Comments
 (0)