text:
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information

namespace Dnn.PersonaBar.Pages.Components.Prompt.Models
{
    public class PageModel : PageModelBase
    {
        public PageModel()
        {
        }

        public PageModel(DotNetNuke.Entities.Tabs.TabInfo tab) : base(tab)
        {
            this.Container = tab.ContainerSrc;
            this.Url = tab.Url;
            this.Keywords = tab.KeyWords;
            this.Description = tab.Description;
        }

        public string Container { get; set; }

        public string Url { get; set; }

        public string Keywords { get; set; }

        public string Description { get; set; }
    }
}


text:
class PhysicsServerSharedMemory : public PhysicsServer
{
	struct PhysicsServerSharedMemoryInternalData* m_data;

protected:
	void releaseSharedMemory();

public:
	PhysicsServerSharedMemory(struct CommandProcessorCreationInterface* commandProcessorCreator, class SharedMemoryInterface* sharedMem, int bla);
	virtual ~PhysicsServerSharedMemory();

	virtual void setSharedMemoryKey(int key);

	//todo: implement option to allocated shared memory from client
	virtual bool connectSharedMemory(struct GUIHelperInterface* guiHelper);

	virtual void disconnectSharedMemory(bool deInitializeSharedMemory);

	virtual void processClientCommands();

	virtual void stepSimulationRealTime(double dtInSec, const struct b3VRControllerEvent* vrEvents, int numVREvents, const struct b3KeyboardEvent* keyEvents, int numKeyEvents, const struct b3MouseEvent* mouseEvents, int numMouseEvents);

	virtual void enableRealTimeSimulation(bool enableRealTimeSim);
	virtual bool isRealTimeSimulationEnabled() const;

	virtual void reportNotifications();

	//bool	supportsJointMotor(class btMultiBody* body, int linkIndex);

	///The pickBody method will try to pick the first body along a ray, return true if succeeds, false otherwise
	virtual bool pickBody(const btVector3& rayFromWorld, const btVector3& rayToWorld);
	virtual bool movePickedBody(const btVector3& rayFromWorld, const btVector3& rayToWorld);
	virtual void removePickingConstraint();

	virtual const btVector3& getVRTeleportPosition() const;
	virtual void setVRTeleportPosition(const btVector3& vrTeleportPos);

	virtual const btQuaternion& getVRTeleportOrientation() const;
	virtual void setVRTeleportOrientation(const btQuaternion& vrTeleportOrn);

	//for physicsDebugDraw and renderScene are mainly for debugging purposes
	//and for physics visualization. The idea is that physicsDebugDraw can also send wireframe
	//to a physics client, over shared memory
	void physicsDebugDraw(int debugDrawFlags);
	void renderScene(int renderFlags);
	void syncPhysicsToGraphics();

	void enableCommandLogging(bool enable, const char* fileName);
	void replayFromLogFile(const char* fileName);
};

#endif  //PHYSICS_SERVER_EXAMPLESHARED_MEMORY_H

redpajama_set_name: RedPajamaGithub


text:
<!DOCTYPE html>

  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">

  <title>ctypes.test.test_anon — ArcherBashPYDocs 1.0.0. documentation</title>

  <link href='https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic|Roboto+Slab:400,700|Inconsolata:400,700&subset=latin,cyrillic' rel='stylesheet' type='text/css'>

    <link rel="stylesheet" href="../../../_static/css/theme.css" type="text/css" />

    <link rel="top" title="ArcherBashPYDocs 1.0.0. documentation" href="../../../index.html"/>
        <link rel="up" title="ctypes.test" href="../test.html"/>

           ArcherBashPYDocs

  <form id="rtd-search-form" class="wy-form" action="../../../search.html" method="get">
    <input type="text" name="q" placeholder="Search docs" />
    <input type="hidden" name="check_keywords" value="yes" />
    <input type="hidden" name="area" value="default" />
  </form>

        ArcherBashPYDocs

Docs »

Module code »

ctypes »

ctypes.test »

ctypes.test.test_anon

Source code for ctypes.test.test_anon

import unittest
from ctypes import *

[docs]class AnonTest(unittest.TestCase):

[docs]    def test_anon(self):
        class ANON(Union):
            _fields_ = [("a", c_int),
                        ("b", c_int)]

        class Y(Structure):
            _fields_ = [("x", c_int),
                        ("_", ANON),
                        ("y", c_int)]
            _anonymous_ = ["_"]

        self.assertEqual(Y.a.offset, sizeof(c_int))
        self.assertEqual(Y.b.offset, sizeof(c_int))

        self.assertEqual(ANON.a.offset, 0)
        self.assertEqual(ANON.b.offset, 0)

[docs]    def test_anon_nonseq(self):
        # TypeError: _anonymous_ must be a sequence
        self.assertRaises(TypeError,
                              lambda: type(Structure)("Name",
                                                      (Structure,),
                                                      {"_fields_": [], "_anonymous_": 42}))

[docs]    def test_anon_nonmember(self):
        # AttributeError: type object 'Name' has no attribute 'x'
        self.assertRaises(AttributeError,
                              lambda: type(Structure)("Name",
                                                      (Structure,),
                                                      {"_fields_": [],
                                                       "_anonymous_": ["x"]}))

[docs]    def test_nested(self):
        class ANON_S(Structure):
            _fields_ = [("a", c_int)]

        class ANON_U(Union):
            _fields_ = [("_", ANON_S),
                        ("b", c_int)]
            _anonymous_ = ["_"]

        class Y(Structure):
            _fields_ = [("x", c_int),
                        ("_", ANON_U),
                        ("y", c_int)]
            _anonymous_ = ["_"]

        self.assertEqual(Y.x.offset, 0)
        self.assertEqual(Y.a.offset, sizeof(c_int))
        self.assertEqual(Y.b.offset, sizeof(c_int))
        self.assertEqual(Y._.offset, sizeof(c_int))
        self.assertEqual(Y.y.offset, sizeof(c_int) * 2)

if __name__ == "__main__":
    unittest.main()

        © Copyright 2015, Weldon Henson.

  Built with Sphinx using a theme provided by Read the Docs.


text:
<?xml version="1.0" encoding="utf-8"?>
<doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping http://doctrine-project.org/schemas/orm/doctrine-mapping.xsd">
  <entity name="Multiservices\InventarioBundle\Entity\Proveedores" table="proveedores">
    <id name="codproveedor" type="integer" column="codproveedor">
      <generator strategy="IDENTITY"/>
    </id>
    <field name="nombre" type="string" column="nombre" length="45" nullable="false"/>
    <field name="ruc" type="string" column="ruc" length="13" nullable="false"/>
    <field name="direccion" type="string" column="direccion" length="50" nullable="false"/>
    <field name="codprovincia" type="integer" column="codprovincia" nullable="false"/>
    <field name="ciudad" type="string" column="ciudad" length="35" nullable="false"/>
    <field name="codentidad" type="integer" column="codentidad" nullable="true"/>
    <field name="cuentabancaria" type="string" column="cuentabancaria" length="20" nullable="true"/>
    <field name="codpostal" type="string" column="codpostal" length="5" nullable="true"/>
    <field name="telefono" type="string" column="telefono" length="14" nullable="false"/>
    <field name="movil" type="string" column="movil" length="14" nullable="false"/>
    <field name="email" type="string" column="email" length="35" nullable="false"/>
    <field name="web" type="string" column="web" length="45" nullable="true"/>
    <field name="borrado" type="string" column="borrado" length="1" nullable="true"/>
  </entity>
