original_string: public function generate_insight_notifications($modelid, $samplecontexts, array $predictions = []) {
          // Delegate the processing of insights to the insights_generator.
          $insightsgenerator = new \core_analytics\insights_generator($modelid, $this);
          $insightsgenerator->generate($samplecontexts, $predictions);
      }
code: public function generate_insight_notifications($modelid, $samplecontexts, array $predictions = []) {
          // Delegate the processing of insights to the insights_generator.
          $insightsgenerator = new \core_analytics\insights_generator($modelid, $this);
          $insightsgenerator->generate($samplecontexts, $predictions);
      }
code_tokens: public function generate_insight_notifications ( $ modelid , $ samplecontexts , array $ predictions = [ ] ) { // Delegate the processing of insights to the insights_generator. $ insightsgenerator = new \ core_analytics \ insights_generator ( $ modelid , $ this ) ; $ insightsgenerator -> generate ( $ samplecontexts , $ predictions ) ; }
docstring: Generates insights notifications
  
  @param int $modelid
  @param \context[] $samplecontexts
  @param  \core_analytics\prediction[] $predictions
  @return void
docstring_tokens: Generates insights notifications