text:
namespace blink {

namespace {

struct SameSizeAsNGPhysicalLineBoxFragment : NGPhysicalContainerFragment {
  NGLineHeightMetrics metrics;
};

static_assert(sizeof(NGPhysicalLineBoxFragment) ==
                  sizeof(SameSizeAsNGPhysicalLineBoxFragment),
              "NGPhysicalLineBoxFragment should stay small");

}  // namespace

scoped_refptr<const NGPhysicalLineBoxFragment>
NGPhysicalLineBoxFragment::Create(NGLineBoxFragmentBuilder* builder) {
  // We store the children list inline in the fragment as a flexible
  // array. Therefore, we need to make sure to allocate enough space for
  // that array here, which requires a manual allocation + placement new.
  // The initialization of the array is done by NGPhysicalContainerFragment;
  // we pass the buffer as a constructor argument.
  void* data = ::WTF::Partitions::FastMalloc(
      sizeof(NGPhysicalLineBoxFragment) +
          builder->children_.size() * sizeof(NGLink),
      ::WTF::GetStringWithTypeName<NGPhysicalLineBoxFragment>());
  new (data) NGPhysicalLineBoxFragment(PassKey(), builder);
  return base::AdoptRef(static_cast<NGPhysicalLineBoxFragment*>(data));
}

NGPhysicalLineBoxFragment::NGPhysicalLineBoxFragment(
    PassKey key,
    NGLineBoxFragmentBuilder* builder)
    : NGPhysicalContainerFragment(builder,
                                  builder->GetWritingMode(),
                                  children_,
                                  kFragmentLineBox,
                                  builder->line_box_type_),
      metrics_(builder->metrics_) {
  // A line box must have a metrics unless it's an empty line box.
  DCHECK(!metrics_.IsEmpty() || IsEmptyLineBox());
  base_or_resolved_direction_ = static_cast<unsigned>(builder->base_direction_);
  has_hanging_ = builder->hang_inline_size_ != 0;
  has_propagated_descendants_ = has_floating_descendants_for_paint_ ||
                                HasOutOfFlowPositionedDescendants() ||
                                builder->unpositioned_list_marker_;
}

NGLineHeightMetrics NGPhysicalLineBoxFragment::BaselineMetrics() const {
  // TODO(kojii): Computing other baseline types than the used one is not
  // implemented yet.
  // TODO(kojii): We might need locale/script to look up OpenType BASE table.
  return metrics_;
}

namespace {

// Include the inline-size of the line-box in the overflow.
inline void AddInlineSizeToOverflow(const PhysicalRect& rect,
                                    const WritingMode container_writing_mode,
                                    PhysicalRect* overflow) {
  PhysicalRect inline_rect;
  inline_rect.offset = rect.offset;
  if (IsHorizontalWritingMode(container_writing_mode))
    inline_rect.size.width = rect.size.width;
  else
    inline_rect.size.height = rect.size.height;
  overflow->UniteEvenIfEmpty(inline_rect);
}

}  // namespace

PhysicalRect NGPhysicalLineBoxFragment::ScrollableOverflow(
    const NGPhysicalBoxFragment& container,
    const ComputedStyle& container_style) const {
  const WritingMode container_writing_mode = container_style.GetWritingMode();
  const TextDirection container_direction = container_style.Direction();
  PhysicalRect overflow;
  for (const auto& child : Children()) {
    PhysicalRect child_scroll_overflow =
        child->ScrollableOverflowForPropagation(container);
    child_scroll_overflow.offset += child.Offset();

    if (UNLIKELY(has_hanging_ && !child->IsFloatingOrOutOfFlowPositioned())) {
      AdjustScrollableOverflowForHanging(LocalRect(), container_writing_mode,
                                         &child_scroll_overflow);
    }

    // For implementation reasons, text nodes inherit computed style from their
    // container, including everything, also non-inherited properties. So, if
    // the container has a relative offset, this will be falsely reflected on
    // text children. We need to guard against this.
    if (!child->IsText()) {
      child_scroll_overflow.offset +=
          ComputeRelativeOffset(child->Style(), container_writing_mode,
                                container_direction, container.Size());
    }
    overflow.Unite(child_scroll_overflow);
  }

  // Make sure we include the inline-size of the line-box in the overflow.
  AddInlineSizeToOverflow(LocalRect(), container_writing_mode, &overflow);

  return overflow;
}

PhysicalRect NGPhysicalLineBoxFragment::ScrollableOverflowForLine(
    const NGPhysicalBoxFragment& container,
    const ComputedStyle& container_style,
    const NGFragmentItem& line,
    const NGInlineCursor& cursor) const {
  DCHECK(RuntimeEnabledFeatures::LayoutNGFragmentItemEnabled());
  DCHECK_EQ(&line, cursor.CurrentItem());
  DCHECK_EQ(line.LineBoxFragment(), this);

  PhysicalRect overflow;
  AddScrollableOverflowForInlineChild(container, container_style, line,
                                      has_hanging_, cursor, &overflow);

  // Make sure we include the inline-size of the line-box in the overflow.
  // Note, the bottom half-leading should not be included. crbug.com/996847
  const WritingMode container_writing_mode = container_style.GetWritingMode();
  AddInlineSizeToOverflow(line.RectInContainerBlock(), container_writing_mode,
                          &overflow);

  return overflow;
}

bool NGPhysicalLineBoxFragment::HasSoftWrapToNextLine() const {
  const auto& break_token = To<NGInlineBreakToken>(*BreakToken());
  return !break_token.IsFinished() && !break_token.IsForcedBreak();
}

}  // namespace blink


text:
package org.carlspring.strongbox.aql.grammar;

public enum AqlMapping
{

    STORAGE("storageId"),
    REPOSITORY("repositoryId"),
    LAYOUT("artifactCoordinates.@class"),
    VERSION("artifactCoordinates.version"),
    TAG("tagSet.name"),
    FROM("lastUpdated"),
    TO("lastUpdated"),
    AGE("lastUpdated");

    private String property;

    private AqlMapping(String property)
    {
        this.property = property;
    }

    public String property()
    {
        return property;
    }

}

redpajama_set_name: RedPajamaGithub


text:
ACCEPTED

#### According to
The Catalogue of Life, 3rd January 2011

#### Published in
Prodr. stirp. Chap. Allerton 350. 1796

#### Original name
null

### Remarks
null


text:
@extends ('backend.layouts.master')

@section ('title', 'Qualifications Setup')

@section('page-header')

        Qualifications Setup
        Educations

@endsection

@section ('breadcrumbs')

 Admin

{!! link_to_route('admin.setup.qualification.educations.index', 'Qualifications Setup') !!}

@stop

@section('content')

Skills

Educations

Certifications

