text:
package org.jboss.resteasy.tests.smime;

import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * @author Bill Burke
 * @version $Revision: 1 $
 */
@XmlRootElement(name = "customer")
public class Customer
{
   private String name;

   @XmlAttribute
   public String getName()
   {
      return name;
   }

   public void setName(String name)
   {
      this.name = name;
   }

   @Override
   public String toString()
   {
      return "Customer{" +
              "name='" + name + '\'' +
              '}';
   }
}

redpajama_set_name: RedPajamaGithub


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

import static com.google.common.base.MoreObjects.toStringHelper;
import static java.util.Objects.requireNonNull;

public class LocalMemoryContext
{
    private final AbstractAggregatedMemoryContext parentMemoryContext;
    private long usedBytes;

    public LocalMemoryContext(AbstractAggregatedMemoryContext parentMemoryContext)
    {
        this.parentMemoryContext = requireNonNull(parentMemoryContext, "parentMemoryContext is null");
    }

    public long getBytes()
    {
        return usedBytes;
    }

    public void setBytes(long bytes)
    {
        long oldLocalUsedBytes = this.usedBytes;
        this.usedBytes = bytes;
        parentMemoryContext.updateBytes(this.usedBytes - oldLocalUsedBytes);
    }

    @Override
    public String toString()
    {
        return toStringHelper(this)
                .add("usedBytes", usedBytes)
                .toString();
    }
}


text:
template<typename T>
void genericWriter<T>::print_whatever(const std::string s) const
{
	(*_methodOfWriting).print_whatever(s);
}

//register the derived class with boost.
//BOOST_CLASS_EXPORT_GUID(genericWriter<T>, "genericWriter")


text:
package locket

import (
	"path"
	"time"
)

const LockTTL = 10 * time.Second
const RetryInterval = 5 * time.Second

const LockSchemaRoot = "v1/locks"

func LockSchemaPath(lockName ...string) string {
	return path.Join(LockSchemaRoot, path.Join(lockName...))
}


text:
import sbt.Keys._
import sbt._

object Versioning {

  def writeVersionFile(path: String) = Def.task{
    val file = (resourceManaged in Compile).value / path
    IO.write(file, version.value.getBytes)
    Seq(file)
  }
}


text:
#pragma once
#include <aws/snow-device-management/SnowDeviceManagement_EXPORTS.h>
#include <aws/snow-device-management/model/InstanceStateName.h>
#include <utility>

namespace Aws
{
namespace Utils
{
namespace Json
{
  class JsonValue;
  class JsonView;
} // namespace Json
} // namespace Utils
namespace SnowDeviceManagement
{
namespace Model
{

  /**
   *
The description of the current state of an instance.

See Also:

   * AWS
   * API Reference

   */
  class AWS_SNOWDEVICEMANAGEMENT_API InstanceState
  {
  public:
    InstanceState();
    InstanceState(Aws::Utils::Json::JsonView jsonValue);
    InstanceState& operator=(Aws::Utils::Json::JsonView jsonValue);
    Aws::Utils::Json::JsonValue Jsonize() const;

    /**
     *
The state of the instance as a 16-bit unsigned integer.

The high byte
     * is all of the bits between 2^8 and (2^16)-1, which equals decimal values between
     * 256 and 65,535. These numerical values are used for internal purposes and should
     * be ignored.

The low byte is all of the bits between 2^0 and (2^8)-1,
     * which equals decimal values between 0 and 255.

The valid values for the
     * instance state code are all in the range of the low byte. These values are:

     *

 0 : pending

     * 16 : running

 32 :
     * shutting-down

 48 :
     * terminated

 64 :
     * stopping

 80 : stopped
     *

You can ignore the high byte value by zeroing out all of the
     * bits above 2^8 or 256 in decimal.

     */
    inline int GetCode() const{ return m_code; }

    /**
     *
The state of the instance as a 16-bit unsigned integer.

The high byte
     * is all of the bits between 2^8 and (2^16)-1, which equals decimal values between
     * 256 and 65,535. These numerical values are used for internal purposes and should
     * be ignored.

The low byte is all of the bits between 2^0 and (2^8)-1,
     * which equals decimal values between 0 and 255.

The valid values for the
     * instance state code are all in the range of the low byte. These values are:

     *

 0 : pending

     * 16 : running

 32 :
     * shutting-down

 48 :
     * terminated

 64 :
     * stopping

 80 : stopped
     *

You can ignore the high byte value by zeroing out all of the
     * bits above 2^8 or 256 in decimal.

     */
    inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }

    /**
     *
The state of the instance as a 16-bit unsigned integer.

The high byte
     * is all of the bits between 2^8 and (2^16)-1, which equals decimal values between
     * 256 and 65,535. These numerical values are used for internal purposes and should
     * be ignored.

The low byte is all of the bits between 2^0 and (2^8)-1,
     * which equals decimal values between 0 and 255.

The valid values for the
     * instance state code are all in the range of the low byte. These values are:

     *

 0 : pending

     * 16 : running

 32 :
     * shutting-down

 48 :
     * terminated

 64 :
     * stopping

 80 : stopped
     *

You can ignore the high byte value by zeroing out all of the
     * bits above 2^8 or 256 in decimal.

     */
    inline void SetCode(int value) { m_codeHasBeenSet = true; m_code = value; }

    /**
     *
The state of the instance as a 16-bit unsigned integer.

The high byte
     * is all of the bits between 2^8 and (2^16)-1, which equals decimal values between
     * 256 and 65,535. These numerical values are used for internal purposes and should
     * be ignored.

The low byte is all of the bits between 2^0 and (2^8)-1,
     * which equals decimal values between 0 and 255.

The valid values for the
     * instance state code are all in the range of the low byte. These values are:

     *

 0 : pending

     * 16 : running

 32 :
     * shutting-down

 48 :
     * terminated

 64 :
     * stopping

 80 : stopped
     *

You can ignore the high byte value by zeroing out all of the
     * bits above 2^8 or 256 in decimal.

     */
    inline InstanceState& WithCode(int value) { SetCode(value); return *this;}

    /**
     *
The current state of the instance.

     */
    inline const InstanceStateName& GetName() const{ return m_name; }

    /**
     *
The current state of the instance.

     */
    inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }

    /**
     *
The current state of the instance.

     */
    inline void SetName(const InstanceStateName& value) { m_nameHasBeenSet = true; m_name = value; }

    /**
     *
The current state of the instance.

     */
    inline void SetName(InstanceStateName&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }

    /**
     *
The current state of the instance.

     */
    inline InstanceState& WithName(const InstanceStateName& value) { SetName(value); return *this;}

    /**
     *
The current state of the instance.

     */
    inline InstanceState& WithName(InstanceStateName&& value) { SetName(std::move(value)); return *this;}

  private:

    int m_code;
    bool m_codeHasBeenSet = false;

    InstanceStateName m_name;
    bool m_nameHasBeenSet = false;
  };

} // namespace Model
} // namespace SnowDeviceManagement
} // namespace Aws


text:
using ByTheTale.StateMachine;

/// <summary>
/// Convenience abstract class so our states can chat to the state machine easier
/// </summary>
public abstract class PlayerState : State
{
    protected IPlayerStateMachine player { get { return (IPlayerStateMachine)machine; } }
}


text:
<!DOCTYPE html>

<title>How do I enable student peer review for an assignment?</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta content="sakai.assignment" name="description">
<meta content="peer review, peer assessment, peer evaluation" name="search">
<link href="/library/skin/tool_base.css" media="screen" rel="stylesheet" type="text/css" charset="utf-8">
<link href="../css/help.css" media="screen" rel="stylesheet" type="text/css" charset="utf-8">
<link href="/library/skin/morpheus-default/tool.css" media="screen" rel="stylesheet" type="text/css" charset="utf-8">
<link href="/library/js/jquery/featherlight/0.4.0/featherlight.min.css" media="screen" rel="stylesheet" type="text/css" charset="utf-8">

How do I navigate among different sites?

Home.

Home is your individual online workspace. When you first log in, you go to Home automatically. To return to your workspace after visiting other sites, click Home in the upper left corner of the screen.

For more information about Home, see What is Home?

Site Navigation.

Additional course and project sites appear as buttons across the top of the screen. Click a button to go to the corresponding site.

You may also click on Sites to view all active sites and manage favorites. For more information about site navigation, see What is Site Navigation?

It is strongly recommended that you use the site navigation, and not the back and forward buttons in your web browser, to navigate among different sites in the system.

Note: If you are not yet a member of any sites, you will see only a Home button at the top of the screen.


text:
namespace BeerApp.Services.Data
{
    using System.Linq;
    using BeerApp.Data.Common.Repositories.Contracts;
    using BeerApp.Data.Models;
    using Web;

    public class RecipesService : IRecipesService
    {
        private readonly IDbRepository<Recipe> recipes;
        private readonly IIdentifierProvider identifierProvider;
        private readonly IDeletableEntityRepository<Recipe> deleteableRepo;

        public RecipesService(IDbRepository<Recipe> recipes, IIdentifierProvider identifierProvider, IDeletableEntityRepository<Recipe> deleteableRepo)
        {
            this.recipes = recipes;
            this.identifierProvider = identifierProvider;
            this.deleteableRepo = deleteableRepo;
        }

        public int Add(Recipe recipe)
        {
            this.recipes.Add(recipe);
            this.recipes.Save();
            return recipe.Id;
        }

        public IQueryable<Recipe> GetAll()
        {
            return this.recipes.All();
        }

        public Recipe GetById(string id)
        {
            var intId = this.identifierProvider.DecodeId(id);
            var recipe = this.recipes.GetById(intId);

            return recipe;
        }

        public Recipe GetByIntId(int id)
        {
            var country = this.recipes.GetById(id);

            return country;
        }

        public int AdminCreate(Recipe entity)
        {
            this.deleteableRepo.Add(entity);
            this.deleteableRepo.SaveChanges();
            return entity.Id;
        }

        public int AdminUpdate(Recipe entity)
        {
            this.deleteableRepo.Update(entity);
            this.deleteableRepo.SaveChanges();
            return entity.Id;
        }

        public void AdminDestroy(int id)
        {
            this.deleteableRepo.Delete(id);
            this.deleteableRepo.SaveChanges();
        }

        public void AdminDispose()
        {
            this.deleteableRepo.Dispose();
        }
    }
}


text:
<?php

namespace Shopware\PluginCreator\Services\TemplateFileProvider;

use Shopware\PluginCreator\Services\NameGenerator;
use Shopware\PluginCreator\Struct\Configuration;

/**
 * Interface FileProviderInterface defines a FileProvider that is able to return a list
 * of files for the template engine to process. Every FileProvider covers one specific case,
 * so that it probably will check "Configuration", if it is required at all.
 *
 * @package Shopware\PluginCreator\Services\TemplateFileProvider
 */
