<commit_before>/**
 * @author WestLangley / http://github.com/WestLangley
 * @author <NAME> / bhouston / http://clara.io
 *
 * parameters = {
 *  color: <hex>,
 *  roughness: <float>,
 *  metalness: <float>,
 *  opacity: <float>,
 *
 *  map: new THREE.Texture( <Image> ),
 *
 *  lightMap: new THREE.Texture( <Image> ),
 *  lightMapIntensity: <float>
 *
 *  aoMap: new THREE.Texture( <Image> ),
 *  aoMapIntensity: <float>
 *
 *  emissive: <hex>,
 *  emissiveIntensity: <float>
 *  emissiveMap: new THREE.Texture( <Image> ),
 *
 *  bumpMap: new THREE.Texture( <Image> ),
 *  bumpScale: <float>,
 *
 *  normalMap: new THREE.Texture( <Image> ),
 *  normalScale: <Vector2>,
 *
 *  displacementMap: new THREE.Texture( <Image> ),
 *  displacementScale: <float>,
 *  displacementBias: <float>,
 *
 *  roughnessMap: new THREE.Texture( <Image> ),
 *
 *  metalnessMap: new THREE.Texture( <Image> ),
 *
 *  alphaMap: new THREE.Texture( <Image> ),
 *
 *  envMap: new THREE.CubeTexture( [posx, negx, posy, negy, posz, negz] ),
 *  envMapIntensity: <float>
 *
 *  refractionRatio: <float>,
 *
 *  shading: THREE.SmoothShading,
 *  blending: THREE.PremultipliedAlphaNormalBlending,
 *  depthTest: <bool>,
 *  depthWrite: <bool>,
 *
 *  wireframe: <boolean>,
 *  wireframeLinewidth: <float>,
 *
 *  vertexColors: THREE.NoColors / THREE.VertexColors / THREE.FaceColors,
 *
 *  skinning: <bool>,
 *  morphTargets: <bool>,
 *  morphNormals: <bool>,
 *
 *	fog: <bool>
 * }
 */

THREE.MeshStandardMaterial = function ( parameters ) {

	THREE.Material.call( this );

	this.type = 'MeshStandardMaterial';

	this.color = new THREE.Color( 0xffffff ); // diffuse
	this.roughness = 0.5;
	this.metalness = 0.5;

	//this.map = null;
	this.mapSlot = new THREE.TextureSlot( "map", 0, false, false );

	//this.lightMap = null;
	//this.lightMapIntensity = 1.0;
	this.lightMapSlot = new THREE.TextureSlot( "lightMap", 1, false, true );

	//this.aoMap = null;
	this.aoMapIntensity = 1.0;
	this.aoMapSlot = new THREE.TextureSlot( "aoMap", 1, false, true );

	this.emissive = new THREE.Color( 0x000000 );
	this.emissiveIntensity = 1.0;
	//this.emissiveMap = null;
	this.emissiveMapSlot = new THREE.TextureSlot( "emissiveMap", 0, false, false );

	//this.bumpMap = null;
	//this.bumpScale = 1;
	this.bumpMapSlot = new THREE.TextureSlot( "bumpMap", 0, false, true );

	//this.normalMap = null;
	this.normalScale = new THREE.Vector2( 1, 1 );
	this.normalMapSlot = new THREE.TextureSlot( "normalMap", 0, false, false );

	//this.displacementMap = null;
	//this.displacementScale = 1;
	//this.displacementBias = 0;
	this.displacementMapSlot = new THREE.TextureSlot( "displacementMap", 0, false, true );

	//this.roughnessMap = null;
	this.roughnessMapSlot = new THREE.TextureSlot( "roughnessMap", 0, false, false );

	//this.metalnessMap = null;
	this.metalnessMapSlot = new THREE.TextureSlot( "metalnessMap", 0, false, false );

	//this.alphaMap = null;
	this.alphaMapSlot = new THREE.TextureSlot( "alphaMap", 0, false, false );

	//this.slots = [ this.mapSlot, this.lightMapSlot, this.aoMapSlot, this.emissiveMapSlot, this.bumpMapSlot,
	//	this.normalMapSlot, this.roughnessMapSlot, this.metalnessMapSlot, this.alphaMapSlot ];

	this.envMap = null;
	this.envMapIntensity = 1.0;

	this.refractionRatio = 0.98;

	this.fog = true;

	this.shading = THREE.SmoothShading;
	this.blending = THREE.PremultipliedAlphaNormalBlending;

	this.wireframe = false;
	this.wireframeLinewidth = 1;
	this.wireframeLinecap = 'round';
	this.wireframeLinejoin = 'round';

	this.vertexColors = THREE.NoColors;

	this.skinning = false;
	this.morphTargets = false;
	this.morphNormals = false;

	this.setValues( parameters );

};

