<commit_before><?php
namespace App\Repositories;

use App\Activity;

class ActivityDetailRepository
{

  public function getCertainActivity($id)
  {
     return Activity::where('id',$id)->first();
  }
  
}<commit_msg>Update ActivityDetailRepository.php<commit_after><?php
namespace App\Repositories;

use App\Activity;
use App\Sponsor;
use App\Category;

class ActivityDetailRepository
{

  public function getCertainActivity($id)
  {
     $activity = Activity::with('category')->where('id',$id)->first()->asArray();
     $mainSponsor = Sponsor::select(['id','sponsor_name','sponsor_icon'])
                            ->where('id',$activity['sponsor_id'])
                            ->first()->asArray();
     return Activity::where('id',$id)->first();
  }
  
  public function getMainSponsor($id)
  {
    
  }
}
{'fraction_non_alphanumeric': 0.1597051597051597, 'fraction_numerical': 0.0, 'mean_word_length': 3.657142857142857, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6604384', 'n_tokens_mistral': 253, 'n_tokens_neox': 247, 'n_words': 38}