text:
<?php

defined('_JEXEC') or die;

global $jlistConfig;

// Load the tooltip behavior.
JHtml::_('behavior.tooltip');
JHTML::_('behavior.formvalidation');
// JHtml::_('behavior.formvalidator'); Joomla >= 3.4
$canDo = jdownloadsHelper::getActions();

jimport( 'joomla.form.form' );

$star = '*';

?>

<?php
    if ($canDo->get('edit.user.limits')) {
?>

<form action="<?php echo JRoute::_('index.php?option=com_jdownloads&layout=edit&id='.(int) $this->item->id); ?>" method="post" name="adminForm" id="group-form" class="form-validate">

        <fieldset class="adminform">
            <legend><?php echo JText::_('COM_JDOWNLOADS_BACKEND_TEMPPANEL_TABTEXT_INFO'); ?></legend>

<?php echo ''.JText::_('COM_JDOWNLOADS_USERGROUPS_GROUP_LOG_OPTIONS_INFO').' '.JText::_('COM_JDOWNLOADS_MULTILANGUAGE_TEXT_FIELD_INFO'); ?>

        </fieldset>

		<fieldset class="adminform">
			<?php echo JText::_('COM_JDOWNLOADS_USERGROUPS_GROUP_LIMITS');?>

<?php $this->form->setValue( 'title', $group=null, $this->form->title );
                          echo $this->form->getLabel('title'); ?>
				<?php     echo $this->form->getInput('title'); ?>

<?php echo $this->form->getLabel('importance'); ?>
                <?php echo $this->form->getInput('importance'); ?>

<?php echo $this->form->getLabel('download_limit_daily'); ?>
                <?php echo $this->form->getInput('download_limit_daily'); ?>

<?php echo $this->form->getLabel('download_limit_daily_msg'); ?>
                <?php echo $this->form->getInput('download_limit_daily_msg'); ?>

<?php echo $this->form->getLabel('download_limit_weekly'); ?>
                <?php echo $this->form->getInput('download_limit_weekly'); ?>

<?php echo $this->form->getLabel('download_limit_weekly_msg'); ?>
                <?php echo $this->form->getInput('download_limit_weekly_msg'); ?>

<?php echo $this->form->getLabel('download_limit_monthly'); ?>
                <?php echo $this->form->getInput('download_limit_monthly'); ?>

<?php echo $this->form->getLabel('download_limit_monthly_msg'); ?>
                <?php echo $this->form->getInput('download_limit_monthly_msg'); ?>

<?php echo $this->form->getLabel('download_volume_limit_daily'); ?>
                <?php echo $this->form->getInput('download_volume_limit_daily'); ?>

<?php echo $this->form->getLabel('download_volume_limit_daily_msg'); ?>
                <?php echo $this->form->getInput('download_volume_limit_daily_msg'); ?>

<?php echo $this->form->getLabel('download_volume_limit_weekly'); ?>
                <?php echo $this->form->getInput('download_volume_limit_weekly'); ?>

<?php echo $this->form->getLabel('download_volume_limit_weekly_msg'); ?>
                <?php echo $this->form->getInput('download_volume_limit_weekly_msg'); ?>

<?php echo $this->form->getLabel('download_volume_limit_monthly'); ?>
                <?php echo $this->form->getInput('download_volume_limit_monthly'); ?>

<?php echo $this->form->getLabel('download_volume_limit_monthly_msg'); ?>
                <?php echo $this->form->getInput('download_volume_limit_monthly_msg'); ?>

<?php echo $this->form->getLabel('how_many_times'); ?>
                <?php echo $this->form->getInput('how_many_times'); ?>

<?php echo $this->form->getLabel('how_many_times_msg'); ?>
                <?php echo $this->form->getInput('how_many_times_msg'); ?>

<?php echo $this->form->getLabel('download_limit_after_this_time'); ?>
                <?php echo $this->form->getInput('download_limit_after_this_time'); ?>

<?php echo $this->form->getLabel('upload_limit_daily'); ?>
                <?php echo $this->form->getInput('upload_limit_daily'); ?>

<?php echo $this->form->getLabel('upload_limit_daily_msg'); ?>
                <?php echo $this->form->getInput('upload_limit_daily_msg'); ?>

<?php echo $this->form->getLabel('transfer_speed_limit_kb'); ?>
                <?php echo $this->form->getInput('transfer_speed_limit_kb'); ?>

        </fieldset>

        <?php echo JHtml::_('sliders.start','usergroups-sliders-'.$this->item->id, array('useCookie'=>1)); ?>

        <?php echo JHtml::_('sliders.panel', JText::_('COM_JDOWNLOADS_USERGROUPS_GROUP_SETTINGS'), 'usergroups-settings'); ?>
        <fieldset class="panelform">

<?php echo $this->form->getLabel('use_private_area'); ?>
                <?php echo $this->form->getInput('use_private_area'); ?>

                <?php
                    if ($this->item->use_private_area == 1){
                ?>

<?php echo JText::_('COM_JDOWNLOADS_USERGROUPS_PRIVATE_FILES_AREA_FOLDER_NAME').'
'.$jlistConfig['files.uploaddir'].DS.$jlistConfig['private.area.folder.name']; ?>

<?php echo (is_writable($jlistConfig['files.uploaddir'].DS.$jlistConfig['private.area.folder.name'])) ? JText::_('COM_JDOWNLOADS_BACKEND_FILESEDIT_URL_DOWNLOAD_WRITABLE') : JText::_('COM_JDOWNLOADS_BACKEND_FILESEDIT_URL_DOWNLOAD_NOTWRITABLE'); ?>

                <?php } ?>

<?php echo $this->form->getLabel('myspacer'); ?>

<?php echo $this->form->getLabel('view_captcha'); ?>
                <?php echo $this->form->getInput('view_captcha'); ?>

<?php echo $this->form->getLabel('view_report_form'); ?>
                <?php echo $this->form->getInput('view_report_form'); ?>

<?php echo $this->form->getLabel('countdown_timer_duration'); ?>
                <?php echo $this->form->getInput('countdown_timer_duration'); ?>

<?php echo $this->form->getLabel('countdown_timer_msg'); ?>
                <?php echo $this->form->getInput('countdown_timer_msg'); ?>

<?php echo $this->form->getLabel('view_user_his_limits'); ?>
                <?php echo $this->form->getInput('view_user_his_limits'); ?>

<?php echo $this->form->getLabel('view_user_his_limits_msg'); ?>
                <?php echo $this->form->getInput('view_user_his_limits_msg'); ?>

<?php echo $this->form->getLabel('myspacer'); ?>

<?php echo $this->form->getLabel('notes'); ?>
                <?php echo $this->form->getInput('notes'); ?>

<?php echo $this->form->getLabel('id'); ?>
                <?php echo $this->form->getInput('id'); ?>

<?php echo $this->form->getLabel('group_id'); ?>
                <?php echo $this->form->getInput('group_id'); ?>

		</fieldset>

        <?php echo JHtml::_('sliders.panel', JText::_('COM_JDOWNLOADS_USERGROUPS_GROUP_CREATION_SETTINGS'), 'usergroups-creation-settings'); ?>

        <fieldset class="panelform">

                <?php echo '
'.JText::_('COM_JDOWNLOADS_USERGROUPS_GROUP_CREATION_SETTINGS_NOTE').'
'; ?>

<input type="hidden" name="jform[uploads_view_upload_icon]" value="0">
                <?php echo $this->form->getLabel('uploads_view_upload_icon'); ?>
                <?php echo $this->form->getInput('uploads_view_upload_icon'); ?>

<input type="hidden" name="jform[uploads_can_change_category]" value="0">
                <?php echo $this->form->getLabel('uploads_can_change_category'); ?>
                <?php echo $this->form->getInput('uploads_can_change_category'); ?>

<input type="hidden" name="jform[uploads_allow_custom_tags]" value="0">
                <?php echo $this->form->getLabel('uploads_allow_custom_tags'); ?>
                <?php echo $this->form->getInput('uploads_allow_custom_tags'); ?>

<input type="hidden" name="jform[uploads_auto_publish]" value="0">
                <?php echo $this->form->getLabel('uploads_auto_publish'); ?>
                <?php echo $this->form->getInput('uploads_auto_publish'); ?>

<input type="hidden" name="jform[uploads_use_editor]" value="0">
                <?php echo $this->form->getLabel('uploads_use_editor'); ?>
                <?php echo $this->form->getInput('uploads_use_editor'); ?>

<input type="hidden" name="jform[uploads_use_tabs]" value="0">
                <?php echo $this->form->getLabel('uploads_use_tabs'); ?>
                <?php echo $this->form->getInput('uploads_use_tabs'); ?>

                <?php echo $this->form->getLabel('uploads_default_access_level'); ?>
                <?php echo $this->form->getInput('uploads_default_access_level'); ?>

                <?php echo $this->form->getLabel('uploads_allowed_types'); ?>
                <?php echo $this->form->getInput('uploads_allowed_types'); ?>

                <?php echo $this->form->getLabel('uploads_allowed_preview_types'); ?>
                <?php echo $this->form->getInput('uploads_allowed_preview_types'); ?>

                <?php echo $this->form->getLabel('uploads_maxfilesize_kb'); ?>
                <?php echo $this->form->getInput('uploads_maxfilesize_kb'); ?>

                <?php echo $this->form->getLabel('uploads_max_amount_images'); ?>
                <?php echo $this->form->getInput('uploads_max_amount_images'); ?>

                <?php echo $this->form->getLabel('uploads_form_text'); ?>
                <?php echo $this->form->getInput('uploads_form_text'); ?>

                <?php echo $this->form->getLabel('spacer1'); ?>
                <?php echo '
'.JText::_('COM_JDOWNLOADS_USERGROUPS_GROUP_CREATION_SETTINGS_DESC').'
'; ?>

<input type="hidden" name="jform[form_title]" value="1">
                <?php $x = $this->form->getLabel('form_title');
                      echo str_replace('', $star.'', $x); ?>
                <?php echo $this->form->getInput('form_title'); ?>

<input type="hidden" name="jform[form_alias]" value="0">
                <?php echo $this->form->getLabel('form_alias'); ?>
                <?php echo $this->form->getInput('form_alias'); ?>
                <input type="hidden" name="jform[form_alias_x]" value="0">
                <?php echo $this->form->getInput('form_alias_x'); ?>

<input type="hidden" name="jform[form_category]" value="1">
                <?php $x = $this->form->getLabel('form_category');
                      echo str_replace('', $star.'', $x); ?>
                <?php echo $this->form->getInput('form_category'); ?>

<input type="hidden" name="jform[form_version]" value="0">
                <?php echo $this->form->getLabel('form_version'); ?>
                <?php echo $this->form->getInput('form_version'); ?>
                <input type="hidden" name="jform[form_version_x]" value="0">
                <?php echo $this->form->getInput('form_version_x'); ?>

<input type="hidden" name="jform[form_update_active]" value="0">
                <?php echo $this->form->getLabel('form_update_active'); ?>
                <?php echo $this->form->getInput('form_update_active'); ?>

<input type="hidden" name="jform[form_access]" value="0">
                <?php echo $this->form->getLabel('form_access'); ?>
                <?php echo $this->form->getInput('form_access'); ?>

<input type="hidden" name="jform[form_file_language]" value="0">
                <?php echo $this->form->getLabel('form_file_language'); ?>
                <?php echo $this->form->getInput('form_file_language'); ?>
                <input type="hidden" name="jform[form_file_language_x]" value="0">
                <?php echo $this->form->getInput('form_file_language_x'); ?>

<input type="hidden" name="jform[form_file_system]" value="0">
                <?php echo $this->form->getLabel('form_file_system'); ?>
                <?php echo $this->form->getInput('form_file_system'); ?>
                <input type="hidden" name="jform[form_file_system_x]" value="0">
                <?php echo $this->form->getInput('form_file_system_x'); ?>

<input type="hidden" name="jform[form_license]" value="0">
                <?php echo $this->form->getLabel('form_license'); ?>
                <?php echo $this->form->getInput('form_license'); ?>
                <input type="hidden" name="jform[form_license_x]" value="0">
                <?php echo $this->form->getInput('form_license_x'); ?>

<input type="hidden" name="jform[form_confirm_license]" value="0">
                <?php echo $this->form->getLabel('form_confirm_license'); ?>
                <?php echo $this->form->getInput('form_confirm_license'); ?>

<input type="hidden" name="jform[form_short_desc]" value="0">
                <?php echo $this->form->getLabel('form_short_desc'); ?>
                <?php echo $this->form->getInput('form_short_desc'); ?>
                <input type="hidden" name="jform[form_short_desc_x]" value="0">
                <?php echo $this->form->getInput('form_short_desc_x'); ?>

<input type="hidden" name="jform[form_long_desc]" value="0">
                <?php echo $this->form->getLabel('form_long_desc'); ?>
                <?php echo $this->form->getInput('form_long_desc'); ?>
                <input type="hidden" name="jform[form_long_desc_x]" value="0">
                <?php echo $this->form->getInput('form_long_desc_x'); ?>

<input type="hidden" name="jform[form_changelog]" value="0">
                <?php echo $this->form->getLabel('form_changelog'); ?>
                <?php echo $this->form->getInput('form_changelog'); ?>
                <input type="hidden" name="jform[form_changelog_x]" value="0">
                <?php echo $this->form->getInput('form_changelog_x'); ?>

<input type="hidden" name="jform[form_language]" value="0">
                <?php echo $this->form->getLabel('form_language'); ?>
                <?php echo $this->form->getInput('form_language'); ?>

<input type="hidden" name="jform[form_published]" value="0">
                <?php echo $this->form->getLabel('form_published'); ?>
                <?php echo $this->form->getInput('form_published'); ?>

<input type="hidden" name="jform[form_featured]" value="0">
                <?php echo $this->form->getLabel('form_featured'); ?>
                <?php echo $this->form->getInput('form_featured'); ?>

<input type="hidden" name="jform[form_creation_date]" value="0">
                <?php echo $this->form->getLabel('form_creation_date'); ?>
                <?php echo $this->form->getInput('form_creation_date'); ?>
                <input type="hidden" name="jform[form_creation_date_x]" value="0">
                <?php echo $this->form->getInput('form_creation_date_x'); ?>

<input type="hidden" name="jform[form_modified_date]" value="0">
                <?php echo $this->form->getLabel('form_modified_date'); ?>
                <?php echo $this->form->getInput('form_modified_date'); ?>

<input type="hidden" name="jform[form_timeframe]" value="0">
                <?php echo $this->form->getLabel('form_timeframe'); ?>
                <?php echo $this->form->getInput('form_timeframe'); ?>

<input type="hidden" name="jform[form_views]" value="0">
                <?php echo $this->form->getLabel('form_views'); ?>
                <?php echo $this->form->getInput('form_views'); ?>

<input type="hidden" name="jform[form_downloaded]" value="0">
                <?php echo $this->form->getLabel('form_downloaded'); ?>
                <?php echo $this->form->getInput('form_downloaded'); ?>

<input type="hidden" name="jform[form_ordering]" value="0">
                <?php echo $this->form->getLabel('form_ordering'); ?>
                <?php echo $this->form->getInput('form_ordering'); ?>

<input type="hidden" name="jform[form_password]" value="0">
                <?php echo $this->form->getLabel('form_password'); ?>
                <?php echo $this->form->getInput('form_password'); ?>
                <input type="hidden" name="jform[form_password_x]" value="0">
                <?php echo $this->form->getInput('form_password_x'); ?>

<input type="hidden" name="jform[form_price]" value="0">
                <?php echo $this->form->getLabel('form_price'); ?>
                <?php echo $this->form->getInput('form_price'); ?>
                <input type="hidden" name="jform[form_price_x]" value="0">
                <?php echo $this->form->getInput('form_price_x'); ?>

<input type="hidden" name="jform[form_website]" value="0">
                <?php echo $this->form->getLabel('form_website'); ?>
                <?php echo $this->form->getInput('form_website'); ?>
                <input type="hidden" name="jform[form_website_x]" value="0">
                <?php echo $this->form->getInput('form_website_x'); ?>

<input type="hidden" name="jform[form_author_name]" value="0">
                <?php echo $this->form->getLabel('form_author_name'); ?>
                <?php echo $this->form->getInput('form_author_name'); ?>
                <input type="hidden" name="jform[form_author_name_x]" value="0">
                <?php echo $this->form->getInput('form_author_name_x'); ?>

<input type="hidden" name="jform[form_author_mail]" value="0">
                <?php echo $this->form->getLabel('form_author_mail'); ?>
                <?php echo $this->form->getInput('form_author_mail'); ?>
                <input type="hidden" name="jform[form_author_mail_x]" value="0">
                <?php echo $this->form->getInput('form_author_mail_x'); ?>

<input type="hidden" name="jform[form_file_pic]" value="0">
                <?php echo $this->form->getLabel('form_file_pic'); ?>
                <?php echo $this->form->getInput('form_file_pic'); ?>

<input type="hidden" name="jform[form_select_main_file]" value="0">
                <?php echo $this->form->getLabel('form_select_main_file'); ?>
                <?php echo $this->form->getInput('form_select_main_file'); ?>
                <input type="hidden" name="jform[form_select_main_file_x]" value="0">
                <?php echo $this->form->getInput('form_select_main_file_x'); ?>

<input type="hidden" name="jform[form_file_size]" value="0">
                <?php echo $this->form->getLabel('form_file_size'); ?>
                <?php echo $this->form->getInput('form_file_size'); ?>

<input type="hidden" name="jform[form_file_date]" value="0">
                <?php echo $this->form->getLabel('form_file_date'); ?>
                <?php echo $this->form->getInput('form_file_date'); ?>
                <input type="hidden" name="jform[form_file_date_x]" value="0">
                <?php echo $this->form->getInput('form_file_date_x'); ?>

<input type="hidden" name="jform[form_select_preview_file]" value="0">
                <?php echo $this->form->getLabel('form_select_preview_file'); ?>
                <?php echo $this->form->getInput('form_select_preview_file'); ?>
                <input type="hidden" name="jform[form_select_preview_file_x]" value="0">
                <?php echo $this->form->getInput('form_select_preview_file_x'); ?>

<input type="hidden" name="jform[form_external_file]" value="0">
                <?php echo $this->form->getLabel('form_external_file'); ?>
                <?php echo $this->form->getInput('form_external_file'); ?>
                <input type="hidden" name="jform[form_external_file_x]" value="0">
                <?php echo $this->form->getInput('form_external_file_x'); ?>

<input type="hidden" name="jform[form_mirror_1]" value="0">
                <?php $x = $this->form->getLabel('form_mirror_1');
                      echo str_replace('', ' 1', $x); ?>
                <?php echo $this->form->getInput('form_mirror_1'); ?>
                <input type="hidden" name="jform[form_mirror_1_x]" value="0">
                <?php echo $this->form->getInput('form_mirror_1_x'); ?>

<input type="hidden" name="jform[form_mirror_2]" value="0">
                <?php $x = $this->form->getLabel('form_mirror_2');
                      echo str_replace('', ' 2', $x); ?>
                <?php echo $this->form->getInput('form_mirror_2'); ?>
                <input type="hidden" name="jform[form_mirror_2_x]" value="0">
                <?php echo $this->form->getInput('form_mirror_2_x'); ?>

<input type="hidden" name="jform[form_images]" value="0">
                <?php echo $this->form->getLabel('form_images'); ?>
                <?php echo $this->form->getInput('form_images'); ?>
                <input type="hidden" name="jform[form_images_x]" value="0">
                <?php echo $this->form->getInput('form_images_x'); ?>

<input type="hidden" name="jform[form_meta_desc]" value="0">
                <?php echo $this->form->getLabel('form_meta_desc'); ?>
                <?php echo $this->form->getInput('form_meta_desc'); ?>

<input type="hidden" name="jform[form_meta_key]" value="0">
                <?php echo $this->form->getLabel('form_meta_key'); ?>
                <?php echo $this->form->getInput('form_meta_key'); ?>

<input type="hidden" name="jform[form_robots]" value="0">
                <?php echo $this->form->getLabel('form_robots'); ?>
                <?php echo $this->form->getInput('form_robots'); ?>

<input type="hidden" name="jform[form_tags]" value="0">
                <?php echo $this->form->getLabel('form_tags'); ?>
                <?php echo $this->form->getInput('form_tags'); ?>

                <?php echo $this->form->getLabel('spacer1'); ?>
                <?php echo '
'.JText::_('COM_JDOWNLOADS_USERGROUPS_GROUP_CREATION_SETTINGS_DESC2').'
'; ?>

<input type="hidden" name="jform[form_extra_select_box_1]" value="0">
                <?php $x = $this->form->getLabel('form_extra_select_box_1');
                      echo str_replace('', ' 1', $x); ?>
                <?php echo $this->form->getInput('form_extra_select_box_1'); ?>
                <input type="hidden" name="jform[form_extra_select_box_1_x]" value="0">
                <?php echo $this->form->getInput('form_extra_select_box_1_x'); ?>

<input type="hidden" name="jform[form_extra_select_box_2]" value="0">
                <?php $x = $this->form->getLabel('form_extra_select_box_2');
                      echo str_replace('', ' 2', $x); ?>
                <?php echo $this->form->getInput('form_extra_select_box_2'); ?>
                <input type="hidden" name="jform[form_extra_select_box_2_x]" value="0">
                <?php echo $this->form->getInput('form_extra_select_box_2_x'); ?>

<input type="hidden" name="jform[form_extra_select_box_3]" value="0">
                <?php $x = $this->form->getLabel('form_extra_select_box_3');
                      echo str_replace('', ' 3', $x); ?>
                <?php echo $this->form->getInput('form_extra_select_box_3'); ?>
                <input type="hidden" name="jform[form_extra_select_box_3_x]" value="0">
                <?php echo $this->form->getInput('form_extra_select_box_3_x'); ?>

<input type="hidden" name="jform[form_extra_select_box_4]" value="0">
                <?php $x = $this->form->getLabel('form_extra_select_box_4');
                      echo str_replace('', ' 4', $x); ?>
                <?php echo $this->form->getInput('form_extra_select_box_4'); ?>
                <input type="hidden" name="jform[form_extra_select_box_4_x]" value="0">
                <?php echo $this->form->getInput('form_extra_select_box_4_x'); ?>

<input type="hidden" name="jform[form_extra_select_box_5]" value="0">
                <?php $x = $this->form->getLabel('form_extra_select_box_5');
                      echo str_replace('', ' 5', $x); ?>
                <?php echo $this->form->getInput('form_extra_select_box_5'); ?>
                <input type="hidden" name="jform[form_extra_select_box_5_x]" value="0">
                <?php echo $this->form->getInput('form_extra_select_box_5_x'); ?>

<input type="hidden" name="jform[form_extra_short_input_1]" value="0">
                <?php $x = $this->form->getLabel('form_extra_short_input_1');
                      echo str_replace('', ' 1', $x); ?>
                <?php echo $this->form->getInput('form_extra_short_input_1'); ?>
                <input type="hidden" name="jform[form_extra_short_input_1_x]" value="0">
                <?php echo $this->form->getInput('form_extra_short_input_1_x'); ?>

<input type="hidden" name="jform[form_extra_short_input_2]" value="0">
                <?php $x = $this->form->getLabel('form_extra_short_input_2');
                      echo str_replace('', ' 2', $x); ?>
                <?php echo $this->form->getInput('form_extra_short_input_2'); ?>
                <input type="hidden" name="jform[form_extra_short_input_2_x]" value="0">
                <?php echo $this->form->getInput('form_extra_short_input_2_x'); ?>

<input type="hidden" name="jform[form_extra_short_input_3]" value="0">
                <?php $x = $this->form->getLabel('form_extra_short_input_3');
                      echo str_replace('', ' 3', $x); ?>
                <?php echo $this->form->getInput('form_extra_short_input_3'); ?>
                <input type="hidden" name="jform[form_extra_short_input_3_x]" value="0">
                <?php echo $this->form->getInput('form_extra_short_input_3_x'); ?>

<input type="hidden" name="jform[form_extra_short_input_4]" value="0">
                <?php $x = $this->form->getLabel('form_extra_short_input_4');
                      echo str_replace('', ' 4', $x); ?>
                <?php echo $this->form->getInput('form_extra_short_input_4'); ?>
                <input type="hidden" name="jform[form_extra_short_input_4_x]" value="0">
                <?php echo $this->form->getInput('form_extra_short_input_4_x'); ?>

<input type="hidden" name="jform[form_extra_short_input_5]" value="0">
                <?php $x = $this->form->getLabel('form_extra_short_input_5');
                      echo str_replace('', ' 5', $x); ?>
                <?php echo $this->form->getInput('form_extra_short_input_5'); ?>
                <input type="hidden" name="jform[form_extra_short_input_5_x]" value="0">
                <?php echo $this->form->getInput('form_extra_short_input_5_x'); ?>

<input type="hidden" name="jform[form_extra_large_input_1]" value="0">
                <?php $x = $this->form->getLabel('form_extra_large_input_1');
                      echo str_replace('', ' 1', $x); ?>
                <?php echo $this->form->getInput('form_extra_large_input_1'); ?>
                <input type="hidden" name="jform[form_extra_large_input_1_x]" value="0">
                <?php echo $this->form->getInput('form_extra_large_input_1_x'); ?>

<input type="hidden" name="jform[form_extra_large_input_2]" value="0">
                <?php $x = $this->form->getLabel('form_extra_large_input_2');
                      echo str_replace('', ' 2', $x); ?>
                <?php echo $this->form->getInput('form_extra_large_input_2'); ?>
                <input type="hidden" name="jform[form_extra_large_input_2_x]" value="0">
                <?php echo $this->form->getInput('form_extra_large_input_2_x'); ?>

<input type="hidden" name="jform[form_extra_date_1]" value="0">
                <?php $x = $this->form->getLabel('form_extra_date_1');
                      echo str_replace('', ' 1', $x); ?>
                <?php echo $this->form->getInput('form_extra_date_1'); ?>
                <input type="hidden" name="jform[form_extra_date_1_x]" value="0">
                <?php echo $this->form->getInput('form_extra_date_1_x'); ?>

<input type="hidden" name="jform[form_extra_date_2]" value="0">
                <?php $x = $this->form->getLabel('form_extra_date_2');
                      echo str_replace('', ' 2', $x); ?>
                <?php echo $this->form->getInput('form_extra_date_2'); ?>
                <input type="hidden" name="jform[form_extra_date_2_x]" value="0">
                <?php echo $this->form->getInput('form_extra_date_2_x'); ?>

        </fieldset>

        <?php echo JHtml::_('sliders.end'); ?>

        <input type="hidden" name="task" value="" />
		<?php echo JHtml::_('form.token'); ?>

</form>

<?php
   } else {
?>
    <form action="index.php" method="post" name="adminForm" id="adminForm">

                 <?php echo ''.JText::_('COM_JDOWNLOADS_ALERTNOAUTHOR').''; ?>

    </form>
<?php
   }
