text:
//
//  FLButton.m
//  FishLamp-iOS-Lib
//
//  Created by Mike Fullerton on 3/21/12.
//  Copyright (c) 2013 GreenTongue Software LLC, Mike Fullerton.
//  The FishLamp Framework is released under the MIT License: http://fishlamp.com/license
//

#import "FLButton.h"
#import "FLRoundRectWidget.h"
#import "FLColorRange.h"
#import "FLTheme.h"

@interface FLButton ()
@end

@implementation FLButton

@synthesize backgroundWidget = _backgroundWidget;
@synthesize shapeWidget = _shapeWidget;
@synthesize onPress = _onPress;
@synthesize buttonColors = _colorizer;
@synthesize buttonStyle = _stylizer;
@synthesize buttonRole = _role;

- (FLWidget*) createShapeWidget {
    return nil;
}

- (void) highlight:(id) sender {
    _shapeWidget.highlighted = YES;
}

- (void) unhighlight:(id) sender {
    _shapeWidget.highlighted = NO;
}

- (void) setPressed:(id) sender {
    _shapeWidget.highlighted = NO;
    if(_onPress) {
        _onPress(self);
    }
}

//- (void) applyTheme:(FLTheme*) theme {
//    [super applyTheme:theme];
//    [theme setButtonColors:self];
//}

- (void) privateInit {
    self.wantsApplyTheme = YES;

    [self addTarget:self action:@selector(highlight:) forControlEvents:UIControlEventTouchDown];
    [self addTarget:self action:@selector(highlight:) forControlEvents:UIControlEventTouchDragInside];

    [self addTarget:self action:@selector(unhighlight:) forControlEvents:UIControlEventTouchUpOutside];
    [self addTarget:self action:@selector(unhighlight:) forControlEvents:UIControlEventTouchDragOutside];

    [self addTarget:self action:@selector(setPressed:) forControlEvents:UIControlEventTouchUpInside];

	[super setBackgroundColor:[UIColor clearColor]];

	self.backgroundWidget = [FLButtonBackgroundWidget buttonBackgroundWidget];
}

- (void) setAlpha:(CGFloat) alpha {
	[super setAlpha:alpha];
	self.backgroundWidget.alpha = alpha;
}

- (void) didMoveToSuperview {
	[super didMoveToSuperview];
	if(self.superview) {
		[self applyThemeIfNeeded];
	}
}

- (id)initWithCoder:(NSCoder *)aDecoder {
    [self privateInit];

    if ((self = [super initWithCoder:aDecoder])) {
	}

	return self;
}

- (id)initWithFrame:(CGRect)aRect {
	if ((self = [super initWithFrame: aRect])) {
		[self privateInit];
	}

	return self;
}

- (id) init {
    return [self initWithFrame:CGRectZero];
}

- (id) initWithTitle:(NSString*) title {
    return [self initWithTitle:title onPress:nil];
}

- (id) initWithTitle:(NSString*) title
             onPress:(FLButtonPress) onPress {

    self = [self init];
    if(self) {
        [self setTitle:title forState:UIControlStateNormal];
        self.onPress = onPress;
    }

    return self;
}

+ (FLButton*) button {
    return FLAutorelease([[[self class] alloc] initWithFrame:CGRectZero]);
}

+ (FLButton*) buttonWithTitle:(NSString*) title {
    return FLAutorelease([[[self class] alloc] initWithTitle:title]);
}

+ (FLButton*) buttonWithTitle:(NSString*) title
                      onPress:(FLButtonPress) onPress {
    return FLAutorelease([[[self class] alloc] initWithTitle:title onPress:onPress]);
}

- (void) dealloc {
    FLRelease(_stylizer);
    FLRelease(_colorizer);
    FLRelease(_onPress);
    FLRelease(_shapeWidget);
	FLRelease(_backgroundWidget);
	FLSuperDealloc();
}

- (void) layoutSubviews {

    if(_colorizer) {
        _colorizer(self);
    }

	_shapeWidget.frame = self.bounds;
    [_shapeWidget setNeedsLayout];

	[super layoutSubviews];
}

- (void) setBackgroundWidget:(FLButtonBackgroundWidget*) widget {
	if(_backgroundWidget) {
		[_backgroundWidget removeFromParent];
	}
	FLSetObjectWithRetain(_backgroundWidget, widget);
	_backgroundWidget.contentMode = FLRectLayoutFill;

	[self.shapeWidget addWidget:_backgroundWidget];
	[self setNeedsLayout];
}

- (void) setShapeWidget:(FLShapeWidget*) widget {
	if(_backgroundWidget) {
		[_backgroundWidget removeFromParent];
	}
	FLSetObjectWithRetain(_shapeWidget, widget);
	_shapeWidget.contentMode = FLRectLayoutFill;
    [self addWidget:_shapeWidget];

	if(_backgroundWidget) {
		[_shapeWidget insertWidget:_backgroundWidget atIndex:0];
	}

	[self setNeedsLayout];
}

- (void) drawRect:(CGRect) rect {
	[super drawRect:rect];
    [_shapeWidget drawWidget:rect];
}

