text:
/*jslint node: true */
/*global angular */
'use strict';

angular.module('canvassTrac')

  .controller('CanvassSurveyController', CanvassSurveyController);

/* Manually Identify Dependencies
  https://github.com/johnpapa/angular-styleguide/blob/master/a1/README.md#style-y091
*/

CanvassSurveyController.$inject = ['$scope', '$rootScope', '$state', '$filter', 'canvassFactory', 'electionFactory', 'surveyFactory', 'questionFactory', 'addressFactory', 'miscUtilFactory', 'NgDialogFactory', 'stateFactory', 'QUESACTION', 'RES', 'DECOR'];

function CanvassSurveyController($scope, $rootScope, $state, $filter, canvassFactory, electionFactory, surveyFactory, questionFactory, addressFactory, miscUtilFactory, NgDialogFactory, stateFactory, QUESACTION, RES, DECOR) {

  // Bindable Members Up Top, https://github.com/johnpapa/angular-styleguide/blob/master/a1/README.md#style-y033
  $scope.toggleQuestionSel = toggleQuestionSel;
  $scope.questionDelete = questionDelete;
  $scope.questionSelClear = questionSelClear;
  $scope.questionSelAll = questionSelAll;
  $scope.openQuestion = openQuestion;
  $scope.getQuestionTypeName = questionFactory.getQuestionTypeName;
  $scope.showQuestionOptions = questionFactory.showQuestionOptions;
  $scope.onSurveyChange = onSurveyChange;
  $scope.quesButtons = [
    { txt: 'New', icon: DECOR.NEW.icon, tip: 'Create new',
      class: DECOR.DASH.class, act: QUESACTION.NEW },
    { txt: 'View', icon: DECOR.VIEW.icon, tip: 'View selected',
      class: DECOR.VIEW.class, act: QUESACTION.VIEW },
    { txt: 'Edit', icon: DECOR.EDIT.icon, tip: 'Edit selected',
      class: DECOR.EDIT.class, act: QUESACTION.EDIT },
    { txt: 'Delete', icon: DECOR.DEL.icon, tip: 'Delete selected',
      class: DECOR.DEL.class },
    { txt: 'Unselect', state: 'unsel', icon: DECOR.UNSEL.icon, tip: 'Unselect all',
      class: DECOR.UNSEL.class },
    { txt: 'Select', state: 'sel', icon: DECOR.SEL.icon, tip: 'Select all',
      class: DECOR.SEL.class }
  ];

  $scope.showQuesButton = showQuesButton;
  $scope.exeQuesButton = exeQuesButton;
  $scope.disableQuesButton = disableQuesButton;

  $scope.questions = questionFactory.getList(RES.SURVEY_QUESTIONS);

  /* function implementation
  -------------------------- */

  function toggleQuestionSel (entry) {
    $scope.selQuestionCnt = miscUtilFactory.toggleSelection(entry, $scope.selQuestionCnt);
  }

  function countQuestionSel () {
    $scope.selQuestionCnt = miscUtilFactory.countSelected($scope.questions);
  }

  function haveSurveyQuestions () {
    return ($scope.survey && $scope.questions.count);
  }

  function questionSelUnSel (action) {
    if (haveSurveyQuestions()) {
      $scope.selQuestionCnt = miscUtilFactory.setSelected($scope.questions, action);
    } else {
      $scope.selQuestionCnt = 0;
    }
  }

  function questionSelClear () {
    questionSelUnSel(miscUtilFactory.CLR_SEL);
  }

  function questionSelAll () {
    questionSelUnSel(miscUtilFactory.SET_SEL);
  }

  function questionDelete () {
    if (haveSurveyQuestions()) {
      var selectedList = miscUtilFactory.getSelectedList($scope.questions);
      confirmDeleteQuestion(selectedList);
    }
  }

  function confirmDeleteQuestion (deleteList) {

    NgDialogFactory.openAndHandle({
        template: 'canvasses/confirmdelete_question.html', scope: $scope,
        className: 'ngdialog-theme-default', controller: 'CanvassSurveyController',
        data: { list: deleteList}
      },
      // process function
      function (value) {
        // perform delete
        var delParams = {},
          idx,
          updatedSurvey = angular.copy($scope.survey);
        angular.forEach(value, function (entry) {
          delParams[entry._id] = true;

          idx = updatedSurvey.questions.findIndex(function (ques) {
            return (ques === entry._id);
          });
          if (idx >= 0) {
            updatedSurvey.questions.splice(idx, 1);
          }
        });

        questionFactory.delete('question', delParams,
          // success function
          function (/*response*/) {
            // update survey's list of questions
            surveyFactory.update('survey', {id: updatedSurvey._id}, updatedSurvey,
              // success function
              function (response) {
                surveyFactory.readResponse(response, $scope.getSurveyRspOptions());

                countQuestionSel();
              },
              // error function
              function (response) {
                // response is message
                NgDialogFactory.error(response, 'Unable to retrieve Survey');
              }
            );
          },
          // error function
          function (response) {
            NgDialogFactory.error(response, 'Delete Unsuccessful');
          }
        );
      });
  }

  function openQuestion (action) {
    var qdata;

    if (action === QUESACTION.NEW) {
      qdata = {};
    } else if ((action === QUESACTION.VIEW) || (action === QUESACTION.EDIT)) {

      qdata = miscUtilFactory.findSelected($scope.questions);
      if (qdata) {
        qdata = angular.copy(qdata);
        // change qdata.type to a question type object as expected by dialog
        qdata.type = questionFactory.getQuestionTypeObj(qdata.type);
        // set numoptions as that's not part of the model but needed by dialog
        qdata.numoptions = 0;
        if (qdata.type.showOptions && qdata.options) {
          qdata.numoptions = qdata.options.length;
        }
      }
    }

    var dialog = NgDialogFactory.open({
      template: 'surveys/question.html', scope: $scope,
      className: 'ngdialog-theme-default', controller: 'QuestionController',
      data: { action: action, question: qdata },
      resolve: {
        questionTypes: function depFactory() {
          return questionFactory.getQuestionTypes();
        }
      }
    });

    dialog.closePromise.then(function (data) {
      if (!NgDialogFactory.isNgDialogCancel(data.value)) {

        // dialog returns question type object, only need the type value for the server
        data.value.question.type = data.value.question.type.type;

        if (data.value.action === QUESACTION.NEW) {
          questionFactory.save('question', data.value.question,
            // success function
            function (response) {
              if (!$scope.survey.questions) {
                $scope.survey.questions = [];
              }
              $scope.survey.questions.push(response._id);

              var surveyProc;
              if (!$scope.survey._id) {
                surveyProc = RES.PROCESS_UPDATE_NEW;
              } else {
                surveyProc = RES.PROCESS_UPDATE;
              }
              $scope.processSurvey(surveyProc, countQuestionSel);
            },
            // error function
            function (response) {
              NgDialogFactory.error(response, 'Creation Unsuccessful');
            }
          );
        } else if (data.value.action === QUESACTION.EDIT) {
          questionFactory.update('question', {id: data.value.question._id}, data.value.question,
            // success function
            function (response) {

              var idx = $scope.questions.findIndexInList(function (entry) {
                return (entry._id === response._id);
              });
              if (idx >= 0) {
                toggleQuestionSel(
                  $scope.questions.updateInList(idx,
                              questionFactory.readRspObject(response)));
              }

              if (!$scope.survey.questions) {
                $scope.survey.questions = [];
                $scope.survey.questions.push(response._id);
              }

              $scope.processSurvey(RES.PROCESS_UPDATE);
            },
            // error function
            function (response) {
              NgDialogFactory.error(response, 'Creation Unsuccessful');
            }
          );
        }
      }
    });

  }

  function showQuesButton (btn, form) {
    var show = false;
    switch (btn.txt) {
      case 'New':
        show = (!$scope.editDisabled && !form.$invalid);
        break;
      case 'View':
        show = ($scope.questions.count > 0);
        break;
      case 'Edit':
      case 'Delete':
      case 'Unselect':
      case 'Select':
        show = (!$scope.editDisabled && ($scope.questions.count > 0));
        break;
    }
    return show;
  }

  function exeQuesButton (btn) {
    switch (btn.txt) {
      case 'New':
      case 'View':
      case 'Edit':
        openQuestion(btn.act);
        break;
      case 'Delete':
        questionDelete();
        break;
      case 'Unselect':
        questionSelClear();
        break;
      case 'Select':
        questionSelAll();
        break;
    }
  }

  function disableQuesButton (btn, form) {
    var disable = false;
    switch (btn.txt) {
      case 'New':
        disable = !$scope.editDisabled && form.$invalid;
        break;
      case 'View':
      case 'Edit':
        disable = ($scope.selQuestionCnt !== 1);
        break;
      case 'Delete':
        disable = ($scope.selQuestionCnt < 1);
        break;
      case 'Unselect':
        disable = ($scope.selQuestionCnt === 0);
        break;
      case 'Select':
        disable = ($scope.selQuestionCnt === $scope.questions.count);
        break;
    }
    return disable;
  }

  function onSurveyChange () {
    /* save the updated survey to the store, as processSurvey in the parent
      controller doesn't see the changes to name & description.
      Something to do with scopes? */
//    surveyFactory.setObj(RES.ACTIVE_SURVEY, $scope.survey);
  }

}


text:
<?php
use yii\helpers\Html;
use common\modules\attachments\components\AttachmentsTable;
use kartik\detail\DetailView;
use dosamigos\gallery\Gallery;
use common\modules\attachments\models\File;

    /* @var $model common\models\property\House */
?>

<?= Html::encode($model->displayName) ?>

    <?= Html::a(Yii::t('app', 'Удалить'), ['delete', 'id' => $model->id], [
        'class' => 'btn btn-danger',
        'data' => [
            'confirm' => Yii::t('app', 'Вы уверены что Вы хотите удалить этот объект?'),
            'method' => 'post',
        ],
    ]) ?>

    <?= Html::a(Yii::t('app', 'Редактировать'), ['update', 'id' => $model->id], ['class' => 'btn btn-primary']) ?>