</doctrine-mapping>


text:
// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

/**
 * @fileoverview 'settings-multidevice-task-continuation-disabled-link'
 * creates a localized string with accessibility labels for the Phone Hub Task
 * continuation feature when the prerequisite Chrome Sync setting is not
 * enabled.
 *
 * The localized string is treated as a special case for accessibility
 * labelling since it contains two links, one to the Chrome Sync dependency
 * and the other to a Learn More page for Phone Hub.
 */

import '../../settings_shared.css.js';

import {I18nBehavior, I18nBehaviorInterface} from 'chrome://resources/ash/common/i18n_behavior.js';
import {loadTimeData} from 'chrome://resources/js/load_time_data.m.js';
import {html, mixinBehaviors, PolymerElement} from 'chrome://resources/polymer/v3_0/polymer/polymer_bundled.min.js';

import {Router} from '../../router.js';
import {routes} from '../os_route.js';

/**
 * @constructor
 * @extends {PolymerElement}
 * @implements {I18nBehaviorInterface}
 */
const SettingsMultideviceTaskContinuationDisabledLinkElementBase =
    mixinBehaviors([I18nBehavior], PolymerElement);

/** @polymer */
class SettingsMultideviceTaskContinuationDisabledLinkElement extends
    SettingsMultideviceTaskContinuationDisabledLinkElementBase {
  static get is() {
    return 'settings-multidevice-task-continuation-disabled-link';
  }

  static get template() {
    return html`{__html_template__}`;
  }

  /** @override */
  connectedCallback() {
    super.connectedCallback();

    const chromeSyncLink = this.shadowRoot.querySelector('#chromeSyncLink');
    if (chromeSyncLink) {
      chromeSyncLink.addEventListener(
          'click', this.onChromeSyncLinkClick_.bind(this));
    }
  }

  /**
   * @return {string} Localized summary of Task Continuation when Chrome Sync is
   *     turned off, formatted with correct aria-labels and click events.
   * @private
   */
  getAriaLabelledContent_() {
    const tempEl = document.createElement('div');
    tempEl.innerHTML = this.i18nAdvanced(
        'multidevicePhoneHubTaskContinuationDisabledSummary', {attrs: ['id']});

    tempEl.childNodes.forEach((node, index) => {
      // Text nodes should be aria-hidden
      if (node.nodeType === Node.TEXT_NODE) {
        const spanNode = document.createElement('span');
        spanNode.textContent = node.textContent;
        spanNode.id = `id${index}`;
        spanNode.setAttribute('aria-hidden', true);
        node.replaceWith(spanNode);
        return;
      }
    });

    const chromeSyncLink = tempEl.querySelector('#chromeSyncLink');
    const learnMoreLink = tempEl.querySelector('#learnMoreLink');

    chromeSyncLink.setAttribute(
        'aria-label',
        this.i18n('multidevicePhoneHubTaskContinuationSyncLabel'));
    learnMoreLink.setAttribute(
        'aria-label', this.i18n('multidevicePhoneHubLearnMoreLabel'));
    chromeSyncLink.href = '#';

    return tempEl.innerHTML;
  }

  /**
   * @param {!Event} event
   * @private
   */
  onChromeSyncLinkClick_(event) {
    event.preventDefault();
    window.open('chrome://settings/syncSetup/advanced');

    const openedBrowserAdvancedSyncSettingsEvent = new CustomEvent(
        'opened-browser-advanced-sync-settings',
        {bubbles: true, composed: true});
    this.dispatchEvent(openedBrowserAdvancedSyncSettingsEvent);
  }
}

customElements.define(
    SettingsMultideviceTaskContinuationDisabledLinkElement.is,
    SettingsMultideviceTaskContinuationDisabledLinkElement);


text:
<?php

namespace Google\Service\Directory;

class MobileDevice extends \Google\Collection
{
  protected $collection_key = 'otherAccountsInfo';
  /**
   * @var bool
   */
  public $adbStatus;
  protected $applicationsType = MobileDeviceApplications::class;
  protected $applicationsDataType = 'array';
  /**
   * @var string
   */
  public $basebandVersion;
  /**
   * @var string
   */
  public $bootloaderVersion;
  /**
   * @var string
   */
  public $brand;
  /**
   * @var string
   */
  public $buildNumber;
  /**
   * @var string
   */
  public $defaultLanguage;
  /**
   * @var bool
   */
  public $developerOptionsStatus;
  /**
   * @var string
   */
  public $deviceCompromisedStatus;
  /**
   * @var string
   */
  public $deviceId;
  /**
   * @var string
   */
  public $devicePasswordStatus;
  /**
   * @var string[]
   */
  public $email;
  /**
   * @var string
   */
  public $encryptionStatus;
  /**
   * @var string
   */
  public $etag;
  /**
   * @var string
   */
  public $firstSync;
  /**
   * @var string
   */
  public $hardware;
  /**
   * @var string
   */
  public $hardwareId;
  /**
   * @var string
   */
  public $imei;
  /**
   * @var string
   */
  public $kernelVersion;
  /**
   * @var string
   */
  public $kind;
  /**
   * @var string
   */
  public $lastSync;
  /**
   * @var bool
   */
  public $managedAccountIsOnOwnerProfile;
  /**
   * @var string
   */
  public $manufacturer;
  /**
   * @var string
   */
  public $meid;
  /**
   * @var string
   */
  public $model;
  /**
   * @var string[]
   */
  public $name;
  /**
   * @var string
   */
  public $networkOperator;
  /**
   * @var string
   */
  public $os;
  /**
   * @var string[]
   */
  public $otherAccountsInfo;
  /**
   * @var string
   */
  public $privilege;
  /**
   * @var string
   */
  public $releaseVersion;
  /**
   * @var string
   */
  public $resourceId;
  /**
   * @var string
   */
  public $securityPatchLevel;
  /**
   * @var string
   */
  public $serialNumber;
  /**
   * @var string
   */
  public $status;
  /**
   * @var bool
   */
  public $supportsWorkProfile;
  /**
   * @var string
   */
  public $type;
  /**
   * @var bool
   */
  public $unknownSourcesStatus;
  /**
   * @var string
   */
  public $userAgent;
  /**
   * @var string
   */
  public $wifiMacAddress;

