<commit_before>Clazz.load (["java.lang.Comparable", "$.Number"], "java.lang.Byte", null, function () {
java.lang.Byte = Byte = function () {
Clazz.instantialize (this, arguments);
};
Clazz.decorateAsType (Byte, "Byte", Number, Comparable, null, true);
Byte.prototype.valueOf = function () { return 0; };
Byte.toString = Byte.prototype.toString = function () {
	if (arguments.length != 0) {
		return "" + arguments[0];
	} else if (this === Byte) {
		return "class java.lang.Byte"; // Byte.class.toString
	}
	return "" + this.valueOf ();
};
Clazz.makeConstructor (Byte, 
function () {
this.valueOf = function () {
	return 0;
};
});
Clazz.makeConstructor (Byte, 
function (value) {
var v = Math.round (value) & 0xffffffff;
this.valueOf = function () {
	return v;
};
}, "Number");
Clazz.makeConstructor (Byte, 
function (s) {
var value = Byte.parseByte (s, 10);
this.valueOf = function () {
	return value;
};
}, "String");
Byte.serialVersionUID = Byte.prototype.serialVersionUID = -7183698231559129828;
Byte.MIN_VALUE = Byte.prototype.MIN_VALUE = -128;
Byte.MAX_VALUE = Byte.prototype.MAX_VALUE = 127;
Byte.SIZE = Byte.prototype.SIZE = 8;
Byte.TYPE = Byte.prototype.TYPE = Byte;

Clazz.defineMethod (Byte, "parseByte", 
function (s, radix) {
if (s == null) {
throw  new NumberFormatException ("null");
}if (radix < 2) {
throw  new NumberFormatException ("radix " + radix + " less than Character.MIN_RADIX");
}if (radix > 36) {
throw  new NumberFormatException ("radix " + radix + " greater than Character.MAX_RADIX");
}
var i = 0;
var len = s.length;
var digit;
while(i<len){
digit = Character.digit(s.charAt(i++),radix);
if (digit < 0) {
throw new NumberFormatException("For input string: \"" + s + "\"");
}
}
var integer = parseInt (s, radix);
if(isNaN(integer)){
throw  new NumberFormatException ("Not a Number : " + s);
}

if (integer < MIN_VALUE || integer > MAX_VALUE){
throw new NumberFormatException("Value out of range. Value:\"" + s + "\" Radix:" + radix);
}
return integer;
}, "String, Number");
Byte.parseByte = Byte.prototype.parseByte;
Clazz.defineMethod (Byte, "parseByte", 
function (s) {
return Byte.parseByte (s, 10);
}, "String");

Byte.parseByte = Byte.prototype.parseByte;

Clazz.defineMethod (Byte, "$valueOf", 
function (s) {
return new Byte(Byte.parseByte (s, 10));
}, "String");

Clazz.defineMethod (Byte, "$valueOf", 
function (s) {
return new Byte(s);
}, "Number");

Clazz.defineMethod (Byte, "$valueOf", 
function (s, r) {<commit_msg>fix bug 1873 parseByte() not right Change-Id: Ie9ac613591e5376781f07bdac699acbc9715c37a<commit_after>Clazz.load (["java.lang.Comparable", "$.Number"], "java.lang.Byte", null, function () {
java.lang.Byte = Byte = function () {
Clazz.instantialize (this, arguments);
};
Clazz.decorateAsType (Byte, "Byte", Number, Comparable, null, true);
Byte.prototype.valueOf = function () { return 0; };
Byte.toString = Byte.prototype.toString = function () {
	if (arguments.length != 0) {
		return "" + arguments[0];
	} else if (this === Byte) {
		return "class java.lang.Byte"; // Byte.class.toString
	}
	return "" + this.valueOf ();
};
Byte.hashCode = Byte.prototype.hashCode = function () {
return this.valueOf ();
};
Clazz.makeConstructor (Byte, 
function () {
this.valueOf = function () {
	return 0;
};
});
Clazz.makeConstructor (Byte, 
function (value) {
var v = Math.round (value) & 0xffffffff;
this.valueOf = function () {
	return v;
};
}, "Number");
Clazz.makeConstructor (Byte, 
function (s) {
var value = Byte.parseByte (s, 10);
this.valueOf = function () {
	return value;
};
}, "String");
Byte.serialVersionUID = Byte.prototype.serialVersionUID = -7183698231559129828;
Byte.MIN_VALUE = Byte.prototype.MIN_VALUE = -128;
Byte.MAX_VALUE = Byte.prototype.MAX_VALUE = 127;
Byte.SIZE = Byte.prototype.SIZE = 8;
Byte.TYPE = Byte.prototype.TYPE = Byte;

Clazz.defineMethod (Byte, "parseByte", 
function (s, radix) {
if (s == null) {
throw  new NumberFormatException ("null");
}if (radix < 2) {
throw  new NumberFormatException ("radix " + radix + " less than Character.MIN_RADIX");
}if (radix > 36) {
throw  new NumberFormatException ("radix " + radix + " greater than Character.MAX_RADIX");
}
var i = 0;
var len = s.length;
var digit;
if (len > 0) {
var firstChar = s.charAt(0);
if (firstChar < '0') { // Possible leading "+" or "-"
if (firstChar != '-' && firstChar != '+') {
throw new NumberFormatException(s);
}
if (len == 1) // Cannot have lone "+" or "-"
throw new NumberFormatException("Cannot have lone \"+\" or \"-\"" +s);
i++;
}
}
while(i<len){
digit = Character.digit(s.charAt(i++),radix);
if (digit < 0) {
throw new NumberFormatException("For input string: \"" + s + "\"");
}
}
var integer = parseInt (s, radix);
if(isNaN(integer)){
throw  new NumberFormatException ("Not a Number : " + s);
}
if (integer < Byte.MIN_VALUE || integer > Byte.MAX_VALUE){
throw new NumberFormatException("Value out of range. Value:\"" + s + "\" Radix:" + radix);
}
return integer;
}, "String, Number");
Byte.parseByte = Byte.prototype.parseByte;
Clazz.defineMethod (Byte, "parseByte", 
function (s) {
return Byte.parseByte (s, 10);
}, "String");

Byte.parseByte = Byte.prototype.parseByte;

Clazz.defineMethod (Byte, "$valueOf", 
function (s) {
return new Byte(Byte.parseByte (s, 10));
}, "String");

Clazz.defineMethod (Byte, "$valueOf", 
function (s) {
return new Byte(s);
}, "Number");

Clazz.defineMethod (Byte, "$valueOf", 
function (s, r) {
{'fraction_non_alphanumeric': 0.17839242621124932, 'fraction_numerical': 0.021718953035084462, 'mean_word_length': 4.6835443037974684, 'pattern_counts': {'":': 0, '<': 12, '<?xml version=': 0, '>': 8, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 2, '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': '3827729', 'n_tokens_mistral': 1933, 'n_tokens_neox': 1828, 'n_words': 482}