<commit_before>(function(){
//Paramters
const DOWNLOAD_FROM_SERVER_TIME_RANGE = 5; // in seconds   
const UPLOAD_LIMIT = 2; // multiplied by number of downloaded bytes
const XHR_REQUEST_SIZE = 500000 // in byte
const THRESHOLD_FOR_RETURNING_OF_ANSWER_STREAM = 500000 // in byte

const CHECK_IF_BUFFER_FULL_ENOUGH_INTERVAL = 3000; // in miliseconds
const CHECK_IF_ANSWERSTREAM_READY_INTERVAL = 1000; // in miliseconds
const UPDATE_CHART_INTERVAL = 5000; // in miliseconds
const CHOKE_IF_NECESSARY_INTERVAL = 800; // in miliseconds

   
   
var http = require('http');
var MultiStream = require('multistream');
var util = require('util');
var Readable = require('stream').Readable; 
var readableStream = require('readable-stream');
var videostream = require('../');
var WebTorrent = require('webtorrent');
var myVideo = document.getElementById("myVideo");
var theCoolCounter = 0;
var consoleCounter = 0;
//var firstCreateReadStream = true;
//var first500ByteBuffer = Buffer.allocUnsafe(500);
var globalvideostreamRequestNumber = 0;
var fileSize = -1;
//var first500ByteBufferFull = false;
var bytesReceivedFromServer = 0;
var theTorrent;<commit_msg>Minor changes to fix WebTorrent createReadStream range error<commit_after>(function(){
//Paramters
const DOWNLOAD_FROM_SERVER_TIME_RANGE = 5; // in seconds   
const UPLOAD_LIMIT = 2; // multiplied by number of downloaded bytes
const XHR_REQUEST_SIZE = 500000 // in byte
const THRESHOLD_FOR_RETURNING_OF_ANSWER_STREAM = 500000 // in byte

const CHECK_IF_BUFFER_FULL_ENOUGH_INTERVAL = 3000; // in miliseconds
const CHECK_IF_ANSWERSTREAM_READY_INTERVAL = 1000; // in miliseconds
const UPDATE_CHART_INTERVAL = 5000; // in miliseconds
const CHOKE_IF_NECESSARY_INTERVAL = 800; // in miliseconds
   
   
var http = require('http');
var MultiStream = require('multistream');
var util = require('util');
var Readable = require('stream').Readable; 
var readableStream = require('readable-stream');
var videostream = require('../');
var WebTorrent = require('webtorrent');
var myVideo = document.getElementById("myVideo");
var theCoolCounter = 0;
var consoleCounter = 0;
//var firstCreateReadStream = true;
//var first500ByteBuffer = Buffer.allocUnsafe(500);
var globalvideostreamRequestNumber = 0;
var fileSize = -1;
//var first500ByteBufferFull = false;
var bytesReceivedFromServer = 0;
var theTorrent;
{'fraction_non_alphanumeric': 0.10256410256410256, 'fraction_numerical': 0.03675213675213675, 'mean_word_length': 5.631728045325779, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '299737', 'n_tokens_mistral': 798, 'n_tokens_neox': 711, 'n_words': 198}