text:
package gostr

import (
	"fmt"
	"math"
	"reflect"
	"strconv"
	"strings"
	"time"
)

// Evaluate return result as interface
func Evaluate(query string, values map[string]interface{}) interface{} {
	tokens := Parser(query)
	rpn := ToPostfix(tokens)
	outs := SolvePostfix(rpn, values)
	return outs
}

// ToPostfix convert parsed tokens to postfix i.e "2", "+", "4" => "2", "4", "+"
func ToPostfix(tokens Stack) Stack {
	ops := Stack{}
	output := Stack{}
	fun := Stack{}
	for _, v := range tokens.Values {
		switch v.Type {
		case Operator:
			if fun.Length() > 0 {
				tok := fun.Pop()
				tok.Value.Push(v)
				fun.Push(tok)
			} else {
				for !ops.IsEmpty() {
					val := v.Lexeme
					top := ops.Peek().Lexeme
					if (oprData[val].prec <= oprData[top].prec && oprData[val].rAsoc == false) || (oprData[val].prec < oprData[top].prec && oprData[val].rAsoc == true) {
						output.Push(ops.Pop())
						continue
					}
					break
				}
				ops.Push(v)
			}
		case LParen:
			if fun.Length() > 0 {
				tok := fun.Pop()
				tok.Value.Push(v)
				fun.Push(tok)
			} else {
				ops.Push(v)
			}
		case RParen:
			if fun.Length() > 0 {
				tok := fun.Pop()
				closeparen := 0
				for i := tok.Value.Length() - 1; i >= 0; i-- {
					if tok.Value.Values[i].Type == RParen {
						closeparen++
					}
					if tok.Value.Values[i].Type != LParen {
						continue
					} else if i > 0 && closeparen == 0 {
						tok.Value.Push(v)
						fun.Push(tok)
						break
					} else {
						tok.Value.Push(v)
						output.Push(tok)
						break
					}
				}
			} else {
				for i := ops.Length() - 1; i >= 0; i-- {
					if ops.Values[i].Type != LParen {
						output.Push(ops.Pop())
						continue
					} else {
						ops.Pop()
						break
					}
				}
			}
		case Function:
			if fun.Length() > 0 {
				tok := fun.Pop()
				tok.Value.Push(v)
				fun.Push(tok)
			} else {
				fun.Push(v)
			}
		default:
			if fun.Length() > 0 {
				tok := fun.Pop()
				tok.Value.Push(v)
				fun.Push(tok)
			} else {
				output.Push(v)
			}
		}
	}
	ops.EmptyInto(&output)
	return output
}

// SolvePostfix evaluates and returns the answer of the expression converted to postfix
func SolvePostfix(tokens Stack, vars map[string]interface{}) interface{} {
	stack := Stack{}
	for _, v := range tokens.Values {
		switch v.Type {
		case Number:
			stack.Push(v)
		case Function:
			stack = SolveFunction(v, vars, stack)
		case String:
			stack.Push(Token{String, v.Lexeme, Stack{}})
		case Constant:
			if v.Lexeme == "true" {
				stack.Push(Token{Boolean, strconv.FormatBool(true), Stack{}})
			} else {
				data := vars[v.Lexeme]
				if data == nil {
					stack.Push(Token{Number, "", Stack{}})
				} else {
					stack = PushStringToStack(data, stack)
				}
			}
		case Operator:
			if v.Lexeme == "=" || v.Lexeme == "<>" || v.Lexeme == ">" || v.Lexeme == "<" || v.Lexeme == ">=" || v.Lexeme == "<=" {
				var x, y interface{}
				y = stack.Pop().Lexeme
				x = stack.Pop().Lexeme
				fx := chkData[v.Lexeme].fx
				result := fx(x, y)
				stack.Push(Token{Boolean, strconv.FormatBool(result.(bool)), Stack{}})
			} else if v.Lexeme == "AND" || v.Lexeme == "OR" {
				var x, y bool
				y, _ = strconv.ParseBool(stack.Pop().Lexeme)
				x, _ = strconv.ParseBool(stack.Pop().Lexeme)
				fx := cmpData[v.Lexeme].fx
				result := fx(x, y)
				stack.Push(Token{Boolean, strconv.FormatBool(result.(bool)), Stack{}})
			} else {
				f := oprData[v.Lexeme].fx
				var x, y float64
				y, _ = strconv.ParseFloat(stack.Pop().Lexeme, 64)
				x, _ = strconv.ParseFloat(stack.Pop().Lexeme, 64)
				result := f(x, y)
				stack.Push(Token{Number, strconv.FormatFloat(result.(float64), 'f', -1, 64), Stack{}})
			}
		}
	}
	out := stack.Values[0].Lexeme
	return out
}