interface FileProviderInterface
{
    /**
     * @param Configuration $configuration
     * @param NameGenerator $nameGenerator
     * @return array Return an array of files (key = source, value = target). Return empty
     * array for NOOP
     */
    public function getFiles(Configuration $configuration, NameGenerator $nameGenerator);
}


text:
<?php

namespace Zff\Base\Form\View\Helper;

/**
 * FormRadioItem
 * Similar to FormMultiCheckboxItem, more renders radio instead of checkboxes.
 *
 * @package ZffBase
 * @subpackage ZffBase_Form_Helper
 */
class FormRadioItem extends FormMultiCheckboxItem
{

    /**
     * Return input type
     *
     * @return string
     */
    protected function getInputType()
    {
        return 'radio';
    }
}


text:
<?xml version="1.0" encoding="UTF-8"?><!--
DISCLAIMER

THE INFORMATION CONTAINED HEREIN AND THE FINANCIAL INFORMATION EXCHANGE PROTOCOL (COLLECTIVELY, THE "FIX PROTOCOL") ARE PROVIDED "AS IS" AND NO PERSON OR ENTITY ASSOCIATED WITH THE FIX PROTOCOL MAKES ANY REPRESENTATION OR WARRANTY, EXPRESS OR IMPLIED, AS TO THE FIX PROTOCOL (OR THE RESULTS TO BE OBTAINED BY THE USE THEREOF) OR ANY OTHER MATTER AND EACH SUCH PERSON AND ENTITY SPECIFICALLY DISCLAIMS ANY WARRANTY OF ORIGINALITY, ACCURACY, COMPLETENESS, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. SUCH PERSONS AND ENTITIES DO NOT WARRANT THAT THE FIX PROTOCOL WILL CONFORM TO ANY DESCRIPTION THEREOF OR BE FREE OF ERRORS. THE ENTIRE RISK OF ANY USE OF THE FIX PROTOCOL IS ASSUMED BY THE USER.

NO PERSON OR ENTITY ASSOCIATED WITH THE FIX PROTOCOL SHALL HAVE ANY LIABILITY FOR DAMAGES OF ANY KIND ARISING IN ANY MANNER OUT OF OR IN CONNECTION WITH ANY USER'S USE OF (OR ANY INABILITY TO USE) THE FIX PROTOCOL, WHETHER DIRECT, INDIRECT, INCIDENTAL, SPECIAL OR CONSEQUENTIAL (INCLUDING, WITHOUT LIMITATION, LOSS OF DATA, LOSS OF USE, CLAIMS OF THIRD PARTIES OR LOST PROFITS OR REVENUES OR OTHER ECONOMIC LOSS), WHETHER IN TORT (INCLUDING NEGLIGENCE AND STRICT LIABILITY), CONTRACT OR OTHERWISE, WHETHER OR NOT ANY SUCH PERSON OR ENTITY HAS BEEN ADVISED OF, OR OTHERWISE MIGHT HAVE ANTICIPATED THE POSSIBILITY OF, SUCH DAMAGES.

No proprietary or ownership interest of any kind is granted with respect to the FIX Protocol (or any rights therein).

Copyright 2003-2009 FIX Protocol Limited, all rights reserved

REPRODUCTION

FIX Protocol Limited grants permission to print in hard copy form or reproduce the FIX Protocol specification in its entirety provided that the duplicated pages retain the "Copyright FIX Protocol Limited" statement at the bottom of the page.

