original_string: protected function filter_current_assessments(&$newallocations, $assessments) {
          foreach ($assessments as $assessment) {
              $allocation     = array($assessment->reviewerid => $assessment->authorid);
              $foundat        = array_keys($newallocations, $allocation);
              $newallocations = array_diff_key($newallocations, array_flip($foundat));
          }
      }
code: protected function filter_current_assessments(&$newallocations, $assessments) {
          foreach ($assessments as $assessment) {
              $allocation     = array($assessment->reviewerid => $assessment->authorid);
              $foundat        = array_keys($newallocations, $allocation);
              $newallocations = array_diff_key($newallocations, array_flip($foundat));
          }
      }
code_tokens: protected function filter_current_assessments ( & $ newallocations , $ assessments ) { foreach ( $ assessments as $ assessment ) { $ allocation = array ( $ assessment -> reviewerid => $ assessment -> authorid ) ; $ foundat = array_keys ( $ newallocations , $ allocation ) ; $ newallocations = array_diff_key ( $ newallocations , array_flip ( $ foundat ) ) ; } }
docstring: Filter new allocations so that they do not contain an already existing assessment
  
  @param mixed $newallocations array of ('reviewerid' => 'authorid') tuples
  @param array $assessments    array of assessment records
  @return void
docstring_tokens: Filter new allocations so that they do not contain an already existing assessment