// SolveFunction returns the answer of a function found within an expression
func SolveFunction(v Token, vars map[string]interface{}, stack Stack) Stack {
	var value interface{}
	funTokens := v.Value
	if funTokens.Length() > 1 && v.Lexeme != "PV" {
		toks := ToPostfix(funTokens)
		if toks.Length() > 0 {
			value = SolvePostfix(toks, vars)
		}
	}
	if v.Lexeme == "LENGTH" {
		stack.Push(Token{Number, strconv.Itoa(len(value.(string))), Stack{}})
	} else if v.Lexeme == "ISBLANK" || v.Lexeme == "ISNULL" {
		val := false
		if len(strings.TrimSpace(value.(string))) == 0 {
			val = true
		}
		stack.Push(Token{Boolean, strconv.FormatBool(val), Stack{}})
	} else if v.Lexeme == "MONTH" {
		parsefloat, ok := strconv.ParseFloat(value.(string), 64)
		if ok != nil {
			fmt.Println("Error:", ok)
		}
		days := int(parsefloat)
		months := days * 12 / 365
		stack.Push(Token{Number, strconv.Itoa(months), Stack{}})
	} else if v.Lexeme == "DAY" {
		parsefloat, ok := strconv.ParseFloat(value.(string), 64)
		if ok != nil {
			fmt.Println("Error:", ok)
		}
		days := int(parsefloat)
		basedate, _ := time.Parse("01/02/2006", "01/01/1900")
		date := basedate.AddDate(0, 0, days)
		stack.Push(Token{Number, strconv.Itoa(date.Day()), Stack{}})
	} else if v.Lexeme == "NOT" {
		if value == "true" {
			stack.Push(Token{Boolean, strconv.FormatBool(false), Stack{}})
		} else {
			stack.Push(Token{Boolean, strconv.FormatBool(true), Stack{}})
		}
	} else if v.Lexeme == "ROUND" {
		var number, precision float64
		var ok error
		count := 0
		stk := Stack{}
		toks := ToPostfix(v.Value)
		for _, item := range toks.Values {
			if item.Lexeme != "," {
				stk.Push(item)
			} else {
				if count == 0 {
					val := SolvePostfix(stk, vars)
					number, ok = strconv.ParseFloat(val.(string), 64)
					if ok != nil {
						fmt.Println("Error:", ok)
					}
				} else if count == 1 {
					val := SolvePostfix(stk, vars)
					precision, ok = strconv.ParseFloat(val.(string), 64)
					if ok != nil {
						fmt.Println("Error:", ok)
					}
				}
				count++
				stk = Stack{}
			}
		}
		if count == 0 {
			val := SolvePostfix(stk, vars)
			number, ok = strconv.ParseFloat(val.(string), 64)
			if ok != nil {
				fmt.Println("Error:", ok)
			}
		} else if count == 1 {
			val := SolvePostfix(stk, vars)
			precision, ok = strconv.ParseFloat(val.(string), 64)
			if ok != nil {
				fmt.Println("Error:", ok)
			}
		}
		output := math.Pow(10, float64(precision))
		result := number*output + math.Copysign(0.5, number*output)
		result = float64(int(result)) / output
		str := strconv.FormatFloat(result, 'f', int(precision), 64)
		stack.Push(Token{Number, str, Stack{}})
	}
	return stack
}

