This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | if (s.length == 0) { | |
| return -1; | |
| } | |
| if a.length!=2 && b.length!=2 | |
| { | |
| return -1; | |
| } | |
| var aIndex = s.indexOf(a); | |
| var bIndex = s.indexOf(b); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | { | |
| "en_wikipedia_org_entrie_pipline_test_sites_blog_promptcloud_tld_plugins": "No Rss entry in db on this date", | |
| "stackoverflow_com_entire_pipline_test_sites_blog_promptcloud_tld_plugins": "No Rss entry in db on this date", | |
| "cma_cgm2_daily_shipping_info": "Rss ran but both pushed and dropped counts were zero", | |
| "cnc_ebusiness2_com_daily_shipping_info": "Rss ran but both pushed and dropped counts were zero", | |
| "coscon2_com_daily_shipping_info": "Rss ran but both pushed and dropped counts were zero", | |
| "hanjin2_com_daily_shipping_info": "Rss ran but both pushed and dropped counts were zero", | |
| "evergreen2_line_com_daily_shipping_info": "Rss ran but both pushed and dropped counts were zero", | |
| "mscgva2_ch_daily_shipping_info": "Rss ran but both pushed and dropped counts were zero", | |
| "pil2_com_daily_shipping_info": "Rss ran but both pushed and dropped counts were zero", | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | { | |
| "query": { | |
| "filtered": { | |
| "query": { | |
| "query_string": { | |
| "query": "*", | |
| "analyze_wildcard": true | |
| } | |
| }, | |
| "filter": { | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | { | |
| "query": { | |
| "filtered": { | |
| "query": { | |
| "query_string": { | |
| "query": "*", | |
| "analyze_wildcard": true | |
| } | |
| }, | |
| "filter": { | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | {"query":{"filtered":{"filter":{"bool":{"must":[{"query":{"match":{"file_name":{"query":"sdf_job_runner.rb","type":"phrase"}}}},{"query":{"match":{"site_name":{"query":"SITENAME","type":"phrase"}}}},{"range":{"@timestamp":{"gt":"2016-03-0300:00:00","lt":"2016-03-0600:00:00"}}}],"must_not":[]}},"query":{"query_string":{"analyze_wildcard":true,"query":"line_number:353ORline_number:839"}}}}} | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | { | |
| "query": { | |
| "filtered": { | |
| "query": { | |
| "query_string": { | |
| "query": "line_number:353 OR line_number:839", | |
| "analyze_wildcard": true | |
| } | |
| }, | |
| "filter": { | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | require '/home/sdf/bin/sdf_mysql_tables.rb' | |
| require '/home/sdf/bin/sdf_utils.rb' | |
| sdf_mysql_api_db_obj = SdfMysqlTables.new({:sdf_db_api => true}) | |
| #yesterday_in_yyyymmdd = (DateTime.now-1).strftime("%Y%m%d") | |
| yesterday_in_yyyymmdd = ARGV[0] | |
| sites_uploaded_yesterday_rows = sdf_mysql_api_db_obj.execute_query(db_name=:sdf_db_api,table=:sdf_client_api, ops_list=[{name:'where', query_block: "crawl_yymmdd = #{yesterday_in_yyyymmdd.to_i}" },{:name=>"distinct", :qhash => :site_name}]) | |
| sites_uploaded_yesterday = Set.new | |
| sites_uploaded_yesterday_rows.each do |row| | |
| sites_uploaded_yesterday.add row[:site_name] | |
| end |