text:
package com.brandon.snake.render.renderer.entity;

import com.brandon.snake.game.Cell;
import com.brandon.snake.graphics.Mesh;
import com.brandon.snake.graphics.Shader;
import com.brandon.snake.math.Matrix4f;
import com.brandon.snake.render.CellModel;

public class EntityModel extends CellModel {
	private Matrix4f[] modelPtr;
	private EntityAddAnimation add;
	private EntityRemoveAnimation rem;

	public EntityModel(Cell cell) {
		modelPtr = new Matrix4f[] { getCellModel(cell) };
		add = new EntityAddAnimation(modelPtr);
		add.start();
	}

	public void render(Shader s, Mesh m, boolean paused) {
		if (add != null) {
			add.update(paused);

			if (add.isFinished()) {
				add = null;
			}
		}
		if (rem != null) {
			rem.update(paused);
		}
		s.setUniformMat4f("model", modelPtr[0]);
		m.render();
	}

	public void beginRemoving() {
		rem = new EntityRemoveAnimation(modelPtr);
		rem.start();
	}

	public boolean isDoneRemoving() {
		return rem != null && rem.isFinished();
	}
}

redpajama_set_name: RedPajamaGithub


text:
declare interface IInvitationManagerStrings {
  PropertyPaneDescription: string;
  ViewGroupName: string;
  TitleFieldLabel: string;
}

declare module 'invitationManagerStrings' {
  const strings: IInvitationManagerStrings;
  export = strings;
}


text:
module Stupidedi
  module Versions
    module FunctionalGroups
      module FiftyTen
        module ElementTypes

          autoload :Operators,
            "stupidedi/versions/functional_groups/005010/element_types/operators"

          autoload :DateVal,
            "stupidedi/versions/functional_groups/005010/element_types/date_val"

          autoload :DT,
            "stupidedi/versions/functional_groups/005010/element_types/date_val"

          autoload :FloatVal,
            "stupidedi/versions/functional_groups/005010/element_types/float_val"

          autoload :R,
            "stupidedi/versions/functional_groups/005010/element_types/float_val"

          autoload :IdentifierVal,
            "stupidedi/versions/functional_groups/005010/element_types/identifier_val"

          autoload :ID,
            "stupidedi/versions/functional_groups/005010/element_types/identifier_val"

          autoload :FixnumVal,
            "stupidedi/versions/functional_groups/005010/element_types/fixnum_val"

          autoload :Nn,
            "stupidedi/versions/functional_groups/005010/element_types/fixnum_val"

          autoload :StringVal,
            "stupidedi/versions/functional_groups/005010/element_types/string_val"

          autoload :AN,
            "stupidedi/versions/functional_groups/005010/element_types/string_val"

          autoload :TimeVal,
            "stupidedi/versions/functional_groups/005010/element_types/time_val"

          autoload :TM,
            "stupidedi/versions/functional_groups/005010/element_types/time_val"

          class SimpleElementDef < Schema::SimpleElementDef

            # @return [Symbol]
            attr_reader :id

            # @return [String]
            attr_reader :name

            # @return [String]
            attr_reader :description

            # @return [Integer]
            attr_reader :min_length

            # @return [Integer]
            attr_reader :max_length

            # @return [Schema::SegmentDef, Schema::CompositeElementDef]
            attr_reader :parent

            # @return [Class<Values::SimpleElementVal>]
            abstract :companion

            def initialize(id, name, min_length, max_length, description = nil, parent = nil)
              @id, @name, @min_length, @max_length, @description, @parent =
                id, name, min_length, max_length, description, parent

              if min_length < 1
                raise Exceptions::InvalidSchemaError,
                  "min_length must be positive"
              end

              if min_length > max_length
                raise Exceptions::InvalidSchemaError,
                  "min_length cannot be greater than max_length"
              end
            end

            # @return [SimpleElementDef]
            def copy(changes = {})
              self.class.new \
                changes.fetch(:id, @id),
                changes.fetch(:name, @name),
                changes.fetch(:min_length, @min_length),
                changes.fetch(:max_length, @max_length),
                changes.fetch(:description, @description),
                changes.fetch(:parent, @parent)
            end

            # Constructs a SimpleElementVal from the given `String`
            #
            # @return [Values::SimpleElementVal]
            def parse(string, usage)
              companion.parse(string, usage)
            end

            # Constructs a SimpleElementVal from the given `value`
            #
            # @return [Values::SimpleElementVal]
            def value(object, usage, position)
              companion.value(object, usage, position)
            end

            # Constructs an empty SimpleElementVal
            #
            # @return [Values::SimpleElementVal]
            def empty(usage, position)
              companion.empty(usage, position)
            end

            # @return [void]
            def pretty_print(q)
              type = self.class.name.attempt{|n| n.split('::').last }

              if type.blankness?
                q.text @id.to_s
              else
                q.text "#{type}[#{@id}]"
              end
            end
          end

        end
      end
    end
  end
end


text:
package org.apache.druid.query.aggregation.datasketches.hll;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.yahoo.sketches.hll.HllSketch;

import org.apache.druid.query.aggregation.AggregatorFactory;
import org.apache.druid.query.aggregation.AggregatorUtil;
import org.apache.druid.query.aggregation.PostAggregator;
import org.apache.druid.query.cache.CacheKeyBuilder;

import java.util.Comparator;
import java.util.Map;
import java.util.Objects;
import java.util.Set;

/**
 * Returns a human-readable summary of a given {@link HllSketch}.
 * This is a string returned by toString() method of the sketch.
 * This can be useful for debugging.
 * @author Alexander Saydakov
 */
public class HllSketchToStringPostAggregator implements PostAggregator
{

  private final String name;
  private final PostAggregator field;

  @JsonCreator
  public HllSketchToStringPostAggregator(
      @JsonProperty("name") final String name,
      @JsonProperty("field") final PostAggregator field
  )
  {
    this.name = name;
    this.field = field;
  }

  @Override
  public Set<String> getDependentFields()
  {
    return field.getDependentFields();
  }

  @Override
  public Comparator<String> getComparator()
  {
    return Comparator.nullsFirst(Comparator.naturalOrder());
  }

  @Override
  public String compute(final Map<String, Object> combinedAggregators)
  {
    final HllSketch sketch = (HllSketch) field.compute(combinedAggregators);
    return sketch.toString();
  }

  @Override
  @JsonProperty
  public String getName()
  {
    return name;
  }

  @Override
  public PostAggregator decorate(final Map<String, AggregatorFactory> aggregators)
  {
    return this;
  }

  @JsonProperty
  public PostAggregator getField()
  {
    return field;
  }

  @Override
  public String toString()
  {
    return getClass().getSimpleName() + "{" +
        "name='" + name + '\'' +
        ", field=" + field +
        "}";
  }

  @Override
  public boolean equals(final Object o)
  {
    if (this == o) {
      return true;
    }
    if (!(o instanceof HllSketchToStringPostAggregator)) {
      return false;
    }

    final HllSketchToStringPostAggregator that = (HllSketchToStringPostAggregator) o;

    if (!name.equals(that.name)) {
      return false;
    }

    return field.equals(that.field);
  }

  @Override
  public int hashCode()
  {
    return Objects.hash(name, field);
  }

  @Override
  public byte[] getCacheKey()
  {
    return new CacheKeyBuilder(AggregatorUtil.HLL_SKETCH_TO_STRING_CACHE_TYPE_ID)
        .appendString(name)
        .appendCacheable(field)
        .build();
  }

}


text:
package models;

import play.data.validation.IPv4Address;
import play.data.validation.IPv6Address;

public class IpAddressModel {

	@IPv4Address
	public String ipV4Address;

	@IPv6Address
	public String ipV6Address;

}


