<commit_before><?php

if (!class_exists('CRM_Core_EntityReference')) {
/**
 * Description of a one-way link between two entities
 *
 * This could be a foreign key or a generic (entity_id, entity_table) pointer
 */
class CRM_Core_EntityReference {
  protected $refTable;
  protected $refKey;
  protected $refTypeColumn;
  protected $targetTable;
  protected $targetKey;

  function __construct($refTable, $refKey, $targetTable = NULL, $targetKey = 'id', $refTypeColumn = NULL) {
    $this->refTable = $refTable;<commit_msg>added backwards compatibility<commit_after><?php
$CRM_Core_EntityReference_exists = false;
try { $CRM_Core_EntityReference_exists = class_exists('CRM_Core_EntityReference'); } catch (Exception $e) { ; }

if (!$CRM_Core_EntityReference_exists) {
/**
 * Description of a one-way link between two entities
 *
 * This could be a foreign key or a generic (entity_id, entity_table) pointer
 */
class CRM_Core_EntityReference {
  protected $refTable;
  protected $refKey;
  protected $refTypeColumn;
  protected $targetTable;
  protected $targetKey;

  function __construct($refTable, $refKey, $targetTable = NULL, $targetKey = 'id', $refTypeColumn = NULL) {
    $this->refTable = $refTable;
{'fraction_non_alphanumeric': 0.11028192371475953, 'fraction_numerical': 0.0, 'mean_word_length': 5.559782608695652, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '5079854', 'n_tokens_mistral': 367, 'n_tokens_neox': 364, 'n_words': 101}