text:
<?php

// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle.  If not, see <http://www.gnu.org/licenses/>.

defined('MOODLE_INTERNAL') || die();

$string['actualresponse'] = 'Respuesta real';
$string['allattempts'] = 'todos los intentos';
$string['allattemptsavg'] = 'Promedio de todos los intentos';
$string['allattemptscount'] = 'Número total de intentos completos calificados';
$string['analysisofresponses'] = 'Análisis de las respuestas';
$string['analysisofresponsesfor'] = 'Análisis de respuestas para {$a}';
$string['attempts'] = 'Intentos';
$string['attemptsall'] = 'Todos los intentos';
$string['attemptsfirst'] = 'Primer intento';
$string['backtoquizreport'] = 'Volver a la página principal del informe de estadísticas.';
$string['calculatefrom'] = 'Calcular estadísticas de';
$string['cic'] = 'Coeficiente de consistentia interna (para {$a})';
$string['count'] = 'Número';
$string['coursename'] = 'Nombre del curso';
$string['detailedanalysis'] = 'Análisis más detallado de las respuestas a esta pregunta';
$string['discrimination_index'] = 'Índice de Discriminación';
$string['discriminative_efficiency'] = 'Eficiencia discriminativa';
$string['downloadeverything'] = 'Descargar informe completo como';
$string['duration'] = 'Abierto para';
$string['effective_weight'] = 'peso efectivo';
$string['errordeleting'] = 'Error al eliminar {$a} registros antiguos.';
$string['erroritemappearsmorethanoncewithdifferentweight'] = 'La pregunta ({$a}) aparece más de una vez en el cuestionario con diferentes valores de calificación. Esto no es actualmente posible en el informe de estadísticas y puede hacer que las estadísticas de esta pregunta no sean fiables.';
$string['errormedian'] = 'Error al buscar la mediana';
$string['errorpowerquestions'] = 'Error al recuperar datos para calcular la varianza de las calificaciones de la pregunta';
$string['errorpowers'] = 'Error al recuperar datos para calcular la varianza de las calificaciones del cuestionario';
$string['errorrandom'] = 'Error al obtener los datos del sub item';
$string['errorratio'] = 'Ratio de error (para {$a})';
$string['errorstatisticsquestions'] = 'Error al buscar los datos de calificaciones de la pregunta para calcular las estadísticas ';
$string['facility'] = 'Índice de dificultad';
$string['firstattempts'] = 'primeros intentos';
$string['firstattemptsavg'] = 'Promedio de los primeros intentos';
$string['firstattemptscount'] = 'Número de primeros intentos completos calificados';
$string['frequency'] = 'Frecuencia';
$string['intended_weight'] = 'Peso estimado';
$string['kurtosis'] = 'Curtosis de la distribución de puntuaciones (para {$a})';
$string['lastcalculated'] = 'Último cálculo realizado hace {$a->lastcalculated}. Se han realizado {$a->count} desde entonces.';
$string['median'] = 'Calificación -mediana- (de {$a})';
$string['modelresponse'] = 'Respuesta modelo';
$string['negcovar'] = 'Covarianza negativa de la calificación con la calificación de los intentos totales';
$string['nostudentsingroup'] = 'Aún no hay estudiantes en este grupo';
$string['optiongrade'] = 'Porcentage parcial';
$string['pluginname'] = 'Estadísticas';
$string['position'] = 'Posición';
$string['positions'] = 'Número de preguntas';
$string['questioninformation'] = 'Información sobre la pregunta';
$string['questionname'] = 'Nombre de la pregunta';
$string['questionnumber'] = 'Q#';
$string['questionstatistics'] = 'Estadísticas de la pregunta';
$string['questiontype'] = 'Tipo de pregunta';
$string['quizinformation'] = 'Información sobre el cuestionario';
$string['quizname'] = 'Nombre del cuestionario';
$string['quizoverallstatistics'] = 'Estadísticas globales del cuestionario';
$string['quizstructureanalysis'] = 'Análisis de la estructura del cuestionario';
$string['random_guess_score'] = 'Calificación aleatoria estimada';
$string['recalculatenow'] = 'Volver a calcular';
$string['response'] = 'Respuesta';
$string['skewness'] = 'Asimetría de la distribución de puntuaciones (para {$a})';
$string['standarddeviation'] = 'Desviación estándar (para {$a})';
$string['standarddeviationq'] = 'Desviación estándar';
$string['standarderror'] = 'Error estándar (para {$a})';
$string['statistics'] = 'Estadísticas';
$string['statistics:componentname'] = 'Informe estadístico del cuestionario';
$string['statisticsreport'] = 'Informe estadístico';
$string['statisticsreportgraph'] = 'Estadísticas de las pregunta';
$string['statistics:view'] = 'Ver informe de estadísitcas';
$string['statsfor'] = 'Estadísticas del cuestionario (para {$a})';


text:
%% Display Face Gallery
%Copyright 2014-2015 The MathWorks, Inc.
function displayFaceGallery(faceGallery,galleryNames)

% displaying all the gallery images
figure
for i = 1:length(faceGallery)
    I = cell(1, faceGallery(i).Count);
    % concatenate all the images of a person side-by-side
    for j = 1:faceGallery(i).Count
        image = read(faceGallery(i), j);
        % scale images to have same height, maintaining the aspect ratio
        scaleFactor = 150/size(image, 1);
        image = imresize(image, scaleFactor);
        I{j} = image;
    end
    subplot(length(faceGallery), 1, i);
    imshow(cell2mat(I));
    title(galleryNames{i}, 'FontWeight', 'normal');
end

annotation('textbox', [0 0.9 1 0.1], 'String', 'Face Gallery', ...
     'EdgeColor', 'none', 'FontWeight', 'bold', ...
     'FontSize', 12, 'HorizontalAlignment', 'center')

redpajama_set_name: RedPajamaGithub


text:
import React, { Children, Component } from 'react';
import ReactPropTypes from 'prop-types';
import classnames from 'classnames';
import { schema, PropTypes } from 'react-desc';
import { matchPath } from 'react-router';
import LinkNextIcon from './icons/base/LinkNext';

import CSSClassnames from '../utils/CSSClassnames';

const CLASS_ROOT = CSSClassnames.ANCHOR;

export default class Anchor extends Component {

  constructor (props, context) {
    super(props, context);
    this._onClick = this._onClick.bind(this);
    this._onLocationChange = this._onLocationChange.bind(this);
    this._attachUnlisten = this._attachUnlisten.bind(this);
    this._isRouteActive = this._isRouteActive.bind(this);
    const { path } = props;
    const { router } = context;

    const active = this._isRouteActive(path, router);

    this.state = { active };
  }

  componentDidMount () {
    const { path } = this.props;
    const { router } = this.context;

    if (path) {
      this._attachUnlisten(router.history || router);
    }
  }

  componentWillReceiveProps(nextProps) {
    const { path } = nextProps;
    const { router } = this.context;

    if (path && path !== this.props.path) {
      this._attachUnlisten(router.history || router);
    }
  }

  componentWillUnmount () {
    const { path } = this.props;
    if (path) {
      this._unlisten();
    }
    this._unmounted = true;
  }

  _isRouteActive(path, router) {
    if (!path) {
      return false;
    }
    let active;
    if (router && router.isActive) {
      active = router && router.isActive &&
        path && router.isActive({
          pathname: path.path || path,
          query: { indexLink: path.index }
        });
    } else if(router && matchPath) {
      active = !!matchPath(
        router.history.location.pathname,
        { path: path.path || path, exact: !!path.index }
      );
    }

    return active;
  }

  _attachUnlisten(router) {
    this._unlisten = router.listen(this._onLocationChange);
  }

  _onLocationChange (location) {
    // sometimes react router is still calling the listen callback even
    // if we called unlisten. So we added this check here to prevent
    // calling setState in a unmounted component
    if (!this._unmounted) {
      const { path } = this.props;
      const { router } = this.context;
      const active = matchPath ? (
        !!matchPath(
          location.pathname,
          { path: path.path || path, exact: !!path.index }
        )
      ) : (
        router && location.pathname === (path.path || path)
      );
      this.setState({ active });
    }
  }

  _onClick (event) {
    const { method, onClick, path, disabled } = this.props;
    const { router } = this.context;
    const modifierKey = event.ctrlKey || event.metaKey;

    if (modifierKey && !disabled && !onClick) {
      return true;
    }

    event.preventDefault();

    if (!disabled) {
      if (path) {
        if ('push' === method) {
          (router.history || router).push(path.path || path);
        } else if ('replace' === method) {
          (router.history || router).replace(path.path || path);
        }
      }

      if (onClick) {
        onClick(...arguments);
      }
    }
  }

