<commit_before>import {
    loadinitialheads
} from './imports/fixtures/loadinitialheads';
import {
    reminderinvoice
} from './imports/cronjobs/dailyanalysis';
import {
    getnewemails
} from './imports/cronjobs/getnewemails';
import {
    Meteor
} from 'meteor/meteor';
import {
    check
} from 'meteor/check';
import {
    Accounts
} from 'meteor/accounts-base';
import {
    accounting
} from 'meteor/iain:accounting';
import {
    Csvdata,
    Productcategory,
    Users,
    Graphdata,
    Subcategory,
    Head,
    Accounts_no,
    Graphlist,
    CategoryGraphList,
    Comments,
    Emaillist
} from '../both/collections/csvdata.collection';

import './imports/publications/categorycollection';
import '../both/methods/fileuploadmethods';
import {
    WebApp
} from "meteor/webapp";
// declare var WebApp:any;

Meteor.startup(() => {

    WebApp.rawConnectHandlers.use(function(req, res, next) {
        // req.setHeader("Access-Control-Allow-Methods", 'POST, PUT, GET, DELETE, OPTIONS');
        // req.setHeader("Access-Control-Allow-Origin", "*");
        console.log("************** req console output *****************");
        console.log(req);
        console.log("************** req console output end *****************");
        res.setHeader("Access-Control-Allow-Methods", 'POST, PUT, GET, DELETE, OPTIONS');
        res.setHeader("Access-Control-Allow-Origin", "*");
        // res.setHeader('Access-Control-Allow-Headers', [
        //     'Accept',
        //     'Accept-Charset',
        //     'Accept-Encoding',
        //     'Accept-Language',
        //     'Accept-Datetime',
        //     'Authorization',
        //     'Cache-Control',
        //     'Connection',
        //     'Cookie',
        //     'Content-Length',
        //     'Content-MD5',
        //     'Content-Type',
        //     'Date',
        //     'User-Agent',
        //     'X-Requested-With',
        //     'Origin'
        // ].join(', '));
        console.log("************** res console output *****************");
        console.log(res);
        console.log("************** res console ends ********************")
        return next();
    });

    // loadParties 
    loadinitialheads();
    // getnewemails();
    //** add below method if you want reminder emails
    // reminderinvoice();

    // console.log(process.env);
    //example for setting process env variable values
    // process.env.MAIL_URL = "smtp://am<EMAIL>:8<EMAIL>:465";

    // ** use this code only if you want to detect which user come online **
    //   Meteor.users.find({ "status.online": true }).observe({
    //    added: function(id: any) {
    //       // id just came online
    //       console.log("--------- New User Login ---------");
    //       console.log("user " + id.username + " (" + id._id + ") is online now");
    //     },
    //    removed: function(id: any) {
    //      // id just went offline
    //      console.log("----------- User idle --------------");
    //      console.log("user " + id.username + " (" + id._id + ") is gone offline");
    //    }
    // });
});<commit_msg>final file upload testing code<commit_after>import {
    loadinitialheads
} from './imports/fixtures/loadinitialheads';
import {
    reminderinvoice
} from './imports/cronjobs/dailyanalysis';
import {
    getnewemails
} from './imports/cronjobs/getnewemails';
import {
    Meteor
} from 'meteor/meteor';
import {
    check
} from 'meteor/check';
import {
    Accounts
} from 'meteor/accounts-base';
import {
    accounting
} from 'meteor/iain:accounting';
import {
    Csvdata,
    Productcategory,
    Users,
    Graphdata,
    Subcategory,
    Head,
    Accounts_no,
    Graphlist,
    CategoryGraphList,
    Comments,
    Emaillist
} from '../both/collections/csvdata.collection';

import './imports/publications/categorycollection';
import '../both/methods/fileuploadmethods';
// import {
//     WebApp
// } from "meteor/webapp";
// declare var WebApp:any;

Meteor.startup(() => {

    // WebApp.rawConnectHandlers.use(function(req, res, next) {
    //     // req.setHeader("Access-Control-Allow-Methods", 'POST, PUT, GET, DELETE, OPTIONS');
    //     // req.setHeader("Access-Control-Allow-Origin", "*");
    //     console.log("************** req console output *****************");
    //     console.log(req);
    //     console.log("************** req console output end *****************");
    //     res.setHeader("Access-Control-Allow-Methods", 'POST, PUT, GET, DELETE, OPTIONS');
    //     res.setHeader("Access-Control-Allow-Origin", "*");
    //     // res.setHeader('Access-Control-Allow-Headers', [
    //     //     'Accept',
    //     //     'Accept-Charset',
    //     //     'Accept-Encoding',
    //     //     'Accept-Language',
    //     //     'Accept-Datetime',
    //     //     'Authorization',
    //     //     'Cache-Control',
    //     //     'Connection',
    //     //     'Cookie',
    //     //     'Content-Length',
    //     //     'Content-MD5',
    //     //     'Content-Type',
    //     //     'Date',
    //     //     'User-Agent',
    //     //     'X-Requested-With',
    //     //     'Origin'
    //     // ].join(', '));
    //     console.log("************** res console output *****************");
    //     console.log(res);
    //     console.log("************** res console ends ********************")
    //     return next();
    // });

    // loadParties 
    loadinitialheads();
    // getnewemails();
    //** add below method if you want reminder emails
    // reminderinvoice();

    // console.log(process.env);
    //example for setting process env variable values
    // process.env.MAIL_URL = "smtp://amit@excellencetechnologies.in:878@smtp.gmail.com:465";

    // ** use this code only if you want to detect which user come online **
    //   Meteor.users.find({ "status.online": true }).observe({
    //    added: function(id: any) {
    //       // id just came online
    //       console.log("--------- New User Login ---------");
    //       console.log("user " + id.username + " (" + id._id + ") is online now");
    //     },
    //    removed: function(id: any) {
    //      // id just went offline
    //      console.log("----------- User idle --------------");
    //      console.log("user " + id.username + " (" + id._id + ") is gone offline");
    //    }
    // });
});
{'fraction_non_alphanumeric': 0.21690715181932246, 'fraction_numerical': 0.0018820577164366374, 'mean_word_length': 1.966046511627907, 'pattern_counts': {'":': 2, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '176956', 'n_tokens_mistral': 1946, 'n_tokens_neox': 1914, 'n_words': 368}