// PushStringToStack push interface to stack and return resulted Stack
func PushStringToStack(data interface{}, stack Stack) Stack {
	switch reflect.TypeOf(data).Kind() {
	case reflect.Uint8:
		stack.Push(Token{Number, strconv.FormatUint(uint64(data.(uint8)), 10), Stack{}})
	case reflect.Uint16:
		stack.Push(Token{Number, strconv.FormatUint(uint64(data.(uint16)), 10), Stack{}})
	case reflect.Uint32:
		stack.Push(Token{Number, strconv.FormatUint(uint64(data.(uint32)), 10), Stack{}})
	case reflect.Uint64:
		stack.Push(Token{Number, strconv.FormatUint(data.(uint64), 10), Stack{}})
	case reflect.Uint:
		stack.Push(Token{Number, strconv.FormatUint(uint64(data.(uint)), 10), Stack{}})
	case reflect.Int8:
		stack.Push(Token{Number, strconv.FormatInt(int64(data.(int8)), 10), Stack{}})
	case reflect.Int16:
		stack.Push(Token{Number, strconv.FormatInt(int64(data.(int16)), 10), Stack{}})
	case reflect.Int32:
		stack.Push(Token{Number, strconv.FormatInt(int64(data.(int32)), 10), Stack{}})
	case reflect.Int64:
		stack.Push(Token{Number, strconv.FormatInt(data.(int64), 10), Stack{}})
	case reflect.Int:
		stack.Push(Token{Number, strconv.Itoa(data.(int)), Stack{}})
	case reflect.Float64:
		stack.Push(Token{Number, strconv.FormatFloat(data.(float64), 'f', 2, 64), Stack{}})
	case reflect.String:
		stack.Push(Token{Number, data.(string), Stack{}})
	case reflect.Bool:
		stack.Push(Token{Number, strconv.FormatBool(data.(bool)), Stack{}})
	}
	return stack
}


text:
- Optimalize code
- Add getValue() function
- Add events

## Fixed

- Usage text in README.md

## [0.3.1] - 2016-11-18

## Added

- Add setDisable() and setEnable() function
- Add isDisable option
- Changelog file
- Beautify in files

## Fixed

- Remove and fix .DS_Store
- Remove bump version (inconsistent)
- First interaction show bad effect (negativ outside)
    - Solved max-width
- Version numbers (on May 16 add 3.0 -> bower registered)

redpajama_set_name: RedPajamaGithub


text:
layout: page
title: Gold Tracker Global Conference
date: 2016-05-24
author: Sarah Fowler
tags: weekly links, java
status: published
summary: Class aptent taciti sociosqu ad litora torquent per.
banner: images/banner/leisure-02.jpg
booking:
  startDate: 04/13/2017
  endDate: 04/14/2017
  ctyhocn: LYHWLHX
  groupCode: GTGC
published: true
---
Vivamus ornare tortor vitae quam pharetra, ac euismod eros ultricies. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Pellentesque at diam in sapien consectetur consequat. Aenean at pretium nisi, eget vulputate sapien. Proin eget bibendum sapien. Donec turpis mi, commodo et arcu sit amet, malesuada laoreet arcu. Nulla et tristique urna. In hac habitasse platea dictumst. Donec vel lorem ut turpis rutrum ullamcorper a euismod nisi. Proin tempus convallis neque, sit amet porta libero laoreet nec. Nulla ac neque eu dolor consectetur auctor. Duis quis mauris eu neque condimentum blandit. Fusce condimentum sagittis lectus a sagittis. Sed lacinia eu neque eget rhoncus. Sed pellentesque magna sit amet magna feugiat, vel dignissim velit euismod.

* Etiam finibus risus in ante ornare, at blandit dui ultrices
* Integer lobortis dolor non scelerisque mollis
* Quisque vitae massa porta, suscipit turpis sed, consequat ligula
* Quisque ultrices mauris eget quam ultricies, vel aliquet nisl tincidunt.

Donec fermentum ullamcorper porta. Interdum et malesuada fames ac ante ipsum primis in faucibus. Nullam aliquam, enim a efficitur fringilla, nisi leo congue turpis, id semper diam tellus at erat. Maecenas massa velit, tempor sed elementum a, dictum vitae elit. Aliquam in placerat erat. Praesent consequat dignissim nunc. Integer ut placerat nunc. Nam finibus tellus eu ante viverra faucibus. Donec non leo ut ipsum euismod interdum pulvinar nec magna.


text:
namespace ArgentPonyWarcraftClient;

/// <summary>
/// A quest.
/// </summary>
public record Quest
{
    /// <summary>
    /// Gets links for the quest.
    /// </summary>
    [JsonPropertyName("_links")]
    public Links Links { get; init; }

    /// <summary>
    /// Gets the ID of the quest.
    /// </summary>
    [JsonPropertyName("id")]
    public int Id { get; init; }

    /// <summary>
    /// Gets the title of the quest.
    /// </summary>
    [JsonPropertyName("title")]
    public string Title { get; init; }

    /// <summary>
    /// Gets a reference to the area for the quest.
    /// </summary>
    [JsonPropertyName("area")]
    public QuestAreaReference Area { get; init; }

