<commit_before><?php

namespace App\Classes;

use App\WebServices\AxisCsrmWebService;
use App\Classes\Dialog\Entity;
use App\Classes\Dialog\Property;
use App\Classes\Dialog\Comment;

class Semantics {

    private $service;

    public function __construct() {
	$this->service = new AxisCsrmWebService();
    }

    public function AddEntity(Entity $e) {
	$request = new \stdClass();
	$request->e = $e;
	return $this->service->AddEntity($request, 'App\Classes\Dialog\Entity');
    }

    public function RemoveEntity(Entity $e) {
	$request = new \stdClass();
	$request->e = $e;
	return $this->service->RemoveEntity($request);
    }

    public function SetEntityProperty(Entity $e, Property $p, Entity $valueEntity) {
	$request = new \stdClass();
	$request->e = $e;
	$request->p = $p;
	$request->valueEntity = $valueEntity;
	return $this->service->SetEntityProperty($request);
    }

    public function RemoveEntityObjectProperty(Entity $e, Property $p, Entity $valueEntity) {
	$request = new \stdClass();
	$request->e = $e;
	$request->p = $p;
	$request->valueEntity = $valueEntity;
	return $this->service->RemoveEntityObjectProperty($request);
    }

    public function RemoveEntityObjectPropertyWithObject(Entity $e, Property $p, Entity $valueEntity) {
	$request = new \stdClass();
	$request->e = $e;
	$request->p = $p;
	$request->valueEntity = $valueEntity;
	return $this->service->RemoveEntityObjectPropertyWithObject($request);
    }

    public function LoadEntityProperties(Entity $e) {
	$request = new \stdClass();
	$request->e = $e;
	return $this->service->LoadEntityProperties($request, 'App\Classes\Dialog\Property[]');
    }

    public function SearchOurEntitiesFromText($needle) {
	$request = new \stdClass();
	$request->needle = $needle;
	return $this->service->SearchOurEntitiesFromText($request, 'App\Classes\Dialog\Entity[]');
    }

    public function SearchAllEntitiesFromText($needle) {
	$request = new \stdClass();
	$request->needle = $needle;
	return $this->service->SearchAllEntitiesFromText($request, 'App\Classes\Dialog\Entity[]');
    }

    public function GetAllEntities() {
	$request = new \stdClass();
	return $this->service->GetAllEntities($request, 'App\Classes\Dialog\Entity[]');
    }

    public function GetAllPropertiesAdmin(Entity $e) {
	$request = new \stdClass();
	$request->e = $e;
	return $this->service->GetallPropertiesAdmin($request, 'App\Classes\Dialog\PropertyAdmin[]');
    }
    
    public function GetEntity(Entity $e){
	$request = new \stdClass();
	$request->e = $e;
	return $this->service->GetEntity($request);
    }

}<commit_msg>FIX : la fonction semantic::GetEntity  renvoie bien un objet de type Entity<commit_after><?php

namespace App\Classes;

use App\WebServices\AxisCsrmWebService;
use App\Classes\Dialog\Entity;
use App\Classes\Dialog\Property;
use App\Classes\Dialog\Comment;

class Semantics {

    private $service;

    public function __construct() {
	$this->service = new AxisCsrmWebService();
    }

    public function AddEntity(Entity $e) {
	$request = new \stdClass();
	$request->e = $e;
	return $this->service->AddEntity($request, 'App\Classes\Dialog\Entity');
    }

    public function RemoveEntity(Entity $e) {
	$request = new \stdClass();
	$request->e = $e;
	return $this->service->RemoveEntity($request);
    }

    public function SetEntityProperty(Entity $e, Property $p, Entity $valueEntity) {
	$request = new \stdClass();
	$request->e = $e;
	$request->p = $p;
	$request->valueEntity = $valueEntity;
	return $this->service->SetEntityProperty($request);
    }

    public function RemoveEntityObjectProperty(Entity $e, Property $p, Entity $valueEntity) {
	$request = new \stdClass();
	$request->e = $e;
	$request->p = $p;
	$request->valueEntity = $valueEntity;
	return $this->service->RemoveEntityObjectProperty($request);
    }

    public function RemoveEntityObjectPropertyWithObject(Entity $e, Property $p, Entity $valueEntity) {
	$request = new \stdClass();
	$request->e = $e;
	$request->p = $p;
	$request->valueEntity = $valueEntity;
	return $this->service->RemoveEntityObjectPropertyWithObject($request);
    }

    public function LoadEntityProperties(Entity $e) {
	$request = new \stdClass();
	$request->e = $e;
	return $this->service->LoadEntityProperties($request, 'App\Classes\Dialog\Property[]');
    }

    public function SearchOurEntitiesFromText($needle) {
	$request = new \stdClass();
	$request->needle = $needle;
	return $this->service->SearchOurEntitiesFromText($request, 'App\Classes\Dialog\Entity[]');
    }

    public function SearchAllEntitiesFromText($needle) {
	$request = new \stdClass();
	$request->needle = $needle;
	return $this->service->SearchAllEntitiesFromText($request, 'App\Classes\Dialog\Entity[]');
    }

    public function GetAllEntities() {
	$request = new \stdClass();
	return $this->service->GetAllEntities($request, 'App\Classes\Dialog\Entity[]');
    }

    public function GetAllPropertiesAdmin(Entity $e) {
	$request = new \stdClass();
	$request->e = $e;
	return $this->service->GetallPropertiesAdmin($request, 'App\Classes\Dialog\PropertyAdmin[]');
    }
    
    public function GetEntity(Entity $e){
	$request = new \stdClass();
	$request->e = $e;
	return $this->service->GetEntity($request,'App\Classes\Dialog\Entity');
    }

}
{'fraction_non_alphanumeric': 0.15742499050512723, 'fraction_numerical': 0.0, 'mean_word_length': 4.639186295503212, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 81, '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': '7358461', 'n_tokens_mistral': 1667, 'n_tokens_neox': 1648, 'n_words': 344}