text:
package com.tngtech.jgiven.impl.tag;

import static org.assertj.core.api.Assertions.assertThat;

import com.tngtech.jgiven.config.DefaultConfiguration;
import com.tngtech.jgiven.impl.TestUtil.JGivenLogHandler;
import com.tngtech.jgiven.report.model.Tag;
import java.lang.annotation.Annotation;
import java.util.Arrays;
import java.util.List;
import java.util.logging.Level;
import java.util.logging.LogManager;
import java.util.logging.Logger;
import java.util.stream.Stream;
import org.junit.Before;
import org.junit.Test;

public class TagCreatorTest {

    private final TagCreator underTest = new TagCreator(new DefaultConfiguration());
    private final JGivenLogHandler interceptor = new JGivenLogHandler();

    @Before
    public void addLogInterceptor() {
        Logger testLogger = LogManager.getLogManager().getLogger(TagCreator.class.getName());
        testLogger.addHandler(interceptor);
    }

    @Test
    public void testAnnotationParsing() {
        Tag tag = getOnlyTagFor(AnnotationTestClass.class.getAnnotations()[0]);
        assertThat(tag.getName()).isEqualTo(AnnotationWithoutValue.class.getSimpleName());
        assertThat(tag.getValues()).isEmpty();
        assertThat(interceptor.containsLoggingEvent(record -> record.getLevel() == Level.SEVERE))
            .as("Attempt to convert an annotation without value method results in an error log")
            .isFalse();
    }

    @Test
    public void testAnnotationWithValueParsing() {
        Tag tag = getOnlyTagFor(AnnotationWithSingleValueTestClass.class.getAnnotations()[0]);
        assertThat(tag.getName()).isEqualTo(AnnotationWithSingleValue.class.getSimpleName());
        assertThat(tag.getValues()).containsExactly("testvalue");
    }

    @Test
    public void testAnnotationWithName() {
        Tag tag = getOnlyTagFor(AnnotationWithNameTestClass.class.getAnnotations()[0]);
        assertThat(tag.getName()).isEqualTo("AnotherName");
        assertThat(tag.getValues()).isEmpty();
        assertThat(tag.toIdString()).isEqualTo(AnnotationWithName.class.getName());
    }

    @Test
    public void testAnnotationWithIgnoredValueParsing() {
        Tag tag = getOnlyTagFor(AnnotationWithIgnoredValueTestClass.class.getAnnotations()[0]);
        assertThat(tag.getName()).isEqualTo(AnnotationWithIgnoredValue.class.getSimpleName());
        assertThat(tag.getValues()).isEmpty();
        assertThat(tag.toIdString()).isEqualTo(AnnotationWithIgnoredValue.class.getName());
    }

    @Test
    public void testAnnotationWithoutExplodedArrayParsing() {
        Tag tag = getOnlyTagFor(AnnotationWithoutExplodedArrayValueTestClass.class.getAnnotations()[0]);
        assertThat(tag.getName()).isEqualTo(AnnotationWithoutExplodedArray.class.getSimpleName());
        assertThat(tag.getValues()).containsExactly("foo", "bar");
    }

    @Test
    public void testAnnotationWithDescription() {
        Tag tag = getOnlyTagFor(AnnotationWithDescription.class.getAnnotations()[0]);
        assertThat(tag.getDescription()).isEqualTo("Some Description");
    }

    @Test
    public void testAnnotationWithDescriptionAndIgnoreValue() {
        Tag tag = getOnlyTagFor(AnnotationWithDescriptionAndIgnoreValue.class.getAnnotations()[0]);
        assertThat(tag.getValues()).isEmpty();
        assertThat(tag.getDescription()).isEqualTo("Some Description");
        assertThat(tag.getTags()).hasSize(1);
    }

    @Test
    public void testAnnotationWithParentTag() {
        Tag tag = getOnlyTagFor(AnnotationWithParentTag.class.getAnnotations()[0]);
        assertThat(tag.getTags()).containsAll(Arrays.asList(
            ParentTag.class.getName(),
            ParentTagWithValue.class.getName() + "-SomeValue")
        );
    }

    @Test
    public void testAnnotationWithArrayParsing() {
        List<Tag> tags =
            underTest.toTags(AnnotationWithArrayValueTestClass.class.getAnnotations()[0]).getDeclaredTags();
        assertThat(tags).hasSize(2);
        assertThat(tags.get(0).getName()).isEqualTo("AnnotationWithArray");
        assertThat(tags.get(0).getValues()).containsExactly("foo");
        assertThat(tags.get(1).getName()).isEqualTo("AnnotationWithArray");
        assertThat(tags.get(1).getValues()).containsExactly("bar");
    }

    @Test
    public void testAllParentsOfTagAreResolved() {
        String[] expectedNames = Stream.of(TagWithParentTags.class, ParentTag.class, ParentTagWithValue.class)
            .map(Class::getSimpleName).toArray(String[]::new);

        ResolvedTags resolvedTags = underTest.toTags(TagWithGrandparentTags.class);

        assertThat(resolvedTags.getAncestors()).extracting(Tag::getName).containsExactlyInAnyOrder(expectedNames);
        assertThat(resolvedTags.getDeclaredTags()).extracting(Tag::getName)
            .containsExactly(TagWithGrandparentTags.class.getSimpleName());
    }

    @Test
    public void testTagConfigurationOnlyRefersToTheTagsSingleParent() {
        ResolvedTags resolvedTags = underTest.toTags(TagWithGrandparentTags.class);
        assertThat(resolveParentNames(resolvedTags)).containsExactly(TagWithParentTags.class.getName());
    }

    @Test
    public void testTagConfigurationRefersToBothParentTags() {
        ResolvedTags resolvedTags = underTest.toTags(TagWithParentTags.class);
        assertThat(resolveParentNames(resolvedTags)).containsExactlyInAnyOrder(
            ParentTag.class.getName(),
            ParentTagWithValue.class.getName() + "-SomeValue"
        );
    }

    private Stream<String> resolveParentNames(ResolvedTags resolvedTags) {
        return resolvedTags.getDeclaredTags().stream()
            .map(Tag::getTags)
            .flatMap(List::stream);
    }

    private Tag getOnlyTagFor(Annotation annotation) {
        List<Tag> tags = underTest.toTags(annotation).getDeclaredTags();
        assertThat(tags).hasSize(1);
        return tags.get(0);
    }
}


text:
/**
  * Created by Administrator on 2016/5/13.
  */
package com.iaskdata

import java.io.File
import java.net.{URL, URLClassLoader}

import hex.tree.gbm.GBMModel.GBMParameters
import hex.tree.gbm.{GBM, GBMModel}
import org.apache.spark.h2o.{H2OContext, StringHolder}
import org.apache.spark.{SparkConf, SparkContext, SparkFiles}
import water.fvec.H2OFrame

/**
  * Example of Sparkling Water based application.
  */

class SparklingWater {

}

object SparklingWater {

  val conf = configure("Sparkling Water Droplet")
  val sc = new SparkContext(conf)
  // Create H2O Context
  val h2oContext = new H2OContext(sc).start()

  def addFile(filePath: String, fileName: String): H2OFrame = {
    sc.addFile(filePath)
    val irisTable = new H2OFrame(new File(SparkFiles.get(fileName)))

    irisTable
  }

  // Build GBM model
  def train(irisTable: H2OFrame): GBMModel = {
    import h2oContext.implicits._
    val gbmParams = new GBMParameters()
    gbmParams._train = irisTable
    gbmParams._response_column = 'class
    gbmParams._ntrees = 5

    val gbm = new GBM(gbmParams)
    val gbmModel = gbm.trainModel.get
    gbmModel
  }

  def dump(gbmModel: GBMModel): Unit = {
    val destFile = new File("data/GbmModel.java")
    val fos = new java.io.FileOutputStream(destFile)
    val writer = new gbmModel.JavaModelStreamWriter(false)
    try {
      writer.writeTo(fos)
    } finally {
      fos.close()
    }
  }