    /// <summary>
    /// Gets the description of the quest.
    /// </summary>
    [JsonPropertyName("description")]
    public string Description { get; init; }

    /// <summary>
    /// Gets the requirements for the quest.
    /// </summary>
    [JsonPropertyName("requirements")]
    public QuestRequirements Requirements { get; init; }

    /// <summary>
    /// Gets the quest rewards.
    /// </summary>
    [JsonPropertyName("rewards")]
    public QuestReward Rewards { get; init; }
}


text:
#import <UIKit/UIKit.h>

#import "ABI8_0_0RCTBridge.h"

typedef NS_ENUM(NSInteger, ABI8_0_0RCTTextEventType)
{
  ABI8_0_0RCTTextEventTypeFocus,
  ABI8_0_0RCTTextEventTypeBlur,
  ABI8_0_0RCTTextEventTypeChange,
  ABI8_0_0RCTTextEventTypeSubmit,
  ABI8_0_0RCTTextEventTypeEnd,
  ABI8_0_0RCTTextEventTypeKeyPress
};

/**
 * The threshold at which text inputs will start warning that the JS thread
 * has fallen behind (resulting in poor input performance, missed keys, etc.)
 */
ABI8_0_0RCT_EXTERN const NSInteger ABI8_0_0RCTTextUpdateLagWarningThreshold;

/**
 * Takes an input event name and normalizes it to the form that is required
 * by the events system (currently that means starting with the "top" prefix,
 * but that's an implementation detail that may change in future).
 */
ABI8_0_0RCT_EXTERN NSString *ABI8_0_0RCTNormalizeInputEventName(NSString *eventName);

@protocol ABI8_0_0RCTEvent <NSObject>
@required

@property (nonatomic, strong, readonly) NSNumber *viewTag;
@property (nonatomic, copy, readonly) NSString *eventName;
@property (nonatomic, assign, readonly) uint16_t coalescingKey;

- (BOOL)canCoalesce;
- (id<ABI8_0_0RCTEvent>)coalesceWithEvent:(id<ABI8_0_0RCTEvent>)newEvent;

// used directly for doing a JS call
+ (NSString *)moduleDotMethod;
// must contain only JSON compatible values
- (NSArray *)arguments;

@end

/**
 * This class wraps the -[ABI8_0_0RCTBridge enqueueJSCall:args:] method, and
 * provides some convenience methods for generating event calls.
 */
@interface ABI8_0_0RCTEventDispatcher : NSObject <ABI8_0_0RCTBridgeModule>

/**
 * Deprecated, do not use.
 */
- (void)sendAppEventWithName:(NSString *)name body:(id)body
__deprecated_msg("Subclass ABI8_0_0RCTEventEmitter instead");

/**
 * Deprecated, do not use.
 */
- (void)sendDeviceEventWithName:(NSString *)name body:(id)body
__deprecated_msg("Subclass ABI8_0_0RCTEventEmitter instead");

/**
 * Deprecated, do not use.
 */
- (void)sendInputEventWithName:(NSString *)name body:(NSDictionary *)body
__deprecated_msg("Use ABI8_0_0RCTDirectEventBlock or ABI8_0_0RCTBubblingEventBlock instead");

/**
 * Send a text input/focus event. For internal use only.
 */
- (void)sendTextEventWithType:(ABI8_0_0RCTTextEventType)type
                     ReactABI8_0_0Tag:(NSNumber *)ReactABI8_0_0Tag
                         text:(NSString *)text
                          key:(NSString *)key
                   eventCount:(NSInteger)eventCount;

/**
 * Send a pre-prepared event object.
 *
 * Events are sent to JS as soon as the thread is free to process them.
 * If an event can be coalesced and there is another compatible event waiting, the coalescing will happen immediately.
 */
- (void)sendEvent:(id<ABI8_0_0RCTEvent>)event;

@end

@interface ABI8_0_0RCTBridge (ABI8_0_0RCTEventDispatcher)

- (ABI8_0_0RCTEventDispatcher *)eventDispatcher;

@end


text:
package com.nobigsoftware.dfalex;

/**
 * Functional interface that provides the replacement values for strings in a search+replace operation
 * of patterns found in a string.
 */
