<commit_before>package com.ullink

import org.gradle.api.internal.ConventionTask
import org.gradle.api.tasks.InputFile
import org.gradle.api.tasks.InputFiles
import org.gradle.api.tasks.OutputFile
import org.gradle.api.tasks.TaskAction

class Ikvm extends ConventionTask {
    def home
    def destinationDir
    String assemblyName
    boolean debug = true
    def keyFile
    String version
    String fileVersion
    def srcPath
    boolean removeAssertions = true
    boolean compressResources = true
    boolean generateDoc = true
    boolean delaySign = false
    String classloader
    String target
    String main
    
    Ikvm() {
        description = 'Generates a .Net assembly from the project jar'
        conventionMapping.map "destinationDir", { project.jar.destinationDir }
        conventionMapping.map "assemblyName", { project.name }
        conventionMapping.map "version", { project.version }
        conventionMapping.map "home", { System.getenv()['IKVM_HOME'] }
        dependsOn(project.tasks.jar)
    }
    
    @InputFile
    def getIkvmc(){
        assert home, "You must install Ikvm and set ikvm.home property or IKVM_HOME env variable"
        def ikvmExec = new File(project.file(home), 'bin/ikvmc.exe')
        assert ikvmExec.exists(), "You must install Ikvm and set ikvm.home property or IKVM_HOME env variable"
        ikvmExec
    } 
    <commit_msg>Don't generate doc by default<commit_after>package com.ullink

import org.gradle.api.internal.ConventionTask
import org.gradle.api.tasks.InputFile
import org.gradle.api.tasks.InputFiles
import org.gradle.api.tasks.OutputFile
import org.gradle.api.tasks.TaskAction

class Ikvm extends ConventionTask {
    def home
    def destinationDir
    String assemblyName
    boolean debug = true
    def keyFile
    String version
    String fileVersion
    def srcPath
    boolean removeAssertions = true
    boolean compressResources = true
    boolean generateDoc = false
    boolean delaySign = false
    String classloader
    String target
    String main
    
    Ikvm() {
        description = 'Generates a .Net assembly from the project jar'
        conventionMapping.map "destinationDir", { project.jar.destinationDir }
        conventionMapping.map "assemblyName", { project.name }
        conventionMapping.map "version", { project.version }
        conventionMapping.map "home", { System.getenv()['IKVM_HOME'] }
        dependsOn(project.tasks.jar)
    }
    
    @InputFile
    def getIkvmc(){
        assert home, "You must install Ikvm and set ikvm.home property or IKVM_HOME env variable"
        def ikvmExec = new File(project.file(home), 'bin/ikvmc.exe')
        assert ikvmExec.exists(), "You must install Ikvm and set ikvm.home property or IKVM_HOME env variable"
        ikvmExec
    } 
    
{'fraction_non_alphanumeric': 0.0748835542816195, 'fraction_numerical': 0.0, 'mean_word_length': 3.005738880918221, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5511346', 'n_tokens_mistral': 793, 'n_tokens_neox': 775, 'n_words': 226}