- (void) setDarkText {
    [self setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
    [self setTitleShadowColor:[UIColor whiteColor] forState:UIControlStateNormal];

    [self setTitleColor:[UIColor whiteColor] forState:UIControlStateHighlighted];
    [self setTitleShadowColor:[UIColor grayColor] forState:UIControlStateHighlighted];

    [self setTitleColor:[UIColor grayColor] forState:UIControlStateDisabled];
    [self setTitleShadowColor:[UIColor blackColor] forState:UIControlStateDisabled];
}

- (void) setLightText {
    [self setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
    [self setTitleShadowColor:[UIColor grayColor] forState:UIControlStateNormal];

    [self setTitleColor:[UIColor whiteColor] forState:UIControlStateHighlighted];
    [self setTitleShadowColor:[UIColor grayColor] forState:UIControlStateHighlighted];

    [self setTitleColor:[UIColor grayColor] forState:UIControlStateDisabled];
    [self setTitleShadowColor:[UIColor blackColor] forState:UIControlStateDisabled];
}

- (void) autoSetTextColor {

    if(self.backgroundColor.isLightColor) {
		[self setDarkText];
	}
	else {
		[self setLightText];
	}
}

- (void) setShapeToRoundRect:(CGFloat) cornerRadius {
	FLRoundRectWidget* widget = [FLRoundRectWidget widgetWithFrame:self.bounds];
    widget.cornerRadius = cornerRadius;
    [self setShapeWidget:widget];
}

- (void) setButtonColors:(FLButtonColorizer) colorizer {

    FLCopyObject_(_colorizer, colorizer);
    [self setNeedsLayout];
}

@end

FLButtonColorizer FLButtonColorRed = ^(FLButton* button)
{
	[[button backgroundWidget].topGradient setColorRange:[FLColorRange colorRange:FLColorCreateWithRGBColorValues(240,127,136,1.0) endColor:FLColorCreateWithRGBColorValues(231,53,66,1.0)] forControlState:UIControlStateNormal] ;
	[[button backgroundWidget].bottomGradient setColorRange:[FLColorRange colorRange:/*FLColorCreateWithRGBColorValues(225,1,17,1.0)*/ [UIColor fireEngineRed] endColor:FLColorCreateWithRGBColorValues(236,19,20,1.0)] forControlState:UIControlStateNormal];
	[button setLightText];
};
FLButtonColorizer FLButtonColorPaleBlue = ^(FLButton* button)
{
	[[button backgroundWidget].topGradient setColorRange:[FLColorRange colorRange:FLColorCreateWithRGBColorValues(132,156,187,1.0) endColor:FLColorCreateWithRGBColorValues(89,119,162,1.0)] forControlState:UIControlStateNormal];
	[[button backgroundWidget].bottomGradient setColorRange:[FLColorRange colorRange:FLColorCreateWithRGBColorValues(72,106,154,1.0) endColor:FLColorCreateWithRGBColorValues(74,108,155,1.0)] forControlState:UIControlStateNormal];
	[button setLightText];
};
FLButtonColorizer FLButtonColorBrightBlue = ^(FLButton* button)
{
	[[button backgroundWidget].topGradient setColorRange:[FLColorRange colorRange:FLColorCreateWithRGBColorValues(108,147,232,1.0) endColor:FLColorCreateWithRGBColorValues(57,112,224,1.0)] forControlState:UIControlStateNormal];
	[[button backgroundWidget].bottomGradient setColorRange:[FLColorRange colorRange:FLColorCreateWithRGBColorValues(34,96,221,1.0) endColor:FLColorCreateWithRGBColorValues(36,99,222,1.0)] forControlState:UIControlStateNormal];
	[button setLightText];
};
FLButtonColorizer FLButtonColorDarkGray = ^(FLButton* button)
{
	[[button backgroundWidget].topGradient setColorRange:[FLColorRange colorRange:FLColorCreateWithRGBColorValues(112,112,114,1.0) endColor:FLColorCreateWithRGBColorValues(55,55,57,1.0)] forControlState:UIControlStateNormal];
	[[button backgroundWidget].bottomGradient setColorRange:[FLColorRange colorRange:FLColorCreateWithRGBColorValues(33,33,35,1.0) endColor:FLColorCreateWithRGBColorValues(71,71,73,1.0)] forControlState:UIControlStateNormal];
	[button setLightText];
};

FLButtonColorizer FLButtonColorDarkGrayWithBlueTint = ^(FLButton* button)
{
	[[button backgroundWidget].topGradient setColorRange:[FLColorRange colorRange:FLColorCreateWithRGBColorValues(106,112,118,1.0) endColor:FLColorCreateWithRGBColorValues(55,63,71,1.0)] forControlState:UIControlStateNormal];
	[[button backgroundWidget].bottomGradient setColorRange:[FLColorRange colorRange:FLColorCreateWithRGBColorValues(43,50,59,1.0) endColor:FLColorCreateWithRGBColorValues(65,71,80,1.0)] forControlState:UIControlStateNormal];
	[button setLightText];
};
FLButtonColorizer FLButtonColorBlack = ^(FLButton* button)
{
	[[button backgroundWidget].topGradient setColorRange:[FLColorRange colorRange:FLColorCreateWithRGBColorValues(112,112,112,1.0) endColor:FLColorCreateWithRGBColorValues(54,54,54,1.0)] forControlState:UIControlStateNormal];
	[[button backgroundWidget].bottomGradient setColorRange:[FLColorRange colorRange:[UIColor blackColor] endColor:[UIColor blackColor]] forControlState:UIControlStateNormal];
	[button setLightText];
};

FLButtonColorizer FLButtonColorGray = ^(FLButton* button)
{
	[[button backgroundWidget].topGradient setColorRange:[FLColorRange colorRange:FLColorCreateWithRGBColorValues(112,112,114,1.0) endColor:FLColorCreateWithRGBColorValues(55,55,57,1.0)] forControlState:UIControlStateNormal];
	[[button backgroundWidget].bottomGradient setColorRange:[FLColorRange colorRange:FLColorCreateWithRGBColorValues(33,33,35,1.0) endColor:FLColorCreateWithRGBColorValues(71,71,73,1.0)] forControlState:UIControlStateNormal];
};

FLButtonColorizer FLButtonColorLightGray = ^(FLButton* button)
{
	[[button backgroundWidget].topGradient setColorRange:[FLColorRange colorRange:FLColorCreateWithRGBColorValues(112,112,114,1.0) endColor:FLColorCreateWithRGBColorValues(55,55,57,1.0)] forControlState:UIControlStateNormal];
	[[button backgroundWidget].bottomGradient setColorRange:[FLColorRange colorRange:FLColorCreateWithRGBColorValues(33,33,35,1.0) endColor:FLColorCreateWithRGBColorValues(71,71,73,1.0)] forControlState:UIControlStateNormal];
};


text:
package io.lettuce.core.dynamic.support;

import java.lang.reflect.Type;
import java.lang.reflect.TypeVariable;
import java.lang.reflect.WildcardType;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Map;

/**
 * {@link TypeInformation} for a {@link WildcardType}.
 */
class WildcardTypeInformation<S> extends TypeDiscoverer<S> {

    private final WildcardType type;

    /**
     * Creates a new {@link WildcardTypeInformation} for the given type, type variable map.
     *
     * @param type must not be {@code null}.
     * @param typeVariableMap must not be {@code null}.
     */
    protected WildcardTypeInformation(WildcardType type, Map<TypeVariable<?>, Type> typeVariableMap) {

        super(type, typeVariableMap);
        this.type = type;
    }

    @Override
    public boolean isAssignableFrom(TypeInformation<?> target) {

        for (TypeInformation<?> lowerBound : getLowerBounds()) {
            if (!target.isAssignableFrom(lowerBound)) {
                return false;
            }
        }

        for (TypeInformation<?> upperBound : getUpperBounds()) {
            if (!upperBound.isAssignableFrom(target)) {
                return false;
            }
        }

        return true;
    }

    public List<TypeInformation<?>> getUpperBounds() {
        return getBounds(type.getUpperBounds());
    }

    public List<TypeInformation<?>> getLowerBounds() {
        return getBounds(type.getLowerBounds());
    }

    private List<TypeInformation<?>> getBounds(Type[] bounds) {

        List<TypeInformation<?>> typeInformations = new ArrayList<>(bounds.length);

        Arrays.stream(bounds).map(this::createInfo).forEach(typeInformations::add);

        return typeInformations;
    }

}

redpajama_set_name: RedPajamaGithub


text:
package com.gemstone.gemfire.cache.query.internal;

import java.util.*;

import com.gemstone.gemfire.LogWriter;
import com.gemstone.gemfire.cache.*;
import com.gemstone.gemfire.cache.query.*;
import com.gemstone.gemfire.cache.query.internal.parse.*;
import com.gemstone.gemfire.cache.query.types.*;
import com.gemstone.gemfire.cache.query.internal.types.TypeUtils;
import com.gemstone.gemfire.internal.cache.GemFireCacheImpl;
import com.gemstone.gemfire.internal.i18n.LocalizedStrings;

import java.lang.reflect.Field;
import java.lang.reflect.Member;
import java.lang.reflect.Method;

/**
 * @author Eric Zoerner
 */
public class CompiledIteratorDef extends AbstractCompiledValue {

  private String name;
  private ObjectType elementType;
  private CompiledValue collectionExpr;

  /**
   * Creates a new instance of CompiledIteratorDef name and type can be null
   */
  public CompiledIteratorDef(String name, ObjectType elementType,
      CompiledValue collectionExpr) {
    this.name = name;
    this.elementType = elementType == null ? TypeUtils.OBJECT_TYPE
        : elementType;
    this.collectionExpr = collectionExpr;
  }

  @Override
  public List getChildren() {
    return Collections.singletonList(collectionExpr);
  }

  /**
   * Returns a RuntimeIterator (or null if evaluates to null or UNDEFINED); the
   * collection expr is evaluated lazily after dependencies are known
   */
  public Object evaluate(ExecutionContext context)
      throws FunctionDomainException, TypeMismatchException,
      NameResolutionException, QueryInvocationTargetException {
    throw new UnsupportedOperationException(LocalizedStrings.CompiledIteratorDef_NOT_TO_BE_EVALUATED_DIRECTLY.toLocalizedString());
  }

  public RuntimeIterator getRuntimeIterator(ExecutionContext context)
      throws TypeMismatchException, AmbiguousNameException, NameResolutionException {
    RuntimeIterator rIter = null;
    // check cached in context
    rIter = (RuntimeIterator) context.cacheGet(this);
    if (rIter != null) { return rIter; }
    ObjectType type = this.elementType;
    if (type.equals(TypeUtils.OBJECT_TYPE)) {
      // check to see if there's a typecast for this collection
      ObjectType typc = getCollectionElementTypeCast();
      if (typc != null) {
        type = typc;
      }
      else {
        // Try to determine better type
        // Now only works for CompiledPaths
        // Does not determine type of nested query
        if (!(this.collectionExpr instanceof CompiledSelect)) {
          type = computeElementType(context);
        }
      }
    }
    rIter = new RuntimeIterator(this, type);
    // Rahul : generate from clause should take care of bucket region substitution if
    // necessary and then set the definition.
    String fromClause = genFromClause(context);
    rIter.setDefinition(fromClause);
    /**
     * Asif : If the type of RunTimeIterator is still ObjectType & if the
     * RuneTimeIterator is independent of any iterator of the scopes less than
     * or equal to its own scope, we can evaluate the collection via
     * RuntimeIterator. This will initialize the Collection of RuntimeIterator ,
     * which is OK. The code in RuntimeIterator will be rectified such that the
     * ElementType of that RuntimeIterator is taken from the collection
     *
     */
    if (type.equals(TypeUtils.OBJECT_TYPE)
       	&& !this.isDependentOnAnyIteratorOfScopeLessThanItsOwn(context)) {
      //The current Iterator definition is independent , so lets evaluate
      // the collection
      try {
        rIter.evaluateCollection(context);
      }
      catch (QueryExecutionTimeoutException qet){
        throw qet;
      }
      catch (RegionNotFoundException re) {
        throw re;
      }
      catch (Exception e) {
        LogWriter log = context.getCache().getLogger();
        if (log.fineEnabled()) {
          log.fine("Exception while getting runtime iteratror.", e);
        }
        throw new TypeMismatchException(LocalizedStrings.CompiledIteratorDef_EXCEPTION_IN_EVALUATING_THE_COLLECTION_EXPRESSION_IN_GETRUNTIMEITERATOR_EVEN_THOUGH_THE_COLLECTION_IS_INDEPENDENT_OF_ANY_RUNTIMEITERATOR.toLocalizedString(), e);
      }
    }
    // cache in context
    context.cachePut(this, rIter);
    return rIter;
  }

  ObjectType getCollectionElementTypeCast() throws TypeMismatchException {
    ObjectType typ = this.collectionExpr.getTypecast();
    if (typ != null) {
      if (!(typ instanceof CollectionType)) { throw new TypeMismatchException(LocalizedStrings.CompiledIteratorDef_AN_ITERATOR_DEFINITION_MUST_BE_A_COLLECTION_TYPE_NOT_A_0.toLocalizedString(typ)); }
      if (typ instanceof MapType) { // we iterate over map entries
        return ((MapType) typ).getEntryType();
      }
      return ((CollectionType) typ).getElementType();
    }
    return null;
  }

  /** Evaluate just the collectionExpr */
  SelectResults evaluateCollection(ExecutionContext context)
      throws FunctionDomainException, TypeMismatchException,
      NameResolutionException, QueryInvocationTargetException {
    return evaluateCollection(context, null);
  }

  /**
   * Evaluate just the collectionExpr
   *
   * @param stopAtIter the RuntimeIterator associated with this iterator defn --
   *          don't use this or any subsequent runtime iterators to evaluate.
   */
  SelectResults evaluateCollection(ExecutionContext context,
      RuntimeIterator stopAtIter) throws FunctionDomainException,
      TypeMismatchException, NameResolutionException,
      QueryInvocationTargetException {
    Object coll;

    // Check if query execution on this thread is Canceled.
    // QueryMonitor.isQueryExecutionCanceled();

    context.currentScope().setLimit(stopAtIter);
    try {
      coll = this.collectionExpr.evaluate(context);
    }
    finally {
      context.currentScope().setLimit(null);
    }
    // if we don't have an elementType and there's a typecast, apply the
    // element type here
    if (TypeUtils.OBJECT_TYPE.equals(this.elementType)) {
      ObjectType elmTypc = getCollectionElementTypeCast();
      if (elmTypc != null) {
        this.elementType = elmTypc;
      }
    }

    // PR bucketRegion substitution should have already happened
    // at the expression evaluation level

    SelectResults sr = prepareIteratorDef(coll, this.elementType, context);
    return sr;
  }

  public int getType() {
    return OQLLexerTokenTypes.ITERATOR_DEF;
  }

  // for test purposes...
  public String getName() {
    return this.name;
  }

  public ObjectType getElementType() {
    return this.elementType;
  }

  public CompiledValue getCollectionExpr() {
    return this.collectionExpr;
  }

  public void setCollectionExpr(CompiledValue collectionExpr) {
    this.collectionExpr = collectionExpr;
  }

  /**
   * TODO:Asif : We need to implement the belwo method of computeDependencies
   * Once we come to implement changes for partitioned region querying, as in
   * that case if first iterator itself is a Select Query , then ideally we
   * cannot call that CompiledIteratorDef independent ( which will be the case
   * at present). When we use this commented function we will also need to take
   * care of correctly implementing the function isDependentOnCurrentScope etc
   * functions.
   *
   * public Set computeDependencies(ExecutionContext context) throws
   * TypeMismatchException, AmbiguousNameException { //Asif : If a
   * CompiledIteratorDef has a collection expression which boils down to //a
   * CompiledRegion or CompiledBindArgumnet , then its dependency is empty . In
   * such cases // we will assume that the current CompiledIteratorDef has a
   * dependency on itself. // This will be required once we start the changes
   * for partitionedRegion Querying //But when we are doing check of whether the
   * CompiledIteratorDef is dependent on its // own RuntimeIterator we will
   * still return false. Set set =
   * this.collectionExpr.computeDependencies(context); Set retSet = null;
   * if(set.isEmpty()){ retSet =
   * context.addDependency(this,this.getRuntimeIterator(context)); }else {
   * retSet = context.addDependencies(this, set); } return retSet; }
   */
  @Override
  public Set computeDependencies(ExecutionContext context)
      throws TypeMismatchException, AmbiguousNameException, NameResolutionException {
    return context.addDependencies(this, this.collectionExpr
        .computeDependencies(context));
  }

  // @todo ericz this method is overly complex, duplicating logic already
  // in query evaluation itself. It is overly complex ==> It will not be
  // necessary once we have full typing support.
  // There is a limitation here that it assumes that the collectionExpr is some
  // path on either a RuntimeIterator or a Region.
  private ObjectType computeElementType(ExecutionContext context)
      throws AmbiguousNameException
  {
    ObjectType type = PathUtils.computeElementTypeOfExpression(context,
        this.collectionExpr);
    // if it's a Map, we want the Entry type, not the value type
    if (type.isMapType()) {
      return ((MapType)type).getEntryType();
    }
    if (type.isCollectionType()) { // includes Regions and arrays
      return ((CollectionType)type).getElementType();
    }
    return type;
  }

  /**
   * Convert the given object to a SelectResults. Must be a collection of some
   * sort. The obj passed in must be unmodified, but the resulting SelectResults
   * may or may not be modifiable. Return null if obj is null or UNDEFINED.
   */
  private SelectResults prepareIteratorDef(Object obj, ObjectType elementType, ExecutionContext context)
      throws TypeMismatchException {
    if (obj == null) { return null; }
    if (obj == QueryService.UNDEFINED) { return null; }
    if (obj instanceof SelectResults) {
      // probably came from nested query or is a QRegion already from region
      // path
      SelectResults sr = (SelectResults) obj;
      // override the elementType if not Object.class (does not apply to
      // StructBags)
      if (!elementType.equals(TypeUtils.OBJECT_TYPE)) {
        sr.setElementType(elementType);
      }
      return sr;
    }
    if (obj instanceof Region) {
      // this can happen if region passed in as parameter
      QRegion qRegion = new QRegion((Region) obj, false, context);
      if (!elementType.equals(TypeUtils.OBJECT_TYPE)) {
        // override the valueConstraint, if any
        qRegion.setElementType(elementType);
      }
      return qRegion;
    }
    // if this is a domain collection, it should be unmodifiable
    // if obj is a Collection but not a SelectResults, it must be from the
    // domain, otherwise it would be a SelectResults.
    if (obj instanceof Collection) {
      // do not lose ordering and duplicate information,
      ResultsCollectionWrapper res = new ResultsCollectionWrapper(elementType,
          (Collection) obj);
      res.setModifiable(false);
      return res;
    }
    // Object[] is wrapped and considered a domain object so unmodifiable
    if (obj instanceof Object[]) {
      // the element type is specified in the array itself, unless we have
      // something more specific
      if (elementType.equals(TypeUtils.OBJECT_TYPE)) { // if we don't have
        // constraint info
        elementType = TypeUtils
            .getObjectType(obj.getClass().getComponentType());
      }
      // do not lose ordering and duplicate information,
      ResultsCollectionWrapper res = new ResultsCollectionWrapper(elementType,
          Arrays.asList((Object[]) obj));
      res.setModifiable(false);
      return res;
    }
    // @todo primitive arrays?
    if (obj instanceof Map) {
      if (elementType.equals(TypeUtils.OBJECT_TYPE)) { // if we don't have more
        // specific type info,
        // use Map.Entry
        elementType = TypeUtils.getObjectType(Map.Entry.class);
      }
      ResultsCollectionWrapper res = new ResultsCollectionWrapper(elementType,
          ((Map) obj).entrySet());
      res.setModifiable(false);
      return res;
    }
    else {
      throw new TypeMismatchException(LocalizedStrings.CompiledIteratorDef_THE_EXPRESSION_IN_THE_FROM_CLAUSE_OF_A_SELECT_STATEMENT_WAS_TYPE_0_WHICH_CANNOT_BE_INTERPRETED_AS_A_COLLECTION.toLocalizedString(obj.getClass().getName()));
    }
  }

  String genFromClause(ExecutionContext context) throws AmbiguousNameException,
      TypeMismatchException, NameResolutionException {
    StringBuffer sbuff = new StringBuffer();
    collectionExpr.generateCanonicalizedExpression(sbuff, context);
    return sbuff.toString();
  }

  boolean isDependentOnAnyIterator(ExecutionContext context) {
    return context.isDependentOnAnyIterator(this);
  }

  /**
   * Checks if the iterator in question is dependent on any other
   * RuntimeIterator of its own or lesser scope.
   *
   * @param context
   */
  boolean isDependentOnAnyIteratorOfScopeLessThanItsOwn(ExecutionContext context)
  {
    // Asif : Get the list of all iterators on which the colelction expression
    // is ultimately dependent on
    // Set indpRitrs = new HashSet();
    // context.computeUtlimateDependencies(this, indpRitrs);
    // Asif:If dependent on self then also assume it to be dependent
    boolean isDep = false;
    // Asif : Get the list of all iterators on which the colelction expression
    // is dependent on
    Set dependencySet = context.getDependencySet(this, true);
    Iterator itr = dependencySet.iterator();
    int currScope = context.currentScope().getScopeID();// context.getScopeCount();
    while (itr.hasNext()) {
      RuntimeIterator ritr = (RuntimeIterator)itr.next();
      if (ritr.getScopeID() <= currScope) {
        isDep = true;
        break;
      }
    }
    return isDep;

  }
}


text: Read http://diveintohtml5.info/geolocation.html


text:
/* file "useful_internal.h" */

/*  Copyright (c) 1994 Stanford University

    All rights reserved.

    This software is provided under the terms described in
    the "suif_copyright.h" include file. */

#include <suif_copyright.h>

/*  Internal header for SUIF library of miscellaneous useful routines */

#ifndef USEFUL_INTERNAL_H
#define USEFUL_INTERNAL_H

// Definition for local compilation. (jsimmons)
#define EXPORTED_BY_USEFUL extern

#include "inumbers.h"
#include "basic.h"
#include "walk.h"
#include "operand_operators.h"

/*----------------------------------------------------------------------*
    Beginning of Internal Functions
 *----------------------------------------------------------------------*/

extern void init_labinfo(void);
extern void init_linkinfo(void);
extern void init_make_instr_ops(void);
extern void init_transform(void);

/*----------------------------------------------------------------------*
    End of Internal Functions
 *----------------------------------------------------------------------*/

#endif /* USEFUL_INTERNAL_H */


text:
<?php
/* @var $this IterationController */
/* @var $model Iteration */

$this->breadcrumbs=array(
	'Итерации'=>array('index'),
	$model->getLabel(),
);

$this->menu=array(
	array('label'=>'Текущая', 'url'=>array('index')),
	array('label'=>'Create Iteration', 'url'=>array('create')),
	array('label'=>'Update Iteration', 'url'=>array('update', 'id'=>$model->id)),
	array('label'=>'Delete Iteration', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->id),'confirm'=>'Are you sure you want to delete this item?')),
);
?>

