<commit_before>package in.ankushs.browscap4j

import org.slf4j.Logger
import org.slf4j.LoggerFactory

import spock.lang.Specification

class BaseSpec extends Specification{
    private static final String URL = "http://browscap.org/stream?q=BrowsCapCSV";
    private static final Logger log = LoggerFactory.getLogger(BaseSpec.class)

    private  File downloadBrowscapFile(){
        log.info("Downloading browscap.csv from $URL")
        def fileLocation =  new BaseSpec().getClass().getClassLoader().getResource("browscap.csv").getFile()
        def file = new File(fileLocation)

        def out = new BufferedOutputStream(new FileOutputStream(file))
        out << new URL(URL).openStream()
        out.close()
        log.info("Downloading finished")
        file
    }
}<commit_msg>simulating travis build<commit_after>package in.ankushs.browscap4j

import org.slf4j.Logger
import org.slf4j.LoggerFactory

import spock.lang.Specification

class BaseSpec extends Specification{
    private static final String URL = "http://browscap.org/stream?q=BrowsCapCSV";
    private static final Logger log = LoggerFactory.getLogger(BaseSpec.class)

    private static File downloadBrowscapFile(){
        log.info("Downloading browscap.csv from $URL")
        def fileLocation =  new BaseSpec().getClass().getClassLoader().getResource("browscap.csv").getFile()

        def file = new File(fileLocation)
        if(file.size() > 100000){
            def out = new BufferedOutputStream(new FileOutputStream(file))
            out << new URL(URL).openStream()
            out.close()
            log.info("Downloading finished")

        }
        file
    }
}
{'fraction_non_alphanumeric': 0.102843315184513, 'fraction_numerical': 0.007259528130671506, 'mean_word_length': 3.3641160949868074, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3310289', 'n_tokens_mistral': 490, 'n_tokens_neox': 475, 'n_words': 107}