<commit_before>import _ from 'lodash';
import pubsub from 'pubsub-js';
import React from 'react';
import update from 'react-addons-update';
import { parseText } from 'gcode-parser';
import GCodeStats from './GCodeStats';
import GCodeTable from './GCodeTable';
import socket from '../../../lib/socket';
import {
    IMPERIAL_UNIT,
    METRIC_UNIT,
    GCODE_STATUS
} from './constants';

class GCode extends React.Component {
    state = {
        port: '',
        unit: METRIC_UNIT,<commit_msg>Add missing log library<commit_after>import _ from 'lodash';
import pubsub from 'pubsub-js';
import React from 'react';
import update from 'react-addons-update';
import { parseText } from 'gcode-parser';
import GCodeStats from './GCodeStats';
import GCodeTable from './GCodeTable';
import log from '../../../lib/log';
import socket from '../../../lib/socket';
import {
    IMPERIAL_UNIT,
    METRIC_UNIT,
    GCODE_STATUS
} from './constants';

class GCode extends React.Component {
    state = {
        port: '',
        unit: METRIC_UNIT,
{'fraction_non_alphanumeric': 0.13996138996138996, 'fraction_numerical': 0.0, 'mean_word_length': 3.4698275862068964, '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': '5986885', 'n_tokens_mistral': 318, 'n_tokens_neox': 320, 'n_words': 96}