text:
license: Licensed to the Apache Software Foundation (ASF) under one
         or more contributor license agreements.  See the NOTICE file
         distributed with this work for additional information
         regarding copyright ownership.  The ASF licenses this file
         to you under the Apache License, Version 2.0 (the
         "License"); you may not use this file except in compliance
         with the License.  You may obtain a copy of the License at

           http://www.apache.org/licenses/LICENSE-2.0

         Unless required by applicable law or agreed to in writing,
         software distributed under the License is distributed on an
         "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
         KIND, either express or implied.  See the License for the
         specific language governing permissions and limitations
         under the License.
---

# L'utilizzo di Plugman per gestire i plugin

Dalla versione 3.0 in poi, Cordova implementa dispositivo tutte le API come plugin e li lascia disattivata per impostazione predefinita. Supporta inoltre due modi per aggiungere e rimuovere i plugin, a seconda del flusso di lavoro discussa nella descrizione:

*   Se si utilizza un flusso di lavoro multi-piattaforma, è utilizzare il `cordova` utilità CLI aggiungere plugin, come descritto in l'interfaccia della riga di comando. CLI Modifica plugins per tutte le piattaforme specificate in una volta.

*   Se si utilizza un flusso di lavoro piattaforma-centrato, si utilizza un'interfaccia della riga di comando di basso livello [Plugman][1] , separatamente per ciascuna piattaforma mirato.

 [1]: https://github.com/apache/cordova-plugman/

Questa sezione descrive l'utilità Plugman. Per ulteriori informazioni su consumando Plugman come modulo nodo o modificare il codice sorgente, vedere [il file README nel suo repository][2].

 [2]: https://github.com/apache/cordova-plugman/blob/master/README.md

## L'installazione Plugman

Per installare plugman, è necessario disporre di [nodo][3] installato sulla vostra macchina. Poi è possibile eseguire il seguente comando da ovunque nel vostro ambiente per installare plugman globalmente, in modo che sia disponibile da qualsiasi directory:

 [3]: http://nodejs.org/

    $ npm install -g plugman

Deve anche avere `git` sul tuo `PATH` per poter installare il plugin direttamente da URL remoto git.

**Suggerimento**: se si scopre che dopo l'installazione di plugman con `npm` sei ancora in grado di eseguire qualsiasi `plugman` comandi, assicurarsi che sono aggiunti il `/npm/` directory in vostro`PATH`.

**Nota**: si può saltare questo passaggio se non vuoi inquinare il global `npm` dello spazio dei nomi mediante l'installazione di Plugman a livello mondiale. Se questo è il caso, poi quando si crea un progetto di Cordova con gli strumenti di conchiglia, ci sarà un `node_modules` directory all'interno del progetto che contiene Plugman. Dato che non hai installato a livello globale, è necessario richiamare `node` per ogni comando di Plugman, ad esempio `node
./node_modules/plugman/main.js -version` . Il resto di questa guida presuppone che sia stata installata Plugman globalmente, significato che è possibile richiamarla con solo`plugman`.

## Creare un progetto di Cordova

Prima di utilizzare Plugman, è necessario creare un progetto di Cordova. È possibile farlo con entrambi l'interfaccia della riga di comando o con gli script di shell di livello inferiori. Istruzioni per utilizzare gli script di shell per creare il progetto si trovano nelle varie guide "Gli strumenti della riga di comando" elencati nella pagina guide piattaforma.

## L'aggiunta di un Plugin

Una volta che hai installato Plugman e hanno creato un progetto di Cordova, è possibile iniziare l'aggiunta di plugin per la piattaforma con:

    $ plugman --platform <ios|amazon-fireos|android|blackberry10|wp8> --project <directory> --plugin <name|url|path> [--plugins_dir <directory>] [--www <directory>] [--variable <name>=<value> [--variable <name>=<value> ...]]

Utilizzando i parametri minimi, questo comando installa un plugin in un progetto di cordova. È necessario specificare un percorso di progetto piattaforma e cordova per tale piattaforma. È necessario specificare anche un plugin, con le diverse `--plugin` parametro forma essendo:

*   `name`: Il nome della directory dove il contenuto del plugin esiste. Questo deve essere una directory esistente sotto il `--plugins_dir` percorso (vedi sotto per maggiori informazioni) o un plugin del registro di sistema di Cordova.
*   `url`: Un URL che inizia con https:// o git: / /, che punta a un repository git valido che è duplicabile e contiene un `plugin.xml` file. Il contenuto di questo archivio verrebbero copiato nella`--plugins_dir`.
*   `path`: Un percorso di una directory contenente un valido plugin che include un `plugin.xml` file. Contenuti di questo percorso verranno copiati nella`--plugins_dir`.

Altri parametri:

*   `--plugins_dir`impostazione predefinita è `<project>/cordova/plugins` , ma può essere qualsiasi directory che contiene una sottodirectory per ogni plugin scaricato.
*   `--www`impostazioni predefinite per il progetto `www` percorso di cartella, ma può essere qualsiasi directory che deve essere utilizzata come attività di cordova progetto applicazione web.
*   `--variable`permette di specificare determinate variabili in fase di installazione, necessario per alcuni plugin che richiedono chiavi API o altri parametri personalizzati, definito dall'utente. Si prega di consultare la [specifica di plugin][4] per ulteriori informazioni.

 [4]: plugin_ref_spec.md.html#Plugin%20Specification

## Rimuovere un Plugin

Per disinstallare un plugin, è sufficiente passare il `--uninstall` bandiera e fornire l'ID del plugin.

    $ plugman --uninstall --platform <ios|amazon-fireos|android|blackberry10|wp8> --project <directory> --plugin <id> [--www <directory>] [--plugins_dir <directory>]

## Aiuto comandi

Plugman dispone di un comando di aiuto globale che può aiutarvi se rimani bloccato o sono problemi. Visualizzerà un elenco di tutti i comandi Plugman e la loro sintassi:

    plugman -help
    plugman  # same as above

**Nota**: `plugman -help` possono mostrare alcuni comandi aggiuntivi del registro di sistema correlate. Questi comandi sono per gli sviluppatori di plugin e non possono essere implementati sui registri di plugin di terze parti.

Può anche aggiungere il `--debug|-d` bandiera a qualsiasi comando Plugman per eseguire quel comando in modalità dettagliata, che consentirà di visualizzare i messaggi di debug interni quanto vengono emessi e può aiutare a tenere traccia dei problemi come file mancanti.

    # Adding Android battery-status plugin to "myProject":
    plugman -d --platform android --project myProject --plugin cordova-plugin-battery-status

Infine, è possibile utilizzare il `--version|-v` bandiera per vedere quale versione di Plugman si utilizza.

    plugman -v

## Azioni del registro di sistema

Ci sono un certo numero di comandi plugman che può essere utilizzato per interagire con il [Registro dei Plugin][5]. Si prega di notare che questi comandi del registro di sistema sono per il plugin *plugins.cordova.io* del registro di sistema e non possono essere attuati dai registri di plugin di terze parti.

 [5]: http://plugins.cordova.io

### Stai cercando un Plugin

È possibile utilizzare Plugman per il [Registro dei Plugin][5] per plugin id che corrisponde all'elenco dato spazio separato di parole chiave di ricerca.

    plugman search <plugin keywords>

### Modificando il registro di sistema di Plugin

È possibile ottenere o impostare l'URL del registro attuale plugin che utilizza plugman. Generalmente si dovrebbe lasciare questo insieme a http://registry.cordova.io, a meno che non si desidera utilizzare un registro di plugin di terze parti.

    plugman config set registry <url-to-registry>
    plugman config get registry

### Ottenere informazioni di Plugin

È possibile ottenere informazioni su qualsiasi plugin specifici memorizzati nel repository con plugin:

    plugman info <id>

Questo metterà in contatto il plugin del registro di sistema e recuperare informazioni quali il numero di versione del plugin.

## L'installazione di plugin di Core

Negli esempi seguenti mostrano come aggiungere plugin come necessario affinché qualsiasi APIs Cordova è utilizzare nel progetto di lavorare ancora dopo l'aggiornamento alla versione 3.0. Per ogni comando, è necessario selezionare la piattaforma di destinazione e la directory del progetto della piattaforma di riferimento.

*   cordova-plugin-battery-status

    plugman --platform <ios|amazon-fireos|android|blackberry10|wp8> --project <directory> --plugin cordova-plugin-battery-status