public interface StringReplacement
{
    /**
     * This will be called for each instance of each pattern found
     *
     * @param dest  The replacement text for the matching substring should be written here
     * @param src   The string being searched, or the part of the stream being searched that contains the current match
     * @param startPos  the start index of the current match in src
     * @param endPos    the end index of the current match in src
     * @return if this is >0, then it is the position in the source string at which to continue processing after
     *      replacement.  If you set this <= startPos, an IndexOutOfBoundsException will be thrown to
     *      abort the infinite loop that would result.  Almost always return 0.
     */
    int apply(SafeAppendable dest, CharSequence src, int startPos, int endPos);
}


text:
import React from 'react';
import { Timeline, Bookmark, Marker } from '../src/index';

export default class Demo extends React.Component {
  constructor(props) {
    super(props);
    this.state = {
      progress: 50
    };

    this.increment = this.increment.bind(this);
    this.progressClick = this.progressClick.bind(this);
  }

  componentDidMount() {
    this.interval = setInterval(() => {
      this.increment();
    }, 1000);
  }

  componentWillUnmount() {
    clearInterval(this.interval);
  }

  increment() {
    const progress = this.state.progress > 100 ? 0 : (this.state.progress + 1);
    this.setState({
      progress
    });
  }

  progressClick(progress) {
    this.setState({
      progress
    });
  }

  render() {
    return (
      <Timeline
        height={300}
        onSelect={this.progressClick}
        progress={this.state.progress}
      >
        <Bookmark onSelect={this.progressClick} progress={20}>
          Hi there 20%
        </Bookmark>
        <Marker progress={50} />
        <Bookmark onSelect={this.progressClick} progress={55}>
          Hi there 55%
        </Bookmark>
        <Bookmark onSelect={this.progressClick} progress={75}>
          Hi there 75%
        </Bookmark>
      </Timeline>
    );
  }
}


text:
package desmoj.core.simulator;

public abstract class EventAbstract extends Schedulable
{
	/**
	 * The realTime deadline for this event in nanoseconds. In case of a
	 * real-time execution (i. e. the execution speed rate is set to a positive
	 * value) the Scheduler will produce a warning message if a deadline is
	 * missed.
	 */
	private long _realTimeConstraint;

	/**
	 * The number of entities is saved here.
	 */
	protected long numberOfEntities;

	/**
     * The scheduling priority of the event.
     */
    private int _mySchedulingPriority;

	/**
	 * Creates a new event of the given model, with the given name and trace
	 * option.
	 *
	 * @param name
	 *            java.lang.String : The name of this event
	 * @param owner
	 *            Model : The model this event is associated to
	 * @param showInTrace
	 *            boolean : Flag for showing event in trace-files. Set it to
	 *            true if event should show up in trace. Set it to
	 *            false if event should not be shown in trace.
	 */
	public EventAbstract(Model owner, String name, boolean showInTrace)
	{

		super(owner, name, showInTrace);
		numberOfEntities = 0;
		_mySchedulingPriority = 0;

	}

	/**
	 * Tests if this event actually is an external event which is not used for
	 * modelling but to control the experiment to act at certain points of
	 * simulation time. External events must not be connected to an entity.
	 *
	 * @return boolean : Is true if this is an instance of class
	 *         ExternalEvent,false otherwise
	 */
	public boolean isExternal() {

		return (this instanceof ExternalEvent);

	}

	/**Returns the realTime deadline for this event (in nanoseconds). In case of a
	 * real-time execution (i. e. the execution speed rate is set to a positive
	 * value) the Scheduler will produce a warning message if a deadline is
	 * missed.
	 *
	 * @return the realTimeConstraint in nanoseconds
	 */
	public long getRealTimeConstraint() {
		return _realTimeConstraint;
	}

	/**Returns the realTime deadline for this event (in nanoseconds). In case of a
	 * real-time execution (i. e. the execution speed rate is set to a positive
	 * value) the Scheduler will produce a warning message if a deadline is
	 * missed.
	 *
	 * @return the realTimeConstraint in nanoseconds
	 */
	public long getNumberOfEntities()
	{
		return numberOfEntities;
	}

	/**Sets the realTime deadline for this event (in nanoseconds). In case of a
	 * real-time execution (i. e. the execution speed rate is set to a positive
	 * value) the Scheduler will produce a warning message if a deadline is
	 * missed.
	 *
	 * @param realTimeConstraint the realTimeConstraint in nanoseconds to set
	 */
	public void setRealTimeConstraint(long realTimeConstraint) {
		this._realTimeConstraint = realTimeConstraint;
	}

