add llm chapter
This commit is contained in:
		@@ -1,5 +1,5 @@
 | 
			
		||||
# Java-Job: 111005
 | 
			
		||||
# Python-Job: 111006
 | 
			
		||||
# Java-Job: 111839
 | 
			
		||||
# Python-Job: 111840
 | 
			
		||||
 | 
			
		||||
# Includes all revisions
 | 
			
		||||
p: Project = input;
 | 
			
		||||
 
 | 
			
		||||
@@ -1,5 +1,5 @@
 | 
			
		||||
# Java-Job: 111694
 | 
			
		||||
# Python-Job: 111439
 | 
			
		||||
# Java-Job: Throws empty error on the "2022 Jan/Java" dataset.
 | 
			
		||||
# Python-Job: 111838
 | 
			
		||||
 | 
			
		||||
# Includes all revisions
 | 
			
		||||
p: Project = input;
 | 
			
		||||
@@ -12,7 +12,7 @@ cur_date: time;
 | 
			
		||||
 | 
			
		||||
statement_counter := visitor {
 | 
			
		||||
    before node: Statement -> {
 | 
			
		||||
        if (def(node.kind) and (node.kind == StatementKind.TRY or node.kind == StatementKind.WITH))
 | 
			
		||||
        if (node.kind == StatementKind.TRY or node.kind == StatementKind.WITH)
 | 
			
		||||
            relative_list[p.name][yearof(cur_date)] << 1;
 | 
			
		||||
        else
 | 
			
		||||
            relative_list[p.name][yearof(cur_date)] << 0;
 | 
			
		||||
@@ -21,8 +21,8 @@ statement_counter := visitor {
 | 
			
		||||
 | 
			
		||||
visit(p, visitor {
 | 
			
		||||
    before node: CodeRepository -> {
 | 
			
		||||
        for (minus_year: int=22; minus_year >= 0; minus_year--) {
 | 
			
		||||
            cur_date = addyear(T"Dec 31, 2022, 10:00:00 AM", -minus_year);
 | 
			
		||||
        for (minus_year: int=19; minus_year >= 0; minus_year--) {
 | 
			
		||||
            cur_date = addyear(T"Dec 31, 2019, 10:00:00 AM", -minus_year);
 | 
			
		||||
            snapshot := getsnapshot(node, cur_date);
 | 
			
		||||
 | 
			
		||||
            foreach (i: int; def(snapshot[i]))
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user