  render () {
    const {
      a11yTitle, align, animateIcon, children, className, disabled, href, icon,
      label, onClick, path, primary, reverse, tag, ...props
    } = this.props;
    delete props.method;
    const { active } = this.state;
    const { router } = this.context;

    let anchorIcon;
    if (icon) {
      anchorIcon = icon;
    } else if (primary) {
      anchorIcon = (
        <LinkNextIcon a11yTitle='link next' />
      );
    }

    if (anchorIcon && !primary && !label) {
      anchorIcon = <span className={`${CLASS_ROOT}__icon`}>{anchorIcon};
    }

    let hasIcon = anchorIcon !== undefined;
    let anchorChildren = Children.map(children, child => {
      if (child && child.type && child.type.icon) {
        hasIcon = true;
        child = <span className={`${CLASS_ROOT}__icon`}>{child};
      }
      return child;
    });

    const target = path ? path.path || path : undefined;
    let adjustedHref;
    if (router && router.createPath) {
      adjustedHref = (path && router) ?
        router.createPath(target) : href;
    } else {
      adjustedHref = (path && router && router.history) ?
        router.history.createHref(
          typeof target === 'string' ? { pathname: target } : target
        ) : href;
    }

    let classes = classnames(
      CLASS_ROOT,
      {
        [`${CLASS_ROOT}--animate-icon`]: hasIcon && animateIcon !== false,
        [`${CLASS_ROOT}--disabled`]: disabled,
        [`${CLASS_ROOT}--icon`]: anchorIcon || hasIcon,
        [`${CLASS_ROOT}--icon-label`]: hasIcon && label,
        [`${CLASS_ROOT}--align-${align}`]: align,
        [`${CLASS_ROOT}--primary`]: primary,
        [`${CLASS_ROOT}--reverse`]: reverse,
        [`${CLASS_ROOT}--active`]: active
      },
      className
    );

    let adjustedOnClick = (path && router ? this._onClick : onClick);

    if (!anchorChildren) {
      anchorChildren = label;
    }

    const first = reverse ? anchorChildren : anchorIcon;
    const second = reverse ? anchorIcon : anchorChildren;

    const Component = tag;

    return (
      <Component {...props} href={adjustedHref} className={classes}
        aria-label={a11yTitle} onClick={adjustedOnClick}>
        {first}
        {second}
      </Component>
    );
  }
};

schema(Anchor, {
  description: `A text link. We have a separate component from the browser
  base so we can style it. You can either set the icon and/or label properties
  or just use children.`,
  usage: `import Anchor from 'grommet/components/Anchor';
  <Anchor href={location} label="Label" />`,
  props: {
    a11yTitle: [PropTypes.string, 'Accessibility title.'],
    align: [PropTypes.oneOf(['start', 'center', 'end']), 'Text alignment.'],
    animateIcon: [PropTypes.bool, 'Whether to animate the icon on hover.', {
      defaultProp: true
    }],
    disabled: [PropTypes.bool, 'Whether to disable the anchor.'],
    href: [PropTypes.string, 'Hyperlink reference to place in the anchor. If'
      + ' `path` prop is provided, `href` prop will be ignored.'],
    icon: [PropTypes.element, 'Icon element to place in the anchor.'],
    id: [PropTypes.string, 'Anchor identifier.'],
    label: [PropTypes.node, 'Label text to place in the anchor.'],
    method: [PropTypes.oneOf(['push', 'replace']),
      'Valid only when used with path. Indicates whether the browser history' +
      ' should be appended to or replaced.', {
        defaultProp: 'push'
      }
    ],
    onClick: [PropTypes.func, 'Click handler.'],
    path: [
      PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
      'React-router path to navigate to when clicked.' +
      ' Use path={{ path: '/', index: true }} if you want the Anchor to be' +
      ' active only when the index route is current.'
    ],
    primary: [PropTypes.bool, 'Whether this is a primary anchor.'],
    reverse: [
      PropTypes.bool,
      'Whether an icon and label should be reversed so that the icon is at ' +
      'the end of the anchor.'
    ],
    tag: [PropTypes.string,
      'The DOM tag to use for the element. The default is . This should be' +
      ' used in conjunction with components like Link from React Router. In' +
      ' this case, Link controls the navigation while Anchor controls the' +
      ' styling.', {
        defaultProp: 'a'
      }
    ],
    target: [PropTypes.string, 'Target of the link.']
  }
});

Anchor.contextTypes = {
  router: ReactPropTypes.object
};


text:
/* ** GENEREATED FILE - DO NOT MODIFY ** */
package com.wilutions.mslib.outlook.impl;
import com.wilutions.com.*;

@SuppressWarnings("all")
@CoClass(guid="{C091A920-A463-DB41-5DAE-69E7A5F7FCBC}")
public class AddressEntryImpl extends Dispatch implements com.wilutions.mslib.outlook.AddressEntry {
  @DeclDISPID(61440)  public com.wilutions.mslib.outlook._Application getApplication() throws ComException {
    final Object obj = this._dispatchCall(61440,"Application", DISPATCH_PROPERTYGET,null);
    if (obj == null) return null;
    return Dispatch.as(obj, com.wilutions.mslib.outlook.impl._ApplicationImpl.class);
  }
  @DeclDISPID(61450)  public com.wilutions.mslib.outlook.OlObjectClass getClass_() throws ComException {
    final Object obj = this._dispatchCall(61450,"Class", DISPATCH_PROPERTYGET,null);
    if (obj == null) return null;
    return com.wilutions.mslib.outlook.OlObjectClass.valueOf((Integer)obj);
  }
  @DeclDISPID(61451)  public com.wilutions.mslib.outlook._NameSpace getSession() throws ComException {
    final Object obj = this._dispatchCall(61451,"Session", DISPATCH_PROPERTYGET,null);
    if (obj == null) return null;
    return Dispatch.as(obj, com.wilutions.mslib.outlook.impl._NameSpaceImpl.class);
  }
  @DeclDISPID(61441)  public IDispatch getParent() throws ComException {
    final Object obj = this._dispatchCall(61441,"Parent", DISPATCH_PROPERTYGET,null);
    if (obj == null) return null;
    return (IDispatch)obj;
  }
  @DeclDISPID(12291)  public String getAddress() throws ComException {
    final Object obj = this._dispatchCall(12291,"Address", DISPATCH_PROPERTYGET,null);
    if (obj == null) return null;
    return (String)obj;
  }
  @DeclDISPID(12291)  public void setAddress(final String value) throws ComException {
    assert(value != null);
    this._dispatchCall(12291,"Address", DISPATCH_PROPERTYPUT,value);
  }
  @DeclDISPID(14592)  public com.wilutions.mslib.outlook.OlDisplayType getDisplayType() throws ComException {
    final Object obj = this._dispatchCall(14592,"DisplayType", DISPATCH_PROPERTYGET,null);
    if (obj == null) return null;
    return com.wilutions.mslib.outlook.OlDisplayType.valueOf((Integer)obj);
  }
  @DeclDISPID(61470)  public String getID() throws ComException {
    final Object obj = this._dispatchCall(61470,"ID", DISPATCH_PROPERTYGET,null);
    if (obj == null) return null;
    return (String)obj;
  }
  @DeclDISPID(12289)  public String getName() throws ComException {
    final Object obj = this._dispatchCall(12289,"Name", DISPATCH_PROPERTYGET,null);
    if (obj == null) return null;
    return (String)obj;
  }
  @DeclDISPID(12289)  public void setName(final String value) throws ComException {
    assert(value != null);
    this._dispatchCall(12289,"Name", DISPATCH_PROPERTYPUT,value);
  }
  @DeclDISPID(12290)  public String getType() throws ComException {
    final Object obj = this._dispatchCall(12290,"Type", DISPATCH_PROPERTYGET,null);
    if (obj == null) return null;
    return (String)obj;
  }
  @DeclDISPID(12290)  public void setType(final String value) throws ComException {
    assert(value != null);
    this._dispatchCall(12290,"Type", DISPATCH_PROPERTYPUT,value);
  }
  @DeclDISPID(770)  public void Delete() throws ComException {
    this._dispatchCall(770,"Delete", DISPATCH_METHOD,null);
  }
  @DeclDISPID(769)  public void Details(final Object HWnd) throws ComException {
    assert(HWnd != null);
    this._dispatchCall(769,"Details", DISPATCH_METHOD,null,Variant.param(HWnd));
  }
  @DeclDISPID(774)  public String GetFreeBusy(final java.util.Date Start, final Integer MinPerChar, final Object CompleteFormat) throws ComException {
    assert(Start != null);
    assert(MinPerChar != null);
    assert(CompleteFormat != null);
    final Object obj = this._dispatchCall(774,"GetFreeBusy", DISPATCH_METHOD,null,Start,MinPerChar,Variant.param(CompleteFormat));
    if (obj == null) return null;
    return (String)obj;
  }
  @DeclDISPID(768)  public void Update(final Object MakePermanent, final Object Refresh) throws ComException {
    assert(MakePermanent != null);
    assert(Refresh != null);
    this._dispatchCall(768,"Update", DISPATCH_METHOD,null,Variant.param(MakePermanent),Variant.param(Refresh));
  }
  @DeclDISPID(64240)  public com.wilutions.mslib.outlook._ContactItem GetContact() throws ComException {
    final Object obj = this._dispatchCall(64240,"GetContact", DISPATCH_METHOD,null);
    if (obj == null) return null;
    return Dispatch.as(obj, com.wilutions.mslib.outlook.impl._ContactItemImpl.class);
  }
  @DeclDISPID(64241)  public com.wilutions.mslib.outlook.ExchangeUser GetExchangeUser() throws ComException {
    final Object obj = this._dispatchCall(64241,"GetExchangeUser", DISPATCH_METHOD,null);
    if (obj == null) return null;
    final Dispatch disp = (Dispatch)obj;
    return disp.as(com.wilutions.mslib.outlook.ExchangeUser.class);
  }
  @DeclDISPID(64242)  public com.wilutions.mslib.outlook.OlAddressEntryUserType getAddressEntryUserType() throws ComException {
    final Object obj = this._dispatchCall(64242,"AddressEntryUserType", DISPATCH_PROPERTYGET,null);
    if (obj == null) return null;
    return com.wilutions.mslib.outlook.OlAddressEntryUserType.valueOf((Integer)obj);
  }
  @DeclDISPID(64239)  public com.wilutions.mslib.outlook.ExchangeDistributionList GetExchangeDistributionList() throws ComException {
    final Object obj = this._dispatchCall(64239,"GetExchangeDistributionList", DISPATCH_METHOD,null);
    if (obj == null) return null;
    final Dispatch disp = (Dispatch)obj;
    return disp.as(com.wilutions.mslib.outlook.ExchangeDistributionList.class);
  }
  @DeclDISPID(64253)  public com.wilutions.mslib.outlook.PropertyAccessor getPropertyAccessor() throws ComException {
    final Object obj = this._dispatchCall(64253,"PropertyAccessor", DISPATCH_PROPERTYGET,null);
    if (obj == null) return null;
    final Dispatch disp = (Dispatch)obj;
    return disp.as(com.wilutions.mslib.outlook.PropertyAccessor.class);
  }
  public AddressEntryImpl(String progId) throws ComException {
    super(progId, "{0006304B-0000-0000-C000-000000000046}");
  }
  protected AddressEntryImpl(long ndisp) {
    super(ndisp);
  }
  public String toString() {
    return "[AddressEntryImpl" + super.toString() + "]";
  }
}


