<commit_before>const JSONStream = require('JSONStream');
const {google} = require('googleapis');
const compressing = require('compressing');
// const unzip = require('unzip-stream');
const eos = require('end-of-stream');
const prompt = require('prompt');
const fs = require('fs');
const request = require('request');


const SCOPES = ['https://www.googleapis.com/auth/drive'];

const MAX_FILES = 2;
const MAX_ZIP_ENTRIES = 10;
const MAX_BULK_BATCH = 10000;
// const BULK_BATCH_MS = 2500;

var adapter = {};
let finishedBatches = 0;
let stream;

adapter.sensorName = 'googlelocation';

adapter.types = [
  {
    name: adapter.sensorName,
    fields: {
      timestamp: 'date',<commit_msg>handle one file at a time<commit_after>const JSONStream = require('JSONStream');
const {google} = require('googleapis');
const compressing = require('compressing');
// const unzip = require('unzip-stream');
const eos = require('end-of-stream');
const prompt = require('prompt');
const fs = require('fs');
const request = require('request');


const SCOPES = ['https://www.googleapis.com/auth/drive'];

const MAX_FILES = 1;
const MAX_ZIP_ENTRIES = 1;
const MAX_BULK_BATCH = 10000;
// const BULK_BATCH_MS = 2500;

var adapter = {};
let finishedBatches = 0;
let stream;

adapter.sensorName = 'googlelocation';

adapter.types = [
  {
    name: adapter.sensorName,
    fields: {
      timestamp: 'date',
{'fraction_non_alphanumeric': 0.15306859205776174, 'fraction_numerical': 0.018050541516245487, 'mean_word_length': 4.923076923076923, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '6114534', 'n_tokens_mistral': 477, 'n_tokens_neox': 437, 'n_words': 112}