	/**
	 * Utility method to generate trace output for scheduling this event (internal use only).
	 *
	 * @param who1 the first entity scheduled with this event (or null if not applicable)
	 * @param who2 the second entity scheduled with this event (or null if not applicable)
	 * @param who3 the third entity scheduled with this event (or null if not applicable)
	 * @param after the Schedulable after which this event is scheduled (or null if not applicable)
	 * @param before the Schedulable before which this event is scheduled (or null if not applicable)
	 * @param at the TimeInstant at which this event is scheduled
	 * @param remark optional further comments (or null if not applicable)
	 */
	protected void generateTraceForScheduling(Entity who1, Entity who2, Entity who3, Schedulable after, Schedulable before, TimeInstant at, String remark) {

	    if (currentlySendTraceNotes()) {

            StringBuilder trace = new StringBuilder("schedules '" + getName() + "'");
            if (who1 != null) {
                String who1alias = (who1 == currentEntity() && who2 == null && who3 == null? "itself" : "'" + who1.getName() + "'");
                trace.append(" of " + who1alias);
                if (who2 != null) {
                    trace.append(who3 == null ? " and '" + who2.getName() + "'" : ", '" + who2.getName() + "'");
                    if (who3 != null) {
                        trace.append(" and '" + who3.getName() + "'");
                    }
                }
            }

            if (after != null) {
                String afterAlias = (after == currentEntity() ? "itself" : "'" + after.getName() + "'");
                trace.append(" after " + afterAlias);
            } else if (before != null) {
                String beforeAlias = (before == currentEntity() ? "itself" : "'" + before.getName() + "'");
                trace.append(" before " + beforeAlias);
            }

            if (at == this.presentTime()) {
                trace.append(" now");
            } else {
                trace.append(" at " + at.toString());
            }

            if (remark != null && remark.length() > 0) {
                trace.append(". " + remark);
            }

            this.sendTraceNote(trace.toString());
        }
	}

    /**
     * Returns the event's scheduling priority. The scheduling priority is used
     * to determine which event to execute first if two or more events are scheduled
     * at the same instant. The default priority is zero.
     * Higher priorities are positive, lower priorities negative.
     *
     * @return int : The events's priority
     */
    public int getSchedulingPriority() {

        return _mySchedulingPriority;

    }

    /**
     * Sets the entity's scheduling priority to a given integer value. The default
     * priority (unless assigned otherwise) is zero.
     * Negative priorities are lower, positive priorities are higher.
     * All values should be inside the range defined by Java's integral
     * integer data type [-2147483648, +2147483647].
     *
     * An event's scheduling priority it used to determine which event is
     * executed first if scheduled for the same time instant.
     * Should the priority be the same, event execution depends on the
     * EventList in use, e.g. scheduled first is executed
     * first (EventTreeList) or random (RandomizingEventTreeList).
     *
     * @param newPriority
     *            int : The new scheduling priority value
     */
    public void setSchedulingPriority(int newPriority) {

        this._mySchedulingPriority = newPriority;

    }

    /**
     * Creates and returns a copy of this event.
     * Note that subclasses have to implement the interface
     * java.lang.Cloneable to actually use this method as
     * otherwise, a CloneNotSupportedException will be thrown.
     *
     * @return EventAbstract : A copy of this event.
     */
    protected EventAbstract clone() throws CloneNotSupportedException {
        return (EventAbstract) super.clone();
    }
}


text:
package com.citrix.netscaler.nitro.resource.config.network;

import com.citrix.netscaler.nitro.resource.base.*;
import com.citrix.netscaler.nitro.service.nitro_service;
import com.citrix.netscaler.nitro.service.options;
import com.citrix.netscaler.nitro.util.*;
import com.citrix.netscaler.nitro.exception.nitro_exception;

class rnat6_nsip6_binding_response extends base_response
{
	public rnat6_nsip6_binding[] rnat6_nsip6_binding;
}
/**
	* Binding class showing the nsip6 that can be bound to rnat6.
	*/

public class rnat6_nsip6_binding extends base_resource
{
	private String natip6;
	private String name;
	private Long __count;

	/**
	*

	* Name of the RNAT6 rule to which to bind NAT IPs.
 Minimum length =  1
	*

	*/
	public void set_name(String name) throws Exception{
		this.name = name;
	}

	/**
	*

	* Name of the RNAT6 rule to which to bind NAT IPs.
 Minimum length =  1
	*

	*/
	public String get_name() throws Exception {
		return this.name;
	}

