text:
using UnityEngine;
using System.Collections;
using System;

[Serializable]
public class CanvasRadialLayer : CanvasLayer {
	static TextureFormat textureFormat = TextureFormat.ARGB32;
	public bool isInProgress{
		get{
			return fillAnimate;
		}
	}
	Texture radialTexture;
	float animationStartTime;
	bool fillAnimate;
	float duration = 1.6f;
	static int FILL_VALUE_ID = Shader.PropertyToID("_FillValue");

	public CanvasRadialLayer(IntVector2 size, float zPosition, Shader shader, Texture radialTexture, CanvasCamera canvasCamera)
				:base(size,zPosition, shader, canvasCamera){
		this.radialTexture = radialTexture;
		material.SetTexture("_FillTex", radialTexture);
		enabled = false;
		this.texture = new Texture2D(size.x,size.y, textureFormat,false);
		material.mainTexture = texture;
	}

	public IEnumerator updateColorsAndAnimate(Color32[] colors, IntVector2 center){
		setParameters(center);
		texture.SetPixels32(colors);
		texture.Apply();
		updateAnimationVars();
		enabled = true;
		while(fillAnimate){
			updateAnimationVars();
			yield return null;
		}
		enabled = false;
	}

	void setParameters (IntVector2 center) {
		float maxX = Mathf.Max(center.x, size.x - center.x);
		float maxY = Mathf.Max(center.y, size.y - center.y);

		Vector2 v1 = getUvPoint(maxX, maxY);
		float ratioX = (size.x  - maxX) / maxX;
		float ratioY = (size.y - maxY) / maxY;

		Vector2 v2 = new Vector2(v1.x * ratioX, v1.y * ratioY);

		float x0, x1, y0, y1;
		if (center.x == (int)maxX){
			x0 = 0.5f - v1.x;
			x1 = 0.5f + v2.x;
		} else {
			x0 = 0.5f - v2.x;
			x1 = 0.5f + v1.x;
		}

		if (center.y == (int)maxY){
			y0 = 0.5f - v1.y;
			y1 = 0.5f + v2.y;
		} else {
			y0 = 0.5f - v2.y;
			y1 = 0.5f + v1.y;
		}
		Vector2[] uv1 = new Vector2[6];
		uv1[0] =          new Vector2(x0, y0);
		uv1[1] = uv1[5] = new Vector2(x0, y1);
		uv1[2] = uv1[3] = new Vector2(x1, y0);
		uv1[4] =          new Vector2(x1, y1);

		mesh.uv1 = uv1;

		fillAnimate = true;
		animationStartTime = Time.realtimeSinceStartup;
	}

	Vector2 getUvPoint(float x, float y){
		float diag=Mathf.Sqrt(x * x + y * y);
		return new Vector2(0.5f * x / diag, 0.5f * y / diag);
	}

	void updateAnimationVars () {
		float value = 1 - InterpolationUtil.moveInLinear(Time.realtimeSinceStartup - animationStartTime, 0,duration, 1);
		if (value <= 0){
			value = 0;
			fillAnimate = false;
		}

		material.SetFloat(FILL_VALUE_ID, value);
	}

	override public void render(){
		if (enabled)
			Graphics.DrawMesh (mesh, position, quaternion, material, 8, camera);
	}
}


text:
@interface UIBarButtonItem (ZYExtension)
+ (UIBarButtonItem *)barButtonItemWithTarget:(id)target action:(SEL)action normalImage:(NSString *)normalImage highImage:(NSString *)highImage;
@end

redpajama_set_name: RedPajamaGithub


text:
void GPIOinitOut(uint8_t portNum, uint32_t pinNum);
//Initialize the port and pin as outputs.
void GPIOinitIn(uint8_t portNum, uint32_t pinNum);
// Set the pin HIGH
void setGPIO(uint8_t portNum, uint32_t pinNum);
// Set the pin LOW
void clearGPIO(uint8_t portNum, uint32_t pinNum);
// Read GPIO
int getGPIO(uint8_t portNum, uint32_t pinNum);
// Set GPIOS for leds
void initLED();
// set LED color
bool setLED(uint8_t color);
// turn off all LED
void LEDOff();

#endif


text:
module AskAwesomely
  class Field::Statement < Field::Field

    def initialize(*)
      super
    end

    def no_quotation_marks
      @state.hide_marks = true
    end

    def button_text(text)
      @state.button_text = text
    end

  end
end


text:
package com.bernardomg.tabletop.dreadball.model.persistence.availability.player;

import java.io.Serializable;
import java.util.Objects;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;

import com.bernardomg.tabletop.dreadball.model.availability.player.TeamPlayerAvailability;
import com.bernardomg.tabletop.dreadball.model.faction.TeamType;
import com.bernardomg.tabletop.dreadball.model.persistence.faction.PersistentTeamType;
import com.bernardomg.tabletop.dreadball.model.persistence.player.PersistentTeamPlayer;
import com.bernardomg.tabletop.dreadball.model.player.TeamPlayer;
import com.google.common.base.MoreObjects;

/**
 * Player availabilities for a {@link TeamType}, to be used for both Dreadball
 * Original (DBO) and Dreadball Xtreme (DBX).
 * <p>
 * This is a persistent JPA-Based implementation.
 *
 * @author Bernardo Martínez Garrido
 */
@Entity(name = "TeamTypePlayerAvailability")
@Table(name = "TEAM_TYPE_PLAYERS")
public class PersistentTeamPlayerAvailability
        implements TeamPlayerAvailability, Serializable {

    /**
     * Serialization ID.
     */
    private static final long    serialVersionUID = -3725739240261330858L;

    /**
     * Ava's primary key.
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer              id               = -1;

    /**
     * Player for the availability.
     */
    @OneToOne
    @JoinColumn(name = "player_id")
    private PersistentTeamPlayer teamPlayer;

    /**
     * Team type for the availability.
     */
    @OneToOne
    @JoinColumn(name = "team_type_id")
    private PersistentTeamType   teamType;

    /**
     * Default constructor.
     */
    public PersistentTeamPlayerAvailability() {
        super();
    }

    @Override
    public final boolean equals(final Object obj) {
        if (this == obj) {
            return true;
        }

        if (obj == null) {
            return false;
        }

        if (getClass() != obj.getClass()) {
            return false;
        }

        final PersistentTeamPlayerAvailability other;

        other = (PersistentTeamPlayerAvailability) obj;
        return Objects.equals(teamType, other.teamType)
                && Objects.equals(teamPlayer, other.teamPlayer);
    }

    /**
     * Returns the ID assigned to this entity.
     *
     * @return the entity's ID
     */
    public Integer getId() {
        return id;
    }

    @Override
    public TeamPlayer getTeamPlayer() {
        return teamPlayer;
    }

    @Override
    public TeamType getTeamType() {
        return teamType;
    }

    @Override
    public final int hashCode() {
        return Objects.hash(teamPlayer, teamType);
    }

    /**
     * Sets the ID assigned to this entity.
     *
     * @param identifier
     *            the ID for the entity
     */
    public void setId(final Integer identifier) {
        id = identifier;
    }

    /**
     * Sets the player for the availability.
     *
     * @param playerType
     *            the player for the availability
     */
    public void setTeamPlayer(final PersistentTeamPlayer playerType) {
        teamPlayer = playerType;
    }

    /**
     * Sets the team type for the availability.
     *
     * @param team
     *            the team type for the availability
     */
    public void setTeamType(final PersistentTeamType team) {
        teamType = team;
    }

    @Override
    public final String toString() {
        return MoreObjects.toStringHelper(this).add("team", teamType)
                .add("player", teamPlayer).toString();
    }

}


text:
<?php

 require_once dirname(__FILE__) . '/../slirimagelib.interface.php';
 require_once dirname(__FILE__) . '/../slirimage.class.php';

/**
 * Class for working with the GD image library
 * @package SLIR
 * @since 2.0
 */
class SLIRGDImage extends SLIRImage implements SLIRImageLibrary
{

  /**
   * @var resource GD image resource
   */
  private $image;

  /**
   * @var string $data
   */
  private $data;

  /**
   * @param string $path
   * @return void
   * @since 2.0
   */
  public function __construct($path = null)
  {
    // Allows some funky JPEGs to work instead of breaking everything
    ini_set('gd.jpeg_ignore_warning', '1');

    return parent::__construct($path);
  }

  /**
   * @return void
   * @since 2.0
   */
  public function __destruct()
  {
    unset(
        $this->image
    );
    return parent::__destruct();
  }

  /**
   * Gets a hash that represents the properties of the image.
   *
   * Used for caching.
   *
   * @param $infosToInclude
   * @return string
   * @since 2.0
   */
  public function getHash(array $infosToInclude = array())
  {
    $infos  = array(
    );

    $infos = array_merge($infos, $infosToInclude);

    return parent::getHash($infos);
  }

  /**
   * @return resource
   * @since 2.0
   */
  public function getImage()
  {
    if ($this->image === null) {
      if ($this->getPath() === null) {
        $this->create();
      } else {
        try {
          if ($this->isJPEG()) {
            $this->image  = imagecreatefromjpeg($this->getFullPath());
          } else if ($this->isGIF()) {
            $this->image  = imagecreatefromgif($this->getFullPath());
          } else if ($this->isPNG()) {
            $this->image  = imagecreatefrompng($this->getFullPath());
          } else if ($this->isBMP()) {
            $this->image  = $this->imagecreatefrombmp($this->getFullPath());
          }
        } catch (Exception $e) {
          // Try an alternate catch-all method
          $this->image  = imagecreatefromstring(file_get_contents($this->getFullPath()));
        }

        $this->info = null;
      }
    }

    return $this->image;
  }

  /**
   * @since 2.0
   * @param string $path path to BMP file
   * @return resource
   * @link http://us.php.net/manual/en/function.imagecreatefromwbmp.php#86214
   */
  public function imagecreatefrombmp($path)
  {
    // Load the image into a string
    $read = file_get_contents($path);

    $temp = unpack('H*', $read);
    $hex  = $temp[1];
    $header = substr($hex, 0, 108);

    // Process the header
    // Structure: http://www.fastgraph.com/help/bmp_header_format.html
    if (substr($header, 0, 4) == '424d') {
      // Get the width 4 bytes
      $width  = hexdec($header[38] . $header[39] . $header[36] . $header[37]);

      // Get the height 4 bytes
      $height = hexdec($header[46] . $header[47] . $header[44] . $header[45]);
    }

    // Define starting X and Y
    $x  = 0;
    $y  = 1;

    // Create newimage
    $image  = imagecreatetruecolor($width, $height);

    // Grab the body from the image
    $body = substr($hex, 108);

    // Calculate if padding at the end-line is needed
    // Divided by two to keep overview.
    // 1 byte = 2 HEX-chars
    $bodySize    = (strlen($body) / 2);
    $headerSize  = ($width * $height);

    // Use end-line padding? Only when needed
    $usePadding = ($bodySize > ($headerSize * 3) + 4);

    // Using a for-loop with index-calculation instaid of str_split to avoid large memory consumption
    // Calculate the next DWORD-position in the body
    for ($i = 0; $i < $bodySize; $i += 3) {
        // Calculate line-ending and padding
        if ($x >= $width) {
          // If padding needed, ignore image-padding
          // Shift i to the ending of the current 32-bit-block
          if ($usePadding) {
            $i += $width % 4;
          }

          // Reset horizontal position
          $x  = 0;

          // Raise the height-position (bottom-up)
          ++$y;

          // Reached the image-height? Break the for-loop
          if ($y > $height) {
            break;
          }
        }

      // Calculation of the RGB-pixel (defined as BGR in image-data)
      // Define $iPos as absolute position in the body
      $iPos = $i * 2;
      $r    = hexdec($body[$iPos + 4] . $body[$iPos + 5]);
      $g    = hexdec($body[$iPos + 2] . $body[$iPos + 3]);
      $b    = hexdec($body[$iPos] . $body[$iPos + 1]);

      // Calculate and draw the pixel
      $color  = imagecolorallocate($image, $r, $g, $b);
      imagesetpixel($image, $x, $height - $y, $color);

      // Raise the horizontal position
      ++$x;
    }

    // Unset the body / free the memory
    unset($body);

    // Return image-object
    return $image;
  }

  /**
   * Resamples the image into the destination image
   * @param SLIRGDImage $destination
   * @return SLIRImageLibrary
   * @since 2.0
   */
  public function resample(SLIRImageLibrary $destination)
  {
    imagecopyresampled(
        $destination->getImage(),
        $this->getImage(),
        0,
        0,
        0,
        0,
        $destination->getWidth(),
        $destination->getHeight(),
        $this->getWidth(),
        $this->getHeight()
    );

    return $this;
  }