THREE.MeshStandardMaterial.prototype = Object.create( THREE.Material.prototype );
THREE.MeshStandardMaterial.prototype.constructor = THREE.MeshStandardMaterial;<commit_msg>other PR leaking into this one.<commit_after>/**
 * @author WestLangley / http://github.com/WestLangley
 * @author <NAME> / bhouston / http://clara.io
 *
 * parameters = {
 *  color: <hex>,
 *  roughness: <float>,
 *  metalness: <float>,
 *  opacity: <float>,
 *
 *  map: new THREE.Texture( <Image> ),
 *
 *  lightMap: new THREE.Texture( <Image> ),
 *  lightMapIntensity: <float>
 *
 *  aoMap: new THREE.Texture( <Image> ),
 *  aoMapIntensity: <float>
 *
 *  emissive: <hex>,
 *  emissiveIntensity: <float>
 *  emissiveMap: new THREE.Texture( <Image> ),
 *
 *  bumpMap: new THREE.Texture( <Image> ),
 *  bumpScale: <float>,
 *
 *  normalMap: new THREE.Texture( <Image> ),
 *  normalScale: <Vector2>,
 *
 *  displacementMap: new THREE.Texture( <Image> ),
 *  displacementScale: <float>,
 *  displacementBias: <float>,
 *
 *  roughnessMap: new THREE.Texture( <Image> ),
 *
 *  metalnessMap: new THREE.Texture( <Image> ),
 *
 *  alphaMap: new THREE.Texture( <Image> ),
 *
 *  envMap: new THREE.CubeTexture( [posx, negx, posy, negy, posz, negz] ),
 *  envMapIntensity: <float>
 *
 *  refractionRatio: <float>,
 *
 *  shading: THREE.SmoothShading,
 *  blending: THREE.PremultipliedAlphaNormalBlending,
 *  depthTest: <bool>,
 *  depthWrite: <bool>,
 *
 *  wireframe: <boolean>,
 *  wireframeLinewidth: <float>,
 *
 *  vertexColors: THREE.NoColors / THREE.VertexColors / THREE.FaceColors,
 *
 *  skinning: <bool>,
 *  morphTargets: <bool>,
 *  morphNormals: <bool>,
 *
 *	fog: <bool>
 * }
 */

THREE.MeshStandardMaterial = function ( parameters ) {

	THREE.Material.call( this );

	this.type = 'MeshStandardMaterial';

	this.color = new THREE.Color( 0xffffff ); // diffuse
	this.roughness = 0.5;
	this.metalness = 0.5;

	//this.map = null;
	this.mapSlot = new THREE.TextureSlot( "map", 0, false, false );

	//this.lightMap = null;
	//this.lightMapIntensity = 1.0;
	this.lightMapSlot = new THREE.TextureSlot( "lightMap", 1, false, true );

	//this.aoMap = null;
	this.aoMapIntensity = 1.0;
	this.aoMapSlot = new THREE.TextureSlot( "aoMap", 1, false, true );

	this.emissive = new THREE.Color( 0x000000 );
	this.emissiveIntensity = 1.0;
	//this.emissiveMap = null;
	this.emissiveMapSlot = new THREE.TextureSlot( "emissiveMap", 0, false, false );

	//this.bumpMap = null;
	//this.bumpScale = 1;
	this.bumpMapSlot = new THREE.TextureSlot( "bumpMap", 0, false, true );

	//this.normalMap = null;
	this.normalScale = new THREE.Vector2( 1, 1 );
	this.normalMapSlot = new THREE.TextureSlot( "normalMap", 0, false, false );

	//this.displacementMap = null;
	//this.displacementScale = 1;
	//this.displacementBias = 0;
	this.displacementMapSlot = new THREE.TextureSlot( "displacementMap", 0, false, true );

	//this.roughnessMap = null;
	this.roughnessMapSlot = new THREE.TextureSlot( "roughnessMap", 0, false, false );

	//this.metalnessMap = null;
	this.metalnessMapSlot = new THREE.TextureSlot( "metalnessMap", 0, false, false );

	//this.alphaMap = null;
	this.alphaMapSlot = new THREE.TextureSlot( "alphaMap", 0, false, false );

	//this.slots = [ this.mapSlot, this.lightMapSlot, this.aoMapSlot, this.emissiveMapSlot, this.bumpMapSlot,
	//	this.normalMapSlot, this.roughnessMapSlot, this.metalnessMapSlot, this.alphaMapSlot ];

	this.envMap = null;
	this.envMapIntensity = 1.0;

	this.refractionRatio = 0.98;

	this.fog = true;

	this.shading = THREE.SmoothShading;
	this.blending = THREE.PremultipliedAlphaBlending;

	this.wireframe = false;
	this.wireframeLinewidth = 1;
	this.wireframeLinecap = 'round';
	this.wireframeLinejoin = 'round';

	this.vertexColors = THREE.NoColors;

	this.skinning = false;
	this.morphTargets = false;
	this.morphNormals = false;

	this.setValues( parameters );

};

THREE.MeshStandardMaterial.prototype = Object.create( THREE.Material.prototype );
THREE.MeshStandardMaterial.prototype.constructor = THREE.MeshStandardMaterial;
{'fraction_non_alphanumeric': 0.1547371160853722, 'fraction_numerical': 0.010671525247267048, 'mean_word_length': 4.045961917268549, 'pattern_counts': {'":': 0, '<': 69, '<?xml version=': 0, '>': 69, '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': '1066497', 'n_tokens_mistral': 2932, 'n_tokens_neox': 2759, 'n_words': 568}