text:
require 'test_helper'
require 'logger'
class WxpayApiResponseTest < Test::Unit::TestCase
  include OffsitePayments::Integrations

  def setup
    Wxpay.credentials = fixtures(:wxpay)
    Wxpay.logger.level = Logger::ERROR
  end

  def test_unified_order_response_success
    @resp = Wxpay::ApiResponse.parse_response(:unifiedorder, unified_order_response_success)
    assert @resp.comm_success?
    assert @resp.acknowledge
    assert @resp.biz_success?
    assert_equal 'weixin://wxpay/bizpayurl?sr=tVLUP6i', @resp.pay_url
    assert_equal 'weixin://wxpay/bizpayurl?sr=tVLUP6i', @resp.code_url
  end

  def test_unified_order_response_failure1
    @resp = Wxpay::ApiResponse.parse_response(:unifiedorder, unified_order_response_failure1)
    assert_false @resp.comm_success?
  end

  def test_unified_order_response_orderpaid
    @resp = Wxpay::ApiResponse.parse_response(:unifiedorder, unified_order_response_orderpaid)
    assert @resp.comm_success?
    assert @resp.acknowledge
    assert_false @resp.biz_success?
    assert_equal '该订单已支付', @resp.biz_failure_desc
    assert_equal 'ORDERPAID', @resp.biz_failure_code
  end

  def test_order_query_response_orderpaid
    @resp = Wxpay::ApiResponse.parse_response(:orderquery, order_query_response_orderpaid)
    assert @resp.comm_success?
    assert @resp.acknowledge
    assert @resp.biz_success?
    assert_equal 'SUCCESS', @resp.trade_state
    assert_equal 'o2Hzljt7pBjEvfD8JOZdXDToSZSc', @resp.openid
    assert_equal '1009000276201411250006190524', @resp.transaction_id
    assert_equal 'CNY', @resp.currency
    assert_equal Money.new(20, 'CNY'), @resp.total_fee
    assert_equal Money.new(20, 'CNY'), @resp.total_fee
  end

  def test_order_query_response_orderpaid_sgcb
    fixtures(:'wxpay-sgcb') rescue return
    Wxpay.credentials = fixtures(:'wxpay-sgcb')
    @resp = Wxpay::ApiResponse.parse_response(:orderquery, order_query_response_orderpaid_sgcb)
    assert @resp.comm_success?
    assert @resp.acknowledge
    assert @resp.biz_success?
    assert_equal 'SUCCESS', @resp.trade_state
    assert_equal 'o2Hzljt7pBjEvfD8JOZdXDToSZSc', @resp.openid
    assert_equal '1009000276201411250006190524', @resp.transaction_id
    assert_equal 'CNY', @resp.currency
    assert_equal Money.new(20, 'CNY'), @resp.total_fee
    assert_equal Money.new(20, 'CNY'), @resp.total_fee
  end
  private

  def unified_order_response_failure1
    '<xml>
     <return_code><![CDATA[FAIL]]></return_code>
     <return_msg><![CDATA[missing parameter]]></return_msg>
     </xml>'
  end

  def unified_order_response_success
    '<xml><return_code><![CDATA[SUCCESS]]></return_code>
    <return_msg><![CDATA[OK]]></return_msg>
    <appid><![CDATA[wx599b0e05f1873032]]></appid>
    <mch_id><![CDATA[10011924]]></mch_id>
    <nonce_str><![CDATA[gHnTo0kDg56P0Y6T]]></nonce_str>
    <sign><![CDATA[06FB700B48191AFF85F34EBA78504832]]></sign>
    <result_code><![CDATA[SUCCESS]]></result_code>
    <prepay_id><![CDATA[wx20141125175855641523fd940589543551]]></prepay_id>
    <trade_type><![CDATA[NATIVE]]></trade_type>
    <code_url><![CDATA[weixin://wxpay/bizpayurl?sr=tVLUP6i]]></code_url>
    </xml>'
  end

  def unified_order_response_orderpaid
    '<xml><return_code><![CDATA[SUCCESS]]></return_code>
    <return_msg><![CDATA[OK]]></return_msg>
    <appid><![CDATA[wx599b0e05f1873032]]></appid>
    <mch_id><![CDATA[10011924]]></mch_id>
    <nonce_str><![CDATA[b7WLYKWYwAoojxha]]></nonce_str>
    <sign><![CDATA[7160BFB736E99FA73E8981BBB17701D0]]></sign>
    <result_code><![CDATA[FAIL]]></result_code>
    <err_code><![CDATA[ORDERPAID]]></err_code>
    <err_code_des><![CDATA[该订单已支付]]></err_code_des>
    </xml>'
  end

  def order_query_response_orderpaid
    '
    <xml><return_code><![CDATA[SUCCESS]]></return_code>
    <return_msg><![CDATA[OK]]></return_msg>
    <appid><![CDATA[wx599b0e05f1873032]]></appid>
    <mch_id><![CDATA[10011924]]></mch_id>
    <nonce_str><![CDATA[DlyCp5mLJVO52fEY]]></nonce_str>
    <sign><![CDATA[1A60F7B5B2631C8DD2471CE5801EA2B0]]></sign>
    <result_code><![CDATA[SUCCESS]]></result_code>
    <openid><![CDATA[o2Hzljt7pBjEvfD8JOZdXDToSZSc]]></openid>
    <is_subscribe><![CDATA[Y]]></is_subscribe>
    <trade_type><![CDATA[NATIVE]]></trade_type>
    <bank_type><![CDATA[CFT]]></bank_type>
    <total_fee>20</total_fee>
    <fee_type><![CDATA[CNY]]></fee_type>
    <transaction_id><![CDATA[1009000276201411250006190524]]></transaction_id>
    <out_trade_no><![CDATA[R886426002_36GWA3XL]]></out_trade_no>
    <attach><![CDATA[]]></attach>
    <time_end><![CDATA[20141125182509]]></time_end>
    <trade_state><![CDATA[SUCCESS]]></trade_state>
    </xml>
    '
  end

  def order_query_response_orderpaid_sgcb
    '<xml><return_code><![CDATA[SUCCESS]]></return_code>
    <return_msg><![CDATA[OK]]></return_msg>
    <appid><![CDATA[wx599b0e05f1873032]]></appid>
    <mch_id><![CDATA[10011924]]></mch_id>
    <nonce_str><![CDATA[6m6f1OjxODrFqyTy]]></nonce_str>
    <sign><![CDATA[AA3B794E224B3F3075E5DC0E11FE8CBC]]></sign>
    <result_code><![CDATA[SUCCESS]]></result_code>
    <openid><![CDATA[o2Hzljt7pBjEvfD8JOZdXDToSZSc]]></openid>
    <is_subscribe><![CDATA[Y]]></is_subscribe>
    <trade_type><![CDATA[NATIVE]]></trade_type>
    <bank_type><![CDATA[CFT]]></bank_type>
    <total_fee>20</total_fee>
    <fee_type><![CDATA[CNY]]></fee_type>
    <transaction_id><![CDATA[1009000276201411250006190524]]></transaction_id>
    <out_trade_no><![CDATA[R886426002_36GWA3XL]]></out_trade_no>
    <attach><![CDATA[]]></attach>
    <time_end><![CDATA[20141125182509]]></time_end>
    <trade_state><![CDATA[SUCCESS]]></trade_state>
    </xml>'
  end

end


text:
/* .topbar-wrapper img[alt="Swagger UI"], .topbar-wrapper span {
    visibility: hidden;
}

.topbar-wrapper span:after {
    content   : url('./../virus.png');
    color     : #fff;
    visibility: visible;
    display   : block;
    position  : absolute;
    padding   : 5px;
    top       : 2px;
} */
.topbar-wrapper img {
    content: url('./../logo.png');
}

.download-url-wrapper span {
    visibility: hidden;
}

.download-url-wrapper span:after {
    content    : 'Available Versions';
    visibility : visible;
    position   : absolute;
    top        : 22px;
    margin-left: -140px;
}

redpajama_set_name: RedPajamaGithub


text:
import { List } from "gd-sprest";
import { WebParts } from "gd-sprest-react";
import { Configuration } from "./cfg";
import { BatchWebPart } from "./wp";

/**
 * Batch
 */
export class Batch {
    // Configuration
    static Configuration = Configuration;

    /**
     * Constructor
     */
    constructor() {
        // Create an instance of the webpart
        WebParts.FabricWebPart({
            displayElement: BatchWebPart,
            targetElementId: "wp-batch",
        });
    }
}


text:
extern int get_errno (void);
extern void set_errno (int);


text:
<tool id="gatk2_variant_combine" name="Combine Variants" version="0.0.7">
  <description></description>
  <expand macro="requirements" />
  <macros>
    <import>gatk2_macros.xml</import>
  </macros>
  <command interpreter="python">
    gatk2_wrapper.py
    --stdout "${output_log}"

    #set $priority_order = []
    #for $input_variant in $reference_source.input_variants:
        -d "--variant:${input_variant.input_variant_name},%(file_type)s" "${input_variant.input_variant}" "${input_variant.input_variant.ext}" "input_variant_${input_variant.input_variant_name}"
        #set $input_variant_name = str( $input_variant.input_variant_name )
        #assert $input_variant_name not in $priority_order, "Variant Names must be unique" ##this should be handled by a validator
        #silent $priority_order.append( $input_variant_name )
    #end for
    -p '
    @JAR_PATH@
    -T "CombineVariants"
    --out "${output_variants}"
    \$GATK2_SITE_OPTIONS

    @THREADS@

    #if $reference_source.reference_source_selector != "history":
        -R "${reference_source.ref_file.fields.path}"
    #end if
   --genotypemergeoption "${genotype_merge_option}"
   --rod_priority_list "${ ','.join( $priority_order ) }"
   '

    #include source=$standard_gatk_options#

    ##start analysis specific options
    #if $analysis_param_type.analysis_param_type_selector == "advanced":
        -p '
        --filteredrecordsmergetype "${analysis_param_type.filtered_records_merge_type}"
        ${analysis_param_type.print_complex_merges}
        ${analysis_param_type.filtered_are_uncalled}
        ${analysis_param_type.minimal_vcf}
        ${analysis_param_type.assume_identical_samples}

        #if str( $analysis_param_type.set_key ):
            --setKey "${analysis_param_type.set_key}"
        #end if

        --minimumN "${analysis_param_type.minimum_n}"
        '
    #end if
  </command>
  <inputs>

    <conditional name="reference_source">
      <expand macro="reference_source_selector_param" />
      <when value="cached">
        <repeat min="1" name="input_variants" title="Variants to Merge" help="Records will be prioritized in the order that you list them here (-V,--variant &lt;variant&gt;)">
          <param name="input_variant" type="data" format="vcf" label="Input variant file" />
          <param name="input_variant_name" type="text" value="" label="Variant name" help="Names must be unique">
            <validator type="length" min="1" message="You must provide a unique name for this set of variants" />
          </param>
        </repeat>
        <param name="ref_file" type="select" label="Using reference genome" help="-R,--reference_sequence &lt;reference_sequence&gt;">
          <options from_data_table="gatk2_picard_indexes">
            <!-- <filter type="data_meta" key="dbkey" ref="input_variants.input_variant" column="dbkey"/> -->
          </options>
          <validator type="no_options" message="A built-in reference genome is not available for the build associated with the selected input file"/>
        </param>
      </when>
      <when value="history"> <!-- FIX ME!!!! -->
        <repeat min="1" name="input_variants" title="Variants to Merge" help="Records will be prioritized in the order that you list them here (-V,--variant &lt;variant&gt;)">
          <param name="input_variant" type="data" format="vcf" label="Input variant file" />
          <param name="input_variant_name" type="text" value="" label="Variant name" help="Names must be unique">
            <validator type="length" min="1" message="You must provide a unique name for this set of variants" />
          </param>
        </repeat>
        <param name="ref_file" type="data" format="fasta" label="Using reference file" help="-R,--reference_sequence &lt;reference_sequence&gt;" />
      </when>
    </conditional>

    <param name="genotype_merge_option" type="select" label="How should we merge genotype records across records for samples shared across the ROD files" help="-genotypeMergeOptions,--genotypemergeoption &lt;genotypemergeoption&gt;" >
      <option value="UNIQUIFY" />
      <option value="PRIORITIZE" selected="true"/>
      <option value="UNSORTED" />
      <option value="REQUIRE_UNIQUE" />
    </param>

    <expand macro="gatk_param_type_conditional" />

    <expand macro="analysis_type_conditional">
        <param name="filtered_records_merge_type" type="select" label="How should we deal with records seen at the same site in the VCF, but with different FILTER fields?" help="-filteredRecordsMergeType,--filteredrecordsmergetype &lt;filteredrecordsmergetype&gt;" >
          <option value="KEEP_IF_ANY_UNFILTERED" selected="true"/>
          <option value="KEEP_IF_ALL_UNFILTERED" />
        </param>

        <param name="print_complex_merges" checked="false" type="boolean" truevalue="--printComplexMerges" falsevalue="" label="Print out interesting sites requiring complex compatibility merging" help="-printComplexMerges,--printComplexMerges" />
        <param name="filtered_are_uncalled" checked="false" type="boolean" truevalue="--filteredAreUncalled" falsevalue="" label="If true, then filtered VCFs are treated as uncalled, so that filtered set annotation don't appear in the combined VCF" help="-filteredAreUncalled,--filteredAreUncalled" />
        <param name="minimal_vcf" checked="false" type="boolean" truevalue="--minimalVCF" falsevalue="" label="If true, then the output VCF will contain no INFO or genotype INFO field" help="-minimalVCF,--minimalVCF" />

        <param name="set_key" type="text" value="" label="Key, by default set, in the INFO key=value tag emitted describing which set the combined VCF record came from." help="-setKey,--setKey &lt;setKey&gt;"/>
        <param name="assume_identical_samples" checked="false" type="boolean" truevalue="--assumeIdenticalSamples" falsevalue="" label="If true, assume input VCFs have identical sample sets and disjoint calls so that one can simply perform a merge sort to combine the VCFs into one, drastically reducing the runtime." help="-assumeIdenticalSamples,--assumeIdenticalSamples" />
        <param name="minimum_n" type="integer" value="1" label="Combine variants and output site only if variant is present in at least N input files." help="-minN,--minimumN &lt;minimumN&gt;"/>

    </expand>

  </inputs>
  <outputs>
    <data format="vcf" name="output_variants" label="${tool.name} on ${on_string} (variants)" />
    <data format="txt" name="output_log" label="${tool.name} on ${on_string} (log)" />
  </outputs>
  <tests>
      <test>
          <param name="reference_source_selector" value="history" />
          <param name="ref_file" value="phiX.fasta" ftype="fasta" />
          <param name="input_variant" value="gatk/gatk_variant_annotator/gatk_variant_annotator_out_1.vcf" ftype="vcf" />
          <param name="input_variant_name" value="from_variant_annotator" />
          <param name="genotype_merge_option" value="PRIORITIZE" />
          <param name="gatk_param_type_selector" value="basic" />
          <param name="analysis_param_type_selector" value="basic" />
          <output name="output_variants" file="gatk/gatk_variant_combine/gatk_variant_combine_out_1.vcf" lines_diff="4" />
          <output name="output_log" file="gatk/gatk_variant_combine/gatk_variant_combine_out_1.log.contains" compare="contains" />
      </test>
  </tests>
  <help>
**What it does**

Combines VCF records from different sources; supports both full merges and set unions. Merge: combines multiple records into a single one; if sample names overlap then they are uniquified. Union: assumes each rod represents the same set of samples (although this is not enforced); using the priority list (if provided), emits a single record instance at every position represented in the rods.

For more information on using the CombineVariants module, see this `tool specific page <http://www.broadinstitute.org/gatk/gatkdocs/org_broadinstitute_sting_gatk_walkers_variantutils_CombineVariants.html>`_.

To learn about best practices for variant detection using GATK, see this `overview <http://www.broadinstitute.org/gatk/guide/topic?name=best-practices>`_.

If you encounter errors, please view the `GATK FAQ <http://www.broadinstitute.org/gatk/guide/topic?name=faqs>`_.

------

**Inputs**

GenomeAnalysisTK: CombineVariants accepts variant files as input.

------

**Outputs**

The output is a combined vcf file.

Go `here <http://www.broadinstitute.org/gatk/guide/topic?name=intro>`_ for details on GATK file formats.

-------

**Settings**::

 out                         File to which variants should be written
 genotypemergeoption         How should we merge genotype records for samples shared across the ROD files? (UNIQUIFY|PRIORITIZE|UNSORTED|REQUIRE_UNIQUE)
 filteredrecordsmergetype    How should we deal with records seen at the same site in the VCF, but with different FILTER fields? KEEP_IF_ANY_UNFILTERED PASSes the record if any record is unfiltered, KEEP_IF_ALL_UNFILTERED requires all records to be unfiltered (KEEP_IF_ANY_UNFILTERED|KEEP_IF_ALL_UNFILTERED)
 rod_priority_list           When taking the union of variants containing genotypes: a comma-separated string describing the priority ordering for the genotypes as far as which record gets emitted; a complete priority list MUST be provided
 printComplexMerges          Print out interesting sites requiring complex compatibility merging
 filteredAreUncalled         If true, then filtered VCFs are treated as uncalled, so that filtered set annotation don't appear in the combined VCF
 minimalVCF                  If true, then the output VCF will contain no INFO or genotype INFO field
 setKey                      Key, by default set, in the INFO key=value tag emitted describing which set the combined VCF record came from.  Set to null if you don't want the set field emitted.
 assumeIdenticalSamples      If true, assume input VCFs have identical sample sets and disjoint calls so that one can simply perform a merge sort to combine the VCFs into one, drastically reducing the runtime.
 minimumN                    Combine variants and output site only if variant is present in at least N input files.

@CITATION_SECTION@
  </help>
</tool>


text:
<?php

/**
 * Created by PhpStorm.
 * User: acantepie
 * Date: 13/05/17
 * Time: 16:05.
 */

namespace Umbrella\CoreBundle\Component\Menu\Model;

/**
 * Class MenuNode.
 */
class MenuNode implements \IteratorAggregate, \Countable
{
    const TYPE_ROOT = 'ROOT';
    const TYPE_HEADER = 'HEADER';
    const TYPE_PAGE = 'PAGE';

    const DFT_ICON_CLASS = 'fa fa-circle-o';
    const DFT_URL = '#';
    const DFT_TARGET = '_self';

    /**
     * @var string
     */
    public $type;

    /**
     * @var MenuNode
     */
    public $parent;

    /**
     * @var array
     */
    public $children = array();

    /**
     * @var string
     */
    public $iconClass = self::DFT_ICON_CLASS;

    /**
     * @var string
     */
    public $label;

    /**
     * @var boolean
     */
    public $translateLabel = true;

    /**
     * @var string
     */
    public $url = self::DFT_URL;

    /**
     * @var string
     */
    public $target = self::DFT_TARGET;

    /**
     * @var array
     */
    public $roles = array();

    /* Keep route and routeParams options for url matcher */

    /**
     * @var string
     */
    public $route;

    /**
     * @var array
     */
    public $routeParams = array();

    /**
     * @return int|mixed
     */
    public function getLevel()
    {
        return $this->parent ? $this->parent->getLevel() + 1 : 0;
    }

    /**
     * @param MenuNode $child
     *
     * @return $this
     */
    public function addChild(MenuNode $child)
    {
        $child->parent = $this;
        $this->children[] = $child;

        return $this;
    }

    /**
     * @return bool
     */
    public function hasChildren()
    {
        return count($this->children) > 0;
    }

    /**
     * @return \ArrayIterator
     */
    public function getIterator()
    {
        return new \ArrayIterator($this->children);
    }

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


text:
/*----------------------------------------------------------------------------*/
/* Copyright (c) FIRST 2014-2016. All Rights Reserved.                        */
/* Open Source Software - may be modified and shared by FRC teams. The code   */
/* must be accompanied by the FIRST BSD license file in the root directory of */
/* the project.                                                               */
/*----------------------------------------------------------------------------*/

#pragma once

/* Error Codes */
#define ERR_VISION_GENERAL_ERROR 166000  //
#define ERR_COLOR_NOT_FOUND 166100       // TrackAPI.cpp
#define ERR_PARTICLE_TOO_SMALL 166101    // TrackAPI.cpp

#define ERR_CAMERA_FAILURE 166200                  // AxisCamera.cpp
#define ERR_CAMERA_SOCKET_CREATE_FAILED 166201     // AxisCamera.cpp
#define ERR_CAMERA_CONNECT_FAILED 166202           // AxisCamera.cpp
#define ERR_CAMERA_STALE_IMAGE 166203              // AxisCamera.cpp
#define ERR_CAMERA_NOT_INITIALIZED 166204          // AxisCamera.cpp
#define ERR_CAMERA_NO_BUFFER_AVAILABLE 166205      // AxisCamera.cpp
#define ERR_CAMERA_HEADER_ERROR 166206             // AxisCamera.cpp
#define ERR_CAMERA_BLOCKING_TIMEOUT 166207         // AxisCamera.cpp
#define ERR_CAMERA_AUTHORIZATION_FAILED 166208     // AxisCamera.cpp
#define ERR_CAMERA_TASK_SPAWN_FAILED 166209        // AxisCamera.cpp
#define ERR_CAMERA_TASK_INPUT_OUT_OF_RANGE 166210  // AxisCamera.cpp
#define ERR_CAMERA_COMMAND_FAILURE 166211          // AxisCamera.cpp

/* error handling functions */
int GetLastVisionError();
const char* GetVisionErrorText(int errorCode);


text:
ACCEPTED

#### According to
Index Fungorum

#### Published in
null

#### Original name
Aecidium colchici-aurei Ulbr.

### Remarks
null


text:
import classNames from 'classnames'
import React from 'react'

import {
  getPrice
} from '../../helpers'

export default ({
  history,
  pizza,
  onClearSizeClick,
  onToppingSelect,
  onAddToBasket
}) => {
  if (!pizza) return null

  const { name, toppings, maxToppings } = pizza

  if (!Array.isArray(toppings)) {
    return (

        We do not have any toppings for {name} pizza :(

    )
  }

  const price = getPrice(pizza).toFixed(2)

  const selectedToppingsSize = toppings.reduce(
    (result, wrapper) => (wrapper.defaultSelected ? result + 1 : result),
    0
  )

  return (

Great! Here are some additions...

        You can add up to {maxToppings || toppings.length} toppings for your {name} pizza!

        {toppings.map(wrapper => {
          const { topping, defaultSelected } = wrapper
          const disabled = maxToppings === selectedToppingsSize
            ? !defaultSelected
            : false

          const classes = classNames('toppings__topping', {
            'toppings__topping--selected': defaultSelected,
            'toppings__topping--disabled': disabled
          })

          return (

              <input
                className='toppings__topping-toggle'
                disabled={disabled}
                checked={defaultSelected}
                type='checkbox'
                onChange={event => onToppingSelect({ pizza, topping })}
              />
              {topping.name} {wrapper.added} {topping.price}$

          )
        })}

         onAddToBasket(pizza)}
        >
          Add {price}$ to basket

          Cancel and go Back

  )
}


text:
.class final Landroid/support/v7/media/MediaRouter$GlobalMediaRouter$RemoteControlClientRecord;
.super Ljava/lang/Object;
.source "MediaRouter.java"

# interfaces
.implements Landroid/support/v7/media/RemoteControlClientCompat$VolumeCallback;

# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Landroid/support/v7/media/MediaRouter$GlobalMediaRouter;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x12
    name = "RemoteControlClientRecord"
.end annotation

# instance fields
.field private mDisconnected:Z

.field private final mRccCompat:Landroid/support/v7/media/RemoteControlClientCompat;

.field final synthetic this$1:Landroid/support/v7/media/MediaRouter$GlobalMediaRouter;

# virtual methods
.method public onVolumeSetRequest(I)V
    .locals 1

    iget-boolean v0, p0, Landroid/support/v7/media/MediaRouter$GlobalMediaRouter$RemoteControlClientRecord;->mDisconnected:Z

    if-nez v0, :cond_0

    iget-object v0, p0, Landroid/support/v7/media/MediaRouter$GlobalMediaRouter$RemoteControlClientRecord;->this$1:Landroid/support/v7/media/MediaRouter$GlobalMediaRouter;

    iget-object v0, v0, Landroid/support/v7/media/MediaRouter$GlobalMediaRouter;->mSelectedRoute:Landroid/support/v7/media/MediaRouter$RouteInfo;

    if-eqz v0, :cond_0

    iget-object v0, p0, Landroid/support/v7/media/MediaRouter$GlobalMediaRouter$RemoteControlClientRecord;->this$1:Landroid/support/v7/media/MediaRouter$GlobalMediaRouter;

    iget-object v0, v0, Landroid/support/v7/media/MediaRouter$GlobalMediaRouter;->mSelectedRoute:Landroid/support/v7/media/MediaRouter$RouteInfo;

    invoke-virtual {v0, p1}, Landroid/support/v7/media/MediaRouter$RouteInfo;->requestSetVolume(I)V

    :cond_0
    return-void
.end method

.method public onVolumeUpdateRequest(I)V
    .locals 1

    iget-boolean v0, p0, Landroid/support/v7/media/MediaRouter$GlobalMediaRouter$RemoteControlClientRecord;->mDisconnected:Z

    if-nez v0, :cond_0

    iget-object v0, p0, Landroid/support/v7/media/MediaRouter$GlobalMediaRouter$RemoteControlClientRecord;->this$1:Landroid/support/v7/media/MediaRouter$GlobalMediaRouter;

    iget-object v0, v0, Landroid/support/v7/media/MediaRouter$GlobalMediaRouter;->mSelectedRoute:Landroid/support/v7/media/MediaRouter$RouteInfo;

    if-eqz v0, :cond_0

    iget-object v0, p0, Landroid/support/v7/media/MediaRouter$GlobalMediaRouter$RemoteControlClientRecord;->this$1:Landroid/support/v7/media/MediaRouter$GlobalMediaRouter;

    iget-object v0, v0, Landroid/support/v7/media/MediaRouter$GlobalMediaRouter;->mSelectedRoute:Landroid/support/v7/media/MediaRouter$RouteInfo;

    invoke-virtual {v0, p1}, Landroid/support/v7/media/MediaRouter$RouteInfo;->requestUpdateVolume(I)V

    :cond_0
    return-void
.end method

.method public updatePlaybackInfo()V
    .locals 2

    iget-object v0, p0, Landroid/support/v7/media/MediaRouter$GlobalMediaRouter$RemoteControlClientRecord;->mRccCompat:Landroid/support/v7/media/RemoteControlClientCompat;

    iget-object v1, p0, Landroid/support/v7/media/MediaRouter$GlobalMediaRouter$RemoteControlClientRecord;->this$1:Landroid/support/v7/media/MediaRouter$GlobalMediaRouter;

    iget-object v1, v1, Landroid/support/v7/media/MediaRouter$GlobalMediaRouter;->mPlaybackInfo:Landroid/support/v7/media/RemoteControlClientCompat$PlaybackInfo;

    invoke-virtual {v0, v1}, Landroid/support/v7/media/RemoteControlClientCompat;->setPlaybackInfo(Landroid/support/v7/media/RemoteControlClientCompat$PlaybackInfo;)V

    return-void
.end method


text:
package org.onosproject.mapping.web.gui;

import com.fasterxml.jackson.databind.node.ArrayNode;
import com.fasterxml.jackson.databind.node.ObjectNode;
import com.google.common.base.Strings;
import com.google.common.collect.ImmutableSet;
import org.onosproject.mapping.MappingEntry;
import org.onosproject.mapping.MappingService;
import org.onosproject.mapping.MappingTreatment;
import org.onosproject.mapping.addresses.MappingAddress;
import org.onosproject.mapping.instructions.MappingInstruction;
import org.onosproject.mapping.instructions.MulticastMappingInstruction;
import org.onosproject.mapping.instructions.MulticastMappingInstruction.MulticastType;
import org.onosproject.mapping.instructions.UnicastMappingInstruction;
import org.onosproject.mapping.instructions.UnicastMappingInstruction.UnicastType;
import org.onosproject.net.DeviceId;
import org.onosproject.ui.RequestHandler;
import org.onosproject.ui.UiMessageHandler;
import org.onosproject.ui.table.CellFormatter;
import org.onosproject.ui.table.TableModel;
import org.onosproject.ui.table.TableRequestHandler;
import org.onosproject.ui.table.cell.EnumFormatter;
import org.onosproject.ui.table.cell.HexLongFormatter;

import java.util.Collection;

import static org.onosproject.mapping.MappingStore.Type.MAP_CACHE;
import static org.onosproject.mapping.MappingStore.Type.MAP_DATABASE;
import static org.onosproject.mapping.instructions.MappingInstruction.Type.MULTICAST;
import static org.onosproject.mapping.instructions.MappingInstruction.Type.UNICAST;

/**
 * Message handler for mapping management view related messages.
 */
public class MappingsViewMessageHandler extends UiMessageHandler {

    private static final String MAPPING_DATA_REQ = "mappingDataRequest";
    private static final String MAPPING_DATA_RESP = "mappingDataResponse";
    private static final String MAPPINGS = "mappings";

    private static final String MAPPING_DETAIL_REQ = "mappingDetailsRequest";
    private static final String MAPPING_DETAIL_RESP = "mappingDetailsResponse";
    private static final String DETAILS = "details";

    private static final String ID = "id";
    private static final String MAPPING_ID = "mappingId";
    private static final String MAPPING_KEY = "mappingKey";
    private static final String MAPPING_VALUE = "mappingValue";
    private static final String MAPPING_ACTION = "mappingAction";
    private static final String TYPE = "type";
    private static final String STATE = "state";
    private static final String DATABASE = "database";
    private static final String CACHE = "cache";
    private static final String MAPPING_TREATMENTS = "mappingTreatments";

    private static final String MAPPING_ADDRESS = "address";
    private static final String UNICAST_WEIGHT = "unicastWeight";
    private static final String UNICAST_PRIORITY = "unicastPriority";
    private static final String MULTICAST_WEIGHT = "multicastWeight";
    private static final String MULTICAST_PRIORITY = "multicastPriority";

    private static final String COMMA = ", ";
    private static final String OX = "0x";
    private static final String EMPTY = "";

    private static final String NULL_ADDRESS_MSG = "(No mapping address for this mapping)";

    private static final String[] COL_IDS = {
            ID, MAPPING_KEY, MAPPING_VALUE, STATE, MAPPING_ACTION, TYPE
    };

    @Override
    protected Collection<RequestHandler> createRequestHandlers() {
        return ImmutableSet.of(
                new MappingMessageRequest(),
                new DetailRequestHandler()
        );
    }

    /**
     * Handler for mapping message requests.
     */
    private final class MappingMessageRequest extends TableRequestHandler {

        private static final String NO_ROWS_MESSAGE = "No mappings found";

        private MappingMessageRequest() {
            super(MAPPING_DATA_REQ, MAPPING_DATA_RESP, MAPPINGS);
        }

        @Override
        protected String[] getColumnIds() {
            return COL_IDS;
        }

        @Override
        protected String noRowsMessage(ObjectNode payload) {
            return NO_ROWS_MESSAGE;
        }

        @Override
        protected TableModel createTableModel() {
            TableModel tm = super.createTableModel();
            tm.setFormatter(ID, HexLongFormatter.INSTANCE);
            tm.setFormatter(TYPE, EnumFormatter.INSTANCE);
            tm.setFormatter(STATE, EnumFormatter.INSTANCE);
            tm.setFormatter(MAPPING_KEY, new MappingKeyFormatter());
            return tm;
        }

        @Override
        protected void populateTable(TableModel tm, ObjectNode payload) {
            String uri = string(payload, "devId");
            if (!Strings.isNullOrEmpty(uri)) {
                DeviceId deviceId = DeviceId.deviceId(uri);
                MappingService ms = get(MappingService.class);

                for (MappingEntry mapping : ms.getMappingEntries(MAP_DATABASE, deviceId)) {
                    populateRow(tm.addRow(), mapping, DATABASE);
                }

                for (MappingEntry mapping : ms.getMappingEntries(MAP_CACHE, deviceId)) {
                    populateRow(tm.addRow(), mapping, CACHE);
                }
            }
        }

        private void populateRow(TableModel.Row row, MappingEntry mapping,
                                         String type) {
            row.cell(ID, mapping.id().value())
                    .cell(STATE, mapping.state())
                    .cell(TYPE, type)
                    .cell(MAPPING_ACTION, mapping.value().action())
                    .cell(MAPPING_KEY, mapping);
        }
    }

    /**
     * A formatter for formatting mapping key.
     */
    private final class MappingKeyFormatter implements CellFormatter {

        @Override
        public String format(Object value) {
            MappingEntry mapping = (MappingEntry) value;
            MappingAddress address = mapping.key().address();

            if (address == null) {
                return NULL_ADDRESS_MSG;
            }

            return address.toString();
        }
    }

    /**
     * Handler for detailed mapping message requests.
     */
    private final class DetailRequestHandler extends RequestHandler {

        private DetailRequestHandler() {
            super(MAPPING_DETAIL_REQ);
        }

        private MappingEntry findMappingById(String mappingId) {
            MappingService ms = get(MappingService.class);
            Iterable<MappingEntry> dbEntries = ms.getAllMappingEntries(MAP_DATABASE);
            Iterable<MappingEntry> cacheEntries = ms.getAllMappingEntries(MAP_CACHE);

            for (MappingEntry entry : dbEntries) {
                if (entry.id().toString().equals(mappingId)) {
                    return entry;
                }
            }

            for (MappingEntry entry : cacheEntries) {
                if (entry.id().toString().equals(mappingId)) {
                    return entry;
                }
            }

            return null;
        }

        /**
         * Generates a node object of a given mapping treatment.
         *
         * @param treatment mapping treatment
         * @return node object
         */
        private ObjectNode getTreatmentNode(MappingTreatment treatment) {
            ObjectNode data = objectNode();

            data.put(MAPPING_ADDRESS, treatment.address().toString());

            for (MappingInstruction instruct : treatment.instructions()) {
                if (instruct.type() == UNICAST) {
                    UnicastMappingInstruction unicastInstruct =
                            (UnicastMappingInstruction) instruct;
                    if (unicastInstruct.subtype() == UnicastType.WEIGHT) {
                        data.put(UNICAST_WEIGHT,
                                ((UnicastMappingInstruction.WeightMappingInstruction)
                                        unicastInstruct).weight());
                    }
                    if (unicastInstruct.subtype() == UnicastType.PRIORITY) {
                        data.put(UNICAST_PRIORITY,
                                ((UnicastMappingInstruction.PriorityMappingInstruction)
                                        unicastInstruct).priority());
                    }
                }

                if (instruct.type() == MULTICAST) {
                    MulticastMappingInstruction multicastInstruct =
                            (MulticastMappingInstruction) instruct;
                    if (multicastInstruct.subtype() == MulticastType.WEIGHT) {
                        data.put(MULTICAST_WEIGHT,
                                ((MulticastMappingInstruction.WeightMappingInstruction)
                                        multicastInstruct).weight());
                    }
                    if (multicastInstruct.subtype() == MulticastType.PRIORITY) {
                        data.put(MULTICAST_PRIORITY,
                                ((MulticastMappingInstruction.PriorityMappingInstruction)
                                        multicastInstruct).priority());
                    }
                }

                // TODO: extension address will be handled later
            }

            return data;
        }

        @Override
        public void process(ObjectNode payload) {
            String mappingId = string(payload, MAPPING_ID);
            String type = string(payload, TYPE);
            String strippedFlowId = mappingId.replaceAll(OX, EMPTY);

            MappingEntry mapping = findMappingById(strippedFlowId);
            if (mapping != null) {
                ArrayNode arrayNode = arrayNode();

                for (MappingTreatment treatment : mapping.value().treatments()) {
                    arrayNode.add(getTreatmentNode(treatment));
                }

                ObjectNode detailsNode = objectNode();
                detailsNode.put(MAPPING_ID, mappingId);
                detailsNode.put(STATE, mapping.state().name());
                detailsNode.put(TYPE, type);
                detailsNode.put(MAPPING_ACTION, mapping.value().action().toString());

                ObjectNode keyNode = objectNode();
                keyNode.put(MAPPING_ADDRESS, mapping.key().address().toString());

                ObjectNode valueNode = objectNode();
                valueNode.set(MAPPING_TREATMENTS, arrayNode);

                detailsNode.set(MAPPING_KEY, keyNode);
                detailsNode.set(MAPPING_VALUE, valueNode);

                ObjectNode rootNode = objectNode();
                rootNode.set(DETAILS, detailsNode);
                sendMessage(MAPPING_DETAIL_RESP, rootNode);
            }
        }
    }
}


text:
"""Tests for protocall.interpreter.roundtrip."""

import unittest

from pyparsing import ParseResults
from protocall.interpreter import parser_converter

from protocall.interpreter.grammar import scope
from protocall.runtime.vm import Protocall

class RoundtripTest(unittest.TestCase):

  def testRoundtrip(self):
    program = """{
      x=5;
      print_(x=x);
      while (x > 0) {
        print_(x=x);
        x = x - 1;
      };
      print_(x=x);
      if (x>5) {
        print_(x=0);
      }
      elif (x<0) {
        print_(x=1);
      }
      else {
        print_(x=2);
      };
      return x;
    }
    """

    result = scope.parseString(program)
    print result[0]
    roundtrip = scope.parseString(repr(result[0]))
    print roundtrip[0]

    proto = parser_converter.convert_scope(result[0].scope)
    print proto
    pr = Protocall()
    pr.execute(proto.block)

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


text:
package com.helospark.lightdi.reflection;

import java.lang.reflect.Method;
import java.util.List;
import java.util.stream.Collectors;

import com.helospark.lightdi.LightDiContext;
import com.helospark.lightdi.descriptor.DependencyDescriptor;
import com.helospark.lightdi.descriptor.InjectionDescriptor;
import com.helospark.lightdi.descriptor.stereotype.setter.MethodDescriptor;
import com.helospark.lightdi.reflection.chain.DependencyObjectResolverHandler;

public class MethodInvoker {
    private DependencyObjectResolverHandler dependencyObjectResolverHandler;

    public MethodInvoker(DependencyObjectResolverHandler dependencyObjectResolverHandler) {
        this.dependencyObjectResolverHandler = dependencyObjectResolverHandler;
    }

    public Object invokeMethod(LightDiContext lightDiContext, MethodDescriptor methodDescriptor,
            Object result, DependencyDescriptor dependencyToCreate) {
        try {
            List<InjectionDescriptor> injectionDescriptor = methodDescriptor.getInjectionDescriptor();
            Object[] arguments = injectionDescriptor.stream()
                    .map(dependency -> resolveDependency(lightDiContext, dependency, dependencyToCreate))
                    .collect(Collectors.toList())
                    .toArray();
            Method method = methodDescriptor.getMethod();
            method.setAccessible(true);
            return method.invoke(result, arguments);
        } catch (Exception e) {
            throw new IllegalStateException("Unable to call setter " + methodDescriptor, e);
        }
    }

    private Object resolveDependency(LightDiContext context, InjectionDescriptor descriptor, DependencyDescriptor dependencyToCreate) {
        return dependencyObjectResolverHandler.resolve(context, descriptor);
    }

}


text:
#ifndef ltable_h
#define ltable_h

#include "lobject.h"

#define gnode(t,i)	(&(t)->node[i])
#define gkey(n)		(&(n)->i_key.tvk)
#define gval(n)		(&(n)->i_val)
#define gnext(n)	((n)->i_key.nk.next)

#define invalidateTMcache(t)	((t)->flags = 0)

/* returns the key, given the value of a table entry */
#define keyfromval(v) \
  (gkey(cast(Node *, cast(char *, (v)) - offsetof(Node, i_val))))

LUAI_FUNC const TValue *luaH_getint (Table *t, lua_Integer key);
LUAI_FUNC void luaH_setint (lua_State *L, Table *t, lua_Integer key,
                            TValue *value);
LUAI_FUNC const TValue *luaH_getstr (Table *t, TString *key);
LUAI_FUNC const TValue *luaH_get (Table *t, const TValue *key);
LUAI_FUNC TValue *luaH_newkey (lua_State *L, Table *t, const TValue *key);
LUAI_FUNC TValue *luaH_set (lua_State *L, Table *t, const TValue *key);
LUAI_FUNC Table *luaH_new (lua_State *L);
LUAI_FUNC void luaH_resize (lua_State *L, Table *t, int nasize, int nhsize);
LUAI_FUNC void luaH_resizearray (lua_State *L, Table *t, int nasize);
LUAI_FUNC void luaH_free (lua_State *L, Table *t);
LUAI_FUNC int luaH_next (lua_State *L, Table *t, StkId key);
LUAI_FUNC int luaH_getn (Table *t);

#if defined(LUA_DEBUG)
LUAI_FUNC Node *luaH_mainposition (const Table *t, const TValue *key);
LUAI_FUNC int luaH_isdummy (Node *n);
#endif

#endif


text:
using System;
using System.Windows.Forms;
using ExampleBase;
using NetOffice;
using Word = NetOffice.WordApi;
using NetOffice.WordApi.Enums;
using NetOffice.WordApi.Tools.Contribution;

namespace WordExamplesCS4
{
    /// <summary>
    /// Example 2 - Insert table
    /// </summary>
    internal class Example02 : IExample
    {
        public void RunExample()
        {
            // start word and turn off msg boxes
            Word.Application wordApplication = new Word.Application();
            wordApplication.DisplayAlerts = WdAlertLevel.wdAlertsNone;

            // create a utils instance, not need for but helpful to keep the lines of code low
            CommonUtils utils = new CommonUtils(wordApplication);

            // add a new document
            Word.Document newDocument = wordApplication.Documents.Add();

            // add a table
            Word.Table table = newDocument.Tables.Add(wordApplication.Selection.Range, 3, 2);

            // insert some text into the cells
            table.Cell(1, 1).Select();
            wordApplication.Selection.TypeText("This");

            table.Cell(1, 2).Select();
            wordApplication.Selection.TypeText("table");

            table.Cell(2, 1).Select();
            wordApplication.Selection.TypeText("was");

            table.Cell(2, 2).Select();
            wordApplication.Selection.TypeText("created");

            table.Cell(3, 1).Select();
            wordApplication.Selection.TypeText("by");

            table.Cell(3, 2).Select();
            wordApplication.Selection.TypeText("NetOffice");

            // save the document
            string documentFile = utils.File.Combine(HostApplication.RootDirectory, "Example02", DocumentFormat.Normal);
            newDocument.SaveAs(documentFile);

            // close word and dispose reference
            wordApplication.Quit();
            wordApplication.Dispose();

            // show end dialog
            HostApplication.ShowFinishDialog(null, documentFile);
        }

        public void Connect(IHost hostApplication)
        {
            HostApplication = hostApplication;
        }

        public string Caption
        {
            get { return "Example02"; }
        }

        public string Description
        {
            get { return "Insert a table to document"; }
        }

        public UserControl Panel
        {
            get { return null; }
        }

        internal IHost HostApplication { get; private set; }
    }
}


text:
Search

            <form action="javascript:;">
                <input type="text" class="form-control">
            </form>

Categories

Uncategories


text:
#ui-datepicker-div {
	display: none;
}

/* states and images */
.ui-icon { display: block; text-indent: -99999px; overflow: hidden; background-repeat: no-repeat; }

/* Component containers
----------------------------------*/
.ui-datepicker .ui-widget { font-family: Verdana,Arial,sans-serif; font-size: 1.1em; }
.ui-datepicker .ui-widget input, .ui-datepicker .ui-widget select, .ui-datepicker .ui-widget textarea, .ui-datepicker .ui-widget button { font-family: Verdana,Arial,sans-serif; font-size: 1em; }
.ui-datepicker .ui-widget-content { border: 1px solid #aaaaaa; background: #ffffff url(/lib/images/ui-bg_flat_75_ffffff_40x100.png) 50% 50% repeat-x; color: #222222; }
.ui-datepicker .ui-widget-content a { color: #222222; }
.ui-datepicker .ui-widget-header { border: 1px solid #aaaaaa; background: #cccccc url(/lib/images/ui-bg_highlight-soft_75_cccccc_1x100.png) 50% 50% repeat-x; color: #222222; font-weight: bold; }
.ui-datepicker .ui-widget-header a { color: #222222; }

/* Interaction states
----------------------------------*/
.ui-datepicker .ui-state-default, .ui-datepicker .ui-widget-content .ui-datepicker .ui-state-default { border: 1px solid #d3d3d3; background: #e6e6e6 /lib/images/ui-bg_glass_75_e6e6e6_1x400.png) 50% 50% repeat-x; font-weight: normal; color: #555555; outline: none; }
.ui-datepicker .ui-state-default a, .ui-datepicker .ui-state-default a:link, .ui-datepicker .ui-state-default a:visited { color: #555555; text-decoration: none; outline: none; }
.ui-datepicker .ui-state-hover, .ui-datepicker .ui-widget-content .ui-state-hover, .ui-datepicker .ui-state-focus, .ui-datepicker .ui-widget-content .ui-state-focus { border: 1px solid #999999; background: #dadada url(/lib/images/ui-bg_glass_75_dadada_1x400.png) 50% 50% repeat-x; font-weight: normal; color: #212121; outline: none; }
.ui-datepicker .ui-state-hover a, .ui-datepicker .ui-state-hover a:hover { color: #212121; text-decoration: none; outline: none; }
.ui-datepicker .ui-state-active, .ui-datepicker .ui-widget-content .ui-state-active { border: 1px solid #aaaaaa; background: #ffffff url(/lib/images/ui-bg_glass_65_ffffff_1x400.png) 50% 50% repeat-x; font-weight: normal; color: #212121; outline: none; }
.ui-datepicker .ui-state-active a, .ui-datepicker .ui-state-active a:link, .ui-datepicker .ui-state-active a:visited { color: #212121; outline: none; text-decoration: none; }

/* Interaction Cues
----------------------------------*/
.ui-datepicker .ui-state-highlight, .ui-widget-content .ui-state-highlight {border: 1px solid #fcefa1; background: #fbf9ee url(/lib/images/ui-bg_glass_55_fbf9ee_1x400.png) 50% 50% repeat-x; color: #363636; }
.ui-state-highlight a, .ui-widget-content .ui-state-highlight a { color: #363636; }
.ui-state-error, .ui-widget-content .ui-state-error {border: 1px solid #cd0a0a; background: #fef1ec url(/lib/images/ui-bg_glass_95_fef1ec_1x400.png) 50% 50% repeat-x; color: #cd0a0a; }
.ui-state-error a, .ui-widget-content .ui-state-error a { color: #cd0a0a; }
.ui-state-error-text, .ui-widget-content .ui-state-error-text { color: #cd0a0a; }
.ui-state-disabled, .ui-widget-content .ui-state-disabled { opacity: .35; filter:Alpha(Opacity=35); background-image: none; }
.ui-priority-primary, .ui-widget-content .ui-priority-primary { font-weight: bold; }
.ui-priority-secondary, .ui-widget-content .ui-priority-secondary { opacity: .7; filter:Alpha(Opacity=70); font-weight: normal; }

/* Icons
----------------------------------*/

/* states and images */
.ui-icon { width: 16px; height: 16px; background-image: url(/lib/images/ui-icons_222222_256x240.png); }
.ui-widget-content .ui-icon {background-image: url(/lib/images/ui-icons_222222_256x240.png); }
.ui-widget-header .ui-icon {background-image: url(/lib/images/ui-icons_222222_256x240.png); }
.ui-state-default .ui-icon { background-image: url(/lib/images/ui-icons_888888_256x240.png); }
.ui-state-hover .ui-icon, .ui-state-focus .ui-icon {background-image: url(/lib/images/ui-icons_454545_256x240.png); }
.ui-state-active .ui-icon {background-image: url(/lib/images/ui-icons_454545_256x240.png); }
.ui-state-highlight .ui-icon {background-image: url(/lib/images/ui-icons_2e83ff_256x240.png); }
.ui-state-error .ui-icon, .ui-state-error-text .ui-icon {background-image: url(/lib/images/ui-icons_cd0a0a_256x240.png); }

/* positioning */
.ui-icon-carat-1-n { background-position: 0 0; }
.ui-icon-carat-1-ne { background-position: -16px 0; }
.ui-icon-carat-1-e { background-position: -32px 0; }
.ui-icon-carat-1-se { background-position: -48px 0; }
.ui-icon-carat-1-s { background-position: -64px 0; }
.ui-icon-carat-1-sw { background-position: -80px 0; }
.ui-icon-carat-1-w { background-position: -96px 0; }
.ui-icon-carat-1-nw { background-position: -112px 0; }
.ui-icon-carat-2-n-s { background-position: -128px 0; }
.ui-icon-carat-2-e-w { background-position: -144px 0; }
.ui-icon-triangle-1-n { background-position: 0 -16px; }
.ui-icon-triangle-1-ne { background-position: -16px -16px; }
.ui-icon-triangle-1-e { background-position: -32px -16px; }
.ui-icon-triangle-1-se { background-position: -48px -16px; }
.ui-icon-triangle-1-s { background-position: -64px -16px; }
.ui-icon-triangle-1-sw { background-position: -80px -16px; }
.ui-icon-triangle-1-w { background-position: -96px -16px; }
.ui-icon-triangle-1-nw { background-position: -112px -16px; }
.ui-icon-triangle-2-n-s { background-position: -128px -16px; }
.ui-icon-triangle-2-e-w { background-position: -144px -16px; }
.ui-icon-arrow-1-n { background-position: 0 -32px; }
.ui-icon-arrow-1-ne { background-position: -16px -32px; }
.ui-icon-arrow-1-e { background-position: -32px -32px; }
.ui-icon-arrow-1-se { background-position: -48px -32px; }
.ui-icon-arrow-1-s { background-position: -64px -32px; }
.ui-icon-arrow-1-sw { background-position: -80px -32px; }
.ui-icon-arrow-1-w { background-position: -96px -32px; }
.ui-icon-arrow-1-nw { background-position: -112px -32px; }
.ui-icon-arrow-2-n-s { background-position: -128px -32px; }
.ui-icon-arrow-2-ne-sw { background-position: -144px -32px; }
.ui-icon-arrow-2-e-w { background-position: -160px -32px; }
.ui-icon-arrow-2-se-nw { background-position: -176px -32px; }
.ui-icon-arrowstop-1-n { background-position: -192px -32px; }
.ui-icon-arrowstop-1-e { background-position: -208px -32px; }
.ui-icon-arrowstop-1-s { background-position: -224px -32px; }
.ui-icon-arrowstop-1-w { background-position: -240px -32px; }
.ui-icon-arrowthick-1-n { background-position: 0 -48px; }
.ui-icon-arrowthick-1-ne { background-position: -16px -48px; }
.ui-icon-arrowthick-1-e { background-position: -32px -48px; }
.ui-icon-arrowthick-1-se { background-position: -48px -48px; }
.ui-icon-arrowthick-1-s { background-position: -64px -48px; }
.ui-icon-arrowthick-1-sw { background-position: -80px -48px; }
.ui-icon-arrowthick-1-w { background-position: -96px -48px; }
.ui-icon-arrowthick-1-nw { background-position: -112px -48px; }
.ui-icon-arrowthick-2-n-s { background-position: -128px -48px; }
.ui-icon-arrowthick-2-ne-sw { background-position: -144px -48px; }
.ui-icon-arrowthick-2-e-w { background-position: -160px -48px; }
.ui-icon-arrowthick-2-se-nw { background-position: -176px -48px; }
.ui-icon-arrowthickstop-1-n { background-position: -192px -48px; }
.ui-icon-arrowthickstop-1-e { background-position: -208px -48px; }
.ui-icon-arrowthickstop-1-s { background-position: -224px -48px; }
.ui-icon-arrowthickstop-1-w { background-position: -240px -48px; }
.ui-icon-arrowreturnthick-1-w { background-position: 0 -64px; }
.ui-icon-arrowreturnthick-1-n { background-position: -16px -64px; }
.ui-icon-arrowreturnthick-1-e { background-position: -32px -64px; }
.ui-icon-arrowreturnthick-1-s { background-position: -48px -64px; }
.ui-icon-arrowreturn-1-w { background-position: -64px -64px; }
.ui-icon-arrowreturn-1-n { background-position: -80px -64px; }
.ui-icon-arrowreturn-1-e { background-position: -96px -64px; }
.ui-icon-arrowreturn-1-s { background-position: -112px -64px; }
.ui-icon-arrowrefresh-1-w { background-position: -128px -64px; }
.ui-icon-arrowrefresh-1-n { background-position: -144px -64px; }
.ui-icon-arrowrefresh-1-e { background-position: -160px -64px; }
.ui-icon-arrowrefresh-1-s { background-position: -176px -64px; }
.ui-icon-arrow-4 { background-position: 0 -80px; }
.ui-icon-arrow-4-diag { background-position: -16px -80px; }
.ui-icon-extlink { background-position: -32px -80px; }
.ui-icon-newwin { background-position: -48px -80px; }
.ui-icon-refresh { background-position: -64px -80px; }
.ui-icon-shuffle { background-position: -80px -80px; }
.ui-icon-transfer-e-w { background-position: -96px -80px; }
.ui-icon-transferthick-e-w { background-position: -112px -80px; }
.ui-icon-folder-collapsed { background-position: 0 -96px; }
.ui-icon-folder-open { background-position: -16px -96px; }
.ui-icon-document { background-position: -32px -96px; }
.ui-icon-document-b { background-position: -48px -96px; }
.ui-icon-note { background-position: -64px -96px; }
.ui-icon-mail-closed { background-position: -80px -96px; }
.ui-icon-mail-open { background-position: -96px -96px; }
.ui-icon-suitcase { background-position: -112px -96px; }
.ui-icon-comment { background-position: -128px -96px; }
.ui-icon-person { background-position: -144px -96px; }
.ui-icon-print { background-position: -160px -96px; }
.ui-icon-trash { background-position: -176px -96px; }
.ui-icon-locked { background-position: -192px -96px; }
.ui-icon-unlocked { background-position: -208px -96px; }
.ui-icon-bookmark { background-position: -224px -96px; }
.ui-icon-tag { background-position: -240px -96px; }
.ui-icon-home { background-position: 0 -112px; }
.ui-icon-flag { background-position: -16px -112px; }
.ui-icon-calendar { background-position: -32px -112px; }
.ui-icon-cart { background-position: -48px -112px; }
.ui-icon-pencil { background-position: -64px -112px; }
.ui-icon-clock { background-position: -80px -112px; }
.ui-icon-disk { background-position: -96px -112px; }
.ui-icon-calculator { background-position: -112px -112px; }
.ui-icon-zoomin { background-position: -128px -112px; }
.ui-icon-zoomout { background-position: -144px -112px; }
.ui-icon-search { background-position: -160px -112px; }
.ui-icon-wrench { background-position: -176px -112px; }
.ui-icon-gear { background-position: -192px -112px; }
.ui-icon-heart { background-position: -208px -112px; }
.ui-icon-star { background-position: -224px -112px; }
.ui-icon-link { background-position: -240px -112px; }
.ui-icon-cancel { background-position: 0 -128px; }
.ui-icon-plus { background-position: -16px -128px; }
.ui-icon-plusthick { background-position: -32px -128px; }
.ui-icon-minus { background-position: -48px -128px; }
.ui-icon-minusthick { background-position: -64px -128px; }
.ui-icon-close { background-position: -80px -128px; }
.ui-icon-closethick { background-position: -96px -128px; }
.ui-icon-key { background-position: -112px -128px; }
.ui-icon-lightbulb { background-position: -128px -128px; }
.ui-icon-scissors { background-position: -144px -128px; }
.ui-icon-clipboard { background-position: -160px -128px; }
.ui-icon-copy { background-position: -176px -128px; }
.ui-icon-contact { background-position: -192px -128px; }
.ui-icon-image { background-position: -208px -128px; }
.ui-icon-video { background-position: -224px -128px; }
.ui-icon-script { background-position: -240px -128px; }
.ui-icon-alert { background-position: 0 -144px; }
.ui-icon-info { background-position: -16px -144px; }
.ui-icon-notice { background-position: -32px -144px; }
.ui-icon-help { background-position: -48px -144px; }
.ui-icon-check { background-position: -64px -144px; }
.ui-icon-bullet { background-position: -80px -144px; }
.ui-icon-radio-off { background-position: -96px -144px; }
.ui-icon-radio-on { background-position: -112px -144px; }
.ui-icon-pin-w { background-position: -128px -144px; }
.ui-icon-pin-s { background-position: -144px -144px; }
.ui-icon-play { background-position: 0 -160px; }
.ui-icon-pause { background-position: -16px -160px; }
.ui-icon-seek-next { background-position: -32px -160px; }
.ui-icon-seek-prev { background-position: -48px -160px; }
.ui-icon-seek-end { background-position: -64px -160px; }
.ui-icon-seek-first { background-position: -80px -160px; }
.ui-icon-stop { background-position: -96px -160px; }
.ui-icon-eject { background-position: -112px -160px; }
.ui-icon-volume-off { background-position: -128px -160px; }
.ui-icon-volume-on { background-position: -144px -160px; }
.ui-icon-power { background-position: 0 -176px; }
.ui-icon-signal-diag { background-position: -16px -176px; }
.ui-icon-signal { background-position: -32px -176px; }
.ui-icon-battery-0 { background-position: -48px -176px; }
.ui-icon-battery-1 { background-position: -64px -176px; }
.ui-icon-battery-2 { background-position: -80px -176px; }
.ui-icon-battery-3 { background-position: -96px -176px; }
.ui-icon-circle-plus { background-position: 0 -192px; }
.ui-icon-circle-minus { background-position: -16px -192px; }
.ui-icon-circle-close { background-position: -32px -192px; }
.ui-icon-circle-triangle-e { background-position: -48px -192px; }
.ui-icon-circle-triangle-s { background-position: -64px -192px; }
.ui-icon-circle-triangle-w { background-position: -80px -192px; }
.ui-icon-circle-triangle-n { background-position: -96px -192px; }
.ui-icon-circle-arrow-e { background-position: -112px -192px; }
.ui-icon-circle-arrow-s { background-position: -128px -192px; }
.ui-icon-circle-arrow-w { background-position: -144px -192px; }
.ui-icon-circle-arrow-n { background-position: -160px -192px; }
.ui-icon-circle-zoomin { background-position: -176px -192px; }
.ui-icon-circle-zoomout { background-position: -192px -192px; }
.ui-icon-circle-check { background-position: -208px -192px; }
.ui-icon-circlesmall-plus { background-position: 0 -208px; }
.ui-icon-circlesmall-minus { background-position: -16px -208px; }
.ui-icon-circlesmall-close { background-position: -32px -208px; }
.ui-icon-squaresmall-plus { background-position: -48px -208px; }
.ui-icon-squaresmall-minus { background-position: -64px -208px; }
.ui-icon-squaresmall-close { background-position: -80px -208px; }
.ui-icon-grip-dotted-vertical { background-position: 0 -224px; }
.ui-icon-grip-dotted-horizontal { background-position: -16px -224px; }
.ui-icon-grip-solid-vertical { background-position: -32px -224px; }
.ui-icon-grip-solid-horizontal { background-position: -48px -224px; }
.ui-icon-gripsmall-diagonal-se { background-position: -64px -224px; }
.ui-icon-grip-diagonal-se { background-position: -80px -224px; }

/* Misc visuals
----------------------------------*/

.ui-datepicker { width: 17em; padding: .2em .2em 0; border: 1px solid #aaaaaa; background: #ffffff url(/lib/images/ui-bg_flat_75_ffffff_40x100.png) 50% 50% repeat-x; color: #222222;}
.ui-datepicker .ui-datepicker-header { position:relative; padding:.2em 0; }
.ui-datepicker .ui-datepicker-prev, .ui-datepicker .ui-datepicker-next { position:absolute; top: 2px; width: 1.8em; height: 1.8em; }
.ui-datepicker .ui-datepicker-prev-hover, .ui-datepicker .ui-datepicker-next-hover { top: 1px; }
.ui-datepicker .ui-datepicker-prev { left:2px; }
.ui-datepicker .ui-datepicker-next { right:2px; }
.ui-datepicker .ui-datepicker-prev-hover { left:1px; }
.ui-datepicker .ui-datepicker-next-hover { right:1px; }
.ui-datepicker .ui-datepicker-prev span, .ui-datepicker .ui-datepicker-next span { display: block; position: absolute; left: 50%; margin-left: -8px; top: 50%; margin-top: -8px;  }
.ui-datepicker .ui-datepicker-title { margin: 0 2.3em; line-height: 1.8em; text-align: center; }
.ui-datepicker .ui-datepicker-title select { float:left; font-size:1em; margin:1px 0; }
.ui-datepicker select.ui-datepicker-month-year {width: 100%;}
.ui-datepicker select.ui-datepicker-month,
.ui-datepicker select.ui-datepicker-year { width: 49%;}
.ui-datepicker .ui-datepicker-title select.ui-datepicker-year { float: right; }
.ui-datepicker table {width: 100%; font-size: .9em; border-collapse: collapse; margin:0 0 .4em; }
.ui-datepicker th { padding: .7em .3em; text-align: center; font-weight: bold; border: 0;  }
.ui-datepicker td { border: 0; padding: 1px; }
.ui-datepicker td span, .ui-datepicker td a { display: block; padding: .2em; text-align: right; text-decoration: none; }
.ui-datepicker .ui-datepicker-buttonpane { background-image: none; margin: .7em 0 0 0; padding:0 .2em; border-left: 0; border-right: 0; border-bottom: 0; }
.ui-datepicker .ui-datepicker-buttonpane button { float: right; margin: .5em .2em .4em; cursor: pointer; padding: .2em .6em .3em .6em; width:auto; overflow:visible; }
.ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-current { float:left; }

/* with multiple calendars */
.ui-datepicker.ui-datepicker-multi { width:auto; }
.ui-datepicker-multi .ui-datepicker-group { float:left; }
.ui-datepicker-multi .ui-datepicker-group table { width:95%; margin:0 auto .4em; }
.ui-datepicker-multi-2 .ui-datepicker-group { width:50%; }
.ui-datepicker-multi-3 .ui-datepicker-group { width:33.3%; }
.ui-datepicker-multi-4 .ui-datepicker-group { width:25%; }
.ui-datepicker-multi .ui-datepicker-group-last .ui-datepicker-header { border-left-width:0; }
.ui-datepicker-multi .ui-datepicker-group-middle .ui-datepicker-header { border-left-width:0; }
.ui-datepicker-multi .ui-datepicker-buttonpane { clear:left; }
.ui-datepicker-row-break { clear:both; width:100%; }

/* RTL support */
.ui-datepicker-rtl { direction: rtl; }
.ui-datepicker-rtl .ui-datepicker-prev { right: 2px; left: auto; }
.ui-datepicker-rtl .ui-datepicker-next { left: 2px; right: auto; }
.ui-datepicker-rtl .ui-datepicker-prev:hover { right: 1px; left: auto; }
.ui-datepicker-rtl .ui-datepicker-next:hover { left: 1px; right: auto; }
.ui-datepicker-rtl .ui-datepicker-buttonpane { clear:right; }
.ui-datepicker-rtl .ui-datepicker-buttonpane button { float: left; }
.ui-datepicker-rtl .ui-datepicker-buttonpane button.ui-datepicker-current { float:right; }
.ui-datepicker-rtl .ui-datepicker-group { float:right; }
.ui-datepicker-rtl .ui-datepicker-group-last .ui-datepicker-header { border-right-width:0; border-left-width:1px; }
.ui-datepicker-rtl .ui-datepicker-group-middle .ui-datepicker-header { border-right-width:0; border-left-width:1px; }

/* IE6 IFRAME FIX (taken from datepicker 1.5.3 */
.ui-datepicker-cover {
    display: none; /*sorry for IE5*/
    display/**/: block; /*sorry for IE5*/
    position: absolute; /*must have*/
    z-index: -1; /*must have*/
    filter: mask(); /*must have*/
    top: -4px; /*must have*/
    left: -4px; /*must have*/
    width: 200px; /*must have*/
    height: 200px; /*must have*/
}


text:
<?php
/**
 * Holds the Theme My Login template class
 *
 * @package Theme_My_Login
 * @since 6.0
 */

if ( ! class_exists( 'Theme_My_Login_Template' ) ) :
/*
 * Theme My Login template class
 *
 * This class contains properties and methods common to displaying output.
 *
 * @since 6.0
 */
class Theme_My_Login_Template extends Theme_My_Login_Abstract {
	/**
	 * Holds active instance flag
	 *
	 * @since 6.3
	 * @access private
	 * @var bool
	 */
	private $is_active = false;

	/**
	 * Constructor
	 *
	 * @since 6.0
	 * @access public
	 *
	 * @param array $options Instance options
	 */
	public function __construct( $options = '' ) {
		$options = wp_parse_args( $options );
		$options = shortcode_atts( self::default_options(), $options );

		$this->set_options( $options );
	}

	/**
	 * Retrieves default options
	 *
	 * @since 6.3
	 * @access public
	 *
	 * @return array Default options
	 */
	public static function default_options() {
		return array(
			'instance'              => 0,
			'default_action'        => '',
			'login_template'        => '',
			'register_template'     => '',
			'lostpassword_template' => '',
			'resetpass_template'    => '',
			'user_template'         => '',
			'show_title'            => true,
			'show_log_link'         => true,
			'show_reg_link'         => true,
			'show_pass_link'        => true,
			'logged_in_widget'      => true,
			'logged_out_widget'     => true,
			'show_gravatar'         => true,
			'gravatar_size'         => 50,
			'before_widget'         => '',
			'after_widget'          => '',
			'before_title'          => '',
			'after_title'           => ''
		);
	}

	/**
	 * Displays output according to current action
	 *
	 * @since 6.0
	 * @access public
	 *
	 * @return string HTML output
	 */
	public function display( $action = '' ) {
		if ( empty( $action ) )
			$action = $this->get_option( 'default_action' );

		ob_start();
		echo $this->get_option( 'before_widget' );
		if ( $this->get_option( 'show_title' ) )
			echo $this->get_option( 'before_title' ) . $this->get_title( $action ) . $this->get_option( 'after_title' ) . "\n";
		// Is there a specified template?
		if ( has_action( 'tml_display_' . $action ) ) {
			do_action_ref_array( 'tml_display_' . $action, array( &$this ) );
		} else {
			$template = array();
			if ( is_user_logged_in() && 'login' == $action ) {
				if ( $this->get_option( 'user_template' ) )
					$template[] = $this->get_option( 'user_template' );
				$template[] = 'user-panel.php';
			} else {
				switch ( $action ) {
					case 'lostpassword':
					case 'retrievepassword':
						if ( $this->get_option( 'lostpassword_template' ) )
							$template[] = $this->get_option( 'lostpassword_template' );
						$template[] = 'lostpassword-form.php';
						break;
					case 'resetpass':
					case 'rp':
						if ( $this->get_option( 'resetpass_template' ) )
							$template[] = $this->get_option( 'resetpass_template' );
						$template[] = 'resetpass-form.php';
						break;
					case 'register':
						if ( $this->get_option( 'register_template' ) )
							$template[] = $this->get_option( 'register_template' );
						$template[] = 'register-form.php';
						break;
					case 'login':
					default :
						if ( $this->get_option( 'login_template' ) )
							$template[] = $this->get_option( 'login_template' );
						$template[] = 'login-form.php';
				}
			}
			$this->get_template( $template );
		}
		echo $this->get_option( 'after_widget' ) . "\n";
		$output = ob_get_contents();
		ob_end_clean();
		return apply_filters_ref_array( 'tml_display', array( $output, $action, &$this ) );
	}

	/**
	 * Returns action title
	 *
	 * @since 6.0
	 * @access public
	 *
	 * @param string $action The action to retrieve. Defaults to current action.
	 * @return string Title of $action
	 */
	public function get_title( $action = '' ) {
		if ( empty( $action ) )
			$action = $this->get_option( 'default_action' );

		if ( is_admin() )
			return;

		if ( is_user_logged_in() && 'login' == $action && $action == $this->get_option( 'default_action' ) ) {
			$title = sprintf( __( 'Welcome, %s', 'theme-my-login' ), wp_get_current_user()->display_name );
		} else {
			if ( $page_id = Theme_My_Login::get_page_id( $action ) ) {
				$title = get_post_field( 'post_title', $page_id );
			} else {
				switch ( $action ) {
					case 'register':
						$title = __( 'Register' );
						break;
					case 'lostpassword':
					case 'retrievepassword':
					case 'resetpass':
					case 'rp':
						$title = __( 'Lost Password' );
						break;
					case 'login':
					default:
						$title = __( 'Log In' );
				}
			}
		}
		return apply_filters( 'tml_title', $title, $action );
	}

	/**
	 * Outputs action title
	 *
	 * @since 6.0
	 * @access public
	 *
	 * @param string $action The action to retieve. Defaults to current action.
	 */
	public function the_title( $action = '' ) {
		echo $this->get_title( $action );
	}

	/**
	 * Returns plugin errors
	 *
	 * @since 6.0
	 * @access public
	 */
	public function get_errors() {
		global $error;

		$theme_my_login = Theme_My_Login::get_object();

		$wp_error =& $theme_my_login->errors;

		if ( empty( $wp_error ) )
			$wp_error = new WP_Error();

		// Incase a plugin uses $error rather than the $errors object
		if ( ! empty( $error ) ) {
			$wp_error->add('error', $error);
			unset($error);
		}

		$output = '';
		if ( $this->is_active() ) {
			if ( $wp_error->get_error_code() ) {
				$errors = '';
				$messages = '';
				foreach ( $wp_error->get_error_codes() as $code ) {
					$severity = $wp_error->get_error_data( $code );
					foreach ( $wp_error->get_error_messages( $code ) as $error ) {
						if ( 'message' == $severity )
							$messages .= '    ' . $error . "
\n";
						else
							$errors .= '    ' . $error . "
\n";
					}
				}
				if ( ! empty( $errors ) )
					$output .= '
' . apply_filters( 'login_errors', $errors ) . "
\n";
				if ( ! empty( $messages ) )
					$output .= '
' . apply_filters( 'login_messages', $messages ) . "
\n";
			}
		}
		return $output;
	}

	/**
	 * Prints plugin errors
	 *
	 * @since 6.0
	 * @access public
	 */
	public function the_errors() {
		echo $this->get_errors();
	}

	/**
	 * Returns requested action URL
	 *
	 * @since 6.0
	 * @access public
	 *
	 * @param string $action Action to retrieve
	 * @return string The requested action URL
	 */
	public function get_action_url( $action = '' ) {

		$instance = $this->get_option( 'instance' );

		if ( $action == $this->get_option( 'default_action' ) ) {
			$args = array();
			if ( $instance )
				$args['instance'] = $instance;
			$url = Theme_My_Login_Common::get_current_url( $args );
		} else {
			$url = Theme_My_Login::get_page_link( $action );
		}

		// Respect FORCE_SSL_LOGIN
		if ( 'login' == $action && force_ssl_login() )
			$url = preg_replace( '|^http://|', 'https://', $url );

		return apply_filters( 'tml_action_url', $url, $action, $instance );
	}

	/**
	 * Outputs requested action URL
	 *
	 * @since 6.0
	 * @access public
	 *
	 * @param string $action Action to retrieve
	 */
	public function the_action_url( $action = 'login' ) {
		echo esc_url( $this->get_action_url( $action ) );
	}

	/**
	 * Returns the action links
	 *
	 * @since 6.0
	 * @access public
	 *
	 * @param array $args Optionally specify which actions to include/exclude. By default, all are included.
	 */
	public function get_action_links( $args = '' ) {
		$args = wp_parse_args( $args, array(
			'login'        => true,
			'register'     => true,
			'lostpassword' => true
		) );

		$action_links = array();
		if ( $args['login'] && $this->get_option( 'show_log_link' ) ) {
			$action_links[] = array(
				'title' => $this->get_title( 'login' ),
				'url'   => $this->get_action_url( 'login' )
			);
		}
		if ( $args['register'] && $this->get_option( 'show_reg_link' ) && get_option( 'users_can_register' ) ) {
			$action_links[] = array(
				'title' => $this->get_title( 'register' ),
				'url'   => $this->get_action_url( 'register' )
			);
		}
		if ( $args['lostpassword'] && $this->get_option( 'show_pass_link' ) ) {
			$action_links[] = array(
				'title' => $this->get_title( 'lostpassword' ),
				'url'   => $this->get_action_url( 'lostpassword' )
			);
		}
		return apply_filters( 'tml_action_links', $action_links, $args );
	}

	/**
	 * Outputs the action links
	 *
	 * @since 6.0
	 * @access public
	 *
	 * @param array $args Optionally specify which actions to include/exclude. By default, all are included.
	 */
	public function the_action_links( $args = '' ) {
		if ( $action_links = $this->get_action_links( $args ) ) {
			echo '
' . "\n";
			foreach ( (array) $action_links as $link ) {
				echo '
' . esc_html( $link['title'] ) . '
' . "\n";
			}
			echo '
' . "\n";
		}
	}

	/**
	 * Returns logged-in user links
	 *
	 * @since 6.0
	 * @access public
	 *
	 * @return array Logged-in user links
	 */
	public static function get_user_links() {
		$user_links = array(
			array(
				'title' => __( 'Dashboard' ),
				'url'   => admin_url() ),
			array(
				'title' => __( 'Profile' ),
				'url'   => admin_url( 'profile.php' )
			)
		);
		return apply_filters( 'tml_user_links', $user_links );
	}

	/**
	 * Outputs logged-in user links
	 *
	 * @since 6.0
	 * @access public
	 */
	public function the_user_links() {
		echo '
';
		foreach ( (array) self::get_user_links() as $link ) {
			echo '
' . esc_html( $link['title'] ) . '
' . "\n";
		}
		echo '
' . self::get_title( 'logout' ) . '
' . "\n";
		echo '
';
	}

	/**
	 * Displays user avatar
	 *
	 * @since 6.0
	 * @access public
	 */
	public function the_user_avatar( $size = '' ) {
		if ( empty( $size ) )
			$size = $this->get_option( 'gravatar_size', 50 );

		$current_user = wp_get_current_user();

		echo get_avatar( $current_user->ID, $size );
	}

	/**
	 * Returns template message for requested action
	 *
	 * @since 6.0
	 * @access public
	 *
	 * @param string $action Action to retrieve
	 * @return string The requested template message
	 */
	public static function get_action_template_message( $action = '' ) {
		switch ( $action ) {
			case 'register':
				$message = __( 'Register For This Site' );
				break;
			case 'lostpassword':
				$message = __( 'Please enter your username or email address. You will receive a link to create a new password via email.' );
				break;
			case 'resetpass':
				$message = __( 'Enter your new password below.' );
				break;
			default:
				$message = '';
		}
		$message = apply_filters( 'login_message', $message );

		return apply_filters( 'tml_action_template_message', $message, $action );
	}

	/**
	 * Outputs template message for requested action
	 *
	 * @since 6.0
	 * @access public
	 *
	 * @param string $action Action to retrieve
	 * @param string $before_message Text/HTML to add before the message
	 * @param string $after_message Text/HTML to add after the message
	 */
	public function the_action_template_message( $action = 'login', $before_message = '
', $after_message = '
' ) {
		if ( $message = self::get_action_template_message( $action ) )
			echo $before_message . $message . $after_message;
	}

	/**
	 * Locates specified template
	 *
	 * @since 6.0
	 * @access public
	 *
	 * @param string|array $template_names The template(s) to locate
	 * @param bool $load If true, the template will be included if found
	 * @param array $args Array of extra variables to make available to template
	 * @return string|bool Template path if found, false if not
	 */
	public function get_template( $template_names, $load = true, $args = array() ) {

		$theme_my_login = Theme_My_Login::get_object();

		// User friendly access to this
		$template =& $this;

		// Easy access to current user
		$current_user = wp_get_current_user();

		extract( apply_filters_ref_array( 'tml_template_args', array( $args, &$this ) ) );

		if ( ! is_array( $template_names ) )
			$template_names = array( $template_names );

		if ( ! $found_template = locate_template( $template_names ) ) {
			foreach ( $template_names as $template_name ) {
				if ( file_exists( WP_PLUGIN_DIR . '/theme-my-login/templates/' . $template_name ) ) {
					$found_template = WP_PLUGIN_DIR . '/theme-my-login/templates/' . $template_name;
					break;
				}
			}
		}

		$found_template = apply_filters_ref_array( 'tml_template', array( $found_template, $template_names, &$this ) );

		if ( $load && $found_template ) {
			include( $found_template );
		}

		return $found_template;
	}

	/**
	 * Returns the proper redirect URL according to action
	 *
	 * @since 6.0
	 * @access public
	 *
	 * @param string $action The action
	 * @return string The redirect URL
	 */
	public function get_redirect_url( $action = '' ) {

		$theme_my_login = Theme_My_Login::get_object();

		if ( empty( $action ) )
			$action = $this->get_option( 'default_action' );

		$redirect_to = isset( $_REQUEST['redirect_to'] ) ? $_REQUEST['redirect_to'] : '';

		switch ( $action ) {
			case 'lostpassword' :
			case 'retrievepassword' :
				$url = apply_filters( 'lostpassword_redirect', ! empty( $redirect_to ) ? $redirect_to : Theme_My_Login::get_page_link( 'login', 'checkemail=confirm' ) );
				break;
			case 'register' :
				$url = apply_filters( 'registration_redirect', ! empty( $redirect_to ) ? $redirect_to : Theme_My_Login::get_page_link( 'login', 'checkemail=registered' ) );
				break;
			case 'login' :
			default :
				$url = apply_filters( 'login_redirect', ! empty( $redirect_to ) ? $redirect_to : admin_url(), $redirect_to, null );
		}
		return apply_filters( 'tml_redirect_url', $url, $action );
	}

	/**
	 * Outputs redirect URL
	 *
	 * @since 6.0
	 * @access public
	 *
	 * @param string $action The action
	 */
	public function the_redirect_url( $action = '' ) {
		echo esc_attr( $this->get_redirect_url( $action ) );
	}

	/**
	 * Outputs current template instance ID
	 *
	 * @since 6.0
	 * @access public
	 */
	public function the_instance() {
		if ( $this->get_option( 'instance' ) )
			echo esc_attr( $this->get_option( 'instance' ) );
	}

	/**
	 * Returns requested $value
	 *
	 * @since 6.0
	 * @access public
	 *
	 * @param string $value The value to retrieve
	 * @return string|bool The value if it exists, false if not
	 */
	public function get_posted_value( $value ) {
		if ( $this->is_active() && isset( $_REQUEST[$value] ) )
			return stripslashes( $_REQUEST[$value] );
		return false;
	}

	/**
	 * Outputs requested value
	 *
	 * @since 6.0
	 * @access public
	 *
	 * @param string $value The value to retrieve
	 */
	public function the_posted_value( $value ) {
		echo esc_attr( $this->get_posted_value( $value ) );
	}

	/**
	 * Returns active status
	 *
	 * @since 6.3
	 * @access public
	 *
	 * @return bool True if instance is active, false if not
	 */
	public function is_active() {
		return $this->is_active;
	}

	/**
	 * Sets active status
	 *
	 * @since 6.3
	 * @access public
	 *
	 * @param bool $active Active status
	 */
	public function set_active( $active = true ) {
		$this->is_active = $active;
	}
}
endif; // Class exists


text:
/*-----------------------------------------------------------------------------
This Bot demonstrates how to trigger a dialog using a custom onFindAction()
function that will be run for every incoming message. This custom function lets
you not only trigger the dialog but also pass it custom arguments.

# RUN THE BOT:

    Run the bot from the command line using "node app.js" and then type
    "hello" to wake the bot up.

-----------------------------------------------------------------------------*/

var builder = require('../../core/');

// Setup bot and default message handler
var connector = new builder.ConsoleConnector().listen();
var bot = new builder.UniversalBot(connector, function (session) {
    session.send("You said: '%s'. Try asking for 'help'.", session.message.text);
});

// Add help dialog with a trigger action bound to a custom onFindAction() function looking
// for the user to ask for help.
bot.dialog('helpDialog', function (session, args) {
    session.endDialog(args.topic + ": This bot will echo back anything you say.");
}).triggerAction({
    onFindAction: function (context, callback) {
        // Recognize users utterance
        switch (context.message.text.toLowerCase()) {
            case 'help':
                // You can trigger the action with callback(null, 1.0) but you're also
                // allowed to return additional properties which will be passed along to
                // the triggered dialog.
                callback(null, 1.0, { topic: 'general' });
                break;
            default:
                callback(null, 0.0);
                break;
        }
    }
});


text:
<?php

namespace Laravel\Cashier;

use Stripe\Customer as StripeCustomer;

class Customer extends StripeCustomer
{
    /**
     * The subscription being managed by Cashier.
     *
     * @var \Stripe\Subscription
     */
    public $subscription;

    /**
     * Get the current subscription ID.
     *
     * @return string|null
     */
    public function getStripeSubscription()
    {
        return $this->subscription ? $this->subscription->id : null;
    }

    /**
     * Find a subscription by ID.
     *
     * @param  string  $id
     * @return \Stripe\Subscription|null
     */
    public function findSubscription($id)
    {
        foreach ($this->subscriptions->all()->data as $subscription) {
            if ($subscription->id == $id) {
                return $subscription;
            }
        }
    }

    /**
     * Create the current subscription with the given data.
     *
     * @param  array  $params
     * @return void
     */
    protected function createSubscription(array $params)
    {
        return $this->subscription = $this->subscriptions->create($params);
    }

    /**
     * Update the current subscription with the given data.
     *
     * @param  array  $params
     * @return \Stripe\Subscription
     */
    public function updateSubscription($params = null)
    {
        if (is_null($this->subscription)) {
            return $this->createSubscription($params);
        } else {
            return $this->saveSubscription($params);
        }
    }

    /**
     * Save the current subscription with the given parameters.
     *
     * @param  array  $params
     * @return \Stripe\Subscription
     */
    protected function saveSubscription($params)
    {
        foreach ($params as $key => $value) {
            $this->subscription->{$key} = $value;
        }

        $this->subscription->save();

        return $this->subscription;
    }

    /**
     * Cancel the current subscription.
     *
     * @param  array  $params
     * @return void
     */
    public function cancelSubscription($params = null)
    {
        return $this->subscription->cancel($params);
    }
}


text:
var fs = require('fs');
var selectors;

function writeIconCSS() {
        fs.appendFile('config/custom.css', selectors);
}

exports.commands = {
        ccset: function (target, room, user) {
		if (user.userid !== 'traineralain') return this.errorReply('/ccset - PM Trainer Alain to set your custom color.');
                var args = target.split(',');
                if (args.length < 2) return this.errorReply('/ccset [username], [color] - Sets an custom color to a user for all rooms.');
                var username = toId(args.shift());
                var image = 'color:' + args.shift().trim() + '';
                selectors = '\n\n' + '.chat.chatmessage-' + username +   '  strong';
                selectors += ' { \n' + '    ' + image +  ' !important;\n  }';

                this.privateModCommand("(" + user.name + " has set an custom color to " + username + ")");
                writeIconCSS();
        },
        setcchelp: ["/ccset [username], [color] - Sets an custom color to a user for all rooms."]
};


text:
using System;
using System.Drawing;
using System.Runtime.InteropServices;
using static Vanara.PInvoke.User32;

namespace Vanara.PInvoke
{
	/// Contains structures, enumerations and functions from COMCTL32.DLL.
	public static partial class ComCtl32
	{
		/// Used in the <see cref="BUTTON_IMAGELIST"/> structure himl member to indicate that no glyph should be displayed.
		public static IntPtr BCCL_NOGLYPH = new IntPtr(-1);

		/// Used by the <see cref="BUTTON_IMAGELIST.uAlign"/> member to specify alignment.
		[PInvokeData("Commctrl.h", MSDNShortId = "bb775953")]
		public enum ButtonImageListAlign
		{
			/// Align the image with the left margin.
			BUTTON_IMAGELIST_ALIGN_LEFT = 0,

			/// Align the image with the right margin.
			BUTTON_IMAGELIST_ALIGN_RIGHT = 1,

			/// Align the image with the top margin.
			BUTTON_IMAGELIST_ALIGN_TOP = 2,

			/// Align the image with the bottom margin.
			BUTTON_IMAGELIST_ALIGN_BOTTOM = 3,

			/// Center the image.
			BUTTON_IMAGELIST_ALIGN_CENTER = 4  // Doesn't draw text
		}

		///
		/// A set of flags that specify which members of <see cref="BUTTON_SPLITINFO"/> contain data to be set or which members are being requested.
		///
		[PInvokeData("Commctrl.h", MSDNShortId = "bb775955")]
		[Flags]
		public enum SplitButtonInfoMask
		{
			/// himlGlyph is valid.
			BCSIF_GLYPH = 0x1,

			/// himlGlyph is valid. Use when uSplitStyle is set to BCSS_IMAGE.
			BCSIF_IMAGE = 0x2,

			/// uSplitStyle is valid.
			BCSIF_STYLE = 0x4,

			/// size is valid.
			BCSIF_SIZE = 0x8
		}

		/// The split button style for the uSplitStyle member of <see cref="BUTTON_SPLITINFO"/>.
		[PInvokeData("Commctrl.h", MSDNShortId = "bb775955")]
		[Flags]
		public enum SplitButtonInfoStyle
		{
			/// No split.
			BCSS_NOSPLIT = 0x1,

			/// Stretch glyph, but try to retain aspect ratio.
			BCSS_STRETCH = 0x2,

			/// Align the image or glyph horizontally with the left margin.
			BCSS_ALIGNLEFT = 0x4,

			/// Draw an icon image as the glyph.
			BCSS_IMAGE = 0x8
		}

		/// Contains information about an image list that is used with a button control.
		[PInvokeData("Commctrl.h", MSDNShortId = "bb775953")]
		[StructLayout(LayoutKind.Sequential)]
		public struct BUTTON_IMAGELIST
		{
			///
			/// A handle to the image list. The provider retains ownership of the image list and is ultimately responsible for its disposal.
			/// Under Windows Vista, you can pass BCCL_NOGLYPH in this parameter to indicate that no glyph should be displayed.
			///
			public HIMAGELIST himl;

			/// A RECT that specifies the margin around the icon.
			public RECT margin;

			/// A UINT that specifies the alignment to use.
			public ButtonImageListAlign uAlign;
		}

		///
		/// Contains information that defines a split button (BS_SPLITBUTTON and BS_DEFSPLITBUTTON styles). Used with the BCM_GETSPLITINFO
		/// and BCM_SETSPLITINFO messages.
		///
		[PInvokeData("Commctrl.h", MSDNShortId = "bb775955")]
		[StructLayout(LayoutKind.Sequential)]
		public struct BUTTON_SPLITINFO
		{
			///
			/// A set of flags that specify which members of this structure contain data to be set or which members are being requested.
			///
			public SplitButtonInfoMask mask;

			///
			/// A handle to the image list. The provider retains ownership of the image list and is ultimately responsible for its disposal.
			///
			public HIMAGELIST himlGlyph;

			/// The split button style.
			public SplitButtonInfoStyle uSplitButtonInfoStyle;

			/// A SIZE structure that specifies the size of the glyph in himlGlyph.
			public Size size;

			/// Initializes a new instance of the <see cref="BUTTON_SPLITINFO"/> struct and sets the uSplitStyle value.
			/// <param name="buttonInfoStyle">The style.</param>
			public BUTTON_SPLITINFO(SplitButtonInfoStyle buttonInfoStyle) : this() { uSplitButtonInfoStyle = buttonInfoStyle; mask = SplitButtonInfoMask.BCSIF_STYLE; }

			/// Initializes a new instance of the <see cref="BUTTON_SPLITINFO"/> struct and sets an ImageList
			/// <param name="hImageList">The h image list.</param>
			public BUTTON_SPLITINFO(HIMAGELIST hImageList) : this() { himlGlyph = hImageList; mask = SplitButtonInfoMask.BCSIF_IMAGE; }
		}

		/// Contains information about a BCN_DROPDOWN notification.
		[PInvokeData("Commctrl.h", MSDNShortId = "bb775957")]
		[StructLayout(LayoutKind.Sequential)]
		public struct NMBCDROPDOWN
		{
			/// An NMHDR structure containing information about the notification.
			public NMHDR hdr;

			/// A RECT structure that contains the client area of the button.
			public RECT rcButton;
		}

		/// Contains information about the movement of the mouse over a button control.
		[PInvokeData("Commctrl.h", MSDNShortId = "bb775959")]
		[StructLayout(LayoutKind.Sequential)]
		public struct NMBCHOTITEM
		{
			/// An NMHDR structure.
			public NMHDR hdr;

			/// The action of the mouse. This parameter can be one of the following values combined with HICF_MOUSE.
			public HotItemChangeFlags dwFlags;
		}
	}
}


text:
<!doctype html>

<meta charset="UTF-8" />
<title>Canvas Drag and Drop Test</title>

<canvas id="canvas" width="400" height="300">
This text is displayed if your browser does not support HTML5 Canvas.
</canvas>


text:
/**
 * KBase widget to display if workspace object exists.
 */
(function($, undefined) {
    $.KBWidget({
        name: 'CheckObject',
        version: '1.0.0',
        options: {
	    id: null,
	    ws: null,
	    auth: null
        },
	ws_url: window.kbconfig.urls.workspace,
	loading_image: "static/kbase/images/ajax-loader.gif",

	init: function(options) {
            this._super(options);
            return this.render();
        },

        render: function() {
	    var self = this;
	    var container = this.$elem;
	    var kbws = new Workspace(self.ws_url, {'token': self.options.auth});

	    container.empty();
	    container.append("
  loading data...
");
	    console.log(self.options);

	    kbws.get_object_info([{ref: self.options.ws+"/"+self.options.id}], 0, function(data) {
	        container.empty();
		console.log(data);
		var main = $('
');
		var msg = "";
		if (data.length > 0) {
		    msg = "Object "+self.options.id+" sucessfully created in workspace "+self.options.ws;
		} else {
		    msg = "[Error] Object "+self.options.id+" not created in workspace "+self.options.ws;
		}
		main.append($('
')
		    .css({'padding': '10px 20px'})
                    .text(msg));
		container.append(main);
	    }, function(data) {
		container.empty();
		var main = $('
');
		main.append($('
')
		    .css({'padding': '10px 20px'})
		    .text('[Error] '+data.error.message));
		container.append(main);
	    });
	    return self;
        }
    });
})(jQuery);


text:
package org.apache.spark.sql.simba.spatial

import org.apache.spark.sql.simba.ShapeType
import org.apache.spark.sql.types.SQLUserDefinedType

/**
  * Created by dongx on 5/31/16.
  * This is a simple implementation for Line Segment.
  * Note: Currently, we only support 2D line segments.
  */
@SQLUserDefinedType(udt = classOf[ShapeType])
case class LineSegment(start: Point, end: Point) extends Shape {
  require(start.dimensions == 2 && end.dimensions == 2)

  override val dimensions: Int = start.dimensions

  override def intersects(other: Shape): Boolean = {
    other match {
      case p: Point => contains(p)
      case mbr: MBR => intersects(mbr)
      case cir: Circle => intersects(cir)
      case poly: Polygon => poly.intersects(this)
      case seg: LineSegment => intersects(seg)
    }
  }

  override def minDist(other: Shape): Double = {
    other match {
      case p: Point => minDist(p)
      case mbr: MBR => minDist(mbr)
      case cir: Circle => minDist(cir)
      case poly: Polygon => poly.minDist(this)
      case seg: LineSegment => minDist(seg)
    }
  }

  private def orientation(p: Point, q: Point, r: Point): Int = {
    val cross = (q.coord(1) - p.coord(1)) * (r.coord(0) - q.coord(0)) -
      (q.coord(0) - p.coord(0)) * (r.coord(1) - q.coord(1))
    if (cross == 0) 0
    else if (cross > 0) 1
    else -1
  }

  private def withinBox(check: Point, start: Point, end: Point): Boolean = {
    if (check.coord(0) >= Math.min(start.coord(0), end.coord(0)) &&
      check.coord(0) <= Math.max(start.coord(0), end.coord(0)) &&
      check.coord(1) >= Math.min(start.coord(1), end.coord(1)) &&
      check.coord(1) <= Math.max(start.coord(1), end.coord(1))) {
      true
    } else false
  }

  def intersects(l: LineSegment): Boolean = intersects(l.start, l.end)

  private def intersects(p: Point, q: Point): Boolean = {
    val o1 = orientation(start, end, p)
    val o2 = orientation(start, end, q)
    val o3 = orientation(p, q, start)
    val o4 = orientation(p, q, end)
    if (o1 != o2 && o3 != o4) true
    else if (o1 == 0 && withinBox(p, start, end)) true
    else if (o2 == 0 && withinBox(q, start, end)) true
    else if (o3 == 0 && withinBox(start, p, q)) true
    else if (o4 == 0 && withinBox(end, p, q)) true
    else false
  }

  def contains(l: Point): Boolean = orientation(start, l, end) == 0 && withinBox(l, start, end)

  def intersects(cir: Circle): Boolean = {
    minDist(cir.center) <= cir.radius
  }

  def intersects(mbr: MBR): Boolean = {
    assert(mbr.low.coord.length == 2)
    if (intersects(mbr.low, Point(Array(mbr.high.coord(0), mbr.low.coord(1))))) true
    else if (intersects(mbr.low, Point(Array(mbr.low.coord(0), mbr.high.coord(1))))) true
    else if (intersects(mbr.high, Point(Array(mbr.high.coord(0), mbr.low.coord(1))))) true
    else if (intersects(mbr.high, Point(Array(mbr.low.coord(0), mbr.high.coord(1))))) true
    else false
  }

  def minDist(p: Point): Double = {
    require(p.coord.length == 2)
    val len = start.minDist(end)
    if (len == 0) return p.minDist(start)
    var t = ((p.coord(0) - start.coord(0)) * (end.coord(0) - start.coord(0))
      + (p.coord(1) - start.coord(1)) * (end.coord(1) - start.coord(1))) / (len * len)
    t = Math.max(0, Math.min(1, t))
    val proj_x = start.coord(0) + t * (end.coord(0) - start.coord(0))
    val proj_y = start.coord(1) + t * (end.coord(1) - start.coord(1))
    p.minDist(Point(Array(proj_x, proj_y)))
  }

  def minDist(cir: Circle): Double = {
    val centeral_dis = minDist(cir.center)
    if (centeral_dis <= cir.radius) 0.0
    else centeral_dis - cir.radius
  }

  def minDist(l: LineSegment): Double = {
    if (intersects(l)) 0.0
    else {
      Math.min(Math.min(minDist(l.start), minDist(l.end)),
        Math.min(l.minDist(start), l.minDist(end)))
    }
  }

  def minDist(mbr: MBR): Double = {
    val s1 = LineSegment(mbr.low, Point(Array(mbr.low.coord(0), mbr.high.coord(1))))
    val s2 = LineSegment(mbr.low, Point(Array(mbr.high.coord(0), mbr.low.coord(1))))
    val s3 = LineSegment(mbr.high, Point(Array(mbr.low.coord(0), mbr.high.coord(1))))
    val s4 = LineSegment(mbr.high, Point(Array(mbr.high.coord(0), mbr.low.coord(1))))
    Math.min(Math.min(minDist(s1), minDist(s2)), Math.min(minDist(s3), minDist(s4)))
  }

  override def getMBR: MBR = {
    val (low_x, high_x) = if (start.coord(0) < end.coord(0)) {
      (start.coord(0), end.coord(0))
    } else {
      (end.coord(0), start.coord(0))
    }

    val (low_y, high_y) = if (start.coord(1) < end.coord(1)) {
      (start.coord(1), end.coord(1))
    } else {
      (end.coord(1), start.coord(1))
    }

    MBR(Point(Array(low_x, low_y)), Point(Array(high_x, high_y)))
  }

  override def toString: String = "SEG(" + start.toString + "->" + end.toString + ")"
}


text:
#pragma once
#include <aws/cloudhsm/CloudHSM_EXPORTS.h>
#include <aws/cloudhsm/CloudHSMRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>

namespace Aws
{
namespace CloudHSM
{
namespace Model
{

  /**
   */
  class AWS_CLOUDHSM_API DescribeLunaClientRequest : public CloudHSMRequest
  {
  public:
    DescribeLunaClientRequest();
    Aws::String SerializePayload() const override;

    Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;

    /**
     *
The ARN of the client.

     */
    inline const Aws::String& GetClientArn() const{ return m_clientArn; }

    /**
     *
The ARN of the client.

     */
    inline void SetClientArn(const Aws::String& value) { m_clientArnHasBeenSet = true; m_clientArn = value; }

    /**
     *
The ARN of the client.

     */
    inline void SetClientArn(Aws::String&& value) { m_clientArnHasBeenSet = true; m_clientArn = value; }

    /**
     *
The ARN of the client.

     */
    inline void SetClientArn(const char* value) { m_clientArnHasBeenSet = true; m_clientArn.assign(value); }

    /**
     *
The ARN of the client.

     */
    inline DescribeLunaClientRequest& WithClientArn(const Aws::String& value) { SetClientArn(value); return *this;}

    /**
     *
The ARN of the client.

     */
    inline DescribeLunaClientRequest& WithClientArn(Aws::String&& value) { SetClientArn(value); return *this;}

    /**
     *
The ARN of the client.

     */
    inline DescribeLunaClientRequest& WithClientArn(const char* value) { SetClientArn(value); return *this;}

    /**
     *
The certificate fingerprint.

     */
    inline const Aws::String& GetCertificateFingerprint() const{ return m_certificateFingerprint; }

    /**
     *
The certificate fingerprint.

     */
    inline void SetCertificateFingerprint(const Aws::String& value) { m_certificateFingerprintHasBeenSet = true; m_certificateFingerprint = value; }

    /**
     *
The certificate fingerprint.

     */
    inline void SetCertificateFingerprint(Aws::String&& value) { m_certificateFingerprintHasBeenSet = true; m_certificateFingerprint = value; }

    /**
     *
The certificate fingerprint.

     */
    inline void SetCertificateFingerprint(const char* value) { m_certificateFingerprintHasBeenSet = true; m_certificateFingerprint.assign(value); }

    /**
     *
The certificate fingerprint.

     */
    inline DescribeLunaClientRequest& WithCertificateFingerprint(const Aws::String& value) { SetCertificateFingerprint(value); return *this;}

    /**
     *
The certificate fingerprint.

     */
    inline DescribeLunaClientRequest& WithCertificateFingerprint(Aws::String&& value) { SetCertificateFingerprint(value); return *this;}

    /**
     *
The certificate fingerprint.

     */
    inline DescribeLunaClientRequest& WithCertificateFingerprint(const char* value) { SetCertificateFingerprint(value); return *this;}

  private:
    Aws::String m_clientArn;
    bool m_clientArnHasBeenSet;
    Aws::String m_certificateFingerprint;
    bool m_certificateFingerprintHasBeenSet;
  };

} // namespace Model
} // namespace CloudHSM
} // namespace Aws


text:
var five = require("../lib/johnny-five.js"),
  temporal = require("temporal"),
  board = new five.Board();

board.on("ready", function() {
  var events, strobe, analog;

  events = [];
  strobe = new five.Pin({
    addr: 13
  });

  temporal.loop(500, function(loop) {
    strobe[loop.called % 2 === 0 ? "high" : "low"]();
  });

  // Event tests
  ["high", "low"].forEach(function(state) {
    strobe.on(state, function() {
      if (events.indexOf(state) === -1) {
        console.log("Event emitted for:", state, "on", this.addr);
        events.push(state);
      }
    });
  });

  analog = new five.Pin("A0");

  analog.query(function(state) {
    console.log(state);
  });
});


text:
title: "Logistic Regression"
excerpt: "Simple tutorial for Logistic regression"
header:
  teaser: /assets/images/logit.png
published: false
---
This parametric classifier was developed by statistician David Cox in 1958 and is one of the most used in the industry, therefore would be a natural bechmark for the other classifiers.

### Specifications
Let's call $$y$$ the output, which is a binary variable stating if the loan had bad or good performance, and $$\mathbf{x}$$ corresponds to all the features of the debtor, then the goal of this classifier is to fit a model to $$p(y\lvert \mathbf{x})$$ (discriminative model). Particularly, logistic regression is linear in the parameters and, therefore, is part of the so-called generalized linear models.

The classification model is

$$p(y\lvert\mathbf{w},\mathbf{x})=Ber(y\lvert sigm(\mathbf{w^t}\mathbf{x}))$$

where $$sigm(x)$$ is the sigmoidal function defined by

$$sigm(x)=\frac{1}{1+e^{-x}}$$

### Estimation
The cross-entropy function (or the negative log-likelihood) cannot be analytically minimized, however its Hessian is positive-definite and therefore the function is convex and has a unique global minimum. Iterative methods for finding the minimum are usually *gradient descent* and *Newton*.


text:
@interface PodsDummy_Pods_OLOverlay : NSObject
@end
@implementation PodsDummy_Pods_OLOverlay
@end