text:
#include <aws/storagegateway/model/UpdateSMBFileShareRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>

#include <utility>

using namespace Aws::StorageGateway::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;

UpdateSMBFileShareRequest::UpdateSMBFileShareRequest() :
    m_fileShareARNHasBeenSet(false),
    m_kMSEncrypted(false),
    m_kMSEncryptedHasBeenSet(false),
    m_kMSKeyHasBeenSet(false),
    m_defaultStorageClassHasBeenSet(false),
    m_objectACL(ObjectACL::NOT_SET),
    m_objectACLHasBeenSet(false),
    m_readOnly(false),
    m_readOnlyHasBeenSet(false),
    m_guessMIMETypeEnabled(false),
    m_guessMIMETypeEnabledHasBeenSet(false),
    m_requesterPays(false),
    m_requesterPaysHasBeenSet(false),
    m_sMBACLEnabled(false),
    m_sMBACLEnabledHasBeenSet(false),
    m_accessBasedEnumeration(false),
    m_accessBasedEnumerationHasBeenSet(false),
    m_adminUserListHasBeenSet(false),
    m_validUserListHasBeenSet(false),
    m_invalidUserListHasBeenSet(false),
    m_auditDestinationARNHasBeenSet(false),
    m_caseSensitivity(CaseSensitivity::NOT_SET),
    m_caseSensitivityHasBeenSet(false),
    m_fileShareNameHasBeenSet(false),
    m_cacheAttributesHasBeenSet(false),
    m_notificationPolicyHasBeenSet(false)
{
}

Aws::String UpdateSMBFileShareRequest::SerializePayload() const
{
  JsonValue payload;

  if(m_fileShareARNHasBeenSet)
  {
   payload.WithString("FileShareARN", m_fileShareARN);

  }

  if(m_kMSEncryptedHasBeenSet)
  {
   payload.WithBool("KMSEncrypted", m_kMSEncrypted);

  }

  if(m_kMSKeyHasBeenSet)
  {
   payload.WithString("KMSKey", m_kMSKey);

  }

  if(m_defaultStorageClassHasBeenSet)
  {
   payload.WithString("DefaultStorageClass", m_defaultStorageClass);

  }

  if(m_objectACLHasBeenSet)
  {
   payload.WithString("ObjectACL", ObjectACLMapper::GetNameForObjectACL(m_objectACL));
  }

  if(m_readOnlyHasBeenSet)
  {
   payload.WithBool("ReadOnly", m_readOnly);

  }

  if(m_guessMIMETypeEnabledHasBeenSet)
  {
   payload.WithBool("GuessMIMETypeEnabled", m_guessMIMETypeEnabled);

  }

  if(m_requesterPaysHasBeenSet)
  {
   payload.WithBool("RequesterPays", m_requesterPays);

  }

  if(m_sMBACLEnabledHasBeenSet)
  {
   payload.WithBool("SMBACLEnabled", m_sMBACLEnabled);

  }

  if(m_accessBasedEnumerationHasBeenSet)
  {
   payload.WithBool("AccessBasedEnumeration", m_accessBasedEnumeration);

  }

  if(m_adminUserListHasBeenSet)
  {
   Array<JsonValue> adminUserListJsonList(m_adminUserList.size());
   for(unsigned adminUserListIndex = 0; adminUserListIndex < adminUserListJsonList.GetLength(); ++adminUserListIndex)
   {
     adminUserListJsonList[adminUserListIndex].AsString(m_adminUserList[adminUserListIndex]);
   }
   payload.WithArray("AdminUserList", std::move(adminUserListJsonList));

  }

  if(m_validUserListHasBeenSet)
  {
   Array<JsonValue> validUserListJsonList(m_validUserList.size());
   for(unsigned validUserListIndex = 0; validUserListIndex < validUserListJsonList.GetLength(); ++validUserListIndex)
   {
     validUserListJsonList[validUserListIndex].AsString(m_validUserList[validUserListIndex]);
   }
   payload.WithArray("ValidUserList", std::move(validUserListJsonList));

  }

  if(m_invalidUserListHasBeenSet)
  {
   Array<JsonValue> invalidUserListJsonList(m_invalidUserList.size());
   for(unsigned invalidUserListIndex = 0; invalidUserListIndex < invalidUserListJsonList.GetLength(); ++invalidUserListIndex)
   {
     invalidUserListJsonList[invalidUserListIndex].AsString(m_invalidUserList[invalidUserListIndex]);
   }
   payload.WithArray("InvalidUserList", std::move(invalidUserListJsonList));

  }

  if(m_auditDestinationARNHasBeenSet)
  {
   payload.WithString("AuditDestinationARN", m_auditDestinationARN);

  }

  if(m_caseSensitivityHasBeenSet)
  {
   payload.WithString("CaseSensitivity", CaseSensitivityMapper::GetNameForCaseSensitivity(m_caseSensitivity));
  }

  if(m_fileShareNameHasBeenSet)
  {
   payload.WithString("FileShareName", m_fileShareName);

  }

  if(m_cacheAttributesHasBeenSet)
  {
   payload.WithObject("CacheAttributes", m_cacheAttributes.Jsonize());

  }

  if(m_notificationPolicyHasBeenSet)
  {
   payload.WithString("NotificationPolicy", m_notificationPolicy);

  }

  return payload.View().WriteReadable();
}

Aws::Http::HeaderValueCollection UpdateSMBFileShareRequest::GetRequestSpecificHeaders() const
{
  Aws::Http::HeaderValueCollection headers;
  headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "StorageGateway_20130630.UpdateSMBFileShare"));
  return headers;

}


text:
{% extends "nav.html" %}
{% block title %}
Financial
{% endblock %}
{% block body %}

Financial

            table of every member
            Name, username, onfloor status, checkbox, submit button
            checkbox for active (if dues are paid)

                    name
                    uid
                    onfloor
                    DUES CHECKBOX
                    SUBMIT BUTTON

                {% for m in members %}

                    {{m['name']}}
                    <input type="text" name="uid" value="{{m['uid']}}" readonly/>
                    {{m['onfloor']}}
                    <input type="checkbox" name="active" {{m['paid']}}>
                    <input type="submit" value="Update">

                {% endfor %}

        {% endblock %}


text:
package com.tle.web.workflow.myresources;

import com.tle.core.guice.Bind;
import com.tle.web.itemlist.item.AbstractItemListEntry;
import com.tle.web.sections.standard.model.HtmlLinkState;
import java.util.Date;

@Bind
public class ModerationQueueEntry extends AbstractItemListEntry {
  private HtmlLinkState rejectMessage;

  public Date getSubmittedDate() {
    return getItem().getModeration().getStart();
  }

  public Date getLastActionDate() {
    return getItem().getModeration().getLastAction();
  }

  public HtmlLinkState getRejectMessage() {
    return rejectMessage;
  }

  public void setRejectMessage(HtmlLinkState rejectMessage) {
    this.rejectMessage = rejectMessage;
  }
}


text:
<?php

namespace Mpay24\Responses;

/**
 * The GeneralTransactionResponse class contains the mPAYTID the basic information linked to it
 *
 * Class AbstractTransactionResponse
 * @package    Mpay24\Responses
 *
 * @author     mPAY24 GmbH <support@mpay24.com>
 * @author     Stefan Polzer <develop@ps-webdesign.com>
 * @filesource AbstractTransactionResponse.php
 * @license    MIT
 */
abstract class AbstractTransactionResponse extends AbstractResponse
{
    /**
     * The mPAY24 transaction ID
     *
     * @var int
     */
    protected $mpayTid;

    /**
     * The mPAY24 transaction Status
     *
     * @var string
     */
    protected $tStatus;

    /**
     * The mPAY24 transaction ID
     *
     * @var int
     */
    protected $stateId;

    /**
     * The transaction ID of the shop
     *
     * @var string
     */
    protected $tid;

