<commit_before><?php

use yii\helpers\Html;
use yii\web\View;

/** @var $this View */
/** @var $id string */
/** @var $services stdClass[] See EAuth::getServices() */
/** @var $action string */
/** @var $popup bool */
/** @var $assetBundle string Alias to AssetBundle */

Yii::createObject(array('class' => $assetBundle))->register($this);

// Open the authorization dilalog in popup window.
if ($popup) {
	$options = array();
	foreach ($services as $name => $service) {
		$options[$service->id] = $service->jsArguments;
	}
	$this->registerJs('$("#' . $id . '").eauth(' . json_encode($options) . ');');
}

?>
<div class="eauth" id="<?php echo $id; ?>">
	<ul class="eauth-list">
		<?php
		foreach ($services as $name => $service) {
			echo '<li class="eauth-service eauth-service-id-' . $service->id . '">';
			echo '<span class="icon-' . $service->id . '"></span>';
			echo Html::a($service->title, array($action, 'service' => $name), array(
				'class' => 'eauth-service-link',
				'data-eauth-service' => $service->id,
			));
			echo '</li>';
		}
		?><commit_msg>Update widget.php<commit_after><?php

use yii\helpers\Html;
use yii\web\View;

/** @var $this View */
/** @var $id string */
/** @var $services stdClass[] See EAuth::getServices() */
/** @var $action string */
/** @var $popup bool */
/** @var $assetBundle string Alias to AssetBundle */

Yii::createObject(array('class' => $assetBundle))->register($this);

// Open the authorization dilalog in popup window.
if ($popup) {
	$options = array();
	foreach ($services as $name => $service) {
		$options[$service->id] = $service->jsArguments;
	}
	$this->registerJs('$("#' . $id . '").eauth(' . json_encode($options) . ');');
}

?>
<div class="eauth" id="<?php echo $id; ?>">
	<ul class="eauth-list">
		<?php
		foreach ($services as $name => $service) {
			echo '<li class="eauth-service eauth-service-id-' . $service->id . '">';
			/*echo Html::a($service->title, array($action, 'service' => $name), array(
				'class' => 'eauth-service-link',
				'data-eauth-service' => $service->id,
			)); */
			echo "<a class='eauth-service-link' href=\"/profile/default/login?service=$name\" data-eauth-service='$name'>$service->title";
			echo '<span class="icon-' . $service->id . '"></span>';
			echo "</a>";
			echo '</li>';
		}
		?>
{'fraction_non_alphanumeric': 0.2437636761487965, 'fraction_numerical': 0.0, 'mean_word_length': 3.9055793991416308, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 52, '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': '3058957', 'n_tokens_mistral': 846, 'n_tokens_neox': 797, 'n_words': 182}