*   cordova-plugin-camera plugman --platform <ios|amazon-fireos|android|blackberry10|wp8> --project <directory> --plugin cordova-plugin-camera

*   cordova-plugin-console plugman --platform <ios|amazon-fireos|android|blackberry10|wp8> --project <directory> --plugin cordova-plugin-console

*   cordova-plugin-contacts plugman --platform <ios|amazon-fireos|android|blackberry10|wp8> --project <directory> --plugin cordova-plugin-contacts

*   cordova-plugin-device plugman --platform <ios|amazon-fireos|android|blackberry10|wp8> --project <directory> --plugin cordova-plugin-device

*   cordova-plugin-device-motion (accelerometer) plugman --platform <ios|amazon-fireos|android|blackberry10|wp8> --project <directory> --plugin cordova-plugin-device-motion

*   cordova-plugin-device-orientation (compass) plugman --platform <ios|amazon-fireos|android|blackberry10|wp8> --project <directory> --plugin cordova-plugin-device-orientation

*   cordova-plugin-dialogs plugman --platform <ios|amazon-fireos|android|blackberry10|wp8> --project <directory> --plugin cordova-plugin-dialogs

*   cordova-plugin-file plugman --platform <ios|amazon-fireos|android|blackberry10|wp8> --project <directory> --plugin cordova-plugin-file

*   cordova-plugin-file-transfer plugman --platform <ios|amazon-fireos|android|blackberry10|wp8> --project <directory> --plugin cordova-plugin-file-transfer

*   cordova-plugin-geolocation plugman --platform <ios|amazon-fireos|android|blackberry10|wp8> --project <directory> --plugin cordova-plugin-geolocation

*   cordova-plugin-globalization plugman --platform <ios|amazon-fireos|android|blackberry10|wp8> --project <directory> --plugin cordova-plugin-globalization

*   cordova-plugin-inappbrowser plugman --platform <ios|amazon-fireos|android|blackberry10|wp8> --project <directory> --plugin cordova-plugin-inappbrowser

*   cordova-plugin-media plugman --platform <ios|amazon-fireos|android|blackberry10|wp8> --project <directory> --plugin cordova-plugin-media

*   cordova-plugin-media-capture plugman --platform <ios|amazon-fireos|android|blackberry10|wp8> --project <directory> --plugin cordova-plugin-media-capture

*   cordova-plugin-network-information plugman --platform <ios|amazon-fireos|android|blackberry10|wp8> --project <directory> --plugin cordova-plugin-network-information

*   cordova-plugin-splashscreen plugman --platform <ios|amazon-fireos|android|blackberry10|wp8> --project <directory> --plugin cordova-plugin-splashscreen

*   cordova-plugin-vibration plugman --platform <ios|amazon-fireos|android|blackberry10|wp8> --project <directory> --plugin cordova-plugin-vibration


text:
from __future__ import absolute_import
from .user_api import PSDImage, Layer, Group, BBox, Embedded
from .version import __version__

debug.try_patch_formatters()

redpajama_set_name: RedPajamaGithub


text:
<?php

namespace Grafite\Commerce\Models;

use Carbon\Carbon;
use Grafite\Cms\Models\CmsModel;
use Grafite\Commerce\Services\CartService;

class Coupon extends CmsModel
{
    public $table = 'coupons';

    public $primaryKey = 'id';

    public $timestamps = true;

    public $fillable = [
        'start_date',
        'end_date',
        'code',
        'currency',
        'discount_type',
        'for_subscriptions',
        'amount',
        'limit',
        'stripe_id',
    ];

    public static $rules = [
        'amount' => 'required',
        'limit' => 'required',
        'discount_type' => 'required',
    ];

    public function getCouponsByStripeId($id)
    {
        return $this->where('stripe_id', $id)->first();
    }

    public function expired()
    {
        $now = Carbon::now(config('app.timezone'));

        if (!is_null($this->end_date) && $now->gt(Carbon::parse($this->end_date))) {
            return true;
        }

        return false;
    }

    public function getDollarsAttribute()
    {
        return app(CartService::class)->getCurrentCouponValue($this->stripe_id);
    }

    public function getValueAttribute()
    {
        if ($this->discount_type == 'dollar') {
            return round($this->amount / 100, 2);
        }

        return $this->amount;
    }

    public function getValueStringAttribute()
    {
        if ($this->discount_type == 'dollar') {
            return '$'.$this->value;
        }

        return $this->value.'%';
    }
}


text:
ES5Harness.registerTest({

    id: "15.4.4.19-2-15",

    path: "TestCases/chapter15/15.4/15.4.4/15.4.4.19/15.4.4.19-2-15.js",

    description: "Array.prototype.map - when 'length' is property of the global object",

    test: function testcase() {
        function callbackfn(val, idx, obj) {
            return val > 10;
        }

        try {
            var oldLen = fnGlobalObject().length;
            fnGlobalObject()[0] = 12;
            fnGlobalObject()[1] = 11;
            fnGlobalObject()[2] = 9;
            fnGlobalObject().length = 2;
            var testResult = Array.prototype.map.call(fnGlobalObject(), callbackfn);
            return testResult.length === 2;
        } finally {
            delete fnGlobalObject()[0];
            delete fnGlobalObject()[1];
            delete fnGlobalObject()[2];
            fnGlobalObject().length = oldLen;
        }
    },

    precondition: function prereq() {
        return fnExists(Array.prototype.map);
    }

});


text:
As part of CSC-520 Python Programming course, PSP (Terminal Based UI Personal Stock Portfolio) was developed for final term project.

About Personal Stock Portfolio:
-------------------------------
Personal Stock Portfolio is Terminal Based UI software that loads list of Stock Symbols and gives the user capability to ...
	1. View Stock Symbols
	2. Get Stock Symbols latest information
	3. Add Stock Symbol to user's list
	4. Delete Stock Symbol from user's list
	5. Refresh Stock Symbol/Symbols information
Stock Portfolio uses Yahoo! Finance module to retrieve latest information about stock symbol.

Persistance:
------------
Personal Stock Portfolio uses file based persistence for user related data (username, password, pin and stock symbols).

Usage:
------
Open psp.py in IDLE and run psp.py by pressing F5.

Read the available commands at the bottom of each screen for execution.

Sign Up for your personal account so that you can preserve your favourite Stock Symbols and view them when you login with your credentials.

By default, an account(USERNAME=admin, PASSWORD=admin & PIN=1234) is created for usage so that you don't have to worry about creating accounts.

Pre-Loaded Stock Symbols:
-------------------------
Personal Stock Portfolio software downloads list of Stock Symbols from internet, if they are not available then it loads them from back up symbol files. This means that if you try to add any Stock Symbol which is not present in this list then the software wouldn't load it.

In worst case, if back up files are also not available then any symbol you try to add, would be added as there are no stock symbols available for checking. It is possible that that Stock Symbol is not a valid symbol.

Dependencies:
-------------
	1. Pre-defined Symbols file to view list
	2. Internet connection for downloading stock symbols and Yahoo! Finance module to retrieve data

System Requirement:
-------------------
	1. Operating System : Windows
	2. Python 3.5.1 or above
	3. Python module to get Stock data from Yahoo! Finance

