<commit_before><?php

// Place this file in the modules/janus-ssp/www directory.
//
// By default the rest interface is disabled as it currently doesn't feature
// authentication and opens up the registry to outside use. Comment this line
// if you understand the risks and want to enable the REST service.
die("REST interface disabled"); 

// for debugging
// error_reporting(E_ALL);
// ini_set('display_errors', true);

/**
 * Small utility class to look up the eid of an Entity based on an entityid
 * or search query; 
 * Janus only works with eid's internally so we need an eid as soon as we 
 * can get one.
 * sspmod_janus_Database can only be used by inheriting from it and I
 * didn't want to use inheritance for my main class, hence this utility class.
 * @author Ivo
 */
class sspmod_janus_EntityFinder extends sspmod_janus_Database
{
   /**
     * Create a new entityFinder<commit_msg>Send proper header so REST clients will understand to throw an exception<commit_after><?php

// Place this file in the modules/janus-ssp/www directory.
//
// By default the rest interface is disabled as it currently doesn't feature
// authentication and opens up the registry to outside use. Comment this line
// if you understand the risks and want to enable the REST service.
header("HTTP/1.1 503 Service Temporarily Unavailable");
die("REST interface disabled"); 

// for debugging
// error_reporting(E_ALL);
// ini_set('display_errors', true);

/**
 * Small utility class to look up the eid of an Entity based on an entityid
 * or search query; 
 * Janus only works with eid's internally so we need an eid as soon as we 
 * can get one.
 * sspmod_janus_Database can only be used by inheriting from it and I
 * didn't want to use inheritance for my main class, hence this utility class.
 * @author Ivo
 */
class sspmod_janus_EntityFinder extends sspmod_janus_Database
{
   /**
     * Create a new entityFinder
{'fraction_non_alphanumeric': 0.07281299109481404, 'fraction_numerical': 0.0026191723415400735, 'mean_word_length': 3.7869674185463658, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '1734156', 'n_tokens_mistral': 546, 'n_tokens_neox': 521, 'n_words': 259}