  /**
   * @param bool
   */
  public function setAdbStatus($adbStatus)
  {
    $this->adbStatus = $adbStatus;
  }
  /**
   * @return bool
   */
  public function getAdbStatus()
  {
    return $this->adbStatus;
  }
  /**
   * @param MobileDeviceApplications[]
   */
  public function setApplications($applications)
  {
    $this->applications = $applications;
  }
  /**
   * @return MobileDeviceApplications[]
   */
  public function getApplications()
  {
    return $this->applications;
  }
  /**
   * @param string
   */
  public function setBasebandVersion($basebandVersion)
  {
    $this->basebandVersion = $basebandVersion;
  }
  /**
   * @return string
   */
  public function getBasebandVersion()
  {
    return $this->basebandVersion;
  }
  /**
   * @param string
   */
  public function setBootloaderVersion($bootloaderVersion)
  {
    $this->bootloaderVersion = $bootloaderVersion;
  }
  /**
   * @return string
   */
  public function getBootloaderVersion()
  {
    return $this->bootloaderVersion;
  }
  /**
   * @param string
   */
  public function setBrand($brand)
  {
    $this->brand = $brand;
  }
  /**
   * @return string
   */
  public function getBrand()
  {
    return $this->brand;
  }
  /**
   * @param string
   */
  public function setBuildNumber($buildNumber)
  {
    $this->buildNumber = $buildNumber;
  }
  /**
   * @return string
   */
  public function getBuildNumber()
  {
    return $this->buildNumber;
  }
  /**
   * @param string
   */
  public function setDefaultLanguage($defaultLanguage)
  {
    $this->defaultLanguage = $defaultLanguage;
  }
  /**
   * @return string
   */
  public function getDefaultLanguage()
  {
    return $this->defaultLanguage;
  }
  /**
   * @param bool
   */
  public function setDeveloperOptionsStatus($developerOptionsStatus)
  {
    $this->developerOptionsStatus = $developerOptionsStatus;
  }
  /**
   * @return bool
   */
  public function getDeveloperOptionsStatus()
  {
    return $this->developerOptionsStatus;
  }
  /**
   * @param string
   */
  public function setDeviceCompromisedStatus($deviceCompromisedStatus)
  {
    $this->deviceCompromisedStatus = $deviceCompromisedStatus;
  }
  /**
   * @return string
   */
  public function getDeviceCompromisedStatus()
  {
    return $this->deviceCompromisedStatus;
  }
  /**
   * @param string
   */
  public function setDeviceId($deviceId)
  {
    $this->deviceId = $deviceId;
  }
  /**
   * @return string
   */
  public function getDeviceId()
  {
    return $this->deviceId;
  }
  /**
   * @param string
   */
  public function setDevicePasswordStatus($devicePasswordStatus)
  {
    $this->devicePasswordStatus = $devicePasswordStatus;
  }
  /**
   * @return string
   */
  public function getDevicePasswordStatus()
  {
    return $this->devicePasswordStatus;
  }
  /**
   * @param string[]
   */
  public function setEmail($email)
  {
    $this->email = $email;
  }
  /**
   * @return string[]
   */
  public function getEmail()
  {
    return $this->email;
  }
  /**
   * @param string
   */
  public function setEncryptionStatus($encryptionStatus)
  {
    $this->encryptionStatus = $encryptionStatus;
  }
  /**
   * @return string
   */
  public function getEncryptionStatus()
  {
    return $this->encryptionStatus;
  }
  /**
   * @param string
   */
  public function setEtag($etag)
  {
    $this->etag = $etag;
  }
  /**
   * @return string
   */
  public function getEtag()
  {
    return $this->etag;
  }
  /**
   * @param string
   */
  public function setFirstSync($firstSync)
  {
    $this->firstSync = $firstSync;
  }
  /**
   * @return string
   */
  public function getFirstSync()
  {
    return $this->firstSync;
  }
  /**
   * @param string
   */
  public function setHardware($hardware)
  {
    $this->hardware = $hardware;
  }
  /**
   * @return string
   */
  public function getHardware()
  {
    return $this->hardware;
  }
  /**
   * @param string
   */
  public function setHardwareId($hardwareId)
  {
    $this->hardwareId = $hardwareId;
  }
  /**
   * @return string
   */
  public function getHardwareId()
  {
    return $this->hardwareId;
  }
  /**
   * @param string
   */
  public function setImei($imei)
  {
    $this->imei = $imei;
  }
  /**
   * @return string
   */
  public function getImei()
  {
    return $this->imei;
  }
  /**
   * @param string
   */
  public function setKernelVersion($kernelVersion)
  {
    $this->kernelVersion = $kernelVersion;
  }
  /**
   * @return string
   */
  public function getKernelVersion()
  {
    return $this->kernelVersion;
  }
  /**
   * @param string
   */
  public function setKind($kind)
  {
    $this->kind = $kind;
  }
  /**
   * @return string
   */
  public function getKind()
  {
    return $this->kind;
  }
  /**
   * @param string
   */
  public function setLastSync($lastSync)
  {
    $this->lastSync = $lastSync;
  }
  /**
   * @return string
   */
  public function getLastSync()
  {
    return $this->lastSync;
  }
  /**
   * @param bool
   */
  public function setManagedAccountIsOnOwnerProfile($managedAccountIsOnOwnerProfile)
  {
    $this->managedAccountIsOnOwnerProfile = $managedAccountIsOnOwnerProfile;
  }
  /**
   * @return bool
   */
  public function getManagedAccountIsOnOwnerProfile()
  {
    return $this->managedAccountIsOnOwnerProfile;
  }
  /**
   * @param string
   */
  public function setManufacturer($manufacturer)
  {
    $this->manufacturer = $manufacturer;
  }
  /**
   * @return string
   */
  public function getManufacturer()
  {
    return $this->manufacturer;
  }
  /**
   * @param string
   */
  public function setMeid($meid)
  {
    $this->meid = $meid;
  }
  /**
   * @return string
   */
  public function getMeid()
  {
    return $this->meid;
  }
  /**
   * @param string
   */
  public function setModel($model)
  {
    $this->model = $model;
  }
  /**
   * @return string
   */
  public function getModel()
  {
    return $this->model;
  }
  /**
   * @param string[]
   */
  public function setName($name)
  {
    $this->name = $name;
  }
  /**
   * @return string[]
   */
  public function getName()
  {
    return $this->name;
  }
  /**
   * @param string
   */
  public function setNetworkOperator($networkOperator)
  {
    $this->networkOperator = $networkOperator;
  }
  /**
   * @return string
   */
  public function getNetworkOperator()
  {
    return $this->networkOperator;
  }
  /**
   * @param string
   */
  public function setOs($os)
  {
    $this->os = $os;
  }
  /**
   * @return string
   */
  public function getOs()
  {
    return $this->os;
  }
  /**
   * @param string[]
   */
  public function setOtherAccountsInfo($otherAccountsInfo)
  {
    $this->otherAccountsInfo = $otherAccountsInfo;
  }
  /**
   * @return string[]
   */
  public function getOtherAccountsInfo()
  {
    return $this->otherAccountsInfo;
  }
  /**
   * @param string
   */
  public function setPrivilege($privilege)
  {
    $this->privilege = $privilege;
  }
  /**
   * @return string
   */
  public function getPrivilege()
  {
    return $this->privilege;
  }
  /**
   * @param string
   */
  public function setReleaseVersion($releaseVersion)
  {
    $this->releaseVersion = $releaseVersion;
  }
  /**
   * @return string
   */
  public function getReleaseVersion()
  {
    return $this->releaseVersion;
  }
  /**
   * @param string
   */
  public function setResourceId($resourceId)
  {
    $this->resourceId = $resourceId;
  }
  /**
   * @return string
   */
  public function getResourceId()
  {
    return $this->resourceId;
  }
  /**
   * @param string
   */
  public function setSecurityPatchLevel($securityPatchLevel)
  {
    $this->securityPatchLevel = $securityPatchLevel;
  }
  /**
   * @return string
   */
  public function getSecurityPatchLevel()
  {
    return $this->securityPatchLevel;
  }
  /**
   * @param string
   */
  public function setSerialNumber($serialNumber)
  {
    $this->serialNumber = $serialNumber;
  }
  /**
   * @return string
   */
  public function getSerialNumber()
  {
    return $this->serialNumber;
  }
  /**
   * @param string
   */
  public function setStatus($status)
  {
    $this->status = $status;
  }
  /**
   * @return string
   */
  public function getStatus()
  {
    return $this->status;
  }
  /**
   * @param bool
   */
  public function setSupportsWorkProfile($supportsWorkProfile)
  {
    $this->supportsWorkProfile = $supportsWorkProfile;
  }
  /**
   * @return bool
   */
  public function getSupportsWorkProfile()
  {
    return $this->supportsWorkProfile;
  }
  /**
   * @param string
   */
  public function setType($type)
  {
    $this->type = $type;
  }
  /**
   * @return string
   */
  public function getType()
  {
    return $this->type;
  }
  /**
   * @param bool
   */
  public function setUnknownSourcesStatus($unknownSourcesStatus)
  {
    $this->unknownSourcesStatus = $unknownSourcesStatus;
  }
  /**
   * @return bool
   */
  public function getUnknownSourcesStatus()
  {
    return $this->unknownSourcesStatus;
  }
  /**
   * @param string
   */
  public function setUserAgent($userAgent)
  {
    $this->userAgent = $userAgent;
  }
  /**
   * @return string
   */
  public function getUserAgent()
  {
    return $this->userAgent;
  }
  /**
   * @param string
   */
  public function setWifiMacAddress($wifiMacAddress)
  {
    $this->wifiMacAddress = $wifiMacAddress;
  }
  /**
   * @return string
   */
  public function getWifiMacAddress()
  {
    return $this->wifiMacAddress;
  }
}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MobileDevice::class, 'Google_Service_Directory_MobileDevice');