    /**
     * AbstractTransactionResponse constructor.
     *
     * @param string $response
     */
    public function __construct($response)
    {
        parent::__construct($response);
    }

    /**
     * Get the mPAY transaction ID, returned from mPAY24
     *
     * @return string
     */
    public function getMpayTid()
    {
        return $this->mpayTid;
    }

    /**
     * Get the transaction ID of the shop, returned from mPAY24
     *
     * @return string
     */
    public function getTid()
    {
        return $this->tid;
    }

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

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

    /**
     * Parse the Response message and save the data to the corresponding attributes
     *
     * @param \DOMElement $body
     */
    protected function parseResponse($body)
    {
        if ($body->getElementsByTagName('transaction')->length > 0) {
            $transaction = $body->getElementsByTagName('transaction')->item(0);

            $this->mpayTid = $transaction->getElementsByTagName('mpayTID')->item(0)->nodeValue;
            $this->tStatus = $transaction->getElementsByTagName('tStatus')->item(0)->nodeValue;
            $this->tid     = $transaction->getElementsByTagName('tid')->item(0)->nodeValue;

            if ($transaction->getElementsByTagName('stateID')->length > 0) {
                $this->stateId = $transaction->getElementsByTagName('stateID')->item(0)->nodeValue;
            }
        }
    }
}


text:
	premake.example = { }
	local example = premake.example
	local clean = premake.actions.clean

-- The description of the action. Note that only the first three fields are required;
-- you can remove any of the additional fields that are not required by your action.

	newaction
	{
		-- The trigger is what needs to be typed on the command line to cause
		-- this action this run (premake4 example)
		trigger = "example",

		-- The short name is used when this toolset name needs to be shown to
		-- the user, such as in status or error messages
		shortname = "Super Studio 3000",

		-- The description is shown in the help text (premake4 /help)
		description = "An example action that prints simple text files",

		-- Some actions imply a particular operating system: Visual Studio only
		-- runs on Windows, and Xcode only on Mac OS X. If this is the case,
		-- uncomment this line and set it to one of "windows", "linux" or "macosx".
		-- Otherwise, this action will target the current operating system.
		-- os = "macosx",

		-- Which kinds of targets this action supports; remove those you don't.
		valid_kinds = { "ConsoleApp", "WindowedApp", "SharedLib", "StaticLib" },

		-- Which programming languages this actions supports; remove those you don't.
		valid_languages = { "C", "C++", "C#" },

		-- Which compiler sets this action supports; remove those you don't. The set
		-- is specified with the /cc and /dotnet command-line options. You can find
		-- the tool interfaces at src/tools.
		valid_tools     = {
			cc     = { "msc", "gcc", "ow" },
			dotnet = { "mono", "msnet", "pnet" },
		},

		-- This function is called during state validation. If your action has some
		-- special requirements you can check them here and error if necessary.

		oncheckproject = function(prj)
			-- if this_project_is_no_good(prj) then
			--    error("Project " .. prj.name .. " is no good", 0)
			-- end
		end,

		-- These functions will get called for each solution and project. The function
		-- premake.generate() creates a file for you in the correct place, taking into
		-- account any location information specified in the script. The sequence "%%"
		-- will be replaced by the solution/project name. The last parameter is the
		-- function that will actually do the work of generating the file contents.

		onsolution = function(sln)
			premake.generate(sln, "%%.sln.txt", premake.example.solution)
		end,

		onproject = function(prj)
			if premake.isdotnetproject(prj) then
				premake.generate(prj, "%%.csprj.txt", premake.example.project)
			else
				premake.generate(prj, "%%.cprj.txt", premake.example.project)
			end
		end,

		-- These functions are called for each solution, project, and target as part
		-- of the "clean" action. They should remove any files generated by the tools.
		-- premake.actions.clean.file() and premake.actions.clean.directory() are convenience functions
		-- that use the same pattern matching as premake.generate() above.

		oncleansolution = function(sln)
			clean.file(sln, "%%.sln.txt")
		end,

		oncleanproject  = function(prj)
			if premake.isdotnetproject(prj) then
				clean.file(prj, "%%.csprj.txt")
			else
				clean.file(prj, "%%.cprj.txt")
			end
		end,

		oncleantarget   = function(trg)
			-- 'trg' is the path and base name of the target being cleaned,
			-- like 'bin/debug/MyApplication'. So you might do something like:
			-- os.remove(trg .. ".exe")
		end,
	}


text:
package io.jenetics.jpx;

import static java.lang.String.format;
import static java.util.Objects.requireNonNull;
import static io.jenetics.jpx.Lists.copyOf;
import static io.jenetics.jpx.Lists.copyTo;
import static io.jenetics.jpx.XMLWriter.elem;

import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.io.InvalidObjectException;
import java.io.ObjectInputStream;
import java.io.Serial;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import java.util.function.Consumer;
import java.util.function.Function;
import java.util.function.Predicate;
import java.util.stream.Stream;

import org.w3c.dom.Document;

import io.jenetics.jpx.GPX.Version;

/**
 * A Track Segment holds a list of Track Points which are logically connected in
 * order. To represent a single GPS track where GPS reception was lost, or the
 * GPS receiver was turned off, start a new Track Segment for each continuous
 * span of track data.
 *
 * @author Franz Wilhelmstötter
 * @version 1.5
 * @since 1.0
 */
public final class TrackSegment implements Iterable<WayPoint>, Serializable {

	@Serial
	private static final long serialVersionUID = 2L;

	private final List<WayPoint> _points;
	private final Document _extensions;

	/**
	 * Create a new track-segment with the given points.
	 *
	 * @param points the points of the track-segment
	 */
	private TrackSegment(final List<WayPoint> points, final Document extensions) {
		_points = copyOf(points);
		_extensions = extensions;
	}

	/**
	 * Return the track-points of this segment.
	 *
	 * @return the track-points of this segment
	 */
	public List<WayPoint> getPoints() {
		return _points;
	}

	/**
	 * Return a stream of {@link WayPoint} objects this track-segments contains.
	 *
	 * @return a stream of {@link WayPoint} objects this track-segment contains
	 */
	public Stream<WayPoint> points() {
		return _points.stream();
	}

	@Override
	public Iterator<WayPoint> iterator() {
		return _points.iterator();
	}

	/**
	 * Return the (cloned) extensions document. The root element of the returned
	 * document has the name {@code extensions}.
	 *
{@code
	 * <extensions>
	 *     ...
	 * </extensions>
	 * }

	 *
	 * @since 1.5
	 *
	 * @return the extensions document
	 * @throws org.w3c.dom.DOMException if the document could not be cloned,
	 *         because of an erroneous XML configuration
	 */
	public Optional<Document> getExtensions() {
		return Optional.ofNullable(_extensions).map(XML::clone);
	}

	/**
	 * Convert the immutable track-segment object into a
	 * mutable builder initialized with the current track-segment
	 * values.
	 *
	 * @since 1.1
	 *
	 * @return a new track-segment builder initialized with the values of
	 *        {@code this} track-segment
	 */
	public Builder toBuilder() {
		return builder()
			.points(_points)
			.extensions(_extensions);
	}

	/**
	 * Return {@code true} if {@code this} track-segment doesn't contain any
	 * track-point.
	 *
	 * @return {@code true} if {@code this} track-segment is empty, {@code false}
	 *         otherwise
	 */
	public boolean isEmpty() {
		return _points.isEmpty();
	}

	/**
	 * Return {@code true} if {@code this} track-segment contains at least one
	 * track-point.
	 *
	 * @since 1.1
	 *
	 * @return {@code true} if {@code this} track-segment is not empty,
	 *         {@code false} otherwise
	 */
	public boolean nonEmpty() {
		return !isEmpty();
	}

	@Override
	public int hashCode() {
		return Objects.hashCode(_points);
	}

	@Override
	public boolean equals(final Object obj) {
		return obj == this ||
			obj instanceof TrackSegment &&
			Objects.equals(((TrackSegment)obj)._points, _points);
	}

	@Override
	public String toString() {
		return format("TrackSegment[points=%s]", _points.size());
	}

	/**
	 * Builder class for creating immutable {@code TrackSegment} objects.
	 *

	 * Creating a {@code TrackSegment} object with  3 track-points:
	 *
{@code
	 * final TrackSegment segment = TrackSegment.builder()
	 *     .addPoint(p -> p.lat(48.2081743).lon(16.3738189).ele(160))
	 *     .addPoint(p -> p.lat(48.2081743).lon(16.3738189).ele(161))
	 *     .addPoint(p -> p.lat(48.2081743).lon(16.3738189).ele(162))))
	 *     .build();
	 * }

	 */
	public static final class Builder implements Filter<WayPoint, TrackSegment> {
		private final List<WayPoint> _points = new ArrayList<>();
		private Document _extensions;

		private Builder() {
		}

		/**
		 * Set the way-points fo the track segment. The list of way-points may
		 * be {@code null}.
		 *
		 * @param points the track-segment points
		 * @return {@code this} {@code Builder} for method chaining
		 * @throws NullPointerException if one of the way-points in the list is
		 *         {@code null}
		 */
		public Builder points(final List<WayPoint> points) {
			copyTo(points, _points);
			return this;
		}

		/**
		 * Add a way-point to the track-segment.
		 *
		 * @param point the segment way-point
		 * @return {@code this} {@code Builder} for method chaining
		 * @throws NullPointerException if the given {@code href} is {@code null}
		 */
		public Builder addPoint(final WayPoint point) {
			_points.add(requireNonNull(point));
			return this;
		}

