anchor.diff:  -module(master).
   -export([start/0, test/1, loop/2]).
  +-define(BFREQ, 10000). % Background crawling API call frequency
  +-define(PFREQ, 10000). % Priority (user-generated) API call frequency
  +-define(NUM_PRIORITY_THREADS, 5).
   
   %% This is our MVP. Call master:test(Hashtag) and it returns the score.
   
  
positive.code:         false -> [{H, R}|remove(Requestor, T)]
      end.
  
  
  
  
  
  
  
  
  
  
  
  
  
  scheduler() -> 
      receive
          Query -> scraper:scrape(Query)
      end,
      receive
      after 10000 -> scheduler()
      end.
  
negative.code: 
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  
  %% Core Functions %%
  
  start() ->
      HashList = [{null, null}],          %{Hashtag, Score}
      Requests = [{null, {null, null}}],  %{Hashtag, Requestor}
      register(priority_scheduler, spawn(priority_scheduler)),
      register(background_scheduler, spawn(background_scheduler)),
      register(master, spawn(master, loop, [HashList, Requests])),
      ok.
  
  
  loop(HashList, Requests) ->
      receive
          {result, Hashtag, Score, HashtagList} -> 
              crawl(HashtagList),
              Requestor = requested(Hashtag, Requests),
              case Requestor == not_found of
                  true -> loop([{Hashtag, Score}|HashList], Requests);
  