text:
<?

namespace PASL\Web\API;

/**
 * A facade class to handle an authorize.net query
 *
 * @category authorize.net
 * @package PASL\Web\API
 */
class AuthorizeNet
{
	/**
	 * The authorize.net gateway URI
	 *
	 * @var string
	 */
	private $Gateway = '';

	/**
	 * API Login credential
	 *
	 * @var string
	 */
	protected $APILogin = '';

	/**
	 * @var string
	 */
	protected $TransactionKey = '';

	/**
	 * @var array
	 */
	protected $Payload = array();

	/**
	 * @var string
	 */
	protected $Request;

	/**
	 * Sets the request type
	 *
	 * @param object $Request
	 * @return void
	 */
	public function setRequest($Request)
	{
		$this->Request = $Request;
	}

	/**
	 * Set the payment gateway URI
	 *
	 * @param string $Gateway
	 * @return void
	 */
	public function setGateway($Gateway)
	{
		$this->Gateway = $Gateway;
	}

	/**
	 * Return the gateway
	 *
	 * @return string
	 */
	public function getGateway()
	{
		return $this->Gateway;
	}

	/**
	 * Execute a request to the gateway
	 *
	 * @return string
	 */
	public function Execute()
	{
		$queryString = (string) $this->Request;

		$options = array
		(
			CURLOPT_URL => $this->getGateway(),
			CURLOPT_POST => 1,
			CURLOPT_POSTFIELDS => $queryString,
			CURLOPT_RETURNTRANSFER => 1
		);

		$ch = curl_init();
		curl_setopt_array($ch, $options);
		$returnPayload = curl_exec($ch);

		curl_close($ch);

		return $returnPayload;
	}
}
?>


text:
package org.javers.core;

import com.google.gson.TypeAdapter;
import org.javers.core.commit.CommitFactoryModule;
import org.javers.core.diff.DiffFactoryModule;
import org.javers.core.diff.ListCompareAlgorithm;
import org.javers.core.diff.appenders.DiffAppendersModule;
import org.javers.core.diff.changetype.PropertyChange;
import org.javers.core.diff.custom.CustomPropertyComparator;
import org.javers.core.diff.custom.CustomToNativeAppenderAdapter;
import org.javers.core.graph.ObjectAccessHook;
import org.javers.core.graph.GraphFactoryModule;
import org.javers.core.json.JsonConverter;
import org.javers.core.json.JsonConverterBuilder;
import org.javers.core.json.JsonTypeAdapter;
import org.javers.core.json.typeadapter.change.ChangeTypeAdaptersModule;
import org.javers.core.json.typeadapter.commit.CommitTypeAdaptersModule;
import org.javers.core.metamodel.annotation.DiffIgnore;
import org.javers.core.metamodel.clazz.*;
import org.javers.core.metamodel.object.GlobalIdFactory;
import org.javers.core.metamodel.type.CustomType;
import org.javers.core.metamodel.type.TypeMapper;
import org.javers.core.metamodel.type.ValueObjectType;
import org.javers.core.metamodel.type.ValueType;
import org.javers.core.snapshot.GraphSnapshotModule;
import org.javers.repository.api.InMemoryRepositoryModule;
import org.javers.repository.api.JaversExtendedRepository;
import org.javers.repository.api.JaversRepository;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.HashSet;
import java.util.List;
import java.util.Set;

import static org.javers.common.validation.Validate.argumentIsNotNull;
import static org.javers.common.validation.Validate.argumentsAreNotNull;

/**
 * Creates a JaVers instance based on your domain model metadata and custom configuration.
 *

 *
 * For example, to build a JaVers instance configured with reasonable defaults:
 *

 * Javers javers = JaversBuilder.javers().build();
 *

 *
 * To build a JaVers instance with Entity type registered:
 *

 * Javers javers = JaversBuilder.javers()
 *                              .registerEntity(MyEntity.class)
 *                              .build();
 *

 *
 * @see http://javers.org/documentation/domain-configuration
 * @author bartosz walacik
 */
public class JaversBuilder extends AbstractJaversBuilder {
    private static final Logger logger = LoggerFactory.getLogger(JaversBuilder.class);

    private final Set<ClientsClassDefinition> clientsClassDefinitions = new HashSet<>();

    private JaversRepository repository;

    public static JaversBuilder javers() {
        return new JaversBuilder();
    }

    /**
     * use static factory method {@link JaversBuilder#javers()}
     */
    protected JaversBuilder() {
        logger.debug("starting up JaVers ...");

        // bootstrap phase 1: core beans
        bootContainer();
        addModule(new CoreJaversModule(getContainer()));
        addModule(new DiffFactoryModule());
        addModule(new CommitFactoryModule(getContainer()));
        addModule(new GraphSnapshotModule(getContainer()));
        addModule(new GraphFactoryModule(getContainer()));
    }

    public Javers build() {

        Javers javers = assembleJaversInstance();
        repository.ensureSchema();

        logger.info("JaVers instance is up & ready");
        return javers;
    }

    protected Javers assembleJaversInstance(){
        bootDiffAppenders();

        // ManagedClassFactory & managed clazz registration
        bootManagedClasses();

        // JSON beans & domain aware typeAdapters
        bootJsonConverter();

        // Repository
        bootRepository();

        Javers javers = getContainerComponent(JaversCore.class);
        logger.info("JaVers instance is up & ready");
        return javers;
    }

    private void bootDiffAppenders() {
        addModule(new DiffAppendersModule(getContainer(), coreConfiguration()));
    }

    /**
     * @see http://javers.org/documentation/repository-configuration
     */
    public JaversBuilder registerJaversRepository(JaversRepository repository){
        argumentsAreNotNull(repository);
        this.repository = repository;
        return this;
    }

    /**
     * Registers an {@link Entity}.
     * Use @Id annotation to mark exactly one Id-property.
     *

     *
     * Optionally, use @Transient or @{@link DiffIgnore} to mark ignored properties.
     *
     * @see http://javers.org/documentation/domain-configuration/#domain-model-mapping
     */
    public JaversBuilder registerEntity(Class<?> entityClass) {
        argumentIsNotNull(entityClass);
        return registerEntity( new EntityDefinition(entityClass));
    }

    /**
     * Registers an {@link Entity}.

     * Use this method if you are not willing to use annotations to mark Id-property
     * and ignored properties.
     *
     * @see http://javers.org/documentation/domain-configuration/#domain-model-mapping
     */
    public JaversBuilder registerEntity(EntityDefinition entityDefinition){
        argumentIsNotNull(entityDefinition);
        clientsClassDefinitions.add(entityDefinition);
        return this;
    }