<?php
    $attributes = [];

    array_push($attributes, [
        'group' => true,
        'label' => 'Общие данные',
        'rowOptions' => ['class' => 'info'],
        'groupOptions' => ['class'=>'text-center']
    ]);
    array_push($attributes, 'fullAddress');
    array_push($attributes, [
        'attribute' => 'published',
        'value' => $model->publicationString
    ]);

    array_push($attributes, [
        'attribute' => 'operation_id',
        'value' => $model->operationString
    ]);

    array_push($attributes, [
        'attribute' => 'land_id',
        'value' => $model->landString,
    ]);

    array_push($attributes, 'name');
    array_push($attributes, [
        'attribute' => 'house_type_id',
        'value' => $model->houseTypeString
    ]);
    array_push($attributes, [
        'attribute' => 'house_class_id',
        'value' => $model->houseClassString
    ]);
    array_push($attributes, [
        'attribute' => 'management_id',
        'value' => $model->managementString
    ]);
    array_push($attributes, [
        'attribute' => 'house_line_id',
        'value' => $model->houseLineString
    ]);
    array_push($attributes, [
        'attribute' => 'city_distance',
        'label' => Yii::t('app', 'Расстояние до города'),
        'value' => $model->cityDistanceString
    ]);

    array_push($attributes, [
        'attribute' => 'is_elite',
        'value' => $model->isEliteString
    ]);

    if($model::TYPE === 'apartment_house') {
        array_push($attributes, [
            'attribute' => 'banks',
            'value' => $model->banksString
        ]);
    }

    array_push($attributes, [
        'group' => true,
        'label' => 'Конструктивные элементы',
        'rowOptions' => ['class' => 'info'],
        'groupOptions' => ['class'=>'text-center']
    ]);
    array_push($attributes, [
        'attribute' => 'construction_type_id',
        'value' => $model->constructionTypeString
    ]);
    array_push($attributes, [
        'attribute' => 'architecture_style_id',
        'value' => $model->architectureStyleString
    ]);

    array_push($attributes, [
        'attribute' => 'construction_year',
        'value' => $model->construction_year
    ]);

    array_push($attributes, [
        'attribute' => 'is_reconstructed',
        'value' => $model->reconstructionString
    ]);

    if ($model->is_reconstructed) array_push($attributes, 'reconstruction_year');

    array_push($attributes, 'section_count');
    array_push($attributes, 'floors_above_ground');
    array_push($attributes, 'floors_below_ground');

    array_push($attributes, [
        'attribute' => 'space_gross',
        'label' => Yii::t('app', 'Общая площадь'),
        'value' => $model->spaceGrossString
    ]);

    array_push($attributes, [
        'attribute' => 'space_useful',
        'label' => $model::TYPE != 'non_residential' ? Yii::t('app', 'Жилая площадь') : Yii::t('app', 'Арендопригодная площадь'),
        'value' => $model->spaceUsefulString
    ]);

    if ($model::TYPE == 'residential') {
        array_push($attributes, [
            'attribute' => 'space_kitchen',
            'value' => $model->spaceKitchenString
        ]);

    }

    if ($model::TYPE == 'apartment_house') {
        array_push($attributes, 'apartment_type');
        array_push($attributes, 'apartment_count');
    }
    array_push($attributes, [
        'attribute' => 'wall_material_id',
        'value' => $model->wallMaterialString
    ]);
    array_push($attributes, [
        'attribute' => 'floor_material_id',
        'value' => $model->floorMaterialString
    ]);
    array_push($attributes, [
        'attribute' => 'facades',
        'value' => $model->facadesString
    ]);
    array_push($attributes, [
        'attribute' => 'roofing_material_id',
        'value' => $model->roofingMaterialString
    ]);
    array_push($attributes, [
        'attribute' => 'layout_id',
        'value' => $model->layoutString
    ]);
    array_push($attributes, [
        'attribute' => 'ceiling_height',
        'value' => $model->ceilingHeightString
    ]);
    array_push($attributes, 'passenger_lift_count');
    array_push($attributes, 'service_lift_count');
    array_push($attributes, 'mixed_lift_count');

    array_push($attributes, [
        'group' => true,
        'label' => 'Инфраструктура',
        'rowOptions' => ['class' => 'info'],
        'groupOptions' => ['class'=>'text-center']
    ]);
    array_push($attributes, [
        'attribute' => 'parking',
        'value' => $model->parkingString,
        'format' => 'html'
    ]);
    array_push($attributes, [
        'attribute' => 'security',
        'value' => $model->securityString
    ]);
    array_push($attributes, 'extra');

    array_push($attributes, [
        'group' => true,
        'label' => 'Коммуникации',
        'rowOptions' => ['class' => 'info'],
        'groupOptions' => ['class'=>'text-center']
    ]);
    array_push($attributes, [
        'attribute' => 'coldWater',
        'value' => $model->coldWaterString
    ]);
    array_push($attributes, [
        'attribute' => 'hotWater',
        'value' => $model->hotWaterString
    ]);
    array_push($attributes, [
        'attribute' => 'sewer',
        'value' => $model->sewerString
    ]);
    array_push($attributes, [
        'attribute' => 'heating',
        'value' => $model->heatingString
    ]);
    array_push($attributes, [
        'attribute' => 'electricSupply',
        'value' => $model->electricSupplyString
    ]);
    array_push($attributes, [
        'attribute' => 'electric_power_add',
        'label' => Yii::t('app', 'Присоединенная мощность'),
        'value' => $model->electricPowerAddString
    ]);
    array_push($attributes, [
        'attribute' => 'gasSupply',
        'value' => $model->gasSupplyString
    ]);
    array_push($attributes, [
        'attribute' => 'conditioning',
        'value' => $model->conditioningString
    ]);

    array_push($attributes, [
        'group' => true,
        'label' => 'Коммерческие условия',
        'rowOptions' => ['class' => 'info'],
        'groupOptions' => ['class'=>'text-center']
    ]);
    array_push($attributes, [
        'attribute' => 'price_per_square',
        'label' => 'Цена за 1 кв.м.',
        'value' => $model->pricePerSquareString
    ]);
    array_push($attributes, [
        'attribute' => 'price_total',
        'label' => 'Цена всего',
        'value' => $model->priceTotalString
    ]);
    array_push($attributes, [
        'attribute' => 'commission_percentage',
        'label' => 'Комиссия Бюро',
        'value' => $model->commissionPercentageString
    ]);
    array_push($attributes, [
        'attribute' => 'commission',
        'label' => '',
        'value' => $model->commissionString
    ]);
    array_push($attributes, 'advance');

    array_push($attributes, [
        'group' => true,
        'label' => 'Юридическая и техническая информация объекта',
        'rowOptions' => ['class' => 'info'],
        'groupOptions' => ['class'=>'text-center']
    ]);
    array_push($attributes, 'bti_num');
    array_push($attributes, 'cadaster_num');

    if ($model::TYPE == 'apartment_house') {
        array_push($attributes, [
            'group' => true,
            'label' => 'Список квартир в этом здании',
            'rowOptions' => ['class' => 'info'],
            'groupOptions' => ['class' => 'text-center']
        ]);

        $count = 1;
        foreach ($model->apartments as $apartment) {
            array_push($attributes, [
                'label' => $count++,
                'value' => Html::a($apartment->name, ['property/apartment/view', 'id' => $apartment->id]),
                'format' => 'html'
            ]);
        }

        if ($count == 1) {
            array_push($attributes, [
                'label' => '',
                'value' => 'в данном здании не создано ни одной квартиры'
            ]);
        }
    }

    if ($model::TYPE == 'non_residential' || $model::TYPE == 'apartment_house') {
        array_push($attributes, [
            'group' => true,
            'label' => 'Список помещений в этом здании',
            'rowOptions' => ['class' => 'info'],
            'groupOptions' => ['class' => 'text-center']
        ]);

        $count = 1;
        foreach ($model->offices as $office) {
            array_push($attributes, [
                'label' => $count++,
                'value' => Html::a($office->name, ['property/office/view', 'id' => $office->id]),
                'format' => 'html'
            ]);
        }

        if ($count == 1) {
            array_push($attributes, [
                'label' => '',
                'value' => 'в данном здании не создано ни одного помещения'
            ]);
        }
    }

    print DetailView::widget([
        'model' => $model,
        'hover' => true,
        'labelColOptions' => ['style' => 'width: 25%'],
        'mode' => DetailView::MODE_VIEW,
        'enableEditMode' => false,
        'panel'=>[
            'heading' => 'Информация об объекте',
            'type' => DetailView::TYPE_PRIMARY,
        ],
        'attributes' => $attributes,
]); ?>

                        <?php
                        $i = 0;
                        $items=[];

                        if($model::TYPE === 'apartment_house') {
                            $images = File::find()->where(['itemId' => $model->id, 'model' => 'ApartmentHouse'])->limit(30)->all();
                        } elseif($model::TYPE === 'residential') {
                            $images = File::find()->where(['itemId' => $model->id, 'model' => 'ResidentialHouse'])->limit(30)->all();
                        } elseif($model::TYPE === 'non_residential') {
                            $images = File::find()->where(['itemId' => $model->id, 'model' => 'NonResidentialHouse'])->limit(30)->all();
                        }

                        foreach($images as $item){

                            if($i<2){
                                $items[$i] = [
                                    'url' =>  $item->getUrl(),
                                    'src' =>  $item->getSmallThumbUrl()
                                ];
                            } else {
                                $items[$i] = [
                                    'url' =>  $item->getUrl(),
                                    'src' =>  $item->getSmallThumbUrl()
                                ];
                            }

                            $i++;

                        }
                        ?>

                        <?= Gallery::widget(['items' => $items]);?>

redpajama_set_name: RedPajamaGithub


text:
import imp
import os

from spec import Spec, eq_, raises

from invoke.loader import Loader, FilesystemLoader as FSLoader
from invoke.collection import Collection
from invoke.exceptions import CollectionNotFound

from _util import support

class _BasicLoader(Loader):
    """
    Tests top level Loader behavior with basic finder stub.

    Used when we want to make sure we're testing Loader.load and not e.g.
    FilesystemLoader's specific implementation.
    """
    def find(self, name):
        self.fd, self.path, self.desc = t = imp.find_module(name, [support])
        return t

class Loader_(Spec):
    def adds_module_parent_dir_to_sys_path(self):
        # Crummy doesn't-explode test.
        _BasicLoader().load('namespacing')

    def closes_opened_file_object(self):
        loader = _BasicLoader()
        loader.load('foo')
        assert loader.fd.closed

    def can_load_package(self):
        loader = _BasicLoader()
        # make sure it doesn't explode
        loader.load('package')

class FilesystemLoader_(Spec):
    def setup(self):
        self.l = FSLoader(start=support)

    def exposes_discovery_start_point(self):
        start = '/tmp/'
        eq_(FSLoader(start=start).start, start)

    def has_a_default_discovery_start_point(self):
        eq_(FSLoader().start, os.getcwd())

    def returns_collection_object_if_name_found(self):
        result = self.l.load('foo')
        eq_(type(result), Collection)

    @raises(CollectionNotFound)
    def raises_CollectionNotFound_if_not_found(self):
        self.l.load('nope')

    @raises(ImportError)
    def raises_ImportError_if_found_collection_cannot_be_imported(self):
        # Instead of masking with a CollectionNotFound
        self.l.load('oops')

    def searches_towards_root_of_filesystem(self):
        # Loaded while root is in same dir as .py
        directly = self.l.load('foo')
        # Loaded while root is multiple dirs deeper than the .py
        deep = os.path.join(support, 'ignoreme', 'ignoremetoo')
        indirectly = FSLoader(start=deep).load('foo')
        eq_(directly, indirectly)

    def defaults_to_tasks_collection(self):
        "defaults to 'tasks' collection"
        result = FSLoader(start=support + '/implicit/').load()
        eq_(type(result), Collection)


text:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/2002/08/xhtml/xhtml1-strict.dtd">

		<form style="clear: both" wicket:id="form" class="msgWindow">
	  		LABEL

		  		  LABEL

	  				Patients
	  				0
	  				0

	  				Patients
	  				0
	  				0

		  				totInstances
		  				0

	  				Patients
	  				0
	  				0

	  				Patients
	  				0
	  				0

Destination AET:

	          	<select wicket:id="destinationAETs">
	        	<option>DCM4CHEE</option>
	        	<option>DCMRCV</option>
	        </select>

Export Results

				<textarea name="exportResult" wicket:id="exportResult"
					rows="10" cols="60" readonly>[ExportResult]</textarea>

	  		<button type="submit" wicket:id="export">

	  		</button>
	  		<button type="submit" wicket:id="close">

	  		</button>
	  		<input type="checkbox" wicket:id="closeOnFinished" />
	  		Close after export is finished

	  		   <button wicket:id="downloadLink">

	  		   </button>
	  		   downloadERROR

	  	</form>