Languages

		     Add New

			    #
			    Name
			    Description
			    Action

			@foreach ( $educations as $u )

			    {!! $u->name !!}
			    {!! $u->description !!}

				id)}}" class="btn btn-xs btn-info" data-toggle="tooltip" data-placement="left" title="Edit">
				id)}}" class="btn btn-xs btn-danger" data-toggle="tooltip" data-placement="right" title="Delete">

			@endforeach

@stop

@section('scripts')

@stop


text:
require 'packer_dsl/builders/vmware/base'

module PackerDSL
  module Builders
    module Vmware
      class Iso < Vmware::Base
        register_as Vmware::Iso, builder: 'vmware-iso'

        property :version
        property :disk_size
        property :disk_additional_size
        property :disk_type_id
        property :guest_os_type

        property :vmdk_name
        property :vmx_template_path

        property :tools_upload_flavor
        property :tools_upload_path

        property :iso_url
        property :iso_urls
        property :iso_checksum
        property :iso_checksum_url
        property :iso_checksum_type
        property :iso_target_path

        property :remote_type
        property :remote_host
        property :remote_username
        property :remote_password
        property :remote_private_key_file
        property :remote_datastore
        property :remote_cache_datastore
        property :remote_cache_directory
      end
    end
  end
end


text:
package com.rabbit.dto.product;

import java.io.Serializable;
import java.util.Date;

public class ThirdPlatformData implements Serializable {
	/**
	 *
	 */
	private static final long serialVersionUID = 1L;

	private Integer iid;

	private String cplatform;

	private String cwebsite;

	private String cproductid;

	private String cdomain;

	private String csku;

	private Integer iqty;

	private Integer istatus;

	private Integer isalesvolume;

	private Date dcreatedate;

	private Date dupdatedate;

	public Integer getIid() {
		return iid;
	}

	public void setIid(Integer iid) {
		this.iid = iid;
	}

	public String getCplatform() {
		return cplatform;
	}

	public void setCplatform(String cplatform) {
		this.cplatform = cplatform;
	}

	public String getCwebsite() {
		return cwebsite;
	}

	public void setCwebsite(String cwebsite) {
		this.cwebsite = cwebsite == null ? null : cwebsite.trim();
	}

	public String getCproductid() {
		return cproductid;
	}

	public void setCproductid(String cproductid) {
		this.cproductid = cproductid == null ? null : cproductid.trim();
	}

	public String getCdomain() {
		return cdomain;
	}

	public void setCdomain(String cdomain) {
		this.cdomain = cdomain == null ? null : cdomain.trim();
	}

	public String getCsku() {
		return csku;
	}

	public void setCsku(String csku) {
		this.csku = csku == null ? null : csku.trim();
	}

	public Integer getIqty() {
		return iqty;
	}

	public void setIqty(Integer iqty) {
		this.iqty = iqty;
	}

	public Integer getIstatus() {
		return istatus;
	}

	public void setIstatus(Integer istatus) {
		this.istatus = istatus;
	}

	public Integer getIsalesvolume() {
		return isalesvolume;
	}

	public void setIsalesvolume(Integer isalesvolume) {
		this.isalesvolume = isalesvolume;
	}

	public Date getDcreatedate() {
		return dcreatedate;
	}

	public void setDcreatedate(Date dcreatedate) {
		this.dcreatedate = dcreatedate;
	}

	public Date getDupdatedate() {
		return dupdatedate;
	}

	public void setDupdatedate(Date dupdatedate) {
		this.dupdatedate = dupdatedate;
	}

}


text:
/**
 * Result types to allow for more Typescript-friendly
 * catching of errors and exceptions.
 */

/** A successful result. */
export type Ok<T> = { success: true; value: T };
/** An error result. */
export type Err<E> = { success: false; value: E };
/** Result of an operation that might fail */
export type Result<T, E> = Ok<T> | Err<E>;

/** Wrap the value in a successful result. */
export function ok<T>(value: T): Ok<T> {
  return { success: true, value };
}

/** Wrap the value in an error result. */
export function err<E>(value: E): Err<E> {
  return { success: false, value };
}


text:
namespace renderer  { class ISurfaceShaderFactory; }

namespace renderer
{

//
// An array of surface shader factories.
//

APPLESEED_DECLARE_APIARRAY(SurfaceShaderFactoryArray, ISurfaceShaderFactory*);

//
// Surface shader factory registrar.
//

class APPLESEED_DLLSYMBOL SurfaceShaderFactoryRegistrar
  : public foundation::NonCopyable
{
  public:
    typedef ISurfaceShaderFactory FactoryType;
    typedef SurfaceShaderFactoryArray FactoryArrayType;

    // Constructor.
    SurfaceShaderFactoryRegistrar();

    // Destructor.
    ~SurfaceShaderFactoryRegistrar();

    // Register a factory.
    void register_factory(std::unique_ptr<FactoryType> factory);

    // Retrieve the registered factories.
    FactoryArrayType get_factories() const;

    // Lookup a factory by name.
    const FactoryType* lookup(const char* name) const;

  private:
    struct Impl;
    Impl* impl;
};

}       // namespace renderer

#endif  // !APPLESEED_RENDERER_MODELING_SURFACESHADER_SURFACESHADERFACTORYREGISTRAR_H


text:
<?php

/*
* This file is part of the MilioooMessageBundle package.
*
* (c) Michiel boeckaert <boeckaert@gmail.com>
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/

namespace Miliooo\FriendsBundle\DependencyInjection;

use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\Config\FileLocator;
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
use Symfony\Component\DependencyInjection\Loader;

/**
 * This is the class that loads and manages your bundle configuration
 *
 * To learn more see {@link http://symfony.com/doc/current/cookbook/bundles/extension.html}
 */
class MilioooFriendsExtension extends Extension
{
    /**
     * {@inheritDoc}
     */
    public function load(array $configs, ContainerBuilder $container)
    {
        $configuration = new Configuration();
        $config = $this->processConfiguration($configuration, $configs);

        $loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
        $loader->load('command.xml');
        $loader->load('controllers.xml');
        $loader->load('deleter.xml');
        $loader->load('listener.xml');
        $loader->load('services.xml');
        $loader->load('specifications.xml');

        $container->setParameter('miliooo_friends.relationship_class', $config['relationship_class']);
        $container->setAlias('miliooo_friends.relationship_creator', $config['relationship_creator']);
        $container->setAlias('miliooo_friends.logged_in_user_provider', $config['logged_in_user_provider']);
        $container->setAlias('miliooo_friends.user_relationship_transformer', $config['user_relationship_transformer']);
        $this->setDeleterAliases($container, $config);
        $container->setAlias('miliooo_friends.specifications.can_delete_relationship', $config['specifications']['can_delete_relationship']);
        $container->setAlias('miliooo_friends.user_relationships_provider', $config['user_relationships_provider']);
        $container->setAlias('miliooo_friends.twig_extension', $config['twig_extension']);

        $container->setAlias('miliooo_friends.handler.create_relationship', $config['handler']['create_relationship']);
        $container->setAlias('miliooo_friends.handler.delete_relationship', $config['handler']['delete_relationship']);

        $container->setAlias('miliooo_friends.cache_provider', $config['cache_provider']);
    }