?>


text:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<title>Uses of Class it.unibas.trikc.modelEntity.clustering.algorithm.visualization.ClusterComponent</title>
<meta name="date" content="2016-07-25">
<link rel="stylesheet" type="text/css" href="../../../../../../../../stylesheet.css" title="Style">

JavaScript is disabled on your browser.

Skip navigation links

Overview

Package

Class

Use

Tree

Deprecated

Index

Help

Prev

Next

Frames

No Frames

All Classes

Uses of Class
it.unibas.trikc.modelEntity.clustering.algorithm.visualization.ClusterComponent

Packages that use ClusterComponent

Package
Description

it.unibas.trikc.modelEntity.clustering.algorithm.visualization

Uses of ClusterComponent in it.unibas.trikc.modelEntity.clustering.algorithm.visualization

Methods in it.unibas.trikc.modelEntity.clustering.algorithm.visualization that return types with arguments of type ClusterComponent

Modifier and Type
Method and Description

java.util.List<ClusterComponent>
ClusterComponent.getChildren()

Method parameters in it.unibas.trikc.modelEntity.clustering.algorithm.visualization with type arguments of type ClusterComponent

Modifier and Type
Method and Description

void
ClusterComponent.setChildren(java.util.List<ClusterComponent> children)

Skip navigation links