		/**
		 * Add a way-point to the track-segment, via the given way-point builder.
		 *

		 * Creating a {@code TrackSegment} object with  3 track-points:
		 *
{@code
		 * final TrackSegment segment = TrackSegment.builder()
		 *     .addPoint(p -> p.lat(48.2081743).lon(16.3738189).ele(160))
		 *     .addPoint(p -> p.lat(48.2081743).lon(16.3738189).ele(161))
		 *     .addPoint(p -> p.lat(48.2081743).lon(16.3738189).ele(162))))
		 *     .build();
		 * }

		 *
		 * @param point the segment way-point builder
		 * @return {@code this} {@code Builder} for method chaining
		 * @throws NullPointerException if the given {@code href} is {@code null}
		 */
		public Builder addPoint(final Consumer<? super WayPoint.Builder> point) {
			final WayPoint.Builder builder = WayPoint.builder();
			point.accept(builder);
			return addPoint(builder.build());
		}

		/**
		 * Return the current way-points. The returned list is mutable.
		 *
		 * @since 1.1
		 *
		 * @return the current, mutable way-point list
		 */
		public List<WayPoint> points() {
			return new NonNullList<>(_points);
		}

		/**
		 * Sets the extensions object, which may be {@code null}. The root
		 * element of the extensions document must be {@code extensions}.
		 *
{@code
		 * <extensions>
		 *     ...
		 * </extensions>
		 * }

		 *
		 * @since 1.5
		 *
		 * @param extensions the document
		 * @return {@code this} {@code Builder} for method chaining
		 * @throws IllegalArgumentException if the root element is not the
		 *         an {@code extensions} node
		 */
		public Builder extensions(final Document extensions) {
			_extensions = XML.checkExtensions(extensions);
			return this;
		}

		/**
		 * Return the current extensions
		 *
		 * @since 1.5
		 *
		 * @return the extensions document
		 */
		public Optional<Document> extensions() {
			return Optional.ofNullable(_extensions);
		}

		@Override
		public Builder filter(final Predicate<? super WayPoint> predicate) {
			points(_points.stream().filter(predicate).toList());
			return this;
		}

		@Override
		public Builder map(
			final Function<? super WayPoint, ? extends WayPoint> mapper
		) {
			points(
				_points.stream()
					.map(mapper)
					.map(WayPoint.class::cast)
					.toList()
			);
			return this;
		}

		@Override
		public Builder flatMap(
			final Function<
				? super WayPoint,
				? extends List<WayPoint>> mapper
		) {
			points(
				_points.stream()
					.flatMap(wp -> mapper.apply(wp).stream())
					.toList()
			);
			return this;
		}

		@Override
		public Builder listMap(
			final Function<
				? super List<WayPoint>,
				? extends List<WayPoint>> mapper
		) {
			points(mapper.apply(_points));
			return this;
		}

		/**
		 * Create a new track-segment from the current builder state.
		 *
		 * @return a new track-segment from the current builder state
		 */
		@Override
		public TrackSegment build() {
			return of(_points, _extensions);
		}

	}

	/**
	 * Create a new track-segment builder.
	 *
	 * @return a new track-segment builder
	 */
	public static Builder builder() {
		return new Builder();
	}

	/* *************************************************************************
	 *  Static object creation methods
	 * ************************************************************************/

	/**
	 * Create a new track-segment with the given points.
	 *
	 * @since 1.5
	 *
	 * @param points the points of the track-segment
	 * @param extensions the extensions document
	 * @return a new track-segment with the given points
	 * @throws NullPointerException if the given {@code points} sequence is
	 *        {@code null}
	 */
	public static TrackSegment of(
		final List<WayPoint> points,
		final Document extensions
	) {
		return new TrackSegment(
			points,
			XML.extensions(XML.clone(extensions))
		);
	}

	/**
	 * Create a new track-segment with the given points.
	 *
	 * @param points the points of the track-segment
	 * @return a new track-segment with the given points
	 * @throws NullPointerException if the given {@code points} sequence is
	 *        {@code null}
	 */
	public static TrackSegment of(final List<WayPoint> points) {
		return of(points, null);
	}

	/* *************************************************************************
	 *  Java object serialization
	 * ************************************************************************/

	@Serial
	private Object writeReplace() {
		return new SerialProxy(SerialProxy.TRACK_SEGMENT, this);
	}

	@Serial
	private void readObject(final ObjectInputStream stream)
		throws InvalidObjectException
	{
		throw new InvalidObjectException("Serialization proxy required.");
	}

	void write(final DataOutput out) throws IOException {
		IO.writes(_points, WayPoint::write, out);
		IO.writeNullable(_extensions, IO::write, out);
	}

	static TrackSegment read(final DataInput in) throws IOException {
		return new TrackSegment(
			IO.reads(WayPoint::read, in),
			IO.readNullable(IO::readDoc, in)
		);
	}

	/* *************************************************************************
	 *  XML stream object serialization
	 * ************************************************************************/

	static XMLWriter<TrackSegment> xmlWriter(
		final Version version,
		final Function<? super Number, String> formatter
	) {
		return elem("trkseg",
			XMLWriter
				.elems(WayPoint.xmlWriter(version,"trkpt", formatter))
				.map(ts -> ts._points),
			XMLWriter.doc("extensions").map(gpx -> gpx._extensions)
		);
	}

	@SuppressWarnings("unchecked")
	static XMLReader<TrackSegment> xmlReader(
		final Version version,
		final Function<? super String, Length> lengthParser
	) {
		return XMLReader.elem(a -> new TrackSegment(
				(List<WayPoint>)a[0],
				XML.extensions((Document)a[1])
			),
			"trkseg",
			XMLReader.elems(WayPoint.xmlReader(version,"trkpt", lengthParser)),
			XMLReader.doc("extensions")
		);
	}

}


