<commit_before><?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;
use App\Http\Requests;
use Log;
use Session;
use Auth;
use DB;
use Khill\Lavacharts\Lavacharts;

class ContributorController extends Controller
{

    public function index() {
        Log::info('ContributorController');
        //$this->viewData['heading'] = "Contributor Introduction Page";


       /*$donations= DB::table('donations')
           ->join('donors', 'donors.id', '=')
            ->select(DB::raw('donations.amount as amount, donations.donor_id as donor'))
            ->orderBy('amount', 'desc')
            ->get();

        return $donations;
        $chartArray["chart"] = array("type" => 'pie','plotBackgroundColor' => NULL,'plotBorderWidth'=> NULL,'plotShadow'=> false );
        $chartArray["title"] = array("text" => 'Donation Chart Report');
        $chartArray["tooltip"] = array("pointFormat" => '{series.name}: {point.percentage:.1f}%');
        $chartArray["credits"] = array("enabled" => false);
        $chartArray["plotOptions"] = array(
            'pie' =>array(
                'allowPointSelect'=> true,
                'cursor'=>'pointer',
                'dataLabels'=>array(
                    'enabled'=>true,
                    'format'=> '{point.name}: {point.percentage:.1f} %',
                    'style'=>array(
                        'color'=>"(Highcharts.theme && Highcharts.theme.contrastTextColor) || 'black' "
                    )
                ),
                'showInLegend'=> true
            )
        );

        $donorName = $donations->get();<commit_msg>Removed unnecessary code<commit_after><?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;
use App\Http\Requests;
use Log;
use Session;
use Auth;
use DB;
use Khill\Lavacharts\Lavacharts;

class ContributorController extends Controller
{

    public function index() {
        Log::info('ContributorController');

       /*$donations= DB::table('donations')
           ->join('donors', 'donors.id', '=')
            ->select(DB::raw('donations.amount as amount, donations.donor_id as donor'))
            ->orderBy('amount', 'desc')
            ->get();

        return $donations;
        $chartArray["chart"] = array("type" => 'pie','plotBackgroundColor' => NULL,'plotBorderWidth'=> NULL,'plotShadow'=> false );
        $chartArray["title"] = array("text" => 'Donation Chart Report');
        $chartArray["tooltip"] = array("pointFormat" => '{series.name}: {point.percentage:.1f}%');
        $chartArray["credits"] = array("enabled" => false);
        $chartArray["plotOptions"] = array(
            'pie' =>array(
                'allowPointSelect'=> true,
                'cursor'=>'pointer',
                'dataLabels'=>array(
                    'enabled'=>true,
                    'format'=> '{point.name}: {point.percentage:.1f} %',
                    'style'=>array(
                        'color'=>"(Highcharts.theme && Highcharts.theme.contrastTextColor) || 'black' "
                    )
                ),
                'showInLegend'=> true
            )
        );

        $donorName = $donations->get();
{'fraction_non_alphanumeric': 0.16867852604828462, 'fraction_numerical': 0.0012706480304955528, 'mean_word_length': 2.273388773388773, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 46, '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': '969411', 'n_tokens_mistral': 898, 'n_tokens_neox': 859, 'n_words': 161}