<commit_before><?php

defined('C5_EXECUTE') or die("Access Denied.");
use \Concrete\Core\Permission\Access\Entity\Type as PermissionAccessEntityType;

$type = PermissionAccessEntityType::getByHandle('group_set');
$url = $type->getAccessEntityTypeToolsURL();

$tp = new TaskPermission();
if (!$tp->canAccessGroupSearch()) {
    echo t("You have no access to groups.");
} else {
    $gl = new GroupSetList();
    ?>
	<div id="ccm-list-wrapper">
	
	<?php if ($gl->getTotal() > 0) {
    foreach ($gl->get() as $gs) {
        ?>
	
		<div class="ccm-group">
			<div style="background-image: url(<?=ASSETS_URL_IMAGES?>/icons/group.png)" class="ccm-group-inner-indiv">
				<a class="ccm-group-inner-atag" id="g<?=$g['gID']?>" href="javascript:void(0)" onclick="ccm_selectGroupSet(<?=$gs->getGroupSetID()?>)"><?=$gs->getGroupSetDisplayName()?></a>
			</div>
		</div>
	
	<?php 
    }
    ?>
	
	<?php

} else {
    ?>
	
		<p><?=t('No group sets found.')?></p>
		
	<?php 
}
    ?>
	
	</div>
	
	<script type="text/javascript">
	ccm_selectGroupSet = function(gsID) {	
		$('#ccm-permissions-access-entity-form .btn-group').removeClass('open');
		$.getJSON('<?=$url?>', {
			'gsID': gsID
		}, function(r) {
			jQuery.fn.dialog.hideLoader();			
			jQuery.fn.dialog.closeTop();
			$('#ccm-permissions-access-entity-form input[name=peID]').val(r.peID);	
			$('#ccm-permissions-access-entity-label').html('<div class="alert alert-info">' + r.label + '</div>');	
		});
	}	
	</script>
<?php 
} ?><commit_msg>replace image icon with Font Awesome icon<commit_after><?php

defined('C5_EXECUTE') or die("Access Denied.");
use \Concrete\Core\Permission\Access\Entity\Type as PermissionAccessEntityType;

$type = PermissionAccessEntityType::getByHandle('group_set');
$url = $type->getAccessEntityTypeToolsURL();

$tp = new TaskPermission();
if (!$tp->canAccessGroupSearch()) {
    echo t("You have no access to groups.");
} else {
    $gl = new GroupSetList();
    ?>
	<div id="ccm-list-wrapper">

	<?php if ($gl->getTotal() > 0) {
    foreach ($gl->get() as $gs) {
        ?>

		<div class="ccm-group">
			<div style="padding: 8px 8px 8px 0;" class="ccm-group-inner-indiv">
                <i class="fa fa-cubes"></i>
				<a class="ccm-group-inner-atag" id="g<?=$g['gID']?>" href="javascript:void(0)" onclick="ccm_selectGroupSet(<?=$gs->getGroupSetID()?>)"><?=$gs->getGroupSetDisplayName()?></a>
			</div>
		</div>

	<?php
    }
    ?>

	<?php

} else {
    ?>

		<p><?=t('No group sets found.')?></p>

	<?php
}
    ?>

	</div>

	<script type="text/javascript">
	ccm_selectGroupSet = function(gsID) {
		$('#ccm-permissions-access-entity-form .btn-group').removeClass('open');
		$.getJSON('<?=$url?>', {
			'gsID': gsID
		}, function(r) {
			jQuery.fn.dialog.hideLoader();
			jQuery.fn.dialog.closeTop();
			$('#ccm-permissions-access-entity-form input[name=peID]').val(r.peID);
			$('#ccm-permissions-access-entity-label').html('<div class="alert alert-info">' + r.label + '</div>');
		});
	}
	</script>
<?php
} ?>

{'fraction_non_alphanumeric': 0.2285809906291834, 'fraction_numerical': 0.0033467202141900937, 'mean_word_length': 4.006700167504188, 'pattern_counts': {'":': 0, '<': 56, '<?xml version=': 0, '>': 70, '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': '6541748', 'n_tokens_mistral': 1182, 'n_tokens_neox': 1108, 'n_words': 176}