text:
function start(bot, botcontainer) {
	this.bot = bot;
	this.c = botcontainer;
	this.cl = this.c.cl;

	this.botinfo = this.c.botinfo;

	this.id = this.bot.userId;
	this.roomid = this.bot.roomId;

	this.avatarcount = 0;
	this.mode;

	this.votelog = {
		up: 0,
		down: 0,
		listeners: 0,
		details: new Array()
	}

	this.getfavoriterooms = function(cb) {
		var that = this;
		this.bot.getFavorites(function(data) {
			console.log(data);
			if (cb) {
				cb(data);
			}
		});
	}

	this.addroom = function(roomname, roomid) {
		this.botinfo.rooms[roomname] = roomid;
	}
	this.addplaylist = function(playlistname) {
		this.botinfo.playlists[playlistname] = new Array();
	}

	this.addsaying = function(phrase) {
		this.botinfo.sayings.push(phrase);
	}
	this.addsayings = function(phrases) {
		for (var i = 0; i < phrases.length; i++) {
			this.addsaying(phrase[i]);
		}
	}

	this.sayphrase = function(num) {

	}
	this.sendmsg = function(msg, user) {
		if (typeof(user) != "undefined") {
			this.bot.speak("@" + user + " " + msg);
		}
		else {
			this.bot.speak(msg);
		}
	}
	this.whisper = function(userid, msg, cb) {
		var that = this;
		this.bot.pm(msg, userid, function(data) {
			if (data.success) {
				that.cl.logmessage("success: true");
			}
		});
	}
	this.makewhisper = function(username, msg) {
		var that = this;
		this.getuserinfo(username, false, function(data) {
			var userid = data._id;
			that.whisper(userid, msg);
		});

	}
	this.couriermsg = function(text) {
		console.log(text);
		var msg = text.split("/say ")[1];

		this.sendmsg(msg);
	}

	this.vote = function(direction, cb) {
		this.bot.vote(direction, cb);
	}
	this.voteup = function(cb) {
		this.vote("up", cb);
	}
	this.votedown = function(cb) {
		this.vote("down", cb);
	}

	this.logvotes = function(metadata) {
		var vl = this.recordvotes(metadata);

		this.cl.logdata("up: " + vl["up"]);
		this.cl.logdata("for: " + vl["for"]);
		this.cl.logdata("listeners: " + vl["listeners"] + "\n");

		if (vl["for"] >= 0.5) {
			var songdata = metadata.current_song;
			var songname = songdata.metadata.song;
			this.addsong(songdata);

			this.sendmsg(":sound:" + songname + " has been added by popular demand.");
		}
	}

	this.recordvotes = function(metadata) {
		var listeners = metadata.listeners;
		var votedata = metadata.votelog;

		var uptotal = metadata.upvotes;
		var downtotal = metadata.downvotes;

		var percentageinfavor = uptotal/listeners;
		var percentageagainst = downtotal/listeners;

		var votelog = {}

		votelog["up"] = uptotal;
		votelog["down"] = downtotal;
		votelog["listeners"] = listeners;
		votelog["for"] = percentageinfavor;
		votelog["against"] = percentageagainst;

		return votelog;
	}
	this.getplaylistlength = function(cb) {
		var that = this;
		this.bot.playlistAll(function(data) {
			var list = data.list;
			that.cl.logdata("Playlist length: " + list.length);
			if (cb) {
				cb(list.length);
			}
		});
	}
	this.snaganimation = function(cb) {
		this.bot.snag(cb);
	}
	this.queuesong = function(songid, songname, cb) {
		var that = this;
		this.getplaylistlength(function(length) {
			that.bot.playlistAdd(songid, length, function(data) {
				if (data.success) {
					that.cl.logmessage("You have just added " + songname + " to your queue!");
				}
				else {
					that.cl.logerror("Could not add " + songname + " to queue.");
				}
			})
		});
	}
	this.addsong = function(songdata, cb) {
		var that = this;
		var songid = songdata._id;
		var songname = songdata.metadata.song;

		this.snaganimation(function() {
			that.voteup(function() {
				that.queuesong(songid, songname, cb);
			});
		});
	}

	this.skipsong = function(cb) {
		var that = this;
		this.bot.skip(function(data) {
			if (data.success) {
				that.cl.logmessage("You just skipped this song.");
			}
			else {
				that.cl.logerror("You can't skip this song.");
			}
		});
	}

	this.addfan = function(fanname, cb) {
		var that = this;
		this.getuserinfo(fanname, false, function(data) {
			var fanid = data._id;
			that.bot.becomeFan(fanid, function(data) {
				if (data.success) {
					that.cl.logmessage("You just became a fan of " + fanname + ".");
				}
			});
		});
	}

	this.removefan = function(fanname) {
		var that = this;
		this.getuserinfo(fanname, false, function(data) {
			var fanid = data._id;
			that.bot.removeFan(fanid, function(data) {
				if (data.success) {
					that.cl.logcomment("You just unfanned " + fanname + ".");
				}
			});
		});
	}

	this.addfavoriteroom = function() {
		var that = this;
		this.bot.roomInfo(function(data) {
			var roomname = data.room.name;
			var roomid = data.room.roomid;
			var myroom = that.roomid;

			if (roomid != myroom) {
				that.bot.addFavorite(roomid);
				that.cl.logmessage(roomname + " has been added to your favorites!");
			}
			else {
				that.cl.logmessage(roomname + " is already one of your favorite rooms!");
			}
		});
	}

	this.becomedj = function(cb) {
		var that = this;
		this.bot.addDj(function(data) {
			if (data.success) {
				that.cl.logmessage("You just hopped on the booth.")
			}
		});
	}

	this.enddj = function(cb) {
		var that = this;
		this.bot.remDj(this.id, function(data) {
			if (data.success) {
				that.cl.logmessage("You just hopped off the booth.");
			}
		});
	}

	this.enterroom = function(roomid, cb) {
		this.bot.roomRegister(roomid, cb);
	}
	this.getrooms = function(num, cb) {
		var that = this;
		this.bot.listRooms(num, function(data) {
			that.cl.logdata(data.rooms);
			if (cb) {
				cb(data);
			}
		});
	}
	this.getroominfo_raw = function(text, splitstring, songinfo) {
		var that = this;
		var roomname = text.split(splitstring)[1];
		if (roomname) {
			roomname = roomname.toLowerCase();
			this.getspecificroominfo(roomname);
		}
		else {
			this.getroominfo(songinfo);
		}
	}
	this.getspecificroominfo = function(roomname) {
		var that = this;
		this.getrooms(20, function(data) {
			var found = false;
			for (var i = 0; i < data.rooms.length; i++) {
				var thisroom = data.rooms[i][0];
				var thisroomname = thisroom.name_lower;
				var thisroomid = thisroom.roomid;
				if (thisroomname = roomname) {
					console.log(thisroom);
					found = true;
				}
			}
			if (!found) {
				that.cl.logerror(roomname + " room not found... yet.");
			}
		});
	}
	this.getroominfo = function(songinfo, cb) {
		var that = this;
		this.bot.roomInfo(songinfo, function(data) {
			console.log(data);
		});
	}
	this.getroomusers = function(songinfo, cb) {
		var that = this;
		this.bot.roomInfo(songinfo, function(data) {
			var users = data.users;
			for (var i = 0; i < users.length; i++) {
				var user = users[i];
				for (var key in user) {
					that.cl.logdata(key + ": " + user[key]);
				}
				console.log("\n");
			}
		});
	}
	this.getuserinfo_raw = function(text, splitstring, songinfo, cb) {
		var username = text.split(splitstring)[1];
		this.getuserinfo(username, songinfo, cb);
	}
	this.getuserinfo = function(username, songinfo, cb) {
		var that = this;
		this.bot.roomInfo(songinfo, function(data) {
			var allusers = data.users;
			var found = false;
			for (var i = 0; i < allusers.length; i++) {
				var thisuser = allusers[i];
				var thisusername = thisuser.name;
				if (thisusername == username) {
					//that.cl.logdata(thisuser);
					for (var key in thisuser) {
						that.cl.logdata(key + ": " + thisuser[key]);
					}
					console.log("\n");
					found = true;
					if (cb) {
						cb(thisuser);
					}
				}
			}
			if (!found) {
				that.cl.logerror(username + " not found.");
			}
		});
	}
	this.getsonginfo = function(pm) {
		var that = this;
		this.bot.roomInfo(true, function(data) {
			var roommetadata = data.room.metadata;
			var songlog = data.room.metadata.songlog;
			var currentsong = songlog[songlog.length - 1];
			var currentsongmd = currentsong.metadata;
			if (pm) {
				for (var key in currentsong) {
					that.cl.logdata(key + ": " + currentsong[key]);
				}
				console.log("\n");
				for (var key in currentsongmd) {
					that.cl.logdata(key + ": " + currentsongmd[key]);
				}
			}
			else {
				that.sendmsg(":sound::" + currentsong.metadata.song + " by " + currentsong.metadata.artist + ". " + roommetadata.upvotes + "+ // " + roommetadata.downvotes + "-.");
			}
		});
	}
	this.sendtoroom_raw = function(text, splitstring, cb) {
		var roomname = text.split(splitstring)[1];
		this.sendtoroom(roomname, cb);
	}
	this.sendtoroom = function(roomname, cb) {
		var roomid = this.botinfo.rooms[roomname];
		if (roomid) {
			this.enterroom(roomid, cb);
		}
		else {
			this.cl.logerror(roomname + " is not a listed room.");
		}
	}
	this.whisperhelp = function(userid) {
		this.whisper(userid, this.botinfo.sayings.help);
	}
	this.makewhisperhelp = function(username) {
		this.makewhisper(username, this.botinfo.sayings.help)
	}
	return this;
}

exports.start = start;


text:
<!doctype html>

	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<title>"components/UIRouter" | @uirouter/react</title>
	<meta name="description" content="Documentation for @uirouter/react">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<link rel="stylesheet" href="../assets/css/main.css">

						Search
						<input id="tsd-search-field" type="text" />

Preparing search index...

The search index is not available

					@uirouter/react

						Options

								All

Public

Public/Protected

All

							<input type="checkbox" id="tsd-filter-inherited" checked />
							Inherited
							<input type="checkbox" id="tsd-filter-externals" checked />
							Externals

					Menu

					@uirouter/react

					"components/UIRouter"

Module "components/UIRouter"

Index

Interfaces

UIRouter<wbr>Props

Variables

UIRouter<wbr>Consumer

UIRouter<wbr>Context

Functions

UIRouter

Variables

Const UIRouter<wbr>Consumer

UIRouter<wbr>Consumer: ExoticComponent<ConsumerProps<UIRouter>> = UIRouterContext.Consumer

Defined in src/components/UIRouter.tsx:23

deprecated

use useRouter or React.useContext(UIRouterContext)

Const UIRouter<wbr>Context

UIRouter<wbr>Context: Context<UIRouter> = React.createContext<_UIRouter>(undefined)

Defined in src/components/UIRouter.tsx:21

This React Context component lets you access the UIRouter instance anywhere in the component tree

When using hooks, use useRouter instead.

Example:

<UIRouterContext.Consumer>
 {router => <MyComponent router={router} />}
</UIRouterContext.Consumer>

Functions

UIRouter

UIRouter(props: UIRouterProps): Element

Defined in src/components/UIRouter.tsx:134

This is the root UIRouter component, needed for initialising the router and setting up configuration properly.
									Every other component from this library needs to be a descendant of <UIRouter>, so ideally you want to use it as root of your app.

Config

There are two ways to set up the router: you can either bootstrap it manually and pass the instance to the component,
								or pass the necessary information and let the component do it for you.

Component Setup (suggested)

Setting up the router via this component is pretty straightforward:

const Home = () => <div>Home</div>;

const states = [{
  name: 'home',
  component: Home,
  url: '/home'
}];

const plugins = [pushStateLocationPlugin];

ReactDOM.render(
  <UIRouter plugins={plugins} states={states}>
    <UIView />
  </UIRouter>,
  document.getElementById('root'),
);

Optionally, you may want to access the router instance once to setup additional configuration, like registering TransitionHooks.
								To do so, you may pass a config function that will be called with the newly created router instance as argument:

const config = router => {
  // register home state as the intial one
  router.urlService.rules.initial({ state: 'home' });
}

ReactDOM.render(
  <UIRouter plugins={plugins} states={states} config={config}>
    <UIView />
  </UIRouter>,
  document.getElementById('root'),
);

Manual Setup (advanced)

Alternatively you may setup the router manually (i.e. extracting the router configuration to another file).
								You can do that by creating a new instance of the router and pass it to the component, this way the component will skip the previous props and just use the provided instance.

NB: since you are manually bootstrapping the router, you must register the servicesPlugin as well as the location plugin of your choice (in this example the pushStateLocationPlugin).