text:
/**
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.github.castagna.kafka.connect.exchange;

import java.util.Properties;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

class VersionUtil {

	private static final Logger log = LoggerFactory.getLogger(VersionUtil.class);

	private static String version = "Unknown";

	static {
		try {
			Properties props = new Properties();
			props.load(VersionUtil.class.getResourceAsStream("/kafka-connect-exchange-version.properties"));
			version = props.getProperty("version", version).trim();
		} catch (Exception e) {
			log.warn("Error while loading version:", e);
		}
	}

	public static String getVersion() {
		return version;
	}

}


text:
<!DOCTYPE html>

    <meta content="en-us" http-equiv="Content-Language" />
    <meta content="text/html; charset=utf-16" http-equiv="Content-Type" />
    <title _locid="PortabilityAnalysis0">.NET Portability Report</title>

.NET Portability Report

                    Submission Id
                    1b3116e8-5993-46c7-8441-8b5053954658

            Portability Summary

                        Assembly
                            ASP.NET 5,Version=v1.0
                            Windows,Version=v8.1
                            .NET Framework,Version=v4.6
                            Windows Phone,Version=v8.1

                            Labo.Common.NET4
                                87.27 %
                                73.21 %
                                100.00 %
                                73.21 %

Labo.Common.NET4

                                Target type
                                ASP.NET 5,Version=v1.0
                                Windows,Version=v8.1
                                .NET Framework,Version=v4.6
                                Windows Phone,Version=v8.1
                                Recommended changes

                                    Microsoft.VisualBasic.FileIO.FileSystem

                                        RenameDirectory(System.String,System.String)

                                        RenameFile(System.String,System.String)

                                    System.Boolean

                                Call ToString() without arguments.  (Does not do anything)

                                        ToString(System.IFormatProvider)

                                    Call ToString() without arguments.  (Does not do anything)

                                    System.Char

                                        ToUpper(System.Char,System.Globalization.CultureInfo)

                                    System.Collections.Generic.SortedList`2

                                Currently there is no workaround, but we are working on it. Please check back.

                                        #ctor

                                    Currently there is no workaround, but we are working on it. Please check back.

                                        Add(`0,`1)

                                    Currently there is no workaround, but we are working on it. Please check back.

                                        GetEnumerator

                                    Currently there is no workaround, but we are working on it. Please check back.

                                    System.Collections.Specialized.NameValueCollection

                                        #ctor(System.Int32)

                                        Add(System.Collections.Specialized.NameValueCollection)

                                        Add(System.String,System.String)

                                    System.ComponentModel.ITypeDescriptorContext

                                Currently there is no workaround, but we are working on it. Please check back.

                                    System.ComponentModel.MarshalByValueComponent

                                        Dispose

                                    System.ComponentModel.TypeConverter

                                        #ctor

                                        CanConvertFrom(System.ComponentModel.ITypeDescriptorContext,System.Type)

                                        CanConvertFrom(System.Type)

                                        CanConvertTo(System.Type)

                                        ConvertFrom(System.ComponentModel.ITypeDescriptorContext,System.Globalization.CultureInfo,System.Object)

                                        ConvertTo(System.Object,System.Type)

                                    System.ComponentModel.TypeConverterAttribute

                                        #ctor(System.Type)

                                    System.ComponentModel.TypeDescriptionProvider

                                    System.ComponentModel.TypeDescriptor

                                        AddAttributes(System.Type,System.Attribute[])

                                        GetConverter(System.Type)

                                    Currently there is no workaround, but we are working on it. Please check back.

                                    System.Data.DataColumn

                                        #ctor(System.String,System.Type)

                                    System.Data.DataColumnCollection

                                        AddRange(System.Data.DataColumn[])

                                    System.Data.DataRow

                                        set_Item(System.String,System.Object)

                                    System.Data.DataRowCollection

                                        Add(System.Data.DataRow)

                                    System.Data.DataTable

                                        #ctor

                                        get_Columns

                                        get_Rows

                                        NewRow

                                        set_Locale(System.Globalization.CultureInfo)

                                    System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverageAttribute

                                        #ctor

                                    System.Diagnostics.StackFrame

                                        #ctor(System.Int32,System.Boolean)

                                        GetMethod

                                    System.Drawing.Image

                                        Dispose

                                        FromFile(System.String)

                                    System.Drawing.Imaging.ImageFormat

                                        get_Bmp

                                        get_Gif

                                        get_Jpeg

                                        get_Png

                                    System.Exception

                                Remove.  Getting rid of other usage of SerializationInfo will remove the need for this method.

                                        #ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)

                                    Remove.  Ctor overload taking SerializationInfo is not applicable in new surface area

                                        GetObjectData(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)

                                    Remove.  Getting rid of other usage of SerializationInfo will remove the need for this method.

                                    System.Globalization.CompareInfo

                                        IndexOf(System.String,System.String,System.Int32)

                                    System.Globalization.CultureInfo

                                new CultureInfo(String)

                                        GetCultureInfo(System.String)

                                    new CultureInfo(String)

                                    System.Globalization.TextInfo

                                        get_ANSICodePage

                                    System.IConvertible

                                        ToBoolean(System.IFormatProvider)

                                        ToByte(System.IFormatProvider)

                                        ToChar(System.IFormatProvider)

                                        ToDateTime(System.IFormatProvider)

                                        ToDecimal(System.IFormatProvider)

                                        ToDouble(System.IFormatProvider)

                                        ToInt16(System.IFormatProvider)

                                        ToInt32(System.IFormatProvider)

                                        ToInt64(System.IFormatProvider)

                                        ToSByte(System.IFormatProvider)

                                        ToSingle(System.IFormatProvider)

                                        ToUInt16(System.IFormatProvider)

                                        ToUInt32(System.IFormatProvider)

                                        ToUInt64(System.IFormatProvider)

                                    System.IO.Directory

                                        CreateDirectory(System.String)

                                        Delete(System.String,System.Boolean)

                                        Exists(System.String)

                                    System.IO.DirectoryInfo

                                        #ctor(System.String)

                                        EnumerateDirectories

                                        EnumerateFiles

                                        EnumerateFiles(System.String)

                                    System.IO.File

                                        Copy(System.String,System.String)

                                        Create(System.String)

                                        Delete(System.String)

                                        Exists(System.String)

                                        GetLastWriteTime(System.String)

                                        SetAttributes(System.String,System.IO.FileAttributes)

                                    System.IO.FileAttributes

                                    System.IO.FileInfo

                                        #ctor(System.String)

                                    System.IO.FileStream

                                    System.IO.FileSystemInfo

                                        get_Attributes

                                        get_FullName

                                        get_Name

                                    System.Net.WebClient

                                        #ctor

                                    Use HttpClient instead

                                        DownloadData(System.Uri)

                                    Use HttpClient instead

                                        set_Encoding(System.Text.Encoding)

                                        UploadString(System.Uri,System.String,System.String)

                                        UploadValues(System.Uri,System.String,System.Collections.Specialized.NameValueCollection)

                                    System.Net.WebRequest

                                Use System.Net.Http.HttpClient.SendAsync (returns an HttpResponseMessage)

                                        GetResponse

                                    Use System.Net.Http.HttpClient.SendAsync (returns an HttpResponseMessage)

                                    System.Reflection.Assembly

                                typeof(CurrentType).GetTypeInfo().Assembly

                                        GetExecutingAssembly

                                    typeof(CurrentType).GetTypeInfo().Assembly

                                    System.Reflection.AssemblyName

                                        get_CodeBase

                                    System.Reflection.Binder

                                Use an overload that does not take a Binder.

                                    System.Reflection.BindingFlags

                                    System.Reflection.Emit.DynamicMethod

                                        #ctor(System.String,System.Reflection.MethodAttributes,System.Reflection.CallingConventions,System.Type,System.Type[],System.Reflection.Module,System.Boolean)

                                        #ctor(System.String,System.Reflection.MethodAttributes,System.Reflection.CallingConventions,System.Type,System.Type[],System.Type,System.Boolean)

                                        CreateDelegate(System.Type)

                                        GetILGenerator

                                    System.Reflection.Emit.ILGenerator

                                        DeclareLocal(System.Type)

                                        Emit(System.Reflection.Emit.OpCode)

                                        Emit(System.Reflection.Emit.OpCode,System.Byte)

                                        Emit(System.Reflection.Emit.OpCode,System.Int16)

                                        Emit(System.Reflection.Emit.OpCode,System.Int32)

                                        Emit(System.Reflection.Emit.OpCode,System.Reflection.ConstructorInfo)

                                        Emit(System.Reflection.Emit.OpCode,System.Reflection.FieldInfo)

                                        Emit(System.Reflection.Emit.OpCode,System.Reflection.MethodInfo)

                                        Emit(System.Reflection.Emit.OpCode,System.Type)

                                    System.Reflection.Emit.LocalBuilder

                                    System.Reflection.MemberTypes

                                Use is operator.  Example:  if (membertype == membertypes.Field) --> if (member is FieldInfo)

                                    System.Reflection.ParameterInfo

                                        GetCustomAttributes(System.Type,System.Boolean)

                                    System.Reflection.ParameterModifier

                                Use an overload that does not take a ParameterModifier array.

                                    System.Reflection.PropertyInfo

                                Use PropertyInfo.SetMethod property

                                        GetGetMethod(System.Boolean)

                                    Use PropertyInfo.GetMethod property

                                        GetSetMethod(System.Boolean)

                                    Use PropertyInfo.SetMethod property

                                    System.Runtime.Serialization.Formatters.Binary.BinaryFormatter

                                        #ctor

                                        Deserialize(System.IO.Stream)

                                        Serialize(System.IO.Stream,System.Object)

                                    System.Runtime.Serialization.SerializationInfo

                                Remove serialization constructors on custom Exception types

                                    System.Security.Cryptography.HashAlgorithm

                                        ComputeHash(System.Byte[])

                                    System.Security.Cryptography.MD5

                                        Create

                                    System.Security.Cryptography.MD5CryptoServiceProvider

                                        #ctor

                                    System.Security.Cryptography.RandomNumberGenerator

                                        GetNonZeroBytes(System.Byte[])

                                    System.Security.Cryptography.RNGCryptoServiceProvider

                                        #ctor

                                    System.Security.Permissions.EnvironmentPermissionAttribute

                                        #ctor(System.Security.Permissions.SecurityAction)

                                    System.Security.Permissions.FileIOPermissionAttribute

                                        #ctor(System.Security.Permissions.SecurityAction)

                                    System.Security.Permissions.SecurityAction

                                Remove usage

                                    System.Security.Permissions.SecurityPermissionAttribute

                                Remove usage

                                        #ctor(System.Security.Permissions.SecurityAction)

                                    Remove usage

                                    System.Security.SecurityRulesAttribute

                                There is only one security transparency model on non-desktop SKUs, so there's nothing to do with this attribute.  It should just be removed from non-desktop-fwk assemblies.

                                        #ctor(System.Security.SecurityRuleSet)

                                    There is only one security transparency model on non-desktop SKUs, so there's nothing to do with this attribute.  It should just be removed from non-desktop-fwk assemblies.

                                    System.Security.SecurityRuleSet

                                Remove usage

                                    System.Security.UnverifiableCodeAttribute

                                Remove usage

                                        #ctor

                                    Remove usage

                                    System.SerializableAttribute

                                Remove this attribute

                                        #ctor

                                    Remove this attribute

                                    System.String

                                Use CultureInfo.TextInfo.ToUpper(String) instead

                                        ToUpper(System.Globalization.CultureInfo)

                                    Use CultureInfo.TextInfo.ToUpper(String) instead

                                    System.StringComparer

                                CompareInfo.GetStringComparer

                                        Create(System.Globalization.CultureInfo,System.Boolean)

                                    CompareInfo.GetStringComparer

                                    System.Text.Encoding

                                Call Encoding.GetString(byte[], int, int)

                                        GetEncoding(System.Int32)

                                        GetString(System.Byte[])

                                    Call Encoding.GetString(byte[], int, int)

                                    System.Threading.Thread

                                Use System.Globalization.CultureInfo.CurrentUICulture

                                        get_CurrentCulture

                                    Use System.Globalization.CultureInfo.CurrentCulture

                                        get_CurrentThread

                                        get_CurrentUICulture

                                    Use System.Globalization.CultureInfo.CurrentUICulture

                                    System.Type

                                        EmptyTypes

                                    new Type[0] (or create your own static property which returns a cached version of this)

                                        get_Assembly

                                    .GetTypeInfo().Assembly

                                        get_IsAbstract

                                    .GetTypeInfo().IsAbstract

                                        get_IsClass

                                    .GetTypeInfo().IsClass

                                        get_IsEnum

                                    .GetTypeInfo().IsEnum

                                        get_IsGenericType

                                    .GetTypeInfo().IsGenericType

                                        get_IsInterface

                                    .GetTypeInfo().IsInterface

                                        get_IsPrimitive

                                    .GetTypeInfo().IsPrimitive

                                        get_IsValueType

                                    .GetTypeInfo().IsValueType

                                        GetConstructor(System.Reflection.BindingFlags,System.Reflection.Binder,System.Type[],System.Reflection.ParameterModifier[])

                                    Use GetConstructor(Type[]) to search for public constructors by parameter type or filter the results of GetConstructors(BindingFlags) using LINQ for other queries.

                                        GetGenericArguments

                                        GetMethod(System.String,System.Reflection.BindingFlags,System.Reflection.Binder,System.Type[],System.Reflection.ParameterModifier[])

                                    Use GetMethod(string, Type[]) to search for public methods by name and parameter type or filter the results of GetMethods(BindingFlags) using LINQ for other queries.

                                        GetMethods(System.Reflection.BindingFlags)

                                        GetProperty(System.String,System.Reflection.BindingFlags)

                                        GetTypeCode(System.Type)

                                    Use Type or RuntimeTypeHandle instead.

                                        IsAssignableFrom(System.Type)

                                        IsEquivalentTo(System.Type)

                                    System.TypeCode

                                Use Type or RuntimeTypeHandle instead.

                                    System.Xml.XmlAttribute

                                    System.Xml.XmlAttributeCollection

                                        Append(System.Xml.XmlAttribute)

                                        get_ItemOf(System.String)

                                    System.Xml.XmlDocument

                                        CreateAttribute(System.String)

                                        CreateNode(System.Xml.XmlNodeType,System.String,System.String)

                                    System.Xml.XmlNode

                                        AppendChild(System.Xml.XmlNode)

                                        get_Attributes

                                        get_OwnerDocument

                                        get_Value

                                        set_Value(System.String)

                                    System.Xml.XmlTextWriter

                                        #ctor(System.IO.TextWriter)

                    Back to Summary


text:
unsigned int senddata[DATA_POINTS/4];  //Buffer to hold the send data

int main(int argc, char* argv[])
{
	int rtn,i;
    unsigned int arg = 0;
	unsigned int test_size = 256;
    //unsigned int test_size = atoi(argv[1]);

    //Incremental Data for testing
	for(i = 0; i < DATA_POINTS/4; i++){
            senddata[i] = arg;
	    arg++;
	}

    printf("# Testing dma write to FPGA DRAM for different data size\n");
    printf("# Transfer Size(Bytes), Transfer Time (s),Throughput: (MB/s)\n");

	//while(test_size <= DATA_POINTS) {
        rtn = fpga_transfer_data(HOST, USERPCIE1,(unsigned char *) senddata, test_size ,0, 0);
		rtn = fpga_transfer_data(HOST, USERPCIE2,(unsigned char *) senddata, test_size ,0, 0);
		rtn = fpga_transfer_data(HOST, USERPCIE3,(unsigned char *) senddata, test_size ,0, 0);
		rtn = fpga_transfer_data(HOST, USERPCIE4,(unsigned char *) senddata, test_size ,0, 0);

		fpga_wait_interrupt(hostuser1);
		fpga_wait_interrupt(hostuser2);
		fpga_wait_interrupt(hostuser3);
		fpga_wait_interrupt(hostuser4);

		//test_size *= 2;
	//}
	return 0;
}


text:
package org.semanticweb.elk.reasoner.saturation;

import org.semanticweb.elk.reasoner.indexing.hierarchy.IndexedClassExpression;
import org.semanticweb.elk.reasoner.indexing.hierarchy.OntologyIndex;
import org.semanticweb.elk.reasoner.saturation.rules.factories.RuleApplicationAdditionFactory;
import org.semanticweb.elk.util.concurrent.computation.ComputationExecutor;
import org.semanticweb.elk.util.concurrent.computation.ConcurrentComputationWithInputs;

public class TestClassExpressionSaturation<J extends SaturationJob<? extends IndexedClassExpression>>
		extends ConcurrentComputationWithInputs<J, ClassExpressionSaturationFactory<J>> {

	public TestClassExpressionSaturation(ComputationExecutor executor,
			int maxWorkers, SaturationState<?> saturationState) {
		super(new ClassExpressionSaturationFactory<J>(
				new RuleApplicationAdditionFactory(saturationState),
				maxWorkers), executor, maxWorkers);
	}

	public TestClassExpressionSaturation(ComputationExecutor executor,
			int maxWorkers, OntologyIndex ontologyIndex) {
		super(new ClassExpressionSaturationFactory<J>(
				new RuleApplicationAdditionFactory(
						SaturationStateFactory
								.createSaturationState(ontologyIndex)),
				maxWorkers), executor, maxWorkers);
	}
}


text:
// -------------------------------------------
// Control Freak 2
// Copyright (C) 2013-2016 Dan's Game Tools
// http://DansGameTools.com
// -------------------------------------------

#if UNITY_EDITOR
using UnityEditor;
using UnityEngine;

using ControlFreak2Editor;
using ControlFreak2;
using ControlFreak2.Internal;
using ControlFreak2Editor.Internal;

namespace ControlFreak2Editor.Inspectors
{

public class TouchGestureThresholdsInspector
	{

	public GUIContent titleContent;
	//public Editor mainEditor;
	public Object undoObject;
	public bool foldedOut;
	public bool foldable;

	// -----------------------
	public TouchGestureThresholdsInspector(Object undoObject, GUIContent titleContent, bool foldable = false)
		{
		this.titleContent = titleContent;
		//this.mainEditor = mainEditor;
		this.foldable = foldable;
		this.undoObject = undoObject;
		}

	// ---------------
	public void DrawGUI(TouchGestureThresholds target)
		{
		if (this.foldable)
			{
			if (!CFGUI.BoldFoldout(this.titleContent, ref this.foldedOut))
				return;

			InspectorUtils.BeginIndentedSection(); //CFGUI.BeginIndentedVertical(CFEditorStyles.Inst.transpSunkenBG);
			}
		else
			{
			InspectorUtils.BeginIndentedSection(this.titleContent);
			}

		this.DrawBasicGUI(target);

		MultiTouchGestureThresholds multiTarget = (target as MultiTouchGestureThresholds);
		if (multiTarget != null)
			{
			EditorGUILayout.Space();
			this.DrawMultiTouchGUI(multiTarget);
			}

		//CFGUI.EndIndentedVertical();
		InspectorUtils.EndIndentedSection();
		}

	const float LABEL_WIDTH = 160;

	// ---------------------
	private void DrawBasicGUI(TouchGestureThresholds target)
		{
		//MultiTouchGestureThresholds multiTarget = (target as MultiTouchGestureThresholds);

		float
			tapMoveThreshCm		= target.tapMoveThreshCm,
			tapPosThreshCm		= target.tapPosThreshCm,
			dragThreshCm		= target.dragThreshCm,
			scrollThreshCm		= target.scrollThreshCm,
			scrollMagnetFactor	= target.scrollMagnetFactor,

			swipeSegLenCm		= target.swipeSegLenCm,
			swipeJoystickRadCm	= target.swipeJoystickRadCm,
			//dragJoyDeadZone		= target.dragJoyDeadZone,

			tapMaxDur			= target.tapMaxDur,
			multiTapMaxTimeGap	= target.multiTapMaxTimeGap,

			//longTapMinTime		= target.longTapMinTime,
			longTapMaxDuration	= target.longTapMaxDuration,

			longPressMinTime	= target.longPressMinTime;

		// GUI...

		tapMoveThreshCm = CFGUI.FloatField(new GUIContent("Static Thresh. (cm)", "Static touch threshold - maximal allowed movement distance for touch to be counted as a static tap."),
			tapMoveThreshCm, 0.01f, 1.0f, LABEL_WIDTH);

		dragThreshCm = CFGUI.FloatField(new GUIContent("Swipe Thresh (cm)", "Minimal swipe distance in centimeters to activate that gesture. This value should be grater then the Static Threshold!"),
			dragThreshCm, 0.01f, 5.0f, LABEL_WIDTH);

		EditorGUILayout.Space();

		scrollThreshCm = CFGUI.FloatField(new GUIContent("Scroll Step (cm)", "Swipe distance in centimeters for one scroll step"),
			scrollThreshCm, 0.01f, 5.0f, LABEL_WIDTH);

		scrollMagnetFactor = CFGUI.Slider(new GUIContent("Scroll Magnet", "Scroll magnet factor."),
			scrollMagnetFactor, 0, 0.5f, LABEL_WIDTH);

		EditorGUILayout.Space();
		swipeSegLenCm = CFGUI.FloatField(new GUIContent("Swipe Segment Len. (cm)", "Swipe segment length in centimeters used to determinate changing direction of a single swipe."),
			swipeSegLenCm, 0.1f, 10.0f, LABEL_WIDTH);

		swipeJoystickRadCm = CFGUI.FloatField(new GUIContent("Swipe Joy Rad (cm)", "Swipe joystick radius in centimeters."),
			swipeJoystickRadCm, 0.1f, 10.0f, LABEL_WIDTH);

		EditorGUILayout.Space();

		tapPosThreshCm = CFGUI.FloatField(new GUIContent("Max Tap Dist. (cm)", "Maximal allowed distance between consecutive taps."),
			tapPosThreshCm, 0.1f, 10.0f, LABEL_WIDTH);

		tapMaxDur = CFGUI.FloatFieldEx(new GUIContent("Tap Max. Duration", "Maximal allowed tap touch duration in milliseconds."),
			tapMaxDur, 0.02f, 1.0f, 1000, true, LABEL_WIDTH);

		multiTapMaxTimeGap = CFGUI.FloatFieldEx(new GUIContent("Tap Max. Gap", "Maximal allowed time \'gap\' between consecutive taps."),
			multiTapMaxTimeGap, 0.02f, 2.0f, 1000, true, LABEL_WIDTH);

		longPressMinTime = CFGUI.FloatFieldEx(new GUIContent("Long Press Min Time", "Minimal \'hold\' touch duration in milliseconds."),
			longPressMinTime, 0.02f, 1000f, 1000, true, LABEL_WIDTH);

		longTapMaxDuration = CFGUI.FloatFieldEx(new GUIContent("Long Tap Max Duration", "Maximal duration of a long tap in milliseconds."),
			longTapMaxDuration, 0.02f, 1000f, 1000, true, LABEL_WIDTH);

		// Register Undo...

		if ((tapMoveThreshCm	!= target.tapMoveThreshCm) ||
			(tapPosThreshCm		!= target.tapPosThreshCm) ||
			(dragThreshCm		!= target.dragThreshCm) ||
			(scrollThreshCm		!= target.scrollThreshCm) ||
			(scrollMagnetFactor	!= target.scrollMagnetFactor) ||
			(swipeSegLenCm		!= target.swipeSegLenCm) ||
			(swipeJoystickRadCm	!= target.swipeJoystickRadCm) ||
			(tapMaxDur			!= target.tapMaxDur) ||
			(multiTapMaxTimeGap	!= target.multiTapMaxTimeGap) ||
			//(longTapMinTime		!= target.longTapMinTime) ||
			(longTapMaxDuration	!= target.longTapMaxDuration) ||
			(longPressMinTime	!= target.longPressMinTime) )
//			(chargeMinTime		!= target.chargeMinTime) ||
//			(repeatDelay		!= target.repeatDelay) ||
//			(repeatInterval		!= target.repeatInterval) ||
//			(velSustainTime		!= target.velSustainTime))
			{
			CFGUI.CreateUndo("Touch Gesture Thresholds modification", this.undoObject);

			target.tapMoveThreshCm		= tapMoveThreshCm;
			target.tapPosThreshCm		= tapPosThreshCm;
			target.dragThreshCm			= dragThreshCm;
			target.scrollThreshCm		= scrollThreshCm;
			target.scrollMagnetFactor	= scrollMagnetFactor;
			target.swipeSegLenCm		= swipeSegLenCm;
			target.swipeJoystickRadCm	= swipeJoystickRadCm;
			target.tapMaxDur			= tapMaxDur;
			target.multiTapMaxTimeGap	= multiTapMaxTimeGap;
			target.longTapMaxDuration	= longTapMaxDuration;
			target.longPressMinTime		= longPressMinTime;

			CFGUI.EndUndo(this.undoObject);
			}
		}

	// ---------------------
	private void DrawMultiTouchGUI(MultiTouchGestureThresholds target)
		{
		float
			pinchDistThreshCm		= target.pinchDistThreshCm,
			pinchAnalogRangeCm		= target.pinchAnalogRangeCm,
			//pinchAnalogDeadzone		= target.pinchAnalogDeadzone,
			pinchDeltaRangeCm		= target.pinchDeltaRangeCm,
			pinchDigitalThreshCm	= target.pinchDigitalThreshCm,

			twistMinDistCm			= target.twistMinDistCm,
			twistAngleThresh		= target.twistAngleThresh,
			twistAnalogRange		= target.twistAnalogRange,
			//twistAnalogDeadzone		= target.twistAnalogDeadzone,
			twistDeltaRange			= target.twistDeltaRange,
			twistDigitalThresh		= target.twistDigitalThresh,

			pinchScrollMagnet		= target.pinchScrollMagnet,
			pinchScrollStepCm		= target.pinchScrollStepCm,
			twistScrollMagnet		= target.twistScrollMagnet,
			twistScrollStep			= target.twistScrollStep,

			multiFingerTapMaxFingerDistCm	= target.multiFingerTapMaxFingerDistCm;

		// GUI...

		pinchDistThreshCm = CFGUI.FloatField(new GUIContent("Pinch Thresh (cm)", "Pinch distance threshold in centimeters."),
			pinchDistThreshCm, 0.01f, 5.0f, LABEL_WIDTH);

		pinchAnalogRangeCm = CFGUI.FloatField(new GUIContent("Pinch Analog Range (cm)", "Pinch distance analog range in centimeters. This is used when binding pinch state to analog axes."),
			pinchAnalogRangeCm, 0.1f, 10.0f, LABEL_WIDTH);

		pinchDeltaRangeCm = CFGUI.FloatField(new GUIContent("Pinch Delta Range (cm)", "Pinch distance delta range in centimeters. This is used when binding pinch state to analog axes."),
			pinchDeltaRangeCm, 0.1f, 10.0f, LABEL_WIDTH);

		pinchDigitalThreshCm = CFGUI.FloatField(new GUIContent("Pinch Digital Thresh (cm)", "Pinch distance threshold to detect digital states of pinch or spread."),
			pinchDigitalThreshCm, 0.1f, 5.0f, LABEL_WIDTH);

		pinchScrollStepCm = CFGUI.FloatField(new GUIContent("Pinch Scroll Step (cm)", "Pinch scroll step in centimeters."),
			pinchScrollStepCm, 0.1f, 5.0f, LABEL_WIDTH);

		pinchScrollMagnet = CFGUI.FloatField(new GUIContent("Pinch Scroll Magnet", "Pinch scroll magnet strength."),
			pinchScrollMagnet, 0, 1, LABEL_WIDTH);

		EditorGUILayout.Space();

		twistMinDistCm = CFGUI.FloatField(new GUIContent("Twist Min. Dist (cm)", "Minimal safe finger distance for twist gesture in centimeters."),
			twistMinDistCm, 0.01f, 5.0f, LABEL_WIDTH);

		twistAngleThresh = CFGUI.FloatField(new GUIContent("Twist Thresh (deg)", "Twist threshold in degrees."),
			twistAngleThresh, 0.01f, 180f, LABEL_WIDTH);

		twistAnalogRange = CFGUI.FloatField(new GUIContent("Twist Analog Range (deg)", "Twist analog range in degrees. This is used when binding twist state to analog axis."),
			twistAnalogRange, 1, 360, LABEL_WIDTH);

		twistDeltaRange = CFGUI.FloatField(new GUIContent("Twist Delta Range (deg)", "Twist angle range in degrees. This is used when binding twist tate to analog axes."),
			twistDeltaRange, 0.1f, 360.0f, LABEL_WIDTH);

		twistDigitalThresh = CFGUI.FloatField(new GUIContent("Twist Digital Thresh (deg)", "Twist angle threshold to detect digital states of twist right or left."),
			twistDigitalThresh, 1f, 180, LABEL_WIDTH);

		twistScrollStep = CFGUI.FloatField(new GUIContent("Twist Scroll Step (deg)", "Twist scroll step in degrees."),
			twistScrollStep, 1, 180, LABEL_WIDTH);

		twistScrollMagnet = CFGUI.FloatField(new GUIContent("Twist Scroll Magnet", "Twsit scroll magnet strength."),
			twistScrollMagnet, 0, 1, LABEL_WIDTH);

		EditorGUILayout.Space();

		multiFingerTapMaxFingerDistCm = CFGUI.FloatField(new GUIContent("Multi-finger max tap dist (cm)", "Maximal allowed distance between two or more fingers forming a multi-finger when detecting taps."),
			multiFingerTapMaxFingerDistCm, 0.01f, 5.0f, LABEL_WIDTH);

		// Register Undo...

		if ((pinchDistThreshCm			!= target.pinchDistThreshCm) ||
			(pinchAnalogRangeCm			!= target.pinchAnalogRangeCm) ||
			//(pinchAnalogDeadzone		!= target.pinchAnalogDeadzone) ||
			(pinchDeltaRangeCm			!= target.pinchDeltaRangeCm) ||
			(pinchDigitalThreshCm		!= target.pinchDigitalThreshCm) ||
			(twistMinDistCm				!= target.twistMinDistCm) ||
			(twistAngleThresh			!= target.twistAngleThresh) ||
			(twistAnalogRange			!= target.twistAnalogRange) ||
			//(twistAnalogDeadzone		!= target.twistAnalogDeadzone) ||
			(twistDeltaRange			!= target.twistDeltaRange) ||
			(twistDigitalThresh			!= target.twistDigitalThresh) ||

			(pinchScrollMagnet			!= target.pinchScrollMagnet) ||
			(pinchScrollStepCm			!= target.pinchScrollStepCm) ||
			(twistScrollMagnet			!= target.twistScrollMagnet) ||
			(twistScrollStep			!= target.twistScrollStep) ||

			(multiFingerTapMaxFingerDistCm	!= target.multiFingerTapMaxFingerDistCm) )

			{
			CFGUI.CreateUndo("Touch Gesture Thresholds modification", this.undoObject);

			target.pinchDistThreshCm				= pinchDistThreshCm;
			target.pinchAnalogRangeCm				= pinchAnalogRangeCm;
			//target.pinchAnalogDeadzone				= pinchAnalogDeadzone;
			target.pinchDeltaRangeCm				= pinchDeltaRangeCm;
			target.pinchDigitalThreshCm				= pinchDigitalThreshCm;
			target.twistMinDistCm					= twistMinDistCm;
			target.twistAngleThresh					= twistAngleThresh;
			target.twistAnalogRange					= twistAnalogRange;
			//target.twistAnalogDeadzone				= twistAnalogDeadzone;
			target.twistDeltaRange					= twistDeltaRange;
			target.twistDigitalThresh				= twistDigitalThresh;
			target.multiFingerTapMaxFingerDistCm	= multiFingerTapMaxFingerDistCm;

			target.pinchScrollMagnet				= pinchScrollMagnet;
			target.pinchScrollStepCm				= pinchScrollStepCm;
			target.twistScrollMagnet				= twistScrollMagnet;
			target.twistScrollStep					= twistScrollStep;

			CFGUI.EndUndo(this.undoObject);
			}
		}

	}

}
#endif


text:
<?php

namespace PSU\TeacherCert;

class Districts extends Collection {
	static $_name = 'Districts';
	static $child = 'PSU\\TeacherCert\\District';
	static $table = 'districts';

	protected function _get_order() {
		return 'name';
	}
}//end class PSU\TeacherCert\Districts


text:
All Notable changes to `logsapi` will be documented in this file.

Updates should follow the [Keep a CHANGELOG](http://keepachangelog.com/) principles.

## Date of start: 29.06.2016

### What's new (1.0.12)
- Remove get-token from routing
- adding instruction to readme.md
- fixed security

### (1.0.11)
- Fixed bugs in ServiceProvider, Controller etc.
- Fixed routing
- Fixed posts method

### (1.0.10)
- Fixed bugs in ServiceProvider, Controller etc.

### (1.0.9)
- Fixed bugs in ServiceProvider, Controller etc.

### (1.0.8)
- Fixed bugs in other classes


text:
package com.ottone.gameoflife;

import android.app.Application;
import android.content.Context;
import android.util.DisplayMetrics;
import android.view.WindowManager;

/**
 * Created by koleszargergo on 2/1/17.
 */

