<?php

//allow override from demosettings
const useParseTextAndMetadata = true; //this will disable parseTextAndMetadata.php from being used as a standalone
!isset($cli_filter_QUOTA) and ( $cli_filter_QUOTA = 50000); //per day quota
!isset($cli_KEEP_JSON) and ( $cli_KEEP_JSON = true);
!isset($cli_TMP_FOLDER) and ( $cli_TMP_FOLDER = "$projectLocalFolder/cli$ivWorkerName");
!isset($cli_JSON_BASE_FOLDER) and ( $cli_JSON_BASE_FOLDER = "$cli_TMP_FOLDER/json");
!isset($cli_JSON_DONE_FOLDER) and ( $cli_JSON_DONE_FOLDER = "$cli_TMP_FOLDER/json-done");
!isset($cli_SINK_FILE) and ( $cli_SINK_FILE = "$cli_TMP_FOLDER/cli_filter_sink.log");
!isset($cli_QUOTA_FILE) and ( $cli_QUOTA_FILE = "$cli_TMP_FOLDER/cli_filter_quota.log");
!isset($cli_CALL_ParseTextAndMetadata) and ( $cli_CALL_ParseTextAndMetadata = false);
!isset($cli_filter_and_parse_app_QUOTA) and ( $cli_filter_and_parse_app_QUOTA = 0);
!isset($cli_RATE_LIMIT) and ( $cli_RATE_LIMIT = 800); // Requests / 15-min window (app auth) [taken from here:https://dev.twitter.com/rest/reference/get/statuses/user_timeline]
!isset($cli_BASH_Path) and ( $cli_BASH_Path = "c:/cygwin64/bin/bash.exe "); //if running in cygwin use "/cygdrive/c/cygwin64/bin/bash.exe";
!isset($cli_PHP_Path) and ( $cli_PHP_Path = "c:/xampp/php/php.exe ");
!isset($cli_TWITTER_RATE_LIMIT_WINDOW) and ( $cli_TWITTER_RATE_LIMIT_WINDOW = 15); //https://dev.twitter.com/rest/public/rate-limits
!isset($cli_FILTER_NOT_DEDUP) and ( $cli_FILTER_NOT_DEDUP = false); //dedup means filter register each tweet in the db so two filters cannot pass the same tweet

ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
 
$comments_min = 0; //if its > 0 - will fetch tweets with > $comments_min 
$tweets_limit_history = 100;
$pref_lang = "ar";
//$stop_every = 300000;
$accessToken= "dee8dd4d-6812-41b9-9c76-6f1e586b5dc7";  //webhose_token