const router = new UIRouterReact();
// activate plugins
router.plugin(servicesPlugin);
router.plugin(pushStateLocationPlugin);
// register states
router.stateRegistry.register(someState);
// start the router
router.start();

ReactDOM.render(
  <UIRouter router={router}>
    <UIView />
  </UIRouter>,
  document.getElementById("root")
);

Parameters

props: UIRouterProps

Returns Element

						UIRouter<wbr>React

						Services

						State<wbr>Service

						State<wbr>Registry

						Transition<wbr>Service

						Url<wbr>Service

						Url<wbr>Config

						Url<wbr>Rules

						Interfaces

						React<wbr>State<wbr>Declaration

						Components

						UIRouter

						UIView

						UISref

						UISref<wbr>Active

						React <wbr>Hooks

						use<wbr>Router

						use<wbr>Sref

						use<wbr>Sref<wbr>Active

						use<wbr>Sref<wbr>Active<wbr>Exact

						use<wbr>Transition<wbr>Hook

						use<wbr>Current<wbr>State<wbr>And<wbr>Params

						use<wbr>OnState<wbr>Changed

						use<wbr>IsActive

						Other

						Transition

						Trace

						UIRouter<wbr>Props

						UIRouter<wbr>Consumer

						UIRouter<wbr>Context

						UIRouter

Legend

Generated using TypeDoc


text:
define(
	 ({
		viewer: {
			common: {
				close: "Sulje"
			},
			loading: {
				step1: "Ladataan sovellusta",
				step2: "Ladataan aineistoa",
				step3: "Käynnistetään",
				loadBuilder: "Vaihdetaan luontitoimintoon",
				long: "Karttapäiväkirjaa alustetaan",
				long2: "Odota hetki",
				failButton: "Lataa sovellus uudelleen"
			},
			signin: {
				title: "Todennus on pakollinen",
				explainViewer: "Kirjaudu sisään %PORTAL_LINK%-sivuston tilillä käyttääksesi sovellusta.",
				explainBuilder: "Kirjaudu sisään %PORTAL_LINK%-sivuston tilillä määrittääksesi sovelluksen."
			},
			errors: {
				boxTitle: "Tapahtui virhe",
				invalidConfig: "Virheellinen määritys",
				invalidConfigNoApp: "Web-karttasovelluksen tunnusta ei ole määritetty index.html-tiedostossa.",
				unspecifiedConfigOwner: "Valtuutettua omistajaa ei ole määritetty.",
				invalidConfigOwner: "Sovelluksen omistajalla ei ole valtuuksia.",
				createMap: "Karttaa ei voi luoda",
				invalidApp: "Kohdetta %TPL_NAME% ei ole, tai se ei ole käytettävissä.",
				appLoadingFail: "Tapahtui virhe, eikä %TPL_NAME% latautunut oikein.",
				notConfiguredDesktop: "Sovellusta ei ole vielä määritetty.",
				notConfiguredMobile: "Nykyinen näytön resoluutio ei tue kohteen %TPL_NAME% luontitoimintoa.",
				notAuthorized: "Sinulla ei ole tämän sovelluksen käyttöoikeuksia",
				noBuilderIE: "Luontitoimintoa ei tueta Internet Explorerin versiota %VERSION% edeltävissä versioissa. %UPGRADE%",
				noViewerIE: "Sovellusta ei tueta Internet Explorerin versiota %VERSION% edeltävissä versioissa. %UPGRADE%",
				upgradeBrowser: "Päivitä selain.",
				mapLoadingFail: "Tapahtui virhe, eikä kartta latautunut oikein.",
				signOut: "Kirjaudu ulos"
			},
			mobileView: {
				tapForDetails: "Saat tiedot näkyviin napauttamalla",
				clickForDetails: "Lisätietoja",
				swipeToExplore: "Tutki pyyhkäisemällä",
				tapForMap: "Siirry takaisin karttaan napauttamalla",
				clickForMap: "TAKAISIN KARTTAAN"
			},
			floatLayout: {
				scroll: "Vieritä"
			},
			sideLayout: {
				scroll: "Saat lisää tietoja näkyviin vierittämällä alaspäin."
			},
			mainStage: {
				back: "Takaisin"
			},
			headerFromCommon: {
				storymapsText: "Tarinakartta",
				builderButton: "Muokkaa",
				facebookTooltip: "Jaa Facebookissa",
				twitterTooltip: "Jaa Twitterissä",
				bitlyTooltip: "Hanki lyhyt linkki",
				templateTitle: "Määritä mallin nimi",
				templateSubtitle: "Määritä mallin alaotsikko",
				share: "Jaa"
			},
			overviewFromCommon: {
				title: "Yleiskatsauskartta"
			},
			legendFromCommon: {
				title: "Selite"
			},
			shareFromCommon: {
				copy: "Kopioi",
				copied: "Kopioitu",
				open: "Avaa",
				embed: "Upota Web-sivulle",
				embedExplain: "Käytä seuraavaa HTML-koodia päiväkirjan upottamiseen Web-sivulle.",
				size: "Koko (leveys/korkeus):"
			}
        }
    })
);


text:
#ifndef __ADXL335_H__
#define __ADXL335_H__

#include <Arduino.h>

// macro definitions of Analog read pins
#ifndef X_AXIS_PIN
#define X_AXIS_PIN A0
#endif
#ifndef Y_AXIS_PIN
#define Y_AXIS_PIN A1
#endif
#ifndef Z_AXIS_PIN
#define Z_AXIS_PIN A2
#endif

// amplitude of the 10bit-ADC of Arduino is 1024LSB, using as default
#ifndef ADC_AMPLITUDE
#define ADC_AMPLITUDE 1024
#endif
#ifndef ADC_REF
#define ADC_REF 5  // ADC reference is 5v
#endif

// accleration of X-AXIS is 0g, the voltage of X-AXIS is 1.22v
#ifndef ZERO_X
#define ZERO_X 1.22
#endif
#ifndef ZERO_Y
#define ZERO_Y 1.22  //
#endif
#ifndef ZERO_Z
#define ZERO_Z 1.25  //
#endif

// sensitivity of X/Y/Z axis is 0.25v/g
#ifndef SENSITIVITY
#define SENSITIVITY 0.25
#endif

class ADXL335 {
  private:
    void pinsInit();
    float scale;
  public:
    void begin();
    void getXYZ(int* x, int* y, int* z);
    void getAcceleration(float* ax, float* ay, float* az);
    float getAccelerationX();
    float getAccelerationY();
    float getAccelerationZ();
};

#endif


