<commit_before>package com.breeze.hib;

import java.lang.reflect.Field;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

import org.hibernate.*;
import org.hibernate.cfg.Configuration;
import org.hibernate.engine.spi.Mapping;
import org.hibernate.engine.spi.SessionFactoryImplementor;
import org.hibernate.id.Assigned;
import org.hibernate.id.ForeignGenerator;
import org.hibernate.id.IdentifierGenerator;
import org.hibernate.id.IdentityGenerator;
import org.hibernate.mapping.*;
import org.hibernate.metadata.*;
import org.hibernate.persister.collection.AbstractCollectionPersister;
import org.hibernate.persister.entity.AbstractEntityPersister;
import org.hibernate.persister.entity.EntityPersister;
import org.hibernate.persister.entity.Joinable;
import org.hibernate.service.internal.SessionFactoryServiceRegistryImpl;
import org.hibernate.service.spi.ServiceRegistryImplementor;
import org.hibernate.tuple.entity.EntityMetamodel;
import org.hibernate.type.*;

import com.breeze.metadata.Metadata;
import com.breeze.metadata.RawMetadata;

/**
 * Builds a data structure containing the metadata required by Breeze.
 * 
 * @see <a href="http://www.breezejs.com/documentation/breeze-metadata-format">Breeze Metadata Doc</a>
 * @author IdeaBlade
 *
 */
@SuppressWarnings("rawtypes")
public class HibernateMetadata extends Metadata {

    private SessionFactory _sessionFactory;
    private Configuration _configuration;
    private RawMetadata _rawMetadata;
    private List<HashMap<String, Object>> _typeList;
    private HashMap<String, Object> _resourceMap;
    private HashSet<String> _typeNames;
    private HashMap<String, String> _fkMap;
<commit_msg>Fix broken link to breeze metadata doc<commit_after>package com.breeze.hib;

import java.lang.reflect.Field;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

import org.hibernate.*;
import org.hibernate.cfg.Configuration;
import org.hibernate.engine.spi.Mapping;
import org.hibernate.engine.spi.SessionFactoryImplementor;
import org.hibernate.id.Assigned;
import org.hibernate.id.ForeignGenerator;
import org.hibernate.id.IdentifierGenerator;
import org.hibernate.id.IdentityGenerator;
import org.hibernate.mapping.*;
import org.hibernate.metadata.*;
import org.hibernate.persister.collection.AbstractCollectionPersister;
import org.hibernate.persister.entity.AbstractEntityPersister;
import org.hibernate.persister.entity.EntityPersister;
import org.hibernate.persister.entity.Joinable;
import org.hibernate.service.internal.SessionFactoryServiceRegistryImpl;
import org.hibernate.service.spi.ServiceRegistryImplementor;
import org.hibernate.tuple.entity.EntityMetamodel;
import org.hibernate.type.*;

import com.breeze.metadata.Metadata;
import com.breeze.metadata.RawMetadata;

/**
 * Builds a data structure containing the metadata required by Breeze.
 *
 * @see <a href="http://breeze.github.io/doc-js/metadata-schema.html">Breeze Metadata Doc</a>
 * @author IdeaBlade
 *
 */
@SuppressWarnings("rawtypes")
public class HibernateMetadata extends Metadata {

    private SessionFactory _sessionFactory;
    private Configuration _configuration;
    private RawMetadata _rawMetadata;
    private List<HashMap<String, Object>> _typeList;
    private HashMap<String, Object> _resourceMap;
    private HashSet<String> _typeNames;
    private HashMap<String, String> _fkMap;

{'fraction_non_alphanumeric': 0.09991787571858746, 'fraction_numerical': 0.0, 'mean_word_length': 6.040462427745664, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 1, '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': '3316465', 'n_tokens_mistral': 1102, 'n_tokens_neox': 1037, 'n_words': 220}