View <?php echo $model->getLabel(); ?>

<?php
$this->renderPartial('_viewWithTickets', ['model'=>$model]);
?>


text:
cask 'google-chrome' do
  version '62.0.3202.94'
  sha256 '86c3885a1341f5b2d90900746dddd555cf7a31dcfae629ccc731391ff278177a'

  url 'https://dl.google.com/chrome/mac/stable/GGRO/googlechrome.dmg'
  appcast 'https://omahaproxy.appspot.com/history?os=mac;channel=stable',
          checkpoint: '23bbc300523376a22704ff7f308ccd5812516ca460121673aa4306bda000e7db'
  name 'Google Chrome'
  homepage 'https://www.google.com/chrome/'

  auto_updates true
  conflicts_with cask: [
                         'google-chrome-beta',
                         'google-chrome-dev',
                       ]
  depends_on macos: '>= :mavericks'

  app 'Google Chrome.app'

  uninstall launchctl: [
                         'com.google.keystone.agent',
                         'com.google.keystone.daemon',
                       ]

  zap trash: [
               '/Library/Caches/com.google.SoftwareUpdate.*',
               '/Library/Google/Google Chrome Brand.plist',
               '/Library/Google/GoogleSoftwareUpdate',
               '~/Library/Application Support/Google/Chrome',
               '~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.google.chrome.app.*.sfl*',
               '~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.google.chrome.sfl*',
               '~/Library/Caches/Google/Chrome',
               '~/Library/Caches/com.google.Chrome',
               '~/Library/Caches/com.google.Chrome.helper.*',
               '~/Library/Caches/com.google.Keystone',
               '~/Library/Caches/com.google.Keystone.Agent',
               '~/Library/Caches/com.google.SoftwareUpdate',
               '~/Library/Google/Google Chrome Brand.plist',
               '~/Library/Google/GoogleSoftwareUpdate',
               '~/Library/LaunchAgents/com.google.keystone.agent.plist',
               '~/Library/Logs/GoogleSoftwareUpdateAgent.log',
               '~/Library/Preferences/com.google.Chrome.plist',
               '~/Library/Preferences/com.google.Keystone.Agent.plist',
               '~/Library/Saved Application State/com.google.Chrome.app.*.savedState',
               '~/Library/Saved Application State/com.google.Chrome.savedState',
               '~/Library/WebKit/com.google.Chrome',
             ],
      rmdir: [
               '/Library/Google',
               '~/Library/Application Support/Google',
               '~/Library/Caches/Google',
               '~/Library/Google',
             ]
end


text:
* cd - change directory
* ls - list files in directory
* git clone "url" - clone repository from remote on GitHub
* touch - create file
* git init - initialize version control in directory
* git add - stages file to be commited
* git status - checks stages of files
* git commit -m "commit msg" - Checkpoint changes
* git push origin master - send commited local files to remote
* git fetch (origin)(master) - Bring any changes from your remote to local machine
* git merge (origin)(master) - Merge files from remote to local machine.
* vi (visual editor) - Is used for when you have to find or change something fast within the command line.


text:
module Authorization
	module People
		module GroupAffiliation

			#Used in the controller

			def self.index?(tokenUser)
				return true
			end

			def self.show?(group_affiliation,tokenUser)
				return true
			end

			def self.new?(tokenUser)
				return true
			end

			def self.create?(tokenUser)
				#Only the owner or admin can create admin users
				return true
			end

			def self.update?(group_affiliation,tokenUser)
				#Only the owner or admin can upgrade users to admin users
				return true
			end

			def self.destroy?(group_affiliation,tokenUser)
				#Only the owner, admin or affiliations owner can destroy a group_affiliation
				return true
			end

			#Used in the serializer

			def self.include_id?(current_user,group_object,options)
	    	action = options[:url_options][:_recall][:action]
	    	controller = options[:url_options][:_recall][:controller]
				return true
			end

			def self.include_user_id?(current_user,group_object,options)
	    	action = options[:url_options][:_recall][:action]
	    	controller = options[:url_options][:_recall][:controller]
				return true
			end

			def self.include_group_id?(current_user,group_object,options)
	    	action = options[:url_options][:_recall][:action]
	    	controller = options[:url_options][:_recall][:controller]
				return true
			end

			def self.include_subscribed?(current_user,group_object,options)
	    	action = options[:url_options][:_recall][:action]
	    	controller = options[:url_options][:_recall][:controller]
				return true
			end

			def self.include_contributor?(current_user,group_object,options)
	    	action = options[:url_options][:_recall][:action]
	    	controller = options[:url_options][:_recall][:controller]
				return true
			end

			def self.include_admin?(current_user,group_object,options)
	    	action = options[:url_options][:_recall][:action]
	    	controller = options[:url_options][:_recall][:controller]
				return true
			end

			def self.include_owner?(current_user,group_object,options)
	    	action = options[:url_options][:_recall][:action]
	    	controller = options[:url_options][:_recall][:controller]
				return true
			end

			def self.include_member?(current_user,group_object,options)
	    	action = options[:url_options][:_recall][:action]
	    	controller = options[:url_options][:_recall][:controller]
				return true
			end

		end
	end
end


text:
<?php
namespace Phoenix\EloquentMeta\Test\Stubs;

use Illuminate\Database\Eloquent\Model;
use Phoenix\EloquentMeta\MetaTrait;

class Test extends Model
{
    use MetaTrait;

    public function modelMethod()
    {
        return 'this is a TestModel method';
    }
}


text:
<?php
require APPPATH . '/language/english/master.php';
$lang['publishednews'] = 'Published News';
$lang['newsthismonth'] = ' News this month';
$lang['user'] = 'Users';
$lang['active'] = ' Active';
$lang['category'] = 'Categories';
$lang['comment'] = 'Comments';
$lang['mailcontact'] = 'Mail Contact';
$lang['unread'] = 'Unread';
$lang['activity'] = 'Activities';
$lang['totay'] = 'Today';
$lang['news'] = 'News';
$lang['mostviewed'] = 'Most viewed';
$lang['latestnews'] = 'Latest news';
$lang['titlenews'] = 'News Title';
$lang['view'] = 'Views';
$lang['recentactivity'] = 'Recent activities';
$lang['someone'] = 'Someone';
$lang['ago'] = ' ago';
$lang['year'] = ' year';
$lang['month'] = ' month';
$lang['week'] = ' week';
$lang['day'] = ' day';
$lang['hour'] = ' hour';
$lang['minute'] = ' minute';
$lang['second'] = ' second';
$lang['asecondago'] = 'Just now';
$lang['historylogin'] = 'History login';
$lang['user'] = 'User';
$lang['group'] = 'Group';
$lang['time'] = 'Time';
$lang['browser'] = 'Browser';
$lang['os'] = 'OS';
$lang['page'] = 'Page';
$lang['siteanalytics'] = 'Site Analytics';
$lang['sessions'] = 'Session';
$lang['visits'] = 'Visits';
$lang['pageview'] = 'Pageview';
$lang['users'] = 'Users';
$lang['yesterday'] = 'Yesterday';
$lang['today'] = 'Today';
 ?>


text:
package cz.tmapy.android.trex;

import android.app.Application;

import org.acra.ACRA;
import org.acra.ReportField;
import org.acra.ReportingInteractionMode;
import org.acra.annotation.ReportsCrashes;

/**
 * Created by Kamil on 13. 8. 2015.
 */
@ReportsCrashes(
        mailTo = "kasvo@tmapy.cz",
        mode = ReportingInteractionMode.DIALOG,
        resDialogTitle = R.string.crash_dialog_title,
        resDialogText = R.string.crash_toast_text,
        resDialogIcon = android.R.drawable.ic_dialog_alert,
        customReportContent = {
                ReportField.APP_VERSION_CODE,
                ReportField.APP_VERSION_NAME,
                ReportField.ANDROID_VERSION,
                ReportField.PHONE_MODEL,
                ReportField.CUSTOM_DATA,
                ReportField.STACK_TRACE,
                ReportField.LOGCAT}
)
public class TRexApplication extends Application {
    @Override
    public void onCreate() {
        super.onCreate();
        // The following line triggers the initialization of ACRA
        ACRA.init(this);
    }
}


