<commit_before>package com.vitco.app.core.container;

import java.io.IOException;
import java.io.InputStream;
import java.io.ObjectInputStream;
import java.io.ObjectStreamClass;
import java.lang.reflect.Field;
import java.util.HashMap;
import java.util.Map;

/**
 * Temporary fix for loading old files.
 *
 * todo: Remove when new format is ready
 */
public class HackedObjectInputStream extends ObjectInputStream {

        /**
         * Migration table. Holds old to new classes representation.
         */
        private static final Map<String, Class<?>> MIGRATION_MAP = new HashMap<String, Class<?>>();

        static {
            MIGRATION_MAP.put("com.vitco.app.engine.data.container.VoxelLayer", com.vitco.app.core.data.container.VoxelLayer.class);
            MIGRATION_MAP.put("com.vitco.app.engine.data.container.Voxel", com.vitco.app.core.data.container.Voxel.class);
            MIGRATION_MAP.put("com.vitco.app.engine.data.container.ExtendedVector", com.vitco.app.core.data.container.ExtendedVector.class);
            MIGRATION_MAP.put("com.vitco.app.engine.data.container.ExtendedLine", com.vitco.app.core.data.container.ExtendedLine.class);
            MIGRATION_MAP.put("com.vitco.app.engine.data.container.DataContainer", com.vitco.app.core.data.container.DataContainer.class);
        }

        /**
         * Constructor.
         * @param stream input stream
         * @throws IOException if io error
         */
        public HackedObjectInputStream(final InputStream stream) throws IOException {
            super(stream);<commit_msg>- fixed issue with loading older vsd files<commit_after>package com.vitco.app.core.container;

import java.io.IOException;
import java.io.InputStream;
import java.io.ObjectInputStream;
import java.io.ObjectStreamClass;
import java.lang.reflect.Field;
import java.util.HashMap;
import java.util.Map;

/**
 * Temporary fix for loading old files.
 *
 * todo: Remove when new format is ready
 */
public class HackedObjectInputStream extends ObjectInputStream {

        /**
         * Migration table. Holds old to new classes representation.
         */
        private static final Map<String, Class<?>> MIGRATION_MAP = new HashMap<String, Class<?>>();

        static {
            MIGRATION_MAP.put("com.vitco.app.engine.data.container.VoxelLayer", com.vitco.app.core.data.container.VoxelLayer.class);
            MIGRATION_MAP.put("com.vitco.app.engine.data.container.Voxel", com.vitco.app.core.data.container.Voxel.class);
            MIGRATION_MAP.put("com.vitco.app.engine.data.container.ExtendedVector", com.vitco.app.core.data.container.ExtendedVector.class);
            MIGRATION_MAP.put("com.vitco.app.engine.data.container.ExtendedLine", com.vitco.app.core.data.container.ExtendedLine.class);
            MIGRATION_MAP.put("com.vitco.app.engine.data.container.DataContainer", com.vitco.app.core.data.container.DataContainer.class);
            MIGRATION_MAP.put("com.vitco.core.data.container.VoxelLayer", com.vitco.app.core.data.container.VoxelLayer.class);
            MIGRATION_MAP.put("com.vitco.core.data.container.Voxel", com.vitco.app.core.data.container.Voxel.class);
            MIGRATION_MAP.put("com.vitco.core.data.container.ExtendedVector", com.vitco.app.core.data.container.ExtendedVector.class);
            MIGRATION_MAP.put("com.vitco.core.data.container.ExtendedLine", com.vitco.app.core.data.container.ExtendedLine.class);
            MIGRATION_MAP.put("com.vitco.core.data.container.DataContainer", com.vitco.app.core.data.container.DataContainer.class);
        }

        /**
         * Constructor.
         * @param stream input stream
         * @throws IOException if io error
         */
        public HackedObjectInputStream(final InputStream stream) throws IOException {
            super(stream);
{'fraction_non_alphanumeric': 0.12204103103629668, 'fraction_numerical': 0.0, 'mean_word_length': 3.2255555555555557, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '6080248', 'n_tokens_mistral': 1196, 'n_tokens_neox': 1144, 'n_words': 174}