text:
require([
	"dojo/_base/Deferred",
	"dojo/store/Cache",
	"dojo/store/JsonRest",
	"dojo/store/Memory",
	"dojo/store/Observable",
	"dojo/ready", // dojo.ready
	"dijit/registry",
	"doh/runner",	//doh functions
	"dojox/mobile/EdgeToEdgeStoreList",
	"dojox/mobile/RoundRectStoreList",
	"dojox/mobile/parser",
	"dojox/mobile",
	"dojox/mobile/compat"
], function(Deferred, Cache, JsonRest, Memory, Observable, ready, registry, runner, EdgeToEdgeStoreList, RoundRectStoreList){

	var CLASS_NAME;
	var DataList;
	var testName;

	if(IsEdgeToEdgeList){
		CLASS_NAME = "mblEdgeToEdgeList";
		DataList = EdgeToEdgeStoreList;
		testName = "dojox.mobile.test.doh.EdgeToEdgeStoreList";
	}else{
		CLASS_NAME = "mblRoundRectList";
		DataList = RoundRectStoreList;
		testName = "dojox.mobile.test.doh.RoundRectStoreList";
	}

	var static_data2 = [
		{label: "Apple", 	moveTo: "dummy"},
		{label: "Banana", 	moveTo: "dummy"},
		{label: "Cherry", 	moveTo: "dummy"},
		{label: "Grape", 	moveTo: "dummy"},
		{label: "Kiwi", 	moveTo: "dummy"},
		{label: "Lemon", 	moveTo: "dummy"},
		{label: "Melon", 	moveTo: "dummy"},
		{label: "Orange", 	moveTo: "dummy"},
		{label: "Peach", 	moveTo: "dummy"}
	];
	var url = "settings2.json";
	store1 = new JsonRest({idProperty:"label", target: url});
	store2 = Observable(new Memory({idProperty:"label", data: static_data2}));
	store1.__counter = store2.__counter = 1;
	store = store1;

	// switch to the selected store
	switchTo = function(store){
		window.store = store;
		registry.byId("list").setStore(store);
	};
	// add a new item
	add1 = function(){
		store.add({
			label: "New Item "+(store.__counter++),
			icon: "../images/i-icon-1.png",
			moveTo: "dummy"
		});
	};
	// delete the added item
	delete1 = function(){
		if(store.__counter > 1){
			store.remove("New Item "+(--store.__counter));
		}
	};

	ready(function(){
		runner.register(testName, [
			{
				name: DataList + " Verification",
				timeout: 4000,
				runTest: function(){
					var d = new runner.Deferred();
					setTimeout(d.getTestCallback(function(){
						var demoWidget = registry.byId("dojox_mobile_ListItem_0");
						runner.assertEqual('mblListItem', demoWidget.domNode.className);
						runner.assertEqual('mblImageIcon mblListItemIcon', demoWidget.iconNode.className);
						runner.assertTrue(demoWidget.iconNode.src.search(/i-icon-1.png/i) != -1);
						runner.assertEqual('mblListItemRightIcon', demoWidget.rightIconNode.className);
						runner.assertEqual('mblListItemLabel', demoWidget.labelNode.className);
						runner.assertEqual('Wi-Fi', demoWidget.labelNode.innerHTML);
						runner.assertEqual('mblDomButtonArrow mblDomButton', demoWidget.rightIconNode.childNodes[0].className);

						demoWidget = registry.byId("dojox_mobile_ListItem_3");
						runner.assertEqual('mblListItem mblListItemSelected', demoWidget.domNode.className);
						runner.assertEqual('mblImageIcon mblListItemIcon', demoWidget.iconNode.className);
						runner.assertTrue(demoWidget.iconNode.src.search(/i-icon-4.png/i) != -1);
						runner.assertEqual('mblListItemRightIcon', demoWidget.rightIconNode.className);
						runner.assertEqual('mblListItemLabel', demoWidget.labelNode.className);
						runner.assertEqual('General', demoWidget.labelNode.innerHTML);
						runner.assertEqual('mblDomButtonArrow mblDomButton', demoWidget.rightIconNode.childNodes[0].className);

					}),500);
					return d;
				}
			},
			{
				name: DataList + " Verification2",
				timeout: 10000,
				runTest: function(){
					var d = new doh.Deferred();
					setTimeout(d.getTestCallback(function(){

						switchTo(store2);
						var demoWidget = registry.byId("dojox_mobile_ListItem_13");
						runner.assertEqual('mblListItem', demoWidget.domNode.className);
						runner.assertEqual(null, demoWidget.iconNode);
						runner.assertEqual('mblListItemLabel', demoWidget.labelNode.className);
						runner.assertEqual('Grape', demoWidget.labelNode.innerHTML);
						runner.assertEqual('mblDomButtonArrow mblDomButton', demoWidget.rightIconNode.childNodes[0].className);

					}),2500);
					return d;
				}
			},
			{
				name: DataList + " Verification3",
				timeout: 10000,
				runTest: function(){
					var d = new runner.Deferred();
					setTimeout(d.getTestCallback(function(){

						add1();
						add1();
						add1();
						var demoWidget = registry.byId("dojox_mobile_ListItem_19");
						runner.assertEqual('mblListItem', demoWidget.domNode.className);
						runner.assertEqual('mblImageIcon mblListItemIcon', demoWidget.iconNode.className);
						runner.assertEqual('mblListItemLabel', demoWidget.labelNode.className);
						runner.assertEqual('New Item 1', demoWidget.labelNode.innerHTML);
						runner.assertEqual('mblDomButtonArrow mblDomButton', demoWidget.rightIconNode.childNodes[0].className);

						delete1();
						demoWidget = registry.byId("dojox_mobile_ListItem_21");
						runner.assertTrue(!demoWidget);

						demoWidget = registry.byId("dojox_mobile_ListItem_20");
						runner.assertEqual('mblListItem', demoWidget.domNode.className);
						runner.assertEqual('mblImageIcon mblListItemIcon', demoWidget.iconNode.className);
						runner.assertEqual('mblListItemLabel', demoWidget.labelNode.className);
						runner.assertEqual('New Item 2', demoWidget.labelNode.innerHTML);
						runner.assertEqual('mblDomButtonArrow mblDomButton', demoWidget.rightIconNode.childNodes[0].className);
					}),1500);
					return d;
				}
			}
		]);
		runner.run();
	});
});


text:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using BowlingScore.Web.Infrastructure;
using BowlingScore.Web.Models;

namespace BowlingScore.Web.Controllers
{
    public class ScoreController : ApplicationController
    {
        // GET: Score
        [Route("")]
        public ActionResult Index()
        {
            return View();
        }

        [Route("Score/Calculate")]
        [HttpPost]
        public ActionResult Calculate(BowlingSession session)
        {
            return JsonNet(new BowlingSessionViewModel(session));
        }

        private class BowlingSessionViewModel
        {
            public BowlingSessionViewModel(BowlingSession session)
            {
                Score = session.Score;
            }

            public int Score { get; set; }
        }
    }
}


text:
<!doctype html>

  <meta charset="utf-8"/>
  <meta name="theme-color" content="#232A40">
  <meta name="msapplication-navbutton-color" content="#232A40">
  <meta name="apple-mobile-web-app-status-bar-style" content="#232A40">
  <title>laure.nz</title>
  <link rel="stylesheet" href="font-awesome/css/font-awesome.min.css">
  <link rel="stylesheet" href="style.css">
  <link rel="icon" type="image/png" href="/favicon192.png" sizes=192x192>
  <link rel="icon" type="image/png" href="/favicon256.png" sizes=256x256>

laure.nz

    Hosting: on Asteroids
    ·
    Font: Awesome
    ·
    Picture: ISS007-E-10807


text:
<?php
namespace gossi\trixionary\action\relationship;

use gossi\trixionary\domain\FunctionPhaseDomain;
use keeko\framework\foundation\AbstractAction;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\OptionsResolver\OptionsResolver;

/**
 * Reads the relationship of function_phase to root_skill
 *
 * This code is automatically created. Modifications will probably be overwritten.
 *
 * @author Thomas Gossmann
 */
class FunctionPhaseRootSkillReadAction extends AbstractAction {

	/**
	 * @param OptionsResolver $resolver
	 */
	public function configureParams(OptionsResolver $resolver) {
		$resolver->setRequired(['id']);
	}

	/**
	 * Automatically generated run method
	 *
	 * @param Request $request
	 * @return Response
	 */
	public function run(Request $request) {
		$id = $this->getParam('id');
		$domain = new FunctionPhaseDomain($this->getServiceContainer());
		$payload = $domain->read($id);
		return $this->responder->run($request, $payload);
	}
}


text:
module NumbersAndWords
  module Strategies
    module FiguresConverter
      module Languages
        module Families
          module Cyrillic
            include Base

            def gender
              @current_capacity ||= 0

              case @current_capacity
              when 1
                :female
              when 0
                options.gender.result
              else
                :male
              end
            end

            [:ones, :tens_with_ones].each do |method_name|
              define_method(method_name) {
                super({:gender => gender})
              }
            end

            def megs
              super({:number => @figures.number_in_capacity(@current_capacity)})
            end
          end
        end
      end
    end
  end
end


text:
using System;
using System.Collections.Generic;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;

namespace MoreOnCode.Screens
{
	public abstract class Screen
	{
		protected Game Parent
			{ get { return ScreenManager.ParentGame; } }

		protected GamePadState GamePad1
			{ get { return ScreenManager.GamePad1; } }
		protected GamePadState GamePad2
			{ get { return ScreenManager.GamePad2; } }
		protected GamePadState GamePad3
			{ get { return ScreenManager.GamePad3; } }
		protected GamePadState GamePad4
			{ get { return ScreenManager.GamePad4; } }

		public Screen() { }

		public abstract void Update (GameTime gameTime);
		public abstract void Draw (GameTime gameTime, SpriteBatch batch);

		public virtual void OnShow() { }
		public virtual void OnHide() { }
	}
}


text:
<?php
namespace Payum\Core\Tests\Mocks\Action;

use Payum\Core\Action\ActionInterface;
use Payum\Core\GatewayAwareInterface;
use Payum\Core\GatewayAwareTrait;
use Payum\Core\Tests\Mocks\Model\AuthorizeRequiredModel;
use Payum\Core\Request\Capture;
use Payum\Core\Tests\Mocks\Request\AuthorizeRequest;

class CaptureAction implements ActionInterface, GatewayAwareInterface
{
    use GatewayAwareTrait;

    /**
     * {@inheritDoc}
     */
    public function execute($request)
    {
        /** @var $request Capture */
        if ($request->getModel() instanceof AuthorizeRequiredModel) {
            $this->gateway->execute(new AuthorizeRequest());
        }

        //sell code here.
    }

    /**
     * {@inheritDoc}
     */
    public function supports($request)
    {
        return $request instanceof Capture;
    }
}


text:
package us.thirdmillenium.desktoptrainer.desktop;

import com.badlogic.gdx.backends.lwjgl.LwjglApplication;
import com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration;
import us.thirdmillenium.desktoptrainer.DesktopTrainer;
import us.thirdmillenium.desktoptrainer.geneticalgorithm.GeneticAlgorithm;

public class DesktopLauncher {

    public enum Mode { DISPLAY, GA }

	public static void main (String[] arg) {
        Mode mode = true ? Mode.DISPLAY : Mode.GA;

        LwjglApplicationConfiguration config;

        switch(mode) {

            case DISPLAY:
                config = new LwjglApplicationConfiguration();

                config.title = "Desktop Analyzer";

                config.width  = (25 * 32) / 2; // 400
                config.height = (38 * 32) / 2; // 608

                //config.x = -1;
                //config.y = -1;

                //config.fullscreen = true;

                new LwjglApplication(new DesktopTrainer(), config);
                break;

            case GA:
                // Generate a Genetic Algorithm object
                config = new LwjglApplicationConfiguration();

                config.title = "Desktop Trainer";

                config.width = 200;
                config.height = 200;

                config.x = -1;
                config.y = -1;

                //config.fullscreen = true;

                new LwjglApplication(new GeneticAlgorithm(), config);
                break;
        }
	}
}