Overview

Package

Class

Use

Tree

Deprecated

Index

Help

Prev

Next

Frames

No Frames

All Classes

redpajama_set_name: RedPajamaGithub


text:
import {FContainer} from "@flashist/flibs";

/**
 * The only purpose of the class is to show in the console its name,
 * so it would be obvious, that everything "inside of it" is part
 * of the console itself.
 */
export class ConsoleContentContainer extends FContainer {

}


text:
Displays an instagram embed.

Example:
    <amp-instagram
      shortcode="fBwFP"
      width="320"
      height="392"
      layout="responsive">
    </amp-instagram>

The width/height given in the example should be correct for responsive layouts with square (instagram's default) pictures. Other aspect ratios will require different values.

#### Attributes

**shortcode**

The instagram shortcode found in every instagram photo URL.

E.g. in https://instagram.com/p/fBwFP fBwFP is the shortcode.


text:
package org.kuali.rice.kns.kim.role;

import org.apache.commons.lang.StringUtils;
import org.kuali.rice.core.api.exception.RiceIllegalArgumentException;
import org.kuali.rice.core.api.membership.MemberType;
import org.kuali.rice.kim.api.KimConstants;
import org.kuali.rice.kim.api.identity.IdentityService;
import org.kuali.rice.kim.api.identity.entity.EntityDefault;
import org.kuali.rice.kim.api.identity.principal.Principal;
import org.kuali.rice.kim.api.role.Role;
import org.kuali.rice.kim.api.role.RoleMembership;
import org.kuali.rice.kim.api.services.KimApiServiceLocator;
import org.kuali.rice.kns.kim.role.DerivedRoleTypeServiceBase;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Map;

/**
 * This is a description of what this class does - kellerj don't forget to fill this in.
 *
 * @author Kuali Rice Team (rice.collab@kuali.org)
 *
 * @deprecated A krad integrated type service base class will be provided in the future.
 */
@Deprecated
public class PrincipalDerivedRoleTypeServiceImpl extends DerivedRoleTypeServiceBase {

	private IdentityService identityService;

    @Override
    protected List<String> getRequiredAttributes() {
        final List<String> attrs = new ArrayList<String>(super.getRequiredAttributes());
        attrs.add(KimConstants.AttributeConstants.PRINCIPAL_ID);
        return Collections.unmodifiableList(attrs);
    }

    @Override
    protected boolean isCheckRequiredAttributes() {
        return false;
    }

	@Override
	public boolean performMatch(Map<String, String> inputAttributes, Map<String, String> storedAttributes) {
		if (inputAttributes == null) {
            throw new RiceIllegalArgumentException("inputAttributes was null");
        }

		if (storedAttributes == null) {
            throw new RiceIllegalArgumentException("storedAttributes was null");
        }

        return true;
	}

	/**
	 * Since this is potentially the entire set of users, just check the qualification for the user we are interested in and return it.
	 */
	@Override
    public List<RoleMembership> getRoleMembersFromDerivedRole(String namespaceCode, String roleName, Map<String, String> qualification) {
		if (StringUtils.isBlank(namespaceCode)) {
            throw new RiceIllegalArgumentException("namespaceCode was null or blank");
        }

        if (roleName == null) {
            throw new RiceIllegalArgumentException("roleName was null");
        }

		if ( qualification == null || qualification.isEmpty() ) {
			return Collections.emptyList();
		}
        ArrayList<RoleMembership> tempIdList = new ArrayList<RoleMembership>();
		qualification = translateInputAttributes(qualification);
		// check that the principal ID is not null
		String principalId = qualification.get( KimConstants.AttributeConstants.PRINCIPAL_ID );
		if ( hasDerivedRole(principalId, null, namespaceCode, roleName, qualification)) {
	        tempIdList.add( RoleMembership.Builder.create(null/*roleId*/, null, principalId, MemberType.PRINCIPAL, null).build());
		}
		return tempIdList;
	}

	@Override
	public boolean hasDerivedRole(String principalId, List<String> groupIds, String namespaceCode, String roleName, Map<String, String> qualification) {
        if (StringUtils.isBlank(principalId)) {
            throw new RiceIllegalArgumentException("principalId was null or blank");
        }

        if (groupIds == null) {
            throw new RiceIllegalArgumentException("groupIds was null or blank");
        }

        if (StringUtils.isBlank(namespaceCode)) {
            throw new RiceIllegalArgumentException("namespaceCode was null or blank");
        }

        if (StringUtils.isBlank(roleName)) {
            throw new RiceIllegalArgumentException("roleName was null or blank");
        }

        if (qualification == null) {
            throw new RiceIllegalArgumentException("qualification was null");
        }

        // check that the principal exists and is active
        Principal principal = getIdentityService().getPrincipal( principalId );
        if ( principal == null || !principal.isActive() ) {
            return false;
        }
        // check that the identity is active
        EntityDefault entity = getIdentityService().getEntityDefault( principal.getEntityId() );
        return entity != null && entity.isActive();
	}

	protected IdentityService getIdentityService() {
		if ( identityService == null ) {
			identityService = KimApiServiceLocator.getIdentityService();
		}
		return identityService;
	}
}


text:
#pragma once

struct Waypoint;
class FileEntry;

namespace vx
{
	struct Transform;
}

namespace Converter
{
	class EditorSceneToSceneFile;
}

#include "SceneBase.h"
#include <vector>

namespace Editor
{
	class MeshInstance;

	struct SceneParams
	{
		SceneBaseParams m_baseParams;
		vx::sorted_vector<vx::StringID, MeshInstance> m_meshInstances;
		std::vector<Waypoint> m_waypoints;
		vx::sorted_vector<vx::StringID, std::string> m_materialNames;
		vx::sorted_vector<vx::StringID, std::string> m_meshNames;
		vx::sorted_vector<vx::StringID, std::string> m_meshInstanceNames;

		~SceneParams();
	};

	class Scene : public SceneBase
	{
		friend Converter::EditorSceneToSceneFile;

		template<typename T>
		struct SelectableWrapper
		{
			AABB m_bounds;
			T* m_ptr;

			SelectableWrapper() :m_bounds(), m_ptr(nullptr){}
		};

		struct SelectableWrapperIndex
		{
			AABB m_bounds;
			u32 m_index;

			SelectableWrapperIndex() :m_bounds(), m_index(0){}
		};

		vx::sorted_vector<vx::StringID, MeshInstance> m_meshInstances;
		std::vector<SelectableWrapper<Graphics::Light>> m_selectableLights;
		std::vector<std::pair<AABB, u32>> m_selectableSpawns;
		std::vector<SelectableWrapper<Waypoint>> m_selectableWaypoints;
		std::vector<SelectableWrapperIndex> m_selectableJoints;

		vx::sorted_vector<vx::StringID, std::string> m_materialNames;
		vx::sorted_vector<vx::StringID, std::string> m_meshNames;
		vx::sorted_vector<vx::StringID, std::string> m_animationNames;
		u32 m_spawnHumanId;

		void buildSelectableLights();
		void buildSelectableWaypoints();
		void buildSelectableSpawns();
		void buildSelectableJoints();

		const ::MeshInstance* getMeshInstances() const override { return nullptr; }

	public:
		Scene();
		Scene(const Scene &rhs) = delete;
		Scene(Scene &&rhs);
		Scene(SceneParams &&params);
		~Scene();

		Scene& operator = (const Scene &rhs) = delete;
		Scene& operator = (Scene &&rhs);

		void reset() override;
		void copy(Scene* dst) const;

		void sortMeshInstances() override;

		void removeUnusedMaterials();
		void removeUnusedMeshes();

		Graphics::Light* addLight(const Graphics::Light &light);
		// returns 1 on insert, 0 if already present
		u8 addMesh(vx::StringID sid, const char* name, const vx::MeshFile* mesh);
		// returns 1 on insert, 0 if already present
		u8 addMaterial(vx::StringID sid, const char* name, Material* material);
		// returns 1 on insert, 0 if mesh or material is missing
		void addWaypoint(const vx::float3 &position);
		void removeWaypoint(const vx::float3 &position);
		void addAnimation(const vx::StringID &sid, std::string &&name);

		const MeshInstance* getMeshInstance(const vx::StringID &sid) const;
		MeshInstance* getMeshInstance(const vx::StringID &sid);
		const MeshInstance* getMeshInstancesEditor() const;
		u32 getMeshInstanceCount() const override;
		const vx::sorted_vector<vx::StringID, MeshInstance>& getSortedMeshInstances() const;
		void setMeshInstancePosition(const vx::StringID &sid, const vx::float3 &p);
		void setMeshInstanceRotation(const vx::StringID &sid, const vx::float4 &q);

		const char* getMeshInstanceName(const vx::StringID &sid) const;
		const char* getMaterialName(const vx::StringID &sid) const;
		const char* getMeshName(const vx::StringID &sid) const;
		const char* getAnimationName(const vx::StringID &sid) const;

		u32 getAnimationCount() const;
		const char* getAnimationNameIndex(u32 i) const;
		u64 getAnimationSidIndex(u32 i) const;

		vx::StringID createMeshInstance();
		void removeMeshInstance(const vx::StringID &sid);
		bool renameMeshInstance(const vx::StringID &sid, const char* newName);

		void addSpawn(Spawn &&spawn);
		u32 getSpawnId(const Ray &ray) const;
		u32 getSpawnHumanId() const;
		const Spawn* getSpawn(u32 id) const;
		Spawn* getSpawn(u32 id);
		void setSpawnActor(u32 id, const vx::StringID &sid);

		void setSpawnPosition(u32 id, const vx::float3 &position);
		void setSpawnType(u32 id, u32 type);

		Graphics::Light* getLight(const Ray &ray);
		Graphics::Light* getLight(u32 i);

		void updateLightPositions();

		void addJoint(const Joint &joint);
		void eraseJoint(u32 i);
		Joint* getJoint(const Ray &ray, u32* index);
		void setJointPosition0(u32 index, const vx::float3 &p);
		void setJointPosition1(u32 index, const vx::float3 &p);
		void setJointBody0(u32 index, u64 sid);
		void setJointBody1(u32 index, u64 sid);
		void setJointRotation0(u32 index, const vx::float4 &q);
		void setJointRotation1(u32 index, const vx::float4 &q);
		void setJointLimit(u32 index, u32 enabled, f32 limitMin, f32 limitMax);

		void addLightGeometryProxy(const AABB &bounds);
		void setLightGeometryProxyBounds(u32 index, const AABB &bounds);
	};
}


text:
package com.facebook.buck.apple.toolchain.impl;

import com.facebook.buck.apple.AppleConfig;
import com.facebook.buck.apple.toolchain.AppleDeveloperDirectoryForTestsProvider;
import com.facebook.buck.apple.toolchain.AppleDeveloperDirectoryProvider;
import com.facebook.buck.core.toolchain.ToolchainCreationContext;
import com.facebook.buck.core.toolchain.ToolchainFactory;
import com.facebook.buck.core.toolchain.ToolchainProvider;
import java.io.IOException;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.Optional;

public class AppleDeveloperDirectoryForTestsProviderFactory
    implements ToolchainFactory<AppleDeveloperDirectoryForTestsProvider> {

  @Override
  public Optional<AppleDeveloperDirectoryForTestsProvider> createToolchain(
      ToolchainProvider toolchainProvider, ToolchainCreationContext context) {
    AppleConfig appleConfig = context.getBuckConfig().getView(AppleConfig.class);
    Optional<String> xcodeDeveloperDirectory = appleConfig.getXcodeDeveloperDirectoryForTests();
    Path developerDirectoryForTests;
    if (xcodeDeveloperDirectory.isPresent()) {
      Path developerDirectory =
          context
              .getBuckConfig()
              .resolvePathThatMayBeOutsideTheProjectFilesystem(
                  Paths.get(xcodeDeveloperDirectory.get()));
      try {
        developerDirectoryForTests = developerDirectory.toRealPath();
      } catch (IOException e) {
        developerDirectoryForTests = developerDirectory;
      }
    } else {
      developerDirectoryForTests =
          toolchainProvider
              .getByName(
                  AppleDeveloperDirectoryProvider.DEFAULT_NAME,
                  AppleDeveloperDirectoryProvider.class)
              .getAppleDeveloperDirectory();
    }

    return Optional.of(AppleDeveloperDirectoryForTestsProvider.of(developerDirectoryForTests));
  }
}


text:
var ChromePushManager = function(serviceWorkerPath, callback){
	if ('serviceWorker' in navigator) {
		navigator.serviceWorker.register(serviceWorkerPath)
		.then(ChromePushManager.initialiseState(callback));
	} else {
		callback('Service workers aren\'t supported in this browser.', null);
	}
}

ChromePushManager.initialiseState = function (callback) {
  // Are Notifications supported in the service worker?
  if (!('showNotification' in ServiceWorkerRegistration.prototype)) {
    callback('Notifications aren\'t supported.', null);
  } else if (Notification.permission === 'denied') {
    callback('The user has blocked notifications.', null);
  } else if (!('PushManager' in window)) {
    callback('Push messaging isn\'t supported.', null);
  } else {
  	ChromePushManager.subscribeBrowserId(callback);
  }
}

ChromePushManager.subscribeBrowserId = function(callback) {
  navigator.serviceWorker.ready.then(function(serviceWorkerRegistration) {
    serviceWorkerRegistration.pushManager.subscribe({userVisibleOnly: true})
      .then(function(subscription) {
        var register = ChromePushManager.getRegistrationId(subscription);
        callback(null, register);
      })
      .catch(function(e) {
        if (Notification.permission === 'denied') {
          callback('Permission for Notifications was denied', null);
        } else {
          callback('Unable to subscribe to push.', null);
        }
      });
  });
}

ChromePushManager.getRegistrationId = function(pushSubscription) {
  if (pushSubscription.subscriptionId) {
    return pushSubscription.subscriptionId;
  }

  var endpoint = 'https://android.googleapis.com/gcm/send/';
  parts = pushSubscription.endpoint.split(endpoint);

  if(parts.length > 1)
  {
    return parts[1];
  }

}


text:
A theme with a big hero unit. Good for simple text-only landing pages.

Loosely based on the design of http://editorarevistas.mackenzie.br/index.php/rem/article/view/788/478


text:
import sys
import glob
import json
import pathlib
import shutil

def change_kernel(notebook):
    """
    Vanillafy the kernelspec.
    """
    new_kernelspec = {
        "display_name": "Python 3 (ipykernel)",
        "language": "python",
        "name": "python3",
    }
    notebook['metadata']['kernelspec'].update(new_kernelspec)
    return notebook

def main(path):
    """
    Process the IPYNB files in path, save in place (side-effect).
    """
    fnames = glob.glob(path.strip('/') + '/[!_]*.ipynb')  # Not files with underscore.
    outpath = pathlib.Path('userguide')
    if outpath.exists():
        shutil.rmtree(outpath)
    outpath.mkdir(exist_ok=True)

    for fname in fnames:
        with open(fname, encoding='utf-8') as f:
            notebook = json.loads(f.read())

        new_nb = change_kernel(notebook)
        filepart = pathlib.Path(fname).name

        with open(outpath / filepart, 'w') as f:
            _ = f.write(json.dumps(new_nb))

    return

if __name__ == '__main__':
    print(sys.argv[1])
    _ = main(sys.argv[1])


text:
namespace DLaB.Xrm.Entities
{

	/// <summary>
	/// Group of privileges used to categorize users to provide appropriate access to entities.
	/// </summary>
	[System.Runtime.Serialization.DataContractAttribute()]
	[Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("channelaccessprofileentityaccesslevel")]
	[System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "9.0.0.9369")]
	public partial class ChannelAccessProfileEntityAccessLevel : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged
	{

		public static class Fields
		{
			public const string ChannelAccessProfileEntityAccessLevelId = "channelaccessprofileentityaccesslevelid";
			public const string Id = "channelaccessprofileentityaccesslevelid";
			public const string ChannelAccessProfileEntityAccessLevelIdUnique = "channelaccessprofileentityaccesslevelidunique";
			public const string ChannelAccessProfileId = "channelaccessprofileid";
			public const string ComponentState = "componentstate";
			public const string EntityAccessLevelDepthMask = "entityaccessleveldepthmask";
			public const string EntityAccessLevelId = "entityaccesslevelid";
			public const string IsManaged = "ismanaged";
			public const string OverwriteTime = "overwritetime";
			public const string SolutionId = "solutionid";
			public const string VersionNumber = "versionnumber";
		}

		/// <summary>
		/// Default Constructor.
		/// </summary>
		[System.Diagnostics.DebuggerNonUserCode()]
		public ChannelAccessProfileEntityAccessLevel() :
				base(EntityLogicalName)
		{
		}

		public const string EntityLogicalName = "channelaccessprofileentityaccesslevel";

		public const string PrimaryIdAttribute = "channelaccessprofileentityaccesslevelid";

		public const int EntityTypeCode = 9404;

		public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;

		public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging;

		[System.Diagnostics.DebuggerNonUserCode()]
		private void OnPropertyChanged(string propertyName)
		{
			if ((this.PropertyChanged != null))
			{
				this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
			}
		}

		[System.Diagnostics.DebuggerNonUserCode()]
		private void OnPropertyChanging(string propertyName)
		{
			if ((this.PropertyChanging != null))
			{
				this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName));
			}
		}

		/// <summary>
		/// Unique identifier of the entity access level associated with the channel access profile.
		/// </summary>
		[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("channelaccessprofileentityaccesslevelid")]
		public System.Nullable<System.Guid> ChannelAccessProfileEntityAccessLevelId
		{
			[System.Diagnostics.DebuggerNonUserCode()]
			get
			{
				return this.GetAttributeValue<System.Nullable<System.Guid>>("channelaccessprofileentityaccesslevelid");
			}
			[System.Diagnostics.DebuggerNonUserCode()]
			set
			{
				this.OnPropertyChanging("ChannelAccessProfileEntityAccessLevelId");
				this.SetAttributeValue("channelaccessprofileentityaccesslevelid", value);
				if (value.HasValue)
				{
					base.Id = value.Value;
				}
				else
				{
					base.Id = System.Guid.Empty;
				}
				this.OnPropertyChanged("ChannelAccessProfileEntityAccessLevelId");
			}
		}

		[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("channelaccessprofileentityaccesslevelid")]
		public override System.Guid Id
		{
			[System.Diagnostics.DebuggerNonUserCode()]
			get
			{
				return base.Id;
			}
			[System.Diagnostics.DebuggerNonUserCode()]
			set
			{
				this.ChannelAccessProfileEntityAccessLevelId = value;
			}
		}

		/// <summary>
		/// For internal use only.
		/// </summary>
		[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("channelaccessprofileentityaccesslevelidunique")]
		public System.Nullable<System.Guid> ChannelAccessProfileEntityAccessLevelIdUnique
		{
			[System.Diagnostics.DebuggerNonUserCode()]
			get
			{
				return this.GetAttributeValue<System.Nullable<System.Guid>>("channelaccessprofileentityaccesslevelidunique");
			}
		}

		/// <summary>
		/// Unique identifier of the channel access profile.
		/// </summary>
		[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("channelaccessprofileid")]
		public System.Nullable<System.Guid> ChannelAccessProfileId
		{
			[System.Diagnostics.DebuggerNonUserCode()]
			get
			{
				return this.GetAttributeValue<System.Nullable<System.Guid>>("channelaccessprofileid");
			}
		}

		/// <summary>
		/// For internal use only.
		/// </summary>
		[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("componentstate")]
		public Microsoft.Xrm.Sdk.OptionSetValue ComponentState
		{
			[System.Diagnostics.DebuggerNonUserCode()]
			get
			{
				return this.GetAttributeValue<Microsoft.Xrm.Sdk.OptionSetValue>("componentstate");
			}
		}

		/// <summary>
		/// System-generated attribute that stores the privileges associated with the role.
		/// </summary>
		[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("entityaccessleveldepthmask")]
		public System.Nullable<int> EntityAccessLevelDepthMask
		{
			[System.Diagnostics.DebuggerNonUserCode()]
			get
			{
				return this.GetAttributeValue<System.Nullable<int>>("entityaccessleveldepthmask");
			}
			[System.Diagnostics.DebuggerNonUserCode()]
			set
			{
				this.OnPropertyChanging("EntityAccessLevelDepthMask");
				this.SetAttributeValue("entityaccessleveldepthmask", value);
				this.OnPropertyChanged("EntityAccessLevelDepthMask");
			}
		}

		/// <summary>
		/// Unique identifier of the entity access level associated with the channel access profile
		/// </summary>
		[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("entityaccesslevelid")]
		public System.Nullable<System.Guid> EntityAccessLevelId
		{
			[System.Diagnostics.DebuggerNonUserCode()]
			get
			{
				return this.GetAttributeValue<System.Nullable<System.Guid>>("entityaccesslevelid");
			}
		}

		/// <summary>
		///
		/// </summary>
		[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ismanaged")]
		public System.Nullable<bool> IsManaged
		{
			[System.Diagnostics.DebuggerNonUserCode()]
			get
			{
				return this.GetAttributeValue<System.Nullable<bool>>("ismanaged");
			}
		}

		/// <summary>
		/// For internal use only.
		/// </summary>
		[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overwritetime")]
		public System.Nullable<System.DateTime> OverwriteTime
		{
			[System.Diagnostics.DebuggerNonUserCode()]
			get
			{
				return this.GetAttributeValue<System.Nullable<System.DateTime>>("overwritetime");
			}
		}

		/// <summary>
		/// Unique identifier of the associated solution.
		/// </summary>
		[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("solutionid")]
		public System.Nullable<System.Guid> SolutionId
		{
			[System.Diagnostics.DebuggerNonUserCode()]
			get
			{
				return this.GetAttributeValue<System.Nullable<System.Guid>>("solutionid");
			}
		}

		/// <summary>
		///
		/// </summary>
		[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")]
		public System.Nullable<long> VersionNumber
		{
			[System.Diagnostics.DebuggerNonUserCode()]
			get
			{
				return this.GetAttributeValue<System.Nullable<long>>("versionnumber");
			}
		}

		/// <summary>
		/// N:N ChannelAccessProfile_Privilege
		/// </summary>
		[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ChannelAccessProfile_Privilege")]
		public System.Collections.Generic.IEnumerable<DLaB.Xrm.Entities.Privilege> ChannelAccessProfile_Privilege
		{
			[System.Diagnostics.DebuggerNonUserCode()]
			get
			{
				return this.GetRelatedEntities<DLaB.Xrm.Entities.Privilege>("ChannelAccessProfile_Privilege", null);
			}
			[System.Diagnostics.DebuggerNonUserCode()]
			set
			{
				this.OnPropertyChanging("ChannelAccessProfile_Privilege");
				this.SetRelatedEntities<DLaB.Xrm.Entities.Privilege>("ChannelAccessProfile_Privilege", null, value);
				this.OnPropertyChanged("ChannelAccessProfile_Privilege");
			}
		}

		/// <summary>
		/// Constructor for populating via LINQ queries given a LINQ anonymous type
		/// <param name="anonymousType">LINQ anonymous type.</param>
		/// </summary>
		[System.Diagnostics.DebuggerNonUserCode()]
		public ChannelAccessProfileEntityAccessLevel(object anonymousType) :
				this()
		{
            foreach (var p in anonymousType.GetType().GetProperties())
            {
                var value = p.GetValue(anonymousType, null);
                var name = p.Name.ToLower();

                if (name.EndsWith("enum") && value.GetType().BaseType == typeof(System.Enum))
                {
                    value = new Microsoft.Xrm.Sdk.OptionSetValue((int) value);
                    name = name.Remove(name.Length - "enum".Length);
                }

                switch (name)
                {
                    case "id":
                        base.Id = (System.Guid)value;
                        Attributes["channelaccessprofileentityaccesslevelid"] = base.Id;
                        break;
                    case "channelaccessprofileentityaccesslevelid":
                        var id = (System.Nullable<System.Guid>) value;
                        if(id == null){ continue; }
                        base.Id = id.Value;
                        Attributes[name] = base.Id;
                        break;
                    case "formattedvalues":
                        // Add Support for FormattedValues
                        FormattedValues.AddRange((Microsoft.Xrm.Sdk.FormattedValueCollection)value);
                        break;
                    default:
                        Attributes[name] = value;
                        break;
                }
            }
		}

		[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("componentstate")]
		public virtual ComponentState? ComponentStateEnum
		{
			[System.Diagnostics.DebuggerNonUserCode()]
			get
			{
				return ((ComponentState?)(EntityOptionSetEnum.GetEnum(this, "componentstate")));
			}
		}
	}
}


text:
PlayerFramework.Plugins.TrackDataProviderPlugin = PlayerFramework.ModulePlugin.extend(
{
	init: function(player, options)
	{
		///	<summary>
		///		Initializes the TrackDataProviderPlugin that is a polyfill for the W3C <track> implementation.
		///	</summary>
		///	<param name="player" type="Object">
		///		The Player object.
		///	</param>
		///	<param name="options" type="Object">
		///		The options for the CueDataProviderPlugin.
		///	</param>
		///	<returns type="CueDataProviderPlugin" />

		this._super(player, options);

		this.addEventListeners();

		this.isTrackSupported = !!document.createElement("track").track;

		this.player.textTracks = [];

		this.player.addTextTrack = PlayerFramework.proxy(this, this.addTextTrack);
	},

	// Event Handlers
	onLoadedMediaPlugin: function(e)
	{
		///	<summary>
		///		Called when the media element unloads.
		///	</summary>

		// Create or clear textTracks array
		this.player.textTracks = [];

		// Find all track existing elements (both created from options or pre-existing)
		var trackElements = PlayerFramework.convertNodeListToArray(this.player.mediaPlugin.element.getElementsByTagName("track"));

		// Extend all track elements with HTML5 Track API and download the referenced source files
		PlayerFramework.forEach(trackElements, PlayerFramework.proxy(this, this.extendTrackElement));

		var textTracks = this.player.mediaPlugin.playerOptions.textTracks;

		// Create tracks that were specified in the options
		if (textTracks)
		{
			for (var i = 0; i < textTracks.length; i++)
			{
				var textTrackOptions = textTracks[i];

				if (this.player.mediaPlugin.options.supportsTrackElements)
				{
					var trackElement = PlayerFramework.createElement(this.player.mediaPlugin.element,
					[
						"track",
						textTrackOptions
					]);

					this.extendTrackElement(trackElement);
				}
				else
				{
					var textTrack = this.player.addTextTrack(textTrackOptions.kind, textTrackOptions.label, textTrackOptions.srclang);
					textTrack.src = textTrackOptions.src;

					if (textTrackOptions["default"] != undefined && textTrackOptions.src)
						this.activateTextTrack(textTrack);
				}
			}
		}
	},

	// Functions
	addEventListeners: function()
	{
		///	<summary>
		///		Adds event listeners to the control's elements.
		///	</summary>

		this.player.addEventListener("loadedmediaplugin", PlayerFramework.proxy(this, this.onLoadedMediaPlugin), false);
	},

	addTextTrack: function(kind, label, language, inStream)
	{
		///	<summary>
		///		Entry point for added a text track as specified by the W3C.
		///	</summary>
		///	<param name="kind" type="Object">
		///		The category the given track falls into.
		///	</param>
		///	<param name="label" type="Object">
		///		The label of the track, if known, or the empty string otherwise.
		///	</param>
		///	<param name="language" type="Object">
		///		The language of the given track, if known, or the empty string otherwise.
		///	</param>

		var textTrack = new PlayerFramework.TextTrack();
		textTrack.kind = kind;
		textTrack.label = label;
		textTrack.language = language;
		textTrack.inStream = inStream;

		this.player.textTracks.push(textTrack);

		this.player.dispatchEvent(
		{
			type: "texttrackadded"
		});

		return textTrack;
	},

	activateTextTrack: function(textTrack)
	{
		///	<summary>
		///		Delegates activation of a text track to the TrackPlugin with the matching "kind".
		///	</summary>
		///	<param name="textTrack" type="Object">
		///		The text track to activate.
		///	</param>

		var trackPlugin = PlayerFramework.first(this.player.modules, PlayerFramework.proxy(this, function(m)
		{
			return m instanceof PlayerFramework.TrackPlugin && m.options.kind === textTrack.kind;
		}));

		if (trackPlugin)
			trackPlugin.activateTextTrack(textTrack);
	},

	extendTrackElement: function(trackElement)
	{
		///	<summary>
		///		Extends a track element to match the W3C specification.
		///	</summary>
		///	<param name="trackElement" type="Object">
		///		The text track to extend.
		///	</param>

		trackElement.isDefault = trackElement.getAttribute("default") != undefined;
		trackElement.kind = trackElement.getAttribute("kind");
		trackElement.label = trackElement.getAttribute("label");
		trackElement.srclang = trackElement.getAttribute("srclang");
		trackElement.src = trackElement.getAttribute("src");

		var textTrack = this.player.addTextTrack(trackElement.kind, trackElement.label, trackElement.srclang);
		textTrack.src = trackElement.src;

		if (this.isTrackSupported && trackElement.track)
		{
			textTrack.track = trackElement.track;
			textTrack.track.mode = PlayerFramework.TextTrack.Mode.OFF;
		}

		trackElement.track = textTrack;

		if (trackElement.isDefault && trackElement.src)
			this.activateTextTrack(textTrack);
	}
});


text:
<Page xmlns="http://schemas.nativescript.org/tns.xsd" navigatingTo="navigatingTo" class="page">
    <Page.actionBar>
        <ActionBar title="CSS Playground" class="action-bar">
        </ActionBar>
    </Page.actionBar>

    <GridLayout rows="*, *">
			<ContentView>
				<Label id="play" text="I'm a test label." verticalAlignment="center"/>
			</ContentView>

			<GridLayout row="1" rows="*, auto, auto" borderTopWidth="1">
				<TextView text="{{ currentCSS }}" textChange="{{ onTextChange }}"/>

				<Button class="btn btn-primary" text="Apply" row="1" tap="{{ applyCSS }}"/>
				<Button class="btn btn-primary btn-orange" text="Reset" row="2" tap="{{ resetCSS }}"/>
			</GridLayout>
		</GridLayout>
</Page>


text:
ANSIBLE_METADATA = {'metadata_version': '1.1',
                    'status': ['removed'],
                    'supported_by': 'network'}

from ansible.module_utils.common.removed import removed_module

if __name__ == '__main__':
    removed_module(removed_in='2.9')


text:
function simulate(element, eventName) {
    var defaults = extend({}, defaultOptions);
    var options = extend(defaults, arguments[2] || {});
    var oEvent, eventType = null;

    console.log(options, arguments[2]);

    for (var name in eventMatchers) {
        if (eventMatchers[name].test(eventName)) { eventType = name; break; }
    }

    if (!eventType) {
        throw new SyntaxError('Only HTMLEvents and MouseEvents interfaces are supported');
    }

    if (document.createEvent) {
        oEvent = document.createEvent(eventType);
        if (eventType == 'HTMLEvents') {
            oEvent.initEvent(eventName, options.bubbles, options.cancelable);
        }
        else if (eventType === 'MouseEvents') {
            oEvent.initMouseEvent(eventName, options.bubbles, options.cancelable, document.defaultView, options.detail, options.pointerX, options.pointerY, options.pointerX, options.pointerY, options.ctrlKey, options.altKey, options.shiftKey, options.metaKey, options.button, element);
        } else if (eventType === 'KeyboardEvent') {
            defaults = extend({}, defaultKeyboardOptions);
            options = extend(defaults, arguments[2] || {});
            if (oEvent.initKeyEvent) {
                oEvent.initKeyEvent(eventName, options.bubbles, options.cancelable, document.defaultView, options.ctrl, options.shift, options.alt, options.meta, options.keyCode, options.charCode);
            } else {
                oEvent = document.createEvent("Events");
                // initKeyboardEvent doesn't work property in Chrome, fudge it using plain event
                oEvent.initEvent(eventName, options.bubbles, options.cancelable);
                oEvent.keyCode = options.keyCode;
                oEvent.which = options.keyCode;
            }
        }

        element.dispatchEvent(oEvent);
    } else {
        options.clientX = options.pointerX;
        options.clientY = options.pointerY;
        var evt = document.createEventObject();
        oEvent = extend(evt, options);
        element.fireEvent('on' + eventName, oEvent);
    }
    return element;
}

function extend(destination, source) {
    for (var property in source)
      destination[property] = source[property];
    return destination;
}

var eventMatchers = {
    'HTMLEvents': /^(?:load|unload|abort|error|select|change|submit|reset|focus|blur|resize|scroll)$/,
    'MouseEvents': /^(?:click|dblclick|mouse(?:down|up|over|move|out|wheel))$/,
    'KeyboardEvent': /^(?:keydown|keypress|keyup)$/
};

var defaultOptions = {
    pointerX: 16,
    pointerY: 16,
    detail: 0,
    button: 0,
    ctrlKey: false,
    altKey: false,
    shiftKey: false,
    metaKey: false,
    bubbles: true,
    cancelable: true
};

var defaultKeyboardOptions = {
    bubbles: true,
    cancelable: true,
    charCode: 0,
    keyCode: 0,
    location: 0,
    modifiers: '',
    repeat: false,
    locale: '',
    ctrl: false,
    alt: false,
    shift: false,
    meta: false
};


text:
import React from 'react';

const Poeteen = () => {
  return (
    <React.Fragment>

Poeteen

        The events would vary from reading/sharing favorite poems of well-known
        poets and discussing the meaning and techniques used, doing
        "springboard" writing exercises and writing poems, bringing in guest
        speakers, holding open mics, brainstorming about how to expand, having
        peer editing sessions, etc. I want to expose teenagers to poetry who
        haven't studied it much before, and I want teens who already have a
        passion for it to continue exploring their potential. These meetings
        will connect youth poets around Portland and allow us to spread the
        'revolution'.

        I've started a similar initiative with Albertina Kerr, with a bit
        different focus. At Albertina Kerr, the goal is to have teens teaching
        depressed or at risk youth about poetry and helping them realize the
        healing qualities poetry holds. I was hoping to see if anyone who
        attends the IPRC meetings would be willing to volunteer with me at
        Albertina Kerr, and eventually expand to other similar programs.

- Founder Sophia Mautz

    </React.Fragment>
  );
};

export default Poeteen;


text:
<?xml version="1.0" encoding="UTF-8"?>
<Form xmlns="http://v8.1c.ru/8.3/xcf/logform" xmlns:app="http://v8.1c.ru/8.2/managed-application/core" xmlns:cfg="http://v8.1c.ru/8.1/data/enterprise/current-config" xmlns:dcscor="http://v8.1c.ru/8.1/data-composition-system/core" xmlns:dcsset="http://v8.1c.ru/8.1/data-composition-system/settings" xmlns:ent="http://v8.1c.ru/8.1/data/enterprise" xmlns:lf="http://v8.1c.ru/8.2/managed-application/logform" xmlns:style="http://v8.1c.ru/8.1/data/ui/style" xmlns:sys="http://v8.1c.ru/8.1/data/ui/fonts/system" xmlns:v8="http://v8.1c.ru/8.1/data/core" xmlns:v8ui="http://v8.1c.ru/8.1/data/ui" xmlns:web="http://v8.1c.ru/8.1/data/ui/colors/web" xmlns:win="http://v8.1c.ru/8.1/data/ui/colors/windows" xmlns:xr="http://v8.1c.ru/8.3/xcf/readable" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.12">
	<AutoCommandBar name="ФормаКоманднаяПанель" id="-1">
		<Autofill>false</Autofill>
	</AutoCommandBar>
	<Events>
		<Event name="OnCreateAtServer">ПриСозданииНаСервере</Event>
	</Events>
	<ChildItems>
		<UsualGroup name="ГруппаПользовательскихНастроек" id="1">
			<Title>
				<v8:item>
					<v8:lang>ru</v8:lang>
					<v8:content>Группа пользовательских настроек</v8:content>
				</v8:item>
			</Title>
			<VerticalStretch>false</VerticalStretch>
			<Group>Vertical</Group>
			<ShowTitle>false</ShowTitle>
			<ExtendedTooltip name="ГруппаПользовательскихНастроекРасширеннаяПодсказка" id="2"/>
		</UsualGroup>
		<CommandBar name="КоманднаяПанель" id="28">
			<Title>
				<v8:item>
					<v8:lang>ru</v8:lang>
					<v8:content>Командная панель</v8:content>
				</v8:item>
			</Title>
			<CommandSource>Form</CommandSource>
			<ExtendedTooltip name="КоманднаяПанельРасширеннаяПодсказка" id="29"/>
			<ChildItems>
				<Button name="ФормаВключитьВозможностьРедактирования" id="32">
					<Type>CommandBarButton</Type>
					<CommandName>Form.Command.ВключитьВозможностьРедактирования</CommandName>
					<LocationInCommandBar>InAdditionalSubmenu</LocationInCommandBar>
					<ExtendedTooltip name="ФормаВключитьВозможностьРедактированияExtendedTooltip" id="33"/>
				</Button>
			</ChildItems>
		</CommandBar>
		<Table name="Список" id="3">
			<Representation>List</Representation>
			<CommandBarLocation>None</CommandBarLocation>
			<DefaultItem>true</DefaultItem>
			<UseAlternationRowColor>true</UseAlternationRowColor>
			<InitialTreeView>ExpandTopLevel</InitialTreeView>
			<EnableStartDrag>true</EnableStartDrag>
			<FileDragMode>AsFile</FileDragMode>
			<DataPath>Список</DataPath>
			<RowPictureDataPath>Список.DefaultPicture</RowPictureDataPath>
			<Title>
				<v8:item>
					<v8:lang>ru</v8:lang>
					<v8:content>Список</v8:content>
				</v8:item>
			</Title>
			<AutoRefresh>false</AutoRefresh>
			<AutoRefreshPeriod>60</AutoRefreshPeriod>
			<Period>
				<v8:variant xsi:type="v8:StandardPeriodVariant">Custom</v8:variant>
				<v8:startDate>0001-01-01T00:00:00</v8:startDate>
				<v8:endDate>0001-01-01T00:00:00</v8:endDate>
			</Period>
			<ChoiceFoldersAndItems>Items</ChoiceFoldersAndItems>
			<RestoreCurrentRow>false</RestoreCurrentRow>
			<TopLevelParent xsi:nil="true"/>
			<ShowRoot>true</ShowRoot>
			<AllowRootChoice>false</AllowRootChoice>
			<UpdateOnDataChange>Auto</UpdateOnDataChange>
			<UserSettingsGroup>ГруппаПользовательскихНастроек</UserSettingsGroup>
			<ContextMenu name="СписокКонтекстноеМеню" id="4"/>
			<AutoCommandBar name="СписокКоманднаяПанель" id="5">
				<Autofill>false</Autofill>
			</AutoCommandBar>
			<ExtendedTooltip name="СписокРасширеннаяПодсказка" id="6"/>
			<SearchStringAddition name="СписокСтрокаПоиска" id="7">
				<AdditionSource>
					<Item>Список</Item>
					<Type>SearchStringRepresentation</Type>
				</AdditionSource>
				<ContextMenu name="СписокСтрокаПоискаКонтекстноеМеню" id="8"/>
				<ExtendedTooltip name="СписокСтрокаПоискаРасширеннаяПодсказка" id="9"/>
			</SearchStringAddition>
			<ViewStatusAddition name="СписокСостояниеПросмотра" id="10">
				<AdditionSource>
					<Item>Список</Item>
					<Type>ViewStatusRepresentation</Type>
				</AdditionSource>
				<ContextMenu name="СписокСостояниеПросмотраКонтекстноеМеню" id="11"/>
				<ExtendedTooltip name="СписокСостояниеПросмотраРасширеннаяПодсказка" id="12"/>
			</ViewStatusAddition>
			<SearchControlAddition name="СписокУправлениеПоиском" id="13">
				<AdditionSource>
					<Item>Список</Item>
					<Type>SearchControl</Type>
				</AdditionSource>
				<ContextMenu name="СписокУправлениеПоискомКонтекстноеМеню" id="14"/>
				<ExtendedTooltip name="СписокУправлениеПоискомРасширеннаяПодсказка" id="15"/>
			</SearchControlAddition>
			<ChildItems>
				<LabelField name="СписокСписок" id="16">
					<DataPath>Список.Список</DataPath>
					<ContextMenu name="СписокСписокКонтекстноеМеню" id="17"/>
					<ExtendedTooltip name="СписокСписокРасширеннаяПодсказка" id="18"/>
				</LabelField>
				<CheckBoxField name="СписокДляВнешнихПользователей" id="19">
					<DataPath>Список.ДляВнешнихПользователей</DataPath>
					<Title>
						<v8:item>
							<v8:lang>ru</v8:lang>
							<v8:content>ВП</v8:content>
						</v8:item>
					</Title>
					<CheckBoxType>Auto</CheckBoxType>
					<ContextMenu name="СписокДляВнешнихПользователейКонтекстноеМеню" id="20"/>
					<ExtendedTooltip name="СписокДляВнешнихПользователейРасширеннаяПодсказка" id="21"/>
				</CheckBoxField>
				<CheckBoxField name="ТочечноеЗадание" id="34">
					<DataPath>Список.ТочечноеЗадание</DataPath>
					<Title>
						<v8:item>
							<v8:lang>ru</v8:lang>
							<v8:content>ТЗ</v8:content>
						</v8:item>
					</Title>
					<CheckBoxType>Auto</CheckBoxType>
					<ContextMenu name="ТочечноеЗаданиеКонтекстноеМеню" id="35"/>
					<ExtendedTooltip name="ТочечноеЗаданиеРасширеннаяПодсказка" id="36"/>
				</CheckBoxField>
				<LabelField name="РазмерЗадания" id="37">
					<DataPath>Список.РазмерЗадания</DataPath>
					<Title>
						<v8:item>
							<v8:lang>ru</v8:lang>
							<v8:content>РЗ</v8:content>
						</v8:item>
					</Title>
					<ToolTip>
						<v8:item>
							<v8:lang>ru</v8:lang>
							<v8:content>Размер задания:
1 - точечное задание,
2 - обновление устаревших,
3 - обновление с начала.</v8:content>
						</v8:item>
					</ToolTip>
					<ContextMenu name="РазмерЗаданияКонтекстноеМеню" id="38"/>
					<ExtendedTooltip name="РазмерЗаданияРасширеннаяПодсказка" id="39"/>
				</LabelField>
				<LabelField name="СписокДатаИзмененияЗаписиРегистра" id="22">
					<DataPath>Список.ДатаИзмененияЗаписиРегистра</DataPath>
					<Title>
						<v8:item>
							<v8:lang>ru</v8:lang>
							<v8:content>Дата изменения</v8:content>
						</v8:item>
					</Title>
					<ContextMenu name="СписокДатаИзмененияЗаписиРегистраКонтекстноеМеню" id="23"/>
					<ExtendedTooltip name="СписокДатаИзмененияЗаписиРегистраРасширеннаяПодсказка" id="24"/>
				</LabelField>
				<LabelField name="СписокКлючУникальности" id="25">
					<DataPath>Список.КлючУникальности</DataPath>
					<ContextMenu name="СписокКлючУникальностиКонтекстноеМеню" id="26"/>
					<ExtendedTooltip name="СписокКлючУникальностиРасширеннаяПодсказка" id="27"/>
				</LabelField>
			</ChildItems>
		</Table>
	</ChildItems>
	<Attributes>
		<Attribute name="Список" id="1">
			<Type>
				<v8:Type>cfg:DynamicList</v8:Type>
			</Type>
			<MainAttribute>true</MainAttribute>
			<Settings xsi:type="DynamicList">
				<ManualQuery>false</ManualQuery>
				<DynamicDataRead>true</DynamicDataRead>
				<MainTable>InformationRegister.ОбновлениеКлючейДоступаПользователей</MainTable>
				<ListSettings>
					<dcsset:filter>
						<dcsset:viewMode>Normal</dcsset:viewMode>
						<dcsset:userSettingID>dfcece9d-5077-440b-b6b3-45a5cb4538eb</dcsset:userSettingID>
					</dcsset:filter>
					<dcsset:order>
						<dcsset:viewMode>Normal</dcsset:viewMode>
						<dcsset:userSettingID>88619765-ccb3-46c6-ac52-38e9c992ebd4</dcsset:userSettingID>
					</dcsset:order>
					<dcsset:conditionalAppearance>
						<dcsset:viewMode>Normal</dcsset:viewMode>
						<dcsset:userSettingID>b75fecce-942b-4aed-abc9-e6a02e460fb3</dcsset:userSettingID>
					</dcsset:conditionalAppearance>
					<dcsset:itemsViewMode>Normal</dcsset:itemsViewMode>
					<dcsset:itemsUserSettingID>911b6018-f537-43e8-a417-da56b22f9aec</dcsset:itemsUserSettingID>
				</ListSettings>
			</Settings>
		</Attribute>
	</Attributes>
	<Commands>
		<Command name="ВключитьВозможностьРедактирования" id="1">
			<Title>
				<v8:item>
					<v8:lang>ru</v8:lang>
					<v8:content>Включить возможность редактирования</v8:content>
				</v8:item>
			</Title>
			<ToolTip>
				<v8:item>
					<v8:lang>ru</v8:lang>
					<v8:content>Включить возможность редактирования только для целей поиска неисправности (требуется углубленное понимание работы механизма)</v8:content>
				</v8:item>
			</ToolTip>
			<Action>ВключитьВозможностьРедактирования</Action>
			<CurrentRowUse>DontUse</CurrentRowUse>
		</Command>
	</Commands>
</Form>


text:
<?php

namespace Stakhanovist\Queue\Adapter;

use Stakhanovist\Queue\Exception;
use Stakhanovist\Queue\Parameter\ReceiveParametersInterface;
use Stakhanovist\Queue\Parameter\SendParametersInterface;
use Stakhanovist\Queue\QueueInterface;
use Zend\Stdlib\MessageInterface;

/**
 * Class NullAdapter
 *
 * Class for testing. No supported functions. Also used to disable a queue.
 */
class NullAdapter extends AbstractAdapter
{
    /**
     * Ensure connection
     *
     * @return bool
     */
    public function connect()
    {
        return true;
    }

    /**
     * Returns the ID of the queue
     *
     * @param string $name Queue name
     * @return string
     */
    public function getQueueId($name)
    {
        return null;
    }

    /**
     * Check if a queue exists
     *
     * @param  string $name Queue name
     * @return bool
     */
    public function queueExists($name)
    {
        return false;
    }

    /**
     * Create a new queue
     *
     * @param  string $name Queue name
     * @return bool|void
     * @throws Exception\UnsupportedMethodCallException - queue disabled
     */
    public function createQueue($name)
    {
        throw new Exception\UnsupportedMethodCallException(
            __FUNCTION__ . '() is not supported by ' . get_called_class()
        );
    }

    /**
     * Delete a queue and all of its messages
     *
     * Return false if the queue is not found, true if the queue exists.
     *
     * @param  string $name Queue name
     * @return bool|void
     * @throws Exception\UnsupportedMethodCallException - queue disabled
     */
    public function deleteQueue($name)
    {
        throw new Exception\UnsupportedMethodCallException(
            __FUNCTION__ . '() is not supported by ' . get_called_class()
        );
    }

    /********************************************************************
     * Messsage management functions
     *********************************************************************/

    /**
     * Send a message to the queue
     *
     * @param  QueueInterface $queue
     * @param  MessageInterface $message Message
     * @param  SendParametersInterface $params
     * @return void|MessageInterface
     * @throws Exception\UnsupportedMethodCallException - queue disabled
     */
    public function sendMessage(
        QueueInterface $queue,
        MessageInterface $message,
        SendParametersInterface $params = null
    ) {
        throw new Exception\UnsupportedMethodCallException(
            __FUNCTION__ . '() is not supported by ' . get_called_class()
        );
    }

    /**
     * Get messages from the queue
     *
     * @param  QueueInterface $queue
     * @param  integer|null $maxMessages Maximum number of messages to return
     * @param  ReceiveParametersInterface $params
     * @return \Stakhanovist\Queue\Message\MessageIterator|void
     * @throws Exception\UnsupportedMethodCallException - queue disabled
     */
    public function receiveMessages(
        QueueInterface $queue,
        $maxMessages = null,
        ReceiveParametersInterface $params = null
    ) {
        throw new Exception\UnsupportedMethodCallException(
            __FUNCTION__ . '() is not supported by ' . get_called_class()
        );
    }
}


text:
namespace google {
namespace protobuf {
namespace compiler {
namespace csharp {

class Writer;

class RepeatedMessageFieldGenerator : public FieldGeneratorBase {
 public:
  RepeatedMessageFieldGenerator(const FieldDescriptor* descriptor, int fieldOrdinal);
  ~RepeatedMessageFieldGenerator();

  virtual void GenerateMembers(Writer* writer);
  virtual void GenerateBuilderMembers(Writer* writer);
  virtual void GenerateMergingCode(Writer* writer);
  virtual void GenerateBuildingCode(Writer* writer);
  virtual void GenerateParsingCode(Writer* writer);
  virtual void GenerateSerializationCode(Writer* writer);
  virtual void GenerateSerializedSizeCode(Writer* writer);

  virtual void WriteHash(Writer* writer);
  virtual void WriteEquals(Writer* writer);
  virtual void WriteToString(Writer* writer);

 private:
  GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(RepeatedMessageFieldGenerator);
};

}  // namespace csharp
}  // namespace compiler
}  // namespace protobuf
}  // namespace google

#endif  // GOOGLE_PROTOBUF_COMPILER_CSHARP_REPEATED_MESSAGE_FIELD_H__


text:
<?php

namespace Vipa\AdminBundle\Entity;

use Prezent\Doctrine\Translatable\Annotation as Prezent;
use Vipa\CoreBundle\Annotation\Display;
use APY\DataGridBundle\Grid\Mapping as GRID;
use Vipa\CoreBundle\Entity\DisplayTrait;
use Vipa\CoreBundle\Entity\TagsTrait;

/**
 * AdminFile
 * @GRID\Source(columns="id, name, description, path")
 */
class AdminFile
{
    use DisplayTrait;
    use TagsTrait;

    /**
     * @var int
     * @GRID\Column(title="id")
     */
    private $id;

    /**
     * @var string
     * @GRID\Column(title="name")
     */
    private $name;

    /**
     * @var string
     * @GRID\Column(title="description")
     */
    private $description;

    /**
     * @var string
     * @GRID\Column(title="path")
     * @Display\File(path="files")
     */
    private $path;

    /**
     * @var int
     */
    private $size;

    /**
     * @return mixed
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * @return mixed
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * @param mixed $name
     */
    public function setName($name)
    {
        $this->name = $name;
    }

    /**
     * @return string
     */
    public function getDescription()
    {
        return $this->description;
    }

    /**
     * @param string $description
     */
    public function setDescription($description)
    {
        $this->description = $description;
    }

    /**
     * @return string
     */
    public function getPath()
    {
        return $this->path;
    }

    /**
     * @param string $path
     */
    public function setPath($path)
    {
        $this->path = $path;
    }

    /**
     * @return int
     */
    public function getSize()
    {
        return $this->size;
    }

    /**
     * @param int $size
     */
    public function setSize($size)
    {
        $this->size = $size;
    }

    /**
     * @return mixed
     */
    public function __toString()
    {
        return $this->getName();
    }
}


text:
"""
Created on Jul 22, 2011

@author: Rio

Indev levels:

TAG_Compound "MinecraftLevel"
{
   TAG_Compound "Environment"
   {
      TAG_Short "SurroundingGroundHeight"// Height of surrounding ground (in blocks)
      TAG_Byte "SurroundingGroundType"   // Block ID of surrounding ground
      TAG_Short "SurroundingWaterHeight" // Height of surrounding water (in blocks)
      TAG_Byte "SurroundingWaterType"    // Block ID of surrounding water
      TAG_Short "CloudHeight"            // Height of the cloud layer (in blocks)
      TAG_Int "CloudColor"               // Hexadecimal value for the color of the clouds
      TAG_Int "SkyColor"                 // Hexadecimal value for the color of the sky
      TAG_Int "FogColor"                 // Hexadecimal value for the color of the fog
      TAG_Byte "SkyBrightness"           // The brightness of the sky, from 0 to 100
   }

   TAG_List "Entities"
   {
      TAG_Compound
      {
        // One of these per entity on the map.
        // These can change a lot, and are undocumented.
        // Feel free to play around with them, though.
        // The most interesting one might be the one with ID "LocalPlayer", which contains the player inventory
      }
   }

   TAG_Compound "Map"
   {
      // To access a specific block from either byte array, use the following algorithm:
      // Index = x + (y * Depth + z) * Width

      TAG_Short "Width"                  // Width of the level (along X)
      TAG_Short "Height"                 // Height of the level (along Y)
      TAG_Short "Length"                 // Length of the level (along Z)
      TAG_Byte_Array "Blocks"             // An array of Length*Height*Width bytes specifying the block types
      TAG_Byte_Array "Data"              // An array of Length*Height*Width bytes with data for each blocks

      TAG_List "Spawn"                   // Default spawn position
      {
          TAG_Short x  // These values are multiplied by 32 before being saved
          TAG_Short y  // That means that the actual values are x/32.0, y/32.0, z/32.0
          TAG_Short z
      }
   }

   TAG_Compound "About"
   {
      TAG_String "Name"                  // Level name
      TAG_String "Author"                // Name of the player who made the level
      TAG_Long "CreatedOn"               // Timestamp when the level was first created
   }
}
"""

from entity import TileEntity
from level import MCLevel
from logging import getLogger
from materials import indevMaterials
from numpy import array, swapaxes
import nbt
import os

log = getLogger(__name__)

MinecraftLevel = "MinecraftLevel"

Environment = "Environment"
SurroundingGroundHeight = "SurroundingGroundHeight"
SurroundingGroundType = "SurroundingGroundType"
SurroundingWaterHeight = "SurroundingWaterHeight"
SurroundingWaterType = "SurroundingWaterType"
CloudHeight = "CloudHeight"
CloudColor = "CloudColor"
SkyColor = "SkyColor"
FogColor = "FogColor"
SkyBrightness = "SkyBrightness"

About = "About"
Name = "Name"
Author = "Author"
CreatedOn = "CreatedOn"
Spawn = "Spawn"

__all__ = ["MCIndevLevel"]

from level import EntityLevel

class MCIndevLevel(EntityLevel):
    """ IMPORTANT: self.Blocks and self.Data are indexed with [x,z,y] via axis
    swapping to be consistent with infinite levels."""

    materials = indevMaterials

    def setPlayerSpawnPosition(self, pos, player=None):
        assert len(pos) == 3
        self.Spawn = array(pos)

    def playerSpawnPosition(self, player=None):
        return self.Spawn

    def setPlayerPosition(self, pos, player="Ignored"):
        self.LocalPlayer["Pos"] = nbt.TAG_List([nbt.TAG_Float(p) for p in pos])

    def getPlayerPosition(self, player="Ignored"):
        return array(map(lambda x: x.value, self.LocalPlayer["Pos"]))

    def setPlayerOrientation(self, yp, player="Ignored"):
        self.LocalPlayer["Rotation"] = nbt.TAG_List([nbt.TAG_Float(p) for p in yp])

    def getPlayerOrientation(self, player="Ignored"):
        """ returns (yaw, pitch) """
        return array(map(lambda x: x.value, self.LocalPlayer["Rotation"]))

    def setBlockDataAt(self, x, y, z, newdata):
        if x < 0 or y < 0 or z < 0:
            return 0
        if x >= self.Width or y >= self.Height or z >= self.Length:
            return 0
        self.Data[x, z, y] = (newdata & 0xf)

    def blockDataAt(self, x, y, z):
        if x < 0 or y < 0 or z < 0:
            return 0
        if x >= self.Width or y >= self.Height or z >= self.Length:
            return 0
        return self.Data[x, z, y]

    def blockLightAt(self, x, y, z):
        if x < 0 or y < 0 or z < 0:
            return 0
        if x >= self.Width or y >= self.Height or z >= self.Length:
            return 0
        return self.BlockLight[x, z, y]

    def __repr__(self):
        return u"MCIndevLevel({0}): {1}W {2}L {3}H".format(self.filename, self.Width, self.Length, self.Height)

    @classmethod
    def _isTagLevel(cls, root_tag):
        return "MinecraftLevel" == root_tag.name

    def __init__(self, root_tag=None, filename=""):
        self.Width = 0
        self.Height = 0
        self.Length = 0
        self.Blocks = array([], "uint8")
        self.Data = array([], "uint8")
        self.Spawn = (0, 0, 0)
        self.filename = filename

        if root_tag:

            self.root_tag = root_tag
            mapTag = root_tag["Map"]
            self.Width = mapTag["Width"].value
            self.Length = mapTag["Length"].value
            self.Height = mapTag["Height"].value

            mapTag["Blocks"].value.shape = (self.Height, self.Length, self.Width)

            self.Blocks = swapaxes(mapTag["Blocks"].value, 0, 2)

            mapTag["Data"].value.shape = (self.Height, self.Length, self.Width)

            self.Data = swapaxes(mapTag["Data"].value, 0, 2)

            self.BlockLight = self.Data & 0xf

            self.Data >>= 4

            self.Spawn = [mapTag[Spawn][i].value for i in range(3)]

            if "Entities" not in root_tag:
                root_tag["Entities"] = nbt.TAG_List()
            self.Entities = root_tag["Entities"]

            # xxx fixup Motion and Pos to match infdev format
            def numbersToDoubles(ent):
                for attr in "Motion", "Pos":
                    if attr in ent:
                        ent[attr] = nbt.TAG_List([nbt.TAG_Double(t.value) for t in ent[attr]])

            for ent in self.Entities:
                numbersToDoubles(ent)

            if "TileEntities" not in root_tag:
                root_tag["TileEntities"] = nbt.TAG_List()
            self.TileEntities = root_tag["TileEntities"]
            # xxx fixup TileEntities positions to match infdev format
            for te in self.TileEntities:
                pos = te["Pos"].value

                (x, y, z) = self.decodePos(pos)

                TileEntity.setpos(te, (x, y, z))

            localPlayerList = [tag for tag in root_tag["Entities"] if tag['id'].value == 'LocalPlayer']
            if len(localPlayerList) == 0:  # omen doesn't make a player entity
                playerTag = nbt.TAG_Compound()
                playerTag['id'] = nbt.TAG_String('LocalPlayer')
                playerTag['Pos'] = nbt.TAG_List([nbt.TAG_Float(0.), nbt.TAG_Float(64.), nbt.TAG_Float(0.)])
                playerTag['Rotation'] = nbt.TAG_List([nbt.TAG_Float(0.), nbt.TAG_Float(45.)])
                self.LocalPlayer = playerTag

            else:
                self.LocalPlayer = localPlayerList[0]

        else:
            log.info(u"Creating new Indev levels is not yet implemented.!")
            raise ValueError("Can't do that yet")
            # self.SurroundingGroundHeight = root_tag[Environment][SurroundingGroundHeight].value
        #            self.SurroundingGroundType = root_tag[Environment][SurroundingGroundType].value
        #            self.SurroundingWaterHeight = root_tag[Environment][SurroundingGroundHeight].value
        #            self.SurroundingWaterType = root_tag[Environment][SurroundingWaterType].value
        #            self.CloudHeight = root_tag[Environment][CloudHeight].value
        #            self.CloudColor = root_tag[Environment][CloudColor].value
        #            self.SkyColor = root_tag[Environment][SkyColor].value
        #            self.FogColor = root_tag[Environment][FogColor].value
        #            self.SkyBrightness = root_tag[Environment][SkyBrightness].value
        #            self.TimeOfDay = root_tag[Environment]["TimeOfDay"].value
        #
        #
        #            self.Name = self.root_tag[About][Name].value
        #            self.Author = self.root_tag[About][Author].value
        #            self.CreatedOn = self.root_tag[About][CreatedOn].value

    def rotateLeft(self):
        MCLevel.rotateLeft(self)

        self.Data = swapaxes(self.Data, 1, 0)[:, ::-1, :]  # x=y; y=-x

        torchRotation = array([0, 4, 3, 1, 2, 5,
                               6, 7,

                               8, 9, 10, 11, 12, 13, 14, 15])

        torchIndexes = (self.Blocks == self.materials.Torch.ID)
        log.info(u"Rotating torches: {0}".format(len(torchIndexes.nonzero()[0])))
        self.Data[torchIndexes] = torchRotation[self.Data[torchIndexes]]

    @staticmethod
    def decodePos(v):
        b = 10
        m = (1 << b) - 1
        return v & m, (v >> b) & m, (v >> (2 * b))

    @staticmethod
    def encodePos(x, y, z):
        b = 10
        return x + (y << b) + (z << (2 * b))

    def saveToFile(self, filename=None):
        if filename is None:
            filename = self.filename
        if filename is None:
            log.warn(u"Attempted to save an unnamed file in place")
            return  # you fool!

        self.Data <<= 4
        self.Data |= (self.BlockLight & 0xf)

        self.Blocks = swapaxes(self.Blocks, 0, 2)
        self.Data = swapaxes(self.Data, 0, 2)

        mapTag = nbt.TAG_Compound()
        mapTag["Width"] = nbt.TAG_Short(self.Width)
        mapTag["Height"] = nbt.TAG_Short(self.Height)
        mapTag["Length"] = nbt.TAG_Short(self.Length)
        mapTag["Blocks"] = nbt.TAG_Byte_Array(self.Blocks)
        mapTag["Data"] = nbt.TAG_Byte_Array(self.Data)

        self.Blocks = swapaxes(self.Blocks, 0, 2)
        self.Data = swapaxes(self.Data, 0, 2)

        mapTag[Spawn] = nbt.TAG_List([nbt.TAG_Short(i) for i in self.Spawn])

        self.root_tag["Map"] = mapTag

        self.Entities.append(self.LocalPlayer)
        # fix up Entities imported from Alpha worlds

        def numbersToFloats(ent):
            for attr in "Motion", "Pos":
                if attr in ent:
                    ent[attr] = nbt.TAG_List([nbt.TAG_Double(t.value) for t in ent[attr]])

        for ent in self.Entities:
            numbersToFloats(ent)

        # fix up TileEntities imported from Alpha worlds.
        for ent in self.TileEntities:
            if "Pos" not in ent and all(c in ent for c in 'xyz'):
                ent["Pos"] = nbt.TAG_Int(self.encodePos(ent['x'].value, ent['y'].value, ent['z'].value))
        # output_file = gzip.open(self.filename, "wb", compresslevel=1)
        try:
            os.rename(filename, filename + ".old")
        except Exception:
            pass

        try:
            self.root_tag.save(filename)
        except:
            os.rename(filename + ".old", filename)

        try:
            os.remove(filename + ".old")
        except Exception:
            pass

        self.Entities.remove(self.LocalPlayer)

        self.BlockLight = self.Data & 0xf

        self.Data >>= 4


text:
require 'pathname'

class Store
  @@Albums = "albums"
  @@Root = "../"

  def @initialize()
  end

  def self.albums()
    Pathname(@@Root).join @@Albums
  end
end


text:
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Net;
using System.Net.Http;
using System.Web.Http;

namespace iot_backend.Controllers
{
    [RoutePrefix("filllevel")]
    public class FillLevelController : ApiController
    {
        private Service service = Service.GetInstance();

        public FillLevelController()
        {

        }
        [Route("{id}")]
        /// <summary>
        /// Returns the fill level of the specified ID
        /// </summary>
        /// <remarks>Get the fill level of a specific ID.</remarks>
        /// <param name="id">Specify the ID of the container in order to retrieve the fill level</param>
        /// <returns>Fill Level</returns>
        public ContainerLevel Get(string id)
        {

            if (id.Length > 0)
            {
                return new ContainerLevel(id, service.GetFillLevel(id));
            }
            else
            {
                HttpResponseMessage msg = new HttpResponseMessage();
                msg.StatusCode = HttpStatusCode.BadRequest;
                msg.Content = new StringContent("You have entered an invalid ID");
                throw new HttpResponseException(msg);
            }

        }
        [Route("")]
        /// <summary>
        /// Returns a list of all the containers and its fill levels
        /// </summary>
        /// <returns>List of ContainerLevel, contains ID's and corresponding fill levels</returns>
        public List<ContainerLevel> Get()
        {
            return service.GetFillLevels();
        }
        [Route("")]
        /// <summary>
        /// Adds or changes a ContainerLevel object which consists of an ID and a fill level which can be retrieved from the json found as a parameter
        /// </summary>
        /// <param name="jsonBody">body containing json, retrieved from a incomming post request.</param>
        public IHttpActionResult Post([FromBody]JSONBody jsonBody)
        {
            try
            {
                if (jsonBody != null)
                {
                     if (ModelState.IsValid)
                    {
                        ContainerLevel cl = new ContainerLevel(jsonBody.dev_id, jsonBody.payload_fields.fill_level);
                        service.SetFillLevel(cl);
                        return Ok();
                    }
                    else
                    {
                        return BadRequest(ModelState);
                    }
                }
                return BadRequest(ModelState);
            }
            catch (ArgumentException e)
            {
                return ResponseMessage(Request.CreateErrorResponse(HttpStatusCode.BadRequest, "Unfortunate son..."));
            }
        }
    }
}