  /**
   * Copies the image into the destination image without reszing
   * @param SLIRGDImage $destination
   * @return SLIRImageLibrary
   * @since 2.0
   */
  public function copy(SLIRImageLibrary $destination)
  {
    imagecopy(
        $destination->getImage(),
        $this->getImage(),
        0,
        0,
        0,
        0,
        $this->getWidth(),
        $this->getHeight()
    );

    return $this;
  }

  /**
   * Gets width, height, and iptc information from the image
   * @param string $info
   * @return mixed
   * @since 2.0
   */
  public function getInfo($info = null)
  {
    if ($this->info === null) {
      if ($this->getPath() === null) {
        // If there is no path, get the info from the image resource
        if ($this->getImage() === null) {
          // There is nothing to get
        } else {
          $this->info['width']  = imagesx($this->getImage());
          $this->info['width']  = imagesy($this->getImage());
          // @todo mime
        }
      } else {
        // There is a path, so get the info from the file
        $this->info = getimagesize($this->getFullPath(), $extraInfo);

        if ($this->info === false) {
          header('HTTP/1.1 400 Bad Request');
          throw new RuntimeException('getimagesize failed (source file may not be an image): ' . $this->getFullPath());
        }

        $this->info['width']  =& $this->info[0];
        $this->info['height'] =& $this->info[1];

        // IPTC
        if (is_array($extraInfo) && isset($extraInfo['APP13'])) {
          $this->info['iptc'] = iptcparse($extraInfo['APP13']);
        }
      }
    }

    if ($info === null) {
      return $this->info;
    } else {
      if (isset($this->info[$info])) {
        return $this->info[$info];
      } else {
        return null;
      }
    }
  }

  /**
   * Creates a new, blank image
   * @return SLIRImageLibrary
   */
  public function create()
  {
    $this->image  = imagecreatetruecolor($this->getWidth(), $this->getHeight());

    return $this;
  }

  /**
   * Turns on the alpha channel to enable transparency in the image
   * @return SLIRImageLibrary
   * @since 2.0
   */
  public function enableTransparency()
  {
    imagealphablending($this->getImage(), false);
    imagesavealpha($this->getImage(), true);
    return $this;
  }

  /**
   * Fills the image with the set background color
   * @return SLIRImageLibrary
   * @since 2.0
   */
  public function fill()
  {
    $color      = $this->getBackground();

    $background = imagecolorallocate(
        $this->getImage(),
        hexdec($color[0].$color[1]),
        hexdec($color[2].$color[3]),
        hexdec($color[4].$color[5])
    );

    imagefilledrectangle($this->getImage(), 0, 0, $this->getWidth(), $this->getHeight(), $background);

    return $this;
  }

  /**
   * Turns interlacing on or off
   * @return SLIRImageLibrary
   * @since 2.0
   */
  public function interlace()
  {
    imageinterlace($this->getImage(), $this->getProgressive());
    return $this;
  }

  /**
   * Gets the class that will be used to determine the crop offset for the image
   *
   * @since 2.0
   * @return SLIRCropper
   */
  final public function getCropperClass()
  {
    $cropClass  = strtolower($this->getCropper());
    $fileName   = SLIRConfig::$pathToSLIR . "/core/libs/gd/croppers/$cropClass.class.php";
    $class      = 'SLIRCropper' . ucfirst($cropClass);

    if (!file_exists($fileName)) {
      throw new RuntimeException('The requested cropper could not be found: ' . $fileName);
    }

    require_once $fileName;

    return new $class();
  }

  /**
   * Performs the actual cropping of the image
   *
   * @return SLIRImageLibrary
   * @since 2.0
   */
  public function crop()
  {
    if ($this->croppingIsNeeded()) {
      $cropper  = $this->getCropperClass();
      $offset   = $cropper->getCrop($this);
      $this->cropImage($offset['x'], $offset['y']);
    }

    return $this;
  }

  /**
   * Performs the actual cropping of the image
   *
   * @since 2.0
   * @param integer $leftOffset Number of pixels from the left side of the image to crop in
   * @param integer $topOffset Number of pixels from the top side of the image to crop in
   * @param string $fill color in hex
   * @return boolean
   */
  private function cropImage($leftOffset, $topOffset)
  {
    $class    = __CLASS__;
    $cropped  = new $class();

    $cropped->setWidth($this->getCropWidth())
      ->setHeight($this->getCropHeight())
      ->setBackground($this->getBackground());

    // Copy rendered image to cropped image
    imagecopy(
        $cropped->getImage(),
        $this->getImage(),
        0,
        0,
        $leftOffset,
        $topOffset,
        $cropped->getWidth(),
        $cropped->getHeight()
    );

    // Replace pre-cropped image with cropped image
    $this->destroy();
    $this->image          = $cropped->getImage();

    // Update width and height
    $this->info['width']  = $cropped->getWidth();
    $this->info['height'] = $cropped->getHeight();

    // Clean up memory
    unset($cropped);

    return $this;
  }

  /**
   * Sharpens the image
   * @return SLIRImageLibrary
   * @since 2.0
   */
  public function sharpen()
  {
    if ($this->isSharpeningDesired()) {
      imageconvolution(
          $this->getImage(),
          $this->sharpenMatrix($this->getSharpeningFactor()),
          $this->getSharpeningFactor(),
          0
      );
    }

    return $this;
  }

  /**
   * @param integer $sharpness
   * @return array
   * @since 2.0
   */
  private function sharpenMatrix($sharpness)
  {
    return array(
      array(-1, -2, -1),
      array(-2, $sharpness + 12, -2),
      array(-1, -2, -1)
    );
  }

  /**
   * Determines if the image can be converted to a palette image
   *
   * @since 2.0
   * @return array colors in image, otherwise false if image is not palette
   */
  private function isPalette()
  {
    $colors = array();
    $image  = $this->getImage();
    // Loop over all of the pixels in the image, counting the colors and checking their alpha channels
    for ($x = 0, $width = $this->getWidth(); $x < $width; ++$x) {
      for ($y = 0, $height = $this->getHeight(); $y < $height; ++$y) {
        $color = imagecolorat($image, $x, $y);

        if (isset($colors[$color])) {
          // This color has already been checked, move on to the next pixel
          continue;
        }

        $colors[$color] = true;

        if (count($colors) > 256) {
          // Too many colors to convert to a palette image without losing quality
          return false;
        }

        // Get the alpha channel of the color
        $alpha  = ($color & 0x7F000000) >> 24;

        // What is the threshold for visibility in an alpha channel? (out of 127)
        if ($alpha > 1 && $alpha < 126) {
          return false;
        }
      }
    }

    return $colors;
  }

  /**
   * @since 2.0
   * @return void
   * @link http://us.php.net/manual/ro/function.imagetruecolortopalette.php#44803
   */
  private function trueColorToPalette($dither, $ncolors)
  {
    $palette  = imagecreate($this->getWidth(), $this->getHeight());

    imagecopy(
        $palette,
        $this->getImage(),
        0,
        0,
        0,
        0,
        $this->getWidth(),
        $this->getHeight()
    );

    $this->destroy();
    $this->image  = $palette;
    $this->setMimeType('image/png');

    /* For some reason, ImageTrueColorToPalette produces horrible results for true color images that have less than 256 colors. http://stackoverflow.com/questions/5187480/imagetruecolortopalette-losing-colors

    $colorsHandle = ImageCreateTrueColor($this->getWidth(), $this->getHeight());
    ImageCopy($colorsHandle, $this->image, 0, 0, 0, 0, $this->getWidth(), $this->getHeight());
    ImageTrueColorToPalette($this->image, $dither, $ncolors);
    ImageColorMatch($colorsHandle, $this->image);
    ImageDestroy($colorsHandle);
    */
  }

  /**
   * @since 2.0
   * @return SLIRImage
   */
  public function optimize()
  {
    $colors = $this->isPalette();
    if ($colors !== false) {
      $this->trueColorToPalette(false, count($colors));
    }
    return $this;
  }

  /**
   * @return string
   */
  public function getData()
  {
    if ($this->data === null) {
      ob_start();
      $this->output();
      $this->data = ob_get_clean();
    }

    return $this->data;
  }

  /**
   * Outputs the image
   * @return SLIRImageLibrary
   * @since 2.0
   */
  public function output()
  {
    $this->render(null);
    return $this;
  }

  /**
   * Saves the image to disk
   * @param string $filename
   * @return SLIRImageLibrary
   * @since 2.0
   */
  public function save()
  {
    $this->render($this->getFullPath());
    return $this;
  }

  /**
   * @param string $path
   * @return boolean
   * @since 2.0
   */
  private function render($path)
  {
    if ($this->isJPEG()) {
      return imagejpeg($this->image, $path, $this->getQuality());
    } else if ($this->isPNG()) {
      return imagepng($this->image, $path, (integer) round(10 - ($this->getQuality() / 10)));
    } else if ($this->isGIF()) {
      return imagegif($this->image, $path);
    } else {
      return false;
    }
  }

  /**
   * Destroys the image
   * @return SLIRImageLibrary
   * @since 2.0
   */
  public function destroy()
  {
    if ($this->image !== null) {
      imagedestroy($this->image);
      // We need to set the image to null because imagedestroy() doesn't
      $this->image = null;
    }
    return $this;
  }
}


text:
require File.dirname(__FILE__) + '/../spec_helper'

context "Ext::Grid::ColumnModel with AR" do
  setup do
    @ext = Ext::Grid::ColumnModel.new(:class=>ARMock)
  end

  specify "construct js from ar." do
#           id: 'id',
    expected = <<-EOF
      new Ext.grid.ColumnModel([{
           header: "Id",
           dataIndex: "id"
        },{
           header: "Name",
           dataIndex: "name"
        },{
           header: "Time",
           dataIndex: "time"
        }])
    EOF
    @ext.to_s.comparable.should == expected.comparable
  end

end


text:
ACCEPTED

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

#### Published in
J. Arnold Arbor. 35:42. 1952

#### Original name
Lithospermum arvense L.

### Remarks
null


text:
/*global describe, beforeEach, it*/
'use strict';

var path    = require('path');
var url     = require('url');
var helpers = require('yeoman-generator').test;

describe('android generator', function () {
    beforeEach(function (done) {
        helpers.testDirectory(path.join(__dirname, 'temp'), function (err) {
            if (err) {
                return done(err);
            }

            this.app = helpers.createGenerator('android:app', [
                '../../app'
            ]);

            var app = this.app;
            helpers.stub(this.app, 'fetch', function(u, p, cb) {
                app.write(path.join(p, path.basename(url.parse(u).pathname)), "mocked content");
                cb();
            })

            done();
        }.bind(this));
    });

    it('creates expected files', function (done) {
        var expected = [
            '.classpath',
            '.project',
            'AndroidManifest.xml',
            'build.xml',
            'project.properties',
            'proguard-project.txt',
            'src/doll/ugly/UglyDollApplication.java',
            'custom_rules.xml'
        ];

        helpers.mockPrompt(this.app, {
            'applicationName': "Ugly Doll",
            'packageName': "doll.ugly",
            'minimumApiLevel': 8,
            'libsToInclude': []
        });
        this.app.options['skip-install'] = true;
        this.app.run({}, function () {
            helpers.assertFiles(expected);
            done();
        });
    });

    it('includes mechanoid when selected', function (done) {
        var expected = [
            'UglyDollDB.mechdb',
            'libs/mechanoid.jar'
        ];

        helpers.mockPrompt(this.app, {
            'applicationName': "Ugly Doll",
            'packageName': "doll.ugly",
            'minimumApiLevel': 8,
            'libsToInclude': ['mechanoid']
        });
        this.app.options['skip-install'] = true;
        this.app.run({}, function () {
            helpers.assertFiles(expected);
            helpers.assertFileContent('src/doll/ugly/UglyDollApplication.java', /mechanoid/i);
            done();
        });
    });

    it('excludes mechanoid when not selected', function (done) {
        var unexpected = [
            'UglyDollDB.mechdb',
            'libs/mechanoid.jar'
        ];

        helpers.mockPrompt(this.app, {
            'applicationName': "Ugly Doll",
            'packageName': "doll.ugly",
            'minimumApiLevel': 8,
            'libsToInclude': []
        });
        this.app.options['skip-install'] = true;
        this.app.run({}, function () {
            helpers.assertNoFile(unexpected);
            helpers.assertNoFileContent('src/doll/ugly/UglyDollApplication.java', /mechanoid/i);
            done();
        });
    });

    it('includes Universal-Image-Loader when selected', function (done) {
        var expected = [
            'libs/universal-image-loader-1.9.1.jar'
        ];

        helpers.mockPrompt(this.app, {
            'applicationName': "Ugly Doll",
            'packageName': "doll.ugly",
            'minimumApiLevel': 8,
            'libsToInclude': ['imageLoader']
        });
        this.app.options['skip-install'] = true;
        this.app.run({}, function () {
            helpers.assertFiles(expected);
            helpers.assertFileContent('src/doll/ugly/UglyDollApplication.java', /universalimageloader/i);
            done();
        });
    });

    it('excludes Universal-Image-Loader when not selected', function (done) {
        var unexpected = [
            'libs/universal-image-loader-1.9.1.jar'
        ];

        helpers.mockPrompt(this.app, {
            'applicationName': "Ugly Doll",
            'packageName': "doll.ugly",
            'minimumApiLevel': 8,
            'libsToInclude': []
        });
        this.app.options['skip-install'] = true;
        this.app.run({}, function () {
            helpers.assertNoFile(unexpected);
            helpers.assertNoFileContent('src/doll/ugly/UglyDollApplication.java', /universalimageloader/i);
            done();
        });
    });
});