	/**
	*

	* Nat IP Address.
 Minimum length =  1
	*

	*/
	public void set_natip6(String natip6) throws Exception{
		this.natip6 = natip6;
	}

	/**
	*

	* Nat IP Address.
 Minimum length =  1
	*

	*/
	public String get_natip6() throws Exception {
		return this.natip6;
	}

	/**
	*

	* converts nitro response into object and returns the object array in case of get request.
	*

	*/
	protected base_resource[] get_nitro_response(nitro_service service, String response) throws Exception{
		rnat6_nsip6_binding_response result = (rnat6_nsip6_binding_response) service.get_payload_formatter().string_to_resource(rnat6_nsip6_binding_response.class, response);
		if(result.errorcode != 0) {
			if (result.errorcode == 444) {
				service.clear_session();
			}
			if(result.severity != null)
			{
				if (result.severity.equals("ERROR"))
					throw new nitro_exception(result.message,result.errorcode);
			}
			else
			{
				throw new nitro_exception(result.message,result.errorcode);
			}
		}
		return result.rnat6_nsip6_binding;
	}

	/**
	*

	* Returns the value of object identifier argument
	*

	*/

	protected String get_object_name() {
		return this.name;
	}

	public static base_response add(nitro_service client, rnat6_nsip6_binding resource) throws Exception {
		rnat6_nsip6_binding updateresource = new rnat6_nsip6_binding();
		updateresource.name = resource.name;
		updateresource.natip6 = resource.natip6;
		return updateresource.update_resource(client);
	}

	public static base_responses add(nitro_service client, rnat6_nsip6_binding resources[]) throws Exception {
		base_responses result = null;
		if (resources != null && resources.length > 0) {
			rnat6_nsip6_binding updateresources[] = new rnat6_nsip6_binding[resources.length];
			for (int i=0;i<resources.length;i++){
				updateresources[i] = new rnat6_nsip6_binding();
				updateresources[i].name = resources[i].name;
				updateresources[i].natip6 = resources[i].natip6;
			}
			result = update_bulk_request(client, updateresources);
		}
		return result;
	}

	public static base_response delete(nitro_service client, rnat6_nsip6_binding resource) throws Exception {
		rnat6_nsip6_binding deleteresource = new rnat6_nsip6_binding();
		deleteresource.name = resource.name;
		deleteresource.natip6 = resource.natip6;
		return deleteresource.delete_resource(client);
	}

	public static base_responses delete(nitro_service client, rnat6_nsip6_binding resources[]) throws Exception {
		base_responses result = null;
		if (resources != null && resources.length > 0) {
			rnat6_nsip6_binding deleteresources[] = new rnat6_nsip6_binding[resources.length];
			for (int i=0;i<resources.length;i++){
				deleteresources[i] = new rnat6_nsip6_binding();
				deleteresources[i].name = resources[i].name;
				deleteresources[i].natip6 = resources[i].natip6;
			}
			result = delete_bulk_request(client, deleteresources);
		}
		return result;
	}

	/**
	* Use this API to fetch rnat6_nsip6_binding resources of given name .
	*/
	public static rnat6_nsip6_binding[] get(nitro_service service, String name) throws Exception{
		rnat6_nsip6_binding obj = new rnat6_nsip6_binding();
		obj.set_name(name);
		rnat6_nsip6_binding response[] = (rnat6_nsip6_binding[]) obj.get_resources(service);
		return response;
	}

	/**
	* Use this API to fetch filtered set of rnat6_nsip6_binding resources.
	* filter string should be in JSON format.eg: "port:80,servicetype:HTTP".
	*/
	public static rnat6_nsip6_binding[] get_filtered(nitro_service service, String name, String filter) throws Exception{
		rnat6_nsip6_binding obj = new rnat6_nsip6_binding();
		obj.set_name(name);
		options option = new options();
		option.set_filter(filter);
		rnat6_nsip6_binding[] response = (rnat6_nsip6_binding[]) obj.getfiltered(service, option);
		return response;
	}

	/**
	* Use this API to fetch filtered set of rnat6_nsip6_binding resources.
	* set the filter parameter values in filtervalue object.
	*/
	public static rnat6_nsip6_binding[] get_filtered(nitro_service service, String name, filtervalue[] filter) throws Exception{
		rnat6_nsip6_binding obj = new rnat6_nsip6_binding();
		obj.set_name(name);
		options option = new options();
		option.set_filter(filter);
		rnat6_nsip6_binding[] response = (rnat6_nsip6_binding[]) obj.getfiltered(service, option);
		return response;
	}