    /**
     * Deprecated since 1.0.6,
     * use {@link #registerEntity(Class)}  or
     * {@link #registerEntity(EntityDefinition)}
     */
    @Deprecated
    public JaversBuilder registerEntity(Class<?> entityClass, String idPropertyName){
        return registerEntity(new EntityDefinition(entityClass, idPropertyName));
    }

    /**
     * Registers a {@link ValueObjectType}.

     * Use @Transient or @{@link DiffIgnore} to mark ignored properties.
     *

     *
     * For example, ValueObjects are: Address, Point
     *
     * @see http://javers.org/documentation/domain-configuration/#domain-model-mapping
     */
    public JaversBuilder registerValueObject(Class<?> valueObjectClass) {
        argumentIsNotNull(valueObjectClass);
        clientsClassDefinitions.add(new ValueObjectDefinition(valueObjectClass));
        return this;
    }

    /**
     * Registers a {@link ValueObjectType}.

     * Use this method if you are not willing to use annotations to mark ignored properties.
     *
     * @see http://javers.org/documentation/domain-configuration/#domain-model-mapping
     */
    public JaversBuilder registerValueObject(ValueObjectDefinition valueObjectDefinition) {
        argumentIsNotNull(valueObjectDefinition);
        clientsClassDefinitions.add(valueObjectDefinition);
        return this;
    }

    /**
     * Registers a simple value type (see {@link ValueType}).
     *

     *
     * For example, values are: BigDecimal, LocalDateTime
     *
     * @see http://javers.org/documentation/domain-configuration/#domain-model-mapping
     */
    public JaversBuilder registerValue(Class<?> valueClass) {
        argumentIsNotNull(valueClass);
        clientsClassDefinitions.add(new ValueDefinition(valueClass));
        return this;
    }

    /**
     * Registers a {@link ValueType} and its custom JSON adapter.
     *

     *
     * Useful for not trivial ValueTypes when Gson's default representation isn't appropriate
     *
     * @see http://javers.org/documentation/repository-configuration/#json-type-adapters
     * @see JsonTypeAdapter
     */
    public JaversBuilder registerValueTypeAdapter(JsonTypeAdapter typeAdapter) {
        for (Class c : (List<Class>)typeAdapter.getValueTypes()){
            registerValue(c);
        }

        jsonConverterBuilder().registerJsonTypeAdapter(typeAdapter);
        return this;
    }

    /**
     * Registers {@link ValueType} and its custom native
     * Gson adapter.
     *

     *
     * Useful when you already have Gson {@link TypeAdapter}s implemented.
     *
     * @see TypeAdapter
     */
    public JaversBuilder registerValueGsonTypeAdapter(Class valueType, TypeAdapter nativeAdapter) {
        registerValue(valueType);
        jsonConverterBuilder().registerNativeTypeAdapter(valueType, nativeAdapter);
        return this;
    }

    /**
     * Switch on when you need a type safe serialization for
     * heterogeneous collections like List, List<Object>.
     *

     *
     * Heterogeneous collections are collections which contains items of different types
     * (or types unknown at compile time).
     *

     *
     * This approach is generally discouraged, prefer statically typed collections
     * with exactly one type of items like List<String>.
     *
     * @see org.javers.core.json.JsonConverterBuilder#typeSafeValues(boolean)
     */
    public JaversBuilder typeSafeValues() {
        jsonConverterBuilder().typeSafeValues(true);
        return this;
    }

    public JaversBuilder registerEntities(Class<?>... entityClasses) {
        for(Class clazz : entityClasses) {
            registerEntity(clazz);
        }
        return this;
    }

    public JaversBuilder registerValueObjects(Class<?>... valueObjectClasses) {
        for(Class clazz : valueObjectClasses) {
            registerValueObject(clazz);
        }
        return this;
    }

    /**
     * Default style is {@link MappingStyle#FIELD}.
     */
    public JaversBuilder withMappingStyle(MappingStyle mappingStyle) {
        argumentIsNotNull(mappingStyle);
        coreConfiguration().withMappingStyle(mappingStyle);
        return this;
    }

    public JaversBuilder withNewObjectsSnapshot(boolean newObjectsSnapshot){
        coreConfiguration().withNewObjectsSnapshot(newObjectsSnapshot);
        return this;
    }

    public JaversBuilder withObjectAccessHook(ObjectAccessHook objectAccessHook) {
        removeComponent(ObjectAccessHook.class);
        bindComponent(ObjectAccessHook.class, objectAccessHook);
        return this;
    }

    /**
     * Registers a custom comparator for given custom type.
     *

     *
     * Comparator has to calculate and return a subtype of {@link PropertyChange}.
     *

     *
     * Internally, given type is mapped as {@link CustomType}.
     *

     *
     * Custom types are serialized to JSON using Gson defaults.
     *
     * @param <T> custom type
     * @param customType class literal to define a custom type
     * @see CustomPropertyComparator
     */
    public <T> JaversBuilder registerCustomComparator(CustomPropertyComparator<T, ?> comparator, Class<T> customType){
        clientsClassDefinitions.add(new CustomDefinition(customType));
        bindComponent(comparator, new CustomToNativeAppenderAdapter(comparator, customType));
        return this;
    }

    /**
     * Choose between two algorithms for comparing list: ListCompareAlgorithm.SIMPLE
     * or ListCompareAlgorithm.LEVENSHTEIN_DISTANCE.
     *

     * Generally, we recommend using LEVENSHTEIN_DISTANCE, because it's smarter.
     * Hoverer, it can be slow for long lists, so SIMPLE is enabled by default.
     *

     *
     * Refer to javers.org/documentation/diff-configuration/#list-algorithms
     * for description of both algorithms
     *
     * @param algorithm ListCompareAlgorithm.SIMPLE is used by default
     */
    public JaversBuilder withListCompareAlgorithm(ListCompareAlgorithm algorithm) {
        argumentIsNotNull(algorithm);
        coreConfiguration().withListCompareAlgorithm(algorithm);

        return this;
    }

    private void mapRegisteredClasses() {
        TypeMapper typeMapper = typeMapper();
        for (ClientsClassDefinition def : clientsClassDefinitions) {
            typeMapper.registerClientsClass(def);
        }
    }

    private GlobalIdFactory globalIdFactory(){
        return getContainerComponent(GlobalIdFactory.class);
    }

    private TypeMapper typeMapper() {
        return getContainerComponent(TypeMapper.class);
    }

    private JaversCoreConfiguration coreConfiguration() {
        return getContainerComponent(JaversCoreConfiguration.class);
    }

    private JsonConverterBuilder jsonConverterBuilder(){
        return getContainerComponent(JsonConverterBuilder.class);
    }

    private void bootManagedClasses() {
        addModule(new ManagedClassFactoryModule(coreConfiguration()));
        mapRegisteredClasses();
    }

    /**
     * boots JsonConverter and registers domain aware typeAdapters
     */
    private void bootJsonConverter() {
        JsonConverterBuilder jsonConverterBuilder = jsonConverterBuilder();

        addModule(new ChangeTypeAdaptersModule(getContainer()));
        addModule(new CommitTypeAdaptersModule(getContainer()));
        jsonConverterBuilder
                .typeMapper(typeMapper())
                .globalIdFactory(globalIdFactory())
                .registerJsonTypeAdapters(getComponents(JsonTypeAdapter.class));

        addComponent(jsonConverterBuilder.build());
    }