text:
package org.apache.activemq.broker.inteceptor;

import org.apache.activemq.broker.ProducerBrokerExchange;
import org.apache.activemq.command.Message;

public interface MessageInterceptor {

    void intercept(ProducerBrokerExchange producerExchange, Message message);
}


text:
require "fae/engine"
require "fae/options"
require 'carrierwave'

module Fae
end


text:
import os, sys
# If your project is in '/home/user/mysite/polls', you have to put sys.path.extend(['/home/user/mysite/'])
sys.path.extend(['/home/pydev/Documents/Workspaces',
'/home/pydev/Documents/Workspaces/env/lib/python2.7',
'/home/pydev/Documents/Workspaces/env/lib/python2.7/plat-x86_64-linux-gnu',
'/home/pydev/Documents/Workspaces/env/lib/python2.7/lib-tk',
'/home/pydev/Documents/Workspaces/env/lib/python2.7/lib-old',
'/home/pydev/Documents/Workspaces/env/lib/python2.7/lib-dynload',
'/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu',
'/usr/lib/python2.7/lib-tk', '/home/pydev/Documents/Workspaces/env/local/lib/python2.7/site-packages',
'/home/pydev/Documents/Workspaces/env/lib/python2.7/site-packages'])

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "Workspaces.settings")
from django.conf import settings
from redis_sessions_fork.session import SessionStore


text:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System;
using TMPro;
using UnityEngine.UI;

namespace Stratus.UI
{
    [CreateAssetMenu(menuName = "Stratus/UI/Slideshow Asset")]
    public class StratusSlideshowAsset : StratusScriptable
    {
        [Serializable]
        public class Slide
        {
            [TextArea]
            public string text;
            public Sprite sprite;
            public float transition = 0f;
        }

        [SerializeField]
        private List<Slide> _slides;
        public Slide[] slides => _slides.ToArray();
    }

}


text:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
          package="com.xtremelabs.robolectric">

     <application android:name="com.xtremelabs.robolectric.TestApplication"/>
</manifest>


text:
package v1

import (
	"k8s.io/apimachinery/pkg/runtime"
	"k8s.io/apimachinery/pkg/runtime/schema"
	"k8s.io/kubernetes/openshift-kube-apiserver/admission/network/apis/restrictedendpoints"
)

var GroupVersion = schema.GroupVersion{Group: "network.openshift.io", Version: "v1"}

var (
	schemeBuilder = runtime.NewSchemeBuilder(
		addKnownTypes,
		restrictedendpoints.Install,
	)
	Install = schemeBuilder.AddToScheme
)

func addKnownTypes(scheme *runtime.Scheme) error {
	scheme.AddKnownTypes(GroupVersion,
		&RestrictedEndpointsAdmissionConfig{},
	)
	return nil
}


text:
layout: page
title: Obrigado por se cadastrar!
subtitle: Adicione nosso e-mail na sua lista de contatos para que nossos e-mails não caiam na caixa de spam :)
---


text:
//Copyright © 2014 Sony Computer Entertainment America LLC. See License.txt.

namespace LevelEditorCore
{
    ///
    /// An optional interface that can be implemented by
    /// any ITransformable object. The object will receive notification
    /// when it is been manipulated.
    ///
    public interface IManipulatorNotify
    {
        ///
        /// Begin drag
        /// called one time before dragging the object
        void OnBeginDrag();

        ///
        /// called once after dragging ends.
        void OnEndDrag();

    }
}


text:
using SFML.Graphics;
using SFML.System;
using SFML.Window;
using Andromeda.Entities.Components.Internal;
using Andromeda.System;
using Andromeda.Linq;
using System;
using Andromeda.System.Utility;

namespace Andromeda.Entities.Components.UI
{

    /// <summary>
    /// Abstract UI class for interactive elements, like buttons etc.
    /// </summary>
    public abstract class UIInteractable : UIComponent, IInteractableInterfaceComponent
    {
        public event InterfaceEvent OnMouseEnter, OnMouseLeave;

        public virtual bool ShouldPreventFallthrough => true;
        public virtual bool IsIgnoringFallthroughState => false;

        bool _isFallThrough = false;
        public bool HasFallthroughPriority
        {
            get => _isFallThrough;
        }

        /// <summary>
        /// The UserInterface this transform is attached to
        /// </summary>
        public UserInterface UserInterface
        {
            get
            {
                entity.Ancestors.FirstComponent(out UserInterface ui);
                return ui;
            }
        }

        private bool mouseDown = false;

        /// <summary>
        /// Whether or not the mouse is down
        /// </summary>
        public bool IsMouseDown
        {
            get
            {
                return mouseDown;
            }
        }

        /// <summary>
        /// Used to determine collision between button and mouse (For hover detection)
        /// </summary>
        [Obsolete]
        public PolygonRectCollider ButtonCollider
        {
            get
            {
                return Entity.GetComponent<PolygonRectCollider>();
            }
        }

        public abstract override void OnComponentCopy(Entity source, Entity copy);

        public abstract void OnButtonInit(Entity entity);

        protected override void OnComponentInit(Entity entity)
        {
            var rectCollider = Entity.AddComponent<PolygonRectCollider>();
            rectCollider.CreateRectCollider(new Vector2f(100, 20));

            OnButtonInit(entity);
        }

        public abstract override void Draw(RenderTarget target, RenderStates states);

        private void HandleMouseButtonClick(MouseInputAction inputAction, bool inside)
        {
            if (ShouldPreventFallthrough)
                _isFallThrough = inside;

            MouseButtonClicked(inputAction, inside);
        }

        private void HandleMouseButtonRelease(MouseInputAction inputAction)
        {
            if (ShouldPreventFallthrough)
                _isFallThrough = false;

            MouseButtonReleased(inputAction);
        }

        public abstract void MouseButtonClicked(MouseInputAction inputAction, bool inside);

        public virtual void MouseButtonReleased(MouseInputAction inputAction)
        {

        }

        protected Vector2f MouseRelativePosition
        {
            get
            {
                Vector2i globalMousePosition = StateApplication.Application.MousePosition;

                return globalMousePosition.ToFloat() - Transform.GlobalPosition.GlobalAbsolute;
            }
        }

        public void InputRecieved(UserInputAction inputAction)
        {
            var mouseAction = inputAction.Mouse;
            if (mouseAction?.InputState == InputState.Active && mouseAction?.Button == Mouse.Button.Left && Visible)
            {
                // if left click
                if (IsMouseOver && !IsMouseDown)
                {
                    mouseDown = true;
                    HandleMouseButtonClick(mouseAction, true);
                }
                else if (!IsMouseDown)
                {
                    HandleMouseButtonClick(mouseAction, false);
                }
            }
            else if (mouseAction?.InputState == InputState.Inactive && mouseAction.Button == Mouse.Button.Left)
            {
                if (mouseDown)
                    HandleMouseButtonRelease(mouseAction);

                mouseDown = false;

            }
        }

        bool hoverState = false;
        public override void Update()
        {
            if (IsMouseOver && !hoverState && Visible)
            {
                hoverState = true;
                OnMouseEnter?.Invoke(new UserInterfaceAction(UIActionType.MouseEnter, this));

                if (ShouldPreventFallthrough)
                    _isFallThrough = true;
            }
            else if (!IsMouseOver && hoverState && Visible)
            {
                if (ShouldPreventFallthrough && HasFallthroughPriority)
                    _isFallThrough = false;

                hoverState = false;
                OnMouseLeave?.Invoke(new UserInterfaceAction(UIActionType.MouseLeave, this));
            }
        }
    }
}