public class App extends Application {

    private static App sInstance;

    private static Context sContext;

    private int mHeight;
    private int mWidth;

    @Override
    public void onCreate() {
        super.onCreate();

        sInstance = this;

        sContext = getApplicationContext();

        WindowManager wm = (WindowManager) getSystemService(WINDOW_SERVICE);
        final DisplayMetrics displayMetrics = new DisplayMetrics();
        wm.getDefaultDisplay().getMetrics(displayMetrics);

        mHeight = displayMetrics.heightPixels;
        mWidth = displayMetrics.widthPixels;
    }

    public static App getInstance() {
        return sInstance;
    }

    public int getHeight() {
        return mHeight;
    }

    public int getWidth() {
        return mWidth;
    }
}


text:
package org.pageseeder.diffx.load;

import org.pageseeder.diffx.api.LoadingException;
import org.pageseeder.diffx.config.DiffConfig;
import org.pageseeder.diffx.load.text.TextTokenizer;
import org.pageseeder.diffx.load.text.TokenizerFactory;
import org.pageseeder.diffx.token.*;
import org.pageseeder.diffx.token.impl.SpaceToken;
import org.pageseeder.diffx.token.impl.XMLAttribute;
import org.pageseeder.diffx.token.impl.XMLComment;
import org.pageseeder.diffx.token.impl.XMLProcessingInstruction;
import org.pageseeder.diffx.xml.Sequence;
import org.xml.sax.InputSource;

