<commit_before>SHADERCODE.mainShader_fs = function() {
var x = `  
vec2 getNewUVForWrappedTexture(vec2 inUV) {
    vec2 uv = vec2(mod(inUV.x + textureUAdjustment, 1.), mod(inUV.y + textureVAdjustment, 1.));
    float scaleFactor = textureScale;
    float widthx = 1./scaleFactor;
    float minx = .5 - widthx/2.;
    float maxx = .5 + widthx/2.;
    if (uv.x < minx || uv.x > maxx || uv.y < minx || uv.y > maxx)
        return vec2(0.,0.);
    else {
        return vec2((uv.x-minx)/widthx, (uv.y-minx)/widthx);
    } 
}
vec4 wrappedTexture2D(sampler2D texture, vec2 inUV) {
    vec2 uv = getNewUVForWrappedTexture(inUV);
    return texture2D(texture, uv);    
}
bool checkMaskPoint(vec2 uv) {
    vec4 t1 = wrappedTexture2D( iChannel0,  uv);
    vec4 t2;
    vec4 t3;
    if (uMaskType == 1) {
        t2 = wrappedTexture2D( iChannelDelayMask,  uv);
        t3 = t2;
    }
    else {
        t2 = wrappedTexture2D( iChannelStillMask1,  uv);
        t3 = wrappedTexture2D( iChannelStillMask2,  uv);        
    }
    vec4 clr = abs(t1-t2);
    vec4 clr2 = abs(t1-t3);
    float threshold = .1;
    return
        (
        (clr.x < threshold || clr2.x < threshold) && 
        (clr.y < threshold || clr2.y < threshold) && 
        (clr.z < threshold || clr2.z < threshold)
        );
}
vec4 applyMask(vec2 uv) {        // subtracting t2 from t1.<commit_msg>fix bug<commit_after>SHADERCODE.mainShader_fs = function() {
var x = `  
vec2 getNewUVForWrappedTexture(vec2 inUV) {
    vec2 uv = vec2(mod(inUV.x + textureUAdjustment, 1.), mod(inUV.y + textureVAdjustment, 1.));
    float scaleFactor = textureScale;
    float widthx = 1./scaleFactor;
    float minx = .5 - widthx/2.;
    float maxx = .5 + widthx/2.;
    if (uv.x < minx || uv.x > maxx || uv.y < minx || uv.y > maxx)
        return vec2(-1.,-1.);
    else {
        return vec2((uv.x-minx)/widthx, (uv.y-minx)/widthx);
    } 
}
vec4 wrappedTexture2D(sampler2D texture, vec2 inUV) {
    vec2 uv = getNewUVForWrappedTexture(inUV);
    if (uv.x < 0.) 
        return 
            vec4(0.0,0.0,0.0,0.0);
        else
            return texture2D(texture, uv);    
}
bool checkMaskPoint(vec2 uv) {
    vec4 t1 = wrappedTexture2D( iChannel0,  uv);
    vec4 t2;
    vec4 t3;
    if (uMaskType == 1) {
        t2 = wrappedTexture2D( iChannelDelayMask,  uv);
        t3 = t2;
    }
    else {
        t2 = wrappedTexture2D( iChannelStillMask1,  uv);
        t3 = wrappedTexture2D( iChannelStillMask2,  uv);        
    }
    vec4 clr = abs(t1-t2);
    vec4 clr2 = abs(t1-t3);
    float threshold = .1;
    return
        (
        (clr.x < threshold || clr2.x < threshold) && 
        (clr.y < threshold || clr2.y < threshold) && 
        (clr.z < threshold || clr2.z < threshold)
        );
}
vec4 applyMask(vec2 uv) {        // subtracting t2 from t1.
{'fraction_non_alphanumeric': 0.13882940756602427, 'fraction_numerical': 0.04354032833690221, 'mean_word_length': 2.2034285714285713, 'pattern_counts': {'":': 0, '<': 20, '<?xml version=': 0, '>': 7, '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': '6510846', 'n_tokens_mistral': 1118, 'n_tokens_neox': 1070, 'n_words': 234}