text:
/*Reset*/
body,ul,ol,li,p,h1,h2,h3,h4,h5,h6,form,label,dl,dt,dd,fieldset,img {margin:0;padding:0;border:0;list-style:none}
body{ background:#f4f4f4; word-wrap: break-word;}
h1,h2,h3,h4,h5,h6{font-size:100%;}
table{border-collapse:collapse;border-spacing:0}
table,th,td{margin:0;padding:0;}
body,fieldset,th,td,select,input,textarea,button {font-size:12px;font-family:"Microsoft Yahei","微软雅黑","Hiragino Sans GB","Simsun",sans-serif;}
select,input {vertical-align:middle}
button{ outline:none;}
input,textarea{ resize:none; outline:none;}
cite,em {font-style:normal}
a {text-decoration:none;outline:none; color:#5fbaf3;}
a:hover {text-decoration:underline;}
a:active{ background-color:transparent;}
label {cursor:pointer;}
.clearfix:after{ content:"."; clear:both; display:block; height:0; visibility:hidden; overflow:hidden; line-height:0;}
.clearfix{zoom:1;}
.none{ display:none!important; }

/*Header*/
body{ background:#f7f7f7;overflow:hidden;}
.container{overflow:hidden; position:relative;}
.yuyue{position:relative; left: 44.5%; top: -140px;margin-top: -50px; width: 250px; height: 50px; background: rgba(255, 0, 0, 0.04); filter:alpha(opacity=50);}
.page_wrap{ position:absolute; left:0; right:0; width:100%; -webkit-transition:all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1); -webkit-transform:translate3d(0,0,0);}
.page_cnt{ position: absolute; left:0%; top:0; right:0; bottom:0;}
.page_item{ position:relative; width:100%; -webkit-transform:translate3d(0,0,0);-ms-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);}
.index{ width:100%; height:100%;}
.index .main-header .nav li a:hover,.index .main-header .nav li a.cur{ color:#fff; opacity:0.6;}
.page_cnt .bg{ -webkit-transition:transform 1s ease 0.5s;-webkit-transition:-webkit-transform 1s ease 0.5s;}
.cur .page_cnt .bg{ -webkit-transform:scale(1.08);}
.index .slogan{ position:absolute; left:50%; top:50%; margin-left:-340px; width:678px; height:101px; margin-top:-50px;}
.counter,.counter2{ position: absolute; right:14px; top:50%; height:208px; margin-top:-104px;}
.counter2{ display:block; z-index:100;}
.counter span,.counter2 span{ width:130px; height:30px;display:block; overflow:hidden; cursor:pointer; background: url("http://3gimg.qq.com/trom_s/toshomepage20150702/tos_home/images/bg_nav_transparnt.png") repeat-x;    }
.counter span em,.counter2 span em{ float:left; width:100px; text-align:right; color:#2676dd; font-size:12px; line-height:30px;-webkit-transform:scale(0.2); -webkit-transform-origin:100% 50%; -webkit-transition:all ease 0.3s;  visibility:hidden; height:30px;}
.counter2 span em{color:#fff; }
.counter span:hover em,.counter2 span:hover em{ -webkit-transform:scale(1);  visibility:visible;}
.counter span i,.counter2 span i{ float:left; width:6px; height:6px; border:1px solid #fff;  margin:10px;border-radius:16px;cursor:pointer;
	/*hack: ie7-8*/
	#width:5px; #height:5px; #margin-top:12px;
	width:5px\9; height:5px\9; margin-top:12px\9;
}
/*hack: IE9*/
:root .counter span i,
:root .counter2 span i { width:6px \0/IE9; height:6px \0/IE9; margin-top:10px \0/IE9; }
.counter span i{border:1px solid #2676dd; }
.counter2 span i{border:1px solid #fff; }
.counter2.sp span.cur i{  background:#fff;}
.counter2.sp span i{border: solid 1px #fff;/* opacity:0.4;*/ }
.counter span.cur i,.counter2 span.cur i{  position:relative; opacity:1;}
.counter span.cur i{background:#2676dd;}
#arrow{   width:47px; height:45px; position: absolute; left:49.5%; bottom:40px; margin-left:-18px;-webkit-animation: arrowUp 2s infinite ease-in-out;-ms-animation: arrowUp 2s infinite ease-in-out;animation: arrowUp 2s infinite ease-in-out; cursor:pointer;}
#arrow.up_btn { background-position:35px -70px;}
#arrow.up_btn:hover{ background-position:-170px -70px;}
		@-webkit-keyframes arrowUp {
			0%, 30% {
				opacity:0;
				-webkit-transform:translate(0, -8px)
			}
			60% {
				opacity:1;
				-webkit-transform:translate(0, 0)
			}
			100% {
				opacity:0;
				-webkit-transform:translate(0, 8px)
			}
		}
		@-webkit-keyframes movein {
			0% {
				opacity:0;
				-webkit-transform:translate(0, -100px)
			}
			100% {
				opacity:1;
				-webkit-transform:translate(0, 0)
			}
		}
.page_item .tit{ margin:0 auto 60px auto; display:block;}
.tit{ -webkit-transform:translateZ(0);}
/*.feature{ -webkit-transform: scale(.7) translateZ(0);}*/
/*.feature img{ -webkit-transform: scale(.7) translate3d(-30%, 0, 0) translateZ(0);}*/
.feature img{ -webkit-transform:translateZ(0);}

.animated{ -webkit-transition:all 1s ease; -moz-transition:all 1s ease; -ms-transition:all 1s ease; transition:all 1s ease;}

.page_item{
	/*background-image: -webkit-linear-gradient( 90deg, rgb(242,245,248) 0%, rgb(242,245,248) 50%, rgb(211,220,229) 100%);*/
	/*background:url("../images/page_bg.jpg") top repeat-x #f1f5f8;*/
	/*background: linear-gradient(to bottom, rgb(211,220,229) 0%, rgb(242,245,248) 50%, rgb(242,245,248) 100%);*/
}
.page11{}
.page11 .phone_wrap{ height:605px;position:absolute; right:50%; top:100px; width:512px;-webkit-transform: translateX(100px);}
/*.phone1,.phone2{  -webkit-transition:transform 1s ease;}*/
.cur .phone1,.cur .phone2{ -webkit-transform:translateX(0);}
.page11 .phone1{ position:absolute; left:-100px; top:10px;}
/*.page11 .phone1{ -webkit-transform:translateX(-100px);}*/
.page11 .phone2{ position:absolute; left:-100px; top:0; /*-webkit-transform:translateX(-100px);*/}
.page11 .phone2.animated{
    -webkit-transform:translateX(160px);
    -moz-transform:translateX(160px);
    -ms-transform:translateX(160px);
    transform:translateX(160px);
}
.no-border-design.line{ position:absolute; top:158px; right:14px; width:274px; height:298px; background:url("http://3gimg.qq.com/trom_s/toshomepage20150702/tos_home/images/img_phone11_2-line.png") no-repeat; z-index:1;}
.no-border-design.line.animated{ width:0;}

.page_item.index .txt_box{ position:absolute; left:50%; top:50%; width:708px; margin-left:-354px; margin-top:-80px;}
.page_item.index .txt_box .title{ background: url(http://3gimg.qq.com/trom_s/toshomepage20150702/tos_home/images/bg_slogan.png) no-repeat; width:707px; height:101px; margin-bottom:33px;}
.page_item.index .txt_box p{ font-size:18px; color:#fffefe; text-align:center; line-height:1.8; margin-bottom:47px;}
.page_item.index .txt_box .btn_v{ width:220px; height:54px; margin:0 auto; display:block;text-align:center; position:relative; background:url(http://3gimg.qq.com/trom_s/toshomepage20150702/tos_home/images/btn_index_video.png) no-repeat; cursor:pointer; left:auto; top:auto; right:auto;}
.page_item.index .txt_box .btn_v:hover{ background-position:0 -54px;}
.page_item.index .txt_box .btn_v span{ line-height:54px; font-size:18px; color:#fff;position:absolute; left:0; top:0; right:0; bottom:0; background:url(http://3gimg.qq.com/trom_s/toshomepage20150702/tos_home/images/icon_arrow.png) no-repeat 170px center ;  display:block; }

.page11 .feature{position:absolute; left:50%; top:50%; margin-left:100px;margin-top:-33px;}

.page12{}
.page12 .phone_wrap{ height:605px;position:absolute; left:50%;top:90px; width:400px;}
.page12 .phone1{ position:absolute; left:210px; top:10px;}
.page12 .phone2{position:absolute; left:150px; top:0;}
.page12 .phone2.animated{ left:0;}
.page12 .feature{position:absolute; right:50%; top:50%; margin-right:100px; margin-top:-33px;}
.page13{}
.page13 .phone_wrap{width:717px; height:389px;position:absolute; left:50%; top:180px; margin-left:-460px;}
.page13 .phone1{ position:absolute; left:0; top:10px;}
.page13 .phone2{position:absolute; left:100px; top:0;}
.page13 .feature{position:absolute; left:50%; top:287px; margin-left:200px;}
.phone-apps{ position:absolute; width:64px; height:84px; background:url("http://3gimg.qq.com/trom_s/toshomepage20150702/tos_home/images/img_phone13-apps.png") no-repeat; opacity:0;}
.phone-apps.a1{ top:200px; left:154px;}
.phone-apps.a2{ top:200px; left:263px; background-position:0 -90px;}
.phone-apps.a3{ top:200px; left:372px; background-position:0 -180px;}
.phone-apps.a4{ top:200px; left:481px; background-position:0 -270px;}
.phone-apps.a5{ top:300px; left:154px; background-position:0 -360px;}
.phone-apps.a6{ top:300px; left:263px; background-position:0 -450px;}
.phone-apps.a7{ top:300px; left:372px; background-position:0 -540px;}
.phone-apps.a8{ top:300px; left:481px; background-position:0 -630px;}
.phone-apps.animated{ opacity:1;
    -webkit-transition:all .3s ease-out;
    -moz-transition:all .3s ease-out;
    -ms-transition:all .3s ease-out;
    transition:all .3s ease-out;
}
.phone-apps.animated.a1{ top:10px;}
.phone-apps.animated.a2{ top:10px;}
.phone-apps.animated.a3{ top:10px;}
.phone-apps.animated.a4{ top:10px;}
.phone-apps.animated.a5{ top:137px;}
.phone-apps.animated.a6{ top:137px;}
.phone-apps.animated.a7{ top:137px;}
.phone-apps.animated.a8{ top:137px;}
.page21{}
.page21 .phone_wrap{ height:605px;position:absolute; left:50%; top:90px; width:302px;}
.page21 .phone1{ position:absolute; left:0; top:0;}
.page21 .phone2{position:absolute; left:0; top:0;margin-top:-133px;}
.page21 .feature{position:absolute; right:50%; top:50%; margin-right:100px; margin-top:-33px;}
.page22{}
.page22 .phone_wrap{ height:605px;position:absolute; right:50%; top:90px; width:400px;}
.page22 .phone1{ position:absolute; left:-54px; top:10px;}
.page22 .phone2{position:absolute; left:-50px; top:0;}
.page22 .phone2.animated{ left:100px;}
.page22 .feature{position:absolute; left:50%; top:50%; margin-left:150px; margin-top:-33px;}
.page23{}
.page23 .phone_wrap{ height:605px;position:absolute; left:50%; top:90px; width:400px; }
.page23 .phone1{ position:absolute; left:0; top:10px;}
.page23 .phone2{position:absolute; left:15px; top:0;}
.page23 .phone2.animated{ left:125px;}
.page23 .feature{position:absolute; right:50%; top:50%; margin-right:100px;margin-top:-33px;}
.page31{}
.page31 .phone_wrap{ height:651px;position:absolute; right:50%; top:90px;width:380px;}
.page31 .phone1{ position:absolute; left:0; top:-15px;}
.page31 .feature{position:absolute; left:50%; top:50%; margin-left:100px;margin-top:-33px;}
.phone-detail{ position:absolute; top:-15px; width:224px; height:219px; background:url("http://3gimg.qq.com/trom_s/toshomepage20150702/tos_home/images/img_phone31_1-detail.png") no-repeat; z-index:1; opacity:0;
    -webkit-transform: scale(.5);
    -moz-transform: scale(.5);
    -ms-transform: scale(.5);
    transform: scale(.5);
}
.phone-detail.animated,
.notice-bar.animated,
.notice.animated{
    -webkit-transition:all .3s ease;
    -moz-transition:all .3s ease;
    -ms-transition:all .3s ease;
    transition:all .3s ease;
}
.phone-detail.animated{
    opacity:1;
    -webkit-transform: scale(1);
    -moz-transform: scale(1);
    -ms-transform: scale(1);
    transform: scale(1);
}
.notice-bar{ position:absolute; left:-30px;}
.notice{ position:absolute; width:30px; height:30px; background:url("http://3gimg.qq.com/trom_s/toshomepage20150702/tos_home/images/img_phone31_1-notice.png") no-repeat; opacity:0;}
.notice.msg{ top:105px; left:85px;}
.notice.weixin{ top:105px; left:123px; background-position:0 -30px;}
.notice.more{ top:105px; left:53px; background-position:0 -60px;}
.notice.msg.animated{ opacity:1;}
.notice.weixin.animated{ opacity:1;}
.notice.more.animated{ opacity:1;}
.notice-bar.animated{ left:0;}

.page32{}
.page32 .phone_wrap{ height:605px;position:absolute; left:50%; top:90px; width:400px; }
.page32 .phone1{ position:absolute; left:0; top:10px;}
.page32 .feature{position:absolute; right:50%; top:50%; margin-right:100px;margin-top:-33px;}
.page33{}
.page33 .phone_wrap{ height:605px;position:absolute; right:50%; top:90px; width:400px; }
.page33 .phone1{ position:absolute; left:0; top:10px;}
.page33 .phone2{position:absolute; left:20px; top:0;}
.page33 .phone2.animated{left:100px;}
.page33 .feature{position:absolute; left:50%; top:50%; margin-left:100px; margin-top:-33px;}
.page41{}
.page41 .phone_wrap{ height:605px;position:absolute; left:50%; top:90px; width:400px; }
.page41 .phone1{ position:absolute; left:150px; top:10px;}
.page41 .phone1.animated{ left:0;}
.page41 .phone2{position:absolute; left:165px; top:0;}
.page41 .feature{position:absolute; right:50%; top:50%; margin-right:100px;margin-top:-33px;}
.page42{}
.page42 .phone_wrap{ height:686px;position:absolute; right:50%; top:90px; width:400px;}
.page42 .phone1{ position:absolute; left:130px; top:35px;}
.page42 .phone1.animated{ left:0;}
.page42 .phone2{ position:absolute; left:130px; top:-10px;}
.page42 .feature{position:absolute; left:50%; top:50%; margin-left:150px;margin-top:-33px;}
.page43{}
.page43 .phone_wrap{ height:605px;position:absolute; left:50%; top:90px; width:400px; }
.page43 .phone1{ position:absolute; left:220px; top:10px;}
.page43 .phone2{ position:absolute; left:150px; top:0;}
.page43 .phone2.animated{ left:0;}
.page43 .feature{position:absolute; right:50%; top:50%; margin-right:100px;margin-top:-33px;}

.trigger{ position:absolute; bottom:0; left:0; right:0; width:100%; height:150px;}
/* footer */
.footer_wrap{ display:none; position:absolute; bottom:0; left:0; background:#e5e5e5;}
.copyright{ background:#f1f1f1;}

/*sider_box*/
.sider_box{ position:absolute; left:0; width:560px; top:0; bottom:0; -webkit-transform:translate3d(-560px,0,0); -webkit-transition:-webkit-transform 0.3s 0.5s;-ms-transform:translate3d(-560px,0,0); -ms-transition:-ms-transform 0.3s 0.5s;-moz-transform:-moz-translate3d(-560px,0,0); -moz-transition:-moz-transform 0.3s 0.5s; height:100%;}/*460px*/
.bg_layer{ width:100%; height:100%; background:#1f7af2; opacity:0.6;}
.page12 .sider_box{ left:auto; right:0; -webkit-transform:translate3d(560px,0,0);-ms-transform:translate3d(560px,0,0);-moz-transform:-moz-translate3d(560px,0,0);}
.page21 .sider_box{ left:auto; right:0;-webkit-transform:translate3d(560px,0,0);-ms-transform:translate3d(560px,0,0);-moz-transform:-moz-translate3d(560px,0,0);}
.page13 .sider_box .bg_layer{ background:#ea5676; opacity:0.6;height:100%;}
.page12 .sider_box .bg_layer{ background:#14e0c1; opacity:0.6;height:100%;}
.page21 .sider_box .bg_layer{ background:#f06434; opacity:0.6;}
.cur .sider_box{-webkit-transform:translateX(-0);-ms-transform:translateX(-0);-moz-transform:translateX(-0);}

.sider_box .icon{ display:block;width:131px; height:224px; position:absolute; left:50%; top:50%; margin-top:-162px; margin-left:-65px; -webkit-transition:-webkit-transform ease .5s 0.8s,opacity ease .5s 0.8s; -webkit-transform:translate3d(0, 50px,0);-ms-transition:-ms-transform ease .5s 0.8s,opacity ease .5s 0.8s; -ms-transform:-ms-translate3d(0, 50px,0); -moz-transition:-moz-transform ease .5s 0.8s,opacity ease .5s 0.8s; -moz-transform:-moz-translate3d(0, 50px,0);opacity:0;}
svg2{  width: 256px;
  height: 299px;
  position: absolute;
  left: 50%;
  top: 50%;
  margin-top: -225px;
  margin-left: -139px;
  -webkit-transition: -webkit-transform ease .5s 0.8s,opacity ease .5s 0.8s;
  -webkit-transform: translate3d(0, 50px,0);
  opacity: 0;}
.sider_box .txt{ position:absolute; left:0; top:0%; text-align:center; width:100%; margin-top:0px;-webkit-transition:-webkit-transform ease .5s 0.8s,opacity ease .5s 1s; -webkit-transform:translate3d(0, 50px,0); opacity:0;}
.sider_box .txt h1{ font-size:30px; color:#fff; margin-bottom:16px; font-weight:normal;}
.sider_box .txt h2{ font-size:18px; color:#fff; margin-bottom:16px; font-weight:normal;}
.sider_box .txt p{ font-size:16px; color:#fff; opacity:0.6; line-height:1.6;}
.page12 .sider_box .icon{ width:167px; height:250px;  margin-top:-184px; margin-left:-83px;}
.page13 .sider_box .icon{ width:252px; height:155px;  margin-top:-92px; margin-left:-126px;}
.page21 .sider_box .icon{ width:251px; height:130px;  margin-top:-66px; margin-left:-125px;}
.cur .sider_box .icon,.cur .sider_box svg{-webkit-transform:translate3d(0, 0,0); opacity:1;}
.cur .sider_box .txt{-webkit-transform:translate3d(0, 0,0); opacity:1;}
.page_item .btn_wrap{ position:absolute; left:560px; right:0; top:0; bottom:0;-webkit-transition: -webkit-transform ease .5s 0.8s, opacity ease .5s 0.8s; opacity:0; -webkit-transform:translate3d(0, 50px,0);}
.page_item.cur .btn_wrap{ opacity:1;-webkit-transform:translate3d(0, 0,0);}
.page12.page_item .btn_wrap,.page21.page_item .btn_wrap{right:560px; left:0; }
.page_item .btn_video_sp{ width:220px; height:54px; display:block;text-align:center; position:relative; background:url(http://3gimg.qq.com/trom_s/toshomepage20150702/tos_home/images/btn_index_video.png) no-repeat; cursor:pointer; left:25%; margin-top:50%; right:auto;}
.page_item .btn_video_sp span{ line-height:54px; font-size:18px; color:#fff;position:absolute; left:0; top:0; right:0; bottom:0; background:url(http://3gimg.qq.com/trom_s/toshomepage20150702/tos_home/images/icon_arrow.png) no-repeat 170px center ;  display:block; }
.page_item .btn_video_sp a{width:220px; height:54px; display:block;text-align:center; position:relative;}
.page_item .btn_video{ background:url("http://3gimg.qq.com/trom_s/toshomepage20150702/tos_home/images/btn_video_play.png") no-repeat; width:82px; height:82px; position:absolute; left:50%; top:50%; margin-left:-41px; margin-top:-41px;cursor:pointer;}
.page_item .btn_video2{width:472px; height:98px; position:absolute; left:25%; bottom:10%; margin-left:0%px; margin-top:0px;cursor:pointer;}
.page_item .btn_video3{width:389px; height:178px; position:absolute; right:1%; bottom:5%; margin-left:0%px; margin-top:0px;cursor:pointer;}
.page_item .btn_video4{width:473px; height:147px; position:absolute; left:10%; bottom:5%; margin-left:0%px; margin-top:0px;cursor:pointer;}

.page_item .btn_video:hover{ background-position:0 -82px;}
/*video*/
.video-box{ position:relative; height:800px; background:#000; overflow:hidden;}
#indexVideo{ background:#000;}
.btn-close{ position:absolute; right:20px; top:20px; width:30px; height:30px; background:url("http://3gimg.qq.com/trom_s/tos/tos/images/btn_cl.png") no-repeat; cursor:pointer; z-index:1;}
.btn-close:hover{ background-image:url("http://3gimg.qq.com/trom_s/tos/tos/images/btn_cl_hover.png");}

.sq-modal{ display:none; position:absolute; top:0; left:0; width:100%; height:100%; z-index:90;}
.modal-video-wrap{ position:relative; top:50px; right:0; bottom:0; left:50px; z-index:3; overflow:hidden;}
.sq-modal .btn-close{ z-index:3;}
.sq-mask{ position:absolute; top:0; left:0; right:0; bottom:0; width:100%; height:100%; background:#000; opacity:.8; filter:alpha(opacity=80); z-index:1;}
/*news*/
.news_tab{ text-align:center; font-size:0; background:#e9eced; margin-bottom:20px;}
.news_tab span{ line-height:126px; display:inline-block; font-size:20px; color:#333; padding:0 20px; margin:0 20px; cursor:pointer;}
.news_tab span.cur{ color:#2676dd;}
.news_tab span:hover{color:#2676dd;}
.tab_menu{ position: relative; width:320px; margin:0 auto;}
.news_tab .tab_line{ width:120px; height:3px; background:#2676dd; position:absolute; left:20px; bottom:0;}
.page_cnt .news_list li { border-color:#eaeaea; padding:40px 0; }
.page_cnt .news_list li ,.page_cnt .logo_list li{-webkit-transition:-webkit-transform 0.3s ease 0s,opacity 0.3s ease-in 0s; -webkit-transform:translate3d(100px,0,0); opacity:0;}
.page_cnt .logo_list li{-webkit-transform:translate3d(0,100px,0); }
.tab_view{ width:1000px; margin:0 auto; overflow:hidden; position:relative; height:796px;}
.tab_container{ width:2000px; position:absolute; left:0; top:0;}
.tab_cnt{ width:1000px; position:absolute; left:0; top:0; background:#f7f7f7;	}
#tab_cnt_form.tab_cnt{ left:1000px; background:#f7f7f7;}

.flyin .news_list li,.cur .page_cnt .logo_list li {-webkit-transform:translate3d(0,0,0); -ms-transform:-ms-translate3d(0,0,0); opacity:1;}
.page_cnt .news_list li:nth-child(1){ -webkit-transition-delay:0.2s;-ms-transition-delay:0.2s;}
.page_cnt .news_list li:nth-child(2){ -webkit-transition-delay:0.3s;-ms-transition-delay:0.3s;}
.page_cnt .news_list li:nth-child(3){ -webkit-transition-delay:0.4s;-ms-transition-delay:0.4s;}
.page_cnt .news_list li:nth-child(4){ -webkit-transition-delay:0.5s;-ms-transition-delay:0.5s;}

.page_cnt .logo_list li:nth-child(1),.page_cnt .logo_list li:nth-child(2),.page_cnt .logo_list li:nth-child(3),.page_cnt .logo_list li:nth-child(4){ -webkit-transition-delay:0.2s;-ms-transition-delay:0.2s;}
.page_cnt .logo_list li:nth-child(5),.page_cnt .logo_list li:nth-child(6),.page_cnt .logo_list li:nth-child(7),.page_cnt .logo_list li:nth-child(8){ -webkit-transition-delay:0.4s;-ms-transition-delay:0.4s;}
.page_cnt .logo_list li:nth-child(9),.page_cnt .logo_list li:nth-child(10),.page_cnt .logo_list li:nth-child(11),.page_cnt .logo_list li:nth-child(12){ -webkit-transition-delay:0.6s;-ms-transition-delay:0.6s;}

.page_cnt .news_list p{ line-height:2;}
.more_bar{ width:1000px; margin:0 auto;}
.news_more{ background:url(http://3gimg.qq.com/trom_s/toshomepage20150702/tos_home/images/icon_more_arrow.png) no-repeat right center; display:inline-block; padding-right:20px; color:#7f7f7f; font-size:16px;}

/*loogs*/
.page23{ background:#eff2f3;}
.logo_list{ overflow:hidden; width:1140px; position:absolute; left:50%; margin-left:-570px; top:50%; margin-top:-225px;}
.logo_list li{ width:285px; height:110px; float:left; margin:0 0px 40px 0; background:url(http://3gimg.qq.com/trom_s/toshomepage20150702/tos_home/images/bg_icon_sp.png) no-repeat;}
.logo_list li.item1{ background-position: 52px 14px;}
.logo_list li.item2{ background-position: -260px 11px;}
.logo_list li.item3{ background-position: -570px 11px;}
.logo_list li.item4{ background-position:-880px 15px;}
.logo_list li.item5{ background-position: 57px -180px;}
.logo_list li.item6{ background-position: -266px -180px;}
.logo_list li.item7{ background-position: -566px -184px;;}
.logo_list li.item8{ background-position: -880px -182px;}
.logo_list li.item9{ background-position: 50px -383px;}
.logo_list li.item10{ background-position: -262px -387px;}
.logo_list li.item11{ background-position: -563px -385px;}
.logo_list li.item12{ background-position: -880px -387px;}
.svg{ position:absolute; left:0; right:0; top:0; bottom:0; width:2560px; height:1600px;}
.svg svg{  width:2560px; height:1600px; -webkit-transform:translateZ(0);}

/*.phone-bg{ background:#dcdfe4;}*/
/*.phone-bg img{ position:absolute; bottom:0; left:50%; margin-left:-720px;}*/

.path {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: dash 1s linear 1s;
  animation-fill-mode: forwards ;
}

.path2 {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: dash 1s linear 1.5s  1;
  animation-fill-mode:forwards;
}

.path3 {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: dash 1s linear 1.8s  1;
  animation-fill-mode:forwards;
}

.path4 {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: dash 1s linear 2s  1;
  animation-fill-mode:forwards;
}

@keyframes dash {
  to {
    stroke-dashoffset: 0;
  }
}

.min{
transform-origin: 141px 191px;
/*  animation: circle 60s linear infinite;
*/  background:#FFF;
	}

@keyframes circle {
  to {
transform: rotate(360deg);  }
}

@media screen and (max-width: 4000px) {
	.sider_box{ width:420px;}
	.bg_layer{ width:420px;}
	.sider_box .txt h2{ font-size:18px;}
	.sider_box .txt p{ font-size:16px;}
	.sider_box .icon{ display:block;width:98px; height:168px; position:absolute; left:50%; top:50%; margin-top:-134px; margin-left:-49px;}
	.sider_box .btn{display:block;width:360px; height:356px; position:absolute; left:3%; top:50%; margin-top:50%; margin-left:20px;}
	.sider_box .pageone{display:block;width:360px; height:356px; position:absolute; left:3%; top:10%; margin-top:0px; margin-left:5%;}
	.sider_box .pagetwo{display:block;width:360px; height:534px; position:absolute; left:3%; top:10%; margin-top:0px; margin-left:0px;}
	.sider_box .pagethree{display:block;width:194px; height:41px; position:absolute; left:20%; top:50%; margin-top:0px; margin-left:0px;}
	.page12 .sider_box .icon{ width:125px; height:187px;  margin-top:-150px; margin-left:-62px;}
	.page13 .sider_box .icon{ width:189px; height:116px;  margin-top:-81px; margin-left:-95px;}
	.page21 .sider_box .icon{ width:188px; height:97px;  margin-top:-64px; margin-left:-94px;}
	.sider_box .txt{ margin-top:50%;}
	.page_item .btn_wrap{ position:absolute; left:30%; right:0; top:0; bottom:0;}
	.page12.page_item .btn_wrap,.page21.page_item .btn_wrap{right:420px; left:0; }
}
@media screen and (max-height: 800px) {
.page_cnt .news_list li:nth-child(4),.page_cnt .news_list li:nth-child(4){ display:none;}
.page_cnt .news_list li:nth-child(3),.page_cnt .news_list li:nth-child(3){ border:none;}

}


text:
namespace dynamic_dispatch {

struct Base {
  virtual int foo() { return 32; }
};

struct Derived : Base {
  int foo() { return 52; }
};

Base getDerived() { return Derived{}; }

Base* getDerivedPtr() { return new Derived(); }

void dispatch_to_Base_bad() {
  Base base{};
  if (base.foo() == 32) {
    int* p = nullptr;
    *p = 42;
  }
}

// FN because we do not track dynamic types unless it's a heap allocation
// initiated by new()
void FN_dispatch_to_Derived_bad() {
  Base derived = getDerived();
  if (derived.foo() == 52) {
    int* p = nullptr;
    *p = 42;
  }
}

void dispatch_to_Derived_ptr_bad() {
  Base* derived = getDerivedPtr();
  if (derived->foo() == 52) {
    int* p = nullptr;
    *p = 42;
  }
}

} // namespace dynamic_dispatch


text:
package org.apache.cassandra.config;

import java.net.Inet4Address;
import java.net.Inet6Address;
import java.net.InetAddress;
import java.net.NetworkInterface;
import java.util.Arrays;
import java.util.Collection;
import java.util.Enumeration;

import org.junit.BeforeClass;
import org.junit.Test;
import org.junit.runner.RunWith;

import org.apache.cassandra.OrderedJUnit4ClassRunner;
import org.apache.cassandra.db.Keyspace;
import org.apache.cassandra.exceptions.ConfigurationException;

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

@RunWith(OrderedJUnit4ClassRunner.class)
public class DatabaseDescriptorTest
{
    @BeforeClass
    public static void setupDatabaseDescriptor()
    {
        DatabaseDescriptor.daemonInitialization();
    }

    // this came as a result of CASSANDRA-995
    @Test
    public void testConfigurationLoader() throws Exception
    {
        // By default, we should load from the yaml
        Config config = DatabaseDescriptor.loadConfig();
        assertEquals("Test Cluster", config.cluster_name);
        Keyspace.setInitialized();

        // Now try custom loader
        ConfigurationLoader testLoader = new TestLoader();
        System.setProperty("cassandra.config.loader", testLoader.getClass().getName());

        config = DatabaseDescriptor.loadConfig();
        assertEquals("ConfigurationLoader Test", config.cluster_name);
    }

    public static class TestLoader implements ConfigurationLoader
    {
        public Config loadConfig() throws ConfigurationException
        {
            Config testConfig = new Config();
            testConfig.cluster_name = "ConfigurationLoader Test";
            return testConfig;
        }
    }

    static NetworkInterface suitableInterface = null;
    static boolean hasIPv4andIPv6 = false;

    /*
     * Server only accepts interfaces by name if they have a single address
     * OS X seems to always have an ipv4 and ipv6 address on all interfaces which means some tests fail
     * if not checked for and skipped
     */
    @BeforeClass
    public static void selectSuitableInterface() throws Exception {
        Enumeration<NetworkInterface> interfaces = NetworkInterface.getNetworkInterfaces();
        while(interfaces.hasMoreElements()) {
            NetworkInterface intf = interfaces.nextElement();

            System.out.println("Evaluating " + intf.getName());

            if (intf.isLoopback()) {
                suitableInterface = intf;

                boolean hasIPv4 = false;
                boolean hasIPv6 = false;
                Enumeration<InetAddress> addresses = suitableInterface.getInetAddresses();
                while (addresses.hasMoreElements()) {
                    if (addresses.nextElement() instanceof Inet6Address)
                        hasIPv6 = true;
                    else
                        hasIPv4 = true;
                }
                hasIPv4andIPv6 = hasIPv4 && hasIPv6;
                return;
            }
        }
    }

    @Test
    public void testRpcInterface() throws Exception
    {
        Config testConfig = DatabaseDescriptor.loadConfig();
        testConfig.rpc_interface = suitableInterface.getName();
        testConfig.rpc_address = null;
        DatabaseDescriptor.applyAddressConfig(testConfig);

        /*
         * Confirm ability to select between IPv4 and IPv6
         */
        if (hasIPv4andIPv6)
        {
            testConfig = DatabaseDescriptor.loadConfig();
            testConfig.rpc_interface = suitableInterface.getName();
            testConfig.rpc_address = null;
            testConfig.rpc_interface_prefer_ipv6 = true;
            DatabaseDescriptor.applyAddressConfig(testConfig);

            assertEquals(DatabaseDescriptor.getRpcAddress().getClass(), Inet6Address.class);

            testConfig = DatabaseDescriptor.loadConfig();
            testConfig.rpc_interface = suitableInterface.getName();
            testConfig.rpc_address = null;
            testConfig.rpc_interface_prefer_ipv6 = false;
            DatabaseDescriptor.applyAddressConfig(testConfig);

            assertEquals(DatabaseDescriptor.getRpcAddress().getClass(), Inet4Address.class);
        }
        else
        {
            /*
             * Confirm first address of interface is selected
             */
            assertEquals(DatabaseDescriptor.getRpcAddress(), suitableInterface.getInetAddresses().nextElement());
        }
    }

    @Test
    public void testListenInterface() throws Exception
    {
        Config testConfig = DatabaseDescriptor.loadConfig();
        testConfig.listen_interface = suitableInterface.getName();
        testConfig.listen_address = null;
        DatabaseDescriptor.applyAddressConfig(testConfig);

        /*
         * Confirm ability to select between IPv4 and IPv6
         */
        if (hasIPv4andIPv6)
        {
            testConfig = DatabaseDescriptor.loadConfig();
            testConfig.listen_interface = suitableInterface.getName();
            testConfig.listen_address = null;
            testConfig.listen_interface_prefer_ipv6 = true;
            DatabaseDescriptor.applyAddressConfig(testConfig);

            assertEquals(DatabaseDescriptor.getListenAddress().getClass(), Inet6Address.class);

            testConfig = DatabaseDescriptor.loadConfig();
            testConfig.listen_interface = suitableInterface.getName();
            testConfig.listen_address = null;
            testConfig.listen_interface_prefer_ipv6 = false;
            DatabaseDescriptor.applyAddressConfig(testConfig);

            assertEquals(DatabaseDescriptor.getListenAddress().getClass(), Inet4Address.class);
        }
        else
        {
            /*
             * Confirm first address of interface is selected
             */
            assertEquals(DatabaseDescriptor.getRpcAddress(), suitableInterface.getInetAddresses().nextElement());
        }
    }

    @Test
    public void testListenAddress() throws Exception
    {
        Config testConfig = DatabaseDescriptor.loadConfig();
        testConfig.listen_address = suitableInterface.getInterfaceAddresses().get(0).getAddress().getHostAddress();
        testConfig.listen_interface = null;
        DatabaseDescriptor.applyAddressConfig(testConfig);
    }

    @Test
    public void testRpcAddress() throws Exception
    {
        Config testConfig = DatabaseDescriptor.loadConfig();
        testConfig.rpc_address = suitableInterface.getInterfaceAddresses().get(0).getAddress().getHostAddress();
        testConfig.rpc_interface = null;
        DatabaseDescriptor.applyAddressConfig(testConfig);

    }

    @Test
    public void testTokensFromString()
    {
        assertTrue(DatabaseDescriptor.tokensFromString(null).isEmpty());
        Collection<String> tokens = DatabaseDescriptor.tokensFromString(" a,b ,c , d, f,g,h");
        assertEquals(7, tokens.size());
        assertTrue(tokens.containsAll(Arrays.asList(new String[]{"a", "b", "c", "d", "f", "g", "h"})));
    }

    @Test
    public void testLowestAcceptableTimeouts() throws ConfigurationException
    {
        Config testConfig = new Config();
        testConfig.read_request_timeout_in_ms = DatabaseDescriptor.LOWEST_ACCEPTED_TIMEOUT + 1;
        testConfig.range_request_timeout_in_ms = DatabaseDescriptor.LOWEST_ACCEPTED_TIMEOUT + 1;
        testConfig.write_request_timeout_in_ms = DatabaseDescriptor.LOWEST_ACCEPTED_TIMEOUT + 1;
        testConfig.truncate_request_timeout_in_ms = DatabaseDescriptor.LOWEST_ACCEPTED_TIMEOUT + 1;
        testConfig.cas_contention_timeout_in_ms = DatabaseDescriptor.LOWEST_ACCEPTED_TIMEOUT + 1;
        testConfig.counter_write_request_timeout_in_ms = DatabaseDescriptor.LOWEST_ACCEPTED_TIMEOUT + 1;
        testConfig.request_timeout_in_ms = DatabaseDescriptor.LOWEST_ACCEPTED_TIMEOUT + 1;

        assertTrue(testConfig.read_request_timeout_in_ms > DatabaseDescriptor.LOWEST_ACCEPTED_TIMEOUT);
        assertTrue(testConfig.range_request_timeout_in_ms > DatabaseDescriptor.LOWEST_ACCEPTED_TIMEOUT);
        assertTrue(testConfig.write_request_timeout_in_ms > DatabaseDescriptor.LOWEST_ACCEPTED_TIMEOUT);
        assertTrue(testConfig.truncate_request_timeout_in_ms > DatabaseDescriptor.LOWEST_ACCEPTED_TIMEOUT);
        assertTrue(testConfig.cas_contention_timeout_in_ms > DatabaseDescriptor.LOWEST_ACCEPTED_TIMEOUT);
        assertTrue(testConfig.counter_write_request_timeout_in_ms > DatabaseDescriptor.LOWEST_ACCEPTED_TIMEOUT);
        assertTrue(testConfig.request_timeout_in_ms > DatabaseDescriptor.LOWEST_ACCEPTED_TIMEOUT);

        //set less than Lowest acceptable value
        testConfig.read_request_timeout_in_ms = DatabaseDescriptor.LOWEST_ACCEPTED_TIMEOUT - 1;
        testConfig.range_request_timeout_in_ms = DatabaseDescriptor.LOWEST_ACCEPTED_TIMEOUT - 1;
        testConfig.write_request_timeout_in_ms = DatabaseDescriptor.LOWEST_ACCEPTED_TIMEOUT - 1;
        testConfig.truncate_request_timeout_in_ms = DatabaseDescriptor.LOWEST_ACCEPTED_TIMEOUT - 1;
        testConfig.cas_contention_timeout_in_ms = DatabaseDescriptor.LOWEST_ACCEPTED_TIMEOUT - 1;
        testConfig.counter_write_request_timeout_in_ms = DatabaseDescriptor.LOWEST_ACCEPTED_TIMEOUT - 1;
        testConfig.request_timeout_in_ms = DatabaseDescriptor.LOWEST_ACCEPTED_TIMEOUT - 1;

        DatabaseDescriptor.checkForLowestAcceptedTimeouts(testConfig);

        assertTrue(testConfig.read_request_timeout_in_ms == DatabaseDescriptor.LOWEST_ACCEPTED_TIMEOUT);
        assertTrue(testConfig.range_request_timeout_in_ms == DatabaseDescriptor.LOWEST_ACCEPTED_TIMEOUT);
        assertTrue(testConfig.write_request_timeout_in_ms == DatabaseDescriptor.LOWEST_ACCEPTED_TIMEOUT);
        assertTrue(testConfig.truncate_request_timeout_in_ms == DatabaseDescriptor.LOWEST_ACCEPTED_TIMEOUT);
        assertTrue(testConfig.cas_contention_timeout_in_ms == DatabaseDescriptor.LOWEST_ACCEPTED_TIMEOUT);
        assertTrue(testConfig.counter_write_request_timeout_in_ms == DatabaseDescriptor.LOWEST_ACCEPTED_TIMEOUT);
        assertTrue(testConfig.request_timeout_in_ms == DatabaseDescriptor.LOWEST_ACCEPTED_TIMEOUT);
    }
}


text:
use std::net::TcpListener;
use std::process;
// use rusqlite::Connection;
use schema::*;
use models::*;
use curl::easy::Easy;
use std::time::Duration;
use pbr::{ProgressBar, Units};
use std::fs::{File, OpenOptions};
use std::path::{Path};
use std::io::Write; // needed for read_to_string trait
use std::fs;
use diesel::sqlite::SqliteConnection;
use diesel::*; // useful for load & find

// https://rosettacode.org/wiki/Category:Rust
pub fn create_app_lock(port: u16) -> TcpListener {
    match TcpListener::bind(("0.0.0.0", port)) {
        Ok(socket) => {
            socket
        },
        Err(_) => {
            println!("Another instance already running?");
            process::exit(1)
        }
    }
}

pub fn remove_app_lock(socket: TcpListener) {
    drop(socket);
}

pub fn getdownloaddir(connection: &SqliteConnection) -> String {
    match config::table.find("downloaddir").first::<Config>(connection) {
        Ok(config) => config.value.unwrap(),
        Err(_) => "/tmp/".to_string()
    }
}

pub fn download_podcast(connection: &SqliteConnection, podcast: Podcast) {
    let mut curl = Easy::new();
    let mut pb = ProgressBar::new(100);
    pb.format("╢▌▌░╟");
    pb.set_units(Units::Bytes);
    pb.set_max_refresh_rate(Some(Duration::from_millis(100)));
    curl.progress(true).unwrap();
    curl.follow_location(true).unwrap();
    curl.progress_function( move |a, b, _, _| {
        pb.total = a as u64;
        pb.set(b as u64);
        true
    }).unwrap();

    let temp = getdownloaddir(connection) + podcast.filename.as_str() + ".downloading";
    let path = Path::new(&temp);

    if Path::new(&(getdownloaddir(connection) + podcast.filename.as_str())).exists() {
        println!("  File already downloaded");
        return
    }

    let mut file: File;
    let mut options = OpenOptions::new();
    // We want to write to our file as well as append new data to it.
    options.write(true).append(true);
    if Path::new(path).exists() {
        let metadata = fs::metadata(path).unwrap();
        curl.resume_from(metadata.len()).unwrap();

        file = OpenOptions::new()
            .write(true)
            .append(true)
            .open(&path)
            .unwrap();

    } else {
        file = match File::create(&path) {
            Err(why) => panic!("couldn't create {}", why),
            Ok(file) => file
        };
    }
    curl.url(&podcast.url).unwrap();
    curl.write_function( move |data| {
        Ok(file.write(data).unwrap())
    }).unwrap();

    curl.perform().unwrap();
        let _ = update(podcast::table.filter(podcast::id.eq(&podcast.id)))
            .set((podcast::downloaded.eq(1),
                 podcast::downloaded_at.eq(expression::dsl::now.nullable())))
            .execute(connection)
            .expect(&format!("Unable to find podcast {}", podcast.id));
    fs::rename(getdownloaddir(connection) + podcast.filename.as_str() + ".downloading", getdownloaddir(connection) + podcast.filename.as_str()).unwrap();
}

pub fn last_insert_rowid(connection: &SqliteConnection) -> i32 {
    no_arg_sql_function!(last_insert_rowid, types::Integer);
    select(last_insert_rowid).first(connection).unwrap()
}


text:
template <typename TText, typename TPattern>
int computeLocalScore(TText const & subText, TPattern const & pattern)
{
    int localScore = 0;
    for (unsigned i = 0; i < seqan::length(pattern); ++i)
        if (subText[i] == pattern[i])
            ++localScore;

    return localScore;
}

seqan::String<int> computeScore(seqan::String<char> const & text, seqan::String<char> const & pattern)
{
    seqan::String<int> score;
    seqan::resize(score, seqan::length(text)-seqan::length(pattern)+1, 0);

    for (unsigned i = 0; i < seqan::length(text) - seqan::length(pattern) + 1; ++i)
        score[i] = computeLocalScore(infix(text, i, i + seqan::length(pattern)), pattern);

    return score;
}

template <typename TScore>
void seqprint(TScore const & score)
{
  for (unsigned i = 0; i < seqan::length(score); ++i)
        std::cout << score[i] << " ";
    std::cout << std::endl;
}

int main()
{
    seqan::String<int> text = (13,43,75,67,4);
    seqprint(text);
    seqan::String<int> pattern = (13,43);
    seqan::String<int> score = computeScore(text, pattern);

    seqprint(score);

    return 0;
}


text:
package com.example.android.cardview;

import android.app.Activity;
import android.os.Bundle;

/**
 * Launcher Activity for the CardView sample app.
 */
public class CardViewActivity extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_card_view);
        if (savedInstanceState == null) {
            getFragmentManager().beginTransaction()
                    .add(R.id.container, CardViewFragment.newInstance())
                    .commit();
        }
    }
}


text: xsel --clipboard --output


text:
using System;
using System.Collections;
using System.Diagnostics.Eventing.Reader;
using System.Dynamic;
using System.Security.Cryptography;
using System.Text;
using System.Web.UI.WebControls;
using DotNetNuke.Common;
using DotNetNuke.Entities.Portals;
using Microsoft.Win32.SafeHandles;
using Nevoweb.DNN.NBrightBuy.Components;
using NBrightCore.common;

namespace NBrightSystemPay
{

    public class PayData
    {

        public PayData(OrderData oInfo)
        {
            LoadSettings(oInfo);
        }

        public void LoadSettings(OrderData oInfo)
        {
            var settings = ProviderUtils.GetProviderSettings();
            var appliedtotal = oInfo.PurchaseInfo.GetXmlPropertyDouble("genxml/appliedtotal");
            var alreadypaid = oInfo.PurchaseInfo.GetXmlPropertyDouble("genxml/alreadypaid");

            certificate = settings.GetXmlProperty("genxml/textbox/certificate");
            PostUrl = "https://systempay.cyberpluspaiement.com/vads-payment/";

            Email = oInfo.PurchaseInfo.GetXmlProperty("genxml/billaddress/textbox/billaddress");
            if (!Utils.IsEmail(Email)) Email = oInfo.PurchaseInfo.GetXmlProperty("genxml/extrainfo/textbox/cartemailaddress");

            var orderTotal = (appliedtotal - alreadypaid).ToString("0.00");

            vads_version = "V2";
            vads_page_action = "PAYMENT";
            vads_action_mode = "INTERACTIVE";
            vads_payment_config = "SINGLE";
            vads_site_id = settings.GetXmlProperty("genxml/textbox/site");
            vads_ctx_mode = "PRODUCTION";
            if (settings.GetXmlPropertyBool("genxml/checkbox/testmode")) vads_ctx_mode = "TEST";
            vads_trans_date = DateTime.UtcNow.Year.ToString("0000") + DateTime.UtcNow.Month.ToString("00") + DateTime.UtcNow.Day.ToString("00") + DateTime.UtcNow.Hour.ToString("00") + DateTime.UtcNow.Minute.ToString("00") + DateTime.UtcNow.Second.ToString("00");
            vads_amount = orderTotal.Replace(",", "").Replace(".", "");
            vads_currency = settings.GetXmlProperty("genxml/textbox/currency");
            vads_return_mode = "POST";
            vads_order_id = oInfo.PurchaseInfo.ItemID.ToString("");
            vads_order_info = oInfo.Lang;
            vads_order_info2 = oInfo.PurchaseInfo.ItemID.ToString("");
            vads_language = oInfo.Lang.Substring(0, 2);

            // with systempay, a transaction number can only be used once, Therefore we need to create a unique tansaction id on each post.
            var paycount = oInfo.PurchaseInfo.GetXmlPropertyInt("genxml/paycount");
            paycount += 1;
            oInfo.PurchaseInfo.SetXmlPropertyDouble("genxml/paycount",paycount);
            oInfo.SavePurchaseData();
            vads_trans_id = oInfo.PurchaseInfo.ItemID.ToString("00000") + oInfo.PurchaseInfo.GetXmlPropertyInt("genxml/paycount").ToString("0");

            var param = new string[3];
            param[0] = "orderid=" + oInfo.PurchaseInfo.ItemID.ToString(""); // return orderid as param, so processing can be done on return.
            vads_url_return = Globals.NavigateURL(StoreSettings.Current.PaymentTabId, "", param);

        }

        public string PostUrl { get; set; }
        public string Email { get; set; }
        public string certificate { get; set; }

        public string vads_version { get; set; }
        public string vads_page_action { get; set; }
        public string vads_action_mode { get; set; }
        public string vads_payment_config { get; set; }
        public string vads_site_id { get; set; }
        public string vads_ctx_mode { get; set; }
        public string vads_trans_id { get; set; }
        public string vads_trans_date { get; set; }
        public string vads_amount { get; set; }
        public string vads_currency { get; set; }
        public string vads_return_mode { get; set; }
        public string vads_order_id { get; set; }
        public string vads_order_info { get; set; }
        public string vads_order_info2 { get; set; }
        public string vads_language { get; set; }
        public string vads_url_return { get; set; }

    }

}


text:
<?php

declare(strict_types=1);

namespace Sonata\CoreBundle\Form\Type;

if (!class_exists(\Sonata\Form\Type\BaseStatusType::class, false)) {
    @trigger_error(
        'The '.__NAMESPACE__.'\BaseStatusType class is deprecated since version 3.13.0 and will be removed in 4.0.'
        .' Use Sonata\Form\Type\BaseStatusType instead.',
        E_USER_DEPRECATED
    );
}

class_alias(
    \Sonata\Form\Type\BaseStatusType::class,
    __NAMESPACE__.'\BaseStatusType'
);

if (false) {
    /**
     * @deprecated since sonata-project/core-bundle 3.13.0, to be removed in 4.0.
     */
    abstract class BaseStatusType extends \Sonata\Form\Type\BaseStatusType
    {
    }
}


text:
require_relative './config/environment'
require_relative './models/tweet'

before do
  @tweets = Tweet.order("created_at DESC")
  @user_tweet = nil
  if logged_in?
    tweet = Tweet.where(uid: user_id).first
    @user_tweet = tweet.message if !tweet.nil?
    @user_nick = user_nick
  end
end

get '/styles/:file.css' do
  scss params[:file].to_sym
end

# OmniAuth routes
get '/auth/twitter/callback' do
  login_user(env)
  redirect to('/')
end
get '/auth/failure' do
  logout_user
  "failed =("
end
get '/logout' do
  logout_user
  redirect to("/")
end

# Regular routes
get '/' do
  if @user_tweet.nil?
    haml :new
  else
    haml :done
  end
end

post '/tweet' do
  message = params[:message]
  if !logged_in?
    save_draft(message)
    haml :login
  elsif !@user_tweet.nil?
    return "You've already tweeted this phrase: #{@user_tweet}"
  elsif message.nil? || message.empty?
    return redirect to("/")
  else
    tweet = Tweet.new do |t|
      t.user = user_nick
      t.uid = user_id
      t.message = message
    end

    begin
      tweet.save!
    rescue Exception => e
      return "Oh no! There was an error when tweeting!\n#{e.message}"
    end
    save_draft(nil)
    redirect to("/")
  end
end


text:
package bug.test;

/**
 * Created by IntelliJ IDEA.
 * Date: Dec 13, 2007
 * Time: 4:12:50 PM
 * To change this template use File | Settings | File Templates.
 */
public class BaseClass {

    public void doSomething(String arg1){
        System.out.println("In BaseClass::doSomething(int arg1)");
    }

}


text:
class SuggestedTitle < ActiveRecord::Base
  belongs_to :story
  belongs_to :user
end


text:
module.exports = function (grunt) {

    grunt.registerTask('js', ['overrideImagerImageSizes', 'concurrent:js', 'copyRequiredJs']);

    var debugMode    = (grunt.config.get('config').debug === 'true'),
        scaffoldLite = (grunt.config.get('config').scaffoldLite === 'true');

    grunt.config(['concurrent', 'js'], {
        tasks: (function getListOfConcurrentTasks() {

            // var applicationJS = ['jshint', 'jasmine'];
            var applicationJS = ['jshint'];

            if (scaffoldLite) {
                applicationJS.push('requirejs:lite');
            }
            else if (!debugMode) {
                applicationJS.push('requirejs:jquery1');
                applicationJS.push('requirejs:jquery2');
            }

            return applicationJS;
        }())
    });

    grunt.registerTask('copyRequiredJs', function () {
        var filesToCopy = (debugMode ? 'jsAll' : 'requirejs');
        grunt.task.run('copy:' + filesToCopy);
        // grunt.task.run('uglify');
    });

    grunt.config('uglify', {
        options: {
            mangle: true
        },
        my_target: {
            files: {
                'source/js/lib/news_special/iframemanager__host.min.js': ['source/js/lib/news_special/iframemanager__host.js']
            }
        }
    });

};


text:
web-stream
==========

[![Build Status](https://travis-ci.org/elee/web-stream.png)](https://travis-ci.org/elee/web-stream)

Transform objects to http responses with configurable retry strategy.

Construct the stream:

     new WebStream([{[maxBackoff,[shouldRetry]]}])

Where `maxBackoff` is the maximum amount of time to wait between retries
(i.e. 3000 is 3 seconds), ``shouldRetry`` is a function with three
arguments (err, res, body) and returns a boolean truth-y to retry
false-y to continue.

Wire it to another stream for input that sends in:

     {
       url : 'http://some/url',
       method : 'GET'
     }

For HTTP methods that make sense you may also send in: 'body' and
'header' attributes in this object.

Which will be passed to request as it's options paramter.

web-stream is compatible with 0.8 node via the readable-stream module.

run the example:

     $ npm install
     $ cd example ; node .

Contributing
----
Run the tests:

    grunt


text:
/******************************************************************************
  This source file is part of the Avogadro project.
  This source code is released under the 3-Clause BSD License, (see "LICENSE").
******************************************************************************/

#ifndef AVOGADRO_CORE_CRYSTALTOOLS_H
#define AVOGADRO_CORE_CRYSTALTOOLS_H

#include "array.h"
#include "avogadrocore.h"
#include "matrix.h"
#include "vector.h"

namespace Avogadro {
namespace Core {
class Molecule;
class UnitCell;

/**
 * @class CrystalTools crystaltools.h <avogadro/core/crystaltools.h>
 * @brief The CrystalTools class contains a collection of static functions
 * that perform common crystallographic operations on a Core::Molecule.
 */
class AVOGADROCORE_EXPORT CrystalTools
{
public:
  /**
   * @brief The Option enum provides bitwise option flags for the various
   * algorithms.
   */
  enum Option
  {
    /** No options specified. */
    None = 0x0,
    /** Transform atoms along with the unit cell. */
    TransformAtoms = 0x1
  };
  typedef int Options;

  /**
   * Adjust the atomic positions in @a molecule so that the fractional (lattice)
   * coordinates of all atoms are in the range [0, 1].
   * @return True on success, false otherwise.
   */
  static bool wrapAtomsToUnitCell(Molecule& molecule);

  /**
   * This function will rotate the input molecule so that the unit cell's 'a'
   * vector is aligned to the x-axis, and the 'b' axis is in the xy-plane. It
   * does not use trig functions or the cell parameters, since such
   * implementations are fragile and cannot handle negative cell angles. The
   * derivation of this algorithm can be found at
   * http://xtalopt.openmolecules.net/misc/rotateToStdOrientation.pdf.
   *
   * @param opts If TransformAtoms is specified, the atoms in @a molecule are
   * rotated along with the unit cell.
   * @return True on success, false otherwise.
   */
  static bool rotateToStandardOrientation(Molecule& molecule,
                                          Options opts = None);

  /**
   * Isotropically scale the volume of the unit cell in @a molecule to @a
   * newVolume (in cubic angstrom).
   * @param opts If TransformAtoms is specified, the atoms in @a molecule are
   * adjusted so that their fractional (lattice) coordinates are preserved.
   * @return True on success, false on failure.
   */
  static bool setVolume(Molecule& molecule, Real newVolume,
                        Options opts = None);

  /**
   * Perform a Niggli reduction on @a molecule's unit cell. This produces a
   * canonical unit cell representation that strives to be as cubic as possible.
   * @note Implements the niggli reduction algorithm detailed in:
   * Grosse-Kunstleve RW, Sauter NK, Adams PD. Numerically stable
   * algorithms for the computation of reduced unit cells. Acta
   * Crystallographica Section A Foundations of
   * Crystallography. 2003;60(1):1-6.
   * @param opts If TransformAtoms is specified, the atom positions are modified
   * to ensure that the same extended atomic structure from the input is
   * represented by the output.
   * @return True on success, false on failure.
   */
  static bool niggliReduce(Molecule& molecule, Options opts = None);

  /**
   * Return true if the unit cell in @a molecule is already Niggli-reduced. This
   * method checks the conditions listed in the paper Gruber B.. Acta Cryst. A.
   * 1973;29(4):433-440.
   */
  static bool isNiggliReduced(const Molecule& mol);

  /**
   * Build a supercell by expanding upon the unit cell of @a molecule. It will
   * only return false if the molecule does not have a unit cell or if a, b, or
   * c is set to zero.
   * @param a The number of units along lattice vector a for the supercell
   * @param b The number of units along lattice vector b for the supercell
   * @param c The number of units along lattice vector c for the supercell
   * @return True on success, false on failure.
   */
  static bool buildSupercell(Molecule& molecule, unsigned int a, unsigned int b,
                             unsigned int c);

  /**
   * Set the unit cell in @a molecule to represent the real-space column-vector
   * unit cell description in @a newCellColMatrix. A unit cell is created if
   * needed.
   * @param opt If TransformAtoms is specified, the atoms in @a molecule are
   * adjusted so that their fractional (lattice) coordinates are preserved. This
   * option is ignored if the input molecule has no unit cell.
   * @return True on success, false otherwise.
   */
  static bool setCellMatrix(Molecule& molecule, const Matrix3& newCellColMatrix,
                            Options opt = None);

  /**
   * Populate the @a frac vector with the fractional representation of the
   * cartesian coordinates in @a cart, using @a unitCell to perform the
   * coordinate transformation.
   * @return True on success, false otherwise.
   */
  static bool fractionalCoordinates(const UnitCell& unitCell,
                                    const Array<Vector3>& cart,
                                    Array<Vector3>& frac);

  /**
   * Populate the @a coords vector with the fractional coordinates of the atoms
   * in @a molecule, using the unit cell of @a molecule to perform the
   * coordinate transformation. Coordinates are ordered the same as the
   * Molecule::atomPositions3d() result.
   * @return True on success, false otherwise.
   */
  static bool fractionalCoordinates(const Molecule& molecule,
                                    Array<Vector3>& coords);

  /**
   * Set the atomic positions of @a molecule to the fractional coordinates in
   * @a coords, using the unit cell of @a molecule to perform the coordinate
   * transformation.
   * @return
   */
  static bool setFractionalCoordinates(Molecule& molecule,
                                       const Array<Vector3>& coords);

private:
  CrystalTools();  // not implemented
  ~CrystalTools(); // not implemented
};

} // namespace Core
} // namespace Avogadro

#endif // AVOGADRO_CORE_CRYSTALTOOLS_H


text:
#include "remote_config/src/desktop/remote_config_response.h"

namespace firebase {
namespace remote_config {
namespace internal {

Variant FlexbufferVectorToVariant(const flexbuffers::Vector& vector) {
  Variant result = Variant::EmptyVector();
  result.vector().reserve(vector.size());
  for (size_t i = 0; i < vector.size(); i++) {
    result.vector().push_back(FlexbufferToVariant(vector[i]));
  }
  return result;
}

Variant FlexbufferMapToVariant(const flexbuffers::Map& map) {
  Variant result = Variant::EmptyMap();
  flexbuffers::TypedVector keys = map.Keys();
  for (size_t i = 0; i < keys.size(); i++) {
    flexbuffers::Reference key = keys[i];
    flexbuffers::Reference value = map[key.AsKey()];
    result.map()[FlexbufferToVariant(key)] = FlexbufferToVariant(value);
  }
  return result;
}

Variant FlexbufferToVariant(const flexbuffers::Reference& ref) {
  switch (ref.GetType()) {
    case flexbuffers::FBT_NULL:
      return Variant::Null();
    case flexbuffers::FBT_BOOL:
      return Variant(ref.AsBool());
    case flexbuffers::FBT_INT:
    case flexbuffers::FBT_INDIRECT_INT:
    case flexbuffers::FBT_UINT:
    case flexbuffers::FBT_INDIRECT_UINT:
      return Variant(ref.AsInt64());
    case flexbuffers::FBT_FLOAT:
    case flexbuffers::FBT_INDIRECT_FLOAT:
      return Variant(ref.AsDouble());
    case flexbuffers::FBT_STRING:
      return Variant::MutableStringFromStaticString(ref.AsString().c_str());
    case flexbuffers::FBT_KEY:
      return Variant::MutableStringFromStaticString(ref.AsKey());
    case flexbuffers::FBT_MAP:
      return FlexbufferMapToVariant(ref.AsMap());
    case flexbuffers::FBT_VECTOR_BOOL:
    case flexbuffers::FBT_VECTOR_FLOAT2:
    case flexbuffers::FBT_VECTOR_FLOAT3:
    case flexbuffers::FBT_VECTOR_FLOAT4:
    case flexbuffers::FBT_VECTOR_FLOAT:
    case flexbuffers::FBT_VECTOR_INT2:
    case flexbuffers::FBT_VECTOR_INT3:
    case flexbuffers::FBT_VECTOR_INT4:
    case flexbuffers::FBT_VECTOR_INT:
    case flexbuffers::FBT_VECTOR_KEY:
    case flexbuffers::FBT_VECTOR_STRING_DEPRECATED:
    case flexbuffers::FBT_VECTOR_UINT2:
    case flexbuffers::FBT_VECTOR_UINT3:
    case flexbuffers::FBT_VECTOR_UINT4:
    case flexbuffers::FBT_VECTOR_UINT:
    case flexbuffers::FBT_VECTOR:
      return FlexbufferVectorToVariant(ref.AsVector());

    case flexbuffers::FBT_BLOB:
      LogError("Flexbuffers containing blobs are not supported.");
      break;
  }
  return Variant::Null();
}

Variant RemoteConfigResponse::GetEntries() { return entries_; }

// Mark the response completed for both header and body.
void RemoteConfigResponse::MarkCompleted() {
  ResponseJson::MarkCompleted();
  if (GetBody()[0] == '\0') {
    // If the body of response flatbuffer is empty, early out.
    return;
  }
  const flatbuffers::FlatBufferBuilder& builder = parser_->builder_;
  const fbs::Response* body_fbs =
      flatbuffers::GetRoot<fbs::Response>(builder.GetBufferPointer());

  if (body_fbs && body_fbs->entries() && body_fbs->entries()->size() > 0) {
    entries_ = FlexbufferToVariant(body_fbs->entries_flexbuffer_root());
  }
}

}  // namespace internal
}  // namespace remote_config
}  // namespace firebase


text:
<resources>
    <string name="app_name">UW gym schedule</string>
</resources>


text:
package Paws::IAM::ListEntitiesForPolicyResponse;
  use Moose;
  has IsTruncated => (is => 'ro', isa => 'Bool');
  has Marker => (is => 'ro', isa => 'Str');
  has PolicyGroups => (is => 'ro', isa => 'ArrayRef[Paws::IAM::PolicyGroup]');
  has PolicyRoles => (is => 'ro', isa => 'ArrayRef[Paws::IAM::PolicyRole]');
  has PolicyUsers => (is => 'ro', isa => 'ArrayRef[Paws::IAM::PolicyUser]');

  has _request_id => (is => 'ro', isa => 'Str');
1;

### main pod documentation begin ###

=head1 NAME

Paws::IAM::ListEntitiesForPolicyResponse

=head1 ATTRIBUTES

=head2 IsTruncated => Bool

A flag that indicates whether there are more items to return. If your
results were truncated, you can make a subsequent pagination request
using the C<Marker> request parameter to retrieve more items. Note that
IAM might return fewer than the C<MaxItems> number of results even when
there are more results available. We recommend that you check
C<IsTruncated> after every call to ensure that you receive all of your
results.

=head2 Marker => Str

When C<IsTruncated> is C<true>, this element is present and contains
the value to use for the C<Marker> parameter in a subsequent pagination
request.

=head2 PolicyGroups => ArrayRef[L<Paws::IAM::PolicyGroup>]

A list of IAM groups that the policy is attached to.

=head2 PolicyRoles => ArrayRef[L<Paws::IAM::PolicyRole>]

A list of IAM roles that the policy is attached to.

=head2 PolicyUsers => ArrayRef[L<Paws::IAM::PolicyUser>]

A list of IAM users that the policy is attached to.

=head2 _request_id => Str

=cut