<commit_before>function Autostereogram() {
    this.setXdpi = function(xdpi) {
        this.eyeSep = xdpi * 2.5;
        this.obsDist = xdpi * 12;
        this.maxdepth = xdpi * 12;
        this.maxsep = Math.floor((this.eyeSep * this.maxdepth)/
                                 (this.maxdepth + this.obsDist));
        this.sepfactor = 0.55;
        this.mindepth=(this.sepfactor*this.maxdepth*this.obsDist)/
            ((1-this.sepfactor)*this.maxdepth+this.obsDist);
    };
    this.invert = false;
    this.setXdpi(200);

    // member functions
    this.getSeparation = function (idx, depthData) {
        var z = (depthData.data[idx + 0] + depthData.data[idx + 1] +
                 depthData.data[idx + 2]) / 3;
        if(this.invert) { z = 256 - z; }
        var zdepth = this.maxdepth - z * (this.maxdepth - this.mindepth)/256;

        return Math.round((this.eyeSep * zdepth) / (zdepth + this.obsDist));
    };

    this.calculateLinksForRow = function (width, y, depthData, lookL, lookR) {
        for(var x = 0; x < width; x++) {
            lookL[x] = x;
            lookR[x] = x;
        }

        for(var x = 0; x < width; x++) {
            var separation = this.getSeparation(index(x, y, width), depthData);
            var left = Math.floor(x - separation/2);
            var right = left + separation;
            var visible = true;
            if((left >= 0) && (right < width)) {
                if (lookL[right]!=right) { // right pt already linked
                    if (lookL[right]<left) // deeper than current
                    {
                        lookR[lookL[right]]=lookL[right]; // break old links
                        lookL[right]=right;
                    } else { visible = false; }
                }

                if (lookR[left]!=left) // left pt already linked
                {
                    if (lookR[left]>right) // deeper than current
                    {
                        lookL[lookR[left]]=lookR[left]; // break old links<commit_msg>style fix to one true bracing style<commit_after>function Autostereogram() {
    this.setXdpi = function(xdpi) {
        this.eyeSep = xdpi * 2.5;
        this.obsDist = xdpi * 12;
        this.maxdepth = xdpi * 12;
        this.maxsep = Math.floor((this.eyeSep * this.maxdepth)/
                                 (this.maxdepth + this.obsDist));
        this.sepfactor = 0.55;
        this.mindepth=(this.sepfactor*this.maxdepth*this.obsDist)/
            ((1-this.sepfactor)*this.maxdepth+this.obsDist);
    };
    this.invert = false;
    this.setXdpi(200);

    // member functions
    this.getSeparation = function (idx, depthData) {
        var z = (depthData.data[idx + 0] + depthData.data[idx + 1] +
                 depthData.data[idx + 2]) / 3;
        if(this.invert) { z = 256 - z; }
        var zdepth = this.maxdepth - z * (this.maxdepth - this.mindepth)/256;

        return Math.round((this.eyeSep * zdepth) / (zdepth + this.obsDist));
    };

    this.calculateLinksForRow = function (width, y, depthData, lookL, lookR) {
        for(var x = 0; x < width; x++) {
            lookL[x] = x;
            lookR[x] = x;
        }

        for(var x = 0; x < width; x++) {
            var separation = this.getSeparation(index(x, y, width), depthData);
            var left = Math.floor(x - separation/2);
            var right = left + separation;
            var visible = true;
            if((left >= 0) && (right < width)) {
                if (lookL[right]!=right) { // right pt already linked
                    if (lookL[right]<left) { // deeper than current
                        lookR[lookL[right]]=lookL[right]; // break old links
                        lookL[right]=right;
                    } else { visible = false; }
                }

                if (lookR[left]!=left) { // left pt already linked
                    if (lookR[left]>right) { // deeper than current
                        lookL[lookR[left]]=lookR[left]; // break old links
{'fraction_non_alphanumeric': 0.1355421686746988, 'fraction_numerical': 0.01355421686746988, 'mean_word_length': 1.6062786134728582, 'pattern_counts': {'":': 0, '<': 11, '<?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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3779337', 'n_tokens_mistral': 1287, 'n_tokens_neox': 1209, 'n_words': 271}