  def predict(gbmModel: GBMModel, irisTable: H2OFrame): Unit = {
    import h2oContext.implicits._
    // Make prediction on train data
    val predict = gbmModel.score(irisTable)('predict)

    // Compute number of mispredictions with help of Spark API
    val trainRDD = h2oContext.asRDD[StringHolder](irisTable('class))
    val predictRDD = h2oContext.asRDD[StringHolder](predict)

    // Make sure that both RDDs has the same number of elements
    assert(trainRDD.count() == predictRDD.count)
    val numMispredictions = trainRDD.zip(predictRDD).filter(i => {
      val act = i._1
      val pred = i._2
      act.result != pred.result
    }).collect()

    val numPredictions = trainRDD.zip(predictRDD).collect()

    println(
      s"""
         |Number of Predictions: ${numPredictions.length}
         |Number of mispredictions: ${numMispredictions.length}
         |
         |Mispredictions:
         |
         |actual X predicted
         |------------------
         |${numMispredictions.map(i => i._1.result.get + " X " + i._2.result.get).mkString("\n")}
       """.stripMargin)

  }

  def main(args: Array[String]) {

//    val irisTable = this.addFile("data/iris_sparklingwater.csv", "iris_sparklingwater.csv")
////
//
//    val gbmModel = this.train(irisTable)
//
//    this.predict(gbmModel, irisTable)

    // Shutdown application
//    sc.stop()
  }

  def configure(appName: String = "Sparkling Water Demo"): SparkConf = {
    val conf = new SparkConf()
      .setAppName(appName)
    conf.setIfMissing("spark.master", sys.env.getOrElse("spark.master", "local"))
    conf
  }
}

redpajama_set_name: RedPajamaGithub


text:
<?xml version="1.0" encoding="utf-8"?>
<application xmlns="http://ns.adobe.com/air/application/14.0">
  <id>air.animation</id>
  <versionNumber>0.1</versionNumber>
  <supportedProfiles>mobileDevice</supportedProfiles>
  <filename>animation</filename>
  <name>animation</name>
  <android>
    <manifestAdditions><![CDATA[<manifest android:installLocation="auto">
	<uses-sdk android:minSdkVersion="8" />
	<uses-permission android:name="android.permission.VIBRATE" />
	<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
	<application>
		<service android:name="com.juankpro.ane.localnotif.LocalNotificationIntentService" />
		<receiver android:name="com.juankpro.ane.localnotif.AlarmIntentService" />
		<receiver android:name="com.juankpro.ane.localnotif.AlarmRestoreOnBoot">
			<intent-filter>
				<action android:name="android.intent.action.BOOT_COMPLETED" />
			</intent-filter>
		</receiver>
	</application>
</manifest>]]></manifestAdditions>
  </android>
  <iPhone>
    <InfoAdditions><![CDATA[<key>UIStatusBarStyle</key>
<string>UIStatusBarStyleBlackOpaque</string>
<key>UIRequiresPersistentWiFi</key>
<string>NO</string>
<key>UIPrerenderedIcon</key>
<true />
<key>UIApplicationExitsOnSuspend</key>
<true />
<key>UIDeviceFamily</key>
<array>
	<!-- iPhone support -->
	<string>1</string>
	<!-- iPad support -->
	<!--<string>2</string>-->
</array>]]></InfoAdditions>
    <requestedDisplayResolution>high</requestedDisplayResolution>
  </iPhone>
  <initialWindow>
    <title>animation</title>
    <content>animation.swf</content>
    <visible>true</visible>
    <fullScreen>true</fullScreen>
    <!--<autoOrients>false</autoOrients>-->
    <!--<aspectRatio>landscape</aspectRatio>-->
    <renderMode>gpu</renderMode>
    <!--<depthAndStencil>true</depthAndStencil>-->
    <!-- required for 3D -->
    <systemChrome>standard</systemChrome>
    <aspectRatio>portrait</aspectRatio>
  </initialWindow>
  <icon>
    <image48x48>icons/icon_48.png</image48x48>
    <image57x57>icons/icon_57.png</image57x57>
    <image72x72>icons/icon_72.png</image72x72>
    <image76x76>icons/icon_76.png</image76x76>
    <image96x96>icons/icon_96.png</image96x96>
    <image114x114>icons/icon_114.png</image114x114>
    <image120x120>icons/icon_120.png</image120x120>
    <image144x144>icons/icon_144.png</image144x144>
    <image152x152>icons/icon_152.png</image152x152>
  </icon>
  <!--
	AIR options:
	http://livedocs.adobe.com/flex/3/html/File_formats_1.html#1043413

	AIR mobile options:
	http://help.adobe.com/en_US/air/build/WSfffb011ac560372f-5d0f4f25128cc9cd0cb-7ffe.html

	iOS icons guidelines:
	http://developer.apple.com/library/ios/#documentation/userexperience/conceptual/mobilehig/IconsImages/IconsImages.html

	Android manifest documentation:
	http://developer.android.com/guide/topics/manifest/manifest-intro.html
	-->
  <extensions>
    <extensionID>com.juankpro.ane.LocalNotification</extensionID>
  </extensions>
</application>


text:
/* -*- Mode: c; c-basic-offset: 4; indent-tabs-mode: t; tab-width: 8; -*- */
/* cairo - a vector graphics library with display and print output
 *
 * Copyright © 2016 Adrian Johnson
 *
 * This library is free software; you can redistribute it and/or
 * modify it either under the terms of the GNU Lesser General Public
 * License version 2.1 as published by the Free Software Foundation
 * (the "LGPL") or, at your option, under the terms of the Mozilla
 * Public License Version 1.1 (the "MPL"). If you do not alter this
 * notice, a recipient may use your version of this file under either
 * the MPL or the LGPL.
 *
 * You should have received a copy of the LGPL along with this library
 * in the file COPYING-LGPL-2.1; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA
 * You should have received a copy of the MPL along with this library
 * in the file COPYING-MPL-1.1
 *
 * The contents of this file are subject to the Mozilla Public License
 * Version 1.1 (the "License"); you may not use this file except in
 * compliance with the License. You may obtain a copy of the License at
 * http://www.mozilla.org/MPL/
 *
 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY
 * OF ANY KIND, either express or implied. See the LGPL or the MPL for
 * the specific language governing rights and limitations.
 *
 * The Original Code is the cairo graphics library.
 *
 * The Initial Developer of the Original Code is Adrian Johnson.
 *
 * Contributor(s):
 *	Adrian Johnson <ajohnson@redneon.com>
 */

#ifndef CAIRO_TAG_ATTRIBUTES_PRIVATE_H
#define CAIRO_TAG_ATTRIBUTES_PRIVATE_H

#include "cairo-array-private.h"
#include "cairo-error-private.h"
#include "cairo-types-private.h"

typedef enum {
    TAG_LINK_INVALID = 0,
    TAG_LINK_EMPTY,
    TAG_LINK_DEST,
    TAG_LINK_URI,
    TAG_LINK_FILE,
} cairo_tag_link_type_t;

typedef struct _cairo_link_attrs {
    cairo_tag_link_type_t link_type;
    cairo_array_t rects;
    char *dest;
    char *uri;
    char *file;
    int page;
    cairo_bool_t has_pos;
    cairo_point_double_t pos;
} cairo_link_attrs_t;

typedef struct _cairo_dest_attrs {
    char *name;
    double x;
    double y;
    cairo_bool_t x_valid;
    cairo_bool_t y_valid;
    cairo_bool_t internal;
} cairo_dest_attrs_t;

typedef struct _cairo_ccitt_params {
    int columns;
    int rows;
    int k;
    cairo_bool_t end_of_line;
    cairo_bool_t encoded_byte_align;
    cairo_bool_t end_of_block;
    cairo_bool_t black_is_1;
    int damaged_rows_before_error;
} cairo_ccitt_params_t;

typedef struct _cairo_eps_params {
    cairo_box_double_t bbox;
} cairo_eps_params_t;

cairo_private cairo_int_status_t
_cairo_tag_parse_link_attributes (const char *attributes, cairo_link_attrs_t *link_attrs);

cairo_private cairo_int_status_t
_cairo_tag_parse_dest_attributes (const char *attributes, cairo_dest_attrs_t *dest_attrs);

cairo_private cairo_int_status_t
_cairo_tag_parse_ccitt_params (const char *attributes, cairo_ccitt_params_t *dest_attrs);

cairo_private cairo_int_status_t
_cairo_tag_parse_eps_params (const char *attributes, cairo_eps_params_t *dest_attrs);

#endif /* CAIRO_TAG_ATTRIBUTES_PRIVATE_H */


text:
using System;
using System.Runtime.InteropServices;

namespace Noesis
{

[StructLayoutAttribute(LayoutKind.Sequential, CharSet = CharSet.Ansi)]
internal struct NullableUInt32 {

  [MarshalAs(UnmanagedType.U1)]
  private bool _hasValue;
  [MarshalAs(UnmanagedType.U4)]
  private uint _value;

  public bool HasValue { get { return this._hasValue; } }

  public uint Value {
    get {
      if (!HasValue) {
        throw new InvalidOperationException("Nullable does not have a value");
      }
      return this._value;
    }
  }

  public NullableUInt32(uint v) {
    this._hasValue = true;
    this._value = v;
  }

  public static explicit operator uint(NullableUInt32 n) {
    if (!n.HasValue) {
      throw new InvalidOperationException("Nullable does not have a value");
    }
    return n.Value;
  }

  public static implicit operator NullableUInt32(uint v) {
    return new NullableUInt32(v);
  }

  public static implicit operator Nullable<uint>(NullableUInt32 n) {
    return n.HasValue ? new Nullable<uint>(n.Value) : new Nullable<uint>();
  }

  public static implicit operator NullableUInt32(Nullable<uint> n) {
    return n.HasValue ? new NullableUInt32(n.Value) : new NullableUInt32();
  }

  public static bool operator==(NullableUInt32 n, uint v) {
    return n.HasValue && n.Value == v;
  }

  public static bool operator!=(NullableUInt32 n, uint v) {
    return !(n == v);
  }

  public static bool operator==(uint v, NullableUInt32 n) {
    return n == v;
  }

  public static bool operator!=(uint v, NullableUInt32 n) {
    return n != v;
  }

  public static bool operator==(NullableUInt32 n0, NullableUInt32 n1) {
    return n0.HasValue && n1.HasValue ? n0.Value == n1.Value : n0.HasValue == n1.HasValue;
  }

  public static bool operator!=(NullableUInt32 n0, NullableUInt32 n1) {
    return !(n0 == n1);
  }

  public override bool Equals(System.Object obj) {
    return obj is NullableUInt32 && this == (NullableUInt32)obj;
  }

  public bool Equals(NullableUInt32 n) {
    return this == n;
  }

  public override int GetHashCode() {
    return HasValue ? Value.GetHashCode() : 0;
  }

}

}


text:
Fabricator(:data_source) do
end


text:
<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class Obat extends Model
{
    /**
     * The database table used by the model.
     *
     * @var string
     */
    protected $table = 'obat';

    /**
     * The attributes that are mass assignable.
     *
     * @var array
     */
    protected $fillable = ['nama_obat', 'barcode', 'golongan', 'merk', 'supplier', 'rak', 'diskon', 'satuan', 'isi', 'harga_pokok', 'harga_jual', 'status', 'kadaluarsa'];

    /*rules validasi*/
    public static $rules = [
    	// 'plu'=>'required',
    	'nama_obat'=>'required',
    	'barcode'=>'required|min:4',
    	'golongan'=>'required',
    	'merk'=>'required',
    	'supplier'=>'required',
    	'rak'=>'required',
    	'diskon'=>'required',
    	'satuan'=>'required',
    	// 'satuan_beli'=>'required',
    	'isi'=>'required',
    	'harga_pokok'=>'required',
    	'harga_jual'=>'required',
    	'status'=>'required',
        'kadaluarsa'=>'required'
    ];

    //relasi
    public function merk()
    {
        return $this->hasMany('App\Merk', 'id', 'merk');
    }

    public function supplier()
    {
        return $this->hasMany('App\Supplier', 'id', 'supplier');
    }

    public function golongan()
    {
        return $this->hasMany('App\Golongan', 'id', 'golongan');
    }

    public function rak()
    {
        return $this->hasMany('App\Rak', 'id', 'rak');
    }

    public function satuan()
    {
        return $this->hasMany('App\Satuan', 'id', 'satuan');
    }

    public function obathabis_merk()
    {
        return $this->belongsTo('App\Merk', 'merk', 'id');
    }

    public function obathabis_supplier()
    {
        return $this->belongsTo('App\Supplier', 'supplier', 'id');
    }

    // untuk print laporan
    public function merk1()
    {
        return $this->belongsTo('App\Merk', 'merk', 'id');
    }

    public function rak1()
    {
        return $this->belongsTo('App\Rak', 'rak', 'id');
    }

    public function golongan1()
    {
        return $this->belongsTo('App\Golongan', 'golongan', 'id');
    }

    public function satuan1()
    {
        return $this->belongsTo('App\Satuan', 'satuan', 'id');
    }
}


text:
<?php defined('BX_DOL') or die('hack attempt');

class BxNexusDb extends BxDolModuleDb
{
    function __construct(&$oConfig)
    {
        parent::__construct($oConfig);
    }
}

/** @} */


text:
namespace mscorlib
{
	namespace System
	{
		namespace Runtime
		{
			namespace InteropServices
			{

				//Constructors Tests

				//ArrayWithOffset(mscorlib::System::Object array, mscorlib::System::Int32 offset)
				TEST(mscorlib_System_Runtime_InteropServices_ArrayWithOffset_Fixture,Constructor_1)
				{

				}

				//Public Methods Tests

				// Method Equals
				//		Signature: mscorlib::System::Object obj
				TEST(mscorlib_System_Runtime_InteropServices_ArrayWithOffset_Fixture,Equals_1_Test)
				{

				}

				// Method Equals
				//		Signature: mscorlib::System::Runtime::InteropServices::ArrayWithOffset obj
				TEST(mscorlib_System_Runtime_InteropServices_ArrayWithOffset_Fixture,Equals_2_Test)
				{

				}

				// Method GetHashCode
				//		Signature:
				TEST(mscorlib_System_Runtime_InteropServices_ArrayWithOffset_Fixture,GetHashCode_Test)
				{

				}

				// Method GetArray
				//		Signature:
				TEST(mscorlib_System_Runtime_InteropServices_ArrayWithOffset_Fixture,GetArray_Test)
				{

				}

				// Method GetOffset
				//		Signature:
				TEST(mscorlib_System_Runtime_InteropServices_ArrayWithOffset_Fixture,GetOffset_Test)
				{

				}

			}
		}
	}
}


text:
NOTE: This bot hasn't been approved by facebook till now so you can't try  it out.

A news messenger bot using [Google News RSS Feeds](https://news.google.com/?output=rss)

## Sample screenshots
![Welcome Message](http://i.imgur.com/Tb9bh7Q.png)
![News Slide Sample](http://i.imgur.com/FBUWGtM.png)
![Summary Sample](http://i.imgur.com/9TzhhAw.png)
![Article Info Sample](http://i.imgur.com/kBBnXmT.png)


text:
<!DOCTYPE html>

<meta charset="UTF-8">
<title>etiquetas</title>

			rel: alternate, author, bookmark(enlace a nuestros documentos),
			license, next, nofollow(enlace sin CEO), noreferrer(sin referencia
			encabezado http), prev, search, tag (etiqeta clave)

		ACRONIMO

		<time datetime="2009-10-22" pubdate="pubdate">22 de octubre del 2009</time>
		<time datetime="2000-02-14">San valentin</time>
		<time datetime="09:00:00">por la mañana</time>

		<time datetime="YYYY-MM-DDThh:mm:ssTZD"></time>

descripcion de la imagen

			resalta la interaccion del usuario con la pagina,
			se debe cmombinar con JS para resaltar la accion del usuario sobre algun elemento,
			por ejemplo las palabras buscadas en el 'type="search"'

		<address></address>

 | <q cite=""></q>

		    Column 1 Heading
		    Column 2 Heading

 First definition

  First explanation

 Second definition

 Second explanation

		<fieldset form="<form id=''>"></fieldset>

		<form action=""></form>

	<address>
		Escrita por Mail Fernando.

		Direccion web Web Fernando.

		Direccion local C/Mateo Fiol 68. - ES
	</address>

	<video preload="auto || meta || none"
			 poster="/folder/*.png || javascript:void(0)+background-image"
			 autoplay controls loop muted>

		<source src="../media/video/*.mp4" type="video/mp4" codecs="avc1.4D401E, mp4a.40.2"/>
		<source src="../media/video/*.webm" type="video/webm" codecs="vp8.0, vorbis"/>
		<source src="../media/video/*.ogg" type="video/ogg" codecs="theora, vorbis"/>
		Tu navegador NO soporta los videos en html5
	</video>

	<audio controls autoplay loop muted preload>

		<source src="../media/audio/*.mp3" type="audio/mpeg"/>
		<source src="../media/audio/*.ogg" type="audio/ogg"/>
		<source src="../media/audio/*.wav" type="audio/wav"/>
		Tu Navegador NO soporta audios en html5
	</audio>

	<input type="text" placeholder="Di lo que te apetezca" speech x-webkit-speech />

		Esta pagina requiere de javascript para navegar por su contenido

cambiar navegador con soporte javascript

activar javascript en su navegador

acceder a la version de esta pagina NO-JAVASCRIPT

	generos taxonomicos, tecnicismos, frases idiomaticas, transcripciones, un pensamiento o concepto (una idea)

	palabras/frases clave del documento, nombre de productos, frase que define el concepto de un articulo, resumen del contexto del articulo

	texto que alerta, emfatiza de algo

	la parte mas importante del texto

'Ansio este trabajo', el pensó

El evento llega el siguiente Sabado y se registraran cerca de 3000 personas

Asegurate de registrarte antes del dia del evento, <time datetime="2013-09-16T24:00:00">16 de Septiembre de este año</time>

los ojos y la nariz del Homer que dibujo con CSS, encapsulacion de imagenes en un slider para darle interaccion con JS

contenido HTML que esta relacionada con un contexto, ¿esta el contenido relacionado?; ejemplos concretos son: <header>, <footer>, <aside> y <main>

	grupo introductorio de elementos, <h1, h2>(titulos), <p>(subtitulos)
	contenido extendido de la pagina, que tiene que ver con él como una 'postdata' o el 'autor', o enlaces intradocumentales o extradocumentales con relacion a la semantica de la web, o esponsores - patrocinadores
	contenido alternativo de la pagina, que expande el contenido, que no tiene que ver directamente con él, o enlaces extradocumentales
	contenedor de enlaces, principalmente se estructura con <,ul, ol>

	<time></time>


text:
// Copyright 2012 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the 'License');
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//      http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an 'AS IS' BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

traceur.define('codegeneration', function() {
  'use strict';

  var ComprehensionTransformer = traceur.codegeneration.ComprehensionTransformer;
  var ParseTree = traceur.syntax.trees.ParseTree;
  var ParseTreeFactory = traceur.codegeneration.ParseTreeFactory;
  var TokenType = traceur.syntax.TokenType;

  var createArrayLiteralExpression = ParseTreeFactory.createArrayLiteralExpression;
  var createAssignmentStatement = ParseTreeFactory.createAssignmentStatement;
  var createIdentifierExpression = ParseTreeFactory.createIdentifierExpression;
  var createMemberLookupExpression = ParseTreeFactory.createMemberLookupExpression;
  var createNumberLiteral = ParseTreeFactory.createNumberLiteral;
  var createPostfixExpression = ParseTreeFactory.createPostfixExpression;
  var createReturnStatement = ParseTreeFactory.createReturnStatement;
  var createVariableDeclaration = ParseTreeFactory.createVariableDeclaration;
  var createVariableDeclarationList = ParseTreeFactory.createVariableDeclarationList;
  var createVariableStatement = ParseTreeFactory.createVariableStatement;

  /**
   * Array Comprehension Transformer:
   *
   * The desugaring is defined at
   * http://wiki.ecmascript.org/doku.php?id=harmony:array_comprehensions
   * as something like this:
   *
   * [ Expression0 for ( LHSExpression1 of Expression1 )
   *               ...
   *               for ( LHSExpressionn ) if ( Expression )opt ]
   *
   * =>
   *
   * (function () {
   *     var $result = [], $i = 0;
   *     for (let LHSExpression1 of Expression1 ) {
   *         ...
   *         for (let LHSExpressionn of Expressionn ) {
   *             if ( Expression )opt
   *                 $result[$i++] = Expression0;
   *             }
   *         }
   *     }
   *     return $result;
   * })()
   *
   * with alpha renaming of this and arguments of course.
   *
   * @param {UniqueIdentifierGenerator} identifierGenerator
   * @constructor
   * @extends {ComprehensionTransformer}
   */
  function ArrayComprehensionTransformer(identifierGenerator) {
    ComprehensionTransformer.call(this, identifierGenerator);
  }

  /**
   * @param {UniqueIdentifierGenerator} identifierGenerator
   * @param {ParseTree} tree
   * @return {ParseTree}
   */
  ArrayComprehensionTransformer.transformTree =
      function(identifierGenerator, tree) {
    return new ArrayComprehensionTransformer(identifierGenerator).
        transformAny(tree);
  };

  ArrayComprehensionTransformer.prototype = traceur.createObject(
      ComprehensionTransformer.prototype, {
    transformArrayComprehension: function(tree) {
      var expression = this.transformAny(tree.expression);

      var indexName = this.identifierGenerator.generateUniqueIdentifier();
      var resultName = this.identifierGenerator.generateUniqueIdentifier();
      var resultIdentifier = createIdentifierExpression(resultName);

      var initStatement = createVariableStatement(
          createVariableDeclarationList(TokenType.VAR, [
            createVariableDeclaration(indexName, createNumberLiteral(0)),
            createVariableDeclaration(resultName,
                                      createArrayLiteralExpression([]))
          ]));

      var statement = createAssignmentStatement(
          createMemberLookupExpression(
              resultIdentifier,
              createPostfixExpression(createIdentifierExpression(indexName),
                                      TokenType.PLUS_PLUS)),
          expression);

      var returnStatement = createReturnStatement(resultIdentifier);
      var isGenerator = false;

      return this.transformComprehension(tree, statement, isGenerator,
                                         initStatement, returnStatement);
    }
  });

  return {
    ArrayComprehensionTransformer: ArrayComprehensionTransformer
  };
});


text:
var Draggable = require('../mixins/draggable');
var TileView = Ember.View.extend(Draggable, {
    tagName: 'div',
    classNameBindings: ['color', 'tile'],

    tile: function() {
        if(this.get('source').number == 0) {
            return 'joker';
        }
        else {
            return 'tile';
        }
    }.property('source')
});

module.exports = TileView;


text:
from django.contrib import admin
from cthulhubot.models import BuildComputer, Command, Project, Job, JobAssignment

admin.site.register([BuildComputer, Command, Project, Job, JobAssignment])


text:
ACCEPTED

#### According to
Index Fungorum

#### Published in
null

#### Original name
Naevia seriata var. comedens Rehm

### Remarks
null


text:
<?php

namespace Oro\Bundle\IntegrationBundle\Tests\Unit\Provider;

use Symfony\Component\HttpFoundation\ParameterBag;

use Oro\Bundle\IntegrationBundle\Entity\Transport;
use Oro\Bundle\IntegrationBundle\Provider\SOAPTransport;

class SoapTransportTest extends \PHPUnit_Framework_TestCase
{
    /** @var SOAPTransport|\PHPUnit_Framework_MockObject_MockObject */
    protected $transport;

    /** @var Transport|\PHPUnit_Framework_MockObject_MockObject */
    protected $transportEntity;

    /** @var ParameterBag */
    protected $settings;

    /** @var \PHPUnit_Framework_MockObject_MockObject */
    protected $soapClientMock;

    /**
     * Setup test entity
     */
    protected function setUp()
    {
        $this->transport = $this->getMockForAbstractClass(
            'Oro\Bundle\IntegrationBundle\Provider\SOAPTransport',
            [],
            '',
            true,
            true,
            true,
            ['getSoapClient']
        );

        $this->soapClientMock = $this->getMockBuilder('\SoapClient')
            ->disableOriginalConstructor()
            ->setMethods(['__soapCall', '__getLastResponseHeaders'])
            ->getMock();

        $this->settings        = new ParameterBag();
        $this->transportEntity = $this->getMock('Oro\Bundle\IntegrationBundle\Entity\Transport');
        $this->transportEntity->expects($this->any())->method('getSettingsBag')
            ->will($this->returnValue($this->settings));
    }

    /**
     * Tear down setup objects
     */
    protected function tearDown()
    {
        unset($this->transport, $this->transportEntity, $this->soapClientMock, $this->settings);
    }

    /**
     * Test init method
     */
    public function testInit()
    {
        $this->transport->expects($this->once())
            ->method('getSoapClient')
            ->will($this->returnValue($this->soapClientMock));

        $this->settings->set('wsdl_url', 'http://localhost.not.exists/?wsdl');

        try {
            $this->transport->init($this->transportEntity);
        } catch (\SoapFault $e) {
            $this->assertNotEmpty($e->getMessage());
        }

        $this->transport->call('test');

        $this->assertEmpty($this->transport->getLastRequest());
        $this->assertEmpty($this->transport->getLastResponse());
    }

    /**
     * Test init method errors
     *
     * @expectedException \Oro\Bundle\IntegrationBundle\Exception\InvalidConfigurationException
     */
    public function testInitErrors()
    {
        $this->transport->init($this->transportEntity);
    }

    /**
     * @dataProvider exceptionProvider
     *
     * @expectedException \Oro\Bundle\IntegrationBundle\Exception\SoapConnectionException
     */
    public function testMultipleAttemptException($header, $attempt, $code)
    {
        $this->soapClientMock->expects($this->any())
            ->method('__getLastResponseHeaders')
            ->will($this->returnValue($header));
        $this->soapClientMock->expects($this->exactly($attempt))
            ->method('__soapCall')
            ->will($this->throwException(new \Exception('error', $code)));

        $this->transport->expects($this->once())
            ->method('getSoapClient')
            ->will($this->returnValue($this->soapClientMock));

        $this->settings->set('wsdl_url', 'http://localhost.not.exists/?wsdl');
        $this->transport->init($this->transportEntity);
        $this->transport->call('test');
    }

    /**
     * @return array
     */
    public function exceptionProvider()
    {
        return [
            'Attempts'              => [
                "HTTP/1.1 502 Bad gateway\n\r",
                6,
                502
            ],
            'Internal server error' => [
                "HTTP/1.1 500 Internal server error\n\r",
                1,
                500
            ]
        ];
    }

    public function testMultipleAttempt()
    {
        $this->soapClientMock->expects($this->at(0))
            ->method('__getLastResponseHeaders')
            ->will($this->returnValue("HTTP/1.1 502 Bad gateway\n\r"));
        $this->soapClientMock->expects($this->at(0))
            ->method('__soapCall')
            ->will($this->throwException(new \Exception('error', 502)));

        $this->soapClientMock->expects($this->at(1))
            ->method('__getLastResponseHeaders')
            ->will($this->returnValue("HTTP/1.1 503 Service unavailable Explained\n\r"));
        $this->soapClientMock->expects($this->at(1))
            ->method('__soapCall')
            ->will($this->throwException(new \Exception('error', 503)));

        $this->soapClientMock->expects($this->at(2))
            ->method('__getLastResponseHeaders')
            ->will($this->returnValue("HTTP/1.1 504 Gateway timeout Explained\n\r"));
        $this->soapClientMock->expects($this->at(2))
            ->method('__soapCall')
            ->will($this->throwException(new \Exception('error', 504)));

        $this->soapClientMock->expects($this->at(4))
            ->method('__getLastResponseHeaders')
            ->will($this->returnValue("HTTP/1.1 200 OK\n\r"));
        $this->soapClientMock->expects($this->at(4))
            ->method('__soapCall');

        $this->transport->expects($this->once())
            ->method('getSoapClient')
            ->will($this->returnValue($this->soapClientMock));

        $this->settings->set('wsdl_url', 'http://localhost.not.exists/?wsdl');
        $this->transport->init($this->transportEntity);
        $this->transport->call('test');
    }
}


text:
source credentials.conf

echo 'Trying to connect to the development database server...'
if [ $1'x' != 'x' ]; then
	if [ $2'x' != 'x' ]; then
    	mysql --user=$DATABASE_USER_PREFIX$1 --password=$2 --host=$HOST $DATABASE
    else
    	mysql --user=$DATABASE_USER_PREFIX$1 --password=$1 --host=$HOST $DATABASE
    fi
else
	mysql --user=$ADMIN_USERNAME --password=$ADMIN_PASSWORD --host=$HOST $DATABASE
fi


text:
require 'clockwork'
require 'clockwork/manager_with_database_tasks'
require_relative './config/boot'
require_relative './config/environment'

module Clockwork
  handler do |job|
    `rake #{job}`
  end

  every(1.day, 'truncate:project_statuses[1000]')
  every(1.minute, 'trim_payload_log_entries')
end


text:
/* jshint node: true */
'use strict';

module.exports = {
  name: 'ember-hold-button',
  included: function(app) {
    this._super.included.apply(this, arguments);
  }
};


text:
@implementation SimpleLocalNotification

+ (void)isRegisteredForLocalNotificationsWithCompletion:(void(^)(BOOL userDidAllowAlerts, UNNotificationSettings *settings))completion {
  if (completion) {
    [[UNUserNotificationCenter currentNotificationCenter] getNotificationSettingsWithCompletionHandler:^(UNNotificationSettings *settings) {
      dispatch_async(dispatch_get_main_queue(), ^{
        completion(settings.authorizationStatus == UNAuthorizationStatusAuthorized &&
                   settings.alertSetting == UNNotificationSettingEnabled,
                   settings);
      });
    }];
  }

}

+ (void)registerForLocalNotificationsIfNeededWithCompletion:(void(^)(BOOL granted, UNNotificationSettings *settings, NSError *error))completion {
  [self isRegisteredForLocalNotificationsWithCompletion:^(BOOL userDidAllowAlerts, UNNotificationSettings *settings) {
    if (!userDidAllowAlerts) {
      [[UNUserNotificationCenter currentNotificationCenter]
       requestAuthorizationWithOptions:UNAuthorizationOptionAlert
       completionHandler:^(BOOL granted, NSError *error) {
         if (completion) {
           dispatch_async(dispatch_get_main_queue(), ^{
             completion(granted, settings, error);
           });
         }
       }];
    } else {
      if (completion) {
        dispatch_async(dispatch_get_main_queue(), ^{
          completion(YES, settings, nil);
        });
      }
    }
  }];

}

+ (void)scheduleLocalNotificationWithAlertBody:(NSString*)alertBody
                           timeIntervalFromNow:(NSTimeInterval)timeIntervalFromNow
                              uniqueIdentifier:(NSString *)uniqueIdentifier
                                    completion:(void (^)(NSError *))completion {
  NSParameterAssert(timeIntervalFromNow > 0);

  [self registerForLocalNotificationsIfNeededWithCompletion:^(BOOL granted, UNNotificationSettings *settings, NSError *registerError) {
    if (granted) {
      UNMutableNotificationContent *content = [UNMutableNotificationContent new];
      content.body = alertBody;

      UNNotificationRequest *request = [UNNotificationRequest
                                        requestWithIdentifier:uniqueIdentifier
                                        content:content
                                        trigger:[UNTimeIntervalNotificationTrigger
                                                 triggerWithTimeInterval:timeIntervalFromNow
                                                 repeats:NO]];

      [[UNUserNotificationCenter currentNotificationCenter]
       addNotificationRequest:request
       withCompletionHandler:^(NSError *addError) {
         if (completion) {
           dispatch_async(dispatch_get_main_queue(), ^{
             completion(addError);
           });
         }
      }];
    } else {
      if (completion) {
        dispatch_async(dispatch_get_main_queue(), ^{
          completion(registerError);
        });
      }
    }
  }];
}

+ (void)cancelScheduledLocalNotificationsMatchingUniqueIdentifier:(NSString *)uniqueIdentifier {
  [[UNUserNotificationCenter currentNotificationCenter]
   removePendingNotificationRequestsWithIdentifiers:@[uniqueIdentifier]];
}

@end


text:
<?php

namespace Chief;

use Chief\Busses\SynchronousCommandBus;
use Chief\Decorators\LoggingDecorator;
use Chief\Resolvers\NativeCommandHandlerResolver;
use Chief\Stubs\LogDecoratorCommandBus;
use Chief\Stubs\NonInterfaceImplementingCommand;
use Chief\Stubs\SelfHandlingCommand;
use Chief\Stubs\TestCommand;
use Chief\Stubs\TestCommandWithoutHandler;

class ChiefTest extends ChiefTestCase
{
    public function testInstantiable()
    {
        $this->assertTrue(new Chief instanceof CommandBus);
    }

    public function testExecuteFiresByAutoResolution()
    {
        $bus = new Chief();
        $command = new TestCommand;
        $bus->execute($command);
        $this->assertEquals($command->handled, true);
    }

    public function testExecuteFiresHandlerAttachedByInstance()
    {
        $resolver = new NativeCommandHandlerResolver;
        $resolver->bindHandler('Chief\Stubs\TestCommand', $handler = $this->getMock('Chief\CommandHandler'));
        $syncBus = new SynchronousCommandBus($resolver);
        $bus = new Chief($syncBus);
        $command = new TestCommand;
        $handler->expects($this->once())->method('handle')->with($command);
        $bus->execute($command);
    }

    public function testExecuteFiresHandlerAttachedByCallable()
    {
        $resolver = new NativeCommandHandlerResolver;
        $resolver->bindHandler('Chief\Stubs\TestCommand', function (Command $command) {
                $command->handled = true;
        });
        $bus = new Chief(new SynchronousCommandBus($resolver));
        $command = new TestCommand;
        $bus->execute($command);
        $this->assertEquals($command->handled, true);
    }

    public function testExecuteFiresHandlerAttachedByString()
    {
        $resolver = new NativeCommandHandlerResolver;
        $resolver->bindHandler('Chief\Stubs\TestCommand', 'Chief\Stubs\TestCommandHandler');
        $bus = new Chief(new SynchronousCommandBus($resolver));
        $command = new TestCommand;
        $bus->execute($command);
        $this->assertEquals($command->handled, true);
    }

    public function testExecuteThrowsExceptionWhenNoHandler()
    {
        $bus = new Chief();
        $command = new TestCommandWithoutHandler;
        $this->setExpectedException('Exception');
        $bus->execute($command);
    }

    public function testCommandCanHandleItselfIfImplementsCommandHandler()
    {
        $bus = new Chief();
        $command = $this->getMock('Chief\Stubs\SelfHandlingCommand');
        $command->expects($this->once())->method('handle')->with($command);
        $bus->execute($command);
    }

    public function testDecoratorCommandBus()
    {
        $bus = new LogDecoratorCommandBus(
            $logger = $this->getMock('Psr\Log\LoggerInterface'),
            $innerBus = $this->getMock('Chief\Busses\SynchronousCommandBus')
        );
        $chief = new Chief($bus);
        $command = new TestCommand;
        $logger->expects($this->exactly(2))->method('info');
        $innerBus->expects($this->once())->method('execute')->with($command);
        $chief->execute($command);
    }

    public function testInstanceWithDecorators()
    {
        $chief = new Chief(new SynchronousCommandBus, [
            $decorator = $this->getMock('Chief\Decorator')
        ]);
        $command = new TestCommand;
        $decorator->expects($this->once())->method('execute')->with($command);
        $chief->execute($command);
    }

    public function testInstanceWithMultipleDecoratorsHitsNestedDecorators()
    {
        $logger = $this->getMock('Psr\Log\LoggerInterface');

        $chief = new Chief(new SynchronousCommandBus, [
            $decoratorOne = new LoggingDecorator($logger),
            $decoratorTwo = $this->getMock('Chief\Decorator'),
        ]);
        $command = new TestCommand;
        $decoratorTwo->expects($this->once())->method('execute')->with($command);
        $chief->execute($command);
    }

    public function testInstanceWithMultipleDecoratorsHitsHandler()
    {
        $logger = $this->getMock('Psr\Log\LoggerInterface');

        $chief = new Chief(new SynchronousCommandBus, [
            $decoratorOne = new LoggingDecorator($logger),
            $decoratorTwo = new LoggingDecorator($logger),
        ]);
        $command = new SelfHandlingCommand;
        $chief->execute($command);
        $this->assertEquals($command->handled, true);
    }
    public function testInnerBusResponseIsReturnedByChief()
    {
        $chief = new Chief($bus = $this->getMock('Chief\CommandBus'));
        $bus->expects($this->once())->method('execute')->willReturn('foo-bar');
        $response = $chief->execute(new TestCommand);
        $this->assertEquals($response, 'foo-bar');
    }

    public function testExecuteWithHandlerWhichDoesNotImplementInterface()
    {
        $command = new NonInterfaceImplementingCommand();
        $chief = new Chief();
        $chief->execute($command);
        $this->assertTrue($command->handled);
    }
}


text:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Discord;
using Fclp.Internals.Extensions;

namespace SkillBotv2.Command
{
    class CommandClean : ICommand
    {
        public async Task<object> ParseArguments(string[] args, Message message)
        {
            return "";
        }

        public async Task Execute(object arguments, Message message)
        {
            // Getting messages
            var messages = (await message.Channel.DownloadMessages())
                .Where(m => m.User.Id == Program.Client.CurrentUser.Id)
                .ToArray();

            foreach (var m in messages)
                await m.Delete();

            var m1 = await message.Channel.SendMessage($"Deleted **{messages.Length}** messages.");
            await Task.Delay(5000);
            await m1.Delete();
        }
    }
}


text:
package com.example.seccon2015.rock_paper_scissors;

// Referenced classes of package com.example.seccon2015.rock_paper_scissors:
//            R

public static final class
{

    public static final int ActionBar[] = {
        0x7f010001, 0x7f010003, 0x7f010004, 0x7f010005, 0x7f010006, 0x7f010007, 0x7f010008, 0x7f010009, 0x7f01000a, 0x7f01000b,
        0x7f01000c, 0x7f01000d, 0x7f01000e, 0x7f01000f, 0x7f010010, 0x7f010011, 0x7f010012, 0x7f010013, 0x7f010014, 0x7f010015,
        0x7f010016, 0x7f010017, 0x7f010018, 0x7f010019, 0x7f01001a, 0x7f01001b, 0x7f01007b
    };
    public static final int ActionBarLayout[] = {
        0x10100b3
    };
    public static final int ActionBarLayout_android_layout_gravity = 0;
    public static final int ActionBar_background = 10;
    public static final int ActionBar_backgroundSplit = 12;
    public static final int ActionBar_backgroundStacked = 11;
    public static final int ActionBar_contentInsetEnd = 21;
    public static final int ActionBar_contentInsetLeft = 22;
    public static final int ActionBar_contentInsetRight = 23;
    public static final int ActionBar_contentInsetStart = 20;
    public static final int ActionBar_customNavigationLayout = 13;
    public static final int ActionBar_displayOptions = 3;
    public static final int ActionBar_divider = 9;
    public static final int ActionBar_elevation = 24;
    public static final int ActionBar_height = 0;
    public static final int ActionBar_hideOnContentScroll = 19;
    public static final int ActionBar_homeAsUpIndicator = 26;
    public static final int ActionBar_homeLayout = 14;
    public static final int ActionBar_icon = 7;
    public static final int ActionBar_indeterminateProgressStyle = 16;
    public static final int ActionBar_itemPadding = 18;
    public static final int ActionBar_logo = 8;
    public static final int ActionBar_navigationMode = 2;
    public static final int ActionBar_popupTheme = 25;
    public static final int ActionBar_progressBarPadding = 17;
    public static final int ActionBar_progressBarStyle = 15;
    public static final int ActionBar_subtitle = 4;
    public static final int ActionBar_subtitleTextStyle = 6;
    public static final int ActionBar_title = 1;
    public static final int ActionBar_titleTextStyle = 5;
    public static final int ActionMenuItemView[] = {
        0x101013f
    };
    public static final int ActionMenuItemView_android_minWidth = 0;
    public static final int ActionMenuView[] = new int[0];
    public static final int ActionMode[] = {
        0x7f010001, 0x7f010007, 0x7f010008, 0x7f01000c, 0x7f01000e, 0x7f01001c
    };
    public static final int ActionMode_background = 3;
    public static final int ActionMode_backgroundSplit = 4;
    public static final int ActionMode_closeItemLayout = 5;
    public static final int ActionMode_height = 0;
    public static final int ActionMode_subtitleTextStyle = 2;
    public static final int ActionMode_titleTextStyle = 1;
    public static final int ActivityChooserView[] = {
        0x7f01001d, 0x7f01001e
    };
    public static final int ActivityChooserView_expandActivityOverflowButtonDrawable = 1;
    public static final int ActivityChooserView_initialActivityCount = 0;
    public static final int AlertDialog[] = {
        0x10100f2, 0x7f01001f, 0x7f010020, 0x7f010021, 0x7f010022, 0x7f010023
    };
    public static final int AlertDialog_android_layout = 0;
    public static final int AlertDialog_buttonPanelSideLayout = 1;
    public static final int AlertDialog_listItemLayout = 5;
    public static final int AlertDialog_listLayout = 2;
    public static final int AlertDialog_multiChoiceItemLayout = 3;
    public static final int AlertDialog_singleChoiceItemLayout = 4;
    public static final int AppCompatTextView[] = {
        0x1010034, 0x7f010024
    };
    public static final int AppCompatTextView_android_textAppearance = 0;
    public static final int AppCompatTextView_textAllCaps = 1;
    public static final int CompoundButton[] = {
        0x1010107, 0x7f010025, 0x7f010026
    };
    public static final int CompoundButton_android_button = 0;
    public static final int CompoundButton_buttonTint = 1;
    public static final int CompoundButton_buttonTintMode = 2;
    public static final int DrawerArrowToggle[] = {
        0x7f010027, 0x7f010028, 0x7f010029, 0x7f01002a, 0x7f01002b, 0x7f01002c, 0x7f01002d, 0x7f01002e
    };
    public static final int DrawerArrowToggle_arrowHeadLength = 4;
    public static final int DrawerArrowToggle_arrowShaftLength = 5;
    public static final int DrawerArrowToggle_barLength = 6;
    public static final int DrawerArrowToggle_color = 0;
    public static final int DrawerArrowToggle_drawableSize = 2;
    public static final int DrawerArrowToggle_gapBetweenBars = 3;
    public static final int DrawerArrowToggle_spinBars = 1;
    public static final int DrawerArrowToggle_thickness = 7;
    public static final int LinearLayoutCompat[] = {
        0x10100af, 0x10100c4, 0x1010126, 0x1010127, 0x1010128, 0x7f01000b, 0x7f01002f, 0x7f010030, 0x7f010031
    };
    public static final int LinearLayoutCompat_Layout[] = {
        0x10100b3, 0x10100f4, 0x10100f5, 0x1010181
    };
    public static final int LinearLayoutCompat_Layout_android_layout_gravity = 0;
    public static final int LinearLayoutCompat_Layout_android_layout_height = 2;
    public static final int LinearLayoutCompat_Layout_android_layout_weight = 3;
    public static final int LinearLayoutCompat_Layout_android_layout_width = 1;
    public static final int LinearLayoutCompat_android_baselineAligned = 2;
    public static final int LinearLayoutCompat_android_baselineAlignedChildIndex = 3;
    public static final int LinearLayoutCompat_android_gravity = 0;
    public static final int LinearLayoutCompat_android_orientation = 1;
    public static final int LinearLayoutCompat_android_weightSum = 4;
    public static final int LinearLayoutCompat_divider = 5;
    public static final int LinearLayoutCompat_dividerPadding = 8;
    public static final int LinearLayoutCompat_measureWithLargestChild = 6;
    public static final int LinearLayoutCompat_showDividers = 7;
    public static final int ListPopupWindow[] = {
        0x10102ac, 0x10102ad
    };
    public static final int ListPopupWindow_android_dropDownHorizontalOffset = 0;
    public static final int ListPopupWindow_android_dropDownVerticalOffset = 1;
    public static final int MenuGroup[] = {
        0x101000e, 0x10100d0, 0x1010194, 0x10101de, 0x10101df, 0x10101e0
    };
    public static final int MenuGroup_android_checkableBehavior = 5;
    public static final int MenuGroup_android_enabled = 0;
    public static final int MenuGroup_android_id = 1;
    public static final int MenuGroup_android_menuCategory = 3;
    public static final int MenuGroup_android_orderInCategory = 4;
    public static final int MenuGroup_android_visible = 2;
    public static final int MenuItem[] = {
        0x1010002, 0x101000e, 0x10100d0, 0x1010106, 0x1010194, 0x10101de, 0x10101df, 0x10101e1, 0x10101e2, 0x10101e3,
        0x10101e4, 0x10101e5, 0x101026f, 0x7f010032, 0x7f010033, 0x7f010034, 0x7f010035
    };
    public static final int MenuItem_actionLayout = 14;
    public static final int MenuItem_actionProviderClass = 16;
    public static final int MenuItem_actionViewClass = 15;
    public static final int MenuItem_android_alphabeticShortcut = 9;
    public static final int MenuItem_android_checkable = 11;
    public static final int MenuItem_android_checked = 3;
    public static final int MenuItem_android_enabled = 1;
    public static final int MenuItem_android_icon = 0;
    public static final int MenuItem_android_id = 2;
    public static final int MenuItem_android_menuCategory = 5;
    public static final int MenuItem_android_numericShortcut = 10;
    public static final int MenuItem_android_onClick = 12;
    public static final int MenuItem_android_orderInCategory = 6;
    public static final int MenuItem_android_title = 7;
    public static final int MenuItem_android_titleCondensed = 8;
    public static final int MenuItem_android_visible = 4;
    public static final int MenuItem_showAsAction = 13;
    public static final int MenuView[] = {
        0x10100ae, 0x101012c, 0x101012d, 0x101012e, 0x101012f, 0x1010130, 0x1010131, 0x7f010036
    };
    public static final int MenuView_android_headerBackground = 4;
    public static final int MenuView_android_horizontalDivider = 2;
    public static final int MenuView_android_itemBackground = 5;
    public static final int MenuView_android_itemIconDisabledAlpha = 6;
    public static final int MenuView_android_itemTextAppearance = 1;
    public static final int MenuView_android_verticalDivider = 3;
    public static final int MenuView_android_windowAnimationStyle = 0;
    public static final int MenuView_preserveIconSpacing = 7;
    public static final int PopupWindow[] = {
        0x1010176, 0x7f010037
    };
    public static final int PopupWindowBackgroundState[] = {
        0x7f010038
    };
    public static final int PopupWindowBackgroundState_state_above_anchor = 0;
    public static final int PopupWindow_android_popupBackground = 0;
    public static final int PopupWindow_overlapAnchor = 1;
    public static final int SearchView[] = {
        0x10100da, 0x101011f, 0x1010220, 0x1010264, 0x7f010039, 0x7f01003a, 0x7f01003b, 0x7f01003c, 0x7f01003d, 0x7f01003e,
        0x7f01003f, 0x7f010040, 0x7f010041, 0x7f010042, 0x7f010043, 0x7f010044, 0x7f010045
    };
    public static final int SearchView_android_focusable = 0;
    public static final int SearchView_android_imeOptions = 3;
    public static final int SearchView_android_inputType = 2;
    public static final int SearchView_android_maxWidth = 1;
    public static final int SearchView_closeIcon = 8;
    public static final int SearchView_commitIcon = 13;
    public static final int SearchView_defaultQueryHint = 7;
    public static final int SearchView_goIcon = 9;
    public static final int SearchView_iconifiedByDefault = 5;
    public static final int SearchView_layout = 4;
    public static final int SearchView_queryBackground = 15;
    public static final int SearchView_queryHint = 6;
    public static final int SearchView_searchHintIcon = 11;
    public static final int SearchView_searchIcon = 10;
    public static final int SearchView_submitBackground = 16;
    public static final int SearchView_suggestionRowLayout = 14;
    public static final int SearchView_voiceIcon = 12;
    public static final int Spinner[] = {
        0x1010176, 0x101017b, 0x1010262, 0x7f01001b
    };
    public static final int Spinner_android_dropDownWidth = 2;
    public static final int Spinner_android_popupBackground = 0;
    public static final int Spinner_android_prompt = 1;
    public static final int Spinner_popupTheme = 3;
    public static final int SwitchCompat[] = {
        0x1010124, 0x1010125, 0x1010142, 0x7f010046, 0x7f010047, 0x7f010048, 0x7f010049, 0x7f01004a, 0x7f01004b, 0x7f01004c
    };
    public static final int SwitchCompat_android_textOff = 1;
    public static final int SwitchCompat_android_textOn = 0;
    public static final int SwitchCompat_android_thumb = 2;
    public static final int SwitchCompat_showText = 9;
    public static final int SwitchCompat_splitTrack = 8;
    public static final int SwitchCompat_switchMinWidth = 6;
    public static final int SwitchCompat_switchPadding = 7;
    public static final int SwitchCompat_switchTextAppearance = 5;
    public static final int SwitchCompat_thumbTextPadding = 4;
    public static final int SwitchCompat_track = 3;
    public static final int TextAppearance[] = {
        0x1010095, 0x1010096, 0x1010097, 0x1010098, 0x7f010024
    };
    public static final int TextAppearance_android_textColor = 3;
    public static final int TextAppearance_android_textSize = 0;
    public static final int TextAppearance_android_textStyle = 2;
    public static final int TextAppearance_android_typeface = 1;
    public static final int TextAppearance_textAllCaps = 4;
    public static final int Theme[] = {
        0x1010057, 0x10100ae, 0x7f01004d, 0x7f01004e, 0x7f01004f, 0x7f010050, 0x7f010051, 0x7f010052, 0x7f010053, 0x7f010054,
        0x7f010055, 0x7f010056, 0x7f010057, 0x7f010058, 0x7f010059, 0x7f01005a, 0x7f01005b, 0x7f01005c, 0x7f01005d, 0x7f01005e,
        0x7f01005f, 0x7f010060, 0x7f010061, 0x7f010062, 0x7f010063, 0x7f010064, 0x7f010065, 0x7f010066, 0x7f010067, 0x7f010068,
        0x7f010069, 0x7f01006a, 0x7f01006b, 0x7f01006c, 0x7f01006d, 0x7f01006e, 0x7f01006f, 0x7f010070, 0x7f010071, 0x7f010072,
        0x7f010073, 0x7f010074, 0x7f010075, 0x7f010076, 0x7f010077, 0x7f010078, 0x7f010079, 0x7f01007a, 0x7f01007b, 0x7f01007c,
        0x7f01007d, 0x7f01007e, 0x7f01007f, 0x7f010080, 0x7f010081, 0x7f010082, 0x7f010083, 0x7f010084, 0x7f010085, 0x7f010086,
        0x7f010087, 0x7f010088, 0x7f010089, 0x7f01008a, 0x7f01008b, 0x7f01008c, 0x7f01008d, 0x7f01008e, 0x7f01008f, 0x7f010090,
        0x7f010091, 0x7f010092, 0x7f010093, 0x7f010094, 0x7f010095, 0x7f010096, 0x7f010097, 0x7f010098, 0x7f010099, 0x7f01009a,
        0x7f01009b, 0x7f01009c, 0x7f01009d, 0x7f01009e, 0x7f01009f, 0x7f0100a0, 0x7f0100a1, 0x7f0100a2, 0x7f0100a3, 0x7f0100a4,
        0x7f0100a5, 0x7f0100a6, 0x7f0100a7, 0x7f0100a8, 0x7f0100a9, 0x7f0100aa, 0x7f0100ab, 0x7f0100ac, 0x7f0100ad, 0x7f0100ae,
        0x7f0100af, 0x7f0100b0, 0x7f0100b1, 0x7f0100b2, 0x7f0100b3, 0x7f0100b4, 0x7f0100b5, 0x7f0100b6
    };
    public static final int Theme_actionBarDivider = 23;
    public static final int Theme_actionBarItemBackground = 24;
    public static final int Theme_actionBarPopupTheme = 17;
    public static final int Theme_actionBarSize = 22;
    public static final int Theme_actionBarSplitStyle = 19;
    public static final int Theme_actionBarStyle = 18;
    public static final int Theme_actionBarTabBarStyle = 13;
    public static final int Theme_actionBarTabStyle = 12;
    public static final int Theme_actionBarTabTextStyle = 14;
    public static final int Theme_actionBarTheme = 20;
    public static final int Theme_actionBarWidgetTheme = 21;
    public static final int Theme_actionButtonStyle = 49;
    public static final int Theme_actionDropDownStyle = 45;
    public static final int Theme_actionMenuTextAppearance = 25;
    public static final int Theme_actionMenuTextColor = 26;
    public static final int Theme_actionModeBackground = 29;
    public static final int Theme_actionModeCloseButtonStyle = 28;
    public static final int Theme_actionModeCloseDrawable = 31;
    public static final int Theme_actionModeCopyDrawable = 33;
    public static final int Theme_actionModeCutDrawable = 32;
    public static final int Theme_actionModeFindDrawable = 37;
    public static final int Theme_actionModePasteDrawable = 34;
    public static final int Theme_actionModePopupWindowStyle = 39;
    public static final int Theme_actionModeSelectAllDrawable = 35;
    public static final int Theme_actionModeShareDrawable = 36;
    public static final int Theme_actionModeSplitBackground = 30;
    public static final int Theme_actionModeStyle = 27;
    public static final int Theme_actionModeWebSearchDrawable = 38;
    public static final int Theme_actionOverflowButtonStyle = 15;
    public static final int Theme_actionOverflowMenuStyle = 16;
    public static final int Theme_activityChooserViewStyle = 57;
    public static final int Theme_alertDialogButtonGroupStyle = 91;
    public static final int Theme_alertDialogCenterButtons = 92;
    public static final int Theme_alertDialogStyle = 90;
    public static final int Theme_alertDialogTheme = 93;
    public static final int Theme_android_windowAnimationStyle = 1;
    public static final int Theme_android_windowIsFloating = 0;
    public static final int Theme_autoCompleteTextViewStyle = 98;
    public static final int Theme_borderlessButtonStyle = 54;
    public static final int Theme_buttonBarButtonStyle = 51;
    public static final int Theme_buttonBarNegativeButtonStyle = 96;
    public static final int Theme_buttonBarNeutralButtonStyle = 97;
    public static final int Theme_buttonBarPositiveButtonStyle = 95;
    public static final int Theme_buttonBarStyle = 50;
    public static final int Theme_buttonStyle = 99;
    public static final int Theme_buttonStyleSmall = 100;
    public static final int Theme_checkboxStyle = 101;
    public static final int Theme_checkedTextViewStyle = 102;
    public static final int Theme_colorAccent = 83;
    public static final int Theme_colorButtonNormal = 87;
    public static final int Theme_colorControlActivated = 85;
    public static final int Theme_colorControlHighlight = 86;
    public static final int Theme_colorControlNormal = 84;
    public static final int Theme_colorPrimary = 81;
    public static final int Theme_colorPrimaryDark = 82;
    public static final int Theme_colorSwitchThumbNormal = 88;
    public static final int Theme_controlBackground = 89;
    public static final int Theme_dialogPreferredPadding = 43;
    public static final int Theme_dialogTheme = 42;
    public static final int Theme_dividerHorizontal = 56;
    public static final int Theme_dividerVertical = 55;
    public static final int Theme_dropDownListViewStyle = 73;
    public static final int Theme_dropdownListPreferredItemHeight = 46;
    public static final int Theme_editTextBackground = 63;
    public static final int Theme_editTextColor = 62;
    public static final int Theme_editTextStyle = 103;
    public static final int Theme_homeAsUpIndicator = 48;
    public static final int Theme_listChoiceBackgroundIndicator = 80;
    public static final int Theme_listDividerAlertDialog = 44;
    public static final int Theme_listPopupWindowStyle = 74;
    public static final int Theme_listPreferredItemHeight = 68;
    public static final int Theme_listPreferredItemHeightLarge = 70;
    public static final int Theme_listPreferredItemHeightSmall = 69;
    public static final int Theme_listPreferredItemPaddingLeft = 71;
    public static final int Theme_listPreferredItemPaddingRight = 72;
    public static final int Theme_panelBackground = 77;
    public static final int Theme_panelMenuListTheme = 79;
    public static final int Theme_panelMenuListWidth = 78;
    public static final int Theme_popupMenuStyle = 60;
    public static final int Theme_popupWindowStyle = 61;
    public static final int Theme_radioButtonStyle = 104;
    public static final int Theme_ratingBarStyle = 105;
    public static final int Theme_searchViewStyle = 67;
    public static final int Theme_selectableItemBackground = 52;
    public static final int Theme_selectableItemBackgroundBorderless = 53;
    public static final int Theme_spinnerDropDownItemStyle = 47;
    public static final int Theme_spinnerStyle = 106;
    public static final int Theme_switchStyle = 107;
    public static final int Theme_textAppearanceLargePopupMenu = 40;
    public static final int Theme_textAppearanceListItem = 75;
    public static final int Theme_textAppearanceListItemSmall = 76;
    public static final int Theme_textAppearanceSearchResultSubtitle = 65;
    public static final int Theme_textAppearanceSearchResultTitle = 64;
    public static final int Theme_textAppearanceSmallPopupMenu = 41;
    public static final int Theme_textColorAlertDialogListItem = 94;
    public static final int Theme_textColorSearchUrl = 66;
    public static final int Theme_toolbarNavigationButtonStyle = 59;
    public static final int Theme_toolbarStyle = 58;
    public static final int Theme_windowActionBar = 2;
    public static final int Theme_windowActionBarOverlay = 4;
    public static final int Theme_windowActionModeOverlay = 5;
    public static final int Theme_windowFixedHeightMajor = 9;
    public static final int Theme_windowFixedHeightMinor = 7;
    public static final int Theme_windowFixedWidthMajor = 6;
    public static final int Theme_windowFixedWidthMinor = 8;
    public static final int Theme_windowMinWidthMajor = 10;
    public static final int Theme_windowMinWidthMinor = 11;
    public static final int Theme_windowNoTitle = 3;
    public static final int Toolbar[] = {
        0x10100af, 0x1010140, 0x7f010003, 0x7f010006, 0x7f01000a, 0x7f010016, 0x7f010017, 0x7f010018, 0x7f010019, 0x7f01001b,
        0x7f0100b7, 0x7f0100b8, 0x7f0100b9, 0x7f0100ba, 0x7f0100bb, 0x7f0100bc, 0x7f0100bd, 0x7f0100be, 0x7f0100bf, 0x7f0100c0,
        0x7f0100c1, 0x7f0100c2, 0x7f0100c3, 0x7f0100c4, 0x7f0100c5
    };
    public static final int Toolbar_android_gravity = 0;
    public static final int Toolbar_android_minHeight = 1;
    public static final int Toolbar_collapseContentDescription = 19;
    public static final int Toolbar_collapseIcon = 18;
    public static final int Toolbar_contentInsetEnd = 6;
    public static final int Toolbar_contentInsetLeft = 7;
    public static final int Toolbar_contentInsetRight = 8;
    public static final int Toolbar_contentInsetStart = 5;
    public static final int Toolbar_logo = 4;
    public static final int Toolbar_logoDescription = 22;
    public static final int Toolbar_maxButtonHeight = 17;
    public static final int Toolbar_navigationContentDescription = 21;
    public static final int Toolbar_navigationIcon = 20;
    public static final int Toolbar_popupTheme = 9;
    public static final int Toolbar_subtitle = 3;
    public static final int Toolbar_subtitleTextAppearance = 11;
    public static final int Toolbar_subtitleTextColor = 24;
    public static final int Toolbar_title = 2;
    public static final int Toolbar_titleMarginBottom = 16;
    public static final int Toolbar_titleMarginEnd = 14;
    public static final int Toolbar_titleMarginStart = 13;
    public static final int Toolbar_titleMarginTop = 15;
    public static final int Toolbar_titleMargins = 12;
    public static final int Toolbar_titleTextAppearance = 10;
    public static final int Toolbar_titleTextColor = 23;
    public static final int View[] = {
        0x1010000, 0x10100da, 0x7f0100c6, 0x7f0100c7, 0x7f0100c8
    };
    public static final int ViewBackgroundHelper[] = {
        0x10100d4, 0x7f0100c9, 0x7f0100ca
    };
    public static final int ViewBackgroundHelper_android_background = 0;
    public static final int ViewBackgroundHelper_backgroundTint = 1;
    public static final int ViewBackgroundHelper_backgroundTintMode = 2;
    public static final int ViewStubCompat[] = {
        0x10100d0, 0x10100f2, 0x10100f3
    };
    public static final int ViewStubCompat_android_id = 0;
    public static final int ViewStubCompat_android_inflatedId = 2;
    public static final int ViewStubCompat_android_layout = 1;
    public static final int View_android_focusable = 1;
    public static final int View_android_theme = 0;
    public static final int View_paddingEnd = 3;
    public static final int View_paddingStart = 2;
    public static final int View_theme = 4;

    public ()
    {
    }
}


text:
title: <%= hoc_s(:title_how_to_events) %>
layout: wide
nav: how_to_nav

---

# Como organizar um evento da Hora do Código

Sedie um evento da Hora do Código durante a Semana da Educação em Ciência da Computação (<%= campaign_date('short') %>) para celebrar a ciência da computação e incentivar mais alunos a conhecê-la. Qualquer um, em qualquer lugar, pode organizar um evento da Hora do Código.

## 1) Prepare-se para seu evento

  * Defina um local, data e hora
  * Envie [uma carta](https://docs.google.com/a/code.org/document/d/1eP41sKW7y0qq_JvkRIgZK8dWYICaGRZ4CCDETXa78wY/edit) para convidar o prefeito de sua cidade, um deputado, governador ou um empresário influente para falar no evento.
  * Convide a imprensa, isto é, a rádio ou TV local, jornal, blogueiro, etc. Consulte nosso [kit para a imprensa](<%= resolve_url('/promote/press-kit') %>) para ter mais informações.

## 2) Durante seu evento

  * Comece seu evento com um de nossos [vídeos inspiradores](<%= resolve_url('/promote/resources#videos') %>).
  * Faça uma introdução falando sobre a importância da ciência da computação, usando estes [infográficos e estatísticas](<%= resolve_url('/promote/stats') %>).

  * Outras ideias para o evento:
      * Convide um líder do setor da sua região para discutir seu trabalho envolvendo a ciência da computação
      * Convide um político local e peça para que os estudantes o ensinem a programar
      * Peça para um grupo de estudantes demonstrar uma atividade offline
      * Peça para um grupo de estudantes ensinar o diretor ou um grupo de professores da escola a programar
      * Se a sua escola já oferece aulas de ciência da computação, organize uma demonstração de projetos

## 3) Compartilhe como foi o evento

  * Compartilhe fotos do seu evento no Facebook e Twitter.
  * Use a hashtag **#HoradoCodigo**

## Exemplo de Plano de Evento

**Evento:** abertura da Semana da Educação em Ciência da Computação para toda a escola

**Data:** 7 de dezembro (início da Semana da Educação em Ciência da Computação)

**Hora:** Durante o horário escolar. Preferência para o meio da manhã. Aproximadamente 1 hora de duração.

**Local:** Espaço de eventos da escola (ex., teatro, ginásio, cafeteria)

## Programação do evento

| Hora          | Ação                                                                                |
| ------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 10h00 - 10h05 | Comece com um de nossos [vídeos inspiradores](<%= resolve_url('/promote/resources#videos') %>)                                                                   |
| 10h05 - 10h15 | Faça uma introdução falando sobre a importância da ciência da computação. Use estes [infográficos e estatísticas](<%= resolve_url('/promote/stats') %>)        |
| 10h15 - 10h30 | Um convidado especial falará sobre sua experiência e sobre como a tecnologia e a ciência da computação desempenham um importante papel em sua vida cotidiana.  |
| 10h30 - 10h40 | Os alunos farão uma demonstração da Hora do Código para a escola. Inversão de papéis: eles deverão ensinar o diretor, representante político ou outros alunos. |
| 10h40 - 11h00 | Os alunos farão a demonstração de uma atividade offline para mostrar como a ciência da computação pode ser ensinada sem o uso de computadores.                 |
| 11h00 - 11h05 | O professor que ajudou a trazer o evento para a escola fará os comentários finais.                                                                             |


text:
using Newtonsoft.Json;
using WalletWasabi.Helpers;

namespace WalletWasabi.Crypto.ZeroKnowledge
{
	public class Proof
	{
		[JsonConstructor]
		internal Proof(GroupElementVector publicNonces, ScalarVector responses)
		{
			Guard.NotNullOrInfinity(nameof(publicNonces), publicNonces);
			Guard.NotNullOrEmpty(nameof(responses), responses);

			PublicNonces = publicNonces;
			Responses = responses;
		}

		public GroupElementVector PublicNonces { get; }
		public ScalarVector Responses { get; }
	}
}


text:
double
attribute_hidden
asinhl (double x)
{
  return asinh (x);
}


text:
package hr.fer.zemris.jcms.model.forum;

import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;
import javax.persistence.Version;

/**
 * Apstraktni razred kojeg nasljeđuju svi entiteti foruma.
 *
 * @author Hrvoje Ban
 */
@MappedSuperclass
public abstract class AbstractEntity {

	protected Long id;
	protected int version;

	/**
	 * @return Jedinstveni indentifikacijki broj entiteta.
	 */
	@Id @GeneratedValue
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	/**
	 * @return Verzija entiteta. Koristi se kod optimističnog zaključavanja.
	 */
	@Version
	public int getVersion() {
		return version;
	}

	public void setVersion(int version) {
		this.version = version;
	}

	/**
	 * @return Hash kod entiteta.
	 * @throws IllegalStateException Ako entitet nije spremljen u bazi podataka.
	 */
	@Override
	public int hashCode() {
		return (id == null) ? 0 : id.hashCode();
	}

	/**
	 * @return Jeli predani object jednak ovomu.
	 * @throws IllegalStateException Ako i predani i ovaj entitet nisu spremljeni
	 * 	u bazi podataka.
	 */
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		AbstractEntity other = (AbstractEntity) obj;
		if (id == null) {
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		return true;
	}

}


text:
import logging

from freezegun import freeze_time

from dark_keeper import MongoHandler, LOG_FORMAT, DATE_TIME_FORMAT
from dark_keeper.mongo import get_mongo_collection
from tests.fixtures import mongo_uri_raw

class TestHandlers:
    @classmethod
    def setup_class(cls):
        cls.mongo_coll = get_mongo_collection(mongo_uri_raw())

    def setup_method(self, method):
        config_kwargs = dict(
            format=LOG_FORMAT,
            datefmt=DATE_TIME_FORMAT,
            level=logging.INFO,
            handlers=[
                logging.StreamHandler(),
                MongoHandler(mongo_uri=mongo_uri_raw())
            ],
        )
        logging.basicConfig(**config_kwargs)

    def teardown_method(self, method):
        if self.mongo_coll.count_documents(filter={}):
            self.mongo_coll.drop()

    @freeze_time('2020-06-07 01:01:01')
    def test_mongo_handler(self, mongo_uri, caplog):
        caplog.set_level(logging.INFO)

        log_count = self.mongo_coll.count_documents(filter={})
        assert log_count == 0

        logger = logging.getLogger(__name__)
        logger.handlers = [MongoHandler(mongo_uri=mongo_uri)]
        logger.info('Test message 1')

        log_count = self.mongo_coll.count_documents(filter={})
        assert log_count == 1

        mongo_log = self.mongo_coll.find_one()
        mongo_log.pop('_id')
        assert mongo_log == {
            'level': 'INFO',
            'message': '2020-06-07 01:01:01 Test message 1',
            'created': '2020-06-07 01:01:01'
        }

    def test_mongo_handler_two_calls(self, mongo_uri, caplog):
        caplog.set_level(logging.INFO)

        log_count = self.mongo_coll.count_documents(filter={})
        assert log_count == 0

        logger = logging.getLogger(__name__)
        logger.handlers = [MongoHandler(mongo_uri=mongo_uri)]
        with freeze_time('2020-06-07 01:01:01'):
            logger.info('Test message 1')
        with freeze_time('2020-06-07 02:02:02'):
            logger.info('Test message 2')

        log_count = self.mongo_coll.count_documents(filter={})
        assert log_count == 2

        mongo_logs = list(self.mongo_coll.find())
        mongo_logs[0].pop('_id')
        mongo_logs[1].pop('_id')
        assert mongo_logs == [{
            'level': 'INFO',
            'message': '2020-06-07 01:01:01 Test message 1',
            'created': '2020-06-07 01:01:01'
        }, {
            'level': 'INFO',
            'message': '2020-06-07 02:02:02 Test message 2',
            'created': '2020-06-07 02:02:02'
        }]

    @freeze_time('2020-06-07 01:01:01')
    def test_mongo_handler_clear_logs(self, mongo_uri, caplog):
        caplog.set_level(logging.INFO)

        log_count = self.mongo_coll.count_documents(filter={})
        assert log_count == 0

        logger = logging.getLogger(__name__)
        logger.handlers = [MongoHandler(mongo_uri=mongo_uri)]
        logger.info('Test message 1')

        log_count = self.mongo_coll.count_documents(filter={})
        assert log_count == 1

        mongo_log = self.mongo_coll.find_one()
        mongo_log.pop('_id')
        assert mongo_log == {
            'level': 'INFO',
            'message': '2020-06-07 01:01:01 Test message 1',
            'created': '2020-06-07 01:01:01'
        }

        logger.handlers = [MongoHandler(mongo_uri=mongo_uri)]
        log_count = self.mongo_coll.count_documents(filter={})
        assert log_count == 0


text:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/container"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical"
    android:padding="16dp">

    <TextView
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:text="1st example shows MVP used in Activity and DialogFragment"/>

    <Button
        android:id="@+id/btn_1"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:text="Show example 1"/>

    <TextView
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:text="2nd example shows MVP used in Activity and Fragment"/>

    <Button
        android:id="@+id/btn_2"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:text="Show example 2"/>

    <TextView
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:text="3rd example shows MVP used in Activity and View"/>

    <Button
        android:id="@+id/btn_3"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:text="Show example 3"/>
</LinearLayout>


text:
<!DOCTYPE html>

  <meta charset="utf-8"  />
  <meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1,shrink-to-fit=no"  />
  <title>MagickCore, C API: Read or Write Binary Large OBjects @ ImageMagick</title>
  <meta name="application-name" content="ImageMagick" />
  <meta name="description" content="Use ImageMagick® to create, edit, compose, or convert bitmap images. You can resize your image, crop it, change its shades and colors, add captions, among other operations." />
  <meta name="application-url" content="https://imagemagick.org" />
  <meta name="generator" content="PHP" />
  <meta name="keywords" content="magickcore, c, api:, read, or, write, binary, large, objects, ImageMagick, PerlMagick, image processing, image, photo, software, Magick++, OpenMP, convert" />
  <meta name="rating" content="GENERAL" />
  <meta name="robots" content="INDEX, FOLLOW" />
  <meta name="generator" content="ImageMagick Studio LLC" />
  <meta name="author" content="ImageMagick Studio LLC" />
  <meta name="revisit-after" content="2 DAYS" />
  <meta name="resource-type" content="document" />
  <meta name="copyright" content="Copyright (c) 1999-2017 ImageMagick Studio LLC" />
  <meta name="distribution" content="Global" />
  <meta name="magick-serial" content="P131-S030410-R485315270133-P82224-A6668-G1245-1" />
  <meta name="google-site-verification" content="_bMOCDpkx9ZAzBwb2kF3PRHbfUUdFj2uO8Jd1AXArz4" />
  <link href="blob.html" rel="canonical" />
  <link href="../../images/wand.png" rel="icon" />
  <link href="../../images/wand.ico" rel="shortcut icon" />
  <link href="assets/magick.css" rel="stylesheet" />

    <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarsMagick" aria-controls="navbarsMagick" aria-expanded="false" aria-label="Toggle navigation">

    </button>

        Home (current)

        Download

        Tools

        Command-line

        Resources

        Develop

        Community

    <form class="form-inline my-2 my-lg-0" action="../https://imagemagick.org/script/search.php">
      <input class="form-control mr-sm-2" type="text" name="q" placeholder="Search" aria-label="Search">
      <button class="btn btn-outline-success my-2 my-sm-0" type="submit" name="sa">Search</button>
    </form>

BlobToImage • CustomStreamToImage • FileToBlob • FileToImage • GetBlobProperties • ImageToBlob • ImageToFile • ImagesToBlob • InjectImageBlob • IsBlobExempt • IsBlobSeekable • IsBlobTemporary

BlobToImage

BlobToImage() implements direct to memory image formats.  It returns the blob as an image.

The format of the BlobToImage method is:

Image *BlobToImage(const ImageInfo *image_info,const void *blob,
  const size_t length,ExceptionInfo *exception)

A description of each parameter follows:

image_info

the image info.

blob

the address of a character stream in one of the image formats understood by ImageMagick.

length

This size_t integer reflects the length in bytes of the blob.

exception

return any errors or warnings in this structure.

CustomStreamToImage

CustomStreamToImage() is the equivalent of ReadImage(), but reads the formatted "file" from the suplied method rather than to an actual file.

The format of the CustomStreamToImage method is:

Image *CustomStreamToImage(const ImageInfo *image_info,
   ExceptionInfo *exception)

A description of each parameter follows:

image_info

the image info.

exception

return any errors or warnings in this structure.

FileToBlob

FileToBlob() returns the contents of a file as a buffer terminated with the '\0' character.  The length of the buffer (not including the extra terminating '\0' character) is returned via the 'length' parameter.  Free the buffer with RelinquishMagickMemory().

The format of the FileToBlob method is:

void *FileToBlob(const char *filename,const size_t extent,
  size_t *length,ExceptionInfo *exception)

A description of each parameter follows:

blob

 FileToBlob() returns the contents of a file as a blob.  If an error occurs NULL is returned.

filename

the filename.

extent

 The maximum length of the blob.

length

On return, this reflects the actual length of the blob.

exception

return any errors or warnings in this structure.

FileToImage

FileToImage() write the contents of a file to an image.

The format of the FileToImage method is:

MagickBooleanType FileToImage(Image *,const char *filename)

A description of each parameter follows:

image

the image.

filename

the filename.

GetBlobProperties

GetBlobProperties() returns information about an image blob.

The format of the GetBlobProperties method is:

const struct stat *GetBlobProperties(const Image *image)

A description of each parameter follows:

image

the image.

ImageToBlob

ImageToBlob() implements direct to memory image formats.  It returns the image as a formatted blob and its length.  The magick member of the Image structure determines the format of the returned blob (GIF, JPEG, PNG, etc.).  This method is the equivalent of WriteImage(), but writes the formatted "file" to a memory buffer rather than to an actual file.

The format of the ImageToBlob method is:

void *ImageToBlob(const ImageInfo *image_info,Image *image,
  size_t *length,ExceptionInfo *exception)

A description of each parameter follows:

image_info

the image info.

image

the image.

length

return the actual length of the blob.

exception

return any errors or warnings in this structure.

ImageToFile

ImageToFile() writes an image to a file.  It returns MagickFalse if an error occurs otherwise MagickTrue.

The format of the ImageToFile method is:

 MagickBooleanType ImageToFile(Image *image,char *filename,
   ExceptionInfo *exception)

A description of each parameter follows:

image

the image.

filename

Write the image to this file.

exception

return any errors or warnings in this structure.

ImagesToBlob

ImagesToBlob() implements direct to memory image formats.  It returns the image sequence as a blob and its length.  The magick member of the ImageInfo structure determines the format of the returned blob (GIF, JPEG,  PNG, etc.)

Note, some image formats do not permit multiple images to the same image stream (e.g. JPEG).  in this instance, just the first image of the sequence is returned as a blob.

The format of the ImagesToBlob method is:

void *ImagesToBlob(const ImageInfo *image_info,Image *images,
  size_t *length,ExceptionInfo *exception)

A description of each parameter follows:

image_info

the image info.

images

the image list.

length

return the actual length of the blob.

exception

return any errors or warnings in this structure.

InjectImageBlob

InjectImageBlob() injects the image with a copy of itself in the specified format (e.g. inject JPEG into a PDF image).

The format of the InjectImageBlob method is:

MagickBooleanType InjectImageBlob(const ImageInfo *image_info,
  Image *image,Image *inject_image,const char *format,
  ExceptionInfo *exception)

A description of each parameter follows:

image_info

the image info..

image

the image.

inject_image

inject into the image stream.

format

the image format.

exception

return any errors or warnings in this structure.

IsBlobExempt

IsBlobExempt() returns true if the blob is exempt.

The format of the IsBlobExempt method is:

 MagickBooleanType IsBlobExempt(const Image *image)

A description of each parameter follows:

image

the image.

IsBlobSeekable

IsBlobSeekable() returns true if the blob is seekable.

The format of the IsBlobSeekable method is:

 MagickBooleanType IsBlobSeekable(const Image *image)

A description of each parameter follows:

image

the image.

IsBlobTemporary

IsBlobTemporary() returns true if the blob is temporary.

The format of the IsBlobTemporary method is:

 MagickBooleanType IsBlobTemporary(const Image *image)

A description of each parameter follows:

image

the image.

Security •
    Architecture •
    Related •
     Sitemap

    Public Key •
    Donate •
    Contact Us

    © 1999-2019 ImageMagick Studio LLC


text:
using System;
using System.ComponentModel;
using XsdInventoryFormatObject;

namespace PKStudio.ItemWrappers
{
    [DefaultProperty("Flag"), Serializable]
    public class ToolFlagWrapper : BaseTypedWrapper<ToolFlag>, IConditional
    {
        private ToolFlagWrapper(ToolFlag flag)
            : base(flag)
        {
        }

        [Category("General")]
        public string Conditional
        {
            get
            {
                return this.InnerObject.Conditional;
            }
            set
            {
                this.InnerObject.Conditional = value;
            }
        }

        [Category("General")]
        public string Flag
        {
            get
            {
                return this.InnerObject.Flag;
            }
            set
            {
                this.InnerObject.Flag = value;
            }
        }
    }
}


text:
package org.actio.engine.interfaces.converter;

import static org.junit.Assert.assertTrue;

import java.util.Map;

import org.activiti.bpmn.converter.BaseBpmnXMLConverter;
import org.activiti.bpmn.model.BaseElement;
import org.junit.Test;
import org.springframework.test.util.ReflectionTestUtils;

public class DefaultBpmnXMLConverterTest {

    private DefaultBpmnXMLConverter testObj = new DefaultBpmnXMLConverter();

    @SuppressWarnings({ "unchecked" })
    @Test
    public void test_contains_actio_SendTaskXmlConverter() {
        Map<String, BaseBpmnXMLConverter> convertersToBpmnMap = (Map<String, BaseBpmnXMLConverter>) ReflectionTestUtils.getField(testObj,
                "convertersToBpmnMap");

        Map<Class<? extends BaseElement>, BaseBpmnXMLConverter> convertersToXMLMap = (Map<Class<? extends BaseElement>, BaseBpmnXMLConverter>) ReflectionTestUtils
                .getField(testObj, "convertersToXMLMap");
        SendTaskXmlConverter converter = new SendTaskXmlConverter();
        // assert
        assertTrue(convertersToBpmnMap.containsKey("sendTask"));
        assertTrue(convertersToXMLMap.containsKey(converter.getBpmnElementType()));
    }

}


text:
import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output, ViewChild } from '@angular/core';
import { NgForm } from '@angular/forms';
import { ApiRequestStatus } from '../../../../../framework/client/rpc';
import { CreateDeveloperAccountPayload } from '../../../interfaces';

@Component({
  selector: 'rcc-create-developer-account-form',
  changeDetection: ChangeDetectionStrategy.OnPush,
  templateUrl: 'create-developer-account-form.component.html',
})
export class CreateDeveloperAccountFormComponent {
  @ViewChild('form', { static: false }) form: NgForm;
  @Input() status: ApiRequestStatus;
  @Output() create = new EventEmitter<CreateDeveloperAccountPayload>();
  developerAccount: CreateDeveloperAccountPayload = {
    account_email: '',
    account_password: null,
    google_credentials_json: null,
    name: '',
    type: 'ios',
  };

  isIos() {
    return this.developerAccount.type === 'ios';
  }

  submit() {
    if (this.form.form.valid) {
      this.create.emit({ ...this.developerAccount });
    }
  }
}


text:
package com.marcaoas.hoppy.presentation;

import com.marcaoas.hoppy.presentation.main.MainActivity;

/**
 * Created by marco on 26/04/17.
 */

public class Navigator {

    public void toLogin(){

    }

    public void toMain(){

    }

    public void toBrewSteps(MainActivity mainActivity) {
        mainActivity.goToBrewSteps();
    }

    public void toMyRecipes(MainActivity mainActivity) {
        mainActivity.goToRecipes();
    }

    public void toInventory(MainActivity mainActivity) {
        mainActivity.goToInventory();
    }

    public void toBrewingTools(MainActivity mainActivity) {
        mainActivity.goToBrewingTools();
    }

    public void toShoppingList(MainActivity mainActivity) {
        mainActivity.goToShoppingList();
    }

    public void toSettings(MainActivity mainActivity) {
        mainActivity.goToSettings();
    }

}


text:
package com.mikephil.charting.components;

import android.content.Context;
import android.graphics.Canvas;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.RelativeLayout;

import com.mikephil.charting.data.Entry;
import com.mikephil.charting.highlight.Highlight;

/**
 * View that can be displayed when selecting values in the chart. Extend this class to provide custom layouts for your
 * markers.
 *
 * @author Philipp Jahoda
 */
public abstract class MarkerView extends RelativeLayout {

    /**
     * Constructor. Sets up the MarkerView with a custom layout resource.
     *
     * @param context
     * @param layoutResource the layout resource to use for the MarkerView
     */
    public MarkerView(Context context, int layoutResource) {
        super(context);
        setupLayoutResource(layoutResource);
    }

    /**
     * Sets the layout resource for a custom MarkerView.
     *
     * @param layoutResource
     */
    private void setupLayoutResource(int layoutResource) {

        View inflated = LayoutInflater.from(getContext()).inflate(layoutResource, this);

        inflated.setLayoutParams(new LayoutParams(RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT));
        inflated.measure(MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED), MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED));

        // measure(getWidth(), getHeight());
        inflated.layout(0, 0, inflated.getMeasuredWidth(), inflated.getMeasuredHeight());
    }

    /**
     * Draws the MarkerView on the given position on the screen with the given Canvas object.
     *
     * @param canvas
     * @param posx
     * @param posy
     */
    public void draw(Canvas canvas, float posx, float posy) {

        // take offsets into consideration
        posx += getXOffset(posx);
        posy += getYOffset(posy);

        // translate to the correct position and draw
        canvas.translate(posx, posy);
        draw(canvas);
        canvas.translate(-posx, -posy);
    }

    /**
     * This method enables a specified custom MarkerView to update it's content everytime the MarkerView is redrawn.
     *
     * @param e         The Entry the MarkerView belongs to. This can also be any subclass of Entry, like BarEntry or
     *                  CandleEntry, simply cast it at runtime.
     * @param highlight the highlight object contains information about the highlighted value such as it's dataset-index, the
     *                  selected range or stack-index (only stacked bar entries).
     */
    public abstract void refreshContent(Entry e, Highlight highlight);

    /**
     * Use this to return the desired offset you wish the MarkerView to have on the x-axis. By returning -(getWidth() /
     * 2) you will center the MarkerView horizontally.
     *
     * @param xpos the position on the x-axis in pixels where the marker is drawn
     * @return
     */
    public abstract int getXOffset(float xpos);

    /**
     * Use this to return the desired position offset you wish the MarkerView to have on the y-axis. By returning
     * -getHeight() you will cause the MarkerView to be above the selected value.
     *
     * @param ypos the position on the y-axis in pixels where the marker is drawn
     * @return
     */
    public abstract int getYOffset(float ypos);
}


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

    <!-- Default Notification Settings -->
	<PreferenceCategory
    	android:title="@string/pref_notifications_title"
    	android:key="pref_key_alarmnotifications_settings" >

	    <RingtonePreference
	        android:key="pref_ringtone"
	        android:title="@string/pref_ringtone"
	        android:ringtoneType="alarm"
	        android:showDefault="true" />

	    <CheckBoxPreference
	       	android:key="pref_vibrate"
	       	android:title="@string/pref_vibrate"
	       	android:defaultValue="true" />

	    <EditTextPreference
	        android:dependency="pref_vibrate"
	        android:key="pref_vibratepattern"
	        android:title="@string/pref_vibratepattern"
	        android:summary="@string/pref_vibratepattern_default"
	        android:inputType="phone"
	        android:dialogTitle="@string/pref_vibratepattern"
	        android:dialogMessage="Pattern format (in milliseconds): off on etc."
	        android:defaultValue="@string/pref_vibratepattern_default" />

    </PreferenceCategory>

    <PreferenceCategory
        android:title="@string/pref_functionality_title"
        android:key="pref_key_functionality_settings" >

    	<ListPreference
    	    android:key="pref_snooze"
    	    android:title="@string/pref_snooze"
    	    android:entries="@array/pref_snooze_entries"
    	    android:entryValues="@array/pref_snooze_values"
    	    android:defaultValue="@string/pref_snooze_default_value" />

    	<ListPreference
    	    android:key="pref_timeoutdelay"
    	    android:title="@string/pref_timeoutdelay"
    	    android:entries="@array/pref_timeoutdelay_entries"
    	    android:entryValues="@array/pref_timeoutdelay_values"
    	    android:defaultValue="@string/pref_timeoutdelay_default_value" />

    </PreferenceCategory>

</PreferenceScreen>


text:
<?php

namespace Xloit\Std\Interop\Action;

/**
 * A {@link TransformReverserInterface} interface.
 *
 * @package Xloit\Std\Interop\Action
 */
interface TransformReverserInterface
{
    /**
     * Transforms the given value into a default instance.
     *
     * @param mixed $value
     *
     * @return mixed
     */
    public function reverseTransform($value);
}


text:
namespace Ui {
class DBCComparatorWindow;
}

class DBCComparatorWindow : public QDialog
{
    Q_OBJECT

public:
    explicit DBCComparatorWindow(QWidget *parent = 0);
    ~DBCComparatorWindow();

private slots:
    void loadFirstFile();
    void loadSecondFile();
    void saveDetails();

private:
    Ui::DBCComparatorWindow *ui;
    DBCFile *firstDBC;
    DBCFile *secondDBC;
    QString firstDBCFilename;
    QString secondDBCFilename;

    void calculateDetails();
    void showEvent(QShowEvent *);
    void closeEvent(QCloseEvent *event);
    bool eventFilter(QObject *obj, QEvent *event);
    QString loadDBC(DBCFile **file);
    void readSettings();
    void writeSettings();
};

#endif //DBCCOMPARATORWINDOW_H