<commit_before>import {OwnerhsipObject} from './ownershipObject'
import { AMaaSModel } from '../../../core'

class Ownership {
/**
   * Construct a new OwnershipObject instance
   * @param {object} params - Ownership creation options
   * @param {OwnershipObject} params.ownershipObjects
*/
constructor({
      ownershipObjects
    }){
     this.ownershipObjects=ownershipObjects;
    } 

  checkSplit(){
   let splitSum=0; 
   
   var arrayKey=Object.keys(this.ownershipObjects)
   
   for(var i=0; i<arrayKey.length; i++)
   {
     var currentKey = arrayKey[i];
     var getObject=this.ownershipObjects[currentKey]
     var splitValue=this.ownershipObjects[currentKey].split
     if(isNaN(splitValue)) return "error message: spliot has to be a number"
     
     splitSum=splitSum +splitValue
   }

   
   if(splitSum>1) return "error message: Ownership must sum up to 100%";
   else return "Passed"
  }
}

export  {Ownership}
<commit_msg>Change to the ownership file<commit_after>import {OwnerhsipObject} from './ownershipObject'
import { AMaaSModel } from '../../../core'

class Ownership {
/**
   * Construct a new OwnershipObject instance
   * @param {object} params - Ownership creation options
   * @param {OwnershipObject} params.ownershipObjects
*/
constructor({
      ownershipObjects
    }){
     this.ownershipObjects=ownershipObjects;
    } 

  checkSplit(){
   let splitSum=0; 
   
   var arrayKey=Object.keys(this.ownershipObjects)
   
   for(var i=0; i<arrayKey.length; i++)
   {
     var currentKey = arrayKey[i];
     var getObject=this.ownershipObjects[currentKey]
     var splitValue=this.ownershipObjects[currentKey].split
     if(isNaN(splitValue)) return "error message: split has to be a number"
     
     splitSum=splitSum+splitValue
   }

   if(splitSum>1) return "error message: Ownership must sum up to 100%";
  
  }

}

export  {Ownership}

{'fraction_non_alphanumeric': 0.11117049706039552, 'fraction_numerical': 0.006413682522715126, 'mean_word_length': 3.4571428571428573, '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': '5440612', 'n_tokens_mistral': 591, 'n_tokens_neox': 580, 'n_words': 140}