<commit_before>help
help insert
help create

SHOW TYPES;
SHOW RELATIONS;

MATCH (p:Person);
MATCH (p:Person) WHERE id < 15;
MATCH (p:Person) WHERE id < 15 RETURN name;
MATCH (p:Person) WHERE id < 15 OR id > 490;
MATCH (p:Person) WHERE id < 15 AND id > 490;
MATCH (p1:Person)-[k:KNOWS]->(p2:Person);
MATCH (p1:Person)-[KNOWS]->(p1:Person); // error
MATCH (p1:Person)-[k:KNOWS]->(p2:Person) WHERE p1.id < 100;
MATCH (p1:Person)-[k:KNOWS]->(p2:Person) WHERE p1.id < 100 AND p1.age < p2.age;
MATCH (p1:Person)-[k:KNOWS]->(p2:Person) WHERE p1.id < 100 AND p1.age < p2.age RETURN p1.name, p2.name;
MATCH (p1:Person)-[k:KNOWS]->(p2:Person) WHERE p1.id < 100 AND p1.age < p2.age RETURN name; // error
MATCH (p1:Person)-[KNOWS]->(Person)-[KNOWS]->(p2:Person);

MATCH (p1:Person)-[k:KNOWS]->(p2:Person) WHERE p1.id = 12;
UPDATE RELATION Person(id = 12)-KNOWS SET num_years = 42;
MATCH (p1:Person)-[k:KNOWS]->(p2:Person) WHERE p1.id = 12;
DELETE RELATION Person(id = 12)-KNOWS;
MATCH (p1:Person)-[k:KNOWS]->(p2:Person) WHERE p1.id = 12;

MATCH (p1:Person)-[k:KNOWS]->(p2:Person) WHERE p1.id = 22;
DELETE NODE Person(id = 22);
MATCH (Person) WHERE id = 22;
MATCH (p1:Person)-[k:KNOWS]->(p2:Person) WHERE p1.id = 22;

CREATE TYPE T(a: int[]);
INSERT NODE T(3); // error
INSERT NODE T([true, false]); // error
INSERT NODE T([true, 5]); // error
INSERT NODE T([1,2]), T([]);
MATCH (T);
UPDATE NODE T(a=[1,2]) SET a = [1,2,3];
MATCH (T);
DELETE NODE T(a=[1,2,3]);
MATCH (T);
DROP TYPE T;
MATCH (T); // error
<commit_msg>Update demo code<commit_after>help
help insert
help create

SHOW TYPES;
SHOW RELATIONS;

MATCH (p:Person);
MATCH (p:Person) WHERE id < 15;
MATCH (p:Person) WHERE id < 15 RETURN name;
MATCH (p:Person) WHERE id < 15 OR id > 990;
MATCH (p:Person) WHERE id < 15 AND id > 990;
MATCH (p1:Person)-[k:KNOWS]->(p2:Person);
MATCH (p1:Person)-[KNOWS]->(p1:Person); // error
MATCH (p1:Person)-[k:KNOWS]->(p2:Person) WHERE p1.id < 100;
MATCH (p1:Person)-[k:KNOWS]->(p2:Person) WHERE p1.id < 100 AND p1.age < p2.age;
MATCH (p1:Person)-[k:KNOWS]->(p2:Person) WHERE p1.id < 100 AND p1.age < p2.age RETURN p1.name, p2.name;
MATCH (p1:Person)-[k:KNOWS]->(p2:Person) WHERE p1.id < 100 AND p1.age < p2.age RETURN name; // error
MATCH (p1:Person)-[KNOWS]->(Person)-[KNOWS]->(p2:Person);

MATCH (p1:Person)-[k:KNOWS]->(p2:Person) WHERE p1.id = 12;
UPDATE RELATION Person(id = 12)-KNOWS SET num_years = 42;
MATCH (p1:Person)-[k:KNOWS]->(p2:Person) WHERE p1.id = 12;
DELETE RELATION Person(id = 12)-KNOWS;
MATCH (p1:Person)-[k:KNOWS]->(p2:Person) WHERE p1.id = 12;

MATCH (p1:Person)-[k:KNOWS]->(p2:Person) WHERE p1.id = 22;
DELETE NODE Person(id = 22);
MATCH (Person) WHERE id = 22;
MATCH (p1:Person)-[k:KNOWS]->(p2:Person) WHERE p1.id = 22;

CREATE TYPE T(a: int[]);
INSERT NODE T(3); // error
INSERT NODE T([true, false]); // error
INSERT NODE T([true, 5]); // error
INSERT NODE T([1,2]), T([]);
MATCH (T);
UPDATE NODE T(a=[1,2]) SET a = [1,2,3];
MATCH (T);
DELETE NODE T(a=[1,2,3]);
MATCH (T);
DROP TYPE T;
MATCH (T); // error

{'fraction_non_alphanumeric': 0.21122550647625374, 'fraction_numerical': 0.0657588840916639, 'mean_word_length': 4.7371428571428575, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 33, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1310640', 'n_tokens_mistral': 1451, 'n_tokens_neox': 1306, 'n_words': 340}