<commit_before>/*
 * Copyright (c) 2016 <NAME> -- All Rights Reserved.
 */
package com.partbuzz.slicer.cura;

import com.partbuzz.slicer.util.CuraEngineException;
import com.partbuzz.slicer.util.PlatformExecutable;

import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.List;
import java.util.logging.Logger;

/**
 * Invoke the CURA slicing engine.
 * <p>
 * SAMPLE BASH
 * ../../CuraEngine-master/build/CuraEngine slice -v -j ultimaker2.json -g -e -o "output/test.gcode" -l ../../models/ControlPanel.stl
 *
 * @author mike
 */
public class CuraEngine extends PlatformExecutable {

    private static final Logger log = Logger.getLogger(CuraEngine.class.getName());
    private static final String CURAENGINE_PROG = "/home/mike/Documents/WebSlicerServer/CuraEngine-master/build/CuraEngine"; //TODO: relative path???
    private final CuraEngineOptions options;

    public CuraEngine() {
        this.options = new CuraEngineOptions();
    }

    public CuraEngineOptions options() {
        return options;
    }

    public String output = "";

    /**
     * Setup a stream drainer.
     *
     * @param fp the input stream
     * @return the stream drainer
     * @throws java.io.IOException
     */<commit_msg>CuraEngine is now relative<commit_after>/*
 * Copyright (c) 2016 <NAME> -- All Rights Reserved.
 */
package com.partbuzz.slicer.cura;

import com.partbuzz.slicer.util.CuraEngineException;
import com.partbuzz.slicer.util.PlatformExecutable;

import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.List;
import java.util.logging.Logger;

/**
 * Invoke the CURA slicing engine.
 * <p>
 * SAMPLE BASH
 * ../../CuraEngine-master/build/CuraEngine slice -v -j ultimaker2.json -g -e -o "output/test.gcode" -l ../../models/ControlPanel.stl
 *
 * @author mike
 */
public class CuraEngine extends PlatformExecutable {

    private static final Logger log = Logger.getLogger(CuraEngine.class.getName());
    private static final String CURAENGINE_PROG = "CuraEngine";
    private final CuraEngineOptions options;

    public CuraEngine() {
        this.options = new CuraEngineOptions();
    }

    public CuraEngineOptions options() {
        return options;
    }

    public String output = "";

    /**
     * Setup a stream drainer.
     *
     * @param fp the input stream
     * @return the stream drainer
     * @throws java.io.IOException
     */
{'fraction_non_alphanumeric': 0.1175030599755202, 'fraction_numerical': 0.004079967360261118, 'mean_word_length': 3.1771720613287906, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '677779', 'n_tokens_mistral': 788, 'n_tokens_neox': 755, 'n_words': 194}