import javax.xml.XMLConstants;
import javax.xml.namespace.QName;
import javax.xml.stream.XMLInputFactory;
import javax.xml.stream.XMLStreamException;
import javax.xml.stream.XMLStreamReader;
import java.io.*;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Objects;

import static javax.xml.stream.XMLStreamConstants.COMMENT;
import static javax.xml.stream.XMLStreamConstants.PROCESSING_INSTRUCTION;

/**
 * Loads the XML tokens using an {@link XMLStreamLoader}.
 *
 * @author Christophe Lauret
 * @version 0.9.0
 * @since 0.9.0
 */
public final class XMLStreamLoader extends XMLLoaderBase implements XMLLoader {

  /**
   * Runs the loader on the specified file.
   *
   * @param file The file to process.
   *
   * @return The recorded sequence of tokens.
   * @throws LoadingException If thrown while parsing.
   * @throws IOException      Should I/O error occur.
   */
  @Override
  public Sequence load(File file) throws LoadingException, IOException {
    XMLInputFactory factory = toFactory(this.config);
    try (InputStream in = new BufferedInputStream(new FileInputStream(file))) {
      XMLStreamReader reader = factory.createXMLStreamReader(in);
      return load(reader);
    } catch (XMLStreamException ex) {
      throw new LoadingException(ex);
    }
  }