	/**
	* Use this API to count rnat6_nsip6_binding resources configued on NetScaler.
	*/
	public static long count(nitro_service service, String name) throws Exception{
		rnat6_nsip6_binding obj = new rnat6_nsip6_binding();
		obj.set_name(name);
		options option = new options();
		option.set_count(true);
		rnat6_nsip6_binding response[] = (rnat6_nsip6_binding[]) obj.get_resources(service,option);
		if (response != null) {
			return response[0].__count;
		}
		return 0;
	}

	/**
	* Use this API to count the filtered set of rnat6_nsip6_binding resources.
	* filter string should be in JSON format.eg: "port:80,servicetype:HTTP".
	*/
	public static long count_filtered(nitro_service service, String name, String filter) throws Exception{
		rnat6_nsip6_binding obj = new rnat6_nsip6_binding();
		obj.set_name(name);
		options option = new options();
		option.set_count(true);
		option.set_filter(filter);
		rnat6_nsip6_binding[] response = (rnat6_nsip6_binding[]) obj.getfiltered(service, option);
		if (response != null) {
			return response[0].__count;
		}
		return 0;
	}

	/**
	* Use this API to count the filtered set of rnat6_nsip6_binding resources.
	* set the filter parameter values in filtervalue object.
	*/
	public static long count_filtered(nitro_service service, String name, filtervalue[] filter) throws Exception{
		rnat6_nsip6_binding obj = new rnat6_nsip6_binding();
		obj.set_name(name);
		options option = new options();
		option.set_count(true);
		option.set_filter(filter);
		rnat6_nsip6_binding[] response = (rnat6_nsip6_binding[]) obj.getfiltered(service, option);
		if (response != null) {
			return response[0].__count;
		}
		return 0;
	}

}


text:
namespace DLaB.Xrm.Entities
{

	[System.Runtime.Serialization.DataContractAttribute()]
	[System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "8.0.1.7297")]
	public enum ProductAssociation_ProductIsRequired
	{

		[System.Runtime.Serialization.EnumMemberAttribute()]
		Optional = 0,

		[System.Runtime.Serialization.EnumMemberAttribute()]
		Required = 1,
	}
}


text:
<?php

namespace GoIntegro\Raml;

/**
 * @see http://json-schema.org/documentation.html
 */
class JsonSchemaSpec
{
    const JSON_SCHEMA_SCHEMA_PATH = '@GoIntegroHateoasBundle/Resources/json-schemas/json-schema.schema.json';
}


text:
package com.intel.analytics.bigdl.nn.mkldnn

import com.intel.analytics.bigdl.nn.abstractnn.{Activity, AbstractModule}
import com.intel.analytics.bigdl.tensor.TensorNumericMath.TensorNumeric

import scala.reflect.ClassTag

/**
 * Identity just return the input to output.
 * It's useful in same parallel container to get an origin input.
 */
class Identity() extends MklDnnLayer {

  override def updateOutput(input: Activity): Activity = {
    output = input
    output
  }

  override def updateGradInput(input: Activity, gradOutput: Activity): Activity = {

    gradInput = gradOutput
    gradInput
  }

  override private[mkldnn] def initFwdPrimitives(inputs: Array[MemoryData], phase: Phase) = {
    _inputFormats = inputs
    _outputFormats = inputs
    (inputs, inputs)
  }

  override private[mkldnn] def initBwdPrimitives(grad: Array[MemoryData], phase: Phase) = {
    _gradOutputFormats = grad
    _gradOutputFormatsForWeight = grad
    _gradInputFormats = grad
    (grad, grad)
  }
}

object Identity {
  def apply[@specialized(Float, Double) T: ClassTag]()
    (implicit ev: TensorNumeric[T]) : Identity = {
    new Identity()
  }
}


text:
{% extends "base.html" %}

{% block title %}Sitemap{% endblock %}

{% block content %}

Sitemap

Base Pages

Home

About us

Events

Policies

Code of Conduct

Main FAQ

Attic Windows (other sites)

Resources

Members Directory

Member directory

{% if user.is_authenticated %}

My profile

{% endif %}

Accounts

{% if user.is_authenticated %}

Email

Account change password

Social account connections

Change password

Set password

Log out

{% else %}

Sign up

Log in

Reset password

{% endif %}

{% endblock %}