text:
namespace bbv.MvpSimple.Repositories
{
    using System;
    using System.Data.Entity;
    using System.Data.Entity.Infrastructure;

    public partial class NorthwindEntities : DbContext
    {
        public NorthwindEntities()
            : base("name=NorthwindEntities")
        {
        }

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            throw new UnintentionalCodeFirstException();
        }

        public virtual DbSet<Category> Categories { get; set; }
        public virtual DbSet<Customer> Customers { get; set; }
        public virtual DbSet<Employee> Employees { get; set; }
        public virtual DbSet<Order_Detail> Order_Details { get; set; }
        public virtual DbSet<Order> Orders { get; set; }
        public virtual DbSet<Product> Products { get; set; }
        public virtual DbSet<Shipper> Shippers { get; set; }
        public virtual DbSet<Supplier> Suppliers { get; set; }
    }
}


text:
package org.elasticsearch.search.aggregations.pipeline.bucketmetrics;

import org.elasticsearch.common.io.stream.StreamInput;
import org.elasticsearch.common.io.stream.StreamOutput;
import org.elasticsearch.common.xcontent.XContentBuilder;
import org.elasticsearch.search.DocValueFormat;
import org.elasticsearch.search.aggregations.AggregationStreams;
import org.elasticsearch.search.aggregations.InternalAggregation;
import org.elasticsearch.search.aggregations.metrics.InternalNumericMetricsAggregation;
import org.elasticsearch.search.aggregations.pipeline.PipelineAggregator;

import java.io.IOException;
import java.util.List;
import java.util.Map;

public class InternalBucketMetricValue extends InternalNumericMetricsAggregation.SingleValue {

    public final static Type TYPE = new Type("bucket_metric_value");

    public final static AggregationStreams.Stream STREAM = new AggregationStreams.Stream() {
        @Override
        public InternalBucketMetricValue readResult(StreamInput in) throws IOException {
            InternalBucketMetricValue result = new InternalBucketMetricValue();
            result.readFrom(in);
            return result;
        }
    };

    public static void registerStreams() {
        AggregationStreams.registerStream(STREAM, TYPE.stream());
    }

    private double value;

    private String[] keys;

    protected InternalBucketMetricValue() {
        super();
    }

    public InternalBucketMetricValue(String name, String[] keys, double value, DocValueFormat formatter,
            List<PipelineAggregator> pipelineAggregators, Map<String, Object> metaData) {
        super(name, pipelineAggregators, metaData);
        this.keys = keys;
        this.value = value;
        this.format = formatter;
    }

    @Override
    public Type type() {
        return TYPE;
    }

    @Override
    public double value() {
        return value;
    }

    public String[] keys() {
        return keys;
    }

    @Override
    public InternalAggregation doReduce(List<InternalAggregation> aggregations, ReduceContext reduceContext) {
        throw new UnsupportedOperationException("Not supported");
    }

    @Override
    public Object getProperty(List<String> path) {
        if (path.isEmpty()) {
            return this;
        } else if (path.size() == 1 && "value".equals(path.get(0))) {
            return value();
        } else if (path.size() == 1 && "keys".equals(path.get(0))) {
            return keys();
        } else {
            throw new IllegalArgumentException("path not supported for [" + getName() + "]: " + path);
        }
    }

    @Override
    protected void doReadFrom(StreamInput in) throws IOException {
        format = in.readValueFormat();
        value = in.readDouble();
        keys = in.readStringArray();
    }

    @Override
    protected void doWriteTo(StreamOutput out) throws IOException {
        out.writeValueFormat(format);
        out.writeDouble(value);
        out.writeStringArray(keys);
    }

    @Override
    public XContentBuilder doXContentBody(XContentBuilder builder, Params params) throws IOException {
        boolean hasValue = !Double.isInfinite(value);
        builder.field(CommonFields.VALUE, hasValue ? value : null);
        if (hasValue && format != DocValueFormat.RAW) {
            builder.field(CommonFields.VALUE_AS_STRING, format.format(value));
        }
        builder.startArray("keys");
        for (String key : keys) {
            builder.value(key);
        }
        builder.endArray();
        return builder;
    }

}


text:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Web;

namespace BullsAndCows.Models
{
    [DataContract]
    public class UserLoginModel
    {
        [DataMember(Name = "username")]
        public string Username { get; set; }

        [DataMember(Name = "authCode")]
        public string AuthCode { get; set; }
    }

    [DataContract]
    public class UserRegisterModel : UserLoginModel
    {
        [DataMember(Name = "nickname")]
        public string Nickname { get; set; }
    }

    [DataContract]
    public class UserScore
    {
        [DataMember(Name = "nickname")]
        public string Nickname { get; set; }

        [DataMember(Name = "score")]
        public decimal Score { get; set; }
    }

    [DataContract]
    public class UserLoggedModel
    {
        [DataMember(Name = "sessionKey")]
        public string SessionKey { get; set; }

        [DataMember(Name = "nickname")]
        public string Nickname { get; set; }
    }
}