    private void bootRepository(){
        if (repository == null){
            logger.info("using fake InMemoryRepository, register actual implementation via JaversBuilder.registerJaversRepository()");
            addModule(new InMemoryRepositoryModule(getContainer()));
            repository = getContainerComponent(JaversRepository.class);
        } else {
            repository.setJsonConverter( getContainerComponent(JsonConverter.class));
            addComponent(repository);
        }

       //JaversExtendedRepository can be created after users calls JaversBuilder.registerJaversRepository()
        addComponent(JaversExtendedRepository.class);
    }
}


text:
<?php

/**
 * PHPExcel_Cell_Hyperlink
 *
 * @category   PHPExcel
 * @package    PHPExcel_Cell
 * @copyright  Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)
 */
class PHPExcel_Cell_Hyperlink
{
	/**
	 * URL to link the cell to
	 *
	 * @var string
	 */
	private $_url;

	/**
	 * Tooltip to display on the hyperlink
	 *
	 * @var string
	 */
	private $_tooltip;

    /**
     * Create a new PHPExcel_Cell_Hyperlink
     *
     * @param 	string				$pUrl		Url to link the cell to
     * @param	string				$pTooltip	Tooltip to display on the hyperlink
     * @throws	Exception
     */
    public function __construct($pUrl = '', $pTooltip = '')
    {
    	// Initialise member variables
		$this->_url 		= $pUrl;
		$this->_tooltip 	= $pTooltip;
    }

	/**
	 * Get URL
	 *
	 * @return string
	 */
	public function getUrl() {
		return $this->_url;
	}

	/**
	 * Set URL
	 *
	 * @param	string	$value
	 * @return PHPExcel_Cell_Hyperlink
	 */
	public function setUrl($value = '') {
		$this->_url = $value;
		return $this;
	}

	/**
	 * Get tooltip
	 *
	 * @return string
	 */
	public function getTooltip() {
		return $this->_tooltip;
	}

	/**
	 * Set tooltip
	 *
	 * @param	string	$value
	 * @return PHPExcel_Cell_Hyperlink
	 */
	public function setTooltip($value = '') {
		$this->_tooltip = $value;
		return $this;
	}

	/**
	 * Is this hyperlink internal? (to another sheet)
	 *
	 * @return boolean
	 */
	public function isInternal() {
		return strpos($this->_url, 'sheet://') !== false;
	}

	/**
	 * Get hash code
	 *
	 * @return string	Hash code
	 */
	public function getHashCode() {
    	return md5(
    		  $this->_url
    		. $this->_tooltip
    		. __CLASS__
    	);
    }
}


text:
    {{message.sender.displayName}}

    {{getMessageDate(message)}}
    {{getMessageStatus(message)}}


text:
<?php
/**
 * Created by PhpStorm.
 * User: Henrique
 * Date: 18/04/2016
 * Time: 23:30
 */
$lang = array(

    'events_title'               => 'Evento',

    'events_containerTitle'      => 'Listagem dos eventos',

    'events_beforeDropdownLabel' => 'Mostrar',

    'events_afterDropdownLabel'  => 'entradas.',

    'events_columnId'            => 'ID',

    'events_columnAddress'       => 'Endereço',

    'events_columnLatitude'      => 'Latitude',

    'events_columnLongitude'     => 'Longitude',

    'events_columnCategory'      => 'Categoria',

    'events_columnOccurrence'    => 'Ocorrência',

    'events_columnLocal'         => 'Local',

    'events_columnDateTime'      => 'Data/Hora',

    'events_columnOptions'       => 'Opções',

    'events_optionWatch'         => 'Ver',

    'events_optionEdit'          => 'Editar',

    'events_beginDate'           => 'Data de início',

    'events_endDate'             => 'Data de fim',

    'events_submitBtn'           => 'Submeter',

    'events_statistics'          => 'Estatísticas',

    'events_categories'          => 'Categorias',

);


text:
SELECT FirstName,LastName
FROM [dbo].[Employees]
WHERE ManagerID IS NULL


text:
#pragma once

#include <math.h>
#include <ofxOpenCv.h>
#include <ofPoint.h>

//sane bounds for how fast a hand can travel
#define HAND_MAX_VX 0.1
#define HAND_MAX_VY 0.05

/*
 * Class that represents a hand in a beam. Contains the original ofxCvBlob
 * from the BeamCameras, and computes velocities.
 */

class Hand
{
public:
    ofPoint pos; //beam-normalized position
    ofPoint vel; //beam-normalized velocity
    ofPoint intersection; //perpedicular intersection with the center of the beam in pixels coordinates
    ofxCvBlob blob; //the original ofxCvBlob that this hand was generated from.
    float area_vel; //the rate of change in the beam-exposed area of the hand. (experimental tool for computing velocity)

    Hand() { };
    Hand(ofPoint _pos, ofPoint _intersection, ofxCvBlob _blob)
    {
        pos = _pos;
        intersection = _intersection;
        blob = _blob;
    };

    //computes this hand's velocity based on the position of the same
    //hand from the previous frame
    void compute_velocity(Hand& old_hand)
    {
        vel = old_hand.pos - pos;
        area_vel = old_hand.blob.area - blob.area;
    };

    bool same_hand_as(Hand& other)
    {
        return (abs(pos.x - other.pos.x) <= HAND_MAX_VX &&
                abs(pos.y - other.pos.y) <= HAND_MAX_VY);
    };

    float speed() { return vel.length() * area_vel; }

    void draw(int x, int y)
    {
        ofPushStyle();
        ofFill();
        ofSetHexColor(0x00FF00);
        ofDrawCircle(blob.centroid.x, blob.centroid.y, 3);
        ofDrawLine(blob.centroid.x, blob.centroid.y,
                   intersection.x, intersection.y);
        ofPopStyle();
    };
};


text:
<?php  include("../lib/functions.php"); ?>

Registro de Estados De Proyectos

<form id="frm" action="index.php" method="POST">
    <input type="hidden" name="controller" value="estadoproyecto" />
    <input type="hidden" name="action" value="save" />

            <fieldset class="ui-corner-all" >
                <legend>Datos</legend>
                Codigo:
                <input id="idestado_proyecto" name="idestado_proyecto" class="text ui-widget-content ui-corner-all" style=" width: 90px; text-align: left;" value="<?php echo $obj->idestado_proyecto; ?>" readonly />

                Descripcion:
                <input id="descripcion" maxlength="100" name="descripcion" class="text ui-widget-content ui-corner-all" style=" width: 220px; text-align: left;" value="<?php echo $obj->descripcion; ?>" />

             </fieldset>
            <fieldset>
                <legend>Accion</legend>

                    GRABAR
                    ATRAS

            </fieldset>

</form>


text:
GoInstant Authentication for Your Node.js Application