Installation Instructions:
--------------------------
	1. Python module for Yahoo! Finance (1.2.1) : https://pypi.python.org/pypi/yahoo-finance
	2. From command prompt run command (pip install yahoo-finance)
	------------------------
	Sample installation logs
	------------------------
		$ python --version
		Python 3.5.1

		$ pip install yahoo_finance
		Collecting yahoo-finance
		  Downloading yahoo-finance-1.2.1.zip
		Collecting pytz (from yahoo-finance)
		  Downloading pytz-2016.4-py2.py3-none-any.whl (480kB)
		←[K    100% |################################| 483kB 874kB/s ta 0:00:01
		Collecting simplejson (from yahoo-finance)
		  Downloading simplejson-3.8.2.tar.gz (76kB)
		←[K    100% |################################| 77kB 2.6MB/s
		Installing collected packages: pytz, simplejson, yahoo-finance
		  Running setup.py install for simplejson
		  Running setup.py install for yahoo-finance
		Successfully installed pytz-2016.4 simplejson-3.8.2 yahoo-finance-1.2.1
		←[33mYou are using pip version 7.1.2, however version 8.1.1 is available.
		You should consider upgrading via the 'python -m pip install --upgrade pip' command.←[0m

Restrictions:
-------------
Yahoo! Finance module (free version) retrieves data which is 15 minutes older (for instant data, use google apis).

Failure Points:
---------------
If internet connection is down or Yahoo! Finance server is down, there will be intermintent failures.

I have tried level best to gracefully handle situation but again it is not 100% failure proof.

Reference or Credits:
---------------------
Stock Symbol files are downloaded from ftp://ftp.nasdaqtrader.com/symboldirectory/

Directory Structure:
---------------------
![directorystructure](https://cloud.githubusercontent.com/assets/5839686/24687279/d10be316-196d-11e7-842e-34f717e11d4d.png)

Screenshots:
------------

| Screens | Screenshots |
| -- | -- |
| aboutScreenshot | ![aboutscreenshot](https://cloud.githubusercontent.com/assets/5839686/24687270/d0f27c5a-196d-11e7-9534-1cd362369335.png) |
| addSymbolCommandScreenshot | ![addsymbolcommandscreenshot](https://cloud.githubusercontent.com/assets/5839686/24687271/d0f6ff64-196d-11e7-8d66-81aad1640724.png) |
| addSymbolResultScreenshot | ![addsymbolresultscreenshot](https://cloud.githubusercontent.com/assets/5839686/24687272/d0f7cdfe-196d-11e7-99de-7a73b753f4d0.png) |
| adminDashboardScreenshot | ![admindashboardscreenshot](https://cloud.githubusercontent.com/assets/5839686/24687273/d0f893c4-196d-11e7-8309-933ff151a9b9.png) |
| commandsScreenshot | ![commandsscreenshot](https://cloud.githubusercontent.com/assets/5839686/24687274/d0f8cc36-196d-11e7-92e6-e6e22e754a2c.png) |
| deleteSymbolByNameCommandScreenshot | ![deletesymbolbynamecommandscreenshot](https://cloud.githubusercontent.com/assets/5839686/24687275/d0f939d2-196d-11e7-9f20-9e4ebc6b81cb.png) |
| deleteSymbolByNameResultScreenshot | ![deletesymbolbynameresultscreenshot](https://cloud.githubusercontent.com/assets/5839686/24687276/d1067412-196d-11e7-8df6-5a379807eff5.png) |
| deleteSymbolByNumberCommandScreenshot | ![deletesymbolbynumbercommandscreenshot](https://cloud.githubusercontent.com/assets/5839686/24687278/d10b5bbc-196d-11e7-880f-f4ec8b3e1e4a.png) |
| deleteSymbolByNumberResultScreenshot | ![deletesymbolbynumberresultscreenshot](https://cloud.githubusercontent.com/assets/5839686/24687277/d10a9ed4-196d-11e7-84f2-da647c3d612b.png) |
| listAllSymbolsScreenshot | ![listallsymbolsscreenshot](https://cloud.githubusercontent.com/assets/5839686/24687281/d1107e62-196d-11e7-8c25-b484624b5bfb.png) |
| listSymbolByNameCommandScreenshot | ![listsymbolbynamecommandscreenshot](https://cloud.githubusercontent.com/assets/5839686/24687280/d10cf1a2-196d-11e7-9b17-27ca8430bcd7.png) |
| listSymbolByNameResultScreenshot | ![listsymbolbynameresultscreenshot](https://cloud.githubusercontent.com/assets/5839686/24687282/d118e714-196d-11e7-99ed-bd2e8da7c8e2.png) |
| listSymbolByNumberCommandScreenshot | ![listsymbolbynumbercommandscreenshot](https://cloud.githubusercontent.com/assets/5839686/24687283/d11d1e7e-196d-11e7-94b1-fb335c30d9be.png) |
| listSymbolByNumberResultScreenshot | ![listsymbolbynumberresultscreenshot](https://cloud.githubusercontent.com/assets/5839686/24687284/d11eca44-196d-11e7-9868-7f1527fc9a21.png) |
| loadFromBackupScreenshot | ![loadfrombackupscreenshot](https://cloud.githubusercontent.com/assets/5839686/24687290/d13471fa-196d-11e7-9b86-215db58b5a75.png) |
| loginScreenshot | ![loginscreenshot](https://cloud.githubusercontent.com/assets/5839686/24687285/d11f2728-196d-11e7-89d4-55df2894b9a1.png) |
| logoutCommandScreenshot | ![logoutcommandscreenshot](https://cloud.githubusercontent.com/assets/5839686/24687286/d1243952-196d-11e7-985e-2b58fac31fe6.png) |
| refreshSymbolCommandScreenshot | ![refreshsymbolcommandscreenshot](https://cloud.githubusercontent.com/assets/5839686/24687287/d12ca2ea-196d-11e7-8a84-2b2b22583aa2.png) |
| resetPasswordScreenshot | ![resetpasswordscreenshot](https://cloud.githubusercontent.com/assets/5839686/24687288/d12fbe76-196d-11e7-9fe4-161b3c097019.png) |
| signUpMaxPasswordAttemptsReachedScreenshot | ![signupmaxpasswordattemptsreachedscreenshot](https://cloud.githubusercontent.com/assets/5839686/24687291/d134e5d6-196d-11e7-8441-27f10d0d15c0.png) |
| signUpScreenshot | ![signupscreenshot](https://cloud.githubusercontent.com/assets/5839686/24687289/d1320424-196d-11e7-923f-eb904a3cf293.png) |
| userDashboardScreenshot | ![userdashboardscreenshot](https://cloud.githubusercontent.com/assets/5839686/24687292/d137fb54-196d-11e7-8785-ddf27bfce10b.png) |
| userSignInScreenshot | ![usersigninscreenshot](https://cloud.githubusercontent.com/assets/5839686/24687296/d150a9d8-196d-11e7-9c23-dbcaa23ea7d0.png) |
| viewSymbolCommandScreenshot | ![viewsymbolcommandscreenshot](https://cloud.githubusercontent.com/assets/5839686/24687294/d14fb3de-196d-11e7-885e-d2d5628b3bcf.png) |
| viewSymbolResultScreenshot | ![viewsymbolresultscreenshot](https://cloud.githubusercontent.com/assets/5839686/24687293/d14f64ce-196d-11e7-891e-558f6d3998b0.png) |
| welcomeScreenshot | ![welcomescreenshot](https://cloud.githubusercontent.com/assets/5839686/24687295/d1507666-196d-11e7-98ce-5dae301662fd.png) |


text:
package org.jeewx.api.core.req.model.kfaccount;

import org.jeewx.api.core.annotation.ReqType;
import org.jeewx.api.core.req.model.WeixinReqParam;

/**
 * 取多媒体文件
 *
 * @author sfli.sir
 *
 */
@ReqType("kfaccountDel")
public class KfaccountDel extends WeixinReqParam {

	private String kf_account;

	private String nickname;

	private String password;

	public String getKf_account() {
		return kf_account;
	}

	public void setKf_account(String kf_account) {
		this.kf_account = kf_account;
	}

	public String getNickname() {
		return nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

}


text:
namespace LINQ
{
    using System;
    using System.Collections.Generic;

    public partial class vStoreWithDemographic
    {
        public int BusinessEntityID { get; set; }
        public string Name { get; set; }
        public Nullable<decimal> AnnualSales { get; set; }
        public Nullable<decimal> AnnualRevenue { get; set; }
        public string BankName { get; set; }
        public string BusinessType { get; set; }
        public Nullable<int> YearOpened { get; set; }
        public string Specialty { get; set; }
        public Nullable<int> SquareFeet { get; set; }
        public string Brands { get; set; }
        public string Internet { get; set; }
        public Nullable<int> NumberEmployees { get; set; }
    }
}


text:
// Copyright (c) MOSA Project. Licensed under the New BSD License.

using Mosa.DeviceSystem;

namespace Mosa.DeviceDriver.ISA
{
	/// <summary>
	///
	/// </summary>
	[ISADeviceDriver(AutoLoad = true, BasePort = 0x0CF8, PortRange = 8, Platforms = PlatformArchitecture.X86AndX64)]
	public class PCIController : HardwareDevice, IDevice, IHardwareDevice, IPCIController
	{
		#region Definitions

		private static readonly uint BaseValue = 0x80000000;

		#endregion Definitions

		/// <summary>
		///
		/// </summary>
		protected SpinLock spinLock;

		/// <summary>
		///
		/// </summary>
		protected IReadWriteIOPort configAddress;

		/// <summary>
		///
		/// </summary>
		protected IReadWriteIOPort configData;

		/// <summary>
		/// Initializes a new instance of the <see cref="PCIController"/> class.
		/// </summary>
		public PCIController()
		{
		}

		/// <summary>
		/// Setups this hardware device driver
		/// </summary>
		/// <returns></returns>
		public override bool Setup(IHardwareResources hardwareResources)
		{
			this.hardwareResources = hardwareResources;
			base.name = "PCI_0x" + base.hardwareResources.GetIOPort(0, 0).Address.ToString("X");

			configAddress = base.hardwareResources.GetIOPort(0, 0);
			configData = base.hardwareResources.GetIOPort(0, 4);

			return true;
		}

		/// <summary>
		/// Probes for this device.
		/// </summary>
		/// <returns></returns>
		public bool Probe()
		{
			configAddress.Write32(BaseValue);

			if (configAddress.Read32() != BaseValue)
				return false;

			return true;
		}

		/// <summary>
		/// Starts this hardware device.
		/// </summary>
		/// <returns></returns>
		public override DeviceDriverStartStatus Start()
		{
			if (Probe())
			{
				base.deviceStatus = DeviceStatus.Online;
				return DeviceDriverStartStatus.Started;
			}
			else
			{
				base.deviceStatus = DeviceStatus.NotFound;
				return DeviceDriverStartStatus.NotFound;
			}
		}

		/// <summary>
		/// Called when an interrupt is received.
		/// </summary>
		/// <returns></returns>
		public override bool OnInterrupt()
		{
			return false;
		}

		/// <summary>
		/// Gets the index.
		/// </summary>
		/// <param name="bus">The bus.</param>
		/// <param name="slot">The slot.</param>
		/// <param name="function">The function.</param>
		/// <param name="register">The register.</param>
		/// <returns></returns>
		protected uint GetIndex(byte bus, byte slot, byte function, byte register)
		{
			return (uint)(BaseValue
					   | (uint)((bus & 0xFF) << 16)
					   | (uint)((slot & 0x0F) << 11)
					   | (uint)((function & 0x07) << 8)
					   | (uint)(register & 0xFC));
		}

		/// <summary>
		/// Reads from configuration space
		/// </summary>
		/// <param name="bus">The bus.</param>
		/// <param name="slot">The slot.</param>
		/// <param name="function">The function.</param>
		/// <param name="register">The register.</param>
		/// <returns></returns>
		public uint ReadConfig32(byte bus, byte slot, byte function, byte register)
		{
			configAddress.Write32(GetIndex(bus, slot, function, register));
			return configData.Read32();
		}

		/// <summary>
		/// Reads from configuration space
		/// </summary>
		/// <param name="bus">The bus.</param>
		/// <param name="slot">The slot.</param>
		/// <param name="function">The function.</param>
		/// <param name="register">The register.</param>
		/// <returns></returns>
		public ushort ReadConfig16(byte bus, byte slot, byte function, byte register)
		{
			configAddress.Write32(GetIndex(bus, slot, function, register));
			return (ushort)((configData.Read32() >> ((register % 4) * 8)) & 0xFFFF);
		}

		/// <summary>
		/// Reads from configuration space
		/// </summary>
		/// <param name="bus">The bus.</param>
		/// <param name="slot">The slot.</param>
		/// <param name="function">The function.</param>
		/// <param name="register">The register.</param>
		/// <returns></returns>
		public byte ReadConfig8(byte bus, byte slot, byte function, byte register)
		{
			configAddress.Write32(GetIndex(bus, slot, function, register));
			return (byte)((configData.Read32() >> ((register % 4) * 8)) & 0xFF);
		}

		/// <summary>
		/// Writes to configuration space
		/// </summary>
		/// <param name="bus">The bus.</param>
		/// <param name="slot">The slot.</param>
		/// <param name="function">The function.</param>
		/// <param name="register">The register.</param>
		/// <param name="value">The value.</param>
		public void WriteConfig32(byte bus, byte slot, byte function, byte register, uint value)
		{
			configAddress.Write32(GetIndex(bus, slot, function, register));
			configData.Write32(value);
		}

		/// <summary>
		/// Writes to configuration space
		/// </summary>
		/// <param name="bus">The bus.</param>
		/// <param name="slot">The slot.</param>
		/// <param name="function">The function.</param>
		/// <param name="register">The register.</param>
		/// <param name="value">The value.</param>
		public void WriteConfig16(byte bus, byte slot, byte function, byte register, ushort value)
		{
			configAddress.Write32(GetIndex(bus, slot, function, register));
			configData.Write16(value);
		}

		/// <summary>
		/// Writes to configuration space
		/// </summary>
		/// <param name="bus">The bus.</param>
		/// <param name="slot">The slot.</param>
		/// <param name="function">The function.</param>
		/// <param name="register">The register.</param>
		/// <param name="value">The value.</param>
		public void WriteConfig8(byte bus, byte slot, byte function, byte register, byte value)
		{
			configAddress.Write32(GetIndex(bus, slot, function, register));
			configData.Write8(value);
		}
	}
}


text:
package org.apache.airavata.registry.core.entities.expcatalog;

import org.apache.airavata.model.task.TaskTypes;

import javax.persistence.*;
import java.io.Serializable;
import java.sql.Timestamp;
import java.util.List;

/**
 * The persistent class for the task database table.
 */
@Entity
@Table(name = "TASK")
public class TaskEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    @Id
    @Column(name = "TASK_ID")
    private String taskId;

    @Column(name = "TASK_TYPE")
    @Enumerated(EnumType.STRING)
    private TaskTypes taskType;

    @Column(name = "PARENT_PROCESS_ID")
    private String parentProcessId;

    @Column(name = "CREATION_TIME")
    private Timestamp creationTime;

    @Column(name = "LAST_UPDATE_TIME")
    private Timestamp lastUpdateTime;

    @Lob
    @Column(name = "TASK_DETAIL")
    private String taskDetail;

    @Lob
    @Column(name = "SUB_TASK_MODEL")
    private byte[] subTaskModel;

    @OneToMany(targetEntity = TaskStatusEntity.class, cascade = CascadeType.ALL,
            mappedBy = "task", fetch = FetchType.EAGER)
    @OrderBy("timeOfStateChange ASC")
    private List<TaskStatusEntity> taskStatuses;

    @OneToMany(targetEntity = TaskErrorEntity.class, cascade = CascadeType.ALL,
            mappedBy = "task", fetch = FetchType.EAGER)
    private List<TaskErrorEntity> taskErrors;

    @OneToMany(targetEntity = JobEntity.class, cascade = CascadeType.ALL,
            mappedBy = "task", fetch = FetchType.EAGER)
    private List<JobEntity> jobs;

    @ManyToOne(targetEntity = ProcessEntity.class, fetch = FetchType.LAZY)
    @JoinColumn(name = "PARENT_PROCESS_ID", referencedColumnName = "PROCESS_ID", nullable = false, updatable = false)
    private ProcessEntity process;

    public TaskEntity() {
    }

    public String getTaskId() {
        return taskId;
    }

    public void setTaskId(String taskId) {
        this.taskId = taskId;
    }

    public TaskTypes getTaskType() {
        return taskType;
    }

    public void setTaskType(TaskTypes taskType) {
        this.taskType = taskType;
    }

    public String getParentProcessId() {
        return parentProcessId;
    }

    public void setParentProcessId(String parentProcessId) {
        this.parentProcessId = parentProcessId;
    }

    public Timestamp getCreationTime() {
        return creationTime;
    }

    public void setCreationTime(Timestamp creationTime) {
        this.creationTime = creationTime;
    }

    public Timestamp getLastUpdateTime() {
        return lastUpdateTime;
    }

    public void setLastUpdateTime(Timestamp lastUpdateTime) {
        this.lastUpdateTime = lastUpdateTime;
    }

    public String getTaskDetail() {
        return taskDetail;
    }

    public void setTaskDetail(String taskDetail) {
        this.taskDetail = taskDetail;
    }

    public byte[] getSubTaskModel() {
        return subTaskModel;
    }

    public void setSubTaskModel(byte[] subTaskModel) {
        this.subTaskModel = subTaskModel;
    }

    public List<TaskStatusEntity> getTaskStatuses() {
        return taskStatuses;
    }

    public void setTaskStatuses(List<TaskStatusEntity> taskStatuses) {
        this.taskStatuses = taskStatuses;
    }

    public List<TaskErrorEntity> getTaskErrors() {
        return taskErrors;
    }

    public void setTaskErrors(List<TaskErrorEntity> taskErrors) {
        this.taskErrors = taskErrors;
    }

    public List<JobEntity> getJobs() {
        return jobs;
    }

    public void setJobs(List<JobEntity> jobs) {
        this.jobs = jobs;
    }

    public ProcessEntity getProcess() {
        return process;
    }

    public void setProcess(ProcessEntity process) {
        this.process = process;
    }
}


text:
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

using System;
using System.Text;
using System.Runtime.InteropServices;

namespace Microsoft.Protocols.TestTools.StackSdk.Security.Cryptographic
{
    /// <summary>
    /// Internal used helper class
    /// </summary>
    internal static class Helper
    {
        /// <summary>
        /// Get the last error of p-invoke as Hex string
        /// </summary>
        /// <returns>hex String of error code</returns>
        public static string GetLastErrorCodeString()
        {
            int error = Marshal.GetLastWin32Error();
            return string.Format(" Error code is 0x{0:x}", error);
        }

        /// <summary>
        /// Concatenate several byte arrays to one byte array
        /// </summary>
        /// <param name="data">The byte arrays to be concatenated</param>
        /// <returns>The concatenated byte array</returns>
        internal static byte[] ConcatenateByteArrays(params byte[][] data)
        {
            if (data == null)
            {
                // null input is valid for this function
                return null;
            }

            //compute the length of concatenated byte array
            int concatenatedDataLength = 0;
            foreach (byte[] item in data)
            {
                if (item != null)
                {
                    concatenatedDataLength += item.Length;
                }
            }

            if (concatenatedDataLength == 0)
            {
                return new byte[0];
            }

            //copy the original byte arrays to the concatenated array
            byte[] resultArray = new byte[concatenatedDataLength];
            concatenatedDataLength = 0;
            foreach (byte[] item in data)
            {
                if (item != null)
                {
                    Array.Copy(item, 0, resultArray, concatenatedDataLength, item.Length);
                    concatenatedDataLength += item.Length;
                }
            }

            return resultArray;
        }
    }
}


text:
module.exports = function (context, data) {
    var calendar_list_entry_params = data.params;
    var calendar_user = data.user;
    context.log('For user ' + calendar_user + ' create list entry: ');
    context.log(calendar_list_entry_params);

    var google = require('googleapis');
    var calendar = google.calendar('v3');

    var client_email = process.env.client_email;
    var private_key = process.env.private_key;
    var user_address = 'igor@wrdsb.ca';
    private_key = private_key.split('\\n').join("\n");

    // prep our credentials for G Suite APIs
    var jwtClient = new google.auth.JWT(
        client_email,
        null,
        private_key,
        ['https://www.googleapis.com/auth/calendar'],
        calendar_user
    );

    var params = {
        auth: jwtClient,
        alt: "json",
        resource: calendar_list_entry_params.resource,
        colorRgbFormat: calendar_list_entry_params.colorRgbFormat
    };

    jwtClient.authorize(function(err, tokens) {
        if (err) {
            context.res = {
                status: 500,
                body: err
            };
            context.done(err);
            return;
        }
        calendar.calendarList.insert(params, function (err, result) {
            if (err) {
                context.res = {
                    status: 500,
                    body: err
                };
                context.done(err);
                return;
            }
            context.res = {
                status: 200,
                body: JSON.stringify(result)
            };
            context.done(null, result);
        });
    });
};


text:
<?php

    return [

        'plugin' => [
            'name'        => 'Adminer pour OctoberCMS',
            'description' => 'Charge une instance privée de Adminer depuis le backend d\'October'
        ],

        'navigation' => [
            'label' => 'Adminer'
        ],

        'settings' => [
            'label'             => 'Configuration Adminer',
            'mode'              => 'Mode de démarrage',
            'mode_comment'      => 'Definis comment Adminer est démarré',
            'full_window'       => 'Plein écran',
            'iframe'            => 'Iframe',
            'autologin'         => 'Autologin',
            'autologin_comment' => 'Se logue directement dans votre base de données October',
            'themes'            => 'Thème',
            'themes_comment'    => 'Selectionne un thème pour Adminer',
            'hide_menu'         => 'Entrée de menu',
            'hide_menu_comment' => 'Cacher l\'entrée de menu de Adminer',
        ],

        'permissions' => [
            'tab'   => 'Adminer',
            'label' => 'Accés à Adminer depuis le backend d\'October'
        ]

    ];

?>


text:
@interface GroovesharkAlbumInfo : NSObject

@property (nonatomic, assign) int64_t albumID;
@property (nonatomic, strong) NSString *albumName;
@property (nonatomic, assign) int64_t artistID;
@property (nonatomic, strong) NSString *artistName;
@property (nonatomic, strong) NSString *coverArtFilename;
@property (nonatomic, assign) BOOL isVerified;

- (id)initWithValuesInDictionary:(NSDictionary *)values;
+ (instancetype)albumInfoWithValuesInDictionary:(NSDictionary *)values;

@end


text:
var elementTools = require("../util/elementTools")();
var filterTools = require("../util/filterTools")();

module.exports = function ( menu ){

  var filter = {},
    nodes,
    properties,
    enabled = true,
    filteredNodes,
    filteredProperties,
    maxDegreeSetter,
    degreeGetter,
    lastFiltedDegree,
    degreeSetter;

  var NODE_COUNT_LIMIT_FOR_AUTO_ENABLING = 50;

  filter.initialize = function ( nodes, properties ){
    lastFiltedDegree = -1;
    var maxLinkCount = findMaxLinkCount(nodes);
    if ( maxDegreeSetter instanceof Function ) {
      maxDegreeSetter(maxLinkCount);
    }

    menu.setDefaultDegreeValue(findAutoDefaultDegree(nodes, properties, maxLinkCount));
    var defaultDegree = findDefaultDegree(maxLinkCount);
    if ( degreeSetter instanceof Function ) {
      degreeSetter(defaultDegree);
      if ( defaultDegree > 0 ) {
        menu.highlightForDegreeSlider(true);
        menu.getGraphObject().setFilterWarning(true);

      }
    } else {
      console.error("No degree setter function set.");
    }
  };

  function findAutoDefaultDegree( nodes, properties, maxDegree ){
    for ( var degree = 0; degree < maxDegree; degree++ ) {
      var filteredData = filterByNodeDegree(nodes, properties, degree);

      if ( filteredData.nodes.length <= NODE_COUNT_LIMIT_FOR_AUTO_ENABLING ) {
        return degree;
      }
    }
    return 0;
  }

  function findDefaultDegree( maxDegree ){
    var globalDegOfFilter = menu.getGraphObject().getGlobalDOF();
    if ( globalDegOfFilter >= 0 ) {
      if ( globalDegOfFilter <= maxDegree ) {
        return globalDegOfFilter;
      } else {
        menu.getGraphObject().setGlobalDOF(maxDegree);
        return maxDegree;
      }
    }
    return menu.getDefaultDegreeValue();
  }

  /**
   * If enabled, all nodes are filter by their node degree.
   * @param untouchedNodes
   * @param untouchedProperties
   */
  filter.filter = function ( untouchedNodes, untouchedProperties ){
    nodes = untouchedNodes;
    properties = untouchedProperties;

    if ( this.enabled() ) {
      if ( degreeGetter instanceof Function ) {
        filterByNodeDegreeAndApply(degreeGetter());
      } else {
        console.error("No degree query function set.");
      }
    }

    filteredNodes = nodes;
    filteredProperties = properties;

    if ( filteredNodes.length === 0 ) {
      degreeSetter(0);
      filteredNodes = untouchedNodes;
      filteredProperties = untouchedProperties;
    }
    lastFiltedDegree = degreeGetter();
  };

  function findMaxLinkCount( nodes ){
    var maxLinkCount = 0;
    for ( var i = 0, l = nodes.length; i < l; i++ ) {
      var linksWithoutDatatypes = filterOutDatatypes(nodes[i].links());

      maxLinkCount = Math.max(maxLinkCount, linksWithoutDatatypes.length);
    }
    return maxLinkCount;
  }

  function filterOutDatatypes( links ){
    return links.filter(function ( link ){
      return !elementTools.isDatatypeProperty(link.property());
    });
  }

  function filterByNodeDegreeAndApply( minDegree ){
    var filteredData = filterByNodeDegree(nodes, properties, minDegree);
    nodes = filteredData.nodes;
    properties = filteredData.properties;
  }

  function filterByNodeDegree( nodes, properties, minDegree ){
    return filterTools.filterNodesAndTidy(nodes, properties, hasRequiredDegree(minDegree));
  }

  function hasRequiredDegree( minDegree ){
    return function ( node ){
      return filterOutDatatypes(node.links()).length >= minDegree;
    };
  }

  filter.setMaxDegreeSetter = function ( _maxDegreeSetter ){
    maxDegreeSetter = _maxDegreeSetter;
  };

  filter.setDegreeGetter = function ( _degreeGetter ){
    degreeGetter = _degreeGetter;
  };

  filter.setDegreeSetter = function ( _degreeSetter ){
    degreeSetter = _degreeSetter;
  };

  filter.enabled = function ( p ){
    if ( !arguments.length ) return enabled;
    enabled = p;
    return filter;
  };

  // Functions a filter must have
  filter.filteredNodes = function (){
    return filteredNodes;
  };

  filter.filteredProperties = function (){
    return filteredProperties;
  };

  return filter;
};


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

<TITLE>
InquisitionHeaderInfoService (µ÷²éͳ¼ÆÈí¼þ·þÎñƽ̨ API)
</TITLE>

<META NAME="date" CONTENT="2009-06-12">

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

      ¸ÅÊö
      Èí¼þ°ü
    Àà
      ʹÓÃ
      Ê÷
      Òѹýʱ
      Ë÷Òý
      °ïÖú

 ÉÏÒ»¸öÀà
 ÏÂÒ»¸öÀà

  ¿ò¼Ü
 ÎÞ¿ò¼Ü

  ËùÓÐÀà

  ÕªÒª£º ǶÌ× | ×Ö¶Î | ¹¹Ôì·½·¨ | ·½·¨

ÏêϸÐÅÏ¢£º ×Ö¶Î | ¹¹Ôì·½·¨ | ·½·¨

org.xsaas.xstat.business.service

Àà InquisitionHeaderInfoService

java.lang.Object
  org.xsaas.xstat.business.service.InquisitionHeaderInfoService

ËùÓÐÒÑʵÏֵĽӿڣº
IInquisitionHeaderInfoService

public class InquisitionHeaderInfoService
extends java.lang.Object
implements IInquisitionHeaderInfoService

¹¹Ôì·½·¨ÕªÒª

InquisitionHeaderInfoService()

·½·¨ÕªÒª

 void
deleteInquisitionHeaderInfo(InquisitionHeaderInfo data)

          ɾ³ýµ÷²éÎʾíÍ·²¿ÐÅÏ¢

 java.util.List<InquisitionHeaderInfo>
findInquisitionHeaderInfoByPage(int firstResult,
                                int maxResult)

          ·ÖÒ³ÐÅÏ¢

 java.util.List<InquisitionHeaderInfo>
findInquisitionHeaderInfoByPage(long inquisitionID,
                                int firstResult,
                                int maxResult)

          ·ÖÒ³ÐÅÏ¢

 java.util.List<InquisitionHeaderInfo>
findPageByDelStatus(int firstResult,
                    int maxResult)

          ɾ³ý״̬·ÖÒ³ÐÅÏ¢

 InquisitionHeaderInfo
getInquisitionHeaderInfo(java.lang.Long ihID)

          »ñÈ¡µ÷²éÎʾíÍ·²¿ÐÅÏ¢

 java.util.List<InquisitionHeaderInfo>
getInquisitionHeaderInfoList()

          »ñÈ¡µ÷²éÎʾíÍ·²¿ÐÅÏ¢Áбí

 java.util.List<InquisitionHeaderInfo>
getInquisitionHeaderInfoList(java.lang.Long inquisitionID)

 int
getInquisitionHeaderInfoTotal()

          ÐÅÏ¢×ÜÊý

 int
getInquisitionHeaderInfoTotal(long inquisitionID)

          ÐÅÏ¢×ÜÊý

 int
getNewShowOrder(java.lang.Long inquisitionID)

          »ñÈ¡ÐÂÏÔʾ˳Ðò

 int
getTotalByDelStatus()

          ɾ³ý״̬×ÜÊý

 void
saveInquisitionHeaderInfo(InquisitionHeaderInfo data)

          ±£´æµ÷²éÎʾíÍ·²¿ÐÅÏ¢

 void
setInquisitionHeaderInfoDao(IInquisitionHeaderInfoDao inquisitionHeaderInfoDao)

 void
updateInquisitionHeaderInfo(InquisitionHeaderInfo data)

          ¸üе÷²éÎʾíÍ·²¿ÐÅÏ¢

´ÓÀà java.lang.Object ¼Ì³ÐµÄ·½·¨

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

¹¹Ôì·½·¨ÏêϸÐÅÏ¢

InquisitionHeaderInfoService

public InquisitionHeaderInfoService()

·½·¨ÏêϸÐÅÏ¢

setInquisitionHeaderInfoDao

public void setInquisitionHeaderInfoDao(IInquisitionHeaderInfoDao inquisitionHeaderInfoDao)

deleteInquisitionHeaderInfo

public void deleteInquisitionHeaderInfo(InquisitionHeaderInfo data)

´Ó½Ó¿Ú IInquisitionHeaderInfoService ¸´ÖƵÄÃèÊö

ɾ³ýµ÷²éÎʾíÍ·²¿ÐÅÏ¢

Ö¸¶¨Õߣº
½Ó¿Ú IInquisitionHeaderInfoService ÖÐµÄ deleteInquisitionHeaderInfo

²ÎÊý£º
data - µ÷²éÎʾíÍ·²¿ÐÅÏ¢

getInquisitionHeaderInfo

public InquisitionHeaderInfo getInquisitionHeaderInfo(java.lang.Long ihID)

´Ó½Ó¿Ú IInquisitionHeaderInfoService ¸´ÖƵÄÃèÊö

»ñÈ¡µ÷²éÎʾíÍ·²¿ÐÅÏ¢

Ö¸¶¨Õߣº
½Ó¿Ú IInquisitionHeaderInfoService ÖÐµÄ getInquisitionHeaderInfo

²ÎÊý£º
ihID - ÎʾíÍ·²¿±àºÅ

·µ»Ø£º
µ÷²éÎʾíÍ·²¿ÐÅÏ¢

getInquisitionHeaderInfoList

public java.util.List<InquisitionHeaderInfo> getInquisitionHeaderInfoList()

´Ó½Ó¿Ú IInquisitionHeaderInfoService ¸´ÖƵÄÃèÊö

»ñÈ¡µ÷²éÎʾíÍ·²¿ÐÅÏ¢Áбí

Ö¸¶¨Õߣº
½Ó¿Ú IInquisitionHeaderInfoService ÖÐµÄ getInquisitionHeaderInfoList

·µ»Ø£º
µ÷²éÎʾíÍ·²¿ÐÅÏ¢Áбí

getInquisitionHeaderInfoTotal

public int getInquisitionHeaderInfoTotal()

´Ó½Ó¿Ú IInquisitionHeaderInfoService ¸´ÖƵÄÃèÊö

ÐÅÏ¢×ÜÊý

Ö¸¶¨Õߣº
½Ó¿Ú IInquisitionHeaderInfoService ÖÐµÄ getInquisitionHeaderInfoTotal

·µ»Ø£º
ÊýÁ¿

saveInquisitionHeaderInfo

public void saveInquisitionHeaderInfo(InquisitionHeaderInfo data)

´Ó½Ó¿Ú IInquisitionHeaderInfoService ¸´ÖƵÄÃèÊö

±£´æµ÷²éÎʾíÍ·²¿ÐÅÏ¢

Ö¸¶¨Õߣº
½Ó¿Ú IInquisitionHeaderInfoService ÖÐµÄ saveInquisitionHeaderInfo

²ÎÊý£º
data - µ÷²éÎʾíÍ·²¿ÐÅÏ¢

updateInquisitionHeaderInfo

public void updateInquisitionHeaderInfo(InquisitionHeaderInfo data)

´Ó½Ó¿Ú IInquisitionHeaderInfoService ¸´ÖƵÄÃèÊö

¸üе÷²éÎʾíÍ·²¿ÐÅÏ¢

Ö¸¶¨Õߣº
½Ó¿Ú IInquisitionHeaderInfoService ÖÐµÄ updateInquisitionHeaderInfo

²ÎÊý£º
data - µ÷²éÎʾíÍ·²¿ÐÅÏ¢

getInquisitionHeaderInfoList

public java.util.List<InquisitionHeaderInfo> getInquisitionHeaderInfoList(java.lang.Long inquisitionID)

Ö¸¶¨Õߣº
½Ó¿Ú IInquisitionHeaderInfoService ÖÐµÄ getInquisitionHeaderInfoList

getInquisitionHeaderInfoTotal

public int getInquisitionHeaderInfoTotal(long inquisitionID)

´Ó½Ó¿Ú IInquisitionHeaderInfoService ¸´ÖƵÄÃèÊö

ÐÅÏ¢×ÜÊý

Ö¸¶¨Õߣº
½Ó¿Ú IInquisitionHeaderInfoService ÖÐµÄ getInquisitionHeaderInfoTotal

·µ»Ø£º
ÊýÁ¿

findInquisitionHeaderInfoByPage

public java.util.List<InquisitionHeaderInfo> findInquisitionHeaderInfoByPage(long inquisitionID,
                                                                             int firstResult,
                                                                             int maxResult)

´Ó½Ó¿Ú IInquisitionHeaderInfoService ¸´ÖƵÄÃèÊö

·ÖÒ³ÐÅÏ¢

Ö¸¶¨Õߣº
½Ó¿Ú IInquisitionHeaderInfoService ÖÐµÄ findInquisitionHeaderInfoByPage

firstResult - ¿ªÊ¼Êý
maxResult - ×î´óÊý

·µ»Ø£º
ÐÅÏ¢½á¹û

findInquisitionHeaderInfoByPage

public java.util.List<InquisitionHeaderInfo> findInquisitionHeaderInfoByPage(int firstResult,
                                                                             int maxResult)

´Ó½Ó¿Ú IInquisitionHeaderInfoService ¸´ÖƵÄÃèÊö

·ÖÒ³ÐÅÏ¢

Ö¸¶¨Õߣº
½Ó¿Ú IInquisitionHeaderInfoService ÖÐµÄ findInquisitionHeaderInfoByPage

²ÎÊý£º
firstResult - ¿ªÊ¼Êý
maxResult - ×î´óÊý

·µ»Ø£º
ÐÅÏ¢½á¹û

findPageByDelStatus

public java.util.List<InquisitionHeaderInfo> findPageByDelStatus(int firstResult,
                                                                 int maxResult)

´Ó½Ó¿Ú IInquisitionHeaderInfoService ¸´ÖƵÄÃèÊö

ɾ³ý״̬·ÖÒ³ÐÅÏ¢

Ö¸¶¨Õߣº
½Ó¿Ú IInquisitionHeaderInfoService ÖÐµÄ findPageByDelStatus

²ÎÊý£º
firstResult - ¿ªÊ¼Êý
maxResult - ×î´óÊý

·µ»Ø£º
ÐÅÏ¢½á¹û

getTotalByDelStatus

public int getTotalByDelStatus()

´Ó½Ó¿Ú IInquisitionHeaderInfoService ¸´ÖƵÄÃèÊö

ɾ³ý״̬×ÜÊý

Ö¸¶¨Õߣº
½Ó¿Ú IInquisitionHeaderInfoService ÖÐµÄ getTotalByDelStatus

·µ»Ø£º
int

getNewShowOrder

public int getNewShowOrder(java.lang.Long inquisitionID)

´Ó½Ó¿Ú IInquisitionHeaderInfoService ¸´ÖƵÄÃèÊö

»ñÈ¡ÐÂÏÔʾ˳Ðò

Ö¸¶¨Õߣº
½Ó¿Ú IInquisitionHeaderInfoService ÖÐµÄ getNewShowOrder

·µ»Ø£º
ÏÔʾ˳Ðò

      ¸ÅÊö
      Èí¼þ°ü
    Àà
      ʹÓÃ
      Ê÷
      Òѹýʱ
      Ë÷Òý
      °ïÖú

 ÉÏÒ»¸öÀà
 ÏÂÒ»¸öÀà

  ¿ò¼Ü
 ÎÞ¿ò¼Ü

  ËùÓÐÀà

  ÕªÒª£º ǶÌ× | ×Ö¶Î | ¹¹Ôì·½·¨ | ·½·¨

ÏêϸÐÅÏ¢£º ×Ö¶Î | ¹¹Ôì·½·¨ | ·½·¨

Copyright © 2008 ±±¾©°¬µÏÖÇÈíÐÅÏ¢¼¼ÊõÓÐÏÞÔðÈι«Ë¾. All Rights Reserved.
http://www.idea-soft.cn http://www.iaicc.cn http://www.xsaas.org


text:
<!DOCTYPE html>

<meta charset="utf-8"/>
<title>unicode-bidi: pre plaintext</title>

<link rel="author" title="Richard Ishida" href='mailto:ishida@w3.org'/>
<link rel="help" href='http://www.w3.org/TR/css-writing-modes-3/#text-direction'/>
<link rel="match" href="reference/block-plaintext-006.html"/>
<meta name="assert" content='If unicode-bidi:plaintext is applied to a pre element, each line of characters after a linebreak is displayed according to the first strong character after the linebreak.'/>

Test passes if the two boxes display the same glyphs in the same order, with the same line breaks.

> a > ב > c >
> א > b > ג >
> a > ב > c >

> a > ב > c >

<  ג < b <  א <

> a > ב > c >


text:
======
bossrc
======

---------------------------
control utility for bossrun
---------------------------

:Author: Paul Colomiets <paul@colomiets.name>
:Date: 2011
:Manual section: 1

Synopsis
--------

| bossctl [ -c *FILE* ] *command* *args...*

Description
-----------

Bossrc is an utility to send bossrun control commands including process
control

Options
-------

  -c CONFIG_FILE
    configuration file. By default bossrun will try ./bossrun.yaml,
    ./boss.yaml, ./config/bossrun.yaml, ./config/boss.yaml and will fall back
    to /etc/bossd.yaml if neither exists.

  -T
    run bosstree after running command, note bosstree will be run continuously,
    so you must stop it yourself, e.g. with Ctrl+C

Process Control Commands
------------------------

restart *PROCESS1* *PROCESS2*...

    restarts specified processes by name (sending it SIGTERM), temporarily
    disables failfast for this process

stop *PROCESS1* *PROCESS2*...

    stops process by sending it SIGTERM, disables failfast for this process

start *PROCESS1* *PROCESS2*...

    starts processes, even if they are were marked as stopped

sigterm *PROCESS1* *PROCESS2*...

sighup *PROCESS1* *PROCESS2*...

sigkill *PROCESS1* *PROCESS2*...

sigusr1 *PROCESS1* *PROCESS2*...

sigusr2 *PROCESS1* *PROCESS2*...

sigint *PROCESS1* *PROCESS2*...

sigquit *PROCESS1* *PROCESS2*...

    sends respective signal to a process (that will probably die, and
    kill bossrun in running in failfast mode, not like restart)

sig *NUM* *PROCESS1* *PROCESS2*...

    sends a signal by a number (useful to send signals having to separate
    command, like SIGSEGV)

norestart *NUM* *PROCESS1* *PROCESS2*...

    marks process (instance) to not to restart if it crashed. Useful with
    ``-p`` flag and subsequent call to ``sig*`` commands to stop exactly
    specified instance of process instead of using ``decr`` and ``min`` (see
    below)

Instance Manipulation Commands
------------------------------

incr *PROCESS1* *PROCESS2*...

    increment number of instances for each of the processes

decr *PROCESS1* *PROCESS2*...

    decrement number of instances for each of the processes. Kills ones having
    biggest instance number first. Kills with ``spare-kill-signal`` from
    configuration (SIGTERM by default)

max *PROCESS1* *PROCESS2*...

    start maximum allowed number of instances for each process

min  *PROCESS1* *PROCESS2*...

    kill some instances of the process, until minimum number left. Kills ones
    having biggest instance number first. Kills with ``spare-kill-signal`` from
    configuration (SIGTERM by default)

Process Matching
----------------

By default you specify exact process names as specified in configuration
file. All process control commands support following options:

-a -A    match (no match) command arguments

-b -B    match (no match) executable path

-p -P    match (no match) pid of running processes

-n -N    match (no match) configured process name (on by default)

-t,-T    match (no match) process tags (on by default)

-e -E    match by fnmatch pattern (exact match)

Bossrun Global Commands
-----------------------

shutdown

    shut down bossrun and all started processes

Environment
-----------

BOSS_CONFIG

    specifies bossrun configuration file instead of specifying it on command
    line. Very useful to test local configuration, also works for shell
    completion.


text:
	      About

		The purpose of this demo application is to present a basic working model of a platform
		which provides a channel between the people who are in need of a service and the people
		who	provide services and wish to advertise their business.

		The first time a user opens the Gigs page, they will be prompted to share their
		location and if they do so, and if the geolocation is successful (it is recommended to
		use Google Chrome browser), the green marker will automatically be placed on their
		current location on the map.

		Alternatively, they can set their location by dragging the green marker on the map
		to their exact location.

		The search function can be utilized in two ways: by clicking on the appropriate
		category/service name in the Gigs drop-down menu from the navigation bar,
		or by using the search bar itself to search by keyword(s).

		The search results will be shown in the form of clickable markers on the map,
		and a scrollable list next to the map.
The results shown on the page will be
		related to the selection/query combined with the user's proximity/zoom-level.
 Otherwise,
		the results will only be filtered by proximity/zoom-level, or the area the map covers.

		Non-registered users can only search for existing services, as well as rate/comment
		the services they have used in the past. (However, this will most probably be changed
		at some point, in order to minimize the possibility of having users giving themselves
		high ratings).

		Registered users can offer their services. They can add more than one service,
		and they can have up to two locations per service.

		There are three possible roles a registered user can have: User, Admin and SysAdmin.

		Users with the role User can only have a basic account and add services.

		Users with the role Admin can add services, as well as view/remove other accounts if needed.

		Users with the role SysAdmin can add services, view/remove other accounts,
		but also have access to the application Management page.


text:
@interface SearchResultsViewController()

- (void) searchString:(NSString *)query inChapterAtIndex:(int)index;

@end

@implementation SearchResultsViewController

@synthesize resultsTableView, epubViewController, currentQuery, results;

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
    static NSString *CellIdentifier = @"Cell";

    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
    if (cell == nil) {
        cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:CellIdentifier] autorelease];
    }

    cell.textLabel.adjustsFontSizeToFitWidth = YES;

    SearchResult* hit = (SearchResult*)results[[indexPath row]];
    cell.textLabel.text = [NSString stringWithFormat:@"...%@...", hit.neighboringText];
    cell.detailTextLabel.text = [NSString stringWithFormat:@"Chapter %d - page %d", hit.chapterIndex, hit.pageIndex+1];
    return cell;
}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
    return [results count];
}

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
    SearchResult* hit = (SearchResult*)results[[indexPath row]];

    [epubViewController loadSpine:hit.chapterIndex atPageIndex:hit.pageIndex highlightSearchResult:hit];
}

- (void) searchString:(NSString*)query{
    self.results = [[NSMutableArray alloc] init];
    [resultsTableView reloadData];
    self.currentQuery=query;

    [self searchString:query inChapterAtIndex:0];
}

- (void) searchString:(NSString *)query inChapterAtIndex:(int)index{

    currentChapterIndex = index;

    Chapter* chapter = (epubViewController.loadedEpub.spineArray)[index];

    NSRange range = NSMakeRange(0, chapter.text.length);
    range = [chapter.text rangeOfString:query options:NSCaseInsensitiveSearch range:range locale:nil];
    int hitCount=0;
    while (range.location != NSNotFound) {
        range = NSMakeRange(range.location+range.length, chapter.text.length-(range.location+range.length));
        range = [chapter.text rangeOfString:query options:NSCaseInsensitiveSearch range:range locale:nil];
        hitCount++;
    }

    if(hitCount!=0){
        UIWebView* webView = [[UIWebView alloc] initWithFrame:chapter.windowSize];
        [webView setDelegate:self];
        NSURLRequest* urlRequest = [NSURLRequest requestWithURL:[NSURL fileURLWithPath:chapter.spinePath]];
        [webView loadRequest:urlRequest];
    } else {
        if((currentChapterIndex+1)<[epubViewController.loadedEpub.spineArray count]){
            [self searchString:currentQuery inChapterAtIndex:(currentChapterIndex+1)];
        } else {
            epubViewController.searching = NO;
        }
    }
}

- (void)webView:(UIWebView *)webView didFailLoadWithError:(NSError *)error{
    NSLog(@"%@", error);
	[webView release];
}

- (void) webViewDidFinishLoad:(UIWebView*)webView{
    NSString *varMySheet = @"var mySheet = document.styleSheets[0];";

	NSString *addCSSRule =  @"function addCSSRule(selector, newRule) {"
	"if (mySheet.addRule) {"
    "mySheet.addRule(selector, newRule);"								// For Internet Explorer
	"} else {"
    "ruleIndex = mySheet.cssRules.length;"
    "mySheet.insertRule(selector + '{' + newRule + ';}', ruleIndex);"   // For Firefox, Chrome, etc.
    "}"
	"}";

//    NSLog(@"w:%f h:%f", webView.bounds.size.width, webView.bounds.size.height);

	NSString *insertRule1 = [NSString stringWithFormat:@"addCSSRule('html', 'padding: 0px; height: %fpx; -webkit-column-gap: 0px; -webkit-column-width: %fpx;')", webView.frame.size.height, webView.frame.size.width];
	NSString *insertRule2 = [NSString stringWithFormat:@"addCSSRule('p', 'text-align: justify;')"];
	NSString *setTextSizeRule = [NSString stringWithFormat:@"addCSSRule('body', '-webkit-text-size-adjust: %d%%;')",[(epubViewController.loadedEpub.spineArray)[currentChapterIndex] fontPercentSize]];

	[webView stringByEvaluatingJavaScriptFromString:varMySheet];

	[webView stringByEvaluatingJavaScriptFromString:addCSSRule];

	[webView stringByEvaluatingJavaScriptFromString:insertRule1];

	[webView stringByEvaluatingJavaScriptFromString:insertRule2];

    [webView stringByEvaluatingJavaScriptFromString:setTextSizeRule];

    [webView highlightAllOccurencesOfString:currentQuery];

    NSString* foundHits = [webView stringByEvaluatingJavaScriptFromString:@"results"];

//    NSLog(@"%@", foundHits);

    NSMutableArray* objects = [[NSMutableArray alloc] init];

    NSArray* stringObjects = [foundHits componentsSeparatedByString:@";"];
    for(int i=0; i<[stringObjects count]; i++){
        NSArray* strObj = [stringObjects[i] componentsSeparatedByString:@","];
        if([strObj count]==3){
            [objects addObject:strObj];
        }
    }

    NSArray* orderedRes = [objects sortedArrayUsingComparator:^(id obj1, id obj2){
                                            int x1 = [obj1[0] intValue];
                                            int x2 = [obj2[0] intValue];
                                            int y1 = [obj1[1] intValue];
                                            int y2 = [obj2[1] intValue];
                                            if(y1<y2){
                                                return NSOrderedAscending;
                                            } else if(y1>y2){
                                                return NSOrderedDescending;
                                            } else {
                                                if(x1<x2){
                                                    return NSOrderedAscending;
                                                } else if (x1>x2){
                                                    return NSOrderedDescending;
                                                } else {
                                                    return NSOrderedSame;
                                                }
                                            }
    }];

    [objects release];

    for(int i=0; i<[orderedRes count]; i++){
        NSArray* currObj = orderedRes[i];

        SearchResult* searchRes = [[SearchResult alloc] initWithChapterIndex:currentChapterIndex pageIndex:([currObj[1] intValue]/webView.bounds.size.height) hitIndex:0 neighboringText:[webView stringByEvaluatingJavaScriptFromString:[NSString stringWithFormat:@"unescape('%@')", currObj[2]]] originatingQuery:currentQuery];
        [results addObject:searchRes];
		[searchRes release];
    }

    [webView dealloc];

    [resultsTableView performSelectorOnMainThread:@selector(reloadData) withObject:nil waitUntilDone:NO];
    if((currentChapterIndex+1)<[epubViewController.loadedEpub.spineArray count]){
        [self searchString:currentQuery inChapterAtIndex:(currentChapterIndex+1)];
    } else {
        epubViewController.searching = NO;
    }
}

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}

- (void)dealloc
{
	self.resultsTableView = nil;
	[results release];
	[currentQuery release];
    [super dealloc];
}

- (void)didReceiveMemoryWarning
{
    // Releases the view if it doesn't have a superview.
    [super didReceiveMemoryWarning];

    // Release any cached data, images, etc that aren't in use.
}

#pragma mark - View lifecycle

- (void)viewDidLoad
{
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
}

- (void)viewDidUnload
{
    [super viewDidUnload];
    // Release any retained subviews of the main view.
    self.resultsTableView = nil;
}

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
    // Return YES for supported orientations
    return (interfaceOrientation == UIInterfaceOrientationPortrait);
}

@end