  /**
   * Runs the loader on the specified string.
   *
   * <p>This method is provided for convenience. It is best to only use this method for
   * short strings.
   *
   * @param xml The XML string to process.
   *
   * @return The recorded sequence of tokens.
   * @throws LoadingException If thrown while parsing.
   */
  @Override
  public Sequence load(String xml) throws LoadingException {
    XMLInputFactory factory = toFactory(this.config);
    try (StringReader source = new StringReader(xml)) {
      XMLStreamReader reader = factory.createXMLStreamReader(source);
      return load(reader);
    } catch (XMLStreamException ex) {
      throw new LoadingException(ex);
    }
  }

  /**
   * Runs the loader on the specified input source.
   *
   * @param source The input source.
   *
   * @return The recorded sequence of tokens.
   * @throws LoadingException If thrown whilst parsing.
   * @throws IOException      Should I/O error occur.
   */
  @Override
  public Sequence load(InputSource source) throws LoadingException, IOException {
    XMLInputFactory factory = toFactory(this.config);
    try {
      XMLStreamReader reader = toXMLStreamReader(factory, source);
      return load(reader);
    } catch (XMLStreamException ex) {
      throw new LoadingException(ex);
    }
  }

  public Sequence load(XMLStreamReader reader) throws LoadingException {
    XMLTokenFactory tokenFactory = new XMLTokenFactory(this.config.isNamespaceAware());
    TextTokenizer tokenizer = TokenizerFactory.get(this.config);
    List<StartElementToken> startElements = new ArrayList<>();
    Sequence sequence = new Sequence();
    sequence.addNamespace(XMLConstants.XML_NS_URI, XMLConstants.XML_NS_PREFIX);
    sequence.addNamespace(XMLConstants.NULL_NS_URI, XMLConstants.DEFAULT_NS_PREFIX);
    try {
      while (reader.hasNext()) {
        reader.next();
        if (reader.isStartElement()) {
          processNamespaces(reader, sequence);
          processStartElement(reader, sequence, tokenFactory, startElements);
          processAttributes(reader, sequence, this.config.isNamespaceAware());
        } else if (reader.isEndElement()) {
          processEndElement(reader, sequence, tokenFactory, startElements);
        } else if (reader.isCharacters()) {
          processText(reader, sequence, tokenizer);
        } else {
          processOther(reader, sequence);
        }
      }
    } catch (XMLStreamException ex) {
      throw new LoadingException(ex);
    }
    return sequence;
  }

  protected static XMLInputFactory toFactory(DiffConfig config) {
    XMLInputFactory factory = XMLInputFactory.newInstance();
    factory.setProperty(XMLInputFactory.IS_COALESCING, Boolean.TRUE);
    factory.setProperty(XMLInputFactory.IS_REPLACING_ENTITY_REFERENCES, Boolean.TRUE);
    factory.setProperty(XMLInputFactory.IS_NAMESPACE_AWARE, config.isNamespaceAware() ? Boolean.TRUE : Boolean.FALSE);
    return factory;
  }

  private static void processStartElement(XMLStreamReader stream, Sequence sequence, XMLTokenFactory factory, List<StartElementToken> startElements) {
    assert stream.isStartElement();
    QName name = stream.getName();
    StartElementToken startElement = factory.newStartElement(name.getNamespaceURI(), name.getLocalPart());
    sequence.addToken(startElement);
    startElements.add(startElement);
  }

  private static void processNamespaces(XMLStreamReader stream, Sequence sequence) {
    assert stream.isStartElement();
    int namespaceCount = stream.getNamespaceCount();
    if (namespaceCount > 0) {
      for (int i = 0; i < namespaceCount; i++) {
        String namespaceURI = stream.getNamespaceURI(i);
        if (namespaceURI == null) namespaceURI = XMLConstants.NULL_NS_URI;
        String prefix = stream.getNamespacePrefix(i);
        if (prefix == null) prefix = XMLConstants.DEFAULT_NS_PREFIX;
        sequence.addNamespace(namespaceURI, prefix);
      }
    }
  }

  private static void processAttributes(XMLStreamReader stream, Sequence sequence, boolean namespaceAware) {
    assert stream.isStartElement();
    // Add attributes immediately after
    int attributeCount = stream.getAttributeCount();
    if (attributeCount > 0) {
      AttributeToken[] attributes = new AttributeToken[attributeCount];
      for (int i = 0; i < attributeCount; i++) {
        attributes[i] = toAttribute(stream, i, namespaceAware);
      }
      Arrays.sort(attributes, new AttributeComparator());
      for (AttributeToken token : attributes) {
        sequence.addToken(token);
      }
    }
  }

  private static void processEndElement(XMLStreamReader stream, Sequence sequence, XMLTokenFactory factory, List<StartElementToken> startElements) {
    assert stream.isEndElement();
    StartElementToken startElement = startElements.remove(startElements.size() - 1);
    EndElementToken endElement = factory.newEndElement(startElement);
    sequence.addToken(endElement);
  }

  private static void processText(XMLStreamReader stream, Sequence sequence, TextTokenizer tokenizer) {
    assert stream.isCharacters();
    if (stream.isWhiteSpace()) {
      sequence.addToken(new SpaceToken(stream.getText()));
    } else {
      sequence.addTokens(tokenizer.tokenize(stream.getText()));
    }
  }

  /**
   * Processing instructions and comments.
   */
  private static void processOther(XMLStreamReader stream, Sequence sequence) {
    if (stream.getEventType() == PROCESSING_INSTRUCTION) {
      XMLToken token = new XMLProcessingInstruction(stream.getPITarget(), stream.getPIData());
      sequence.addToken(token);
    } else if (stream.getEventType() == COMMENT) {
      XMLComment token = new XMLComment(stream.getText());
      sequence.addToken(token);
    }
  }

  private static AttributeToken toAttribute(XMLStreamReader stream, int i, boolean namespaceAware) {
    String localName = stream.getAttributeLocalName(i);
    String value = stream.getAttributeValue(i);
    if (namespaceAware) {
      String namespaceURI = stream.getAttributeNamespace(i);
      if (namespaceURI == null) namespaceURI = XMLConstants.NULL_NS_URI;
      return new XMLAttribute(namespaceURI, localName, value);
    }
    String prefix = stream.getAttributePrefix(i);
    if (prefix.isEmpty()) {
      return new XMLAttribute(localName, value);
    }
    return new XMLAttribute(prefix + ":" + localName, value);
  }

  private static XMLStreamReader toXMLStreamReader(XMLInputFactory factory, InputSource source)
      throws XMLStreamException, LoadingException {
    if (source.getByteStream() != null) {
      String encoding = Objects.toString(source.getEncoding(), "utf-8");
      return factory.createXMLStreamReader(source.getByteStream(), encoding);
    }
    if (source.getCharacterStream() != null) {
      return factory.createXMLStreamReader(source.getSystemId(), source.getCharacterStream());
    }
    throw new LoadingException("Invalid InputSource");
  }
}


text:
package chess

import variant.RacingKings

class RacingKingsVariantTest extends ChessTest {

  "Racing Kings" should {

    "disallow discovered check" in {
      val fenPosition = "1r6/8/5qRK/8/7Q/8/2knNn2/2b2B2 b - - 11 11"
      val game        = fenToGame(fenPosition, RacingKings).toOption.get
      game.situation.destinations get Pos.D2 must beNone
    }
  }
}


text:
#include "fmod.hpp"
#include "common.h"

const int   INTERFACE_UPDATETIME = 50;      // 50ms update for interface
const float DISTANCEFACTOR = 1.0f;          // Units per meter.  I.e feet would = 3.28.  centimeters would = 100.