text: This is [Net Gusto](http://netgusto.com/ "Title") inline link.


text:
{%extends 'wiki/_base.html' %}
{% load staticfiles %}

{% block content %}
    {{ block.super }}
{#    ## Insert HTML Fragment Starting Here###}

Inventory

Inventory manager  allows user to add, edit, and remove hardware.   In addition, it can also generate reports with a list of all the  hardware and what events it is assigned to.

Adding Hardware

To add hardware to  the inventory:

Click  on Tables on the left-side menu  to expand, then click on Inventory

New  page will open with fields for new hardware information

;

In  the Serial Number field enter the  serial number of hardware you wish to add (i.e. 1YQZ87).  This field cannot be left blank.

Provide Description of hardware (i.e. Dell  Laptop)

Configuration (if  unknown it can be left blank)

Select  the Type of hardware that is being  added (i.e. laptop)

For Pool ID leave on Default Pool.

Click Save button to save the information  and add the hardware to inventory.

Searching and Editing Hardware

Application  features instant-search which allows for faster and instant searching of  hardware items.

      To  find a specific piece of hardware, user can use the serial number.  Alternatively, you can use description or  hardware type as a search term to get a list of all the items that match that  search term.

To  find a specific piece of hardware, user can use the serial number.  Alternatively, you can use description or  hardware type as a search term to get a list of all the items that match that  search term.

      To  find and edit a specific piece of equipment:

Click on Tables to expand the menu, then click on Inventory

          Inventory manager  page will open, with Search box near  the top

To find the hardware we want to edit,  enter the serial number

Instant search will  immediately list all the items that have that serial number

Click on the serial number to edit  information for that piece of hardware.

Generating Reports

To generate reports  for hardware:

Click on Tables on the left side menu, then click Inventory.

A new page will open with list of  hardware currently in the inventory.

The application offers 4 options for hardware  reports: CSV, Excel, PDF, and Print.  CSV, Excel, and PDF options allow the user to  generate a file and save it in selected format.   Print option opens a new page with a list of hardware that can be  printed out.

{#     ## Insert HTML Fragment ending Here###}

{% endblock %}


text:
#include "val_target.h"
#include "pal_interfaces_ns.h"
#include "val_framework.h"
#include "val_client_defs.h"
#include "val_attestation.h"

/**
    @brief    - This API will call the requested attestation function
    @param    - type : function code
                ...  : variable number of arguments
    @return   - Error status
**/

int32_t val_attestation_function(int type, ...)
{
    va_list      valist;
    val_status_t status;

    va_start(valist, type);
    status = pal_attestation_function(type, valist);
    va_end(valist);
    return status;
}


text:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
        <title>{% block title %}Jonge Democraten Nieuwsbrieven{% endblock %}</title>

{% block content %}{% endblock %}


text:
<?php

namespace SensioLabs\Melody\Resource;

/**
 * Metadata.
 *
 * @author Jérémy Derussé <jeremy@derusse.com>
 */
class Metadata
{
    private $id;
    private $owner;
    private $createdAd;
    private $updatedAt;
    private $revision;
    private $uri;

    public function __construct($id = null, $owner = null, \DateTime $createdAd = null, \DateTime $updatedAt = null, $revision = null, $uri = null)
    {
        $this->id = $id;
        $this->owner = $owner;
        $this->createdAd = $createdAd;
        $this->updatedAt = $updatedAt;
        $this->revision = $revision;
        $this->uri = $uri;
    }

    public function getId()
    {
        return $this->id;
    }

    public function getOwner()
    {
        return $this->owner;
    }

    public function getCreatedAt()
    {
        return $this->createdAd;
    }

    public function getUpdatedAt()
    {
        return $this->updatedAt;
    }

    public function getRevision()
    {
        return $this->revision;
    }

    public function getUri()
    {
        return $this->uri;
    }
}


text:
/*
 * Contains printing logic specific to a particular
 * sub system, here USB drivers.
 */

#ifndef __DRIVER_DEBUG_H
#define __DRIVER_DEBUG_H

#include <usb/debug.h>

#if defined(DRIVER_LOCAL_DEBUG) || defined(DRIVER_GLOBAL_DEBUG)
#define dprintf(x...) printf("USB_DRIVER: " x)
#else
#define dprintf(x...) ((void)0)
#endif

#endif                          // __DRIVER_DEBUG_H


text:
module PostmonRuby
  module Finders
    class CityFinder < PostmonRuby::Finders::Finder
      def endpoint
        "/cidade"
      end

      def arguments_size
        2
      end

      def search(*arguments)
        arguments.flatten!
        PostmonRuby::City.new( PostmonRuby::Http.get(self.arguments_uri(arguments)) )
      end
    end
  end
end


text:
package com.wxxr.nirvana.json;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;

import org.junit.Test;

import com.wxxr.nirvana.json.JSONReader;
/**
 * User: mcucchiara
 * Date: 10/11/11
 * Time: 17.26
 */
public class JSONReaderTest {
    private JSONReader reader = new JSONReader();

    @Test
    public void testExponentialNumber() throws Exception {
        Object ret = reader.read("5e-5");
        assertNotNull(ret);
        assertEquals(Double.class, ret.getClass());
        assertEquals(5.0E-5, ret);
    }

    @Test
    public void testExponentialNumber2() throws Exception {
        Object ret = reader.read("123.4e10");
        assertNotNull(ret);
        assertEquals(Double.class, ret.getClass());
        assertEquals(123.4e10, ret);
    }

    @Test
    public void testDecimalNumber() throws Exception {
        Object ret = reader.read("3.2");
        assertNotNull(ret);
        assertEquals(Double.class, ret.getClass());
        assertEquals(3.2, ret);
    }

    @Test
    public void testNaturalNumber() throws Exception {
        Object ret = reader.read("123");
        assertNotNull(ret);
        assertEquals(Long.class, ret.getClass());
        assertEquals(123L, ret);
    }
}


text:
package org.squonk.execution.steps.impl;

import org.squonk.camel.processor.ValueTransformerProcessor;
import org.squonk.core.DefaultServiceDescriptor;
import org.squonk.core.ServiceConfig;
import org.squonk.dataset.Dataset;
import org.squonk.dataset.transform.TransformDefinitions;
import org.squonk.execution.steps.StepDefinitionConstants;
import org.squonk.io.IODescriptors;
import org.squonk.options.MultiLineTextTypeDescriptor;
import org.squonk.options.OptionDescriptor;
import org.squonk.types.io.JsonHandler;

import java.util.Date;
import java.util.logging.Logger;

/**
 *
 * @author timbo
 */
public class ValueTransformerStep extends AbstractDatasetStep {

    private static final Logger LOG = Logger.getLogger(ValueTransformerStep.class.getName());

    public static final DefaultServiceDescriptor SERVICE_DESCRIPTOR = new DefaultServiceDescriptor(
            "core.dataset.transformvalues.v1",
            "TransformValues",
            "Transform dataset values",
            new String[]{"transform", "convert", "dataset"},
            null, "icons/transform_basic.png",
            ServiceConfig.Status.ACTIVE,
            new Date(),
            IODescriptors.createBasicObjectDatasetArray(StepDefinitionConstants.VARIABLE_INPUT_DATASET),
            IODescriptors.createBasicObjectDatasetArray(StepDefinitionConstants.VARIABLE_OUTPUT_DATASET),
            new OptionDescriptor[]{

                    new OptionDescriptor<>(new MultiLineTextTypeDescriptor(10, 60, MultiLineTextTypeDescriptor.MIME_TYPE_SCRIPT_GROOVY),
                            StepDefinitionConstants.ValueTransformer.OPTION_TRANSFORMS, "Transform Definitions",
                            "Definition of the transforms to perform", OptionDescriptor.Mode.User)
            },
            null, null, null,
            ValueTransformerStep.class.getName()
    );

    public static final String VAR_INPUT_DATASET = StepDefinitionConstants.VARIABLE_INPUT_DATASET;
    public static final String VAR_OUTPUT_DATASET = StepDefinitionConstants.VARIABLE_OUTPUT_DATASET;
    public static final String OPTION_TRANSFORMS = StepDefinitionConstants.ValueTransformer.OPTION_TRANSFORMS;

    /**
     * Add the transforms to the dataset Stream. NOTE: transforms will not occur
     * until a terminal operation is performed on the Stream. Normally no output is
     * created as the transforms are added to the input dataset which will be
     * transient, however if an output field is needed then specify a mapping for the
     * field named FIELD_OUTPUT_DATASET.
     *
     * @param input
     * @throws Exception
     */
    @Override
    protected Dataset doExecuteWithDataset(Dataset input) throws Exception {
        Object val = getOption(OPTION_TRANSFORMS);
        if (val == null) {
            throw new IllegalStateException("Transforms must be defined as option named " + OPTION_TRANSFORMS);
        }

        TransformDefinitions txs = null;
        if (val instanceof TransformDefinitions) {
            txs = (TransformDefinitions)val;
        } else { // otherwise it must be json representing TransformDefinitions
            txs = JsonHandler.getInstance().objectFromJson(val.toString(), TransformDefinitions.class);
        }
        LOG.info("Transform Definitions: " + txs);
        statusMessage = "Transforming dataset ...";
        ValueTransformerProcessor p = ValueTransformerProcessor.create(txs);
        Dataset result = p.execute(camelContext.getTypeConverter(), input);
        return result;

    }

}


text:
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const resolve_1 = require("./resolve");
class MissingRefError extends Error {
    constructor(resolver, baseId, ref, msg) {
        super(msg || `can't resolve reference ${ref} from id ${baseId}`);
        this.missingRef = (0, resolve_1.resolveUrl)(resolver, baseId, ref);
        this.missingSchema = (0, resolve_1.normalizeId)((0, resolve_1.getFullPath)(resolver, this.missingRef));
    }
}
exports.default = MissingRefError;
//# sourceMappingURL=ref_error.js.map


text:
// $Id: TOSMsg.java,v 1.3 2005/02/11 14:35:37 janhauer Exp $

package net.tinyos.message.eyesIFXv2;

import net.tinyos.message.MoteIF;

/**
 * A class that represents packets as they are actually exchanged with
 * motes:
 * - the data array (payload) is of selectable size (per-application)
 * - as a result, the crc field may be at different offsets
 * - there are no strength, ack or time fields
 */
public class TOSMsg extends BaseTOSMsg {

    /** Create a new TOSMsg of default size. */
    public TOSMsg() {
        super(MoteIF.defaultPacketSize);
    }

    /** Create a new TOSMsg of the given data_length. */
    public TOSMsg(int data_length) {
        super(data_length);
    }

    /**
     * Create a new TOSMsg with the given data_length
     * and base offset.
     */
    public TOSMsg(int data_length, int base_offset) {
        super(data_length, base_offset);
    }

    /**
     * Create a new TOSMsg using the given byte array
     * as backing store.
     */
    public TOSMsg(byte[] data) {
        super(data);
    }

    /**
     * Create a new TOSMsg using the given byte array
     * as backing store, with the given base offset.
     */
    public TOSMsg(byte[] data, int base_offset) {
        super(data, base_offset);
    }

    /**
     * Create a new TOSMsg using the given byte array
     * as backing store, with the given base offset and data length.
     */
    public TOSMsg(byte[] data, int base_offset, int data_length) {
        super(data, base_offset, data_length);
    }

    /**
     * Create a new TOSMsg embedded in the given message
     * at the given base offset.
     */
    public TOSMsg(net.tinyos.message.Message msg, int base_offset) {
        super(msg, base_offset, MoteIF.defaultPacketSize);
    }

    /**
     * Create a new TOSMsg embedded in the given message
     * at the given base offset and length.
     */
    public TOSMsg(net.tinyos.message.Message msg, int base_offset, int data_length) {
        super(msg, base_offset, data_length);
    }

    // Message-type-specific access methods appear below.

    /////////////////////////////////////////////////////////
    // Accessor methods for field: data
    //   Field type: byte[], unsigned
    //   Offset (bits): 40
    //   Size of each element (bits): 8
    //   Variable size (based on packet's dataLength())
    /////////////////////////////////////////////////////////

    /**
     * Return the number of elements in the array 'data'
     */
    public int numElements_data() {
        return dataLength() - offset_data(0) - size_crc();
    }

    // If mig were changed to generate the methods below in terms of
    // numElements, then these overrides would not be necessary

    /**
     * Return the offset (in bytes) of the field 'data'
     */
    public int offset_data(int index1) {
        int offset = 64;
	// We remove the max bounds test to keep this method static
	// (slight risk of overwriting crc, but we can live with that)
        if (index1 < 0)
	  throw new ArrayIndexOutOfBoundsException();
        offset += 0 + index1 * 8;
        return (offset / 8);
    }

    /**
     * Return the offset (in bits) of the field 'data'
     */
    public static int offsetBits_data(int index1) {
        int offset = 64;
	// We remove the max bounds test to keep this method static
	// (slight risk of overwriting crc, but we can live with that)
        if (index1 < 0)
	  throw new ArrayIndexOutOfBoundsException();
        offset += 0 + index1 * 8;
        return offset;
    }

    /**
     * Return the entire array 'data' as a byte[]
     */
    public byte[] get_data() {
        byte[] tmp = new byte[numElements_data()];
        for (int index0 = 0; index0 < numElements_data(0); index0++) {
            tmp[index0] = getElement_data(index0);
        }
        return tmp;
    }

    /**
     * Return the total size, in bytes, of the array 'data'
     */
    public int totalSize_data() {
	return numElements_data() * elementSize_data();
    }

    /**
     * Return the value (as a int) of the field 'crc'
     */
    public int get_crc() {
        return (int)getUIntElement(offsetBits_crc(), 16);
    }

    /**
     * Set the value of the field 'crc'
     */
    public void set_crc(int value) {
        setUIntElement(offsetBits_crc(), 16, value);
    }
    /**
     * Return the total size, in bits, of the array 'data'
     */
    public int totalSizeBits_data() {
        return totalSize_data() * 8;
    }

    /**
     * Return the number of elements in the array 'data'
     * for the given dimension.
     */
    public int numElements_data(int dimension) {
        if (dimension < 0 || dimension >= 1) throw new ArrayIndexOutOfBoundsException();
        return numElements_data();
    }

    /**
     * Read the array 'data' as a String
     */
    public String getString_data() {
         char carr[] = new char[Math.min(net.tinyos.message.Message.MAX_CONVERTED_STRING_LENGTH, numElements_data())];
         int i;
         for (i = 0; i < carr.length; i++) {
             if ((char)getElement_data(i) == (char)0) break;
             carr[i] = (char)getElement_data(i);
         }
         return new String(carr,0,i);
    }

    /////////////////////////////////////////////////////////
    // Accessor methods for field: crc
    //   Field type: int, unsigned
    //   Offset (bits): variable (follows data)
    //   Size (bits): 16
    /////////////////////////////////////////////////////////

    /**
     * Return the offset (in bytes) of the field 'crc'
     */
    public int offset_crc() {
        return offset_data(0) + totalSize_data();
    }

    /**
     * Return the offset (in bits) of the field 'crc'
     */
    public int offsetBits_crc() {
        return offsetBits_data(0) + totalSizeBits_data();
    }

    /**
     * Return the size, in bytes, of the field 'crc'
     */
    public static int size_crc() {
        return (16 / 8);
    }

    /**
     * Return the size, in bits, of the field 'crc'
     */
    public static int sizeBits_crc() {
        return 16;
    }

    /////////////////////////////////////////////////////////
    // Accessor methods for field: strength
    //   Field type: int, unsigned
    //   Offset (bits): not in actual packets
    //   Size (bits): 16
    /////////////////////////////////////////////////////////

    /**
     * Return the offset (in bytes) of the field 'strength'
     */
    public static int offset_strength() {
	throw new UnsupportedOperationException("no strength field");
    }

    /**
     * Return the offset (in bits) of the field 'strength'
     */
    public static int offsetBits_strength() {
	throw new UnsupportedOperationException("no strength field");
    }

    /////////////////////////////////////////////////////////
    // Accessor methods for field: ack
    //   Field type: short, unsigned
    //   Offset (bits): not in actual packets
    //   Size (bits): 8
    /////////////////////////////////////////////////////////

    /**
     * Return the offset (in bytes) of the field 'ack'
     */
    public static int offset_ack() {
	throw new UnsupportedOperationException("no ack field");
    }

    /**
     * Return the offset (in bits) of the field 'ack'
     */
    public static int offsetBits_ack() {
	throw new UnsupportedOperationException("no ack field");
    }

    /////////////////////////////////////////////////////////
    // Accessor methods for field: time
    //   Field type: int, unsigned
    //   Offset (bits): not in actual packets
    //   Size (bits): 16
    /////////////////////////////////////////////////////////

    /**
     * Return the offset (in bytes) of the field 'time'
     */
    public static int offset_time() {
	throw new UnsupportedOperationException("no time field");
    }

    /**
     * Return the offset (in bits) of the field 'time'
     */
    public static int offsetBits_time() {
	throw new UnsupportedOperationException("no time field");
    }
}


text:
namespace crashpad {

//! \brief Crashpad-specific codes that are used as arguments to
//!     `TerminateProcess()` in unusual circumstances.
enum TerminationCodes : unsigned int {
  //! \brief The crash handler did not respond, and the client self-terminated.
  kTerminationCodeCrashNoDump = 0xffff7001,

  //! \brief The initial process snapshot failed, so the correct client
  //!     termination code could not be retrieved.
  kTerminationCodeSnapshotFailed = 0xffff7002,

  //! \brief A dump was requested for a client that was never registered with
  //!     the crash handler.
  kTerminationCodeNotConnectedToHandler = 0xffff7003,
};

}  // namespace crashpad

#endif  // CRASHPAD_UTIL_WIN_TERMINATION_CODES_H_


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

/**
 * SuggestAppsDialog contains a list box to select an app to be opened the file
 * with. This dialog should be used as action picker for file operations.
 */

/**
 * Creates dialog in DOM tree.
 *
 */
class SuggestAppsDialog extends FileManagerDialogBase {
  /**
   * @param {!ProvidersModel} providersModel Model for providers.
   * @param {!HTMLElement} parentNode Node to be parent for this dialog.
   * @param {!SuggestAppDialogState} state Static state of suggest app dialog.
   */
  constructor(providersModel, parentNode, state) {
    super(parentNode);

    /**
     * @private {!ProvidersModel}
     * @const
     */
    this.providersModel_ = providersModel;

    this.frame.id = 'suggest-app-dialog';

    /**
     * The root element for the Chrome Web Store widget container.
     * @const {!HTMLElement}
     */
    const widgetRoot = this.document_.createElement('div');
    this.frame.insertBefore(widgetRoot, this.text.nextSibling);

    /**
     * The wrapper around Chrome Web Store widget.
     * @const {!CWSWidgetContainer}
     * @private
     */
    this.widget_ = new CWSWidgetContainer(
        this.document_, widgetRoot, this.createWidgetPlatformDelegate_(),
        state);

    this.initialFocusElement_ = this.widget_.getInitiallyFocusedElement();

    /**
     * The reported widget result.
     * @type {SuggestAppsDialog.Result}
     * @private
     */
    this.result_ = SuggestAppsDialog.Result.FAILED;

    // Hide default dialog buttons.
    this.buttons.hidden = true;

    // Override default dialog styles.
    this.title.classList.add('suggest-apps-dialog-title');
    this.text.classList.add('suggest-apps-dialog-text');

    /** @private {?string} */
    this.installedItemId_ = null;

    /** @private {?function(SuggestAppsDialog.Result, ?string)} */
    this.onDialogClosed_ = null;

    /** @private {string} */
    this.dialogText_ = '';
  }

  /**
   * Dummy function for SuggestAppsDialog.show() not to be called
   * unintentionally.
   */
  show() {
    console.error('SuggestAppsDialog.show() shouldn\'t be called directly.');
  }

  /**
   * Shows suggest-apps dialog by file extension and mime.
   *
   * @param {string} extension Extension of the file with a trailing dot.
   * @param {?string} mime Mime of the file.
   * @param {function(SuggestAppsDialog.Result, ?string)} onDialogClosed Called
   *     when the dialog is closed, with a result code and an optionally an
   *     extension id, if an extension was installed.
   */
  showByExtensionAndMime(extension, mime, onDialogClosed) {
    assert(extension && extension[0] === '.');
    const options = {file_extension: extension.substr(1)};
    if (mime) {
      options.mime_type = mime;
    }
    this.showInternal_(
        options, str('SUGGEST_DIALOG_TITLE'),
        webStoreUtils.createWebStoreLink(extension, mime), onDialogClosed);
  }

  /**
   * Shows suggest-apps dialog for FSP API
   * @param {function(SuggestAppsDialog.Result, ?string)} onDialogClosed Called
   *     when the dialog is closed, with a result code and an optionally an
   *     extension id, if an extension was installed.
   */
  showProviders(onDialogClosed) {
    this.showInternal_(
        {file_system_provider: true}, str('SUGGEST_DIALOG_FOR_PROVIDERS_TITLE'),
        null /* webStoreUrl */, onDialogClosed);
  }

  /**
   * Creates platform delegate for CWSWidgetContainer.
   * @return {!CWSWidgetContainerPlatformDelegate}
   * @private
   */
  createWidgetPlatformDelegate_() {
    return {
      strings: {
        UI_LOCALE: util.getCurrentLocaleOrDefault(),
        LINK_TO_WEBSTORE: str('SUGGEST_DIALOG_LINK_TO_WEBSTORE'),
        INSTALLATION_FAILED_MESSAGE: str('SUGGEST_DIALOG_INSTALLATION_FAILED'),
        LOADING_SPINNER_ALT: str('SUGGEST_DIALOG_LOADING_SPINNER_ALT'),
        INSTALLING_SPINNER_ALT: str('SUGGEST_DIALOG_INSTALLING_SPINNER_ALT')
      },

      metricsImpl: {
        /**
         * @param {string} enumName
         * @param {number} value
         * @param {number} enumSize
         */
        recordEnum: function(enumName, value, enumSize) {
          metrics.recordEnum('SuggestApps.' + enumName, value, enumSize);
        },

        /** @param {string} actionName */
        recordUserAction: function(actionName) {
          metrics.recordUserAction('SuggestApps.' + actionName);
        },

        /** @param {string} intervalName */
        startInterval: function(intervalName) {
          metrics.startInterval('SuggestApps.' + intervalName);
        },

        /** @param {string} intervalName */
        recordInterval: function(intervalName) {
          metrics.recordInterval('SuggestApps.' + intervalName);
        }
      },

      /**
       * @param {string} itemId,
       * @param {function(?string)} callback Callback argument is set to error
       *     message (null on success)
       */
      installWebstoreItem: function(itemId, callback) {
        chrome.webstoreWidgetPrivate.installWebstoreItem(
            itemId, false /* show installation prompt */, () => {
              callback(
                  chrome.runtime.lastError ?
                      chrome.runtime.lastError.message || 'UNKNOWN ERROR' :
                      null);
            });
      },

      /**
       * @param {function(?Array<!string>)} callback Callback
       *     argument is a list of installed item ids (null on error).
       */
      getInstalledItems: callback => {
        // Return only installed provided extensions. Returning other
        // extensions/apps is redundant, as the suggest app for non-providers is
        // executed only when there is no extension/app matching a file task.
        // Hence, none of the suggested extensions/apps can be already
        // installed.
        this.providersModel_.getInstalledProviders()
            .then(providers => {
              callback(providers.map(provider => {
                // Assume that the provider is an extension backed provider. In
                // such case the providerId is the same as extensionId.
                return provider.providerId;
              }));
            })
            .catch(error => {
              console.error(error.stack || error);
              callback(null);
            });
      },

      /**
       * @param {function(?string)} callback Callback argument is the requested
       *     token (null on error).
       */
      requestWebstoreAccessToken: function(callback) {
        chrome.fileManagerPrivate.requestWebStoreAccessToken(token => {
          if (chrome.runtime.lastError) {
            console.error(chrome.runtime.lastError.message);
            callback(null);
            return;
          }
          callback(assert(token));
        });
      }
    };
  }

  /**
   * Internal method to show a dialog. This should be called only from 'Suggest.
   * appDialog.showXxxx()' functions.
   *
   * @param {!Object<*>} options Map of options for the dialog.
   * @param {string} title Title of the dialog.
   * @param {?string} webStoreUrl Url for more results. Null if not supported.
   * @param {function(SuggestAppsDialog.Result, ?string)} onDialogClosed Called
   *     when the dialog is closed, with a result code and an optionally an
   *     extension id, if an extension was installed.
   * @private
   */
  showInternal_(options, title, webStoreUrl, onDialogClosed) {
    this.text.hidden = true;
    this.dialogText_ = '';

    this.frame.classList.toggle('no-title', !title);

    if (!this.widget_.isInInitialState()) {
      onDialogClosed(SuggestAppsDialog.Result.CANCELLED, null);
      return;
    }

    let dialogShown = false;
    let tokenObtained = false;

    this.widget_.ready()
        .then(/** @return {!Promise} */
              () => {
                tokenObtained = true;
                return this.showDialog_(title);
              })
        .then(/** @return {!Promise<CWSWidgetContainer.ResolveReason>} */
              () => {
                dialogShown = true;
                // This is not set before so it doesn't pollute state if the
                // previous dialog hasn't finished hiding.
                this.onDialogClosed_ = onDialogClosed;
                return this.widget_.start(options, webStoreUrl);
              })
        .then(/** @param {CWSWidgetContainer.ResolveReason} reason */
              reason => {
                if (reason !== CWSWidgetContainer.ResolveReason.RESET) {
                  this.hide();
                }
              })
        .catch(error => {
          console.error('Failed to start CWS widget: ' + error);

          if (!dialogShown) {
            // Reset any widget state set in |this.widget_.ready()|. The
            // returned value is ignored because it doesn't influence the
            // value reported by dialog.
            this.widget_.finalizeAndGetResult();

            const result = tokenObtained ?
                // Got access token but the widget dialog was not shown.
                // Consider the widget was cancelled.
                SuggestAppsDialog.Result.CANCELLED :
                // Access token was unavailable.
                // This can happen in the Guest mode. crbug.com/694419
                // Callback shows an alert notifying the file was not opened
                // because of the unsupported type.
                SuggestAppsDialog.Result.FAILED;
            onDialogClosed(result, null);
            return;
          }

          this.result_ = SuggestAppsDialog.Result.FAILED;
          this.hide();
        });
  }

  /**
   * Internal method for showing the dialog in the file manager window.
   * @param {string} title The dialog title.
   * @return {!Promise}
   */
  showDialog_(title) {
    return new Promise((resolve, reject) => {
      const success = this.dialogText_ ?
          super.showTitleAndTextDialog(title, this.dialogText_) :
          super.showTitleOnlyDialog(title);
      if (!success) {
        reject('SuggestAppsDialog cannot be shown.');
        return;
      }
      resolve();
    });
  }

  /**
   * Called when the connection status is changed.
   * @param {chrome.fileManagerPrivate.DriveConnectionStateType} connectionType
   *     Current connection type.
   */
  onDriveConnectionChanged(connectionType) {
    if (connectionType ===
        chrome.fileManagerPrivate.DriveConnectionStateType.OFFLINE) {
      this.widget_.onConnectionLost();
    }
  }

  /**
   * @param {Function=} opt_originalOnHide Called when the original dialog is
   *     hidden.
   * @override
   */
  hide(opt_originalOnHide) {
    const widgetResult = this.widget_.finalizeAndGetResult();

    switch (widgetResult.result) {
      case CWSWidgetContainer.Result.INSTALL_SUCCESSFUL:
        this.result_ = SuggestAppsDialog.Result.SUCCESS;
        break;
      case CWSWidgetContainer.Result.WEBSTORE_LINK_OPENED:
      case CWSWidgetContainer.Result.USER_CANCEL:
        this.result_ = SuggestAppsDialog.Result.CANCELLED;
        break;
      default:
        this.result_ = SuggestAppsDialog.Result.FAILED;
    }

    this.installedItemId_ = widgetResult.installedItemId;

    super.hide(this.onHide_.bind(this, opt_originalOnHide));
  }

  /**
   * @param {Function=} opt_originalOnHide Original onHide function passed to
   *     SuggestAppsDialog.hide().
   * @private
   */
  onHide_(opt_originalOnHide) {
    // Calls the callback after the dialog hides.
    if (opt_originalOnHide) {
      opt_originalOnHide();
    }

    this.onDialogClosed_(this.result_, this.installedItemId_);
  }
}

/**
 * @enum {string}
 */
SuggestAppsDialog.Result = {
  // Install is done. The install app should be opened.
  SUCCESS: 'SuggestAppsDialog.Result.SUCCESS',
  // User cancelled the suggest app dialog. No message should be shown.
  CANCELLED: 'SuggestAppsDialog.Result.CANCELLED',
  // Failed to load the widget. Error message should be shown.
  FAILED: 'SuggestAppsDialog.Result.FAILED'
};
Object.freeze(SuggestAppsDialog.Result);


text:
class SessionsController < ApplicationController
  skip_before_filter :has_info
  skip_before_filter :authenticated, :only => [:new, :create]

  def new
    @url = params[:url]
    redirect_to home_dashboard_index_path if current_user
  end

  def create
    path = params[:url].present? ? params[:url] : home_dashboard_index_path
    begin
      # Normalize the email address, why not
      user = User.authenticate(params[:email].to_s.downcase, params[:password])
      rescue Exception => e
    end

    if user
      if params[:remember_me]
        cookies.permanent[:auth_token] = user.auth_token if User.where(:user_id => user.user_id).exists?
      else
        session[:user_id] = user.user_id if User.where(:user_id => user.user_id).exists?
      end
      redirect_to path
    else
      # Removed this code, just doesn't seem specific enough!
      #  flash[:error] = "Either your username and password is incorrect"
      flash[:error] = e.message
      render "new"
    end
  end

  def destroy
    cookies.delete(:auth_token)
    reset_session
    redirect_to root_path
  end
end


text:
export * from './source.model';
export * from './source-popup.service';
export * from './source.service';
export * from './source-dialog.component';
export * from './source-delete-dialog.component';
export * from './source-detail.component';
export * from './source.component';
export * from './source.route';


text:
{% extends "horizon/common/_modal_form.html" %}
{% load i18n %}

{% block modal-body-right %}

{% trans "Description:" %}

{% trans "Attach Volume to Running Instance." %}

{% endblock %}


text:
package com.kodcu.other;

/**
 * Created by usta on 23.01.2015.
 */
public class OSHelper {

    private static final String OS = System.getProperty("os.name").toLowerCase();

    public static boolean isWindows() {

        return (OS.indexOf("win") >= 0);

    }

    public static boolean isMac() {

        return (OS.indexOf("mac") >= 0);

    }

    public static boolean isUnix() {

        return (OS.indexOf("nix") >= 0 || OS.indexOf("nux") >= 0 || OS.indexOf("aix") > 0);

    }

    public static boolean isSolaris() {

        return (OS.indexOf("sunos") >= 0);

    }
}


text:
package io.cloudslang.content.mail.constants;

public final class SecurityConstants {
    public static final String BOUNCY_CASTLE_PROVIDER = "BC";
    public static final String PKCS_KEYSTORE_TYPE = "PKCS12";
    public static final String ENCRYPTED_CONTENT_TYPE = "application/pkcs7-mime;\\s*name=\"?smime.p7m\"?;\\s*" +
            "smime-type=enveloped-data";
    public static final String DEFAULT_JAVA_KEYSTORE = System.getProperty("java.home") + "/lib/security/cacerts";
    public static final String ENCRYPT_RECID = "The encryption recId is: ";
    public static final String SSL = "SSL";
    public static final String DEFAULT_PASSWORD_FOR_STORE = "changeit";
    public static final String SSL_SOCKET_FACTORY = "javax.net.ssl.SSLSocketFactory";
    public static final String SECURE_SUFFIX = "s";
}


text:
/*
    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

        http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
 */

#import <Foundation/Foundation.h>
#import "CMISRenditionData.h"

@class CMISDocument;
@class CMISOperationContext;
@class CMISSession;

@interface CMISRendition : CMISRenditionData

- (id)initWithRenditionData:(CMISRenditionData *)renditionData andObjectId:(NSString *)objectId andSession:(CMISSession *)session;

- (void)retrieveRenditionDocumentWithCompletionBlock:(void (^)(CMISDocument *document, NSError *error))completionBlock;

- (void)retrieveRenditionDocumentWithOperationContext:(CMISOperationContext *)operationContext
                                      completionBlock:(void (^)(CMISDocument *document, NSError *error))completionBlock;

- (void)downloadRenditionContentToFile:(NSString *)filePath
                       completionBlock:(void (^)(NSError *error))completionBlock
                         progressBlock:(void (^)(unsigned long long bytesDownloaded, unsigned long long bytesTotal))progressBlock;

- (void)downloadRenditionContentToOutputStream:(NSOutputStream *)outputStream
                               completionBlock:(void (^)(NSError *error))completionBlock
                                 progressBlock:(void (^)(unsigned long long bytesDownloaded, unsigned long long bytesTotal))progressBlock;

@end


text:
<link href="__ROOT__/Public/Admin/css/list.css" rel="stylesheet" type="text/css" />

{$cur_menu} > {$cur_title}

<form name="form1" id="form1" method="POST" action="">
   <input type="hidden" name="user_id" value="{$info['user_id']}" />

       验光师名称:
       {$info.username}

       联系电话:

{$info.tel}

       审核状态:

          <input type="radio" name="is_master" value="1" <if condition="$info['is_master'] eq 1">checked </if>/>通过
          <input type="radio" name="is_master" value="2" <if condition="$info['is_master'] eq 2">checked </if>/>不通过

          <input type="submit" class="buttonsave" value="保存" name="sub_authority" />

          <input type="reset" class="buttoncancel" value="取消" onclick="javascript:history.go(-1);" name="B12" />

</form>


text:
<?xml version="1.0" encoding="UTF-8"?>
<DEFECTS>
  <DEFECT>
    <SFA>
      <FILEPATH>d:\src\sarif-sdk\src\sarif.functionaltests\convertertestdata\prefast\src\c6305\</FILEPATH>
      <FILENAME>advancedc6305.cpp</FILENAME>
      <LINE>12</LINE>
      <COLUMN>5</COLUMN>
    </SFA>
    <DEFECTCODE>6305</DEFECTCODE>
    <DESCRIPTION>Potential mismatch between sizeof and countof quantities. Use sizeof() to scale byte sizes.</DESCRIPTION>
    <FUNCTION>C6305FromAnnotation</FUNCTION>
    <DECORATED>?C6305FromAnnotation@@YAXPEAHH_N@Z</DECORATED>
    <FUNCLINE>5</FUNCLINE>
    <PROBABILITY>1</PROBABILITY>
    <RANK>2</RANK>
    <CATEGORY>
      <RULECATEGORY>mspft</RULECATEGORY>
    </CATEGORY>
    <PATH>
      <SFA>
        <FILEPATH>d:\src\sarif-sdk\src\sarif.functionaltests\convertertestdata\prefast\src\c6305\</FILEPATH>
        <FILENAME>advancedc6305.cpp</FILENAME>
        <LINE>5</LINE>
        <COLUMN>24</COLUMN>
        <KEYEVENT>
          <ID>1</ID>
          <KIND>declaration</KIND>
          <IMPORTANCE>Essential</IMPORTANCE>
          <MESSAGE>'inc' is a byte quantity</MESSAGE>
        </KEYEVENT>
      </SFA>
      <SFA>
        <FILEPATH>d:\src\sarif-sdk\src\sarif.functionaltests\convertertestdata\prefast\src\c6305\</FILEPATH>
        <FILENAME>advancedc6305.cpp</FILENAME>
        <LINE>10</LINE>
        <COLUMN>6</COLUMN>
      </SFA>
      <SFA>
        <FILEPATH>d:\src\sarif-sdk\src\sarif.functionaltests\convertertestdata\prefast\src\c6305\</FILEPATH>
        <FILENAME>advancedc6305.cpp</FILENAME>
        <LINE>11</LINE>
        <COLUMN>6</COLUMN>
        <KEYEVENT>
          <ID>2</ID>
          <KIND>branch</KIND>
          <IMPORTANCE>Full</IMPORTANCE>
          <MESSAGE>Enter this branch, (assume 'b')</MESSAGE>
        </KEYEVENT>
      </SFA>
      <SFA>
        <FILEPATH>d:\src\sarif-sdk\src\sarif.functionaltests\convertertestdata\prefast\src\c6305\</FILEPATH>
        <FILENAME>advancedc6305.cpp</FILENAME>
        <LINE>12</LINE>
        <COLUMN>5</COLUMN>
        <KEYEVENT>
          <ID>3</ID>
          <KIND>usage</KIND>
          <IMPORTANCE>Essential</IMPORTANCE>
          <MESSAGE>Expression mixes element counts and byte quantities</MESSAGE>
        </KEYEVENT>
      </SFA>
    </PATH>
  </DEFECT>
  <DEFECT>
    <SFA>
      <FILEPATH>d:\src\sarif-sdk\src\sarif.functionaltests\convertertestdata\prefast\src\c6305\</FILEPATH>
      <FILENAME>advancedc6305.cpp</FILENAME>
      <LINE>24</LINE>
      <COLUMN>6</COLUMN>
    </SFA>
    <DEFECTCODE>6305</DEFECTCODE>
    <DESCRIPTION>Potential mismatch between sizeof and countof quantities. Use sizeof() to scale byte sizes.</DESCRIPTION>
    <FUNCTION>RemoveRedundantKeyEvents1</FUNCTION>
    <DECORATED>?RemoveRedundantKeyEvents1@@YAHPEA_W@Z</DECORATED>
    <FUNCLINE>18</FUNCLINE>
    <PROBABILITY>1</PROBABILITY>
    <RANK>2</RANK>
    <CATEGORY>
      <RULECATEGORY>mspft</RULECATEGORY>
    </CATEGORY>
    <PATH>
      <SFA>
        <FILEPATH>d:\src\sarif-sdk\src\sarif.functionaltests\convertertestdata\prefast\src\c6305\</FILEPATH>
        <FILENAME>advancedc6305.cpp</FILENAME>
        <LINE>20</LINE>
        <COLUMN>8</COLUMN>
      </SFA>
      <SFA>
        <FILEPATH>d:\src\sarif-sdk\src\sarif.functionaltests\convertertestdata\prefast\src\c6305\</FILEPATH>
        <FILENAME>advancedc6305.cpp</FILENAME>
        <LINE>22</LINE>
        <COLUMN>8</COLUMN>
        <KEYEVENT>
          <ID>1</ID>
          <KIND>declaration</KIND>
          <IMPORTANCE>Essential</IMPORTANCE>
          <MESSAGE>'j' is a byte quantity</MESSAGE>
        </KEYEVENT>
      </SFA>
      <SFA>
        <FILEPATH>d:\src\sarif-sdk\src\sarif.functionaltests\convertertestdata\prefast\src\c6305\</FILEPATH>
        <FILENAME>advancedc6305.cpp</FILENAME>
        <LINE>24</LINE>
        <COLUMN>6</COLUMN>
        <KEYEVENT>
          <ID>2</ID>
          <KIND>usage</KIND>
          <IMPORTANCE>Essential</IMPORTANCE>
          <MESSAGE>Expression mixes element counts and byte quantities</MESSAGE>
        </KEYEVENT>
      </SFA>
    </PATH>
  </DEFECT>
  <DEFECT>
    <SFA>
      <FILEPATH>d:\src\sarif-sdk\src\sarif.functionaltests\convertertestdata\prefast\src\c6305\</FILEPATH>
      <FILENAME>advancedc6305.cpp</FILENAME>
      <LINE>38</LINE>
      <COLUMN>3</COLUMN>
    </SFA>
    <DEFECTCODE>6305</DEFECTCODE>
    <DESCRIPTION>Potential mismatch between sizeof and countof quantities. Use sizeof() to scale byte sizes.</DESCRIPTION>
    <FUNCTION>RemoveRedundantKeyEvents2</FUNCTION>
    <DECORATED>?RemoveRedundantKeyEvents2@@YAHPEA_W@Z</DECORATED>
    <FUNCLINE>29</FUNCLINE>
    <PROBABILITY>1</PROBABILITY>
    <RANK>2</RANK>
    <CATEGORY>
      <RULECATEGORY>mspft</RULECATEGORY>
    </CATEGORY>
    <PATH>
      <SFA>
        <FILEPATH>d:\src\sarif-sdk\src\sarif.functionaltests\convertertestdata\prefast\src\c6305\</FILEPATH>
        <FILENAME>advancedc6305.cpp</FILENAME>
        <LINE>31</LINE>
        <COLUMN>5</COLUMN>
      </SFA>
      <SFA>
        <FILEPATH>d:\src\sarif-sdk\src\sarif.functionaltests\convertertestdata\prefast\src\c6305\</FILEPATH>
        <FILENAME>advancedc6305.cpp</FILENAME>
        <LINE>33</LINE>
        <COLUMN>3</COLUMN>
      </SFA>
      <SFA>
        <FILEPATH>d:\src\sarif-sdk\src\sarif.functionaltests\convertertestdata\prefast\src\c6305\</FILEPATH>
        <FILENAME>advancedc6305.cpp</FILENAME>
        <LINE>34</LINE>
        <COLUMN>5</COLUMN>
      </SFA>
      <SFA>
        <FILEPATH>d:\src\sarif-sdk\src\sarif.functionaltests\convertertestdata\prefast\src\c6305\</FILEPATH>
        <FILENAME>advancedc6305.cpp</FILENAME>
        <LINE>35</LINE>
        <COLUMN>3</COLUMN>
      </SFA>
      <SFA>
        <FILEPATH>d:\src\sarif-sdk\src\sarif.functionaltests\convertertestdata\prefast\src\c6305\</FILEPATH>
        <FILENAME>advancedc6305.cpp</FILENAME>
        <LINE>36</LINE>
        <COLUMN>3</COLUMN>
        <KEYEVENT>
          <ID>1</ID>
          <KIND>declaration</KIND>
          <IMPORTANCE>Essential</IMPORTANCE>
          <MESSAGE>'i' is a byte quantity</MESSAGE>
        </KEYEVENT>
      </SFA>
      <SFA>
        <FILEPATH>d:\src\sarif-sdk\src\sarif.functionaltests\convertertestdata\prefast\src\c6305\</FILEPATH>
        <FILENAME>advancedc6305.cpp</FILENAME>
        <LINE>38</LINE>
        <COLUMN>3</COLUMN>
        <KEYEVENT>
          <ID>2</ID>
          <KIND>usage</KIND>
          <IMPORTANCE>Essential</IMPORTANCE>
          <MESSAGE>Expression mixes element counts and byte quantities</MESSAGE>
        </KEYEVENT>
      </SFA>
    </PATH>
  </DEFECT>
  <DEFECT>
    <SFA>
      <FILEPATH>d:\src\sarif-sdk\src\sarif.functionaltests\convertertestdata\prefast\src\c6305\</FILEPATH>
      <FILENAME>advancedc6305.cpp</FILENAME>
      <LINE>35</LINE>
      <COLUMN>3</COLUMN>
    </SFA>
    <DEFECTCODE>6305</DEFECTCODE>
    <DESCRIPTION>Potential mismatch between sizeof and countof quantities. Use sizeof() to scale byte sizes.</DESCRIPTION>
    <FUNCTION>RemoveRedundantKeyEvents2</FUNCTION>
    <DECORATED>?RemoveRedundantKeyEvents2@@YAHPEA_W@Z</DECORATED>
    <FUNCLINE>29</FUNCLINE>
    <PROBABILITY>1</PROBABILITY>
    <RANK>2</RANK>
    <CATEGORY>
      <RULECATEGORY>mspft</RULECATEGORY>
    </CATEGORY>
    <PATH>
      <SFA>
        <FILEPATH>d:\src\sarif-sdk\src\sarif.functionaltests\convertertestdata\prefast\src\c6305\</FILEPATH>
        <FILENAME>advancedc6305.cpp</FILENAME>
        <LINE>31</LINE>
        <COLUMN>5</COLUMN>
      </SFA>
      <SFA>
        <FILEPATH>d:\src\sarif-sdk\src\sarif.functionaltests\convertertestdata\prefast\src\c6305\</FILEPATH>
        <FILENAME>advancedc6305.cpp</FILENAME>
        <LINE>33</LINE>
        <COLUMN>3</COLUMN>
        <KEYEVENT>
          <ID>1</ID>
          <KIND>declaration</KIND>
          <IMPORTANCE>Essential</IMPORTANCE>
          <MESSAGE>'i' is a byte quantity</MESSAGE>
        </KEYEVENT>
      </SFA>
      <SFA>
        <FILEPATH>d:\src\sarif-sdk\src\sarif.functionaltests\convertertestdata\prefast\src\c6305\</FILEPATH>
        <FILENAME>advancedc6305.cpp</FILENAME>
        <LINE>34</LINE>
        <COLUMN>5</COLUMN>
      </SFA>
      <SFA>
        <FILEPATH>d:\src\sarif-sdk\src\sarif.functionaltests\convertertestdata\prefast\src\c6305\</FILEPATH>
        <FILENAME>advancedc6305.cpp</FILENAME>
        <LINE>35</LINE>
        <COLUMN>3</COLUMN>
        <KEYEVENT>
          <ID>2</ID>
          <KIND>usage</KIND>
          <IMPORTANCE>Essential</IMPORTANCE>
          <MESSAGE>Expression mixes element counts and byte quantities</MESSAGE>
        </KEYEVENT>
      </SFA>
    </PATH>
  </DEFECT>
  <DEFECT>
    <SFA>
      <FILEPATH>d:\src\sarif-sdk\src\sarif.functionaltests\convertertestdata\prefast\src\c6305\</FILEPATH>
      <FILENAME>advancedc6305.cpp</FILENAME>
      <LINE>36</LINE>
      <COLUMN>3</COLUMN>
    </SFA>
    <DEFECTCODE>6305</DEFECTCODE>
    <DESCRIPTION>Potential mismatch between sizeof and countof quantities. Use sizeof() to scale byte sizes.</DESCRIPTION>
    <FUNCTION>RemoveRedundantKeyEvents2</FUNCTION>
    <DECORATED>?RemoveRedundantKeyEvents2@@YAHPEA_W@Z</DECORATED>
    <FUNCLINE>29</FUNCLINE>
    <PROBABILITY>1</PROBABILITY>
    <RANK>2</RANK>
    <CATEGORY>
      <RULECATEGORY>mspft</RULECATEGORY>
    </CATEGORY>
    <PATH>
      <SFA>
        <FILEPATH>d:\src\sarif-sdk\src\sarif.functionaltests\convertertestdata\prefast\src\c6305\</FILEPATH>
        <FILENAME>advancedc6305.cpp</FILENAME>
        <LINE>31</LINE>
        <COLUMN>5</COLUMN>
      </SFA>
      <SFA>
        <FILEPATH>d:\src\sarif-sdk\src\sarif.functionaltests\convertertestdata\prefast\src\c6305\</FILEPATH>
        <FILENAME>advancedc6305.cpp</FILENAME>
        <LINE>33</LINE>
        <COLUMN>3</COLUMN>
      </SFA>
      <SFA>
        <FILEPATH>d:\src\sarif-sdk\src\sarif.functionaltests\convertertestdata\prefast\src\c6305\</FILEPATH>
        <FILENAME>advancedc6305.cpp</FILENAME>
        <LINE>34</LINE>
        <COLUMN>5</COLUMN>
      </SFA>
      <SFA>
        <FILEPATH>d:\src\sarif-sdk\src\sarif.functionaltests\convertertestdata\prefast\src\c6305\</FILEPATH>
        <FILENAME>advancedc6305.cpp</FILENAME>
        <LINE>35</LINE>
        <COLUMN>3</COLUMN>
        <KEYEVENT>
          <ID>1</ID>
          <KIND>declaration</KIND>
          <IMPORTANCE>Essential</IMPORTANCE>
          <MESSAGE>'i' is a byte quantity</MESSAGE>
        </KEYEVENT>
      </SFA>
      <SFA>
        <FILEPATH>d:\src\sarif-sdk\src\sarif.functionaltests\convertertestdata\prefast\src\c6305\</FILEPATH>
        <FILENAME>advancedc6305.cpp</FILENAME>
        <LINE>36</LINE>
        <COLUMN>3</COLUMN>
        <KEYEVENT>
          <ID>2</ID>
          <KIND>usage</KIND>
          <IMPORTANCE>Essential</IMPORTANCE>
          <MESSAGE>Expression mixes element counts and byte quantities</MESSAGE>
        </KEYEVENT>
      </SFA>
    </PATH>
  </DEFECT>
  <DEFECT>
    <SFA>
      <FILEPATH>d:\src\sarif-sdk\src\sarif.functionaltests\convertertestdata\prefast\src\c6305\</FILEPATH>
      <FILENAME>advancedc6305.cpp</FILENAME>
      <LINE>33</LINE>
      <COLUMN>3</COLUMN>
    </SFA>
    <DEFECTCODE>6305</DEFECTCODE>
    <DESCRIPTION>Potential mismatch between sizeof and countof quantities. Use sizeof() to scale byte sizes.</DESCRIPTION>
    <FUNCTION>RemoveRedundantKeyEvents2</FUNCTION>
    <DECORATED>?RemoveRedundantKeyEvents2@@YAHPEA_W@Z</DECORATED>
    <FUNCLINE>29</FUNCLINE>
    <PROBABILITY>1</PROBABILITY>
    <RANK>2</RANK>
    <CATEGORY>
      <RULECATEGORY>mspft</RULECATEGORY>
    </CATEGORY>
    <PATH>
      <SFA>
        <FILEPATH>d:\src\sarif-sdk\src\sarif.functionaltests\convertertestdata\prefast\src\c6305\</FILEPATH>
        <FILENAME>advancedc6305.cpp</FILENAME>
        <LINE>31</LINE>
        <COLUMN>5</COLUMN>
        <KEYEVENT>
          <ID>1</ID>
          <KIND>declaration</KIND>
          <IMPORTANCE>Essential</IMPORTANCE>
          <MESSAGE>'i' is a byte quantity</MESSAGE>
        </KEYEVENT>
      </SFA>
      <SFA>
        <FILEPATH>d:\src\sarif-sdk\src\sarif.functionaltests\convertertestdata\prefast\src\c6305\</FILEPATH>
        <FILENAME>advancedc6305.cpp</FILENAME>
        <LINE>33</LINE>
        <COLUMN>3</COLUMN>
        <KEYEVENT>
          <ID>2</ID>
          <KIND>usage</KIND>
          <IMPORTANCE>Essential</IMPORTANCE>
          <MESSAGE>Expression mixes element counts and byte quantities</MESSAGE>
        </KEYEVENT>
      </SFA>
    </PATH>
  </DEFECT>
  <DEFECT>
    <SFA>
      <FILEPATH>d:\src\sarif-sdk\src\sarif.functionaltests\convertertestdata\prefast\src\c6305\</FILEPATH>
      <FILENAME>advancedc6305.cpp</FILENAME>
      <LINE>39</LINE>
      <COLUMN>3</COLUMN>
    </SFA>
    <DEFECTCODE>6305</DEFECTCODE>
    <DESCRIPTION>Potential mismatch between sizeof and countof quantities. Use sizeof() to scale byte sizes.</DESCRIPTION>
    <FUNCTION>RemoveRedundantKeyEvents2</FUNCTION>
    <DECORATED>?RemoveRedundantKeyEvents2@@YAHPEA_W@Z</DECORATED>
    <FUNCLINE>29</FUNCLINE>
    <PROBABILITY>1</PROBABILITY>
    <RANK>2</RANK>
    <CATEGORY>
      <RULECATEGORY>mspft</RULECATEGORY>
    </CATEGORY>
    <PATH>
      <SFA>
        <FILEPATH>d:\src\sarif-sdk\src\sarif.functionaltests\convertertestdata\prefast\src\c6305\</FILEPATH>
        <FILENAME>advancedc6305.cpp</FILENAME>
        <LINE>31</LINE>
        <COLUMN>5</COLUMN>
      </SFA>
      <SFA>
        <FILEPATH>d:\src\sarif-sdk\src\sarif.functionaltests\convertertestdata\prefast\src\c6305\</FILEPATH>
        <FILENAME>advancedc6305.cpp</FILENAME>
        <LINE>33</LINE>
        <COLUMN>3</COLUMN>
      </SFA>
      <SFA>
        <FILEPATH>d:\src\sarif-sdk\src\sarif.functionaltests\convertertestdata\prefast\src\c6305\</FILEPATH>
        <FILENAME>advancedc6305.cpp</FILENAME>
        <LINE>34</LINE>
        <COLUMN>5</COLUMN>
      </SFA>
      <SFA>
        <FILEPATH>d:\src\sarif-sdk\src\sarif.functionaltests\convertertestdata\prefast\src\c6305\</FILEPATH>
        <FILENAME>advancedc6305.cpp</FILENAME>
        <LINE>35</LINE>
        <COLUMN>3</COLUMN>
      </SFA>
      <SFA>
        <FILEPATH>d:\src\sarif-sdk\src\sarif.functionaltests\convertertestdata\prefast\src\c6305\</FILEPATH>
        <FILENAME>advancedc6305.cpp</FILENAME>
        <LINE>36</LINE>
        <COLUMN>3</COLUMN>
      </SFA>
      <SFA>
        <FILEPATH>d:\src\sarif-sdk\src\sarif.functionaltests\convertertestdata\prefast\src\c6305\</FILEPATH>
        <FILENAME>advancedc6305.cpp</FILENAME>
        <LINE>38</LINE>
        <COLUMN>3</COLUMN>
        <KEYEVENT>
          <ID>1</ID>
          <KIND>declaration</KIND>
          <IMPORTANCE>Essential</IMPORTANCE>
          <MESSAGE>'i' is a byte quantity</MESSAGE>
        </KEYEVENT>
      </SFA>
      <SFA>
        <FILEPATH>d:\src\sarif-sdk\src\sarif.functionaltests\convertertestdata\prefast\src\c6305\</FILEPATH>
        <FILENAME>advancedc6305.cpp</FILENAME>
        <LINE>39</LINE>
        <COLUMN>3</COLUMN>
        <KEYEVENT>
          <ID>2</ID>
          <KIND>usage</KIND>
          <IMPORTANCE>Essential</IMPORTANCE>
          <MESSAGE>Expression mixes element counts and byte quantities</MESSAGE>
        </KEYEVENT>
      </SFA>
    </PATH>
  </DEFECT>
  <DEFECT>
    <SFA>
      <FILEPATH>d:\src\sarif-sdk\src\sarif.functionaltests\convertertestdata\prefast\src\c6305\</FILEPATH>
      <FILENAME>advancedc6305.cpp</FILENAME>
      <LINE>51</LINE>
      <COLUMN>8</COLUMN>
    </SFA>
    <DEFECTCODE>6305</DEFECTCODE>
    <DESCRIPTION>Potential mismatch between sizeof and countof quantities. Use sizeof() to scale byte sizes.</DESCRIPTION>
    <FUNCTION>CorrectAliasing</FUNCTION>
    <DECORATED>?CorrectAliasing@@YAHPEA_W@Z</DECORATED>
    <FUNCLINE>44</FUNCLINE>
    <PROBABILITY>1</PROBABILITY>
    <RANK>2</RANK>
    <CATEGORY>
      <RULECATEGORY>mspft</RULECATEGORY>
    </CATEGORY>
    <PATH>
      <SFA>
        <FILEPATH>d:\src\sarif-sdk\src\sarif.functionaltests\convertertestdata\prefast\src\c6305\</FILEPATH>
        <FILENAME>advancedc6305.cpp</FILENAME>
        <LINE>46</LINE>
        <COLUMN>8</COLUMN>
      </SFA>
      <SFA>
        <FILEPATH>d:\src\sarif-sdk\src\sarif.functionaltests\convertertestdata\prefast\src\c6305\</FILEPATH>
        <FILENAME>advancedc6305.cpp</FILENAME>
        <LINE>47</LINE>
        <COLUMN>8</COLUMN>
        <KEYEVENT>
          <ID>1</ID>
          <KIND>declaration</KIND>
          <IMPORTANCE>Essential</IMPORTANCE>
          <MESSAGE>'j' is a byte quantity</MESSAGE>
        </KEYEVENT>
      </SFA>
      <SFA>
        <FILEPATH>d:\src\sarif-sdk\src\sarif.functionaltests\convertertestdata\prefast\src\c6305\</FILEPATH>
        <FILENAME>advancedc6305.cpp</FILENAME>
        <LINE>49</LINE>
        <COLUMN>6</COLUMN>
        <KEYEVENT>
          <ID>2</ID>
          <KIND>alias</KIND>
          <IMPORTANCE>Essential</IMPORTANCE>
          <MESSAGE>(alias) 'i' receives a byte quantity from 'j'</MESSAGE>
        </KEYEVENT>
      </SFA>
      <SFA>
        <FILEPATH>d:\src\sarif-sdk\src\sarif.functionaltests\convertertestdata\prefast\src\c6305\</FILEPATH>
        <FILENAME>advancedc6305.cpp</FILENAME>
        <LINE>51</LINE>
        <COLUMN>8</COLUMN>
        <KEYEVENT>
          <ID>3</ID>
          <KIND>usage</KIND>
          <IMPORTANCE>Essential</IMPORTANCE>
          <MESSAGE>Expression mixes element counts and byte quantities</MESSAGE>
        </KEYEVENT>
      </SFA>
    </PATH>
  </DEFECT>
  <DEFECT>
    <SFA>
      <FILEPATH>d:\src\sarif-sdk\src\sarif.functionaltests\convertertestdata\prefast\src\c6305\</FILEPATH>
      <FILENAME>advancedc6305.cpp</FILENAME>
      <LINE>61</LINE>
      <COLUMN>6</COLUMN>
    </SFA>
    <DEFECTCODE>6305</DEFECTCODE>
    <DESCRIPTION>Potential mismatch between sizeof and countof quantities. Use sizeof() to scale byte sizes.</DESCRIPTION>
    <FUNCTION>ShowKeyEventsWhenNoLocation</FUNCTION>
    <DECORATED>?ShowKeyEventsWhenNoLocation@@YAHXZ</DECORATED>
    <FUNCLINE>56</FUNCLINE>
    <PROBABILITY>1</PROBABILITY>
    <RANK>2</RANK>
    <CATEGORY>
      <RULECATEGORY>mspft</RULECATEGORY>
    </CATEGORY>
    <PATH>
      <SFA>
        <FILEPATH>d:\src\sarif-sdk\src\sarif.functionaltests\convertertestdata\prefast\src\c6305\</FILEPATH>
        <FILENAME>advancedc6305.cpp</FILENAME>
        <LINE>58</LINE>
        <COLUMN>8</COLUMN>
      </SFA>
      <SFA>
        <FILEPATH>d:\src\sarif-sdk\src\sarif.functionaltests\convertertestdata\prefast\src\c6305\</FILEPATH>
        <FILENAME>advancedc6305.cpp</FILENAME>
        <LINE>59</LINE>
        <COLUMN>8</COLUMN>
      </SFA>
      <SFA>
        <FILEPATH>d:\src\sarif-sdk\src\sarif.functionaltests\convertertestdata\prefast\src\c6305\</FILEPATH>
        <FILENAME>advancedc6305.cpp</FILENAME>
        <LINE>61</LINE>
        <COLUMN>6</COLUMN>
        <KEYEVENT>
          <ID>1</ID>
          <KIND>usage</KIND>
          <IMPORTANCE>Essential</IMPORTANCE>
          <MESSAGE>Expression mixes element counts and byte quantities</MESSAGE>
        </KEYEVENT>
      </SFA>
    </PATH>
  </DEFECT>
  <DEFECT>
    <SFA>
      <FILEPATH>d:\src\sarif-sdk\src\sarif.functionaltests\convertertestdata\prefast\src\c6305\</FILEPATH>
      <FILENAME>advancedc6305.cpp</FILENAME>
      <LINE>70</LINE>
      <COLUMN>4</COLUMN>
    </SFA>
    <DEFECTCODE>6305</DEFECTCODE>
    <DESCRIPTION>Potential mismatch between sizeof and countof quantities. Use sizeof() to scale byte sizes.</DESCRIPTION>
    <FUNCTION>ShowKeyEventsWhenNoLocation2</FUNCTION>
    <DECORATED>?ShowKeyEventsWhenNoLocation2@@YAXXZ</DECORATED>
    <FUNCLINE>66</FUNCLINE>
    <PROBABILITY>1</PROBABILITY>
    <RANK>2</RANK>
    <CATEGORY>
      <RULECATEGORY>mspft</RULECATEGORY>
    </CATEGORY>
    <PATH>
      <SFA>
        <FILEPATH>d:\src\sarif-sdk\src\sarif.functionaltests\convertertestdata\prefast\src\c6305\</FILEPATH>
        <FILENAME>advancedc6305.cpp</FILENAME>
        <LINE>68</LINE>
        <COLUMN>5</COLUMN>
      </SFA>
      <SFA>
        <FILEPATH>d:\src\sarif-sdk\src\sarif.functionaltests\convertertestdata\prefast\src\c6305\</FILEPATH>
        <FILENAME>advancedc6305.cpp</FILENAME>
        <LINE>69</LINE>
        <COLUMN>4</COLUMN>
      </SFA>
      <SFA>
        <FILEPATH>d:\src\sarif-sdk\src\sarif.functionaltests\convertertestdata\prefast\src\c6305\</FILEPATH>
        <FILENAME>advancedc6305.cpp</FILENAME>
        <LINE>70</LINE>
        <COLUMN>4</COLUMN>
        <KEYEVENT>
          <ID>1</ID>
          <KIND>usage</KIND>
          <IMPORTANCE>Essential</IMPORTANCE>
          <MESSAGE>Expression mixes element counts and byte quantities</MESSAGE>
        </KEYEVENT>
      </SFA>
    </PATH>
  </DEFECT>
  <DEFECT>
    <SFA>
      <FILEPATH>d:\src\sarif-sdk\src\sarif.functionaltests\convertertestdata\prefast\src\c6305\</FILEPATH>
      <FILENAME>advancedc6305.cpp</FILENAME>
      <LINE>77</LINE>
      <COLUMN>5</COLUMN>
    </SFA>
    <DEFECTCODE>6305</DEFECTCODE>
    <DESCRIPTION>Potential mismatch between sizeof and countof quantities. Use sizeof() to scale byte sizes.</DESCRIPTION>
    <FUNCTION>ShowKeyEventsForPointerArithmetic</FUNCTION>
    <DECORATED>?ShowKeyEventsForPointerArithmetic@@YAXPEAH@Z</DECORATED>
    <FUNCLINE>73</FUNCLINE>
    <PROBABILITY>1</PROBABILITY>
    <RANK>2</RANK>
    <CATEGORY>
      <RULECATEGORY>mspft</RULECATEGORY>
    </CATEGORY>
    <PATH>
      <SFA>
        <FILEPATH>d:\src\sarif-sdk\src\sarif.functionaltests\convertertestdata\prefast\src\c6305\</FILEPATH>
        <FILENAME>advancedc6305.cpp</FILENAME>
        <LINE>75</LINE>
        <COLUMN>7</COLUMN>
        <KEYEVENT>
          <ID>1</ID>
          <KIND>declaration</KIND>
          <IMPORTANCE>Essential</IMPORTANCE>
          <MESSAGE>'cb' is a byte quantity</MESSAGE>
        </KEYEVENT>
      </SFA>
      <SFA>
        <FILEPATH>d:\src\sarif-sdk\src\sarif.functionaltests\convertertestdata\prefast\src\c6305\</FILEPATH>
        <FILENAME>advancedc6305.cpp</FILENAME>
        <LINE>77</LINE>
        <COLUMN>5</COLUMN>
        <KEYEVENT>
          <ID>2</ID>
          <KIND>usage</KIND>
          <IMPORTANCE>Essential</IMPORTANCE>
          <MESSAGE>Expression mixes element counts and byte quantities</MESSAGE>
        </KEYEVENT>
      </SFA>
    </PATH>
  </DEFECT>
</DEFECTS>


text:
class CreateStaffs < ActiveRecord::Migration
  def change
    create_table :staffs do |t|
      t.string :name
      t.string     :registration # optional
      t.belongs_to :clinic
      t.timestamps
    end
    add_index :staffs, :name
  end
end


text:
using System;
using System.Diagnostics;
using System.Collections.Generic;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Codeer.Friendly.Windows;
using Codeer.Friendly.Windows.Grasp;
using System.Windows.Forms;

namespace Codeer.Friendly.Dynamic.Test
{
    /// <summary>
    /// AppVarExtensionsとDynamicAppVarに関するテストです。
    /// </summary>
    [TestClass]
    public class ObjectMethodTest
    {
        WindowsAppFriend _app;
        dynamic type;

        /// <summary>
        /// テスト初期化。
        /// </summary>
        [TestInitialize]
        public void TestInitialize()
        {
            _app = new WindowsAppFriend(Process.Start(TargetPath.TestTargetPath), "4.0");
            type = _app.Type().TestTarget.ObjectMethod;
        }

        /// <summary>
        /// テスト終了処理。
        /// </summary>
        [TestCleanup]
        public void TestCleanup()
        {
            Process process = Process.GetProcessById(_app.ProcessId);
            _app.Dispose();
            process.CloseMainWindow();
        }

        /// <summary>
        /// Equalsのテスト
        /// </summary>
        [TestMethod]
        public void EqualsTest()
        {
            type.Equals(1);
            Assert.AreEqual("Equals-1", (string)type.CallName);
        }

        /// <summary>
        /// Equals(static)のテスト
        /// </summary>
        [TestMethod]
        public void EqualsStaticTest()
        {
            type.Equals(1, 2);
            Assert.AreEqual("Equals-1-2", (string)type.CallName);
        }

        /// <summary>
        /// Equals(static)のテスト
        /// </summary>
        [TestMethod]
        public void EqualsStaticObjectTest()
        {
            dynamic form1 = _app.Type<Application>().OpenForms[0];
            dynamic form2 = _app.Type<Application>().OpenForms[0];
            dynamic form3 = _app.Type().TestTarget.MainForm();
            Assert.IsTrue((bool)_app.Type<object>().Equals(form1, form2));
            Assert.IsFalse((bool)_app.Type<object>().Equals(form1, form3));
        }

        /// <summary>
        /// GetHashCodeのテスト
        /// </summary>
        [TestMethod]
        public void GetHashCodeTest()
        {
            type.GetHashCode();
            Assert.AreEqual("GetHashCode", (string)type.CallName);
        }

        /// <summary>
        /// ToStringのテスト
        /// </summary>
        [TestMethod]
        public void ToStringTest()
        {
            type.ToString();
            Assert.AreEqual("ToString", (string)type.CallName);
        }

        /// <summary>
        /// GetTypeのテスト
        /// </summary>
        [TestMethod]
        public void GetTypeTest()
        {
            Assert.AreEqual(typeof(int).ToString(), type.GetType().ToString());
            Assert.AreEqual("GetType", (string)type.CallName);
        }

        /// <summary>
        /// Memberwiseのテスト
        /// </summary>
        [TestMethod]
        public void MemberwiseCloneTest()
        {
            type.MemberwiseClone();
            Assert.AreEqual("MemberwiseClone", (string)type.CallName);
        }

        /// <summary>
        /// ReferenceEqualsのテスト
        /// </summary>
        [TestMethod]
        public void ReferenceEqualsTest()
        {
            type.ReferenceEquals(1, 2);
            Assert.AreEqual("ReferenceEquals-1-2", (string)type.CallName);
        }

        /// <summary>
        /// ReferenceEqualsのテスト
        /// </summary>
        [TestMethod]
        public void ReferenceEqualsObjectTest()
        {
            dynamic form1 = _app.Type<Application>().OpenForms[0];
            dynamic form2 = _app.Type<Application>().OpenForms[0];
            dynamic form3 = _app.Type().TestTarget.MainForm();
            Assert.IsTrue((bool)_app.Type<object>().ReferenceEquals(form1, form2));
            Assert.IsFalse((bool)_app.Type<object>().ReferenceEquals(form1, form3));
        }
    }
}