<commit_before>package org.ruleml.oojdrew.tests;

import java.io.File;

import junit.framework.TestCase;

import org.ruleml.oojdrew.COjDA;
import org.ruleml.oojdrew.SyntaxFormat;
import org.ruleml.oojdrew.parsing.RuleMLFormat;
import org.ruleml.oojdrew.util.Util;

public class COjDATest extends TestCase {
    
    private COjDA api;
    
    public static void main(String[] args) {
        try {
            COjDATest test = new COjDATest("RuleML 1.0 parsing via API (StudyCourse)");
            test.ruleML100ParsingTestStudyCourse();

            System.out.println("All tests passed.");
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
    
    public COjDATest(String testName) {
        super(testName);
        
        api = COjDA.getCOjDA();
    }
    
    public void ruleML100ParsingTestStudyCourse() {
        api.configureAPI(RuleMLFormat.RuleML100);
        
        String testCaseDirectory = "src/test/java/org/ruleml/oojdrew/tests/RuleMLTestCases/";
        
        // Knowledge base and corresponding syntax format
        File rmlKnowledgeBase = new File(testCaseDirectory + "studycourse.ruleml.xml");
        SyntaxFormat kbSyntax = SyntaxFormat.RULEML;
        
        // Query and corresponding syntax format
        File rmlQuery = new File(testCaseDirectory + "studycourse.rulemlquery.xml");
        SyntaxFormat querySyntax = SyntaxFormat.RULEML;
        <commit_msg>Fixed method call in API test case<commit_after>package org.ruleml.oojdrew.tests;

import java.io.File;

import junit.framework.TestCase;

import org.ruleml.oojdrew.COjDA;
import org.ruleml.oojdrew.SyntaxFormat;
import org.ruleml.oojdrew.parsing.RuleMLFormat;
import org.ruleml.oojdrew.util.Util;

public class COjDATest extends TestCase {
    
    private COjDA api;
    
    public static void main(String[] args) {
        try {
            COjDATest test = new COjDATest("RuleML 1.0 parsing via API (StudyCourse)");
            test.testRuleML100ParsingStudyCourse();

            System.out.println("All tests passed.");
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
    
    public COjDATest(String testName) {
        super(testName);
        
        api = COjDA.getCOjDA();
    }
    
    public void testRuleML100ParsingStudyCourse() {
        api.configureAPI(RuleMLFormat.RuleML100);
        
        String testCaseDirectory = "src/test/java/org/ruleml/oojdrew/tests/RuleMLTestCases/";
        
        // Knowledge base and corresponding syntax format
        File rmlKnowledgeBase = new File(testCaseDirectory + "studycourse.ruleml.xml");
        SyntaxFormat kbSyntax = SyntaxFormat.RULEML;
        
        // Query and corresponding syntax format
        File rmlQuery = new File(testCaseDirectory + "studycourse.rulemlquery.xml");
        SyntaxFormat querySyntax = SyntaxFormat.RULEML;
        
{'fraction_non_alphanumeric': 0.09037191518943344, 'fraction_numerical': 0.0076468543621828295, 'mean_word_length': 2.5751552795031056, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '6609725', 'n_tokens_mistral': 893, 'n_tokens_neox': 850, 'n_words': 176}