Portions of the FIX Protocol specification may be extracted or cited in other documents (such as a document which describes one's implementation of the FIX Protocol) provided that one reference the origin of the FIX Protocol specification (HTUhttp://www.fixprotocol.orgUTH) and that the specification itself is "Copyright FIX Protocol Limited".
FIX Protocol Limited claims no intellectual property over one's implementation (programming code) of an application which implements the behavior and details from the FIX Protocol specification.
--><Abbreviations xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" copyright="Copyright (c) FIX Protocol Ltd. All Rights Reserved." edition="2010" version="FIX.5.0" xsi:noNamespaceSchemaLocation="../../schema/Abbreviations.xsd" generated="2010-03-13T14:54:02-05:00">
	<Abbreviation added="FIX.4.4">
		<Term>Account</Term>
		<AbbrTerm>Acct</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Accrual</Term>
		<AbbrTerm>Acrl</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Accrued</Term>
		<AbbrTerm>Acrd</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Acknowledgement</Term>
		<AbbrTerm>Ack</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Action</Term>
		<AbbrTerm>Actn</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Adjust</Term>
		<AbbrTerm>Adj</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Adjustment</Term>
		<AbbrTerm>Adjmt</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Advertisement</Term>
		<AbbrTerm>Adv</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.5.0" addedEP="41">
		<Term>Affected</Term>
		<AbbrTerm>Afctd</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.5.0" addedEP="42">
		<Term>Algorithm</Term>
		<AbbrTerm>Algo</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Allocation</Term>
		<AbbrTerm>Alloc</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>AllowableOneSidedness</Term>
		<AbbrTerm>AOS</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Amount</Term>
		<AbbrTerm>Amt</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.5.0" addedEP="63">
		<Term>Application</Term>
		<AbbrTerm>Appl</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Assignment</Term>
		<AbbrTerm>Asgn</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.5.0" addedEP="41">
		<Term>Attribute</Term>
		<AbbrTerm>Attrb</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.5.0" addedEP="52">
		<Term>Base</Term>
		<AbbrTerm>Base</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Behalf</Term>
		<AbbrTerm>Bhf</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Benchmark</Term>
		<AbbrTerm>Bnchmk</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Booking</Term>
		<AbbrTerm>Bkng</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Broker</Term>
		<AbbrTerm>Brkr</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Brokers</Term>
		<AbbrTerm>Brkrs</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Business</Term>
		<AbbrTerm>Biz</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Calculation</Term>
		<AbbrTerm>Calc</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Cancel</Term>
		<AbbrTerm>Cxl</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Capacity</Term>
		<AbbrTerm>Cpcty</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Capture</Term>
		<AbbrTerm>Capt</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Cash</Term>
		<AbbrTerm>Csh</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Client</Term>
		<AbbrTerm>Cl</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Close</Term>
		<AbbrTerm>Cls</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Code</Term>
		<AbbrTerm>Cd</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Collateral</Term>
		<AbbrTerm>Coll</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Commission</Term>
		<AbbrTerm>Comm</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Common</Term>
		<AbbrTerm>Cmn</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Company</Term>
		<AbbrTerm>Comp</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Confirmation</Term>
		<AbbrTerm>Cnfm</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Confirmation</Term>
		<AbbrTerm>Confirm</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Contra</Term>
		<AbbrTerm>Cntra</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.5.0" addedEP="63">
		<Term>Control</Term>
		<AbbrTerm>Ctrl</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Corporate</Term>
		<AbbrTerm>Corp</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Country</Term>
		<AbbrTerm>Ctry</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Coupon</Term>
		<AbbrTerm>Cpn</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Cross</Term>
		<AbbrTerm>Crss</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Cumulative</Term>
		<AbbrTerm>Cum</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Currency</Term>
		<AbbrTerm>Ccy</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Curve</Term>
		<AbbrTerm>Crv</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Data</Term>
		<AbbrTerm>Data</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Database</Term>
		<AbbrTerm>Db</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Date</Term>
		<AbbrTerm>Dt</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Definition</Term>
		<AbbrTerm>Def</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Delete</Term>
		<AbbrTerm>Del</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Deliver</Term>
		<AbbrTerm>Dlvr</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.5.0" addedEP="52">
		<Term>Derivative</Term>
		<AbbrTerm>Deriv</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Description</Term>
		<AbbrTerm>Desc</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Destination</Term>
		<AbbrTerm>Dest</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Device</Term>
		<AbbrTerm>Dev</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Discount</Term>
		<AbbrTerm>Disc</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Discretion</Term>
		<AbbrTerm>Dsctn</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Discretionary</Term>
		<AbbrTerm>Dsctnry</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Don't Know</Term>
		<AbbrTerm>DK</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Duplicate</Term>
		<AbbrTerm>Dup</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Effective</Term>
		<AbbrTerm>Efctv</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Encoded</Term>
		<AbbrTerm>Enc</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Error</Term>
		<AbbrTerm>Err</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Exchange</Term>
		<AbbrTerm>Exch</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>ExchangeForPhysical</Term>
		<AbbrTerm>EFP</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Execute</Term>
		<AbbrTerm>Exct</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Execution</Term>
		<AbbrTerm>Exctn</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Exercise</Term>
		<AbbrTerm>Exr</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Factor</Term>
		<AbbrTerm>Fctr</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.5.0" addedEP="42">
		<Term>Feed</Term>
		<AbbrTerm>Feed</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Foreign Currency</Term>
		<AbbrTerm>FX</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Forward</Term>
		<AbbrTerm>Fwd</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.5.0" addedEP="52">
		<Term>Force</Term>
		<AbbrTerm>Force</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Future</Term>
		<AbbrTerm>Fut</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Good Till Date</Term>
		<AbbrTerm>GTD</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Group</Term>
		<AbbrTerm>Grp</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Handling</Term>
		<AbbrTerm>Hndl</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Identifier</Term>
		<AbbrTerm>ID</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Implicit</Term>
		<AbbrTerm>Implct</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.5.0" addedEP="22">
		<Term>Increment</Term>
		<AbbrTerm>Incr</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Index</Term>
		<AbbrTerm>Ndx</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Indication of Interest</Term>
		<AbbrTerm>IOI</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Indicator</Term>
		<AbbrTerm>Ind</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Information</Term>
		<AbbrTerm>Info</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Input</Term>
		<AbbrTerm>Inpt</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Inquiry</Term>
		<AbbrTerm>Inq</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Institution</Term>
		<AbbrTerm>Instn</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.5.0" addedEP="44">
		<Term>Instruction</Term>
		<AbbrTerm>Inst</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Instrument</Term>
		<AbbrTerm>Instrmt</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Interest</Term>
		<AbbrTerm>Int</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Issue</Term>
		<AbbrTerm>Iss</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Issuer</Term>
		<AbbrTerm>Issr</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Level</Term>
		<AbbrTerm>Lvl</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Liquidity</Term>
		<AbbrTerm>Lqdty</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.5.0" addedEP="52">
		<Term>Limit</Term>
		<AbbrTerm>Lmt</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.5.0" addedEP="20">
		<Term>List</Term>
		<AbbrTerm>List</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Locate</Term>
		<AbbrTerm>Loc</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Location</Term>
		<AbbrTerm>Lctn</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.5.0" addedEP="52">
		<Term>Lot</Term>
		<AbbrTerm>Lot</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Maintenance</Term>
		<AbbrTerm>Mnt</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Margin</Term>
		<AbbrTerm>Mgn</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Market</Term>
		<AbbrTerm>Mkt</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.5.0" addedEP="58">
		<Term>Mass</Term>
		<AbbrTerm>Mass</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Match</Term>
		<AbbrTerm>Mtch</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Maturity</Term>
		<AbbrTerm>Mat</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Maximum</Term>
		<AbbrTerm>Max</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Message</Term>
		<AbbrTerm>Msg</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.5.0" addedEP="52">
		<Term>Method</Term>
		<AbbrTerm>Meth</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Minimum</Term>
		<AbbrTerm>Min</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Miscellaneous</Term>
		<AbbrTerm>Misc</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.5.0" addedEP="59">
		<Term>Model</Term>
		<AbbrTerm>Model</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Modification</Term>
		<AbbrTerm>Mod</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Money</Term>
		<AbbrTerm>Mny</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Month</Term>
		<AbbrTerm>Mo</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Multileg</Term>
		<AbbrTerm>Mleg</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Multiplier</Term>
		<AbbrTerm>Mult</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Nested</Term>
		<AbbrTerm>Nst</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Network</Term>
		<AbbrTerm>Ntwk</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.5.0" addedEP="56">
		<Term>Notification</Term>
		<AbbrTerm>Notifctn</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Number</Term>
		<AbbrTerm>Num</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Number</Term>
		<AbbrTerm>No</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.5.0" addedEP="44">
		<Term>Obligation</Term>
		<AbbrTerm>Oblig</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Offer</Term>
		<AbbrTerm>Ofr</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Option</Term>
		<AbbrTerm>Opt</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Order</Term>
		<AbbrTerm>Ord</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Original</Term>
		<AbbrTerm>Orig</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Other</Term>
		<AbbrTerm>Oth</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.5.0">
		<Term>Parameter</Term>
		<AbbrTerm>Prm</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Party</Term>
		<AbbrTerm>Pty</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Payment</Term>
		<AbbrTerm>Pmt</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Percent</Term>
		<AbbrTerm>Pct</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Percentage</Term>
		<AbbrTerm>Pctg</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Position</Term>
		<AbbrTerm>Pos</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Possible</Term>
		<AbbrTerm>Psbl</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Preliminary</Term>
		<AbbrTerm>Prlm</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Previous</Term>
		<AbbrTerm>Prev</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Price</Term>
		<AbbrTerm>Px</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Priority</Term>
		<AbbrTerm>Pri</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Priotization</Term>
		<AbbrTerm>Prtztn</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Product</Term>
		<AbbrTerm>Prod</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Publish</Term>
		<AbbrTerm>Pub</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Qualifier</Term>
		<AbbrTerm>Qual</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Quality</Term>
		<AbbrTerm>Qlty</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Quantity</Term>
		<AbbrTerm>Qty</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Quote</Term>
		<AbbrTerm>Quot</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.5.0">
		<Term>Range</Term>
		<AbbrTerm>Rng</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Rate</Term>
		<AbbrTerm>Rt</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Rating</Term>
		<AbbrTerm>Rtng</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Reason</Term>
		<AbbrTerm>Rsn</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Redemption</Term>
		<AbbrTerm>Red</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Reference</Term>
		<AbbrTerm>Ref</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Registration</Term>
		<AbbrTerm>Rgst</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Registry</Term>
		<AbbrTerm>Rgstry</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Reject</Term>
		<AbbrTerm>Rej</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Related</Term>
		<AbbrTerm>Reltd</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Report</Term>
		<AbbrTerm>Rpt</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Reports</Term>
		<AbbrTerm>Rpts</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Repurchase</Term>
		<AbbrTerm>Repo</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Request</Term>
		<AbbrTerm>Req</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.5.0" addedEP="20">
		<Term>Reset</Term>
		<AbbrTerm>Reset</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Response</Term>
		<AbbrTerm>Rsp</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Restatement</Term>
		<AbbrTerm>Rstmt</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Restrict</Term>
		<AbbrTerm>Rstct</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Restriction</Term>
		<AbbrTerm>Rstctn</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Restrictions</Term>
		<AbbrTerm>Rstctns</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Result</Term>
		<AbbrTerm>Rslt</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Roles</Term>
		<AbbrTerm>R</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Round</Term>
		<AbbrTerm>Rnd</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.5.0" addedEP="52">
		<Term>Rules</Term>
		<AbbrTerm>Rules</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Secondary</Term>
		<AbbrTerm>2</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Security</Term>
		<AbbrTerm>Sec</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.5.0" addedEP="52">
		<Term>Segment</Term>
		<AbbrTerm>Seg</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Sender</Term>
		<AbbrTerm>Snd</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Sending</Term>
		<AbbrTerm>Sndg</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Sequence</Term>
		<AbbrTerm>Seq</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Service</Term>
		<AbbrTerm>Svc</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Session</Term>
		<AbbrTerm>Ses</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Settlement</Term>
		<AbbrTerm>Settl</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Short</Term>
		<AbbrTerm>Shrt</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Size</Term>
		<AbbrTerm>Sz</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Source</Term>
		<AbbrTerm>Src</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Standing</Term>
		<AbbrTerm>Stand</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.5.0" addedEP="52">
		<Term>Start</Term>
		<AbbrTerm>Start</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>State</Term>
		<AbbrTerm>St</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Status</Term>
		<AbbrTerm>Stat</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Stipulation</Term>
		<AbbrTerm>Stip</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.5.0">
		<Term>Strategy</Term>
		<AbbrTerm>Strt</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Strike</Term>
		<AbbrTerm>Strk</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Subscription</Term>
		<AbbrTerm>Sub</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Subsidiary</Term>
		<AbbrTerm>Subsid</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Suffix</Term>
		<AbbrTerm>Sfx</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Symbol</Term>
		<AbbrTerm>Sym</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>System</Term>
		<AbbrTerm>Sys</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Target</Term>
		<AbbrTerm>Tgt</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Term</Term>
		<AbbrTerm>Trm</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.5.0" addedEP="52">
		<Term>Tick</Term>
		<AbbrTerm>Tick</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Ticket</Term>
		<AbbrTerm>Tkt</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Time</Term>
		<AbbrTerm>Tm</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Timestamp</Term>
		<AbbrTerm>TS</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Total</Term>
		<AbbrTerm>Tot</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Tracking</Term>
		<AbbrTerm>Trkng</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Trade</Term>
		<AbbrTerm>Trd</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.5.0" addedEP="52">
		<Term>Trading</Term>
		<AbbrTerm>Trdg</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>TradingSession</Term>
		<AbbrTerm>TrdgSes</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Transaction</Term>
		<AbbrTerm>Txn</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Type</Term>
		<AbbrTerm>Typ</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Underlying</Term>
		<AbbrTerm>Und</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.5.0" addedEP="52">
		<Term>Update</Term>
		<AbbrTerm>Upd</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Value</Term>
		<AbbrTerm>Valu</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.5.0" addedEP="52">
		<Term>Valuation</Term>
		<AbbrTerm>Val</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Volume</Term>
		<AbbrTerm>Vol</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Year</Term>
		<AbbrTerm>Yr</AbbrTerm>
	</Abbreviation>
	<Abbreviation added="FIX.4.4">
		<Term>Yield</Term>
		<AbbrTerm>Yld</AbbrTerm>
	</Abbreviation>
</Abbreviations>


text:
var childProcess = require('child_process'),
    fs = require('fs'),
    path = require('path'),
    _c = require('./../conf'),
    PKG_BUILD_DIR = path.join(_c.DEPLOY, "hosted");

module.exports = function (src, baton) {
    baton.take();

    var copy = 'mkdir ' + PKG_BUILD_DIR + " &&" +
               'cp -r ' + _c.ASSETS + "client/images " + PKG_BUILD_DIR + " &&" +
               'cp -r ' + _c.ASSETS + "client/themes " + PKG_BUILD_DIR;

    childProcess.exec(copy, function (error/*, stdout, stderr*/) {
        if (error) { throw new Error(error); }

        var css = path.join(_c.ASSETS + "client", "ripple.css"),
            cssDeploy = path.join(PKG_BUILD_DIR, "ripple.css"),
            jsDeploy = path.join(PKG_BUILD_DIR, "ripple.js"),
            htmlDeploy = path.join(PKG_BUILD_DIR, "index.html"),
            html = src.html.replace(/#OVERLAY_VIEWS#/g, src.overlays)
                          .replace(/#PANEL_VIEWS#/g, src.panels)
                          .replace(/#DIALOG_VIEWS#/g, src.dialogs)
                          .replace(/#URL_PREFIX#/g, "/ripple/assets/");

        fs.writeFileSync(cssDeploy, fs.readFileSync(css, "utf-8") + src.skins);

        fs.writeFileSync(htmlDeploy, html, "utf-8");

        fs.writeFileSync(jsDeploy,
            src.js +
            "ripple('bootstrap').bootstrap();"
        );

        baton.pass(src);
    });
};


text:
var webpack           = require('webpack');
var WebpackDevServer  = require('webpack-dev-server');
var webpackConfig     = require('../webpack.config');

// Express
var express = require('express');
var history = require('connect-history-api-fallback');
var morgan  = require('morgan');
var bodyParser = require('body-parser');

// Express App
var app = express();

// Env
var PORT     = process.env.PORT || 3000;
var NODE_ENV = process.env.NODE_ENV || 'development';

app.use(morgan('dev'));
app.use(bodyParser.json());
app.use(bodyParser.urlencoded({ extended: true }));

// Angular Http content type for POST etc defaults to text/plain at
app.use(bodyParser.text(), function ngHttpFix(req, res, next) {
  try {
    req.body = JSON.parse(req.body);
    next();
  } catch(e) {
    next();
  }
});

// Your middleware
app.use(history());
app.use(express.static('src/public'));

// your api middleware
var api = require('./todo_api')();
app.use('/api', api);

// Only use in development
if (NODE_ENV === 'development') {
  var server = new WebpackDevServer(webpack(webpackConfig), {
    publicPath: '/__build__',
    historyApiFallback: false, // won't work due to order
    inline: true,
    quiet: false,
    noInfo: false,
    stats: { colors: true }
  });
  // Webpack express app that uses socket.io
  app.use(server.app);
} else {
  app.use('/__build__', express.static('__build__'));
}

app.listen(PORT, function() {
  console.log('Listen on http://localhost:' + PORT + ' in ' + NODE_ENV);
});


text:
package org.keycloak.testsuite.console.page.authentication.flows;

import org.jboss.arquillian.graphene.page.Page;
import org.keycloak.testsuite.console.page.authentication.Authentication;

/**
 *
 * @author Vlastislav Ramik
 */
public class CreateFlow extends Authentication {

    @Page
    private CreateFlowForm form;

    @Override
    public String getUriFragment() {
        return super.getUriFragment() + "/create/flow";
    }

    public CreateFlowForm form() {
        return form;
    }
}


text:
package com.adaptris.core.services.metadata;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;

import com.adaptris.annotation.AutoPopulated;
import com.adaptris.core.AdaptrisMessage;
import com.adaptris.core.MetadataCollection;
import com.adaptris.core.MetadataElement;
import com.adaptris.core.ServiceException;
import com.adaptris.core.metadata.MetadataFilter;
import com.adaptris.core.metadata.RemoveAllMetadataFilter;

/**
 * Implementation of {@link com.adaptris.core.Service} that reformats matching metadata keys.
 *
 *
 */
public abstract class ReformatMetadataKey extends MetadataServiceImpl {

  @AutoPopulated
  @NotNull
  @Valid
  private MetadataFilter keysToModify;

  public ReformatMetadataKey() {
    setKeysToModify(new RemoveAllMetadataFilter());
  }

  protected abstract String reformatKey(String s) throws ServiceException;

  public MetadataFilter getKeysToModify() {
    return keysToModify;
  }

  public void setKeysToModify(MetadataFilter toModify) {
    this.keysToModify = toModify;
  }

  @Override
  public void doService(AdaptrisMessage msg) throws ServiceException {
    MetadataCollection toFilter = getKeysToModify().filter(msg);
    MetadataCollection replacements = buildReplacements(toFilter);
    // toFilter.forEach(e -> { msg.removeMetadata(e); });
    // replacements.forEach(e -> { msg.addMetadata(e); });
    logMetadata("Removing {}", toFilter);
    removeMetadata(msg, toFilter);
    logMetadata("Adding {}", replacements);
    addMetadata(msg, replacements);
  }

  private MetadataCollection buildReplacements(MetadataCollection toFilter) throws ServiceException {
    MetadataCollection replacements = new MetadataCollection();
    for (MetadataElement e : toFilter) {
      String newKey = reformatKey(e.getKey());
      replacements.add(new MetadataElement(newKey, e.getValue()));
    }
    return replacements;
  }

  private void removeMetadata(AdaptrisMessage msg, MetadataCollection toRemove) {
    for (MetadataElement e : toRemove) {
      msg.removeMetadata(e);
    }
  }

  private void addMetadata(AdaptrisMessage msg, MetadataCollection toAdd) {
    for (MetadataElement e : toAdd) {
      msg.addMetadata(e);
    }
  }
}


text:
<?xml version="1.0" encoding="ISO-8859-1" ?>

<document>
    <properties>
        <title>Apache Synapse - Sample 61</title>
    </properties>

<definitions xmlns="http://ws.apache.org/ns/synapse">
   <sequence name="errorHandler">
      <makefault response="true">
         <code xmlns:tns="http://www.w3.org/2003/05/soap-envelope" value="tns:Receiver" />
         <reason value="COULDN'T SEND THE MESSAGE TO THE SERVER." />
      </makefault>
      <send />
   </sequence>
   <sequence name="fault">
      <log level="full">
         <property name="MESSAGE" value="Executing default &quot;fault&quot; sequence" />
         <property name="ERROR_CODE" expression="get-property('ERROR_CODE')" />
         <property name="ERROR_MESSAGE" expression="get-property('ERROR_MESSAGE')" />
      </log>
      <drop />
   </sequence>
   <sequence name="main" onError="errorHandler">
      <in>
         <property name="EP_LIST" value="http://localhost:9001/services/SimpleStockQuoteService,http://localhost:9002/services/SimpleStockQuoteService,http://localhost:9003/services/SimpleStockQuoteService"/>
         <property name="OUT_ONLY" value="true" />
         <property name="FORCE_SC_ACCEPTED" value="true" scope="axis2" />
         <send>
            <endpoint>
               <recipientlist>
                  <endpoints value="{get-property('EP_LIST')}" max-cache="20" />
               </recipientlist>
            </endpoint>
         </send>
         <drop/>
      </in>
   </sequence>
</definitions>

            <subsection name="Objective">

                    Objective: Routing message to 3 static recipients

            </subsection>
            <subsection name="Pre-requisites">

Start ESB with sample configuration 61. (i.e. wso2esb-samples -sn 61)

Start three instances of the sample Axis2 server on HTTP ports 9001, 9002 and 9003 and give unique names to each server. For instructions on starting the Axis2 server, see  Starting the Axis2 server

            </subsection>
            <subsection name="Executing the Client">

                    Invoke the sample client as follows

ant stockquote -Dmode=placeorder -Dtrpurl=http://localhost:8280/

            </subsection>

            Back to Catalog

</document>


text:
using Xunit;

namespace Jint.Tests.Ecma
{
    public class Test_8_12_7 : EcmaTest
    {
        [Fact]
        [Trait("Category", "8.12.7")]
        public void WhenTheDeleteMethodOfOIsCalledWithPropertyNamePAndIfThePropertyHasTheDontdeleteAttributeReturnFalse()
        {
			RunTest(@"TestCases/ch08/8.12/8.12.7/S8.12.7_A1.js", false);
        }

        [Fact]
        [Trait("Category", "8.12.7")]
        public void WhenTheDeleteMethodOfOIsCalledWithPropertyNamePAndIfODoesnTHaveAPropertyWithNamePReturnTrue()
        {
			RunTest(@"TestCases/ch08/8.12/8.12.7/S8.12.7_A2_T1.js", false);
        }

        [Fact]
        [Trait("Category", "8.12.7")]
        public void WhenTheDeleteMethodOfOIsCalledWithPropertyNamePAndIfODoesnTHaveAPropertyWithNamePReturnTrue2()
        {
			RunTest(@"TestCases/ch08/8.12/8.12.7/S8.12.7_A2_T2.js", false);
        }

        [Fact]
        [Trait("Category", "8.12.7")]
        public void WhenTheDeleteMethodOfOIsCalledWithPropertyNamePRemovesThePropertyWithNamePFromOAndReturnTrue()
        {
			RunTest(@"TestCases/ch08/8.12/8.12.7/S8.12.7_A3.js", false);
        }

    }
}


text:
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
  <component name="ProjectRootManager" version="2" default="true">
    <output url="file://$PROJECT_DIR$/out" />
  </component>
  <component name="RustProjectSettings">
    <option name="toolchainHomeDirectory" value="/usr/bin" />
  </component>
</project>


text:
<resources>
    <string name="app_name">My App Portfolio</string>

    <string name="action_settings">Settings</string>

    <string name="text_title">My Nanodegree Apps!</string>
    <string name="text_button1">SPOTIFY STREAMER</string>
    <string name="text_button2">SCORES APP</string>
    <string name="text_button3">LIBRARY APP</string>
    <string name="text_button4">BUILD IT BIGGER</string>
    <string name="text_button5">XYZ READER</string>
    <string name="text_button6">CAPSTONE:MY OWN APP</string>

    <string-array name="names_of_myapps">
        <item>spotify streamer app</item>
        <item>football scores app</item>
        <item>library app</item>
        <item>build it bigger app</item>
        <item>XYZ reader app</item>
        <item>my capstone app</item>
    </string-array>

</resources>


text:
const getPackageRoot = require('jest-util').getPackageRoot;

describe('get package json config', () => {
  let yargsMock;
  let getJestConfig;

  beforeEach(() => {
    jest.resetModules();
    yargsMock = jest.fn();
    jest.setMock('yargs', yargsMock);
    getJestConfig = require('../../src/utils').getJestConfig;
  });

  it('should able to read config from package.json', () => {
    yargsMock.mockReturnValueOnce({
      argv: {
        _: [],
        '$0': 'node_modules\\jest\\bin\\jest.js'
      }
    });

    const { collectCoverage, coverageReporters, collectCoverageFrom} = getJestConfig(getPackageRoot());

    expect(collectCoverage).toBeUndefined();
    expect(coverageReporters).toEqual(['text']);
    expect(collectCoverageFrom).toEqual(['src/**/*.tsx', 'src/**/*.ts']);
  });

  it('should able to read config from command arg with package.json', () => {
    yargsMock.mockReturnValueOnce({
      argv: {
        _: [],
        coverage: true,
        '$0': 'node_modules\\jest\\bin\\jest.js'
      }
    });

    const { collectCoverage, coverageReporters, collectCoverageFrom} = getJestConfig(getPackageRoot());

    expect(collectCoverage).toBeTruthy();
    expect(coverageReporters).toEqual(['text']);
    expect(collectCoverageFrom).toEqual(['src/**/*.tsx', 'src/**/*.ts']);
  });
});


text:
require 'spec_helper'

describe Chewy::Query::Nodes::Query do
  describe '#__render__' do
    def render(&block)
      Chewy::Query::Filters.new(&block).__render__
    end

    specify { expect(render { q(query_string: {query: 'name: hello'}) }).to eq(query: {query_string: {query: 'name: hello'}}) }
    specify { expect(render { ~q(query_string: {query: 'name: hello'}) }).to eq(fquery: {query: {query_string: {query: 'name: hello'}}, _cache: true}) }
  end
end


text:
package ch.ice.controller.web;

import java.net.URI;
import java.net.URISyntaxException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

import org.apache.commons.configuration.PropertiesConfiguration;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.json.JSONArray;
import org.json.JSONObject;

import ch.ice.controller.MainController;
import ch.ice.utils.Config;
import ch.ice.utils.JSONStandardizedKeys;

/**
 * @author Oliver
 *
 */
public class ResultAnalyzer {

	static URI uri;
	private static final Logger logger = LogManager.getLogger(MainController.class.getName());

	/**
	 * Method to analyze which received result suits the best
	 *
	 * @param results
	 *            List of received results
	 * @param parameters
	 *            Search parameters to compare with the results
	 * @return Result which suits the best (as JSONObject)
	 *
	 */
	public static JSONObject analyse(JSONArray results, List<String> parameters) {
		logger.info("Analyze new results: "+results.toString());

		double[] candidatesArray;

		// initlayze candiatesArray for decision making
		candidatesArray = new double[results.length()];

		for (int y = 0; y < candidatesArray.length; y++) {
			candidatesArray[y] = 0;
		}

		candidatesArray[0] = 2;

		// Go thru each received result of the search request
		for (int i = 0; i < results.length(); i++) {

			// create a new temporary JSONObject for each result
			JSONObject singleResult = results.getJSONObject(i);
			results.getJSONObject(i).put("Unsure", false);

			// extract the url, title and the desc
			String url = (String) singleResult.get(JSONStandardizedKeys.URL);

			/* ******************************************
			 * Pre-processing for further analysis
			 * *******************************************
			 */
			try {
				uri = new URI(url);
			} catch (URISyntaxException e) {
				logger.error(e.getMessage());
			}

			String host = uri.getHost().replaceFirst("^(http://|http://www\\.|www\\.)", "");

			// store name of company in a variable to work with later on
			String companyName = (String) parameters.get(0);
			String companyNameNoWhitespace = (String) parameters.get(0).replaceAll("\\s+", "");

			// spilt single words of the name
			String[] singleWords = companyName.split("\\s+");

			for (int j = 0; j < singleWords.length; j++) {
				singleWords[j] = singleWords[j].replaceAll("[^\\w]", "");
			}

			// split url in single words
			String strippedURL = host.replace("-", " ").replaceAll("[^\\w]"," ");
			String strippedURLNoWhitespace = host.replace("-", "").replaceAll("[^\\w]",	"");
			String[] singleURLWords = strippedURL.split("\\s+");

			// create acronym of company name
			String acroOfCompanyName = createAcronym(companyName);

			/* *******************************************
			 * Start the basics("killer criteria") checks
			 * *******************************************
			 */

			// if the url contains the full company name return this as the best
			// result
			if (host.contains(companyName)) {
				logger.info("URL["+url+"] contains Name["+parameters.get(0)+"]");

				return singleResult;
			}

			if(strippedURLNoWhitespace.contains(companyNameNoWhitespace)){
				logger.info("URL["+url+"] contains Name["+parameters.get(0)+"] without Whitespaces");
				return singleResult;
			}

			if(host.contains(companyNameNoWhitespace)) {
				logger.info("URL["+url+"] contains FullName["+parameters.get(0)+"]");
				return singleResult;
			}

			// if the url is not on the blacklist, do further checks; otherwise
			// this result will have a 0.0 score
			if (!isBlacklist(host)) {
				/* *******************************************
				 * Do further checks
				 * *******************************************
				 */

				// is first word in company name equal than first in url?
				if (singleWords[0].equals(singleURLWords[0])) {
					candidatesArray[i] = candidatesArray[i] + (5);
					logger.info("First word of CopanyName is in URL["+url+"]; Add 5 units to total score");
				}

				// does the url contains the first word of the company name?
				if (host.contains(singleWords[0])) {
					candidatesArray[i] = candidatesArray[i] + (2);
					logger.info("URL["+url+"] contains first word of the ComapnyName; Add 2 units to total score");
				}

				// if the company name contains more than 1 word...
				if (singleWords.length > 1) { // does the url any other word of

					for (int j = 0; j < singleWords.length - 1; j++) {
						if (host.contains(singleWords[j])) {
							candidatesArray[i] = candidatesArray[i] + (0.5);
							logger.info("URL["+url+"] contains \""+singleWords[j]+"\"; Add 0.5 units to the total score");
						}
					}
				}

				// does the url contains the acronym of the company?
				if (singleURLWords[0].equals((CharSequence) acroOfCompanyName)) {
					candidatesArray[i] = candidatesArray[i] + (5);
					logger.info("Acronym \""+acroOfCompanyName+"\" is equal as URL["+url+"]; Add 5 units to total score");
				}

				// check if unsure (the critical value is 0.5 since if is less
				// than 0.5, the first word is not contained in the url)
				if (candidatesArray[i] <= 4.5) {
					results.getJSONObject(i).put("Unsure", true);
				}

			} else {
				results.getJSONObject(i).put("Unsure", true);
				logger.warn("URL["+url+"] is beeing Blacklisted");
			}
			logger.info("URL["+url+"] has a total core of "+ candidatesArray[i]);
		}

		// determine the best result
		double max = candidatesArray[0];

		for (int counter = 1; counter < candidatesArray.length; counter++) {
			if (candidatesArray[counter] > max) {
				max = candidatesArray[counter];
			}
		}
		// return the object which is the best score
		for (int l = 0; l < candidatesArray.length; l++) {
			if (candidatesArray[l] == max) {
				logger.info("Highest Score is "+candidatesArray[1]);
				return results.getJSONObject(l);
			}
		}

		// if neither the name nor the acronym of the name is contained in the
		// url, return the first result
		return null;
	}

	/**
	 * Creates an Acronym of the given string using the first letter of each
	 * word
	 *
	 * @param name
	 *            String to generate Acronym
	 * @return Acronym as String
	 */
	private static String createAcronym(String name) {
		String acro = "";
		String[] words = name.split(" ");

		for (String word : words) {
			acro += word.charAt(0);
		}

		return acro;
	}

	/**
	 * Checks if the host in url is one of the blacklist which is defined in the
	 * propertiesfile as searchEngine.bing.blacklist
	 *
	 * @param host
	 *            to check if blacklisted
	 * @return <true> if is blacklisted <false> if is not blacklisted
	 */
	private static boolean isBlacklist(String host) {
		// Create array with blacklisted hosts
		List<String> blacklist = new ArrayList<String>();

		// Get Blacklist form propertiesfile
		PropertiesConfiguration config = Config.PROPERTIES;

		blacklist = Arrays.asList(config.getStringArray("searchEngine.bing.blacklist"));

		// Check if one element form the blacklist equals the regarding host..
		for (String blacklistElement : blacklist) {
			if (host.contains(blacklistElement)) {
				return true;
			}

		}

		return false;
	}
}


text:
<img src="http://thom801.github.io/momentous/images/logoexamples.jpg">

# Momentous
A datepicker for [bootstrap](http://twitter.github.io/bootstrap/) built with [Moment.js](http://momentjs.com/)

### Install via Bower
```bash
bower install momentous
```
Then include jquery.js, moment.js, bootstrap.js, and bootstrap.css in your HTML.

### Basic Usage
Include `momentous.js` and `momentous.css` then create a placeholder.
```html
<div id="placeholder"></div>
```
Create a momentous instance by passing the id of your placeholder.
```javascript
var momentous = Momentous( $('#placeholder') );
```

### Initialize with options
```javascript
var options = {
  dateFormat: 'MM-DD-YYYY, h:mm a', // Any valid moment.js display format. Default is "MM-DD-YYYY"
  date: '04-21-2013, 12:00 pm', // Date you want to initially show. Must match dateFormat. Default is current date
  weekStart: 1, // Sunday: 0, Monday: 1
  granularity: 'days', // 'minutes', 'hours', 'days', 'weeks', 'months', or 'years' Defaults to days.
  timeFormat: 12, // Only applicable for hours or minutes granularity. 12 Sets time to AM/PM format. Default is 24-hour format. Options: 12, 24
  minuteGranularity: 5 // What size minute increments to show. Options: 1, 5, 10, 15, 20, 30. Default is 15.
  dateRangeMode: false // If set to true, two date pickers are shown to allow user to select a range. Ex: November 3rd through November 12th. Works with Days, Hours, and Minutes granularity.
};

var momentous = Momentous( $('#placeholder'), options);
```

### Events
The momentous instance will fire a `dateChange` event whenever the user selects a date
```javascript
momentous.events.on('dateChange', function(event) {
	curDate = momentous.getDate(); // Retrieve the current date (Moment instance)
});
```
And to do the same while in date range mode
```javascript
momentous.start.events.on('dateChange', function(event) { });
momentous.end.events.on('dateChange', function(event) { });
```

### Development
To install dev dependencies.
```bash
npm install
```

This will allow you to run `grunt` and it will watch for changes and do all the coffee and stylus compilation for you.


text:
<?php

final class HeraldRuleViewController extends HeraldController {

  public function handleRequest(AphrontRequest $request) {
    $viewer = $request->getViewer();
    $id = $request->getURIData('id');

    $rule = id(new HeraldRuleQuery())
      ->setViewer($viewer)
      ->withIDs(array($id))
      ->needConditionsAndActions(true)
      ->executeOne();
    if (!$rule) {
      return new Aphront404Response();
    }

    $header = id(new PHUIHeaderView())
      ->setUser($viewer)
      ->setHeader($rule->getName())
      ->setPolicyObject($rule);

    if ($rule->getIsDisabled()) {
      $header->setStatus(
        'fa-ban',
        'red',
        pht('Archived'));
    } else {
      $header->setStatus(
        'fa-check',
        'bluegrey',
        pht('Active'));
    }

    $actions = $this->buildActionView($rule);
    $properties = $this->buildPropertyView($rule, $actions);

    $id = $rule->getID();

    $crumbs = $this->buildApplicationCrumbs();
    $crumbs->addTextCrumb("H{$id}");

    $object_box = id(new PHUIObjectBoxView())
      ->setHeader($header)
      ->addPropertyList($properties);

    $timeline = $this->buildTransactionTimeline(
      $rule,
      new HeraldTransactionQuery());
    $timeline->setShouldTerminate(true);

    $title = $rule->getName();

    return $this->newPage()
      ->setTitle($title)
      ->setCrumbs($crumbs)
      ->appendChild(
        array(
          $object_box,
          $timeline,
      ));
  }

  private function buildActionView(HeraldRule $rule) {
    $viewer = $this->getRequest()->getUser();
    $id = $rule->getID();

    $view = id(new PhabricatorActionListView())
      ->setUser($viewer)
      ->setObject($rule);

    $can_edit = PhabricatorPolicyFilter::hasCapability(
      $viewer,
      $rule,
      PhabricatorPolicyCapability::CAN_EDIT);

    $view->addAction(
      id(new PhabricatorActionView())
        ->setName(pht('Edit Rule'))
        ->setHref($this->getApplicationURI("edit/{$id}/"))
        ->setIcon('fa-pencil')
        ->setDisabled(!$can_edit)
        ->setWorkflow(!$can_edit));

    if ($rule->getIsDisabled()) {
      $disable_uri = "disable/{$id}/enable/";
      $disable_icon = 'fa-check';
      $disable_name = pht('Activate Rule');
    } else {
      $disable_uri = "disable/{$id}/disable/";
      $disable_icon = 'fa-ban';
      $disable_name = pht('Archive Rule');
    }

    $view->addAction(
      id(new PhabricatorActionView())
        ->setName(pht('Disable Rule'))
        ->setHref($this->getApplicationURI($disable_uri))
        ->setIcon($disable_icon)
        ->setName($disable_name)
        ->setDisabled(!$can_edit)
        ->setWorkflow(true));

    return $view;
  }

  private function buildPropertyView(
    HeraldRule $rule,
    PhabricatorActionListView $actions) {

    $viewer = $this->getRequest()->getUser();

    $view = id(new PHUIPropertyListView())
      ->setUser($viewer)
      ->setObject($rule)
      ->setActionList($actions);

    $view->addProperty(
      pht('Rule Type'),
      idx(HeraldRuleTypeConfig::getRuleTypeMap(), $rule->getRuleType()));

    if ($rule->isPersonalRule()) {
      $view->addProperty(
        pht('Author'),
        $viewer->renderHandle($rule->getAuthorPHID()));
    }

    $adapter = HeraldAdapter::getAdapterForContentType($rule->getContentType());
    if ($adapter) {
      $view->addProperty(
        pht('Applies To'),
        idx(
          HeraldAdapter::getEnabledAdapterMap($viewer),
          $rule->getContentType()));

      if ($rule->isObjectRule()) {
        $view->addProperty(
          pht('Trigger Object'),
          $viewer->renderHandle($rule->getTriggerObjectPHID()));
      }

      $view->invokeWillRenderEvent();

      $view->addSectionHeader(
        pht('Rule Description'),
        PHUIPropertyListView::ICON_SUMMARY);

      $handles = $viewer->loadHandles(HeraldAdapter::getHandlePHIDs($rule));
      $rule_text = $adapter->renderRuleAsText($rule, $handles, $viewer);
      $view->addTextContent($rule_text);
    }

    return $view;
  }

}


text:
namespace syncer_v2 {

ModelTypeStoreBackend::ModelTypeStoreBackend() {
  // ModelTypeStoreBackend is used on different thread from the one where it is
  // created.
  DetachFromThread();
}

ModelTypeStoreBackend::~ModelTypeStoreBackend() {
  DCHECK(CalledOnValidThread());
}

scoped_ptr<leveldb::Env> ModelTypeStoreBackend::CreateInMemoryEnv() {
  return make_scoped_ptr(leveldb::NewMemEnv(leveldb::Env::Default()));
}

void ModelTypeStoreBackend::TakeEnvOwnership(scoped_ptr<leveldb::Env> env) {
  env_ = std::move(env);
}

ModelTypeStore::Result ModelTypeStoreBackend::Init(const std::string& path,
                                                   leveldb::Env* env) {
  DCHECK(CalledOnValidThread());
  leveldb::DB* db_raw = nullptr;

  leveldb::Options options;
  options.create_if_missing = true;
  options.reuse_logs = leveldb_env::kDefaultLogReuseOptionValue;
  options.paranoid_checks = true;
  if (env)
    options.env = env;
  leveldb::Status status = leveldb::DB::Open(options, path, &db_raw);
  if (!status.ok()) {
    DCHECK(db_raw == nullptr);
    return ModelTypeStore::Result::UNSPECIFIED_ERROR;
  }
  db_.reset(db_raw);
  return ModelTypeStore::Result::SUCCESS;
}

ModelTypeStore::Result ModelTypeStoreBackend::ReadRecordsWithPrefix(
    const std::string& prefix,
    const ModelTypeStore::IdList& id_list,
    ModelTypeStore::RecordList* record_list,
    ModelTypeStore::IdList* missing_id_list) {
  DCHECK(CalledOnValidThread());
  DCHECK(db_);
  record_list->reserve(id_list.size());
  leveldb::ReadOptions read_options;
  read_options.verify_checksums = true;
  std::string key;
  std::string value;
  for (const std::string& id : id_list) {
    key = prefix + id;
    leveldb::Status status = db_->Get(read_options, key, &value);
    if (status.ok()) {
      // TODO(pavely): Use emplace_back instead of push_back once it is allowed.
      record_list->push_back(ModelTypeStore::Record(id, value));
    } else if (status.IsNotFound()) {
      missing_id_list->push_back(id);
    } else {
      return ModelTypeStore::Result::UNSPECIFIED_ERROR;
    }
  }
  return ModelTypeStore::Result::SUCCESS;
}

ModelTypeStore::Result ModelTypeStoreBackend::ReadAllRecordsWithPrefix(
    const std::string& prefix,
    ModelTypeStore::RecordList* record_list) {
  DCHECK(CalledOnValidThread());
  DCHECK(db_);
  leveldb::ReadOptions read_options;
  read_options.verify_checksums = true;
  scoped_ptr<leveldb::Iterator> iter(db_->NewIterator(read_options));
  const leveldb::Slice prefix_slice(prefix);
  for (iter->Seek(prefix_slice); iter->Valid(); iter->Next()) {
    leveldb::Slice key = iter->key();
    if (!key.starts_with(prefix_slice))
      break;
    key.remove_prefix(prefix_slice.size());
    // TODO(pavely): Use emplace_back instead of push_back once it is allowed.
    record_list->push_back(
        ModelTypeStore::Record(key.ToString(), iter->value().ToString()));
  }
  return iter->status().ok() ? ModelTypeStore::Result::SUCCESS
                             : ModelTypeStore::Result::UNSPECIFIED_ERROR;
}

ModelTypeStore::Result ModelTypeStoreBackend::WriteModifications(
    scoped_ptr<leveldb::WriteBatch> write_batch) {
  DCHECK(CalledOnValidThread());
  DCHECK(db_);
  leveldb::Status status =
      db_->Write(leveldb::WriteOptions(), write_batch.get());
  return status.ok() ? ModelTypeStore::Result::SUCCESS
                     : ModelTypeStore::Result::UNSPECIFIED_ERROR;
}

}  // namespace syncer_v2


text:
import javax.swing.*;
import javax.swing.text.*;
import java.awt.event.*;

public class JiraS16MaximumMatch extends PlainDocument {
    JComboBox comboBox;
    ComboBoxModel model;
    JTextComponent editor;
    // flag to indicate if setSelectedItem has been called
    // subsequent calls to remove/insertString should be ignored
    boolean selecting=false;
    boolean hidePopupOnFocusLoss;
    boolean hitBackspace=false;
    boolean hitBackspaceOnSelection;

    public JiraS16MaximumMatch(final JComboBox comboBox) {
        this.comboBox = comboBox;
        model = comboBox.getModel();
        editor = (JTextComponent) comboBox.getEditor().getEditorComponent();
        editor.setDocument(this);
        comboBox.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                if (!selecting) highlightCompletedText(0);
            }
        });
        editor.addKeyListener(new KeyAdapter() {
            public void keyPressed(KeyEvent e) {
                if (comboBox.isDisplayable()) comboBox.setPopupVisible(true);
                hitBackspace=false;
                switch (e.getKeyCode()) {
                    // determine if the pressed key is backspace (needed by the remove method)
                    case KeyEvent.VK_BACK_SPACE : hitBackspace=true;
                                                  hitBackspaceOnSelection=editor.getSelectionStart()!=editor.getSelectionEnd();
                                                  break;
                    // ignore delete key
                    case KeyEvent.VK_DELETE : e.consume();
                                              comboBox.getToolkit().beep();
                                              break;
                }
            }
        });
        // Bug 5100422 on Java 1.5: Editable JComboBox won't hide popup when tabbing out
        hidePopupOnFocusLoss=System.getProperty("java.version").startsWith("1.5");
        // Highlight whole text when gaining focus
        editor.addFocusListener(new FocusAdapter() {
            public void focusGained(FocusEvent e) {
                highlightCompletedText(0);
            }
            public void focusLost(FocusEvent e) {
                // Workaround for Bug 5100422 - Hide Popup on focus loss
                if (hidePopupOnFocusLoss) comboBox.setPopupVisible(false);
            }
        });
        // Handle initially selected object
        Object selected = comboBox.getSelectedItem();
        if (selected!=null) setText(selected.toString());
        highlightCompletedText(0);
    }

    public void remove(int offs, int len) throws BadLocationException {
        // return immediately when selecting an item
        if (selecting) return;
        if (hitBackspace) {
            // user hit backspace => move the selection backwards
            // old item keeps being selected
            if (offs>0) {
                if (hitBackspaceOnSelection) offs--;
            } else {
                // User hit backspace with the cursor positioned on the start => beep
                comboBox.getToolkit().beep(); // when available use: UIManager.getLookAndFeel().provideErrorFeedback(comboBox);
            }
            highlightCompletedText(offs);
        } else {
            super.remove(offs, len);
        }
    }

    public void insertString(int offs, String str, AttributeSet a) throws BadLocationException {
        // return immediately when selecting an item
        if (selecting) return;
        // insert the string into the document
        super.insertString(offs, str, a);
        // lookup and select a matching item
        boolean match=false;
        Object item = lookupItem(getText(0, getLength()));
        if (item != null) {
            match=true;
            setSelectedItem(item);
        } else {
            // keep old item selected if there is no match
            item = comboBox.getSelectedItem();
            // imitate no insert (later on offs will be incremented by str.length(): selection won't move forward)
            offs = offs-str.length();
            // provide feedback to the user that his input has been received but can not be accepted
            comboBox.getToolkit().beep(); // when available use: UIManager.getLookAndFeel().provideErrorFeedback(comboBox);
        }

        if (match) offs = getMaximumMatchingOffset(getText(0, getLength()), item);
        else offs+=str.length();

        setText(item.toString());
        // select the completed part
        highlightCompletedText(offs);
    }

    private void setText(String text) {
        try {
            // remove all text and insert the completed string
            super.remove(0, getLength());
            super.insertString(0, text, null);
        } catch (BadLocationException e) {
            throw new RuntimeException(e.toString());
        }
    }

    private void highlightCompletedText(int start) {
        editor.setCaretPosition(getLength());
        editor.moveCaretPosition(start);
    }

    private void setSelectedItem(Object item) {
        selecting = true;
        model.setSelectedItem(item);
        selecting = false;
    }

    private Object lookupItem(String pattern) {
        Object selectedItem = model.getSelectedItem();
        // only search for a different item if the currently selected does not match
        if (selectedItem != null && startsWithIgnoreCase(selectedItem.toString(), pattern)) {
            return selectedItem;
        } else {
            // iterate over all items
            for (int i=0, n=model.getSize(); i < n; i++) {
                Object currentItem = model.getElementAt(i);
                // current item starts with the pattern?
                if (startsWithIgnoreCase(currentItem.toString(), pattern)) {
                    return currentItem;
                }
            }
        }
        // no item starts with the pattern => return null
        return null;
    }

    // checks if str1 starts with str2 - ignores case
    private boolean startsWithIgnoreCase(String str1, String str2) {
        return str1.toUpperCase().startsWith(str2.toUpperCase());
    }

    // calculates how many characters are predetermined by the given pattern.
    private int getMaximumMatchingOffset(String pattern, Object selectedItem) {
        String selectedAsString=selectedItem.toString();
        int match=selectedAsString.length();
        // look for items that match the given pattern
        for (int i=0, n=model.getSize(); i < n; i++) {
            String itemAsString = model.getElementAt(i).toString();
            if (startsWithIgnoreCase(itemAsString, pattern)) {
                // current item matches the pattern
                // how many leading characters have the selected and the current item in common?
                int tmpMatch=equalStartLength(itemAsString, selectedAsString);
                if (tmpMatch < match) match=tmpMatch;
            }
        }
        return match;
    }

    // returns how many leading characters two strings have in common?
    private static int equalStartLength(String str1, String str2) {
        char[] ch1 = str1.toUpperCase().toCharArray();
        char[] ch2 = str2.toUpperCase().toCharArray();
        int n = ch1.length>ch2.length?ch2.length:ch1.length;
        for (int i=0; i<n; i++) {
            if (ch1[i]!=ch2[i]) return i;
        }
        return n;
    }
}


text:
<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:width="24dp"
    android:height="24dp"
    android:viewportWidth="24"
    android:viewportHeight="24"
    android:tint="?attr/colorControlNormal">
  <path
      android:fillColor="@android:color/white"
      android:pathData="M6,16.825H18V13.825H6ZM1.525,20.475V3.525H22.475V20.475Z"/>
</vector>


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

#include "components/password_manager/core/browser/ui/saved_passwords_presenter.h"

#include "base/memory/scoped_refptr.h"
#include "base/scoped_observer.h"
#include "base/strings/utf_string_conversions.h"
#include "base/test/task_environment.h"
#include "components/autofill/core/common/password_form.h"
#include "components/password_manager/core/browser/test_password_store.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace password_manager {

namespace {

using autofill::PasswordForm;
using ::testing::ElementsAre;
using ::testing::ElementsAreArray;
using ::testing::IsEmpty;
using ::testing::Pair;

struct MockSavedPasswordsPresenterObserver : SavedPasswordsPresenter::Observer {
  MOCK_METHOD(void, OnEdited, (const autofill::PasswordForm&), (override));
  MOCK_METHOD(void,
              OnSavedPasswordsChanged,
              (SavedPasswordsPresenter::SavedPasswordsView),
              (override));
};

using StrictMockSavedPasswordsPresenterObserver =
    ::testing::StrictMock<MockSavedPasswordsPresenterObserver>;

class SavedPasswordsPresenterTest : public ::testing::Test {
 protected:
  SavedPasswordsPresenterTest() { store_->Init(/*prefs=*/nullptr); }

  ~SavedPasswordsPresenterTest() override {
    store_->ShutdownOnUIThread();
    task_env_.RunUntilIdle();
  }

  TestPasswordStore& store() { return *store_; }
  SavedPasswordsPresenter& presenter() { return presenter_; }

  void RunUntilIdle() { task_env_.RunUntilIdle(); }

 private:
  base::test::SingleThreadTaskEnvironment task_env_;
  scoped_refptr<TestPasswordStore> store_ =
      base::MakeRefCounted<TestPasswordStore>();
  SavedPasswordsPresenter presenter_{store_};
};

}  // namespace

// Tests whether adding and removing an observer works as expected.
TEST_F(SavedPasswordsPresenterTest, NotifyObservers) {
  PasswordForm form;

  StrictMockSavedPasswordsPresenterObserver observer;
  presenter().AddObserver(&observer);

  // Adding a credential should notify observers. Furthermore, the credential
  // should be present of the list that is passed along.
  EXPECT_CALL(observer, OnSavedPasswordsChanged(
                            ElementsAre(MatchesFormExceptStore(form))));
  store().AddLogin(form);
  RunUntilIdle();
  EXPECT_FALSE(store().IsEmpty());

  // Remove should notify, and observers should be passed an empty list.
  EXPECT_CALL(observer, OnSavedPasswordsChanged(IsEmpty()));
  store().RemoveLogin(form);
  RunUntilIdle();
  EXPECT_TRUE(store().IsEmpty());

  // After an observer is removed it should no longer receive notifications.
  presenter().RemoveObserver(&observer);
  EXPECT_CALL(observer, OnSavedPasswordsChanged).Times(0);
  store().AddLogin(form);
  RunUntilIdle();
  EXPECT_FALSE(store().IsEmpty());
}

// Tests whether adding and removing an observer works as expected.
TEST_F(SavedPasswordsPresenterTest, IgnoredCredentials) {
  PasswordForm federated_form;
  federated_form.federation_origin =
      url::Origin::Create(GURL("https://example.com"));

  StrictMockSavedPasswordsPresenterObserver observer;
  presenter().AddObserver(&observer);

  // Adding a credential should notify observers. However, since federated
  // credentials should be ignored it should not be passed a long.
  EXPECT_CALL(observer, OnSavedPasswordsChanged(IsEmpty()));
  store().AddLogin(federated_form);
  RunUntilIdle();

  PasswordForm blacklisted_form;
  blacklisted_form.blacklisted_by_user = true;
  EXPECT_CALL(observer, OnSavedPasswordsChanged(IsEmpty()));
  store().AddLogin(blacklisted_form);
  RunUntilIdle();

  presenter().RemoveObserver(&observer);
}

// Tests whether editing a password works and results in the right
// notifications.
TEST_F(SavedPasswordsPresenterTest, EditPassword) {
  PasswordForm form;

  StrictMockSavedPasswordsPresenterObserver observer;
  presenter().AddObserver(&observer);

  EXPECT_CALL(observer, OnSavedPasswordsChanged);
  store().AddLogin(form);
  RunUntilIdle();
  EXPECT_FALSE(store().IsEmpty());

  // When |form| is read back from the store, its |in_store| member will be set,
  // and SavedPasswordsPresenter::EditPassword() actually depends on that. So
  // set it here too.
  form.in_store = PasswordForm::Store::kProfileStore;

  const base::string16 new_password = base::ASCIIToUTF16("new_password");
  PasswordForm updated = form;
  updated.password_value = new_password;

  // Verify that editing a password triggers the right notifications.
  EXPECT_CALL(observer, OnEdited(updated));
  EXPECT_CALL(observer, OnSavedPasswordsChanged(ElementsAre(updated)));
  EXPECT_TRUE(presenter().EditPassword(form, new_password));
  RunUntilIdle();
  EXPECT_THAT(store().stored_passwords(),
              ElementsAre(Pair(updated.signon_realm, ElementsAre(updated))));

  // Verify that editing a password that does not exist does not triggers
  // notifications.
  EXPECT_CALL(observer, OnEdited).Times(0);
  EXPECT_CALL(observer, OnSavedPasswordsChanged).Times(0);
  EXPECT_FALSE(presenter().EditPassword(form, new_password));
  RunUntilIdle();

  presenter().RemoveObserver(&observer);
}

}  // namespace password_manager


text:
/**
 * CommentArea: A small rich text editor with
 * support for @mentions and :emojis:
 * @example
 * let comment_area = new frappe.ui.CommentArea({
 *     parent: '.comment-area',
 *     mentions: ['john', 'mary', 'kate'],
 *     on_submit: (value) => save_to_database(value)
 * });
 */

frappe.ui.CommentArea = class CommentArea {

	constructor({ parent = null, mentions = [], on_submit = null, no_wrapper = false }) {
		this.parent = $(parent);
		this.mentions = mentions;
		this.on_submit = on_submit;
		this.no_wrapper = no_wrapper;

		this.make();
	}

	make() {
		this.setup_dom();
		this.setup_summernote();
		this.bind_events();
	}

	setup_dom() {
		const header = !this.no_wrapper ?
			`

				${__("Add a comment")}
				<button class="btn btn-default btn-comment btn-xs pull-right">
					${__("Comment")}
				</button>

` : '';

		const footer = !this.no_wrapper ?
			`

				${__("Ctrl+Enter to add comment")}

` : '';

		this.wrapper = $(`

				${ header }

					${ footer }

		`);
		this.wrapper.appendTo(this.parent);
		this.input = this.parent.find('.comment-input');
		this.button = this.parent.find('.btn-comment');
	}

	setup_summernote() {
		const { input, button } = this;

		input.summernote({
			height: 100,
			toolbar: false,
			airMode: true,
			hint: {
				mentions: this.mentions,
				match: /\B([@:]\w*)/,
				search: function (keyword, callback) {
					let items = [];
					if (keyword.startsWith('@')) {
						keyword = keyword.substr(1);
						items = this.mentions;
					} else if (keyword.startsWith(':')) {
						items = frappe.ui.emoji_keywords
							.filter(k => k.startsWith(keyword))
							.slice(0, 7);
					}
					callback($.grep(items, function (item) {
						return item.indexOf(keyword) == 0;
					}));
				},
				template: function (item) {
					if (item.startsWith(':')) {
						return frappe.ui.get_emoji(item) + ' ' + item;
					} else {
						return item;
					}
				},
				content: function (item) {
					if(item.startsWith(':')) {
						return frappe.ui.get_emoji(item);
					} else {
						return '@' + item;
					}
				}
			},
			callbacks: {
				onChange: () => {
					if(input.summernote('isEmpty')) {
						button
							.removeClass('btn-primary')
							.addClass('btn-default');
					} else {
						button
							.removeClass('btn-default')
							.addClass('btn-primary');
					}
				},
				onKeydown: (e) => {
					var key = frappe.ui.keys.get_key(e);
					if(key === 'ctrl+enter') {
						e.preventDefault();
						this.submit();
					}
					e.stopPropagation();
				},
			},
			icons: {
				'align': 'fa fa-align',
				'alignCenter': 'fa fa-align-center',
				'alignJustify': 'fa fa-align-justify',
				'alignLeft': 'fa fa-align-left',
				'alignRight': 'fa fa-align-right',
				'indent': 'fa fa-indent',
				'outdent': 'fa fa-outdent',
				'arrowsAlt': 'fa fa-arrows-alt',
				'bold': 'fa fa-bold',
				'caret': 'caret',
				'circle': 'fa fa-circle',
				'close': 'fa fa-close',
				'code': 'fa fa-code',
				'eraser': 'fa fa-eraser',
				'font': 'fa fa-font',
				'frame': 'fa fa-frame',
				'italic': 'fa fa-italic',
				'link': 'fa fa-link',
				'unlink': 'fa fa-chain-broken',
				'magic': 'fa fa-magic',
				'menuCheck': 'fa fa-check',
				'minus': 'fa fa-minus',
				'orderedlist': 'fa fa-list-ol',
				'pencil': 'fa fa-pencil',
				'picture': 'fa fa-image',
				'question': 'fa fa-question',
				'redo': 'fa fa-redo',
				'square': 'fa fa-square',
				'strikethrough': 'fa fa-strikethrough',
				'subscript': 'fa fa-subscript',
				'superscript': 'fa fa-superscript',
				'table': 'fa fa-table',
				'textHeight': 'fa fa-text-height',
				'trash': 'fa fa-trash',
				'underline': 'fa fa-underline',
				'undo': 'fa fa-undo',
				'unorderedlist': 'fa fa-list-ul',
				'video': 'fa fa-video-camera'
			}
		});

		this.note_editor = this.wrapper.find('.note-editor');
		this.note_editor.css({
			'border': '1px solid #ebeff2',
			'border-radius': '3px',
			'padding': '10px',
			'margin-bottom': '10px',
			'min-height': '80px',
			'cursor': 'text'
		});
		this.note_editor.on('click', () => input.summernote('focus'));
	}

	destroy() {
		this.input.summernote('destroy');
	}

	bind_events() {
		this.button.on('click', this.submit.bind(this));
	}

	val(value) {
		// Return html if no value specified
		if(value === undefined) {
			return this.input.summernote('code');
		}
		// Set html if value is specified
		this.input.summernote('code', value);
	}

	submit() {
		// Pass comment's value (html) to submit handler
		this.on_submit && this.on_submit(this.val());
	}
};


text:
namespace CSharpIdentifiers.XmlDocComment
{
    /// <permission cref="System.Security.PermissionSet" />
    internal class Permission
    {
    }
}


text:
<!doctype html>

    <meta charset="utf-8">

    <meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />

    <title>XAMPP FAQs for Mac OS X</title>

    <meta name="description" content="Instructions on how to install XAMPP for OSX distributions." />

    <link href="/dashboard/stylesheets/normalize.css" rel="stylesheet" type="text/css" /><link href="/dashboard/stylesheets/all.css" rel="stylesheet" type="text/css" />
    <link href="//cdnjs.cloudflare.com/ajax/libs/font-awesome/3.1.0/css/font-awesome.min.css" rel="stylesheet" type="text/css" />

    <link href="/dashboard/images/favicon.png" rel="icon" type="image/png" />

Apache Friends

              Menu

Applications

Gyakori kérdések

HOW-TO Guides

PHPInfo

phpMyAdmin

OS X Gyakran ismételt kérdések

Hogyan telepítsem a XAMPP-ot Mac OS X rendszerre?

A XAMPP telepítéséhez tegye a következőt:

Nyissa meg a DMG-képfájlt.

Kattintson duplán a képfájlra a telepítési folyamat indításához.

Ennyi. A XAMPP most már telepítve van az /Applications/XAMPP könyvtár alá.

Does XAMPP include MySQL or MariaDB?

Since XAMPP 5.5.30 and 5.6.14, XAMPP ships MariaDB instead of MySQL. The commands and tools are the same for both.

Hogyan indítsam el a XAMPP-ot?

A XAMPP indításához egyszerűen nyissa meg a XAMPP vezérlőt és indítsa el az Apache, MySQL és ProFTPD kiszolgálókat. A XAMPP vezérlő neve "manager-osx".

Hogyan állíthatom le a XAMPP-ot?

A XAMPP leállításához egyszerűen nyissa meg a XAMPP vezérlőt és állítsa le kiszolgálókat. A XAMPP vezérlő neve "manager-osx".

Hogyan ellenőrizhetem, hogy minden működik-e?

Gépelje be a következő URL-t a webböngészőbe:

http://localhost

Now you should see the XAMPP start page.

A XAMPP készen áll a munkához?

A XAMPP nem a produktív használatot jelenti, ez csak egy fejlesztői környezet. A XAMPP oly módon lett beállítva, hogy annyira nyitott legyen, amennyire csak lehetséges, hogy lehetővé tegyen a fejlesztőknek bármit, amit szeretnének. Ez nagyszerű egy fejlesztői környezethez, de produktív környezetben végzetes lehet.

Itt egy lista a XAMPP hiányzó biztonsági dolgairól:

A MySQL adminisztrátornak (root) nincs jelszava.

A MySQL démon elérhető a hálózaton keresztül.

A ProFTPD a "lampp" jelszót használja a "daemon" felhasználóhoz.

A PhpMyAdmin elérhető a hálózaton keresztül.

A biztonsági gyengeségek nagy részének javításához egyszerűen adja ki a következő parancsot:

sudo /Applications/XAMPP/xamppfiles/xampp security

Ez elindít egy kis biztonsági ellenőrzést és biztonságossá teszi a XAMPP telepítését.

Mit jelentenek azok a hibaüzenetek, amelyeket a XAMPP indításakor látok?

Számos hibaüzenetet kaphat a XAMPP indításakor:

LAMPP-Apache is already running.

            An Apache daemon is already running.

A LAMPP indítási parancsfájl nem tudta elindítani a XAMPP-Apache programot, mert egy Apache példány már fut. A XAMPP megfelelő indításához először le kell állítania ezt a démont.

LAMPP-MySQL is already running.

            A MySQL daemon is already running.

Ez legtöbbször hasonló okok miatt történik mint a fenti hiba. A LAMPP indítási parancsfájl talált egy MySQL démont, amely már fut a rendszeren. A LAMPP megfelelő indításához először le kell állítania ezt a démont.

Úgy tűnik, az Apache nem tudott elindulni. Mit tehetek?

Ez a hiba több ok miatt állhat fenn. Az Apache ezt a hibát számos körülmény miatt jelenítheti meg. A pontos ok megtalálásához egy kis kutatást kell tennünk:

tail -2 /Applications/XAMPP/logs/error_log

Ha hibaüzenetet kapott, látogassa meg a közösségi oldalainkat a segítségért.

Hogyan tehetem a XAMPP telepítésemet még biztonságosabbá?

Az alapértelmezett telepítésben a XAMPP nem rendelkezik beállított jelszóval és nem javasolt a XAMPP futtatása ezzel a beállítással mások számára elérhető módon.

Egyszerűen gépelje be a következő parancsot (rendszergazdaként) egy egyszerű biztonsági ellenőrzés indításához:

sudo /Applications/XAMPP/xamppfiles/xampp security

Most a következő párbeszédablakot kellene látnia a képernyőjén:

XAMPP: Quick security check...

XAMPP: Your XAMPP pages are NOT secured by a password.

XAMPP: Do you want to set a password? [yes] yes (1)

XAMPP: Password: ******

XAMPP: Password (again): ******

XAMPP: Password protection active. Please use 'lampp' as user name!

XAMPP: MySQL is accessable via network.

XAMPP: Normaly that's not recommended. Do you want me to turn it off? [yes] yes

XAMPP: Turned off.

XAMPP: Stopping MySQL...

XAMPP: Starting MySQL...

XAMPP: The MySQL/phpMyAdmin user pma has no password set!!!

XAMPP: Do you want to set a password? [yes] yes

XAMPP: Password: ******

XAMPP: Password (again): ******

XAMPP: Setting new MySQL pma password.

XAMPP: Setting phpMyAdmin's pma password to the new one.

XAMPP: MySQL has no root passwort set!!!

XAMPP: Do you want to set a password? [yes] yes

XAMPP: Write the passworde somewhere down to make sure you won't forget it!!!

XAMPP: Password: ******

XAMPP: Password (again): ******

XAMPP: Setting new MySQL root password.

XAMPP: Setting phpMyAdmin's root password to the new one.

XAMPP: The FTP password for user 'nobody' is still set to 'lampp'.

XAMPP: Do you want to change the password? [yes] yes

XAMPP: Password: ******

XAMPP: Password (again): ******

XAMPP: Reload ProFTPD...

XAMPP: Done.

(1) Egy jelszó beállításával fogja védeni a XAMPP bemutató oldalakat (http://localhost/xampp/) ennek a jelszónak a használatával. A felhasználónév a "lampp"!

A parancs kiadása után a XAMPP telepítése sokkal biztonságosabb lesz.

Hogyan aktiválhatom az OCI8/Oracle PHP kiterjesztést?

Az OCI8/Oracle PHP kiterjesztés aktiváláshoz futtassa le a következő parancsot:

sudo /Applications/XAMPP/xamppfiles/lampp oci8

A következő párbeszédablak fog elindulni:

Please enter the path to your Oracle or Instant Client installation:

[/Applications/XAMPP/xamppfiles/lib/instantclient-11.2.0.3.0]

installing symlinks...

patching php.ini...

OCI8 add-on activation likely successful.

LAMPP: Stopping Apache with SSL...

LAMPP: Starting Apache with SSL...

A kiterjesztés most már aktív.

How do I enable access to phpMyAdmin from the outside?

In the basic configuration of XAMPP, phpMyAdmin is accessible only from the same host that XAMPP is running on, at http://127.0.0.1 or http://localhost.

To enable remote access to phpMyAdmin, follow these steps:

Edit the etc/extra/httpd-xampp.conf file in your XAMPP installation directory.

Within this file, find the line below and update it to remove 'phpmyadmin' from the list of locations.

        <LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">

Restart the Apache server using the XAMPP control panel.

Hogyan tudok biztonsági mentést és visszaállítást készíteni a XAMPP rendszeremről?

Figyelem: A biztonsági mentés és visszaállítás funkció még fejlesztés alatt van és lehet, hogy nem megfelelően működik.

A biztonsági mentés létrehozásához írja be ezt:

sudo /Applications/XAMPP/xamppfiles/xampp backup

vagy

sudo /Applications/XAMPP/xamppfiles/xampp backup secret

Ahol a "secret" a MySQL root jelszava. Ez a parancs a következő kimenetet fogja eredményezni:

Backing up databases...

Backing up configuration, log and htdocs files...

Calculating checksums...

Building final backup file...

Backup finished.

Take care of /Applications/XAMPP/xamppfiles/backup/xampp-backup-22-01-14.sh

A (fenti példában lévő) /Applications/XAMPP/xamppfiles/backup/xampp-backup-22-01-14.sh fájl tartalmazza a biztonsági mentés adatait. Tegye ezt a fájlt biztonságos helyre.

Az új gépen szüksége lesz ugyanarra a XAMPP verzióra, mint amelyet az eredeti/forrás gépen használt.

sudo sh xampp-backup-22-01-14.sh

Valami ehhez hasonlót kell látnia:

Checking integrity of files...

Restoring configuration, log and htdocs files...

Checking versions...

Installed: XAMPP 1.4.2

Backup from: XAMPP 1.4.2

Restoring MySQL databases...

Restoring MySQL user databases...

Backup complete. Have fun!

You may need to restart XAMPP to complete the restore.

Ennyi. Ne feledje, ez egy béta állapotú szolgáltatás.

Follow us on Twitter

Like us on Facebook

Add us to your G+ Circles

Blog

Adatvédelmi irányelv

                    CDN által nyújtott

Copyright © Apache Friends, 2015.


text:
<?php

namespace houdunwang\wechat\build;

/**
 * 会员组管理
 * Class Group
 * @package houdunwang\wechat\build
 */
class Group extends Base {
	//查询所有分组
	public function getAllGroups() {
		$url     = $this->apiUrl . "/cgi-bin/groups/get?access_token={$this->access_token}";
		$content = $this->curl( $url );

		return $this->get( $content );
	}

	//创建分组
	public function create( $group ) {
		$url     = $this->apiUrl . "/cgi-bin/groups/create?access_token={$this->access_token}";
		$content = $this->curl( $url, urldecode( json_encode( $this->urlencodeArray( $group ) ) ) );

		return $this->get( $content );
	}

	//查询用户所在分组
	public function getUserGroup( $openid ) {
		$url     = $this->apiUrl . "/cgi-bin/groups/getid?access_token={$this->access_token}";
		$user    = '{"openid": ' . $openid . '}';
		$content = $this->curl( $url, $user );

		return $this->get( $content );
	}

	//修改分组名
	public function changeGroupName( $group ) {
		$url     = $this->apiUrl . "/cgi-bin/groups/update?access_token={$this->access_token}";
		$content = $this->curl( $url, urldecode( json_encode( $this->urlencodeArray( $group ) ) ) );

		return $this->get( $content );
	}

	//移动用户分组
	public function changUserGroup( $param ) {
		$url     = $this->apiUrl . "/cgi-bin/groups/members/update?access_token={$this->access_token}";
		$content = $this->curl( $url, urldecode( json_encode( $this->urlencodeArray( $param ) ) ) );

		return $this->get( $content );
	}

	//批量移动用户分组
	public function moveUserToGroup( $param ) {
		$url     = $this->apiUrl . "/cgi-bin/groups/members/batchupdate?access_token={$this->access_token}";
		$content = $this->curl( $url, urldecode( json_encode( $this->urlencodeArray( $param ) ) ) );

		return $this->get( $content );
	}

	//删除分组
	public function delGroup( $param ) {
		$url     = $this->apiUrl . "/cgi-bin/groups/delete?access_token={$this->access_token}";
		$content = $this->curl( $url, urldecode( json_encode( $this->urlencodeArray( $param ) ) ) );

		return $this->get( $content );
	}
}