text:
**[View the slide deck](http://nathanielw.github.io/E2D2-Presentation/)**

Short presentation on the work I completed over the 2014/15 summer at Waikato Uni.

Built using reveal.js and SCSS (with Bourbon).


text:
package com.amazonaws.services.cloudhsm.model.transform;

import java.io.ByteArrayInputStream;
import java.util.Collections;
import java.util.Map;
import java.util.List;
import java.util.regex.Pattern;

import com.amazonaws.AmazonClientException;
import com.amazonaws.Request;
import com.amazonaws.DefaultRequest;
import com.amazonaws.http.HttpMethodName;
import com.amazonaws.services.cloudhsm.model.*;
import com.amazonaws.transform.Marshaller;
import com.amazonaws.util.BinaryUtils;
import com.amazonaws.util.StringUtils;
import com.amazonaws.util.IdempotentUtils;
import com.amazonaws.util.StringInputStream;
import com.amazonaws.protocol.json.*;

/**
 * DeleteHapgRequest Marshaller
 */
public class DeleteHapgRequestMarshaller implements
        Marshaller<Request<DeleteHapgRequest>, DeleteHapgRequest> {

    private final SdkJsonProtocolFactory protocolFactory;

    public DeleteHapgRequestMarshaller(SdkJsonProtocolFactory protocolFactory) {
        this.protocolFactory = protocolFactory;
    }

    public Request<DeleteHapgRequest> marshall(
            DeleteHapgRequest deleteHapgRequest) {

        if (deleteHapgRequest == null) {
            throw new AmazonClientException(
                    "Invalid argument passed to marshall(...)");
        }

        Request<DeleteHapgRequest> request = new DefaultRequest<DeleteHapgRequest>(
                deleteHapgRequest, "AWSCloudHSM");
        request.addHeader("X-Amz-Target", "CloudHsmFrontendService.DeleteHapg");

        request.setHttpMethod(HttpMethodName.POST);

        request.setResourcePath("");

        try {
            final StructuredJsonGenerator jsonGenerator = protocolFactory
                    .createGenerator();

            jsonGenerator.writeStartObject();

            if (deleteHapgRequest.getHapgArn() != null) {
                jsonGenerator.writeFieldName("HapgArn").writeValue(
                        deleteHapgRequest.getHapgArn());
            }

            jsonGenerator.writeEndObject();

            byte[] content = jsonGenerator.getBytes();
            request.setContent(new ByteArrayInputStream(content));
            request.addHeader("Content-Length",
                    Integer.toString(content.length));
            request.addHeader("Content-Type", jsonGenerator.getContentType());
        } catch (Throwable t) {
            throw new AmazonClientException(
                    "Unable to marshall request to JSON: " + t.getMessage(), t);
        }

        return request;
    }

}


text:
/* Code generated by IfcQuery EXPRESS generator, www.ifcquery.com */
#pragma once
#include <vector>
#include <map>
#include <sstream>
#include <string>
#include "ifcpp/model/GlobalDefines.h"
#include "ifcpp/model/BasicTypes.h"
#include "ifcpp/model/BuildingObject.h"
#include "IfcRelDefines.h"
class IFCQUERY_EXPORT IfcPropertySetDefinition;
class IFCQUERY_EXPORT IfcPropertySetTemplate;
//ENTITY
class IFCQUERY_EXPORT IfcRelDefinesByTemplate : public IfcRelDefines
{
public:
	IfcRelDefinesByTemplate() = default;
	IfcRelDefinesByTemplate( int id );
	~IfcRelDefinesByTemplate() = default;
	virtual shared_ptr<BuildingObject> getDeepCopy( BuildingCopyOptions& options );
	virtual void getStepLine( std::stringstream& stream ) const;
	virtual void getStepParameter( std::stringstream& stream, bool is_select_type = false ) const;
	virtual void readStepArguments( const std::vector<std::wstring>& args, const std::map<int,shared_ptr<BuildingEntity> >& map );
	virtual void setInverseCounterparts( shared_ptr<BuildingEntity> ptr_self );
	virtual size_t getNumAttributes() { return 6; }
	virtual void getAttributes( std::vector<std::pair<std::string, shared_ptr<BuildingObject> > >& vec_attributes ) const;
	virtual void getAttributesInverse( std::vector<std::pair<std::string, shared_ptr<BuildingObject> > >& vec_attributes ) const;
	virtual void unlinkFromInverseCounterparts();
	virtual const char* className() const { return "IfcRelDefinesByTemplate"; }
	virtual const std::wstring toString() const;

	// IfcRoot -----------------------------------------------------------
	// attributes:
	//  shared_ptr<IfcGloballyUniqueId>						m_GlobalId;
	//  shared_ptr<IfcOwnerHistory>							m_OwnerHistory;				//optional
	//  shared_ptr<IfcLabel>								m_Name;						//optional
	//  shared_ptr<IfcText>									m_Description;				//optional

	// IfcRelationship -----------------------------------------------------------

	// IfcRelDefines -----------------------------------------------------------

	// IfcRelDefinesByTemplate -----------------------------------------------------------
	// attributes:
	std::vector<shared_ptr<IfcPropertySetDefinition> >	m_RelatedPropertySets;
	shared_ptr<IfcPropertySetTemplate>					m_RelatingTemplate;
};


text:
	  Agregar Foto

	{% for foto in fotos %}

{{ foto.file_name }}

          Borrar

	{% endfor %}


text:
The Heartbeat sensor is a utility to report the sensor_reporter uptime.
This reliable scheduled reporting could be used as a heartbeat and the messages can be used to see how long sensor_reporter has been online.
To detect if sensor_reporter is offline, the linked item on openHAB can use the [expire parameter](https://www.openhab.org/docs/configuration/items.html#parameter-expire), which can be set via 'add metadata > expiration timer' in the item settings.

## Dependencies

None.

## Parameters

Parameter | Required | Restrictions | Purpose
-|-|-|-
`Class` | X | `heartbeat.heartbeat.Heartbeat` |
`Connections` | X | dictionary of connectors | Defines where to publish the sensor status for each connection. This sensor has 2 outputs, see below. Look at connection readme's for 'Actuator / sensor relevant parameters' for details.
`Level` | | DEBUG, INFO, WARNING, ERROR | When provided, sets the logging level for the sensor.
`Poll` | X | Positive number in seconds | How often to publish the uptime.

## Outputs
The Heartbeat has 2 outputs which can be configured within the 'Connections' section (Look at connection readme's for 'Actuator / sensor relevant parameters' for details).

Output | Purpose
-|-
`FormatNumber` | Destination to publish the uptime in milliseconds. When using with the openHAB connection configure a number item.
`FormatString` | Destination to publish the formated uptime: `d 'days,' hh:mm:ss`. When using with the openHAB connection configure a string item.

## Example Config

```yaml
Logging:
    Syslog: yes
    Level: INFO

:Connection1:
    Class: openhab_rest.rest_conn.OpenhabREST
    Name: openHAB
    URL: http://localhost:8080
    RefreshItem: Test_Refresh

SensorHeartbeat:
    Class: heartbeat.heartbeat.Heartbeat
    Connections:
        openHAB:
            FormatNumber:
                Item: heartbeat_num
            FormatString:
                Item: heartbeat_str
    Poll: 60
```


text:
//  Copyright © 2019 650 Industries. All rights reserved.

#import <ABI42_0_0EXUpdates/ABI42_0_0EXUpdatesConfig.h>
#import <ABI42_0_0EXUpdates/ABI42_0_0EXUpdatesUpdate.h>

NS_ASSUME_NONNULL_BEGIN

typedef void (^ABI42_0_0EXUpdatesFileDownloaderSuccessBlock)(NSData *data, NSURLResponse *response);
typedef void (^ABI42_0_0EXUpdatesFileDownloaderManifestSuccessBlock)(ABI42_0_0EXUpdatesUpdate *update);
typedef void (^ABI42_0_0EXUpdatesFileDownloaderErrorBlock)(NSError *error, NSURLResponse *response);

@interface ABI42_0_0EXUpdatesFileDownloader : NSObject

- (instancetype)initWithUpdatesConfig:(ABI42_0_0EXUpdatesConfig *)updatesConfig;
- (instancetype)initWithUpdatesConfig:(ABI42_0_0EXUpdatesConfig *)updatesConfig
              URLSessionConfiguration:(NSURLSessionConfiguration *)sessionConfiguration;

- (void)downloadDataFromURL:(NSURL *)url
               successBlock:(ABI42_0_0EXUpdatesFileDownloaderSuccessBlock)successBlock
                 errorBlock:(ABI42_0_0EXUpdatesFileDownloaderErrorBlock)errorBlock;

- (void)downloadFileFromURL:(NSURL *)url
                     toPath:(NSString *)destinationPath
               successBlock:(ABI42_0_0EXUpdatesFileDownloaderSuccessBlock)successBlock
                 errorBlock:(ABI42_0_0EXUpdatesFileDownloaderErrorBlock)errorBlock;

- (void)downloadManifestFromURL:(NSURL *)url
                   withDatabase:(ABI42_0_0EXUpdatesDatabase *)database
                   extraHeaders:(nullable NSDictionary *)extraHeaders
                   successBlock:(ABI42_0_0EXUpdatesFileDownloaderManifestSuccessBlock)successBlock
                     errorBlock:(ABI42_0_0EXUpdatesFileDownloaderErrorBlock)errorBlock;

+ (dispatch_queue_t)assetFilesQueue;

/**
 * For test purposes; shouldn't be needed in application code
 */
- (NSURLRequest *)createManifestRequestWithURL:(NSURL *)url extraHeaders:(nullable NSDictionary *)extraHeaders;

@end

NS_ASSUME_NONNULL_END


text:
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
import { Injectable, NgModule } from '@angular/core';
// Whether the current platform supports the V8 Break Iterator. The V8 check
// is necessary to detect all Blink based browsers.
var hasV8BreakIterator = (window.Intl && window.Intl.v8BreakIterator);
/**
 * Service to detect the current platform by comparing the userAgent strings and
 * checking browser-specific global properties.
 */
export var MdPlatform = (function () {
    function MdPlatform() {
        /** Layout Engines */
        this.EDGE = /(edge)/i.test(navigator.userAgent);
        this.TRIDENT = /(msie|trident)/i.test(navigator.userAgent);
        // EdgeHTML and Trident mock Blink specific things and need to excluded from this check.
        this.BLINK = !!(window.chrome || hasV8BreakIterator) && !!CSS && !this.EDGE && !this.TRIDENT;
        // Webkit is part of the userAgent in EdgeHTML Blink and Trident, so we need to
        // ensure that Webkit runs standalone and is not use as another engines base.
        this.WEBKIT = /AppleWebKit/i.test(navigator.userAgent) && !this.BLINK && !this.EDGE && !this.TRIDENT;
        /** Browsers and Platform Types */
        this.IOS = /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
        // It's difficult to detect the plain Gecko engine, because most of the browsers identify
        // them self as Gecko-like browsers and modify the userAgent's according to that.
        // Since we only cover one explicit Firefox case, we can simply check for Firefox
        // instead of having an unstable check for Gecko.
        this.FIREFOX = /(firefox|minefield)/i.test(navigator.userAgent);
        // Trident on mobile adds the android platform to the userAgent to trick detections.
        this.ANDROID = /android/i.test(navigator.userAgent) && !this.TRIDENT;
    }
    MdPlatform = __decorate([
        Injectable(),
        __metadata('design:paramtypes', [])
    ], MdPlatform);
    return MdPlatform;
}());
export var PlatformModule = (function () {
    function PlatformModule() {
    }
    PlatformModule.forRoot = function () {
        return {
            ngModule: PlatformModule,
            providers: [MdPlatform],
        };
    };
    PlatformModule = __decorate([
        NgModule({}),
        __metadata('design:paramtypes', [])
    ], PlatformModule);
    return PlatformModule;
}());

//# sourceMappingURL=platform.js.map


text:
package etcdhttp

import (
	"context"
	"encoding/json"
	"net/http"
	"time"

	"github.com/prometheus/client_golang/prometheus"
	"github.com/prometheus/client_golang/prometheus/promhttp"
	"go.etcd.io/etcd/v3/etcdserver"
	"go.etcd.io/etcd/v3/etcdserver/etcdserverpb"
	"go.etcd.io/etcd/v3/raft"
	"go.uber.org/zap"
)

const (
	PathMetrics      = "/metrics"
	PathHealth       = "/health"
	PathProxyMetrics = "/proxy/metrics"
	PathProxyHealth  = "/proxy/health"
)

// HandleMetricsHealth registers metrics and health handlers.
func HandleMetricsHealth(lg *zap.Logger, mux *http.ServeMux, srv etcdserver.ServerV2) {
	mux.Handle(PathMetrics, promhttp.Handler())
	mux.Handle(PathHealth, NewHealthHandler(lg, func() Health { return checkHealth(lg, srv) }))
}

// HandlePrometheus registers prometheus handler on '/metrics'.
func HandlePrometheus(mux *http.ServeMux) {
	mux.Handle(PathMetrics, promhttp.Handler())
}

// NewHealthHandler handles '/health' requests.
func NewHealthHandler(lg *zap.Logger, hfunc func() Health) http.HandlerFunc {
	return func(w http.ResponseWriter, r *http.Request) {
		if r.Method != http.MethodGet {
			w.Header().Set("Allow", http.MethodGet)
			http.Error(w, "Method Not Allowed", http.StatusMethodNotAllowed)
			lg.Warn("/health error", zap.Int("status-code", http.StatusMethodNotAllowed))
			return
		}
		h := hfunc()
		d, _ := json.Marshal(h)
		if h.Health != "true" {
			http.Error(w, string(d), http.StatusServiceUnavailable)
			lg.Warn("/health error", zap.String("output", string(d)), zap.Int("status-code", http.StatusServiceUnavailable))
			return
		}
		w.WriteHeader(http.StatusOK)
		w.Write(d)
		lg.Info("/health OK", zap.Int("status-code", http.StatusOK))
	}
}

var (
	healthSuccess = prometheus.NewCounter(prometheus.CounterOpts{
		Namespace: "etcd",
		Subsystem: "server",
		Name:      "health_success",
		Help:      "The total number of successful health checks",
	})
	healthFailed = prometheus.NewCounter(prometheus.CounterOpts{
		Namespace: "etcd",
		Subsystem: "server",
		Name:      "health_failures",
		Help:      "The total number of failed health checks",
	})
)

func init() {
	prometheus.MustRegister(healthSuccess)
	prometheus.MustRegister(healthFailed)
}

// Health defines etcd server health status.
// TODO: remove manual parsing in etcdctl cluster-health
type Health struct {
	Health string `json:"health"`
	Reason string `json:"reason"`
}

// TODO: server NOSPACE, etcdserver.ErrNoLeader in health API

func checkHealth(lg *zap.Logger, srv etcdserver.ServerV2) (h Health) {
	h.Health = "true"

	defer func() {
		if h.Health == "true" {
			healthSuccess.Inc()
		} else {
			healthFailed.Inc()
		}
	}()

	as := srv.Alarms()
	if len(as) > 0 {
		h.Health = "false"
		for _, v := range as {
			switch v.Alarm {
			case etcdserverpb.AlarmType_NOSPACE:
				h.Reason = "ALARM NOSPACE"
			case etcdserverpb.AlarmType_CORRUPT:
				h.Reason = "ALARM CORRUPT"
			default:
				h.Reason = "ALARM UNKNOWN"
			}
			lg.Warn("serving /health false due to an alarm", zap.String("alarm", v.String()))
		}
		return
	}

	if uint64(srv.Leader()) == raft.None {
		h.Health = "false"
		h.Reason = "RAFT NO LEADER"
		lg.Warn("serving /health false; no leader")
		return
	}

	ctx, cancel := context.WithTimeout(context.Background(), time.Second)
	_, err := srv.Do(ctx, etcdserverpb.Request{Method: "QGET"})
	cancel()
	if err != nil {
		h.Health = "false"
		h.Reason = "QGET ERROR"
		lg.Warn("serving /health false; QGET fails", zap.Error(err))
	}

	lg.Info("serving /health true")
	return
}


text:
nanofort
========

Fortran bindings for the [nanomsg](http://nanomsg.org) sockets library.

Requires Fortran 2003 and the iso_c_binding module.

Installation
------------

	1. Download the latest version of nanomsg and compile it for your system.
	2. Include the compiled nanomsg library (nanomsg.lib) in your project.
	3. Copy the nanomsg.dll to your binary directory.  Your program will need it to run.
	4. Copy the nanomsg*.f90 bindings files to your source directory.

Usage
-----

To use in a Fortran 2003 program, put this at the top of your program:

```Fortran
use iso_c_binding
use nanomsg
```

Because this uses iso_c_binding, the function calls are as similar to the C calls as possible.  As such, you'll need to declare C type variables (i.e. _integer(c_int)_, _type(c_ptr)_).  To use Fortran type variables with C pointers, you'll have to use the _c_loc()_ function.

ToDo
----

The ```nn_symbol(...)``` function isn't currently implemented.  Having some trouble with getting it properly working on the Fortran side.


text:
#ifndef __CASS_STATEMENT_HPP_INCLUDED__
#define __CASS_STATEMENT_HPP_INCLUDED__

#include "abstract_data.hpp"
#include "constants.hpp"
#include "macros.hpp"
#include "request.hpp"
#include "result_metadata.hpp"
#include "result_response.hpp"
#include "retry_policy.hpp"

#include <vector>
#include <string>

namespace cass {

class Statement : public RoutableRequest, public AbstractData {
public:
  Statement(uint8_t opcode, uint8_t kind, size_t values_count = 0)
      : RoutableRequest(opcode)
      , AbstractData(values_count)
      , flags_(0)
      , page_size_(-1)
      , kind_(kind) { }

  Statement(uint8_t opcode, uint8_t kind, size_t values_count,
            const std::vector<size_t>& key_indices,
            const std::string& keyspace)
      : RoutableRequest(opcode, keyspace)
      , AbstractData(values_count)
      , flags_(0)
      , page_size_(-1)
      , kind_(kind)
      , key_indices_(key_indices) { }

  virtual ~Statement() { }

  uint8_t flags() const { return flags_; }

  bool skip_metadata() const {
    return flags_ & CASS_QUERY_FLAG_SKIP_METADATA;
  }

  void set_skip_metadata(bool skip_metadata) {
    if (skip_metadata) {
      flags_ |= CASS_QUERY_FLAG_SKIP_METADATA;
    } else {
      flags_ &= ~CASS_QUERY_FLAG_SKIP_METADATA;
    }
  }

  void set_has_names_for_values(bool has_names_for_values) {
    if (has_names_for_values) {
      flags_ |= CASS_QUERY_FLAG_NAMES_FOR_VALUES;
    } else {
      flags_ &= ~CASS_QUERY_FLAG_NAMES_FOR_VALUES;
    }
  }

  bool has_names_for_values() const {
    return flags_ & CASS_QUERY_FLAG_NAMES_FOR_VALUES;
  }

  int32_t page_size() const {  return page_size_;  }

  void set_page_size(int32_t page_size) { page_size_ = page_size; }

  const std::string& paging_state() const { return paging_state_; }

  void set_paging_state(const std::string& paging_state) {
    paging_state_ = paging_state;
  }

  uint8_t kind() const { return kind_; }

  void add_key_index(size_t index) { key_indices_.push_back(index); }

  virtual bool get_routing_key(std::string* routing_key, EncodingCache* cache) const;

  virtual int32_t encode_batch(int version, BufferVec* bufs, EncodingCache* cache) const = 0;

protected:
  int32_t copy_buffers(int version, BufferVec* bufs, EncodingCache* cache) const;

private:
  uint8_t flags_;
  int32_t page_size_;
  std::string paging_state_;
  uint8_t kind_;
  std::vector<size_t> key_indices_;

private:
  DISALLOW_COPY_AND_ASSIGN(Statement);
};

} // namespace cass

#endif


text:
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6
// See http://java.sun.com/xml/jaxb
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2012.05.24 at 08:06:09 AM EDT
//

package com.billybyte.spanjava.generated;

import java.math.BigInteger;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;

/**
 *
Java class for anonymous complex type.
 *
 *
The following schema fragment specifies the expected content contained within this class.
 *
 *

 * <complexType>
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element ref="{}currency"/>
 *         <element ref="{}symbol"/>
 *         <element ref="{}name"/>
 *         <element ref="{}decimalPos"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 *

 *
 *
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
    "currency",
    "symbol",
    "name",
    "decimalPos"
})
@XmlRootElement(name = "currencyDef")
public class CurrencyDef {

    @XmlElement(required = true)
    @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
    @XmlSchemaType(name = "NCName")
    protected String currency;
    @XmlElement(required = true)
    protected String symbol;
    @XmlElement(required = true)
    protected String name;
    @XmlElement(required = true)
    protected BigInteger decimalPos;

    /**
     * Gets the value of the currency property.
     *
     * @return
     *     possible object is
     *     {@link String }
     *
     */
    public String getCurrency() {
        return currency;
    }

    /**
     * Sets the value of the currency property.
     *
     * @param value
     *     allowed object is
     *     {@link String }
     *
     */
    public void setCurrency(String value) {
        this.currency = value;
    }

    /**
     * Gets the value of the symbol property.
     *
     * @return
     *     possible object is
     *     {@link String }
     *
     */
    public String getSymbol() {
        return symbol;
    }

    /**
     * Sets the value of the symbol property.
     *
     * @param value
     *     allowed object is
     *     {@link String }
     *
     */
    public void setSymbol(String value) {
        this.symbol = value;
    }

    /**
     * Gets the value of the name property.
     *
     * @return
     *     possible object is
     *     {@link String }
     *
     */
    public String getName() {
        return name;
    }

    /**
     * Sets the value of the name property.
     *
     * @param value
     *     allowed object is
     *     {@link String }
     *
     */
    public void setName(String value) {
        this.name = value;
    }

    /**
     * Gets the value of the decimalPos property.
     *
     * @return
     *     possible object is
     *     {@link BigInteger }
     *
     */
    public BigInteger getDecimalPos() {
        return decimalPos;
    }

    /**
     * Sets the value of the decimalPos property.
     *
     * @param value
     *     allowed object is
     *     {@link BigInteger }
     *
     */
    public void setDecimalPos(BigInteger value) {
        this.decimalPos = value;
    }

}


text:
'use strict';

const express = require('express');
const router = express.Router();

const Category = require('../models/category');
const Note = require('../models/note');

const ctrl = require('../controllers/category');

router.param('id', (req, res, next, id) => {
  Category.findById(id, (err, category) => {
    if (err) throw err;

    req.category = category;

    Note.find({category: id}, (err, notes) => {
      if (err) throw err;

      req.category.notes = notes;
      next();
    });
  });
});

router
  .get('/categories', ctrl.index)
  .get('/categories/new', ctrl.new)
  .post('/categories', ctrl.create)
  .get('/categories/:id', ctrl.show);

module.exports = router;

//first find a category by id and also want notes attached to this category.
// another query to give me all of the notes with all the info matching it


text:
using Microsoft.Xna.Framework;
#if ANDROID
using Android.App;
using Android.Util;
#endif

#if WINDOWS || WINDOWSGL

#endif

namespace CocosSharp
{

    public static class CCDevice
    {
        public static float DPI
        {
			get
			{
				float dpi;
#if ANDROID
				var display = Game.Activity.WindowManager.DefaultDisplay;
				var metrics = new DisplayMetrics();

				display.GetMetrics(metrics);

				dpi = metrics.Density * 160.0f;
#else
				//TODO: Implementing GetDPI for all platforms
				dpi = 96;
#endif

				return dpi;
			}
        }
    }
}


text:
/*
 * eTree.h
 *
 *  Created on: 21 May 2010
 *      Author: benedictpaten
 */

#ifndef SONLIB_ETREE_H_
#define SONLIB_ETREE_H_

#include "sonLibTypes.h"

#ifdef __cplusplus
extern "C" {
#endif

/*
 * Construct unattached eTree node.
 */
stTree *stTree_construct(void);

/*
 * Destruct the eTree node and any descendants.
 */
void stTree_destruct(stTree *eTree);

/*
 * clone a node
 */
stTree *stTree_cloneNode(stTree *node);

/*
 * Clone a tree.
 */
stTree *stTree_clone(stTree *root);

/*
 * Get the parent node.
 */
stTree *stTree_getParent(stTree *eTree);

/*
 * Set the parent node.
 */
void stTree_setParent(stTree *eTree, stTree *parent);

/*
 * Get the number of children.
 */
int64_t stTree_getChildNumber(stTree *eTree);

/*
 * Get a given child.
 */
stTree *stTree_getChild(stTree *eTree, int64_t i);

/*
 * find a child by label, returning NULL if not found.
 */
stTree *stTree_findChild(stTree *eTree, const char *label);

/*
 * Get the length of the branch. If not set will return INFINITY
 */
double stTree_getBranchLength(stTree *eTree);

/*
 * Set the branch length.
 */
void stTree_setBranchLength(stTree *eTree, double distance);

/*
 * Get the clientData object, or NULL of not set.
 */
void *stTree_getClientData(stTree *eTree);

/*
 * Set the clientData object
 */
void stTree_setClientData(stTree *eTree, void *clientData);

/*
 * Get any label associated with the branch (or NULL, if none set).
 */
const char *stTree_getLabel(stTree *eTree);

/*
 * Set the label.
 */
void stTree_setLabel(stTree *eTree, const char *label);

/*
 * Get the number of nodes in the tree, starting with the specified root.
 */
int stTree_getNumNodes(stTree *root);

/* Compare two trees for equality.  Trees must have same structure, labels and
 * distances.  Children must be in same order.  Client data is not compared. */
bool stTree_equals(stTree *eTree1, stTree *eTree2);

/* sort children of each node.  Useful for creating reproducible test results */
void stTree_sortChildren(stTree *root, int cmpFn(stTree *a, stTree *b));

/*
 * Parses the newick tree string according to the format standard (I think).
 */
stTree *stTree_parseNewickString(const char *string);

/*
 * Writes a newick tree string.
 */
char *stTree_getNewickTreeString(stTree *eTree);

/*
 * Replace the child at the given index.
 */
void stTree_setChild(stTree *tree, int64_t childIndex, stTree *newChild);
#ifdef __cplusplus
}
#endif
#endif /* ETREE_H_ */


text:
using System;
using System.Collections.Generic;
using System.Text;

namespace ManagedSteam.Exceptions
{
    /// <summary>
    /// Thrown if the interface versions for the managed and native dlls mismatch.
    /// This can occur if updating from one version to another and forgetting to update either file.
    /// </summary>
    [Serializable]
    public class InvalidInterfaceVersionException : ManagedException
    {
        internal InvalidInterfaceVersionException(ErrorCodes code, params object[] args)
            : base(code, args)
        {
        }

        internal InvalidInterfaceVersionException(StringID code, params object[] args)
            : base(code, args)
        {
        }

        protected InvalidInterfaceVersionException(System.Runtime.Serialization.SerializationInfo info,
          System.Runtime.Serialization.StreamingContext context)
            : base(info, context)
        {

        }
    }
}


text:
package com.frameworkset.commons.pool2.proxy;

import com.frameworkset.commons.pool2.KeyedObjectPool;
import com.frameworkset.commons.pool2.PoolUtils;
import com.frameworkset.commons.pool2.UsageTracking;

import java.util.Collection;
import java.util.Iterator;
import java.util.NoSuchElementException;

/**
 * Create a new keyed object pool where the pooled objects are wrapped in
 * proxies allowing better control of pooled objects and in particular the
 * prevention of the continued use of an object by a client after that client
 * returns the object to the pool.
 *
 * @param <K> type of the key
 * @param <V> type of the pooled object
 *
 * @since 2.0
 */
public class ProxiedKeyedObjectPool<K, V> implements KeyedObjectPool<K, V> {

    private final KeyedObjectPool<K, V> pool;
    private final ProxySource<V> proxySource;
    /**
     * Calls {@link KeyedObjectPool#addObject(Object)} with each
     * key in keys for count number of times. This has
     * the same effect as calling {@link #addObjects(Object, int)}
     * for each key in the keys collection.
     *
     * @param keys
     *            {@link Collection} of keys to add objects for.
     * @param count
     *            the number of idle objects to add for each key.
     * @throws Exception
     *             when {@link KeyedObjectPool#addObject(Object)} fails.
     * @throws IllegalArgumentException
     *             when keyedPool, keys, or any value
     *             in keys is null.
     * @see #addObjects(Object, int)
     */
    public void addObjects(final Collection<K> keys, final int count) throws Exception, IllegalArgumentException {
        if (keys == null) {
            throw new IllegalArgumentException(PoolUtils.MSG_NULL_KEYS);
        }
        final Iterator<K> iter = keys.iterator();
        while (iter.hasNext()) {
            addObjects(iter.next(), count);
        }
    }

    /**
     * Calls {@link KeyedObjectPool#addObject(Object)}
     * key count number of times.
     *
     * @param key
     *            the key to add objects for.
     * @param count
     *            the number of idle objects to add for key.
     * @throws Exception
     *             when {@link KeyedObjectPool#addObject(Object)} fails.
     * @throws IllegalArgumentException
     *             when key is null.
     * @since 2.8.0
     */
    public void addObjects(final K key, final int count) throws Exception, IllegalArgumentException {
        if (key == null) {
            throw new IllegalArgumentException(PoolUtils.MSG_NULL_KEY);
        }
        for (int i = 0; i < count; i++) {
            addObject(key);
        }
    }

    /**
     * Create a new proxied object pool.
     *
     * @param pool  The object pool to wrap
     * @param proxySource The source of the proxy objects
     */
    public ProxiedKeyedObjectPool(final KeyedObjectPool<K, V> pool,
            final ProxySource<V> proxySource) {
        this.pool = pool;
        this.proxySource = proxySource;
    }

    @SuppressWarnings("unchecked")
    @Override
    public V borrowObject(final K key) throws Exception, NoSuchElementException,
            IllegalStateException {
        UsageTracking<V> usageTracking = null;
        if (pool instanceof UsageTracking) {
            usageTracking = (UsageTracking<V>) pool;
        }
        final V pooledObject = pool.borrowObject(key);
        final V proxy = proxySource.createProxy(pooledObject, usageTracking);
        return proxy;
    }

    @Override
    public void returnObject(final K key, final V proxy) throws Exception {
        final V pooledObject = proxySource.resolveProxy(proxy);
        pool.returnObject(key, pooledObject);
    }

    @Override
    public void invalidateObject(final K key, final V proxy) throws Exception {
        final V pooledObject = proxySource.resolveProxy(proxy);
        pool.invalidateObject(key, pooledObject);
    }

    @Override
    public void addObject(final K key) throws Exception, IllegalStateException,
            UnsupportedOperationException {
        pool.addObject(key);
    }

    @Override
    public int getNumIdle(final K key) {
        return pool.getNumIdle(key);
    }

    @Override
    public int getNumActive(final K key) {
        return pool.getNumActive(key);
    }

    @Override
    public int getNumIdle() {
        return pool.getNumIdle();
    }

    @Override
    public int getNumActive() {
        return pool.getNumActive();
    }

    @Override
    public void clear() throws Exception, UnsupportedOperationException {
        pool.clear();
    }

    @Override
    public void clear(final K key) throws Exception, UnsupportedOperationException {
        pool.clear(key);
    }

    @Override
    public void close() {
        pool.close();
    }

    /**
     * @since 2.4.3
     */
    @Override
    public String toString() {
        final StringBuilder builder = new StringBuilder();
        builder.append("ProxiedKeyedObjectPool [pool=");
        builder.append(pool);
        builder.append(", proxySource=");
        builder.append(proxySource);
        builder.append("]");
        return builder.toString();
    }
}


text:
Most of the javascript need jQuery
======================================
fileUpload.js
what's special?
1.use progress bar
2.won't refresh page


text:
<?php

use Illuminate\Database\Schema\Blueprint;

/**
 * The CreateTalksTable class.
 *
 * @author Rubens Mariuzzo <rubens@mariuzzo.com>
 */
class CreateTalksTable extends BaseMigration
{
    /**
     * Run the migrations.
     */
    public function up()
    {
        Schema::create('talks', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('number')->unique();
            $this->common($table);
        });

        Schema::create('talk_titles', function (Blueprint $table) {
            $table->increments('id');
            $table->string('title', 200);
            $table->integer('talk_id')->unsigned();
            $table->foreign('talk_id')->references('id')->on('talks');
            $table->integer('locale_id')->unsigned();
            $table->foreign('locale_id')->references('id')->on('locales');
            $table->unique(['talk_id', 'locale_id']);
            $this->common($table);
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down()
    {
        Schema::drop('talk_titles');
        Schema::drop('talks');
    }
}


text:
export const REQUEST_NAMESPACES = 'request_namespaces';
export const RECEIVE_NAMESPACES = 'receive_namespaces';


text:
/*
 * Your rights to use code governed by this license http://o-s-a.net/doc/license_simple_engine.pdf
 *Ваши права на использования кода регулируются данной лицензией http://o-s-a.net/doc/license_simple_engine.pdf
*/

using System;

namespace OsEngine.Charts.CandleChart.Elements
{
    /// <summary>
    /// interface for creating chart elements. Lines, points, etc.
    /// интерфейс для создания элементов чарта. Линий, точек и т.д.
    /// </summary>
    public interface IChartElement
    {
        /// <summary>
        /// base class name
        /// имя базового класса
        /// </summary>
        string TypeName();

        /// <summary>
        /// unique name on chart
        /// уникальное имя на чарте
        /// </summary>
        string UniqName { get; set; }

        /// <summary>
        /// chart area where element will be drawn
        /// область чарта на которой будет прорисован элемент
        /// </summary>
        string Area { get; set; }

        /// <summary>
        /// it is necessary to update item on chart
        /// необходимо обновить элемент на чарте
        /// </summary>
        event Action<IChartElement> UpdeteEvent;

        /// <summary>
        /// it's necessary to remove an item from chart forever
        /// необходимо удалить элемент с чарта навсегда
        /// </summary>
        event Action<IChartElement> DeleteEvent;

        /// <summary>
        /// update item on chart
        /// обновить элемент на чарте
        /// </summary>
        void Refresh();

        /// <summary>
        /// uninstall an item from chart
        /// удалить элемент с чарта
        /// </summary>
        void Delete();

    }
}


text:
This service enables custom UDF registration with pre defined provider set.

- [Usage](#usage)
- [Predefined UDF Providers](#providers)
- [Service Actions](#actions)

### Usage

Register UDF

```go
endly -r=reqister
```

@register.yaml
```yaml
pipeline:
    register-udf:
      action: udf:register
      udfs:
        - id: AddressBookToProto
          provider: ProtoWriter
          params:
            - /Project/proto/address_book.proto
            - AddressBook
        - id: ProtoToAddressBook
          provider: ProtoReader
          params:
            - /Project/proto/address_book.proto
            - AddressBook
```

Avro Reader UDF data validation:

```endly -r=test```

@test.yaml
```yaml
pipeline:
  loadData:
    action: storage:download
    udf: AvroReader
    source:
      URL: gs://mye2ebucket/data/output/1/app_data00000.avro
    credentials: $gcpSecrets
    destKey: matchedData
    post:
      myData: $Transformed

  infoMyData:
    action: print
    message: $AsJSON(${myData})

  infoMatched:
    action: print
    message: $AsJSON(${matchedData})

  infoAll:
    action: print
    message: $AsJSON(${loadData})

  assert:
    action: validator:assert
    actual: $AsData(${matchedData})
    expect: $Cat(${parent.path}/expect/mydata.json)

```

### Predefined UDF Providers

| Provider | Arguments |
|---|---|
| ProtoReader |  schemaFile, messageType, importPath |
| ProtoReader | schemaFile, messageType, importPath |
| AvroWriter | avroSchema/URL, compression |
| CsvReader | headerFields, delimiter |

### Service actions

**UDF Service**

| Service Id | Action | Description | Request | Response |
| --- | --- | --- | --- | --- |
| udf | register | register custom UDF with udf provider | [RegisterRequest](service_contract.go) | [RegisterResponse](service_contract.go) |


text:
#include <aws/forecast/model/IntegerParameterRange.h>
#include <aws/core/utils/json/JsonSerializer.h>

#include <utility>

using namespace Aws::Utils::Json;
using namespace Aws::Utils;

namespace Aws
{
namespace ForecastService
{
namespace Model
{

IntegerParameterRange::IntegerParameterRange() :
    m_nameHasBeenSet(false),
    m_maxValue(0),
    m_maxValueHasBeenSet(false),
    m_minValue(0),
    m_minValueHasBeenSet(false),
    m_scalingType(ScalingType::NOT_SET),
    m_scalingTypeHasBeenSet(false)
{
}

IntegerParameterRange::IntegerParameterRange(JsonView jsonValue) :
    m_nameHasBeenSet(false),
    m_maxValue(0),
    m_maxValueHasBeenSet(false),
    m_minValue(0),
    m_minValueHasBeenSet(false),
    m_scalingType(ScalingType::NOT_SET),
    m_scalingTypeHasBeenSet(false)
{
  *this = jsonValue;
}

IntegerParameterRange& IntegerParameterRange::operator =(JsonView jsonValue)
{
  if(jsonValue.ValueExists("Name"))
  {
    m_name = jsonValue.GetString("Name");

    m_nameHasBeenSet = true;
  }

  if(jsonValue.ValueExists("MaxValue"))
  {
    m_maxValue = jsonValue.GetInteger("MaxValue");

    m_maxValueHasBeenSet = true;
  }

  if(jsonValue.ValueExists("MinValue"))
  {
    m_minValue = jsonValue.GetInteger("MinValue");

    m_minValueHasBeenSet = true;
  }

  if(jsonValue.ValueExists("ScalingType"))
  {
    m_scalingType = ScalingTypeMapper::GetScalingTypeForName(jsonValue.GetString("ScalingType"));

    m_scalingTypeHasBeenSet = true;
  }

  return *this;
}

JsonValue IntegerParameterRange::Jsonize() const
{
  JsonValue payload;

  if(m_nameHasBeenSet)
  {
   payload.WithString("Name", m_name);

  }

  if(m_maxValueHasBeenSet)
  {
   payload.WithInteger("MaxValue", m_maxValue);

  }

  if(m_minValueHasBeenSet)
  {
   payload.WithInteger("MinValue", m_minValue);

  }

  if(m_scalingTypeHasBeenSet)
  {
   payload.WithString("ScalingType", ScalingTypeMapper::GetNameForScalingType(m_scalingType));
  }

  return payload;
}

} // namespace Model
} // namespace ForecastService
} // namespace Aws


text:
package y

import (
	sq "github.com/Masterminds/squirrel"
)

type truncator struct {
	table string
}

func (t truncator) ToSql() (string, []interface{}, error) {
	return "TRUNCATE " + t.table, []interface{}{}, nil
}

// Truncate erases all data from a table
func Truncate(db sq.BaseRunner, p *Proxy) (err error) {
	_, err = sq.ExecWith(db, truncator{p.schema.table})
	return
}

// DeleteBy removes a proxy by values
func DeleteBy(db sq.BaseRunner, p *Proxy, by Values) (int64, error) {
	result, err := builder{p.schema}.forDelete(sq.Eq(by)).RunWith(db).Exec()
	if err != nil {
		return 0, err
	}
	return result.RowsAffected()
}


text:
@implementation NSManagedObjectContext (MagicalSaves)

- (void)MR_saveOnlySelfWithCompletion:(MRSaveCompletionHandler)completion;
{
    [self MR_saveWithOptions:0 completion:completion];
}

- (void)MR_saveOnlySelfAndWait;
{
    [self MR_saveWithOptions:MRSaveSynchronously completion:nil];
}

- (void) MR_saveToPersistentStoreWithCompletion:(MRSaveCompletionHandler)completion;
{
    [self MR_saveWithOptions:MRSaveParentContexts completion:completion];
}

- (void) MR_saveToPersistentStoreAndWait;
{
    [self MR_saveWithOptions:MRSaveParentContexts | MRSaveSynchronously completion:nil];
}

- (void)MR_saveWithOptions:(MRSaveContextOptions)mask completion:(MRSaveCompletionHandler)completion;
{
    BOOL syncSave           = ((mask & MRSaveSynchronously) == MRSaveSynchronously);
    BOOL saveParentContexts = ((mask & MRSaveParentContexts) == MRSaveParentContexts);

    if (![self hasChanges]) {
        MRLog(@"NO CHANGES IN ** %@ ** CONTEXT - NOT SAVING", [self MR_workingName]);

        if (completion)
        {
            dispatch_async(dispatch_get_main_queue(), ^{
                completion(NO, nil);
            });
        }

        return;
    }

    MRLog(@"→ Saving %@", [self MR_description]);
    MRLog(@"→ Save Parents? %@", @(saveParentContexts));
    MRLog(@"→ Save Synchronously? %@", @(syncSave));

    id saveBlock = ^{
        NSError *error = nil;
        BOOL     saved = NO;

        @try
        {
            saved = [self save:&error];
        }
        @catch(NSException *exception)
        {
            MRLog(@"Unable to perform save: %@", (id)[exception userInfo] ? : (id)[exception reason]);
        }

        @finally
        {
            if (!saved) {
                [self MR_handleError:error
                           inContext:self];

                if (completion) {
                    dispatch_async(dispatch_get_main_queue(), ^{
                        completion(saved, error);
                    });
                }
            } else {
                // If we're the default context, save to disk too (the user expects it to persist)
                if ([self MR_isDefaultContext]) {
                    [[[self class] MR_rootSavingContext] MR_saveWithOptions:MRSaveSynchronously completion:completion];
                }
                // If we're saving parent contexts, do so
                else if ((YES == saveParentContexts) && [self parentContext]) {
                    [[self parentContext] MR_saveWithOptions:MRSaveSynchronously | MRSaveParentContexts completion:completion];
                }
                // If we are not the default context (And therefore need to save the root context, do the completion action if one was specified
                else {
                    MRLog(@"→ Finished saving: %@", [self MR_description]);

                    if (completion) {
                        dispatch_async(dispatch_get_main_queue(), ^{
                            completion(saved, error);
                        });
                    }
                }
            }
        }
    };

    if (YES == syncSave) {
        [self performBlockAndWait:saveBlock];
    } else {
        [self performBlock:saveBlock];
    }
}

#pragma mark - Deprecated methods
// These methods will be removed in MagicalRecord 3.0

#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-implementations"

- (void)MR_save;
{
    [self MR_saveToPersistentStoreAndWait];
}

- (void)MR_saveWithErrorCallback:(void (^)(NSError *error))errorCallback;
{
    [self MR_saveWithOptions:MRSaveSynchronously|MRSaveParentContexts completion:^(BOOL success, NSError *error) {
        if (!success) {
            if (errorCallback) {
                errorCallback(error);
            }
        }
    }];
}

- (void)MR_saveInBackgroundCompletion:(void (^)(void))completion;
{
    [self MR_saveOnlySelfWithCompletion:^(BOOL success, NSError *error) {
        if (success) {
            if (completion) {
                completion();
            }
        }
    }];
}

- (void)MR_saveInBackgroundErrorHandler:(void (^)(NSError *error))errorCallback;
{
    [self MR_saveOnlySelfWithCompletion:^(BOOL success, NSError *error) {
        if (!success) {
            if (errorCallback) {
                errorCallback(error);
            }
        }
    }];
}

- (void)MR_saveInBackgroundErrorHandler:(void (^)(NSError *error))errorCallback completion:(void (^)(void))completion;
{
    [self MR_saveOnlySelfWithCompletion:^(BOOL success, NSError *error) {
        if (success) {
            if (completion) {
                completion();
            }
        } else {
            if (errorCallback) {
                errorCallback(error);
            }
        }
    }];
}

- (void)MR_saveNestedContexts;
{
    [self MR_saveToPersistentStoreWithCompletion:nil];
}

- (void)MR_saveNestedContextsErrorHandler:(void (^)(NSError *error))errorCallback;
{
    [self MR_saveToPersistentStoreWithCompletion:^(BOOL success, NSError *error) {
        if (!success) {
            if (errorCallback) {
                errorCallback(error);
            }
        }
    }];
}

- (void)MR_saveNestedContextsErrorHandler:(void (^)(NSError *error))errorCallback completion:(void (^)(void))completion;
{
    [self MR_saveToPersistentStoreWithCompletion:^(BOOL success, NSError *error) {
        if (success) {
            if (completion) {
                completion();
            }
        } else {
            if (errorCallback) {
                errorCallback(error);
            }
        }
    }];
}

#pragma clang diagnostic pop // ignored "-Wdeprecated-implementations"

@end


text:
@interface MCKRealNumber ()

@property (assign, nonatomic, readwrite) MCKPrecision precision;
@property (strong, nonatomic, readwrite) NSNumber *realValue;

@end

@implementation MCKRealNumber

- (instancetype)initWithValue:(NSNumber *)value precision:(MCKPrecision)precision
{
    self = [super init];
    if (self != nil) {
        _precision = precision;
        _realValue = value;
    }
    return self;
}

+ (instancetype)realNumberWithValue:(NSNumber *)value precision:(MCKPrecision)precision
{
    return [[self alloc] initWithValue:value precision:precision];
}

@end


text:
import React from "react"

import Layout from "../components/layout"

const NotFoundPage = () => (
  <Layout>

Page Not Found

Just lightin' out for the territories,
huh? Brother, I been there.

  </Layout>
)

export default NotFoundPage


text:
New case

            <form class="form-horizontal bs-example" role="form" name="case_form">

                  Name
                  *

                  <input name="name" type="text" ng-model="t_case.name" class="form-control" placeholder="Name" required>

                  Description
                  *

                  <input name="descr" type="text" ng-model="t_case.descr" class="form-control" placeholder="Description" required>

                Oracle
                *

            </form>
            <button type="button" class="btn btn-primary pull-right" ng-class="{ disabled: !ready_to_submit}" ng-click="post_resources()">Submit</button>


text:
require 'json'

module CBUtils
  def self.condense_name name
    name.downcase.gsub(/[^A-Za-z0-9]/, '')
  end

  def self.login name, pass, challenge, challengekeyid, &callback
    EM::HttpRequest.new("https://play.pokemonshowdown.com/action.php").post(body: {
      'act' => 'login',
      'name' => name,
      'pass' => pass,
      'challengekeyid' => challengekeyid.to_i,
      'challenge' => challenge} ).callback { |http|

      callback.call(JSON.parse(http.response[1..-1])["assertion"]) # PS returns a ']' before the json
    }

  end

  def self.command(name, num_args = Numeric)
    pattern = /!#{name}\s*((?:[^,]+,?\s*)+)/
    lambda { |cmd|
      match = cmd.match(pattern)

      return nil unless match
      args = match[1].split(/,\s*/)
      return :syntax_error unless num_args === args.size
      args
    }
  end

  def self.safe_read(file)
    File.read(file,
      external_encoding: 'iso-8859-1',
      internal_encoding: 'utf-8')
  end

  class HasteUploader # Asynchronous with eventmachine!
    def initialize
      @url = 'http://hastebin.com/documents'
    end

    def upload text, &callback
      EM::HttpRequest.new(@url).post(body: text).callback do |http|
        haste_id = JSON.parse(http.response)['key']
        haste_url = "http://hastebin.com/#{haste_id}"
        callback.call(haste_url)
      end
    end
  end

end


text:
#pragma once
#include <aws/wafv2/WAFV2_EXPORTS.h>
#include <aws/wafv2/model/WebACLSummary.h>
#include <utility>

namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;

namespace Utils
{
namespace Json
{
  class JsonValue;
} // namespace Json
} // namespace Utils
namespace WAFV2
{
namespace Model
{
  class AWS_WAFV2_API CreateWebACLResult
  {
  public:
    CreateWebACLResult();
    CreateWebACLResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
    CreateWebACLResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);

    /**
     *
High-level information about a WebACL, returned by operations like
     * create and list. This provides information like the ID, that you can use to
     * retrieve and manage a WebACL, and the ARN, that you provide to
     * operations like AssociateWebACL.

     */
    inline const WebACLSummary& GetSummary() const{ return m_summary; }

    /**
     *
High-level information about a WebACL, returned by operations like
     * create and list. This provides information like the ID, that you can use to
     * retrieve and manage a WebACL, and the ARN, that you provide to
     * operations like AssociateWebACL.

     */
    inline void SetSummary(const WebACLSummary& value) { m_summary = value; }

    /**
     *
High-level information about a WebACL, returned by operations like
     * create and list. This provides information like the ID, that you can use to
     * retrieve and manage a WebACL, and the ARN, that you provide to
     * operations like AssociateWebACL.

     */
    inline void SetSummary(WebACLSummary&& value) { m_summary = std::move(value); }

    /**
     *
High-level information about a WebACL, returned by operations like
     * create and list. This provides information like the ID, that you can use to
     * retrieve and manage a WebACL, and the ARN, that you provide to
     * operations like AssociateWebACL.

     */
    inline CreateWebACLResult& WithSummary(const WebACLSummary& value) { SetSummary(value); return *this;}

    /**
     *
High-level information about a WebACL, returned by operations like
     * create and list. This provides information like the ID, that you can use to
     * retrieve and manage a WebACL, and the ARN, that you provide to
     * operations like AssociateWebACL.

     */
    inline CreateWebACLResult& WithSummary(WebACLSummary&& value) { SetSummary(std::move(value)); return *this;}

  private:

    WebACLSummary m_summary;
  };

} // namespace Model
} // namespace WAFV2
} // namespace Aws


text:
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>Struct template base_unit_info</title>
<link rel="stylesheet" href="../../../../doc/src/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
<link rel="home" href="../../index.html" title="The Boost C++ Libraries BoostBook Documentation Subset">
<link rel="up" href="../../boost_units/Reference.html#header.boost.units.io_hpp" title="Header <boost/units/io.hpp>">
<link rel="prev" href="static_root.html" title="Struct template static_root">
<link rel="next" href="autoprefix_norm.html" title="Function template autoprefix_norm">

Home
Libraries
People
FAQ
More

Struct template base_unit_info

boost::units::base_unit_info — traits template for unit names.

Synopsis

// In header: <boost/units/io.hpp>

template<typename BaseUnit>
struct base_unit_info {

  // public static functions
  static std::string name();
  static std::string symbol();
};

Description

base_unit_info public static functions

static std::string name();
The full name of the unit (returns BaseUnit::name() by default)

static std::string symbol();
The symbol for the base unit (Returns BaseUnit::symbol() by default)

<colgroup>
<col align="left" valign="top">
<col>
</colgroup>

Returns:

BaseUnit::symbol(), for example "m"

Copyright © 2003-2008 Matthias Christian Schabel
Copyright © 2007-2010 Steven
      Watanabe

        Distributed under the Boost Software License, Version 1.0. (See accompanying
        file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)


text:
/**
 * @see Indexing and PSI Stubs in IntelliJ IDEA
 *
 * @see Lifecycle of stub creation
 */
package com.intellij.psi.stubs;


text:
package mediabrowser.apiinteraction.connectionmanager;

import mediabrowser.apiinteraction.ConnectionResult;
import mediabrowser.apiinteraction.Response;
import mediabrowser.model.apiclient.ConnectionMode;
import mediabrowser.model.apiclient.ConnectionOptions;
import mediabrowser.model.apiclient.ServerInfo;
import mediabrowser.model.logging.ILogger;
import mediabrowser.model.system.PublicSystemInfo;

import java.util.ArrayList;
import java.util.Date;

/**
 * Created by Luke on 2/21/2015.
 */
public class TestNextConnectionModeTryConnectResponse extends Response<PublicSystemInfo> {

    private ConnectionManager _connectionManager;
    private ServerInfo _serverInfo;
    private ArrayList<ConnectionMode> _tests;
    private ConnectionMode _connectionMode;
    private String _address;
    private int _finalTimeout;
    private ConnectionOptions _connectionOptions;
    private int _index;
    private boolean _isLocalNetworkAvailable;
    private long _wakeOnLanSendTime;
    private  boolean _finalEnableRetry;
    private ILogger _logger;
    private Response<ConnectionResult> _connectionResultResponse;

    public TestNextConnectionModeTryConnectResponse(ConnectionManager connectionManager,
                                                    ServerInfo serverInfo,
                                                    ArrayList<ConnectionMode> tests,
                                                    ConnectionMode connectionMode,
                                                    String address,
                                                    int finalTimeout,
                                                    ConnectionOptions connectionOptions,
                                                    int index,
                                                    boolean isLocalNetworkAvailable,
                                                    long wakeOnLanSendTime,
                                                    boolean finalEnableRetry,
                                                    ILogger logger,
                                                    Response<ConnectionResult> connectionResultResponse) {
        this._connectionManager = connectionManager;
        this._serverInfo = serverInfo;
        this._tests = tests;
        this._connectionMode = connectionMode;
        this._address = address;
        this._finalTimeout = finalTimeout;
        this._connectionOptions = connectionOptions;
        this._index = index;
        this._isLocalNetworkAvailable = isLocalNetworkAvailable;
        this._wakeOnLanSendTime = wakeOnLanSendTime;
        this._finalEnableRetry = finalEnableRetry;
        this._logger = logger;
        this._connectionResultResponse = connectionResultResponse;
    }

    @Override
    public void onResponse(PublicSystemInfo result) {

        _connectionManager.OnSuccessfulConnection(_serverInfo, result, _connectionMode, _connectionOptions, _connectionResultResponse);
    }

    @Override
    public void onError(Exception ex) {

        if (_finalEnableRetry){

            long time = new Date().getTime();

            long sleepTime = 10000 - (time - _wakeOnLanSendTime);

            if (sleepTime > 0){
                try {
                    Thread.sleep(sleepTime, 0);
                } catch (InterruptedException interruptedException) {
                    _logger.ErrorException("Error in Thread.Sleep", interruptedException);
                }
            }

            TryConnectRetryResponse tryConnectRetryResponse = new TryConnectRetryResponse(_connectionManager,
                    _serverInfo,
                    _tests,
                    _connectionMode,
                    _connectionOptions,
                    _index,
                    _isLocalNetworkAvailable,
                    _wakeOnLanSendTime,
                    _connectionResultResponse);

            _connectionManager.TryConnect(_address, _finalTimeout, tryConnectRetryResponse);
        }
        else{
            _connectionManager.TestNextConnectionMode(_tests,
                    _index + 1,
                    _isLocalNetworkAvailable,
                    _serverInfo,
                    _wakeOnLanSendTime,
                    _connectionOptions,
                    _connectionResultResponse);
        }
    }

}


text:
                    {% if site.github_username %}

                    {% endif %}

Copyright © {{ site.title }} {{ site.time | date: '%Y' }}


text:
package org.optaplanner.workbench.screens.solver.client.resources;

import com.google.gwt.core.client.GWT;
import com.google.gwt.resources.client.ClientBundle;
import org.optaplanner.workbench.screens.solver.client.resources.css.StylesCss;
import org.optaplanner.workbench.screens.solver.client.resources.images.SolverEditorImageResources;

public interface SolverEditorResources
        extends
        ClientBundle {

    public static final SolverEditorResources INSTANCE = GWT.create( SolverEditorResources.class );

    @Source("css/Styles.css")
    StylesCss CSS();

    SolverEditorImageResources images();

}