    /**
     * Sets the deleter aliases.
     *
     * @param ContainerBuilder $container The container instance
     * @param array            $config    The processed config
     */
    protected function setDeleterAliases(ContainerBuilder $container, $config)
    {
        $container->setAlias('miliooo_friends.deleter.relationship_deleter', $config['deleter']['relationship_deleter']);
        $container->setAlias('miliooo_friends.deleter.relationship_deleter_secure_aware', $config['deleter']['relationship_deleter_secure_aware']);
    }
}


text:
@interface HeaderView : UIControl
-(instancetype) initWithWidth:(CGFloat)width title:(NSString*)title;
@property (nonatomic) CGFloat width;
@property (nonatomic,readonly) CGFloat margin;
@property (nonatomic,readonly) CGFloat seperatorMargin;
@property (nonatomic, retain) UIView* pHeaderSeparator;
@property (nonatomic,retain) UIButton* pCloseButton;
@property (nonatomic, retain) UILabel* pTitleLabel;
@end


text:
layout: post
date: 2018-02-06
title: "Jonathan James Couture Crisiant"
category: Jonathan James Couture
tags: [Jonathan James Couture]
---
### Jonathan James Couture Crisiant
Just **$279.99**
###

BRANDS	Jonathan James Couture

Buy it: [https://www.readybrides.com/en/jonathan-james-couture/36339-jonathan-james-couture-crisiant.html](https://www.readybrides.com/en/jonathan-james-couture/36339-jonathan-james-couture-crisiant.html)


text:
package seers.astvisitortest;

import java.util.*;
import java.util.stream.Stream;

public class MapUtil
{

	public static TreeMap<String, Integer> sortMapByValue(HashMap<String, Integer> map){
		Comparator<String> comparator = new ValueComparator(map);
		//TreeMap is a map sorted by its keys.
		//The comparator is used to sort the TreeMap by keys.
		TreeMap<String, Integer> result = new TreeMap<String, Integer>(comparator);
		result.putAll(map);
		return result;
	}

	/*
	static Map sortByValue(Map map) {
	     List list = new LinkedList(map.entrySet());
	     Collections.sort(list, new Comparator() {
	          public int compare(Object o1, Object o2) {
	               return ((Comparable) ((Map.Entry) (o1)).getValue())
	              .compareTo(((Map.Entry) (o2)).getValue());
	          }
	     });

	    Map result = new LinkedHashMap();
	    for (Iterator it = list.iterator(); it.hasNext();) {
	        Map.Entry entry = (Map.Entry)it.next();
	        result.put(entry.getKey(), entry.getValue());
	    }
	    return result;
	}
	*/

	/*
    public static <K, V extends Comparable<? super V>> Map<K, V>
        sortByValue( Map<K, V> map )
    {
        List<Map.Entry<K, V>> list =
            new LinkedList<Map.Entry<K, V>>( map.entrySet() );
        Collections.sort( list, new Comparator<Map.Entry<K, V>>()
        {
            public int compare( Map.Entry<K, V> o1, Map.Entry<K, V> o2 )
            {
                return (o1.getValue()).compareTo( o2.getValue() );
            }
        } );

        Map<K, V> result = new LinkedHashMap<K, V>();
        for (Map.Entry<K, V> entry : list)
        {
            result.put( entry.getKey(), entry.getValue() );
        }
        return result;
    }
	*/

	/*
    public static <K, V extends Comparable<? super V>> Map<K, V>
    sortByValue( Map<K, V> map )
    {
    Map<K, V> result = new LinkedHashMap<>();
    Stream<Map.Entry<K, V>> st = map.entrySet().stream();

    st.sorted( Map.Entry.comparingByValue() )
        .forEachOrdered( e -> result.put(e.getKey(), e.getValue()) );

    return result;
    }
    */

}


text:
package abi11_0_0.host.exp.exponent;

import abi11_0_0.com.facebook.react.bridge.ReadableArray;
import abi11_0_0.com.facebook.react.bridge.ReadableMap;
import abi11_0_0.com.facebook.react.bridge.ReadableMapKeySetIterator;

import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;

import host.exp.exponent.analytics.EXL;

public class ReadableObjectUtils {

  private static final String TAG = ReadableObjectUtils.class.getSimpleName();

  public static JSONObject readableMapToJson(ReadableMap map) {
    // TODO: maybe leverage Arguments.toBundle somehow?
    JSONObject json = new JSONObject();

    try {
      ReadableMapKeySetIterator iterator = map.keySetIterator();
      while (iterator.hasNextKey()) {
        String key = iterator.nextKey();
        switch (map.getType(key)) {
          case Null:
            json.put(key, null);
            break;
          case Boolean:
            json.put(key, map.getBoolean(key));
            break;
          case Number:
            json.put(key, map.getDouble(key));
            break;
          case String:
            json.put(key, map.getString(key));
            break;
          case Map:
            json.put(key, readableMapToJson(map.getMap(key)));
            break;
          case Array:
            json.put(key, readableArrayToJson(map.getArray(key)));
            break;
        }
      }
    } catch (JSONException e) {
      // TODO
      EXL.d(TAG, "Error converting ReadableMap to json: " + e.toString());
    }

    return json;
  }

  public static JSONArray readableArrayToJson(ReadableArray array) {
    // TODO: maybe leverage Arguments.toBundle somehow?
    JSONArray json = new JSONArray();

    try {
      for (int i = 0; i < array.size(); i++) {
        switch (array.getType(i)) {
          case Null:
            json.put(null);
            break;
          case Boolean:
            json.put(array.getBoolean(i));
            break;
          case Number:
            json.put(array.getDouble(i));
            break;
          case String:
            json.put(array.getString(i));
            break;
          case Map:
            json.put(readableMapToJson(array.getMap(i)));
            break;
          case Array:
            json.put(readableArrayToJson(array.getArray(i)));
            break;
        }
      }
    } catch (JSONException e) {
      // TODO
      EXL.d(TAG, "Error converting ReadableArray to json: " + e.toString());
    }

    return json;
  }
}


text:
package com.xinyu.mwp.helper;

import java.io.Serializable;

public class ShadowProperty implements Serializable {
    /**
     * 阴影颜色
     */
    private int shadowColor;
    /**
     * 阴影半径
     */
    private int shadowRadius;
    /**
     * 阴影x偏移
     */
    private int shadowDx;
    /**
     * 阴影y偏移
     */
    private int shadowDy;

    public int getShadowOffset() {
        return getShadowOffsetHalf() * 2;
    }

    public int getShadowOffsetHalf() {
        return 0 >= shadowRadius ? 0 : Math.max(shadowDx, shadowDy) + shadowRadius;
    }

    public int getShadowColor() {
        return shadowColor;
    }

    public ShadowProperty setShadowColor(int shadowColor) {
        this.shadowColor = shadowColor;
        return this;
    }

    public int getShadowRadius() {
        return shadowRadius;
    }

    public ShadowProperty setShadowRadius(int shadowRadius) {
        this.shadowRadius = shadowRadius;
        return this;
    }

    public int getShadowDx() {
        return shadowDx;
    }

    public ShadowProperty setShadowDx(int shadowDx) {
        this.shadowDx = shadowDx;
        return this;
    }

    public int getShadowDy() {
        return shadowDy;
    }

    public ShadowProperty setShadowDy(int shadowDy) {
        this.shadowDy = shadowDy;
        return this;
    }
}


text:
import { BeanStub } from "./context/beanStub";
import { Column } from "./entities/column";
import { ColumnEventType } from "./events";
export declare class SortController extends BeanStub {
    private static DEFAULT_SORTING_ORDER;
    private columnController;
    private columnApi;
    private gridApi;
    progressSort(column: Column, multiSort: boolean, source?: ColumnEventType): void;
    setSortForColumn(column: Column, sort: string | null, multiSort: boolean, source?: ColumnEventType): void;
    private updateSortIndex;
    onSortChanged(): void;
    getSortModel: () => {
        colId: string;
        sort: string;
    }[];
    isSortActive(): boolean;
    dispatchSortChangedEvents(): void;
    private clearSortBarThisColumn;
    private getNextSortDirection;
    getColumnsWithSortingOrdered(): Column[];
    getSortForRowController(): any[];
}


text:
<?php

declare(strict_types=1);

namespace app\controllers;

use Yii;
use app\actions\show\v2\BattleAction;
use app\actions\show\v2\EditBattleAction;
use app\actions\show\v2\UserAction;
use app\actions\show\v2\UserStatByMapAction;
use app\actions\show\v2\UserStatByMapRuleAction;
use app\actions\show\v2\UserStatByMapRuleDetailAction;
use app\actions\show\v2\UserStatByRuleAction;
use app\actions\show\v2\UserStatByWeaponAction;
use app\actions\show\v2\UserStatCauseOfDeathAction;
use app\actions\show\v2\UserStatGachiAction;
use app\actions\show\v2\UserStatMonthlyReportAction;
use app\actions\show\v2\UserStatNawabariAction;
use app\actions\show\v2\UserStatReportAction;
use app\actions\show\v2\UserStatSplatfestAction;
use app\actions\show\v2\UserStatVsWeaponAction;
use app\actions\show\v2\UserStatWeaponAction;
use app\components\web\Controller;
use yii\filters\AccessControl;
use yii\filters\AccessRule;
use yii\filters\VerbFilter;

class ShowV2Controller extends Controller
{
    public $layout = "main";

    public function behaviors()
    {
        return [
            'verbs' => [
                'class' => VerbFilter::class,
                'actions' => [
                    'edit-battle' => [ 'head', 'get', 'post' ],
                    '*' => [ 'head', 'get' ],
                ],
            ],
            'access' => [
                'class' => AccessControl::class,
                'only' => [ 'edit-battle' ],
                'rules' => [
                    [
                        'actions' => [ 'edit-battle' ],
                        'roles' => ['@'],
                        'allow' => true,
                    ],
                ],
                'ruleConfig' => [
                    'class' => AccessRule::class,
                    'matchCallback' => function (AccessRule $rule, EditBattleAction $action): bool {
                        return (bool)$action->isEditable;
                    },
                ],
            ],
        ];
    }

    public function actions()
    {
        return [
            'battle' => [ 'class' => BattleAction::class ],
            'edit-battle' => [ 'class' => EditBattleAction::class ],
            'user' => [ 'class' => UserAction::class ],
            // 'user-stat-by-map' => [ 'class' => UserStatByMapAction::class ],
            'user-stat-by-map-rule' => [ 'class' => UserStatByMapRuleAction::class ],
            // 'user-stat-by-map-rule-detail' => [ 'class' => UserStatByMapRuleDetailAction::class ],
            // 'user-stat-by-rule' => [ 'class' => UserStatByRuleAction::class ],
            'user-stat-by-weapon' => [ 'class' => UserStatByWeaponAction::class ],
            // 'user-stat-cause-of-death' => [ 'class' => UserStatCauseOfDeathAction::class ],
            'user-stat-gachi' => [ 'class' => UserStatGachiAction::class ],
            'user-stat-monthly-report' => [ 'class' => UserStatMonthlyReportAction::class ],
            'user-stat-nawabari' => [ 'class' => UserStatNawabariAction::class ],
            'user-stat-report' => [ 'class' => UserStatReportAction::class ],
            'user-stat-splatfest' => [ 'class' => UserStatSplatfestAction::class ],
            // 'user-stat-vs-weapon' => [ 'class' => UserStatVsWeaponAction::class ],
            // 'user-stat-weapon' => [ 'class' => UserStatWeaponAction::class ],
        ];
    }
}


text:
package entity

const (
	CloudFoundryPropertiesTemplate string = `{{define "properties"}}
properties:
  system_domain: {{with .CloudFoundryProperties}}{{.SystemDomain}}{{end}}
  system_domain_organization: {{with .CloudFoundryProperties}}{{.SystemDomainOrg}}{{end}}
  support_address: http://support.{{with .CloudFoundryProperties}}{{.SystemDomain}}{{end}}
  domain: {{with .CloudFoundryProperties}}{{.SystemDomain}}{{end}}
  app_domains:
  - {{with .CloudFoundryProperties}}{{.SystemDomain}}{{end}}
  description: CCI PaaS v2 sponsored by Pivotal
  syslog_aggregator:
    address: {{range .CloudFoundryJobs.syslog_aggregator.StaticIp}}{{.}}{{end}}
    port: 80
  etcd:
    machines:{{range .CloudFoundryJobs.etcd.StaticIp}}
    - {{.}}{{end}}
  etcd_metrics_server:
    etcd:
      machine: 127.0.0.1
      port: 4001
    nats:
      machines:{{range .CloudFoundryJobs.nats.StaticIp}}
      - {{.}}{{end}}
      port: 4222
      username: nats
      password: c1oudc0w
    status:
      username: etcd
      password: c1oudc0w
  ha_proxy:
    ssl_pem: ! '-----BEGIN CERTIFICATE-----

      MIICLzCCAZgCCQCSoIG3LoeSMTANBgkqhkiG9w0BAQUFADBcMQswCQYDVQQGEwJV

      UzELMAkGA1UECBMCQ0ExFjAUBgNVBAcTDVNhbiBGcmFuY2lzY28xEDAOBgNVBAoT

      B1Bpdm90YWwxFjAUBgNVBAsTDUNsb3VkIEZvdW5kcnkwHhcNMTMxMDE3MjMxNzM5

      WhcNMTQxMDE3MjMxNzM5WjBcMQswCQYDVQQGEwJVUzELMAkGA1UECBMCQ0ExFjAU

      BgNVBAcTDVNhbiBGcmFuY2lzY28xEDAOBgNVBAoTB1Bpdm90YWwxFjAUBgNVBAsT

      DUNsb3VkIEZvdW5kcnkwgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBANqyjJMH

      FDbJ4XM2vLRxz6i82Gd2Y2dnAKYgu67FgheHGQJSv38lvn8JrAOBXu2QJgP8sJa+

      XqUWUTMo9BWvhvedQLojtcpLdULc0FhlIXn8bThGlTQyrSg9QJobhQZGziFVrdQM

      UZy4X+s6A2Szb9iOg3TYibnnfnuvdZli83eRAgMBAAEwDQYJKoZIhvcNAQEFBQAD

      gYEAbFu65WT+czpiJqHhNz5AnGYA8kieVlV7KhcljLtsU4Sxut5Vq9uXFBE09KCg

      YkyZ9KfzXArTeRCfcbm5xq12I+1nf6q0QjT1y3P6ztax0rpyb0i+4GWvA+ruMhfx

      n4QM1MkiJVYBGKkXFZDd1zsdR3pY4vm1uiMY75IvJQfgb08=

      -----END CERTIFICATE-----

      -----BEGIN RSA PRIVATE KEY-----

      MIICXQIBAAKBgQDasoyTBxQ2yeFzNry0cc+ovNhndmNnZwCmILuuxYIXhxkCUr9/

      Jb5/CawDgV7tkCYD/LCWvl6lFlEzKPQVr4b3nUC6I7XKS3VC3NBYZSF5/G04RpU0

      Mq0oPUCaG4UGRs4hVa3UDFGcuF/rOgNks2/YjoN02Im55357r3WZYvN3kQIDAQAB

      AoGAa88G81fTBCtDA1vhbIaKWuE1QNOgrxGcxUhvnPlqZxTHJFkMY66EmPV4oYW9

      +RhNVTvVBYq092boAnNW1/Xebvrk1SnBDkrLntnGPmExkatOkPTFFlNXfePu6qOJ

      ULwYg8rKRwpvLoQXxbzMDXApPBifBNWGHVneGuHLpwPEQgECQQD0IJOecEyorrCR

      6+wmJBS/IwqQO0Ooj7kZEg65MHi9exVe+XFvP0lW2NAUsDuBLz79hjslSqIJjRG8

      c6q36oqhAkEA5VVeEip+T4DV12I5A5maGexVMeC92K7EGU/H8YhltxVZ/RtNngdT

      3r19WeDbDF7R5CJy2f7AYullk3S6fkk28QJBALdEiW1k4rezRMyW7tYHOifvN2vl

      gbpWAt/GRZVSxSGB+B4vZq/cM8NlynftgQ5PGJucnGQ3bgN7irgNoTimc2ECQFMX

      QBMy5DroAhKcmu2r/IKB90gwFnjosVI+bsIbWkcgbE9hUhj8rK2aWE11Q8hSnpea

      x6QmQgxUZiIr+9n/qvECQQDiDIeSmo2mRYsaqr4CQ3Ak+EDjsm9XTpXHuqm+xgFO

      iDIeQCWd3/twqdDTR7FaDE7Q0i559u7A1yLumUn8caLF

      -----END RSA PRIVATE KEY-----'
  networks:
    apps: {{$.NetWorks.private.Name}}
  ssl:
    skip_cert_verify: true
  nats:
    address: {{range .CloudFoundryJobs.nats.StaticIp}}{{.}}{{end}}
    user: nats
    password: c1oudc0w
    port: 4222
    machines:{{range .CloudFoundryJobs.nats.StaticIp}}
    - {{.}}{{end}}
    authorization_timeout: 30
    debug: true
    trace: true
    monitor_port: 0
    prof_port: 0
  router:
    servers:
      z1:{{range .CloudFoundryJobs.gorouter.StaticIp}}
      - {{.}}{{end}}
      z2: []
    endpoint_timeout: 120
    status:
      user: router
      password: c1oudc0w
  loggregator_endpoint:
    host: {{range .CloudFoundryJobs.loggregator.StaticIp}}{{.}}{{end}}
    shared_secret: c1oudc0w
    use_ssl: false
    port: 3456
  loggregator:
    servers:
      z1:{{range .CloudFoundryJobs.loggregator.StaticIp}}
      - {{.}}{{end}}
    status:
      user: loggregator
      password: c1oudc0w
      port: 5768
  traffic_controller:
    zone: z1
    status:
      user: trafic_controller
      password: c1oudc0w
      port: 6789
  collector:
    datadog_api_key: collector
    datadog_application_key: c1oudc0w
    deployment_name: cf-release
    use_datadog: false
    use_tsdb: false
  disk_quota_enabled: true
  debian_nfs_server:
    no_root_squash: true
  nfs_server:
    no_root_squash: true
    address: {{range .CloudFoundryJobs.nfs.StaticIp}}{{.}}{{end}}
    network: {{.NetWorks.private.Cidr}}
    share: /var/vcap/store
  directory_server_protocol: http
  dea_next:
    advertise_interval_in_seconds: 5
    allow_networks: []
    default_health_check_timeout: 60
    deny_networks: []
    directory_server_protocol: http
    disk_mb: 16384
    disk_overcommit_factor: 2
    evacuation_bail_out_time_in_seconds: 0
    heartbeat_interval_in_seconds: 10
    instance_disk_inode_limit: 200000
    kernel_network_tuning_enabled: false
    logging_level: debug
    memory_mb: 8192
    memory_overcommit_factor: 3
    staging_disk_inode_limit: 200000
    staging_disk_limit_mb: 4096
    staging_memory_limit_mb: 1024
  dea_logging_agent:
    status:
      user: admin
      password: c1oudc0w
  ccdb: &21120980
    address: {{range .CloudFoundryJobs.postgres.StaticIp}}{{.}}{{end}}
    databases:
    - citext: true
      name: ccdb
      tag: cc
    db_scheme: postgres
    port: 5524
    roles:
    - name: ccadmin
      password: c1oudc0w
      tag: admin
  ccdb_ng: *21120980
  cc: &21119160
    bulk_api_user: bulk_api
    bulk_api_password: c1oudc0w
    srv_api_uri: http://api.{{with .CloudFoundryProperties}}{{.SystemDomain}}{{end}}
    db_logging_level: debug2
    ccng.logging_level: debug2
    db_encryption_key: c1oudc0w
    quota_definitions:
      default:
        memory_limit: {{with .Properties.JobProperties}}{{if .cc_quota_definitions_memory_limit}}{{.cc_quota_definitions_memory_limit.Value}}{{else}}524288{{end}}{{end}}
        total_services: {{with .Properties.JobProperties}}{{if .cc_quota_definitions_total_services}}{{.cc_quota_definitions_total_services.Value}}{{else}}1000{{end}}{{end}}
        non_basic_services_allowed: true
        total_routes: 1000
        trial_db_allowed: true
    hm9000_noop: false
    staging_upload_user: uploaduser
    staging_upload_password: c1oudc0w
    install_buildpacks:
    - name: java_buildpack
      package: buildpack_java
    - name: ruby_buildpack
      package: buildpack_ruby
    - name: nodejs_buildpack
      package: buildpack_nodejs
  ccng: *21119160
  databases:
    db_scheme: postgres
    address: {{range .CloudFoundryJobs.postgres.StaticIp}}{{.}}{{end}}
    port: 5524
    roles:
    - tag: admin
      name: ccadmin
      password: c1oudc0w
    - tag: admin
      name: uaaadmin
      password: c1oudc0w
    databases:
    - tag: cc
      name: ccdb
      citext: true
    - tag: uaa
      name: uaadb
      citext: true
  db: databases
  login:
    enabled: false
  uaa:
    admin:
      client_secret: c1oudc0w
    batch:
      password: batch
      username: c1oudc0w
    catalina_opts: -Xmx512m -XX:MaxPermSize=256m
    cc:
      client_secret: c1oudc0w
    client:
      autoapprove:
      - cf
    clients:
      cf:
        override: true
        authorized-grant-types: password,implicit,refresh_token
        authorities: uaa.none
        scope: cloud_controller.read,cloud_controller.write,openid,password.write,cloud_controller.admin,scim.read,scim.write
        access-token-validity: 7200
        refresh-token-validity: 1209600
      app-direct:
        access-token-validity: 1209600
        authorities: app_direct_invoice.write
        authorized-grant-types: authorization_code,client_credentials,password,refresh_token,implicit
        override: true
        redirect-uri: http://console.{{with .CloudFoundryProperties}}{{.SystemDomain}}{{end}}
        refresh-token-validity: 1209600
        secret: c1oudc0w
      cc_service_broker_client:
      developer_console:
        access-token-validity: 1209600
        authorities: scim.write,scim.read,cloud_controller.read,cloud_controller.write,password.write,uaa.admin,uaa.resource,cloud_controller.admin,billing.admin
        authorized-grant-types: authorization_code,client_credentials
        override: true
        redirect-uri: http://console.{{with .CloudFoundryProperties}}{{.SystemDomain}}{{end}}/oauth/callback
        refresh-token-validity: 1209600
        scope: openid,cloud_controller.read,cloud_controller.write,password.write,console.admin,console.support
        secret: c1oudc0w
      login:
        authorities: oauth.login
        authorized-grant-types: authorization_code,client_credentials,refresh_token
        override: true
        redirect-uri: http://login.{{with .CloudFoundryProperties}}{{.SystemDomain}}{{end}}
        scope: openid,oauth.approvals
        secret: c1oudc0w
      servicesmgmt:
        authorities: uaa.resource,oauth.service,clients.read,clients.write,clients.secret
        authorized-grant-types: authorization_code,client_credentials,password,implicit
        autoapprove: true
        override: true
        redirect-uri: http://servicesmgmt.{{with .CloudFoundryProperties}}{{.SystemDomain}}{{end}}/auth/cloudfoundry/callback
        scope: openid,cloud_controller.read,cloud_controller.write
        secret: c1oudc0w
      space-mail:
        access-token-validity: 1209600
        authorities: scim.read,scim.write,cloud_controller.admin
        authorized-grant-types: client_credentials
        override: true
        refresh-token-validity: 1209600
        secret: c1oudc0w
      support-services:
        access-token-validity: 1209600
        authorities: portal.users.read
        authorized-grant-types: authorization_code,client_credentials
        redirect-uri: http://support-signon.{{with .CloudFoundryProperties}}{{.SystemDomain}}{{end}}
        refresh-token-validity: 1209600
        scope: scim.write,scim.read,openid,cloud_controller.read,cloud_controller.write
        secret: c1oudc0w
    jwt:
      signing_key: ! '-----BEGIN RSA PRIVATE KEY-----

        MIICXAIBAAKBgQDHFr+KICms+tuT1OXJwhCUmR2dKVy7psa8xzElSyzqx7oJyfJ1

        JZyOzToj9T5SfTIq396agbHJWVfYphNahvZ/7uMXqHxf+ZH9BL1gk9Y6kCnbM5R6

        0gfwjyW1/dQPjOzn9N394zd2FJoFHwdq9Qs0wBugspULZVNRxq7veq/fzwIDAQAB

        AoGBAJ8dRTQFhIllbHx4GLbpTQsWXJ6w4hZvskJKCLM/o8R4n+0W45pQ1xEiYKdA

        Z/DRcnjltylRImBD8XuLL8iYOQSZXNMb1h3g5/UGbUXLmCgQLOUUlnYt34QOQm+0

        KvUqfMSFBbKMsYBAoQmNdTHBaz3dZa8ON9hh/f5TT8u0OWNRAkEA5opzsIXv+52J

        duc1VGyX3SwlxiE2dStW8wZqGiuLH142n6MKnkLU4ctNLiclw6BZePXFZYIK+AkE

        xQ+k16je5QJBAN0TIKMPWIbbHVr5rkdUqOyezlFFWYOwnMmw/BKa1d3zp54VP/P8

        +5aQ2d4sMoKEOfdWH7UqMe3FszfYFvSu5KMCQFMYeFaaEEP7Jn8rGzfQ5HQd44ek

        lQJqmq6CE2BXbY/i34FuvPcKU70HEEygY6Y9d8J3o6zQ0K9SYNu+pcXt4lkCQA3h

        jJQQe5uEGJTExqed7jllQ0khFJzLMx0K6tj0NeeIzAaGCQz13oo2sCdeGRHO4aDh

        HH6Qlq/6UOV5wP8+GAcCQFgRCcB+hrje8hfEEefHcFpyKH+5g1Eu1k0mLrxK2zd+

        4SlotYRHgPCEubokb2S1zfZDWIXW3HmggnGgM949TlY=

        -----END RSA PRIVATE KEY-----'
      verification_key: ! '-----BEGIN PUBLIC KEY-----

        MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDHFr+KICms+tuT1OXJwhCUmR2d

        KVy7psa8xzElSyzqx7oJyfJ1JZyOzToj9T5SfTIq396agbHJWVfYphNahvZ/7uMX

        qHxf+ZH9BL1gk9Y6kCnbM5R60gfwjyW1/dQPjOzn9N394zd2FJoFHwdq9Qs0wBug

        spULZVNRxq7veq/fzwIDAQAB

        -----END PUBLIC KEY-----'
    no_ssl: true
    scim:
      users:
      - admin|admin|scim.write,scim.read,openid,cloud_controller.admin
    url: http://uaa.{{with .CloudFoundryProperties}}{{.SystemDomain}}{{end}}
  uaadb:
    address: {{range .CloudFoundryJobs.postgres.StaticIp}}{{.}}{{end}}
    databases:
    - citext: true
      name: uaadb
      tag: uaa
    db_scheme: postgresql
    port: 5524
    roles:
    - name: uaaadmin
      password: c1oudc0w
      tag: admin
{{end}}`
)


text:
/* tslint:disable */
/* eslint-disable */
// This file was automatically generated and should not be edited.

// ====================================================
// GraphQL fragment: Money
// ====================================================

export interface Money {
  __typename: "Money";
  amount: number;
  currency: string;
}


text:
package org.opencb.opencga.storage.hadoop.variant.mr;

import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.hbase.mapreduce.TableInputFormat;

/**
 * Created on 18/02/19.
 *
 * @author Jacobo Coll <jacobo167@gmail.com>
 */
public class PartialResultTableInputFormat extends TableInputFormat {

    @Override
    public void setConf(Configuration configuration) {
        super.setConf(configuration);
        getScan().setAllowPartialResults(true);
    }
}


text:
[View Javadoc](../../../../../../apidocs/org/apache/struts/webapp/dispatch/LookupDispatchExampleAction.html.md)

    1
    21  package org.apache.struts.webapp.dispatch;
    22
    23  import java.util.Map;
    24  import java.util.HashMap;
    25  import javax.servlet.http.HttpServletRequest;
    26  import javax.servlet.http.HttpServletResponse;
    27  import org.apache.struts.actions.LookupDispatchAction;
    28  import org.apache.struts.action.ActionForm;
    29  import org.apache.struts.action.ActionForward;
    30  import org.apache.struts.action.ActionMapping;
    31  import org.apache.struts.action.ActionMessage;
    32  import org.apache.struts.action.ActionMessages;
    33
    34  /**
    35   * Example LookupDispatchAction.
    36   *
    37   * @version $Rev: 471754 $ $Date: 2006-11-06 08:55:09 -0600 (Mon, 06 Nov 2006) $
    38   */
    39  public class LookupDispatchExampleAction extends LookupDispatchAction {
    40
    41      private Map keyMethodMap = new HashMap();
    42      private int fooCount;
    43      private int barCount;
    44
    45      /**
    46       * Constructor - populate the key method map.
    47       */
    48      public LookupDispatchExampleAction() {
    49          keyMethodMap.put("button.foo.label", "doFoo");
    50          keyMethodMap.put("button.bar.label", "doBar");
    51      }
    52
    53      /**
    54       * Example "foo" method.
    55       *
    56       * @param mapping The ActionMapping used to select this instance
    57       * @param form The optional ActionForm bean for this request
    58       * @param request The servlet request we are processing
    59       * @param response The servlet response we are creating
    60       *
    61       * @exception Exception if business logic throws an exception
    62       */
    63      public ActionForward doFoo(ActionMapping mapping,
    64                                 ActionForm form,
    65                                 HttpServletRequest request,
    66                                 HttpServletResponse response)
    67          throws Exception {
    68
    69          fooCount++;
    70
    71          ActionMessages messages = new ActionMessages();
    72          messages.add("foo", new ActionMessage("count.foo.message", fooCount+""));
    73          saveMessages(request, messages);
    74
    75          return (mapping.findForward("success"));
    76
    77      }
    78
    79      /**
    80       * Example "bar" method.
    81       *
    82       * @param mapping The ActionMapping used to select this instance
    83       * @param form The optional ActionForm bean for this request
    84       * @param request The servlet request we are processing
    85       * @param response The servlet response we are creating
    86       *
    87       * @exception Exception if business logic throws an exception
    88       */
    89      public ActionForward doBar(ActionMapping mapping,
    90                                 ActionForm form,
    91                                 HttpServletRequest request,
    92                                 HttpServletResponse response)
    93          throws Exception {
    94          barCount++;
    95
    96          ActionMessages messages = new ActionMessages();
    97          messages.add("bar", new ActionMessage("count.bar.message", barCount+""));
    98          saveMessages(request, messages);
    99
    100         return (mapping.findForward("success"));
    101
    102     }
    103
    104     /**
    105      * Provides the mapping from resource key to method name.
    106      *
    107      * @return Resource key / method name map.
    108      */
    109     protected Map getKeyMethodMap() {
    110         return keyMethodMap;
    111     }
    112
    113 }

------------------------------------------------------------------------

This page was automatically generated by [Maven](http://maven.apache.org/)


text:
module B {
  requires custom.a;
}


text:
package edu.colorado.csdms.wmt.client.ui.panel;

import com.google.gwt.dom.client.Style.Unit;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.HorizontalPanel;
import com.google.gwt.user.client.ui.VerticalPanel;

import edu.colorado.csdms.wmt.client.Constants;

/**
 * A GWT composite widget that displays right-aligned "OK" and "Cancel"
 * buttons, with icons. Each button's text and icon can be modified.
 *
 * @author Mark Piper (mark.piper@colorado.edu)
 */
public class ChoicePanel extends Composite {

  private Button okButton;
  private Button cancelButton;

  /**
   * Makes a new ChoicePanel with the default "OK" and "Cancel" buttons.
   */
  public ChoicePanel() {

    okButton = new Button(Constants.FA_OK + "OK");
    cancelButton = new Button(Constants.FA_CANCEL + "Cancel");
    HorizontalPanel buttonPanel = new HorizontalPanel();
    buttonPanel.setSpacing(5); // px
    buttonPanel.add(okButton);
    buttonPanel.add(cancelButton);

    HorizontalPanel choicePanel = new HorizontalPanel();
    choicePanel.setWidth("100%");
    choicePanel.add(buttonPanel);

    VerticalPanel contents = new VerticalPanel();
    contents.add(choicePanel);

    okButton.setStyleName("wmt-Button");
    cancelButton.setStyleName("wmt-Button");
    okButton.getElement().getStyle().setMarginRight(3, Unit.PX);

    initWidget(contents);
  }

  /**
   * Returns the "OK" {@link Button} used in a ChoicePanel.
   */
  public Button getOkButton() {
    return okButton;
  }

  /**
   * Sets the "OK" {@link Button} used in a ChoicePanel.
   */
  public void setOkButton(Button okButton) {
    this.okButton = okButton;
  }

  /**
   * Returns the "Cancel" {@link Button} used in a ChoicePanel.
   */
  public Button getCancelButton() {
    return cancelButton;
  }

  /**
   * Sets the "Cancel" {@link Button} used in a ChoicePanel.
   */
  public void setCancelButton(Button cancelButton) {
    this.cancelButton = cancelButton;
  }

}


text:
package com.vaguehope.morrigan.tasks;

import static org.junit.Assert.*;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;

import java.time.Clock;
import java.time.Instant;
import java.time.ZoneOffset;
import java.util.List;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.Future;

import org.junit.Before;
import org.junit.Test;

public class AsyncTaskEventListenerTest {

	private Clock clock;

	@Before
	public void before() throws Exception {
		// Fri 13 Feb 23:31:30 GMT 2009
		this.clock = Clock.fixed(Instant.ofEpochSecond(1234567890L), ZoneOffset.UTC);
	}

	@Test
	public void itHasOneLineSummary() throws Exception {
		final AsyncTaskEventListener l = new AsyncTaskEventListener(123, this.clock);
		assertEquals(TaskState.UNSTARTED, l.state());
		assertEquals("123 [UNSTARTED] (no title)", l.oneLineSummary());

		l.onStart();
		assertEquals("123 [RUNNING 23:31] (no title)", l.oneLineSummary());
		l.setName("This is my task");
		assertEquals("123 [RUNNING 23:31] This is my task", l.oneLineSummary());

		l.beginTask("Second task", 69);
		assertEquals("123 [RUNNING 23:31] 0 of 69 Second task", l.oneLineSummary());

		l.subTask("Some sub task");
		assertEquals("123 [RUNNING 23:31] 0 of 69 Second task: Some sub task", l.oneLineSummary());

		l.worked(13);
		assertEquals("123 [RUNNING 23:31] 13 of 69 Second task: Some sub task", l.oneLineSummary());

		l.done(TaskOutcome.SUCCESS);
		assertEquals("123 [SUCCESS 23:31] Second task", l.oneLineSummary());
	}

	@Test
	public void itSummariesFailure() throws Exception {
		final AsyncTaskEventListener l = new AsyncTaskEventListener(123, this.clock);
		l.onStart();
		l.done(TaskOutcome.FAILED);
		assertEquals("123 [FAILED 23:31] (no title)", l.oneLineSummary());
	}

	@Test
	public void itSummariesCancelled() throws Exception {
		final AsyncTaskEventListener l = new AsyncTaskEventListener(123, this.clock);
		l.onStart();
		l.done(TaskOutcome.CANCELLED);
		assertEquals("123 [CANCELLED 23:31] (no title)", l.oneLineSummary());
	}

	@Test
	public void itTracksCancel() throws Exception {
		final AsyncTaskEventListener l = new AsyncTaskEventListener(123, this.clock);
		l.onStart();
		assertEquals(false, l.isCanceled());
		l.cancel();
		assertEquals(true, l.isCanceled());
	}

	@Test
	public void itHandlesFutureSuccessful() throws Exception {
		final AsyncTaskEventListener l = new AsyncTaskEventListener(123, this.clock);
		l.onStart();
		final Future<?> future = mock(Future.class);
		l.setFuture(future);
		assertEquals("123 [RUNNING 23:31] (no title)", l.oneLineSummary());

		when(future.isDone()).thenReturn(true);
		assertEquals("123 [RUNNING 23:31] (no title)", l.oneLineSummary());
	}

	@Test
	public void itHandlesFutureCancelled() throws Exception {
		final AsyncTaskEventListener l = new AsyncTaskEventListener(123, this.clock);
		l.onStart();
		final Future<?> future = mock(Future.class);
		l.setFuture(future);
		assertEquals("123 [RUNNING 23:31] (no title)", l.oneLineSummary());

		when(future.isCancelled()).thenReturn(true);
		when(future.isDone()).thenReturn(true);
		assertEquals("123 [CANCELLED 23:31] (no title)", l.oneLineSummary());
	}

	@Test
	public void itHandlesFutureFailure() throws Exception {
		final AsyncTaskEventListener l = new AsyncTaskEventListener(123, this.clock);
		l.onStart();
		final Future<?> future = mock(Future.class);
		l.setFuture(future);
		assertEquals("123 [RUNNING 23:31] (no title)", l.oneLineSummary());

		final Exception actualFailure = new Exception("Unhappy ending");
		final ExecutionException wrapper = new ExecutionException("Wrapper", actualFailure);
		when(future.get()).thenAnswer((a) -> {
			throw wrapper;
		});

		when(future.isDone()).thenReturn(true);
		assertEquals("123 [FAILED 23:31] (no title)", l.oneLineSummary());

		final List<String> msgs = l.getAllMessages();
		assertEquals("0213-233130.000 Failed: ", msgs.get(msgs.size() - 2));
		assertEquals("java.lang.Exception: Unhappy ending", msgs.get(msgs.size() - 1));
	}

}


text:
namespace Merchello.Plugin.Payments.Stripe.Provider
{
    /// <summary>
    /// Marker interface for an Stripe payment method
    /// </summary>
    public interface IStripePaymentGatewayMethod
    {

    }
}


text:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Microsoft.AspNet.Identity;

namespace DeadManSwitch.UI.Web.AspNetMvc
{
    /// <summary>
    /// Force user to reauthenticate if they haven't recently.
    /// Useful when performing sensitive operations, such as
    /// changing the email address associated with an account.
    /// </summary>
    public class MustReauthenticateAttribute : AuthorizeAttribute
    {
        private readonly int ReauthenticationExpiresInMinutes;

        public MustReauthenticateAttribute(int expiresInMinutes)
        {
            ReauthenticationExpiresInMinutes = expiresInMinutes;
        }

        protected override bool AuthorizeCore(HttpContextBase httpContext)
        {
            bool isAuthorized = base.AuthorizeCore(httpContext);
            if (isAuthorized)
            {
                var hasReauthenticated = Reauthenticator.HasUserReauthenticatedRecently(httpContext.User.Identity.GetUserName(), httpContext.Request.Cookies);
                if (hasReauthenticated)
                {
                    Reauthenticator.SlideReauthenticatedExpiration(httpContext, httpContext.User.Identity.GetUserName(), ReauthenticationExpiresInMinutes);
                }

                isAuthorized = hasReauthenticated;
            }

            return isAuthorized;
        }

    }
}


text:
<resources>

    <!-- Default screen margins, per the Android Design guidelines. -->
    <dimen name="activity_horizontal_margin">16dp</dimen>
    <dimen name="activity_vertical_margin">16dp</dimen>
    <dimen name="text_size_medium">20sp</dimen>
    <dimen name="spacing_between_expences">5dp</dimen>
</resources>


text:
var util = require('util');

module.exports = Logger;

function Logger(sink) {
  if (!(this instanceof Logger)) return new Logger(sink);

  this.sink = sink;
}

Logger.prototype.info = partial(LevelLog, 'INFO');
Logger.prototype.log = Logger.prototype.info;
Logger.prototype.warn = partial(LevelLog, 'WARN');
Logger.prototype.error = partial(LevelLog, 'ERROR');

function LevelLog(level/*, items... */) {
  var items = [].slice.call(arguments, 1);
  this.sink.write(level + ' ' +
                  util.format.apply(util, items) +
                  '\n');
}

function partial(fn/*, firstArgs... */) {
  var firstArgs = [].slice.call(arguments, 1);
  return function() {
    var args = firstArgs.concat([].slice.call(arguments));
    return fn.apply(this, args);
  };
}