<commit_before>'use strict';

/**** Code to use for the purpose of the example  ****/
function AConstructor(name) {
  this.name = name;
}

AConstructor.prototype.getName = function () {
  return this.name;
};

AConstructor.prototype.setName = function (name) {
  this.name = name;
};
/**********/

/**** Below Some examples with ECMAScripts 6 examples  ****/

const aString = 'You never can asign me to another value';
console.log(aString); // Obviously it prints its asinged value above

aString = 'Change'; // It crashes at compilation time with Error: "SyntaxError: Assignment to constant variable." 

const anObj = new AConstructor('You should not change me');

anObj.getName(); // returns 'You should not change me' 
anObj.setName('I changed you'); // It compiles, because const relates to the created object's reference stored in it, no to the value
    
anObj = new AConstruactor('It is going to crash'); // It crashes at compilation time with Error: "SyntaxError: Assignment to constant variable."


<commit_msg>Removed blank spaces of blank line<commit_after>'use strict';

/**** Code to use for the purpose of the example  ****/
function AConstructor(name) {
  this.name = name;
}

AConstructor.prototype.getName = function () {
  return this.name;
};

AConstructor.prototype.setName = function (name) {
  this.name = name;
};
/**********/

/**** Below Some examples with ECMAScripts 6 examples  ****/

const aString = 'You never can asign me to another value';
console.log(aString); // Obviously it prints its asinged value above

aString = 'Change'; // It crashes at compilation time with Error: "SyntaxError: Assignment to constant variable." 

const anObj = new AConstructor('You should not change me');

anObj.getName(); // returns 'You should not change me' 
anObj.setName('I changed you'); // It compiles, because const relates to the created object's reference stored in it, no to the value

anObj = new AConstruactor('It is going to crash'); // It crashes at compilation time with Error: "SyntaxError: Assignment to constant variable."



{'fraction_non_alphanumeric': 0.12153621779290229, 'fraction_numerical': 0.0009722897423432182, 'mean_word_length': 4.25, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4776915', 'n_tokens_mistral': 578, 'n_tokens_neox': 564, 'n_words': 239}