int FMOD_Main()
{
    FMOD::System    *system;
    FMOD::Sound     *sound1, *sound2, *sound3;
    FMOD::Channel   *channel1 = 0, *channel2 = 0, *channel3 = 0;
    FMOD_RESULT      result;
    bool             listenerflag = true;
    FMOD_VECTOR      listenerpos  = { 0.0f, 0.0f, -1.0f * DISTANCEFACTOR };
    unsigned int     version;
    void            *extradriverdata = 0;

    Common_Init(&extradriverdata);

    /*
        Create a System object and initialize.
    */
    result = FMOD::System_Create(&system);
    ERRCHECK(result);

    result = system->getVersion(&version);
    ERRCHECK(result);

    if (version < FMOD_VERSION)
    {
        Common_Fatal("FMOD lib version %08x doesn't match header version %08x", version, FMOD_VERSION);
    }

    result = system->init(100, FMOD_INIT_NORMAL, extradriverdata);
    ERRCHECK(result);

    /*
        Set the distance units. (meters/feet etc).
    */
    result = system->set3DSettings(1.0, DISTANCEFACTOR, 1.0f);
    ERRCHECK(result);

    /*
        Load some sounds
    */
    result = system->createSound(Common_MediaPath("drumloop.wav"), FMOD_3D, 0, &sound1);
    ERRCHECK(result);
    result = sound1->set3DMinMaxDistance(0.5f * DISTANCEFACTOR, 5000.0f * DISTANCEFACTOR);
    ERRCHECK(result);
    result = sound1->setMode(FMOD_LOOP_NORMAL);
    ERRCHECK(result);

    result = system->createSound(Common_MediaPath("jaguar.wav"), FMOD_3D, 0, &sound2);
    ERRCHECK(result);
    result = sound2->set3DMinMaxDistance(0.5f * DISTANCEFACTOR, 5000.0f * DISTANCEFACTOR);
    ERRCHECK(result);
    result = sound2->setMode(FMOD_LOOP_NORMAL);
    ERRCHECK(result);

    result = system->createSound(Common_MediaPath("swish.wav"), FMOD_2D, 0, &sound3);
    ERRCHECK(result);

    /*
        Play sounds at certain positions
    */
    {
        FMOD_VECTOR pos = { -10.0f * DISTANCEFACTOR, 0.0f, 0.0f };
        FMOD_VECTOR vel = {  0.0f, 0.0f, 0.0f };

        result = system->playSound(sound1, 0, true, &channel1);
        ERRCHECK(result);
        result = channel1->set3DAttributes(&pos, &vel);
        ERRCHECK(result);
        result = channel1->setPaused(false);
        ERRCHECK(result);
    }

    {
        FMOD_VECTOR pos = { 15.0f * DISTANCEFACTOR, 0.0f, 0.0f };
        FMOD_VECTOR vel = { 0.0f, 0.0f, 0.0f };

        result = system->playSound(sound2, 0, true, &channel2);
        ERRCHECK(result);
        result = channel2->set3DAttributes(&pos, &vel);
        ERRCHECK(result);
        result = channel2->setPaused(false);
        ERRCHECK(result);
    }

    /*
        Main loop
    */
    do
    {
        Common_Update();

        if (Common_BtnPress(BTN_ACTION1))
        {
            bool paused;
            channel1->getPaused(&paused);
            channel1->setPaused(!paused);
        }

        if (Common_BtnPress(BTN_ACTION2))
        {
            bool paused;
            channel2->getPaused(&paused);
            channel2->setPaused(!paused);
        }

        if (Common_BtnPress(BTN_ACTION3))
        {
            result = system->playSound(sound3, 0, false, &channel3);
            ERRCHECK(result);
        }

        if (Common_BtnPress(BTN_MORE))
        {
            listenerflag = !listenerflag;
        }

        if (!listenerflag)
        {
            if (Common_BtnDown(BTN_LEFT))
            {
                listenerpos.x -= 1.0f * DISTANCEFACTOR;
                if (listenerpos.x < -24 * DISTANCEFACTOR)
                {
                    listenerpos.x = -24 * DISTANCEFACTOR;
                }
            }

            if (Common_BtnDown(BTN_RIGHT))
            {
                listenerpos.x += 1.0f * DISTANCEFACTOR;
                if (listenerpos.x > 23 * DISTANCEFACTOR)
                {
                    listenerpos.x = 23 * DISTANCEFACTOR;
                }
            }
        }

        // ==========================================================================================
        // UPDATE THE LISTENER
        // ==========================================================================================
        {
            static float t = 0;
            static FMOD_VECTOR lastpos = { 0.0f, 0.0f, 0.0f };
            FMOD_VECTOR forward        = { 0.0f, 0.0f, 1.0f };
            FMOD_VECTOR up             = { 0.0f, 1.0f, 0.0f };
            FMOD_VECTOR vel;

            if (listenerflag)
            {
                listenerpos.x = (float)sin(t * 0.05f) * 24.0f * DISTANCEFACTOR; // left right pingpong
            }

            // ********* NOTE ******* READ NEXT COMMENT!!!!!
            // vel = how far we moved last FRAME (m/f), then time compensate it to SECONDS (m/s).
            vel.x = (listenerpos.x - lastpos.x) * (1000 / INTERFACE_UPDATETIME);
            vel.y = (listenerpos.y - lastpos.y) * (1000 / INTERFACE_UPDATETIME);
            vel.z = (listenerpos.z - lastpos.z) * (1000 / INTERFACE_UPDATETIME);

            // store pos for next time
            lastpos = listenerpos;

            result = system->set3DListenerAttributes(0, &listenerpos, &vel, &forward, &up);
            ERRCHECK(result);

            t += (30 * (1.0f / (float)INTERFACE_UPDATETIME));    // t is just a time value .. it increments in 30m/s steps in this example
        }

        result = system->update();
        ERRCHECK(result);

        // Create small visual display.
        char s[80] = "|.............<1>......................<2>.......|";
        s[(int)(listenerpos.x / DISTANCEFACTOR) + 25] = 'L';

        Common_Draw("==================================================");
        Common_Draw("3D Example.");
        Common_Draw("Copyright (c) Firelight Technologies 2004-2017.");
        Common_Draw("==================================================");
        Common_Draw("");
        Common_Draw("Press %s to toggle sound 1 (16bit Mono 3D)", Common_BtnStr(BTN_ACTION1));
        Common_Draw("Press %s to toggle sound 2 (8bit Mono 3D)", Common_BtnStr(BTN_ACTION2));
        Common_Draw("Press %s to play a sound (16bit Stereo 2D)", Common_BtnStr(BTN_ACTION3));
        Common_Draw("Press %s or %s to move listener in still mode", Common_BtnStr(BTN_LEFT), Common_BtnStr(BTN_RIGHT));
        Common_Draw("Press %s to toggle listener auto movement", Common_BtnStr(BTN_MORE));
        Common_Draw("Press %s to quit", Common_BtnStr(BTN_QUIT));
        Common_Draw("");
        Common_Draw(s);

        Common_Sleep(INTERFACE_UPDATETIME - 1);
    } while (!Common_BtnPress(BTN_QUIT));

    /*
        Shut down
    */
    result = sound1->release();
    ERRCHECK(result);
    result = sound2->release();
    ERRCHECK(result);
    result = sound3->release();
    ERRCHECK(result);

    result = system->close();
    ERRCHECK(result);
    result = system->release();
    ERRCHECK(result);

    Common_Close();

    return 0;
}


text:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TaskManagement.Core.DomainEntity
{
    public interface IEntity<T>
    {
        T Id { get; set; }
    }
    public abstract class BaseEntity
    { }

    public abstract class Entity<T> : BaseEntity, IEntity<T>
    {
        public virtual T Id { get; set; }
    }
}


text:
FactoryGirl.define do
  factory :room do
    name { FFaker::Name.name }
    icon { FFaker::Lorem.word }
  end
end


text:
<?php

namespace Expidian\GlobalBundle\Form;

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilder;
use Expidian\GlobalBundle\Entity\Repository\UsuariosRepository;

class ExpedientesType extends AbstractType
{
    public function buildForm(FormBuilder $builder, array $options)
    {
        $builder
            ->add('idExpediente', 'hidden')
            ->add('nombre')
            ->add('fechaRegistro', 'date',array(
                        'widget' => 'single_text',
                        'format' => 'dd-MM-yyyy',
                    ))
            ->add('organismo', 'entity', array('class' => 'ExpidianGlobalBundle:Organismos',))
            ->add('usuarioAct', 'entity', array('class' => 'ExpidianGlobalBundle:Usuarios',))

        ;
    }

    public function getName()
    {
        return 'expedientetype';
    }
}


text:
import React from 'react';
import ReactDOM from 'react-dom';
import Gallery from '../src';
import moment from 'moment';
import marked from 'marked';
import ParallaxWrap from './Parallax';
import LazyImage from './LazyImage';
import './main.css';
import '../styles/main.css';

import './mui-github-markdown.css';
import './prop-type-description.css';

const stringThing = (curve, vars) =>
{ return '```javascript\n\
import React, { Component } from \'react\' \
import Gallery from \'react-amazon-gallery\' \
\n\
\n\
\n\
class AwesomeComponent extends Component {\n\
  constructor(props) {\n\
    super(props);\n\
  }\n\
  render() {\n\
    let images = [\n\
      "./images/image_1.jpg",\n\
      "./images/image_2.jpg",\n\
      "./images/image_3.jpg",\n\
      "./images/image_4.jpg",\n\
      ...\n\
    ];\n\
    return <Gallery images={data} />\n\
  }\n\
}\n\
```'}

let ImageArray1D = [
  './public/sample_array/land0.jpg',
  './public/sample_array/land1.jpg',
  './public/sample_array/land2.jpg',
  './public/sample_array/land3.jpg',
  './public/sample_array/land4.jpg',
];
let ImageArray2D = [
  [
  './public/sample_map/blck_0.jpg',
  './public/sample_map/blck_1.jpg',
  './public/sample_map/blck_2.jpg',
  './public/sample_map/blck_3.jpg',
  './public/sample_map/blck_4.jpg',
  './public/sample_map/blck_5.jpg',
  ],
  [
  './public/sample_map/blue_0.jpg',
  './public/sample_map/blue_1.jpg',
  './public/sample_map/blue_2.jpg',
  './public/sample_map/blue_3.jpg',
  './public/sample_map/blue_4.jpg',
  './public/sample_map/blue_5.jpg',
  ],
  [
  './public/sample_map/red_0.jpg',
  './public/sample_map/red_1.jpg',
  './public/sample_map/red_2.jpg',
  './public/sample_map/red_3.jpg',
  './public/sample_map/red_4.jpg',
  './public/sample_map/red_5.jpg',
  ]
];

const SECTION_TITLE_STYLE = {
  margin: '0px 0px 20px 0px',
  padding: 10,
  borderBottom: '1px solid lightgrey'
};
const SECTION_STYLE = {
  padding: 10
};

const COLOR_INPUT_STYLE = {
  position: 'relative',
  height: 34,
  width: 60,
  boxShadow: '0px 0px 4px grey',
  margin: 4,
  borderRadius: 34,
};
const CHECKBOX_INPUT_STYLE = {
  width: 18,
  margin: '0px 36px',
  textAlign: 'center'
};
const BTN_STYLE = {
  margin: '0px 8px'
};
const OPTION_STYLE = {
  borderBottom: '1px solid lightgrey'
};

function formatData(data) {
  var obj = {};
  data.keys.map(function(k, i) {
    obj[k] = data.data[i];
  });
  obj.rawDate = data.date;
  return obj;
}
class Demo extends React.Component {
  constructor(props) {
    super(props);
    this.state = {
      interp: 'curveCardinal',
      titleBkg: '#111111',
      textColor: '#FFFFFF',
      labelColor: '#FFFFFF',
      mainBkg: '#263238',
      imageSource: 1,
      showCode: {},
      data: []
    };
    this.handleResize = this.handleResize.bind(this)
    this.getSize = this.getSize.bind(this)
    this.setData = this.setData.bind(this)
    this.handleDataChange = this.handleDataChange.bind(this)
    this.handleCheckboxChange = this.handleCheckboxChange.bind(this)
    this.toggleCode = this.toggleCode.bind(this)
  }
  componentDidMount() {
    this.handleResize();
    window.addEventListener('resize', this.handleResize)
  }