[![Build Status](https://travis-ci.org/goinstant/node-goinstant-auth.png?branch=master)](https://travis-ci.org/goinstant/node-goinstant-auth) [![Coverage Status](https://coveralls.io/repos/goinstant/node-goinstant-auth/badge.png?branch=master)](https://coveralls.io/r/goinstant/node-goinstant-auth?branch=master)

This is an implementation of JWT tokens consistent with what's specified in the
[GoInstant Users and Authentication
Guide](https://developers.goinstant.com/v1/guides/users_and_authentication.html).

This library is not intended as a general-use JWT library; see JWT-php for
that. At the time of this writing, GoInstant supports the [JWT IETF draft
version 8](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-08).

# Installation

```sh
npm install --save goinstant-auth
```

# Usage

Construct a signer with your goinstant application key. The application key
should be in base64url or base64 string format. To get your key, go to [your
goinstant dashboard](https://goinstant.com/dashboard) and click on your App.

:warning: **Remember, the Secret Key needs to be treated like a password!**
Never share it with your users!

```js
  var Signer = require('goinstant-auth').Signer;
  var signer = new Signer(yourGoInstantAppKey);
```

You can then use this `signer` to create as many tokens as you want. The
`domain` parameter should be replaced with your website's domain. Groups are
optional.

```js
  signer.sign({
    domain: 'example.com', // TODO: replace me
    id: user.id,
    displayName: user.fullName(),
    groups: [
      {
        id: 'room-' + roomId,
        displayName: 'Room ' + roomId
      }
    ]
  }, function(err, token) {
    if (err) {
      // handle it
    }
    // otherwise, use the token
  });
```

# Methods

### `Signer(secretKey)`

Constructs a `Signer` object from a base64url or base64 secret key string.

Throws an Error if the `secretKey` could not be parsed.

### `sign(userData, extraHeaders={}, cb(err, token))`

Creates a JWT as a JWS in Compact Serialization format.  Can be called multiple
times on the same object, saving you from having to load your secret GoInstant
application key every time.

`userData` is an Object with the following required fields, plus any other
custom ones you want to include in the JWT.

- `domain` - the domain of your website
- `id` - the unique, permanent identity of this user on your website
- `displayName` - the name to initially display for this user
- `groups` - an array of groups, each group requiring:
  - `id` - the unique ID of this group, which is handy for defining [GoInstant ACLs](https://developers.goinstant.com/v1/guides/creating_and_managing_acl.html)
  - `displayName` - the name to display for this group

`extraHeaders` is completely optional.  It's used to define any additional
[JWS header fields](http://tools.ietf.org/html/draft-ietf-jose-json-web-signature-11#section-4.1)
that you want to include.

### `signSync(userData, extraHeaders={})`

Synchronous version of `sign()`, returning the token string.  Throws an
exception if the token could not be created.

**Warning** depending on the size of your tokens, this may block the main
javascript thread for too long.

# Technicals

The `sign()` method `userData` maps to the following JWT claims.
The authoritative list of claims used in GoInstant can be found in the [Users and Authentication Guide](https://developers.goinstant.com/v1/guides/users_and_authentication.html#which-reserved-claims-are-required).

- `domain` -> `iss` (standard claim)
- `id` -> `sub` (standard claim)
- `displayName` -> `dn` (GoInstant private claim)
- `groups` -> `g` (GoInstant private claim)
  - `id` -> `id` (GoInstant private claim)
  - `displayName` -> `dn` (GoInstant private claim)
- `'goinstant.net'` -> `aud` (standard claim) _automatically added_

For the `extraHeaders` parameter in `sign()`, the `alg` and `typ` headers will
be overridden by this library.

# Contributing

If you'd like to contribute to or modify node-goinstant-auth, here's a quick
guide to get you started.

## Development Dependencies

- [node.js](http://nodejs.org) >= 0.10
  - 0.11.7 and below cannot be used due to bugs in HMAC streams

## Set-Up

Download via GitHub and install npm dependencies:

```sh
git clone git@github.com:goinstant/node-goinstant-auth.git
cd node-goinstant-auth

npm install
```

## Testing

Testing is with the [mocha](https://github.com/visionmedia/mocha) framework.  Tests are located in the `tests/` directory.

```sh
npm test  # uses the locally-installed mocha
```

## Publishing

1. `npm version patch` (increments `x` in `z.y.x`, then makes a commit for package.json, tags that commit)
2. `git push --tags origin master`
3. `npm publish`

Go to https://npmjs.org/package/goinstant-auth and verify it published (can take several minutes)

# Support

Email [GoInstant Support](mailto:support@goinstant.com) or stop by [#goinstant on freenode](irc://irc.freenode.net/#goinstant).

For responsible disclosures, email [GoInstant Security](mailto:security@goinstant.com).

To [file a bug](https://github.com/goinstant/node-goinstant-auth/issues) or
[propose a patch](https://github.com/goinstant/node-goinstant-auth/pulls),
please use github directly.

# Legal

© 2013 GoInstant Inc., a salesforce.com company.  All Rights Reserved.

Licensed under the 3-clause BSD license


text:
<!--
.topbg {  background-image: url(topbg.gif)}
.diebg {  background-image: url(sidebg.gif)}
.sidebg2 {  background-image: url(sidebg2.gif)}
.sidegb3 {  background-image: url(sidebg3.gif)}
.Normal {  font-family: Arial, Helvetica, sans-serif; color: #000000}
.links {  font-family: Verdana, Arial, Helvetica, sans-serif; color: #FFFFFF; text-decoration: none; font-size: 10pt}
.head1 {  font-family: Arial, Helvetica, sans-serif; font-size: 12pt; font-weight: bold}
.NormalSmall {  font-family: Arial, Helvetica, sans-serif; font-size: small}
.Center { font-family: Arial, Helvetica, sans-serif; font-size: small ; text-align: center}
.Head { font-family: Arial, Helvetica, sans-serif; font-size: small ; font-weight: bold;background-color: #CCCCCC}
.Title { font-family: Arial, Helvetica, sans-serif; font-size: larger; font-weight: normal; background-color: #003366; color: #FFFFFF; font-style: normal}
.ccode {  font-family: "Courier New", Courier, mono}
.codecmt { font-family: "Courier New", Courier, mono; color: #009900}
.codedec { font-family: "Courier New", Courier, mono; color: #0000FF}

-->


text:
describe Fastlane do
  describe Fastlane::FastFile do
    describe "App Store Connect API Key" do
      let(:fake_api_key_p8_path) { File.absolute_path("./spaceship/spec/connect_api/fixtures/asc_key.p8") }
      let(:fake_api_key_json_path) { "./spaceship/spec/connect_api/fixtures/asc_key.json" }
      let(:fake_api_key_in_house_json_path) { "./spaceship/spec/connect_api/fixtures/asc_key_in_house.json" }

      let(:key_id) { "D484D98393" }
      let(:issuer_id) { "32423-234234-234324-234" }

      it "with key_filepath" do
        hash = {
          key_id: key_id,
          issuer_id: issuer_id,
          key: File.binread(fake_api_key_p8_path),
          is_key_content_base64: false,
          duration: 500,
          in_house: false
        }

        expect(Spaceship::ConnectAPI::Token).to receive(:create).with(hash).and_return("some fake token")
        expect(Spaceship::ConnectAPI).to receive(:token=).with("some fake token")

        result = Fastlane::FastFile.new.parse("lane :test do
          app_store_connect_api_key(
            key_id: '#{key_id}',
            issuer_id: '#{issuer_id}',
            key_filepath: '#{fake_api_key_p8_path}',
          )
        end").runner.execute(:test)

        expect(result).to eq(hash)
        expect(Fastlane::Actions.lane_context[Fastlane::Actions::SharedValues::APP_STORE_CONNECT_API_KEY]).to eq(hash)
      end

      describe "with key_content" do
        let(:key_content) { File.binread(fake_api_key_p8_path).gsub("\r", '') }

        it "with plain text" do
          hash = {
            key_id: key_id,
            issuer_id: issuer_id,
            key: key_content,
            is_key_content_base64: false,
            duration: 200,
            in_house: true
          }

          expect(Spaceship::ConnectAPI::Token).to receive(:create).with(hash).and_return("some fake token")
          expect(Spaceship::ConnectAPI).to receive(:token=).with("some fake token")

          result = Fastlane::FastFile.new.parse("lane :test do
            app_store_connect_api_key(
              key_id: '#{key_id}',
              issuer_id: '#{issuer_id}',
              key_content: '#{key_content}',
              duration: 200,
              in_house: true
            )
          end").runner.execute(:test)

          expect(result).to eq(hash)
          expect(Fastlane::Actions.lane_context[Fastlane::Actions::SharedValues::APP_STORE_CONNECT_API_KEY]).to eq(hash)
        end

        it "with base64 encoded" do
          hash = {
            key_id: key_id,
            issuer_id: issuer_id,
            key: key_content,
            is_key_content_base64: true,
            duration: 200,
            in_house: true
          }

          expect(Spaceship::ConnectAPI::Token).to receive(:create).with(hash).and_return("some fake token")
          expect(Spaceship::ConnectAPI).to receive(:token=).with("some fake token")

          result = Fastlane::FastFile.new.parse("lane :test do
            app_store_connect_api_key(
              key_id: '#{key_id}',
              issuer_id: '#{issuer_id}',
              key_content: '#{key_content}',
              is_key_content_base64: true,
              duration: 200,
              in_house: true
            )
          end").runner.execute(:test)

          expect(result).to eq(hash)
          expect(Fastlane::Actions.lane_context[Fastlane::Actions::SharedValues::APP_STORE_CONNECT_API_KEY]).to eq(hash)
        end
      end

      it "raise error when no key_filepath or key_content" do
        expect do
          Fastlane::FastFile.new.parse("lane :test do
            app_store_connect_api_key(
              key_id: '#{key_id}',
              issuer_id: '#{issuer_id}'
            )
          end").runner.execute(:test)
        end.to raise_error(/:key_content or :key_filepath is required/)
      end

      it "raise error when duration is higher than 20 minutes" do
        expect do
          Fastlane::FastFile.new.parse("lane :test do
            app_store_connect_api_key(
              key_id: 'foo',
              issuer_id: 'bar',
              key_content: 'derp',
              duration: 1300
            )
          end").runner.execute(:test)
        end.to raise_error("The duration can't be more than 1200 (20 minutes) and the value entered was '1300'")
      end

      it "doesn't create and set api token if 'set_spaceship_token' input option is FALSE" do
        expect(Spaceship::ConnectAPI::Token).not_to receive(:create)
        expect(Spaceship::ConnectAPI).not_to receive(:token=)

        result = Fastlane::FastFile.new.parse("lane :test do
          app_store_connect_api_key(
            key_id: '#{key_id}',
            issuer_id: '#{issuer_id}',
            key_filepath: '#{fake_api_key_p8_path}',
            set_spaceship_token: false
          )
        end").runner.execute(:test)

        hash = {
          key_id: key_id,
          issuer_id: issuer_id,
          key: File.binread(fake_api_key_p8_path),
          is_key_content_base64: false,
          duration: 500,
          in_house: false
        }

        expect(result).to eq(hash)
        expect(Fastlane::Actions.lane_context[Fastlane::Actions::SharedValues::APP_STORE_CONNECT_API_KEY]).to eq(hash)
      end
    end
  end
end


text:
<?php

namespace Soda\Cms\InterfaceBuilder\Forms\Fields;

use Soda\Cms\InterfaceBuilder\Forms\AbstractFormField;

class Code extends AbstractFormField
{
    protected $view = 'code';
}


text:
#ifndef AUTOLOCATION_H
#define AUTOLOCATION_H

#include "navy.h"

/*

  Паттерн "Стратегия" для автоматической расстановки кораблей.

  */

class AutoLocation
{
    public:
        virtual void LocateShips(Navy *navy) = 0;
    protected:
        AutoLocation(){}
};

#endif // AUTOLOCATION_H


text:
<load target="js/page_admin.js" />
<form action="./" method="post" onsubmit="return procFilter(this, insert_article)" id="fo_write">
	<input type="hidden" name="mid" value="{$mid}" />
	<input type="hidden" name="content" value="{$oDocument->getContentText()}" />
	<input type="hidden" name="document_srl" value="{$document_srl}" />
	<input type="hidden" name="isMobile" value="{$isMobile}" />

		<input type="text" name="title" value="{htmlspecialchars($oDocument->getTitleText(), ENT_COMPAT | ENT_HTML401, 'UTF-8', false)}" title="{$lang->title}" style="width:100%" />

{$oDocument->getEditor()}

        <input type="text" name="tags" value="{htmlspecialchars($oDocument->get('tags'), ENT_COMPAT | ENT_HTML401, 'UTF-8', false)}" class="iText" title="Tag" />

{$lang->about_tag}

        <button class="btn" type="button" onclick="doDocumentSave(this);">{$lang->cmd_temp_save}</button>
        <button class="btn" type="button" onclick="doDocumentLoad(this);">{$lang->cmd_load}</button>

		<input class="btn" type="submit" value="{$lang->cmd_registration}" />

</form>


text:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@drawable/speakerdetails_background" >

    <Button
        android:id="@+id/detail_home_button"
        android:layout_width="20dp"
        android:layout_height="17dp"
        android:layout_marginBottom="5dip"
		android:layout_marginLeft="15dip"
        android:layout_alignParentBottom="true"
        android:layout_alignParentLeft="true"
        android:background="@drawable/home_icon" />

    <Button
        android:id="@+id/detail_info_button"
        android:layout_width="18dp"
        android:layout_height="18dp"
        android:layout_marginBottom="5dip"
        android:layout_marginRight="15dip"
        android:layout_alignParentBottom="true"
        android:layout_alignParentRight="true"
        android:background="@drawable/info_icon" />

    <ScrollView
        android:id="@+id/speaker_scrollView"
        android:layout_width="270dp"
        android:layout_height="290dp"
        android:layout_centerHorizontal="true"
        android:layout_marginTop="130dp"
        android:padding="5dp">

        <RelativeLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content" >

            <ImageView
                android:id="@+id/detail_speaker_image"
                android:layout_width="68dp"
                android:layout_height="69dp"
                android:layout_alignParentLeft="true"
                android:layout_alignParentTop="true"
                android:background="@drawable/default_speaker" />

            <TextView
                android:id="@+id/detail_speaker_name"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_toRightOf="@id/detail_speaker_image"
                android:layout_marginLeft="5dp"
                android:textStyle="bold"
            	android:textSize="18sp"
            	android:text="@string/temptext"
            	android:textColor="@color/white" />

            <TextView
                android:id="@+id/detail_speaker_title"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_below="@id/detail_speaker_name"
                android:layout_alignLeft="@id/detail_speaker_name"
                android:textColor="@color/gray"
                android:textStyle="bold"
                android:textSize="12sp"
                android:text="@string/temptext" />

            <TextView
                android:id="@+id/speaker_detail"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_alignParentLeft="true"
                android:layout_below="@id/detail_speaker_image"
                android:textColor="@color/white"
                android:textStyle="normal"
                android:textSize="16sp"
                android:text="@string/temptext" />

        </RelativeLayout>

    </ScrollView>

    <Button
        android:id="@+id/detail_back_button"
        android:layout_width="50dp"
        android:layout_height="50dp"
        android:layout_alignLeft="@+id/speaker_scrollView"
        android:layout_alignParentTop="true"
        android:layout_marginTop="78dp"
        android:background="#00000000"
        android:clickable="true" />

</RelativeLayout>