  componentWillUnmount() {
    window.removeEventListener('resize', this.handleResize)
  }
  handleResize () {
    this.setState({ ...this.getSize() })
  }
  getSize () {
    return {w: window.innerWidth, h: window.innerHeight}
  }
  setData(key, val) {
    let { ...state } = this.state;
    state[key] = val;
    // console.log(key, e.target.value);
    this.setState(state);
  }
  handleDataChange(key, e) {
    let { ...state } = this.state;
    state[key] = e.target.value;
    // console.log(key, e.target.value);
    this.setState(state);
  }
  handleCheckboxChange(key) {
    let { ...state } = this.state;
    state[key] = !state[key];
    // console.log(key, state[key]);
    this.setState(state);
  }
  buildPropRow(row, i) {
    return

              {row.key}
              {row.type}
              {row.default}

  }
  toggleCode(key) {
    let { ...state } = this.state;
    let { showCode } = state;
    showCode[key] = !showCode[key];
    // console.log(key, showCode[key]);
    this.setState({showCode});
  }
  buildTable(title, header, rows) {
    return

               {header.map((h, i) => {h}	)}

                {rows}

  }
  buildColorDiv(key, value) {
    return

          <input
            type='color'
            style={{...COLOR_INPUT_STYLE, position: 'absolute', top: 0, left: 0, width: '100%', height: '100%', opacity: 0}}
            value={value}
            onChange={this.handleDataChange.bind(null, key)} />

  }
  render() {

    let {
      h,
      w,
      titleBkg,
      imageSource,
      progressColor,
      textColor,
      done,
      launch,
      interp,
      showCode,
      title,
      data,
      records,
      mainBkg,
    } = this.state;
    let generalOptions = this.buildTable('Props', ['Name', 'Type', 'Default', 'Description'], [
      {
        key: 'images',
        type: 'Array<String>',
        desc: 'Array of image src locations'
      },
      {
        key: 'width',
        type: 'string|number',
        default: '400',
        desc: 'Width of the Container div',
        component: null
      },
      {
        key: 'height',
        default: '400',
        type: 'string|number',
        desc: 'Height of the Container div',
        component: null
      },
      {
        key: 'bkgSize',
        type: 'string',
        default: 'contain',
        desc: 'CSS Background Size for Gallery image.',
        component: null
      },
      {
        key: 'id',
        type: 'string',
        default: '',
        desc: 'The string id applied to the SVG component',
        component: null
      },
      {
        key: 'style',
        type: 'object',
        default: ``,
        desc: 'Override the default style object.',
        component: null
      },
      {
        key: 'containerStyle',
        type: 'object',
        default: ``,
        desc: 'Override the default container style object.',
        component: null
      }
    ].map((item, i) => {
      return this.buildPropRow(item, i);
    }));

    return

                <ParallaxWrap
                  full={true}
                  background={<LazyImage src={'./public/ses_10_prep.jpg'} />}
                  style={{ minHeight: h }}>
                  </ParallaxWrap>

React Amazon Gallery

{`npm install react-amazon-gallery`}

{`yarn add react-amazon-gallery`}

{`Inspired by Amazon's simple product display.`}

                  <button
                    className={'btn btn-primary '+ (imageSource === 1 ? 'active' : '')}
                    onClick={this.setData.bind(null, 'imageSource', 1)}>
                    1 Dimension
                  </button>
                  <button
                    className={'btn btn-primary '+ (imageSource === 2 ? 'active' : '')}
                    onClick={this.setData.bind(null, 'imageSource', 2)}>
                    2 Dimension
                  </button>

                <Gallery images={imageSource === 2 ? ImageArray2D : ImageArray1D} />

                {"<Gallery />"}

                  <button
                    className={'btn '+ (showCode['gallery'] ? 'btn-disabled' : 'btn-primary')}
                    onClick={this.toggleCode.bind(null, 'gallery')}>
                    {showCode['gallery'] ? 'Hide Code' : 'Show Code'}
                  </button>

{"Properties"}

                {generalOptions}

  }
}

// ========================================================
// Render Setup
// ========================================================
const MOUNT_NODE = document.getElementById('root')

let render = () => {

  ReactDOM.render(
    <Demo style={{backgroundColor: 'none'}} />,
    MOUNT_NODE
  )
}

// This code is excluded from production bundle
if (__DEV__) {
  if (module.hot) {
    // Development render functions
    const renderApp = render
    const renderError = (error) => {
      const RedBox = require('redbox-react').default

      ReactDOM.render(<RedBox error={error} />, MOUNT_NODE)
    }

    // Wrap render in try/catch
    render = () => {
      try {
        renderApp()
      } catch (error) {
        console.error(error)
        renderError(error)
      }
    }

    // Setup hot module replacement
    module.hot.accept('./main', () =>
      setImmediate(() => {
        ReactDOM.unmountComponentAtNode(MOUNT_NODE)
        render()
      })
    )
  }
}

render();


text:
<?xml version="1.0"?>
<test>
<setup>
  <system file="1.2.1-smp-system.xml.gz"/>
  <channel name="packages" file="1.2.1-smp-packages.xml.gz"/>
  <hardwareInfo path="kernel-hardware"/>
</setup>
<!--
    (1.2) Kernel ABI has changed

      The KMPs and the kernel become incompatible. This results in
      a mismatch in kernel(name) = version Provides of the kernel and
      requires of the KMP. The resolver should indicate a conflict to
      be resolved interactively.

      (1.2.1) No updated some-kmp-$flavor packages are available

	The resolver should propose to either install the new kernel and
	remove the KMP, keep the KMP and the old kernel, or possibly
	ignore the conflict and still install the new kernel.
-->

<trial>
  <distupgrade delete_unmaintained="false"/>
  <reportproblems/>
</trial>

</test>


text:
module WhoNeedsWP
  # Abstract class to be implemented by all sidebar elements
  class Sidebar
    # A list of Sidebar instances which will be rendered
    @@content = []

    # The HTML output of all of the sidebar instances combined
    @@generated = nil

    # Iterate through all of the side bar instances, render them and return as HTML
    def self.render_all
      if @@generated == nil
        retval = []
        # Remove any sidebar content which is not in the sidebar list
        @@content.delete_if do |item|
          WhoNeedsWP::options[:sidebar].index(item.class.to_s.match(/::(.*)/)[1]) == nil
        end
        # Order the sidebar content based on the order in the option
        @@content.sort! { |a, b|
          a_classname = a.class.to_s.match(/::(.*)/)[1]
          b_classname = b.class.to_s.match(/::(.*)/)[1]
          a = WhoNeedsWP::options[:sidebar].index(a_classname)
          b = WhoNeedsWP::options[:sidebar].index(b_classname)
          a <=> b
        }
        @@content.each do |content|
          retval << content.render
        end
        @@generated = retval.join
      end
      return @@generated
    end

    # Create a new instance of this sidebar
    def initialize
      @logger = Logger.new(STDOUT)
      @@content << self
    end

    # Render this peice of sidebar content. Returns HTML.
    def render
      # To be implemented.
    end
  end
end


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

<title>com.exlibris.dps.sdk.sip</title>
<meta name="date" content="2018-01-01">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">

JavaScript is disabled on your browser.

Skip navigation links

Overview

Package

Class

Tree

Deprecated

Index

Help

Prev Package

Next Package

Frames

No Frames

All Classes

Package com.exlibris.dps.sdk.sip

SIP API

See: Description

Interface Summary

Interface
Description

SipWebServices

Web Service for getting information on created SIPs.

Package com.exlibris.dps.sdk.sip Description

SIP API

Skip navigation links

Overview

Package

Class

Tree

Deprecated

Index

Help

Prev Package

Next Package

Frames

No Frames

All Classes


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

<META http-equiv="Content-Type" content="text/html; charset=utf-8">
<TITLE>
接口 javax.swing.event.TreeSelectionListener 的使用 (Java Platform SE 6)
</TITLE>

<META NAME="date" CONTENT="2007-03-19">

<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">

      概述
      软件包
      类
    使用
      树
      已过时
      索引
      帮助

JavaTM Platform
Standard Ed. 6

 上一个
 下一个

  框架
 无框架

  所有类

接口 javax.swing.event.TreeSelectionListener
的使用

使用 TreeSelectionListener 的软件包

javax.swing
提供一组“轻量级”(全部是 Java 语言)组件,尽量让这些组件在所有平台上的工作方式都相同。

javax.swing.plaf.basic
提供了根据基本外观构建的用户界面对象。

javax.swing.tree
提供处理 javax.swing.JTree 的类和接口。

javax.swing 中 TreeSelectionListener 的使用

实现 TreeSelectionListener 的 javax.swing 中的类

protected  class
JTree.AccessibleJTree

          此类实现 JTree 类的可访问性支持。

protected  class
JTree.TreeSelectionRedirector

          使用 JTree 创建一个作为源的新 TreeSelectionEvent 并将其传递到所有侦听器的句柄。

返回 TreeSelectionListener 的 javax.swing 中的方法

 TreeSelectionListener[]
JTree.getTreeSelectionListeners()

          返回使用 addTreeSelectionListener() 添加到此 JTree 的所有 TreeSelectionListener 的数组。

参数类型为 TreeSelectionListener 的 javax.swing 中的方法

 void
JTree.addTreeSelectionListener(TreeSelectionListener tsl)

          为 TreeSelection 事件添加侦听器。

 void
JTree.removeTreeSelectionListener(TreeSelectionListener tsl)

          移除 TreeSelection 侦听器。

javax.swing.plaf.basic 中 TreeSelectionListener 的使用

实现 TreeSelectionListener 的 javax.swing.plaf.basic 中的类

 class
BasicTreeUI.TreeSelectionHandler

          侦听选择模型中的更改并相应地更新显示。

返回 TreeSelectionListener 的 javax.swing.plaf.basic 中的方法

protected  TreeSelectionListener
BasicTreeUI.createTreeSelectionListener()

          创建基于选择更改方法更新显示的侦听器。

javax.swing.tree 中 TreeSelectionListener 的使用

实现 TreeSelectionListener 的 javax.swing.tree 中的类

 class
DefaultTreeCellEditor

          TreeCellEditor。

返回 TreeSelectionListener 的 javax.swing.tree 中的方法

 TreeSelectionListener[]
DefaultTreeSelectionModel.getTreeSelectionListeners()

          返回已在此模型上注册的所有树选择侦听器组成的数组。

参数类型为 TreeSelectionListener 的 javax.swing.tree 中的方法

 void
DefaultTreeSelectionModel.addTreeSelectionListener(TreeSelectionListener x)

          向每次已选的 TreePaths 集合发生更改时都会得到通知的侦听器列表添加 x。

 void
TreeSelectionModel.addTreeSelectionListener(TreeSelectionListener x)

          向侦听器列表添加 x,每次选定的 TreePath 集合发生更改时,这些侦听器都会得到通知。

 void
DefaultTreeSelectionModel.removeTreeSelectionListener(TreeSelectionListener x)

          从每次已选的 TreePaths 集合发生更改时都会得到通知的侦听器列表中移除 x。

 void
TreeSelectionModel.removeTreeSelectionListener(TreeSelectionListener x)

          从每次已选的 TreePath 集合发生更改时都会得到通知的侦听器列表中移除 x。

      概述
      软件包
      类
    使用
      树
      已过时
      索引
      帮助

JavaTM Platform
Standard Ed. 6

 上一个
 下一个

  框架
 无框架

  所有类

提交错误或意见
有关更多的 API 参考资料和开发人员文档,请参阅 Java SE 开发人员文档。该文档包含更详细的、面向开发人员的描述,以及总体概述、术语定义、使用技巧和工作代码示例。
版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策。