text:
Title: Syntax Colors
Slug: themes
status: hidden

Here is a gallery of syntax color themes. These themes can be modified via the
config file (~/.config/pgcli/config).

# default

Click the image to toggle dark/light background.

# manni

Click the image to toggle dark/light background.

# igor

Click the image to toggle dark/light background.

# xcode

Click the image to toggle dark/light background.

# vim

Click the image to toggle dark/light background.

# autumn

Click the image to toggle dark/light background.

# vs

Click the image to toggle dark/light background.

# rrt

Click the image to toggle dark/light background.

# native

Click the image to toggle dark/light background.

# perldoc

Click the image to toggle dark/light background.

# borland

Click the image to toggle dark/light background.

# tango

Click the image to toggle dark/light background.

# emacs

Click the image to toggle dark/light background.

# friendly

Click the image to toggle dark/light background.

# monokai

Click the image to toggle dark/light background.

# paraiso-dark

Click the image to toggle dark/light background.

# paraiso-light

Click the image to toggle dark/light background.

# colorful

Click the image to toggle dark/light background.

# murphy

Click the image to toggle dark/light background.

# bw

Click the image to toggle dark/light background.

# pastie

Click the image to toggle dark/light background.

# trac

Click the image to toggle dark/light background.

# fruity

Click the image to toggle dark/light background.


text:
import os

from setuptools import setup, find_packages

def read(filename):
    return open(os.path.join(os.path.dirname(__file__), filename)).read()

setup(
    name="pymongres",
    version="0.1.0",
    description="",
    long_description=read('README.rst'),
    author='Ronan Amicel',
    author_email='ronan.amicel@gmail.com',
    url='https://github.com/ronnix/pymongres',
    license="Apache License, Version 2.0",
    install_requires=[
        "psycopg2",
        "six",
    ],
    setup_requires=[],
    tests_require=[],
    packages=find_packages(exclude=['ez_setup', 'tests']),
    include_package_data=True,
    zip_safe=False,
    classifiers=[
        'Development Status :: 3 - Alpha',
        'Environment :: Console',
        'Intended Audience :: Developers',
        'Intended Audience :: Information Technology',
        'Intended Audience :: System Administrators',
        'License :: OSI Approved :: BSD License',
        'Operating System :: MacOS :: MacOS X',
        'Operating System :: Unix',
        'Operating System :: POSIX',
        'Programming Language :: Python',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3.3',
        'Topic :: Database',
        'Topic :: Software Development',
        'Topic :: Software Development :: Libraries',
        'Topic :: Software Development :: Libraries :: Python Modules',
    ],
)

redpajama_set_name: RedPajamaGithub


text:
<?php
/**
 * WPSEO plugin file.
 *
 * @package WPSEO\XML_Sitemaps
 */

/**
 * Handles sitemaps caching and invalidation.
 *
 * @since 3.2
 */
class WPSEO_Sitemaps_Cache {

	/**
	 * Holds the options that, when updated, should cause the cache to clear.
	 *
	 * @var array
	 */
	protected static $cache_clear = array();

	/**
	 * Mirror of enabled status for static calls.
	 *
	 * @var bool
	 */
	protected static $is_enabled = false;

	/**
	 * Holds the flag to clear all cache.
	 *
	 * @var bool
	 */
	protected static $clear_all = false;

	/**
	 * Holds the array of types to clear.
	 *
	 * @var array
	 */
	protected static $clear_types = array();

	/**
	 * Hook methods for invalidation on necessary events.
	 */
	public function __construct() {

		add_action( 'init', array( $this, 'init' ) );

		add_action( 'deleted_term_relationships', array( __CLASS__, 'invalidate' ) );

		add_action( 'update_option', array( __CLASS__, 'clear_on_option_update' ) );

		add_action( 'edited_terms', array( __CLASS__, 'invalidate_helper' ), 10, 2 );
		add_action( 'clean_term_cache', array( __CLASS__, 'invalidate_helper' ), 10, 2 );
		add_action( 'clean_object_term_cache', array( __CLASS__, 'invalidate_helper' ), 10, 2 );

		add_action( 'user_register', array( __CLASS__, 'invalidate_author' ) );
		add_action( 'delete_user', array( __CLASS__, 'invalidate_author' ) );

		add_action( 'shutdown', array( __CLASS__, 'clear_queued' ) );
	}

	/**
	 * Setup context for static calls.
	 */
	public function init() {

		self::$is_enabled = $this->is_enabled();
	}

	/**
	 * If cache is enabled.
	 *
	 * @since 3.2
	 *
	 * @return boolean
	 */
	public function is_enabled() {

		/**
		 * Filter if XML sitemap transient cache is enabled.
		 *
		 * @param bool $unsigned Enable cache or not, defaults to true
		 */
		return apply_filters( 'wpseo_enable_xml_sitemap_transient_caching', false );
	}

	/**
	 * Retrieve the sitemap page from cache.
	 *
	 * @since 3.2
	 *
	 * @param string $type Sitemap type.
	 * @param int    $page Page number to retrieve.
	 *
	 * @return string|boolean
	 */
	public function get_sitemap( $type, $page ) {

		$transient_key = WPSEO_Sitemaps_Cache_Validator::get_storage_key( $type, $page );
		if ( false === $transient_key ) {
			return false;
		}

		return get_transient( $transient_key );
	}

	/**
	 * Get the sitemap that is cached
	 *
	 * @param string $type Sitemap type.
	 * @param int    $page Page number to retrieve.
	 *
	 * @return null|WPSEO_Sitemap_Cache_Data Null on no cache found otherwise object containing sitemap and meta data.
	 */
	public function get_sitemap_data( $type, $page ) {

		$sitemap = $this->get_sitemap( $type, $page );

		if ( empty( $sitemap ) ) {
			return null;
		}

		// Unserialize Cache Data object (is_serialized doesn't recognize classes).
		if ( is_string( $sitemap ) && 0 === strpos( $sitemap, 'C:24:"WPSEO_Sitemap_Cache_Data"' ) ) {

			$sitemap = unserialize( $sitemap );
		}

		// What we expect it to be if it is set.
		if ( $sitemap instanceof WPSEO_Sitemap_Cache_Data_Interface ) {
			return $sitemap;
		}

		return null;
	}

	/**
	 * Store the sitemap page from cache.
	 *
	 * @since 3.2
	 *
	 * @param string $type    Sitemap type.
	 * @param int    $page    Page number to store.
	 * @param string $sitemap Sitemap body to store.
	 * @param bool   $usable  Is this a valid sitemap or a cache of an invalid sitemap.
	 *
	 * @return bool
	 */
	public function store_sitemap( $type, $page, $sitemap, $usable = true ) {

		$transient_key = WPSEO_Sitemaps_Cache_Validator::get_storage_key( $type, $page );

		if ( false === $transient_key ) {
			return false;
		}

		$status = ( $usable ) ? WPSEO_Sitemap_Cache_Data::OK : WPSEO_Sitemap_Cache_Data::ERROR;

		$sitemap_data = new WPSEO_Sitemap_Cache_Data();
		$sitemap_data->set_sitemap( $sitemap );
		$sitemap_data->set_status( $status );

		return set_transient( $transient_key, $sitemap_data, DAY_IN_SECONDS );
	}

	/**
	 * Delete cache transients for index and specific type.
	 *
	 * Always deletes the main index sitemaps cache, as that's always invalidated by any other change.
	 *
	 * @since 1.5.4
	 * @since 3.2   Changed from function wpseo_invalidate_sitemap_cache() to method in this class.
	 *
	 * @param string $type Sitemap type to invalidate.
	 *
	 * @return void
	 */
	public static function invalidate( $type ) {

		self::clear( array( $type ) );
	}

	/**
	 * Helper to invalidate in hooks where type is passed as second argument.
	 *
	 * @since 3.2
	 *
	 * @param int    $unused Unused term ID value.
	 * @param string $type   Taxonomy to invalidate.
	 *
	 * @return void
	 */
	public static function invalidate_helper( $unused, $type ) {

		if (
			WPSEO_Options::get( 'noindex-' . $type ) === false ||
			WPSEO_Options::get( 'noindex-tax-' . $type ) === false
		) {
			self::invalidate( $type );
		}
	}

	/**
	 * Invalidate sitemap cache for authors.
	 *
	 * @param int $user_id User ID.
	 *
	 * @return bool True if the sitemap was properly invalidated. False otherwise.
	 */
	public static function invalidate_author( $user_id ) {

		$user = get_user_by( 'id', $user_id );

		if ( $user === false ) {
			return false;
		}

		if ( 'user_register' === current_action() ) {
			update_user_meta( $user_id, '_yoast_wpseo_profile_updated', time() );
		}

		if ( empty( $user->roles ) || in_array( 'subscriber', $user->roles, true ) ) {
			return false;
		}

		self::invalidate( 'author' );

		return true;
	}

	/**
	 * Invalidate sitemap cache for the post type of a post.
	 *
	 * Don't invalidate for revisions.
	 *
	 * @since 1.5.4
	 * @since 3.2   Changed from function wpseo_invalidate_sitemap_cache_on_save_post() to method in this class.
	 *
	 * @param int $post_id Post ID to invalidate type for.
	 *
	 * @return void
	 */
	public static function invalidate_post( $post_id ) {

		if ( wp_is_post_revision( $post_id ) ) {
			return;
		}

		self::invalidate( get_post_type( $post_id ) );
	}

	/**
	 * Delete cache transients for given sitemaps types or all by default.
	 *
	 * @since 1.8.0
	 * @since 3.2   Moved from WPSEO_Utils to this class.
	 *
	 * @param array $types Set of sitemap types to delete cache transients for.
	 *
	 * @return void
	 */
	public static function clear( $types = array() ) {

		if ( ! self::$is_enabled ) {
			return;
		}

		// No types provided, clear all.
		if ( empty( $types ) ) {
			self::$clear_all = true;

			return;
		}

		// Always invalidate the index sitemap as well.
		if ( ! in_array( WPSEO_Sitemaps::SITEMAP_INDEX_TYPE, $types ) ) {
			array_unshift( $types, WPSEO_Sitemaps::SITEMAP_INDEX_TYPE );
		}

		foreach ( $types as $type ) {
			if ( ! in_array( $type, self::$clear_types ) ) {
				self::$clear_types[] = $type;
			}
		}
	}

	/**
	 * Invalidate storage for cache types queued to clear.
	 */
	public static function clear_queued() {

		if ( self::$clear_all ) {

			WPSEO_Sitemaps_Cache_Validator::invalidate_storage();
			self::$clear_all   = false;
			self::$clear_types = array();

			return;
		}

		foreach ( self::$clear_types as $type ) {
			WPSEO_Sitemaps_Cache_Validator::invalidate_storage( $type );
		}

		self::$clear_types = array();
	}

	/**
	 * Adds a hook that when given option is updated, the cache is cleared
	 *
	 * @since 3.2
	 *
	 * @param string $option Option name.
	 * @param string $type   Sitemap type.
	 */
	public static function register_clear_on_option_update( $option, $type = '' ) {

		self::$cache_clear[ $option ] = $type;
	}

	/**
	 * Clears the transient cache when a given option is updated, if that option has been registered before
	 *
	 * @since 3.2
	 *
	 * @param string $option The option name that's being updated.
	 *
	 * @return void
	 */
	public static function clear_on_option_update( $option ) {

		if ( array_key_exists( $option, self::$cache_clear ) ) {

			if ( empty( self::$cache_clear[ $option ] ) ) {
				// Clear all caches.
				self::clear();
			}
			else {
				// Clear specific provided type(s).
				$types = (array) self::$cache_clear[ $option ];
				self::clear( $types );
			}
		}
	}
}


text:
module.exports = {
  description: "",
  ns: "react-material-ui",
  type: "ReactNode",
  dependencies: {
    npm: {
      "material-ui/svg-icons/image/grid-off": require('material-ui/svg-icons/image/grid-off')
    }
  },
  name: "ImageGridOff",
  ports: {
    input: {},
    output: {
      component: {
        title: "ImageGridOff",
        type: "Component"
      }
    }
  }
}


text:
confirm ()
{
	read -r -p "${1:-Are you sure? [y/N]} " response
	case $response in
		[yY][eE][sS]|[yY])
			true
			;;
		*)
			false
			;;
	esac
}

progressfilt ()
{
	local flag=false c count cr=$'\r' nl=$'\n'
	while IFS='' read -d '' -rn 1 c
	do
		if $flag
		then
			printf '%s' "$c"
		else
			if [[ $c != $cr && $c != $nl ]]
			then
				count=0
			else
				((count++))
				if ((count > 1))
				then
					flag=true
				fi
			fi
		fi
	done
}

endMessage ()
{
	echo "Done. Nothing was ${1:-installed}."
}

command -v wget >/dev/null 2>&1 || { echo >&2 "Sorry, Wget needs to be installed. Please install it and try again. Aborting."; exit 1; }

echo "============ ADMINER INSTALLATION ============"
if confirm "Do you want to install Adminer ? [y/N]"; then
	mkdir ./www/adminer
	echo "=> Downloading Adminer..."
	wget --progress=bar:force http://www.adminer.org/latest.php 2>&1 -O ./www/adminer/index.php | progressfilt && echo "=> Adminer installed."
	echo
	if confirm "Do you want to add a pretty theme with it ? [y/N]"; then
		echo "=> Downloading Adminer pretty design..."
		wget --progress=bar:force https://raw.githubusercontent.com/vrana/adminer/master/designs/pappu687/adminer.css 2>&1 -O ./www/adminer/adminer.css | progressfilt && echo "=> Theme installed."
	else
		endMessage "added"
	fi
	echo
	echo Adminer is installed.
else
	endMessage
fi


text:
/*global cordova, module*/

module.exports = {
    customaction: function (name, successCallback, errorCallback) {
        cordova.exec(successCallback, errorCallback, "Scaffold", "customaction", [name]);
    }
};


text:
On this page you will learn from code samples for programming in C#.Writing of the code to add barcode to multi tiff with barcode sdk in C# can be executed by programmers of any level using ByteScout Barcode Suite. What is ByteScout Barcode Suite? It is the bundle that privides 3  SDK products to generate barcodes (Barcode SDK), read barcodes (Barcode Reaer SDK) and read and write spreadsheets (Spreadsheet SDK). It can help you to add barcode to multi tiff with barcode sdk in your C# application.

The SDK samples given below describe how to quickly make your application do add barcode to multi tiff with barcode sdk in C# with the help of ByteScout Barcode Suite. This C# sample code is all you need for your app. Just copy and paste the code, add references (if needs to) and you are all set! Enjoy writing a code with ready-to-use sample C# codes.

Trial version of ByteScout Barcode Suite is available for free. Source code samples are included to help you with your C# app.

## REQUEST FREE TECH SUPPORT

[Click here to get in touch](https://bytescout.zendesk.com/hc/en-us/requests/new?subject=ByteScout%20Barcode%20Suite%20Question)

or just send email to [support@bytescout.com](mailto:support@bytescout.com?subject=ByteScout%20Barcode%20Suite%20Question)

## ON-PREMISE OFFLINE SDK

[Get Your 60 Day Free Trial](https://bytescout.com/download/web-installer?utm_source=github-readme)
[Explore SDK Docs](https://bytescout.com/documentation/index.html?utm_source=github-readme)
[Sign Up For Online Training](https://academy.bytescout.com/)

## ON-DEMAND REST WEB API

[Get your API key](https://pdf.co/documentation/api?utm_source=github-readme)
[Explore Web API Documentation](https://pdf.co/documentation/api?utm_source=github-readme)
[Explore Web API Samples](https://github.com/bytescout/ByteScout-SDK-SourceCode/tree/master/PDF.co%20Web%20API)

## VIDEO REVIEW

[https://www.youtube.com/watch?v=NEwNs2b9YN8](https://www.youtube.com/watch?v=NEwNs2b9YN8)

<!-- code block begin -->

##### ****AddBarcodeToMultipageTiff.VS2005.csproj:**

```
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup>
    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
    <ProductVersion>8.0.50727</ProductVersion>
    <SchemaVersion>2.0</SchemaVersion>
    <ProjectGuid>{6E3419F9-2C9B-40C8-96F1-0F6767BA17E4}</ProjectGuid>
    <OutputType>Exe</OutputType>
    <AppDesignerFolder>Properties</AppDesignerFolder>
    <RootNamespace>AddBarcodeToMultipageTiff</RootNamespace>
    <AssemblyName>AddBarcodeToMultipageTiff</AssemblyName>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
    <DebugSymbols>true</DebugSymbols>
    <DebugType>full</DebugType>
    <Optimize>false</Optimize>
    <OutputPath>bin\Debug\</OutputPath>
    <DefineConstants>DEBUG;TRACE</DefineConstants>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
    <DebugType>pdbonly</DebugType>
    <Optimize>true</Optimize>
    <OutputPath>bin\Release\</OutputPath>
    <DefineConstants>TRACE</DefineConstants>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
  </PropertyGroup>
  <ItemGroup>
    <Reference Include="Bytescout.BarCode, Version=2.0.0.253, Culture=neutral, PublicKeyToken=f7dd1bd9d40a50eb, processorArchitecture=MSIL">
      <SpecificVersion>False</SpecificVersion>
    </Reference>
    <Reference Include="System" />
    <Reference Include="System.Data" />
    <Reference Include="System.Xml" />
  </ItemGroup>
  <ItemGroup>
    <Compile Include="Program.cs" />
    <Compile Include="Properties\AssemblyInfo.cs" />
  </ItemGroup>
  <ItemGroup>
    <Content Include="..\wikipedia.tif">
      <Link>wikipedia.tif</Link>
      <CopyToOutputDirectory>Always</CopyToOutputDirectory>
    </Content>
  </ItemGroup>
  <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
  <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
       Other similar extension points exist, see Microsoft.Common.targets.
  <Target Name="BeforeBuild">
  </Target>
  <Target Name="AfterBuild">
  </Target>
  -->
</Project>
```

<!-- code block end -->

<!-- code block begin -->

##### ****AddBarcodeToMultipageTiff.VS2008.csproj:**

```
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup>
    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
    <ProductVersion>9.0.30729</ProductVersion>
    <SchemaVersion>2.0</SchemaVersion>
    <ProjectGuid>{6E3419F9-2C9B-40C8-96F1-0F6767BA17E4}</ProjectGuid>
    <OutputType>Exe</OutputType>
    <AppDesignerFolder>Properties</AppDesignerFolder>
    <RootNamespace>AddBarcodeToMultipageTiff</RootNamespace>
    <AssemblyName>AddBarcodeToMultipageTiff</AssemblyName>
    <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
    <DebugSymbols>true</DebugSymbols>
    <DebugType>full</DebugType>
    <Optimize>false</Optimize>
    <OutputPath>bin\Debug\</OutputPath>
    <DefineConstants>DEBUG;TRACE</DefineConstants>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
    <DebugType>pdbonly</DebugType>
    <Optimize>true</Optimize>
    <OutputPath>bin\Release\</OutputPath>
    <DefineConstants>TRACE</DefineConstants>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
  </PropertyGroup>
  <ItemGroup>
    <Reference Include="Bytescout.BarCode, Version=2.0.0.253, Culture=neutral, PublicKeyToken=f7dd1bd9d40a50eb, processorArchitecture=MSIL">
      <SpecificVersion>False</SpecificVersion>
    </Reference>
    <Reference Include="System" />
    <Reference Include="System.Data" />
    <Reference Include="System.Xml" />
  </ItemGroup>
  <ItemGroup>
    <Compile Include="Program.cs" />
    <Compile Include="Properties\AssemblyInfo.cs" />
  </ItemGroup>
  <ItemGroup>
    <Content Include="..\wikipedia.tif">
      <Link>wikipedia.tif</Link>
      <CopyToOutputDirectory>Always</CopyToOutputDirectory>
    </Content>
  </ItemGroup>
  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
  <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
       Other similar extension points exist, see Microsoft.Common.targets.
  <Target Name="BeforeBuild">
  </Target>
  <Target Name="AfterBuild">
  </Target>
  -->
</Project>
```

<!-- code block end -->

<!-- code block begin -->

##### ****AddBarcodeToMultipageTiff.VS2010.csproj:**

```
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup>
    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
    <SchemaVersion>2.0</SchemaVersion>
    <ProjectGuid>{6E3419F9-2C9B-40C8-96F1-0F6767BA17E4}</ProjectGuid>
    <OutputType>Exe</OutputType>
    <AppDesignerFolder>Properties</AppDesignerFolder>
    <RootNamespace>AddBarcodeToMultipageTiff</RootNamespace>
    <AssemblyName>AddBarcodeToMultipageTiff</AssemblyName>
    <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
    <DebugSymbols>true</DebugSymbols>
    <DebugType>full</DebugType>
    <Optimize>false</Optimize>
    <OutputPath>bin\Debug\</OutputPath>
    <DefineConstants>DEBUG;TRACE</DefineConstants>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
    <DebugType>pdbonly</DebugType>
    <Optimize>true</Optimize>
    <OutputPath>bin\Release\</OutputPath>
    <DefineConstants>TRACE</DefineConstants>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
  </PropertyGroup>
  <ItemGroup>
    <Reference Include="Bytescout.BarCode, Version=2.0.0.253, Culture=neutral, PublicKeyToken=f7dd1bd9d40a50eb, processorArchitecture=MSIL">
      <SpecificVersion>False</SpecificVersion>
    </Reference>
    <Reference Include="System" />
    <Reference Include="System.Data" />
    <Reference Include="System.Xml" />
  </ItemGroup>
  <ItemGroup>
    <Compile Include="Program.cs" />
    <Compile Include="Properties\AssemblyInfo.cs" />
  </ItemGroup>
  <ItemGroup>
    <Content Include="..\wikipedia.tif">
      <Link>wikipedia.tif</Link>
      <CopyToOutputDirectory>Always</CopyToOutputDirectory>
    </Content>
  </ItemGroup>
  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
  <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
       Other similar extension points exist, see Microsoft.Common.targets.
  <Target Name="BeforeBuild">
  </Target>
  <Target Name="AfterBuild">
  </Target>
  -->
</Project>
```

<!-- code block end -->

<!-- code block begin -->

##### ****AddBarcodeToMultipageTiff.VS2012.csproj:**

```
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup>
    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
    <SchemaVersion>2.0</SchemaVersion>
    <ProjectGuid>{6E3419F9-2C9B-40C8-96F1-0F6767BA17E4}</ProjectGuid>
    <OutputType>Exe</OutputType>
    <AppDesignerFolder>Properties</AppDesignerFolder>
    <RootNamespace>AddBarcodeToMultipageTiff</RootNamespace>
    <AssemblyName>AddBarcodeToMultipageTiff</AssemblyName>
    <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
    <DebugSymbols>true</DebugSymbols>
    <DebugType>full</DebugType>
    <Optimize>false</Optimize>
    <OutputPath>bin\Debug\</OutputPath>
    <DefineConstants>DEBUG;TRACE</DefineConstants>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
    <DebugType>pdbonly</DebugType>
    <Optimize>true</Optimize>
    <OutputPath>bin\Release\</OutputPath>
    <DefineConstants>TRACE</DefineConstants>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
  </PropertyGroup>
  <ItemGroup>
    <Reference Include="Bytescout.BarCode, Version=2.0.0.253, Culture=neutral, PublicKeyToken=f7dd1bd9d40a50eb, processorArchitecture=MSIL">
      <SpecificVersion>False</SpecificVersion>
    </Reference>
    <Reference Include="System" />
    <Reference Include="System.Data" />
    <Reference Include="System.Xml" />
  </ItemGroup>
  <ItemGroup>
    <Compile Include="Program.cs" />
    <Compile Include="Properties\AssemblyInfo.cs" />
  </ItemGroup>
  <ItemGroup>
    <Content Include="..\wikipedia.tif">
      <Link>wikipedia.tif</Link>
      <CopyToOutputDirectory>Always</CopyToOutputDirectory>
    </Content>
  </ItemGroup>
  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
  <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
       Other similar extension points exist, see Microsoft.Common.targets.
  <Target Name="BeforeBuild">
  </Target>
  <Target Name="AfterBuild">
  </Target>
  -->
</Project>
```

<!-- code block end -->

<!-- code block begin -->

##### ****AddBarcodeToMultipageTiff.VS2013.csproj:**

```
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup>
    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
    <SchemaVersion>2.0</SchemaVersion>
    <ProjectGuid>{6E3419F9-2C9B-40C8-96F1-0F6767BA17E4}</ProjectGuid>
    <OutputType>Exe</OutputType>
    <AppDesignerFolder>Properties</AppDesignerFolder>
    <RootNamespace>AddBarcodeToMultipageTiff</RootNamespace>
    <AssemblyName>AddBarcodeToMultipageTiff</AssemblyName>
    <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
    <DebugSymbols>true</DebugSymbols>
    <DebugType>full</DebugType>
    <Optimize>false</Optimize>
    <OutputPath>bin\Debug\</OutputPath>
    <DefineConstants>DEBUG;TRACE</DefineConstants>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
    <DebugType>pdbonly</DebugType>
    <Optimize>true</Optimize>
    <OutputPath>bin\Release\</OutputPath>
    <DefineConstants>TRACE</DefineConstants>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
  </PropertyGroup>
  <ItemGroup>
    <Reference Include="Bytescout.BarCode, Version=2.0.0.253, Culture=neutral, PublicKeyToken=f7dd1bd9d40a50eb, processorArchitecture=MSIL">
      <SpecificVersion>False</SpecificVersion>
    </Reference>
    <Reference Include="System" />
    <Reference Include="System.Data" />
    <Reference Include="System.Xml" />
  </ItemGroup>
  <ItemGroup>
    <Compile Include="Program.cs" />
    <Compile Include="Properties\AssemblyInfo.cs" />
  </ItemGroup>
  <ItemGroup>
    <Content Include="..\wikipedia.tif">
      <Link>wikipedia.tif</Link>
      <CopyToOutputDirectory>Always</CopyToOutputDirectory>
    </Content>
  </ItemGroup>
  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
  <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
       Other similar extension points exist, see Microsoft.Common.targets.
  <Target Name="BeforeBuild">
  </Target>
  <Target Name="AfterBuild">
  </Target>
  -->
</Project>
```

<!-- code block end -->

<!-- code block begin -->

##### ****AddBarcodeToMultipageTiff.VS2015.csproj:**

```
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup>
    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
    <SchemaVersion>2.0</SchemaVersion>
    <ProjectGuid>{6E3419F9-2C9B-40C8-96F1-0F6767BA17E4}</ProjectGuid>
    <OutputType>Exe</OutputType>
    <AppDesignerFolder>Properties</AppDesignerFolder>
    <RootNamespace>AddBarcodeToMultipageTiff</RootNamespace>
    <AssemblyName>AddBarcodeToMultipageTiff</AssemblyName>
    <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
    <DebugSymbols>true</DebugSymbols>
    <DebugType>full</DebugType>
    <Optimize>false</Optimize>
    <OutputPath>bin\Debug\</OutputPath>
    <DefineConstants>DEBUG;TRACE</DefineConstants>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
    <DebugType>pdbonly</DebugType>
    <Optimize>true</Optimize>
    <OutputPath>bin\Release\</OutputPath>
    <DefineConstants>TRACE</DefineConstants>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
  </PropertyGroup>
  <ItemGroup>
    <Reference Include="Bytescout.BarCode, Version=2.0.0.253, Culture=neutral, PublicKeyToken=f7dd1bd9d40a50eb, processorArchitecture=MSIL">
      <SpecificVersion>False</SpecificVersion>
    </Reference>
    <Reference Include="System" />
    <Reference Include="System.Data" />
    <Reference Include="System.Xml" />
  </ItemGroup>
  <ItemGroup>
    <Compile Include="Program.cs" />
    <Compile Include="Properties\AssemblyInfo.cs" />
  </ItemGroup>
  <ItemGroup>
    <Content Include="..\wikipedia.tif">
      <Link>wikipedia.tif</Link>
      <CopyToOutputDirectory>Always</CopyToOutputDirectory>
    </Content>
  </ItemGroup>
  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
  <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
       Other similar extension points exist, see Microsoft.Common.targets.
  <Target Name="BeforeBuild">
  </Target>
  <Target Name="AfterBuild">
  </Target>
  -->
</Project>
```

<!-- code block end -->

<!-- code block begin -->

##### ****Program.cs:**

```
using Bytescout.BarCode;

namespace AddBarcodeToMultipageTiff
{
	class Program
	{
		static void Main()
		{
            // Create new barcode and register it.
            Barcode barcode = new Barcode();
			barcode.RegistrationName = "demo";
			barcode.RegistrationKey = "demo";

            // Set symbology
            barcode.Symbology = SymbologyType.PDF417;
            // Set value
            barcode.Value = "Sample barcode";

            // Place barcode at bottom-right corner of the the first TIFF page
			barcode.DrawToImage("wikipedia.tif", 0, 550, 1100, "result.tif");

            // Open output file in default image viewer
            System.Diagnostics.Process.Start("result.tif");
		}
	}
}

```

<!-- code block end -->


text:
import formUtils from '../utils/form.utils';

export default {
    createBrandForTableList({brand, index, onEdit, onRemove}) {
        const vehicleBrand = this.createBrand({brand, index});
        return formUtils.addActionsTo(vehicleBrand, onEdit, onRemove);
    },
    createBrand({brand, index, props = {}}) {
        return Object.assign(brand, {ord: index + 1}, props);
    }
};


text:
package utmg.android_interface;

import android.content.SharedPreferences;
import android.os.Bundle;
import android.support.v7.app.ActionBar;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.view.WindowManager;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.CheckBox;
import android.widget.CompoundButton;
import android.widget.EditText;
import android.widget.Spinner;
import android.widget.ToggleButton;

public class SettingsActivity extends AppCompatActivity implements AdapterView.OnItemSelectedListener {

    SharedPreferences pref;
    SharedPreferences.Editor prefEditor;

    public float newWidth;
    public float newHeight;
    public float newAltitude;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_settings);

        setupActionBar();

        newWidth = 0;
        newHeight = 0;
        newAltitude = 0;

        pref = getSharedPreferences("Pref", 0);
        prefEditor = pref.edit();

        // Get user input to resize canvas
        final EditText w = (EditText) findViewById(R.id.resize_width);
        final EditText h = (EditText) findViewById(R.id.resize_height);
        final EditText a = (EditText) findViewById(R.id.resize_altitude);

        this.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN);

        w.setText(Float.toString(pref.getFloat("newWidth",5)));
        h.setText(Float.toString(pref.getFloat("newHeight",3)));
        a.setText(Float.toString(pref.getFloat("newAltitude",2)));

        Button done = (Button) findViewById(R.id.button);
        done.setOnClickListener(new View.OnClickListener()
        {
            @Override
            public void onClick(View view) {
                newWidth = Float.valueOf(w.getText().toString());
                newHeight = Float.valueOf(h.getText().toString());
                newAltitude = Float.valueOf(a.getText().toString());

                prefEditor.putFloat("newWidth", newWidth);
                prefEditor.putFloat("newHeight", newHeight);
                prefEditor.putFloat("newAltitude", newAltitude);
                prefEditor.commit();

                finish();
            }
        });

        final CheckBox isQuad1Checked = (CheckBox) findViewById(R.id.quad1_checkbox);
        final CheckBox isQuad2Checked = (CheckBox) findViewById(R.id.quad2_checkbox);
        final CheckBox isQuad3Checked = (CheckBox) findViewById(R.id.quad3_checkbox);
        final CheckBox isSwordChecked = (CheckBox) findViewById(R.id.sword_checkbox);
        final CheckBox isObstacle1Checked = (CheckBox) findViewById(R.id.obstacle1_checkbox);
        final CheckBox isObstacle2Checked = (CheckBox) findViewById(R.id.obstacle2_checkbox);
        final ToggleButton obstaclePublishToggle = (ToggleButton) findViewById(R.id.obstacle_publish_toggle);
        final ToggleButton debugModeToggle = (ToggleButton) findViewById(R.id.debug_mode_toggle);

        isQuad1Checked.setChecked(pref.getBoolean("quad1", false));
        isQuad2Checked.setChecked(pref.getBoolean("quad2", false));
        isQuad3Checked.setChecked(pref.getBoolean("quad3", false));
        isSwordChecked.setChecked(pref.getBoolean("sword", false));
        isObstacle1Checked.setChecked(pref.getBoolean("obstacle1", false));
        isObstacle2Checked.setChecked(pref.getBoolean("obstacle2", false));
        obstaclePublishToggle.setChecked((pref.getBoolean("obstaclePublish", false)));
        debugModeToggle.setChecked((pref.getBoolean("debugMode", false)));

        isQuad1Checked.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
            @Override
            public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
                prefEditor.putBoolean("quad1", isQuad1Checked.isChecked());
                prefEditor.commit();
                //Log.i("quadvis",Boolean.toString(pref.getBoolean("quad",false)));
            }
        });

        isQuad2Checked.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
            @Override
            public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
                prefEditor.putBoolean("quad2", isQuad2Checked.isChecked());
                prefEditor.commit();
                //Log.i("quadvis",Boolean.toString(pref.getBoolean("quad",false)));
            }
        });

        isQuad3Checked.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
            @Override
            public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
                prefEditor.putBoolean("quad3", isQuad3Checked.isChecked());
                prefEditor.commit();
                //Log.i("quadvis",Boolean.toString(pref.getBoolean("quad",false)));
            }
        });

        isSwordChecked.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
            @Override
            public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
                prefEditor.putBoolean("sword", isSwordChecked.isChecked());
                prefEditor.commit();
            }
        });

        isObstacle1Checked.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
            @Override
            public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
                prefEditor.putBoolean("obstacle1", isObstacle1Checked.isChecked());
                prefEditor.commit();
            }
        });

        isObstacle2Checked.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
            @Override
            public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
                prefEditor.putBoolean("obstacle2", isObstacle2Checked.isChecked());
                prefEditor.commit();
            }
        });

        obstaclePublishToggle.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
            @Override
            public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
                prefEditor.putBoolean("obstaclePublish", obstaclePublishToggle.isChecked());
                prefEditor.commit();
            }
        });

        debugModeToggle.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
            @Override
            public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
                prefEditor.putBoolean("debugMode", debugModeToggle.isChecked());
                prefEditor.commit();
            }
        });

        // mode spinner
        Spinner spinner = (Spinner) findViewById(R.id.mode_spinner);
        // Create an ArrayAdapter using the string array and a default spinner layout
        ArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource(this,
                R.array.modes_array, android.R.layout.simple_spinner_item);
        // Specify the layout to use when the list of choices appears
        adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
        // Apply the adapter to the spinner
        spinner.setAdapter(adapter);
        spinner.setOnItemSelectedListener(this);
        spinner.setSelection( pref.getInt("mode", 0) );

    }

    private void setupActionBar() {
        ActionBar actionBar = getSupportActionBar();
        if (actionBar != null) {
            // Show the Up button in the action bar.
            actionBar.setDisplayHomeAsUpEnabled(true);
        }
    }

    public void onItemSelected(AdapterView<?> parent, View view,
                               int pos, long id) {
        // An item was selected. You can retrieve the selected item using
        // parent.getItemAtPosition(pos)
        pref = getSharedPreferences("Pref", 0);
        prefEditor = pref.edit();

        if (parent.getItemAtPosition(pos).equals("Trajectory")) {
            prefEditor.putInt("mode", 0);
            prefEditor.commit();
        }
        else if (parent.getItemAtPosition(pos).equals("Waypoint")) {
            prefEditor.putInt("mode", 1);
            prefEditor.commit();
        }

    }

    public void onNothingSelected(AdapterView<?> parent) {
        // Another interface callback
    }

}


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

import java.util.List;
import javax.annotation.Generated;

import com.amazonaws.SdkClientException;
import com.amazonaws.services.fms.model.*;

import com.amazonaws.protocol.*;
import com.amazonaws.annotation.SdkInternalApi;

/**
 * AppsListDataSummaryMarshaller
 */
@Generated("com.amazonaws:aws-java-sdk-code-generator")
@SdkInternalApi
public class AppsListDataSummaryMarshaller {

    private static final MarshallingInfo<String> LISTARN_BINDING = MarshallingInfo.builder(MarshallingType.STRING).marshallLocation(MarshallLocation.PAYLOAD)
            .marshallLocationName("ListArn").build();
    private static final MarshallingInfo<String> LISTID_BINDING = MarshallingInfo.builder(MarshallingType.STRING).marshallLocation(MarshallLocation.PAYLOAD)
            .marshallLocationName("ListId").build();
    private static final MarshallingInfo<String> LISTNAME_BINDING = MarshallingInfo.builder(MarshallingType.STRING).marshallLocation(MarshallLocation.PAYLOAD)
            .marshallLocationName("ListName").build();
    private static final MarshallingInfo<List> APPSLIST_BINDING = MarshallingInfo.builder(MarshallingType.LIST).marshallLocation(MarshallLocation.PAYLOAD)
            .marshallLocationName("AppsList").build();

    private static final AppsListDataSummaryMarshaller instance = new AppsListDataSummaryMarshaller();

    public static AppsListDataSummaryMarshaller getInstance() {
        return instance;
    }

    /**
     * Marshall the given parameter object.
     */
    public void marshall(AppsListDataSummary appsListDataSummary, ProtocolMarshaller protocolMarshaller) {

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

        try {
            protocolMarshaller.marshall(appsListDataSummary.getListArn(), LISTARN_BINDING);
            protocolMarshaller.marshall(appsListDataSummary.getListId(), LISTID_BINDING);
            protocolMarshaller.marshall(appsListDataSummary.getListName(), LISTNAME_BINDING);
            protocolMarshaller.marshall(appsListDataSummary.getAppsList(), APPSLIST_BINDING);
        } catch (Exception e) {
            throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
        }
    }

}


text:
{-%
## Parsing Haskell Source

Haskell modules are parsed using [`Language.Haskell.Exts.Parser`](http://hackage.haskell.org/packages/archive/haskell-src-exts/1.13.5/doc/html/Language-Haskell-Exts-Parser.html)
and the tokens, comments and AST is fed to a `TreeBuilder` (see [`Text.ProseDoc.Tree.Builder`](#Text.ProseDoc.Tree.Builder)).
-}
{-# LANGUAGE ScopedTypeVariables #-}

module Text.ProseDoc.Parser where

import Control.Applicative ((<$>))
import Control.Error

import Data.List (sort)

import Language.Haskell.Exts (readExtensions, Language(..))
import Language.Haskell.Exts.Lexer
import Language.Haskell.Exts.Parser
import Language.Haskell.Exts.SrcLoc
import Language.Haskell.Exts.Pretty (prettyPrint)
import qualified Language.Haskell.Exts.Annotated.Syntax as S

import Text.ProseDoc.Tree
import Text.ProseDoc.Tree.Builder
import Text.ProseDoc.Classifier
import Text.ProseDoc.Classifier.Types

parseSourceFile :: FilePath -> EitherT String IO (Tree Classifier Printable)
parseSourceFile fp = do
    src  <- scriptIO $ readFile fp
    hoistEither $ buildTree fp src

buildTree :: FilePath -> String -> Either String (Tree Classifier Printable)
buildTree path src = case parseResult . parseMode <$> readExtensions src of
    Nothing                    -> Left "unable to parse language extensions"
    Just (ParseOk r)           -> return r
    Just (ParseFailed loc msg) -> Left (prettyPrint loc ++ ": " ++ msg)

    where
        parseResult mode = do
            tokens <- lexTokenStreamWithMode mode src
            (ast :: S.Module SrcSpan, comments) <- parseWithComments mode src

            let builder   = mkTree ast
                tree      = runTreeBuilder builder src fragments
                fragments
                    =  sort
                    $  concatMap toFragments tokens
                    ++ concatMap toFragments comments

            return tree

        parseMode (lang, exts) = defaultParseMode
            { parseFilename = path
            , fixities = Just []
            , extensions = exts
            , baseLanguage = fromMaybe Haskell2010 lang
            }


text:
// Copyright 2009 the Sputnik authors.  All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/**
* @name: S15.2.4.6_A10;
* @section: 15.2.4.6;
* @assertion: The Object.prototype.isPrototypeOf.length property has the attribute ReadOnly;
* @description: Checking if varying the Object.prototype.isPrototypeOf.length property fails;
*/

//CHECK#1
if (!(Object.prototype.isPrototypeOf.hasOwnProperty('length'))) {
  $FAIL('#1: the Object.prototype.isPrototypeOf has length property');
}

obj = Object.prototype.isPrototypeOf.length;

Object.prototype.isPrototypeOf.length = function(){return "shifted";};

//CHECK#2
if (Object.prototype.isPrototypeOf.length !== obj) {
  $ERROR('#2: the Object.prototype.isPrototypeOf length property has the attributes ReadOnly');
}


text:
package com.fincatto.documentofiscal.mdfe3.classes.nota;

import org.simpleframework.xml.Element;

import com.fincatto.documentofiscal.DFBase;
import com.fincatto.documentofiscal.validadores.StringValidador;

/**
 * Created by Eldevan Nery Junior on 06/11/17. Informações do Percurso do MDF-e
 */
public class MDFInfoInformacoesAdicionais extends DFBase {
    private static final long serialVersionUID = -222776103663565452L;

    /**
     * Informações adicionais de interesse do Fisco. Norma referenciada, informações complementares, etc
     */
    @Element(name = "infAdFisco", required = false)
    private String informacoesAdicionaisInteresseFisco;

    @Element(name = "infCpl", required = false)
    private String informacoesComplementaresInteresseContribuinte;

    public void setInformacoesAdicionaisInteresseFisco(final String informacoesAdicionaisInteresseFisco) {
        StringValidador.tamanho2000(informacoesAdicionaisInteresseFisco, "Informacoes Adicionais Interesse Fisco");
        this.informacoesAdicionaisInteresseFisco = informacoesAdicionaisInteresseFisco;
    }

    public void setInformacoesComplementaresInteresseContribuinte(final String informacoesComplementaresInteresseContribuinte) {
        StringValidador.tamanho5000(informacoesComplementaresInteresseContribuinte, "Informacoes Adicionais Interesse Contribuinte");
        this.informacoesComplementaresInteresseContribuinte = informacoesComplementaresInteresseContribuinte;
    }

    public String getInformacoesAdicionaisInteresseFisco() {
        return this.informacoesAdicionaisInteresseFisco;
    }

    public String getInformacoesComplementaresInteresseContribuinte() {
        return this.informacoesComplementaresInteresseContribuinte;
    }

}


text:
package org.tribbloid.spookystuff.expressions

import org.tribbloid.spookystuff.entity.PageRow

import scala.reflect.ClassTag

/**
 * Created by peng on 10/11/14.
 * This is the preferred way of defining extraction
 * entry point for all "query lambda"
 */

final class ExprView[+T: ClassTag](self: Expression[T]) {

  def andMap[A](g: T => A): Expression[A] = self.andThen(_.map(v => g(v)))

  def andMap[A](g: T => A, name: String): Expression[A] = self.andThen(NamedFunction1(_.map(v => g(v)), name))

  def andFlatMap[A](g: T => Option[A]): Expression[A] = self.andThen(_.flatMap(v => g(v)))

  def andFlatMap[A](g: T => Option[A], name: String): Expression[A] = self.andThen(NamedFunction1(_.flatMap(v => g(v)), name))

  def typed[A](implicit ev: ClassTag[A]) = this.andFlatMap[A](
    {
      case res: A => Some(res)
      case _ => None
    }: T => Option[A],
    s"filterByType[${ev.toString()}}]"
  )

  def into(name: Symbol): Expression[Traversable[T]] = new PlusExpr[T](name.name, self)
  def ~+(name: Symbol) = into(name)

  def notNull: NamedFunction1[PageRow, Boolean] = self.andThen(NamedFunction1(_.nonEmpty, "notNull"))

  //  def defaultToHrefExpr = (self match {
  //    case expr: Expr[Unstructured] => expr.href
  //    case expr: Expr[Seq[Unstructured]] => expr.hrefs
  //    case _ => self
  //  }) > Symbol(Const.joinExprKey)

  //  def defaultToTextExpr = (this match {
  //    case expr: Expr[Unstructured] => expr.text
  //    case expr: Expr[Seq[Unstructured]] => expr.texts
  //    case _ => this
  //  }) as Symbol(Const.joinExprKey)
}


text:
// Copyright (c) Microsoft.  All Rights Reserved.  Licensed under the Apache License, Version 2.0.  See License.txt in the project root for license information.

using System.Collections.Immutable;
using Roslyn.Utilities;
using System.Collections.Generic;
using System.Diagnostics;
using System.Reflection.Metadata;

namespace Microsoft.CodeAnalysis.Emit.NoPia
{
    internal abstract partial class EmbeddedTypesManager<
        TPEModuleBuilder,
        TModuleCompilationState,
        TEmbeddedTypesManager,
        TSyntaxNode,
        TAttributeData,
        TSymbol,
        TAssemblySymbol,
        TNamedTypeSymbol,
        TFieldSymbol,
        TMethodSymbol,
        TEventSymbol,
        TPropertySymbol,
        TParameterSymbol,
        TTypeParameterSymbol,
        TEmbeddedType,
        TEmbeddedField,
        TEmbeddedMethod,
        TEmbeddedEvent,
        TEmbeddedProperty,
        TEmbeddedParameter,
        TEmbeddedTypeParameter>
    {
        internal abstract class CommonEmbeddedType : Cci.INamespaceTypeDefinition
        {
            public readonly TEmbeddedTypesManager TypeManager;
            public readonly TNamedTypeSymbol UnderlyingNamedType;

            private ImmutableArray<Cci.IFieldDefinition> _lazyFields;
            private ImmutableArray<Cci.IMethodDefinition> _lazyMethods;
            private ImmutableArray<Cci.IPropertyDefinition> _lazyProperties;
            private ImmutableArray<Cci.IEventDefinition> _lazyEvents;
            private ImmutableArray<TAttributeData> _lazyAttributes;
            private int _lazyAssemblyRefIndex = -1;

            protected CommonEmbeddedType(TEmbeddedTypesManager typeManager, TNamedTypeSymbol underlyingNamedType)
            {
                this.TypeManager = typeManager;
                this.UnderlyingNamedType = underlyingNamedType;
            }

            protected abstract int GetAssemblyRefIndex();

            protected abstract IEnumerable<TFieldSymbol> GetFieldsToEmit();
            protected abstract IEnumerable<TMethodSymbol> GetMethodsToEmit();
            protected abstract IEnumerable<TEventSymbol> GetEventsToEmit();
            protected abstract IEnumerable<TPropertySymbol> GetPropertiesToEmit();
            protected abstract bool IsPublic { get; }
            protected abstract bool IsAbstract { get; }
            protected abstract Cci.ITypeReference GetBaseClass(TPEModuleBuilder moduleBuilder, TSyntaxNode syntaxNodeOpt, DiagnosticBag diagnostics);
            protected abstract IEnumerable<Cci.TypeReferenceWithAttributes> GetInterfaces(EmitContext context);
            protected abstract bool IsBeforeFieldInit { get; }
            protected abstract bool IsComImport { get; }
            protected abstract bool IsInterface { get; }
            protected abstract bool IsSerializable { get; }
            protected abstract bool IsSpecialName { get; }
            protected abstract bool IsWindowsRuntimeImport { get; }
            protected abstract bool IsSealed { get; }
            protected abstract TypeLayout? GetTypeLayoutIfStruct();
            protected abstract System.Runtime.InteropServices.CharSet StringFormat { get; }
            protected abstract TAttributeData CreateTypeIdentifierAttribute(bool hasGuid, TSyntaxNode syntaxNodeOpt, DiagnosticBag diagnostics);
            protected abstract void EmbedDefaultMembers(string defaultMember, TSyntaxNode syntaxNodeOpt, DiagnosticBag diagnostics);
            protected abstract IEnumerable<TAttributeData> GetCustomAttributesToEmit(TModuleCompilationState compilationState);
            protected abstract void ReportMissingAttribute(AttributeDescription description, TSyntaxNode syntaxNodeOpt, DiagnosticBag diagnostics);

            private bool IsTargetAttribute(TAttributeData attrData, AttributeDescription description)
            {
                return TypeManager.IsTargetAttribute(UnderlyingNamedType, attrData, description);
            }

            private ImmutableArray<TAttributeData> GetAttributes(TModuleCompilationState compilationState, TSyntaxNode syntaxNodeOpt, DiagnosticBag diagnostics)
            {
                var builder = ArrayBuilder<TAttributeData>.GetInstance();

                // Put the CompilerGenerated attribute on the NoPIA types we define so that
                // static analysis tools (e.g. fxcop) know that they can be skipped
                builder.AddOptional(TypeManager.CreateCompilerGeneratedAttribute());

                // Copy some of the attributes.

                bool hasGuid = false;
                bool hasComEventInterfaceAttribute = false;

                // Note, when porting attributes, we are not using constructors from original symbol.
                // The constructors might be missing (for example, in metadata case) and doing lookup
                // will ensure that we report appropriate errors.

                foreach (var attrData in GetCustomAttributesToEmit(compilationState))
                {
                    if (IsTargetAttribute(attrData, AttributeDescription.GuidAttribute))
                    {
                        string guidString;
                        if (attrData.TryGetGuidAttributeValue(out guidString))
                        {
                            // If this type has a GuidAttribute, we should emit it.
                            hasGuid = true;
                            builder.AddOptional(TypeManager.CreateSynthesizedAttribute(WellKnownMember.System_Runtime_InteropServices_GuidAttribute__ctor, attrData, syntaxNodeOpt, diagnostics));
                        }
                    }
                    else if (IsTargetAttribute(attrData, AttributeDescription.ComEventInterfaceAttribute))
                    {
                        if (attrData.CommonConstructorArguments.Length == 2)
                        {
                            hasComEventInterfaceAttribute = true;
                            builder.AddOptional(TypeManager.CreateSynthesizedAttribute(WellKnownMember.System_Runtime_InteropServices_ComEventInterfaceAttribute__ctor, attrData, syntaxNodeOpt, diagnostics));
                        }
                    }
                    else
                    {
                        int signatureIndex = TypeManager.GetTargetAttributeSignatureIndex(UnderlyingNamedType, attrData, AttributeDescription.InterfaceTypeAttribute);
                        if (signatureIndex != -1)
                        {
                            Debug.Assert(signatureIndex == 0 || signatureIndex == 1);
                            if (attrData.CommonConstructorArguments.Length == 1)
                            {
                                builder.AddOptional(TypeManager.CreateSynthesizedAttribute(signatureIndex == 0 ? WellKnownMember.System_Runtime_InteropServices_InterfaceTypeAttribute__ctorInt16 :
                                    WellKnownMember.System_Runtime_InteropServices_InterfaceTypeAttribute__ctorComInterfaceType,
                                    attrData, syntaxNodeOpt, diagnostics));
                            }
                        }
                        else if (IsTargetAttribute(attrData, AttributeDescription.BestFitMappingAttribute))
                        {
                            if (attrData.CommonConstructorArguments.Length == 1)
                            {
                                builder.AddOptional(TypeManager.CreateSynthesizedAttribute(WellKnownMember.System_Runtime_InteropServices_BestFitMappingAttribute__ctor, attrData, syntaxNodeOpt, diagnostics));
                            }
                        }
                        else if (IsTargetAttribute(attrData, AttributeDescription.CoClassAttribute))
                        {
                            if (attrData.CommonConstructorArguments.Length == 1)
                            {
                                builder.AddOptional(TypeManager.CreateSynthesizedAttribute(WellKnownMember.System_Runtime_InteropServices_CoClassAttribute__ctor, attrData, syntaxNodeOpt, diagnostics));
                            }
                        }
                        else if (IsTargetAttribute(attrData, AttributeDescription.FlagsAttribute))
                        {
                            if (attrData.CommonConstructorArguments.Length == 0 && UnderlyingNamedType.IsEnum)
                            {
                                builder.AddOptional(TypeManager.CreateSynthesizedAttribute(WellKnownMember.System_FlagsAttribute__ctor, attrData, syntaxNodeOpt, diagnostics));
                            }
                        }
                        else if (IsTargetAttribute(attrData, AttributeDescription.DefaultMemberAttribute))
                        {
                            if (attrData.CommonConstructorArguments.Length == 1)
                            {
                                builder.AddOptional(TypeManager.CreateSynthesizedAttribute(WellKnownMember.System_Reflection_DefaultMemberAttribute__ctor, attrData, syntaxNodeOpt, diagnostics));

                                // Embed members matching default member name.
                                string defaultMember = attrData.CommonConstructorArguments[0].Value as string;
                                if (defaultMember != null)
                                {
                                    EmbedDefaultMembers(defaultMember, syntaxNodeOpt, diagnostics);
                                }
                            }
                        }
                        else if (IsTargetAttribute(attrData, AttributeDescription.UnmanagedFunctionPointerAttribute))
                        {
                            if (attrData.CommonConstructorArguments.Length == 1)
                            {
                                builder.AddOptional(TypeManager.CreateSynthesizedAttribute(WellKnownMember.System_Runtime_InteropServices_UnmanagedFunctionPointerAttribute__ctor, attrData, syntaxNodeOpt, diagnostics));
                            }
                        }
                    }
                }

                // We must emit a TypeIdentifier attribute which connects this local type with the canonical type.
                // Interfaces usually have a guid attribute, in which case the TypeIdentifier attribute we emit will
                // not need any additional parameters. For interfaces which lack a guid and all other types, we must
                // emit a TypeIdentifier that has parameters identifying the scope and name of the original type. We
                // will use the Assembly GUID as the scope identifier.

                if (IsInterface && !hasComEventInterfaceAttribute)
                {
                    if (!IsComImport)
                    {
                        // If we have an interface not marked ComImport, but the assembly is linked, then
                        // we need to give an error. We allow event interfaces to not have ComImport marked on them.
                        // ERRID_NoPIAAttributeMissing2/ERR_InteropTypeMissingAttribute
                        ReportMissingAttribute(AttributeDescription.ComImportAttribute, syntaxNodeOpt, diagnostics);
                    }
                    else if (!hasGuid)
                    {
                        // Interfaces used with No-PIA ought to have a guid attribute, or the CLR cannot do type unification.
                        // This interface lacks a guid, so unification probably won't work. We allow event interfaces to not have a Guid.
                        // ERRID_NoPIAAttributeMissing2/ERR_InteropTypeMissingAttribute
                        ReportMissingAttribute(AttributeDescription.GuidAttribute, syntaxNodeOpt, diagnostics);
                    }
                }

                // Note, this logic should match the one in RetargetingSymbolTranslator.RetargetNoPiaLocalType
                // when we try to predict what attributes we will emit on embedded type, which corresponds the
                // type we are retargeting.

                builder.AddOptional(CreateTypeIdentifierAttribute(hasGuid && IsInterface, syntaxNodeOpt, diagnostics));

                return builder.ToImmutableAndFree();
            }

            public int AssemblyRefIndex
            {
                get
                {
                    if (_lazyAssemblyRefIndex == -1)
                    {
                        _lazyAssemblyRefIndex = GetAssemblyRefIndex();
                        Debug.Assert(_lazyAssemblyRefIndex >= 0);
                    }
                    return _lazyAssemblyRefIndex;
                }
            }

            bool Cci.INamespaceTypeDefinition.IsPublic
            {
                get
                {
                    return IsPublic;
                }
            }

            Cci.ITypeReference Cci.ITypeDefinition.GetBaseClass(EmitContext context)
            {
                return GetBaseClass((TPEModuleBuilder)context.Module, (TSyntaxNode)context.SyntaxNodeOpt, context.Diagnostics);
            }

            IEnumerable<Cci.IEventDefinition> Cci.ITypeDefinition.Events
            {
                get
                {
                    if (_lazyEvents.IsDefault)
                    {
                        Debug.Assert(TypeManager.IsFrozen);

                        var builder = ArrayBuilder<Cci.IEventDefinition>.GetInstance();

                        foreach (var e in GetEventsToEmit())
                        {
                            TEmbeddedEvent embedded;

                            if (TypeManager.EmbeddedEventsMap.TryGetValue(e, out embedded))
                            {
                                builder.Add(embedded);
                            }
                        }

                        ImmutableInterlocked.InterlockedInitialize(ref _lazyEvents, builder.ToImmutableAndFree());
                    }

                    return _lazyEvents;
                }
            }

            IEnumerable<Cci.MethodImplementation> Cci.ITypeDefinition.GetExplicitImplementationOverrides(EmitContext context)
            {
                return SpecializedCollections.EmptyEnumerable<Cci.MethodImplementation>();
            }

            IEnumerable<Cci.IFieldDefinition> Cci.ITypeDefinition.GetFields(EmitContext context)
            {
                if (_lazyFields.IsDefault)
                {
                    Debug.Assert(TypeManager.IsFrozen);

                    var builder = ArrayBuilder<Cci.IFieldDefinition>.GetInstance();

                    foreach (var f in GetFieldsToEmit())
                    {
                        TEmbeddedField embedded;

                        if (TypeManager.EmbeddedFieldsMap.TryGetValue(f, out embedded))
                        {
                            builder.Add(embedded);
                        }
                    }

                    ImmutableInterlocked.InterlockedInitialize(ref _lazyFields, builder.ToImmutableAndFree());
                }

                return _lazyFields;
            }

            IEnumerable<Cci.IGenericTypeParameter> Cci.ITypeDefinition.GenericParameters
            {
                get
                {
                    return SpecializedCollections.EmptyEnumerable<Cci.IGenericTypeParameter>();
                }
            }

            ushort Cci.ITypeDefinition.GenericParameterCount
            {
                get
                {
                    return 0;
                }
            }

            bool Cci.ITypeDefinition.HasDeclarativeSecurity
            {
                get
                {
                    // None of the transferrable attributes are security attributes.
                    return false;
                }
            }

            IEnumerable<Cci.TypeReferenceWithAttributes> Cci.ITypeDefinition.Interfaces(EmitContext context)
            {
                return GetInterfaces(context);
            }

            bool Cci.ITypeDefinition.IsAbstract
            {
                get
                {
                    return IsAbstract;
                }
            }

            bool Cci.ITypeDefinition.IsBeforeFieldInit
            {
                get
                {
                    return IsBeforeFieldInit;
                }
            }

            bool Cci.ITypeDefinition.IsComObject
            {
                get
                {
                    return IsInterface || IsComImport;
                }
            }

            bool Cci.ITypeDefinition.IsGeneric
            {
                get
                {
                    return false;
                }
            }

            bool Cci.ITypeDefinition.IsInterface
            {
                get
                {
                    return IsInterface;
                }
            }

            bool Cci.ITypeDefinition.IsRuntimeSpecial
            {
                get
                {
                    return false;
                }
            }

            bool Cci.ITypeDefinition.IsSerializable
            {
                get
                {
                    return IsSerializable;
                }
            }

            bool Cci.ITypeDefinition.IsSpecialName
            {
                get
                {
                    return IsSpecialName;
                }
            }

            bool Cci.ITypeDefinition.IsWindowsRuntimeImport
            {
                get
                {
                    return IsWindowsRuntimeImport;
                }
            }

            bool Cci.ITypeDefinition.IsSealed
            {
                get
                {
                    return IsSealed;
                }
            }

            System.Runtime.InteropServices.LayoutKind Cci.ITypeDefinition.Layout
            {
                get
                {
                    var layout = GetTypeLayoutIfStruct();
                    return layout?.Kind ?? System.Runtime.InteropServices.LayoutKind.Auto;
                }
            }

            ushort Cci.ITypeDefinition.Alignment
            {
                get
                {
                    var layout = GetTypeLayoutIfStruct();
                    return (ushort)(layout?.Alignment ?? 0);
                }
            }

            uint Cci.ITypeDefinition.SizeOf
            {
                get
                {
                    var layout = GetTypeLayoutIfStruct();
                    return (uint)(layout?.Size ?? 0);
                }
            }

            IEnumerable<Cci.IMethodDefinition> Cci.ITypeDefinition.GetMethods(EmitContext context)
            {
                if (_lazyMethods.IsDefault)
                {
                    Debug.Assert(TypeManager.IsFrozen);

                    var builder = ArrayBuilder<Cci.IMethodDefinition>.GetInstance();

                    int gapIndex = 1;
                    int gapSize = 0;

                    foreach (var method in GetMethodsToEmit())
                    {
                        if ((object)method != null)
                        {
                            TEmbeddedMethod embedded;

                            if (TypeManager.EmbeddedMethodsMap.TryGetValue(method, out embedded))
                            {
                                if (gapSize > 0)
                                {
                                    builder.Add(new VtblGap(this, ModuleExtensions.GetVTableGapName(gapIndex, gapSize)));
                                    gapIndex++;
                                    gapSize = 0;
                                }

                                builder.Add(embedded);
                            }
                            else
                            {
                                gapSize++;
                            }
                        }
                        else
                        {
                            gapSize++;
                        }
                    }

                    ImmutableInterlocked.InterlockedInitialize(ref _lazyMethods, builder.ToImmutableAndFree());
                }

                return _lazyMethods;
            }

            IEnumerable<Cci.INestedTypeDefinition> Cci.ITypeDefinition.GetNestedTypes(EmitContext context)
            {
                return SpecializedCollections.EmptyEnumerable<Cci.INestedTypeDefinition>();
            }

            IEnumerable<Cci.IPropertyDefinition> Cci.ITypeDefinition.GetProperties(EmitContext context)
            {
                if (_lazyProperties.IsDefault)
                {
                    Debug.Assert(TypeManager.IsFrozen);

                    var builder = ArrayBuilder<Cci.IPropertyDefinition>.GetInstance();

                    foreach (var p in GetPropertiesToEmit())
                    {
                        TEmbeddedProperty embedded;

                        if (TypeManager.EmbeddedPropertiesMap.TryGetValue(p, out embedded))
                        {
                            builder.Add(embedded);
                        }
                    }

                    ImmutableInterlocked.InterlockedInitialize(ref _lazyProperties, builder.ToImmutableAndFree());
                }

                return _lazyProperties;
            }

            IEnumerable<Cci.SecurityAttribute> Cci.ITypeDefinition.SecurityAttributes
            {
                get
                {
                    // None of the transferrable attributes are security attributes.
                    return SpecializedCollections.EmptyEnumerable<Cci.SecurityAttribute>();
                }
            }

            System.Runtime.InteropServices.CharSet Cci.ITypeDefinition.StringFormat
            {
                get
                {
                    return StringFormat;
                }
            }

            IEnumerable<Cci.ICustomAttribute> Cci.IReference.GetAttributes(EmitContext context)
            {
                if (_lazyAttributes.IsDefault)
                {
                    var diagnostics = DiagnosticBag.GetInstance();
                    var attributes = GetAttributes((TModuleCompilationState)context.Module.CommonModuleCompilationState, (TSyntaxNode)context.SyntaxNodeOpt, diagnostics);

                    if (ImmutableInterlocked.InterlockedInitialize(ref _lazyAttributes, attributes))
                    {
                        // Save any diagnostics that we encountered.
                        context.Diagnostics.AddRange(diagnostics);
                    }

                    diagnostics.Free();
                }

                return _lazyAttributes;
            }

            void Cci.IReference.Dispatch(Cci.MetadataVisitor visitor)
            {
                throw ExceptionUtilities.Unreachable;
            }

            Cci.IDefinition Cci.IReference.AsDefinition(EmitContext context)
            {
                return this;
            }

            bool Cci.ITypeReference.IsEnum
            {
                get
                {
                    return UnderlyingNamedType.IsEnum;
                }
            }

            bool Cci.ITypeReference.IsValueType
            {
                get
                {
                    return UnderlyingNamedType.IsValueType;
                }
            }

            Cci.ITypeDefinition Cci.ITypeReference.GetResolvedType(EmitContext context)
            {
                return this;
            }

            Cci.PrimitiveTypeCode Cci.ITypeReference.TypeCode
            {
                get
                {
                    return Cci.PrimitiveTypeCode.NotPrimitive;
                }
            }

            TypeDefinitionHandle Cci.ITypeReference.TypeDef
            {
                get
                {
                    return default(TypeDefinitionHandle);
                }
            }

            Cci.IGenericMethodParameterReference Cci.ITypeReference.AsGenericMethodParameterReference
            {
                get
                {
                    return null;
                }
            }

            Cci.IGenericTypeInstanceReference Cci.ITypeReference.AsGenericTypeInstanceReference
            {
                get
                {
                    return null;
                }
            }

            Cci.IGenericTypeParameterReference Cci.ITypeReference.AsGenericTypeParameterReference
            {
                get
                {
                    return null;
                }
            }

            Cci.INamespaceTypeDefinition Cci.ITypeReference.AsNamespaceTypeDefinition(EmitContext context)
            {
                return this;
            }

            Cci.INamespaceTypeReference Cci.ITypeReference.AsNamespaceTypeReference
            {
                get
                {
                    return this;
                }
            }

            Cci.INestedTypeDefinition Cci.ITypeReference.AsNestedTypeDefinition(EmitContext context)
            {
                return null;
            }

            Cci.INestedTypeReference Cci.ITypeReference.AsNestedTypeReference
            {
                get
                {
                    return null;
                }
            }

            Cci.ISpecializedNestedTypeReference Cci.ITypeReference.AsSpecializedNestedTypeReference
            {
                get
                {
                    return null;
                }
            }

            Cci.ITypeDefinition Cci.ITypeReference.AsTypeDefinition(EmitContext context)
            {
                return this;
            }

            ushort Cci.INamedTypeReference.GenericParameterCount
            {
                get
                {
                    return 0;
                }
            }

            bool Cci.INamedTypeReference.MangleName
            {
                get
                {
                    return UnderlyingNamedType.MangleName;
                }
            }

            string Cci.INamedEntity.Name
            {
                get
                {
                    return UnderlyingNamedType.Name;
                }
            }

            Cci.IUnitReference Cci.INamespaceTypeReference.GetUnit(EmitContext context)
            {
                return TypeManager.ModuleBeingBuilt;
            }

            string Cci.INamespaceTypeReference.NamespaceName
            {
                get
                {
                    return UnderlyingNamedType.NamespaceName;
                }
            }

            /// <remarks>
            /// This is only used for testing.
            /// </remarks>
            public override string ToString()
            {
                return ((ISymbol)UnderlyingNamedType).ToDisplayString(SymbolDisplayFormat.ILVisualizationFormat);
            }
        }
    }
}


text:
package edu.pdx.cs410J.dbawale;

import edu.pdx.cs410J.InvokeMainTestCase;
import org.junit.Ignore;
import org.junit.Test;

import static org.hamcrest.CoreMatchers.containsString;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.MatcherAssert.assertThat;

/**
 * Integration tests for the {@link Project1} main class.
 */
public class Project1IT extends InvokeMainTestCase {

  /**
   * Invokes the main method of {@link Project1} with the given arguments.
   */
  private MainMethodResult invokeMain(String... args) {
    return invokeMain( Project1.class, args );
  }

  /**
   * Tests that invoking the main method with no arguments issues an error
   */
  @Test
  public void testNoCommandLineArguments() {
    MainMethodResult result = invokeMain();
    assertThat(result.getExitCode(), equalTo(1));
    assertThat(result.getErr(), containsString("Missing command line arguments"));
  }

  @Test
  public void testNormalOperationWithPrint()
  {
    MainMethodResult result = invokeMain("deven", "lunch", "7/2/2016", "5:30", "7/2/2016", "8:30", "-print");
    assertThat(result.getExitCode(),equalTo(0));
    assertThat(result.getOut().trim(),equalTo("lunch from 7/2/2016 5:30 until 7/2/2016 8:30"));
  }

  @Test
  public void testWithReadmeAtTheEnd()
  {
    MainMethodResult result = invokeMain("deven", "lunch", "7/2/2016", "5:30", "7/2/2016", "8:30", "-print","-README");
    assertThat(result.getExitCode(),equalTo(0));
    assertThat(result.getOut().trim(),equalTo("This program creates a new appointment for the owner specified and saves it in the\n" +
            "Appointment class. It can also optionally print the appointment details."));
  }

  @Test
  public void testWithReadmeAtTheSecondToLast()
  {
    MainMethodResult result = invokeMain("deven", "lunch", "7/2/2016", "5:30", "7/2/2016", "8:30", "-README","-print");
    assertThat(result.getExitCode(),equalTo(0));
    assertThat(result.getOut().trim(),equalTo("This program creates a new appointment for the owner specified and saves it in the\n" +
            "Appointment class. It can also optionally print the appointment details."));
  }

  @Test
  public void testWithOnlyReadmeOptionAndAllArgs()
  {
    MainMethodResult result = invokeMain("deven", "lunch", "7/2/2016", "5:30", "7/2/2016", "8:30","-README");
    assertThat(result.getExitCode(),equalTo(0));
    assertThat(result.getOut().trim(),equalTo("This program creates a new appointment for the owner specified and saves it in the\n" +
            "Appointment class. It can also optionally print the appointment details."));
  }

  @Test
  @Ignore
  public void testWithOnlyReadmeOption()
  {
    MainMethodResult result = invokeMain("-README");
    System.out.println(result.getExitCode());
    assertThat(result.getExitCode(),equalTo(0));
    assertThat(result.getOut().trim(),equalTo("This program creates a new appointment for the owner specified and saves it in the\n" +
            "Appointment class. It can also optionally print the appointment details."));
  }

  @Test
  public void testWithMutliWordArguments()
  {
    MainMethodResult result = invokeMain("deven bawale", "lunch with abhishek", "7/2/2016", "5:30", "7/2/2016", "8:30","-print");
    assertThat(result.getExitCode(),equalTo(0));
    assertThat(result.getOut().trim(),equalTo("lunch with abhishek from 7/2/2016 5:30 until 7/2/2016 8:30"));
  }

  @Test
  public void testWithDateTimeInName()
  {
    MainMethodResult result = invokeMain("7/2/2016", "lunch with abhishek", "7/2/2016", "5:30", "7/2/2016", "8:30","-print");
    assertThat(result.getExitCode(),equalTo(1));
    assertThat(result.getErr().trim(),containsString("Either owner or description are of the format DATE or TIME"));
  }

  @Test
  public void testWithDateTimeInDesc()
  {
    MainMethodResult result = invokeMain("deven", "7/2/2016", "7/2/2016", "5:30", "7/2/2016", "8:30","-print");
    assertThat(result.getExitCode(),equalTo(1));
    assertThat(result.getErr().trim(),containsString("Either owner or description are of the format DATE or TIME"));
  }

  @Test
  public void testWithEmptyDesc()
  {
    MainMethodResult result = invokeMain("deven", "", "7/2/2016", "5:30", "7/2/2016", "8:30","-print");
    assertThat(result.getExitCode(),equalTo(1));
    assertThat(result.getErr().trim(),containsString("Description must not be empty"));
  }
}


text:
//
// DynamicCommandBar.h
// Declaration of the DynamicCommandBar class.
//

#pragma once

#include <list>
#include <queue>
#include <stack>
#include <tuple>

using namespace Windows::Foundation;
using namespace Windows::UI::Xaml;
using namespace Windows::UI::Xaml::Controls;

namespace SDKTemplate
{
    public ref class DynamicCommandBar sealed : public CommandBar
    {
    protected:
        virtual void OnApplyTemplate() override;
        virtual Size MeasureOverride(Size desiredSize) override;

    public:
        static property DependencyProperty^ ContentMinWidthProperty
        {
            DependencyProperty^ get()
            {
                return _contentMinWidthProperty;
            }
        }

        property double ContentMinWidth
        {
            double get()
            {
                return (double)GetValue(ContentMinWidthProperty);
            }

            void set(double value)
            {
                SetValue(ContentMinWidthProperty, (Object^)value);
            }
        }

    private:
        static DependencyProperty^ _contentMinWidthProperty;
        Button^ _moreButton;

        // Store the item and the width before moving
        std::stack<std::tuple<ICommandBarElement^, double>> overflow = { };
        std::queue<std::tuple<ICommandBarElement^, double>> separatorQueue = { };
        double separatorQueueWidth = 0.0;
    };
}


text:
license_callback({
  "domain_content": false,
  "domain_data": false,
  "domain_software": true,
  "family": "",
  "id": "attribution",
  "is_okd_compliant": false,
  "is_osi_compliant": true,
  "maintainer": "",
  "status": "active",
  "title": "Attribution Assurance Licenses",
  "url": "http://www.opensource.org/licenses/attribution.php"
});


text:
package org.superboot.service;

import com.querydsl.core.types.Predicate;
import org.springframework.data.domain.Pageable;
import org.superboot.base.BaseException;
import org.superboot.base.BaseResponse;
import org.superboot.entity.request.ReqGroup;
import org.superboot.entity.response.ResGroup;

import java.util.List;

/**
 * <b> 组织管理服务类 </b>
 * <p>
 * 功能描述:
 * </p>
 *
 */
public interface GroupService {

    /**
     * 添加组织
     *
     * @param group 组织信息
     * @return
     * @throws BaseException
     */
    BaseResponse addGroup(ReqGroup group) throws BaseException;

    /**
     * 修改组织信息
     * @param pkGroup
     * @param reqGroup
     * @return
     * @throws BaseException
     */
    BaseResponse setGroup(Long pkGroup, ReqGroup reqGroup) throws BaseException;

    /**
     * 删除组织信息
     * @param pkGroup
     * @return
     * @throws BaseException
     */
    BaseResponse delGroup(Long pkGroup)throws BaseException;

    /**
     * 获取组织基本信息
     * @param pageable 分页信息
     * @return
     * @throws BaseException
     */
    BaseResponse getGroupList(Pageable pageable, Predicate predicate)throws BaseException;

    /**
     * 获取组织记录总数
     * @return
     * @throws BaseException
     */
    BaseResponse getGroupCount(Predicate predicate) throws BaseException;

    /**
     * 获取组织下拉框
     *
     * @return
     */
    BaseResponse<List<ResGroup>> getGroupCombobox();
}


text:
package forcedomain

import (
	"net/http"
	"os"
	"strings"

	"github.com/go-martini/martini"
)

func ForceDomainRedirect() martini.Handler {

	return func(w http.ResponseWriter, r *http.Request, c martini.Context) {
		if domain := os.Getenv("DOMAIN"); len(domain) != 0 {
			domain = addOptionalPrefix(domain)
			http.Redirect(w, r, domain, http.StatusTemporaryRedirect)
		}
		return
	}
}

func addOptionalPrefix(domain string) string {
	if strings.HasPrefix(domain, "http://") || strings.HasPrefix(domain, "https://") {
		return domain
	} else {
		prefixed_domain := strings.Join([]string{"http://", domain}, "")
		return prefixed_domain
	}

}


text:
#include <boost/mpl/vector.hpp>
#include <boost/gil/typedefs.hpp>
#include <boost/gil/extension/dynamic_image/any_image.hpp>
#include <boost/gil/image_view.hpp>
#include <boost/gil/planar_pixel_reference.hpp>
#include <boost/gil/color_convert.hpp>
#include <boost/gil/typedefs.hpp>
#include <boost/gil/image_view_factory.hpp>
#ifndef BOOST_GIL_NO_IO
#include <boost/gil/extension/io/tiff_io.hpp>
#include <boost/gil/extension/io/jpeg_io.hpp>
#include <boost/gil/extension/io/png_io.hpp>
#include <boost/gil/extension/io/tiff_dynamic_io.hpp>
#include <boost/gil/extension/io/jpeg_dynamic_io.hpp>
#include <boost/gil/extension/io/png_dynamic_io.hpp>
#endif

using namespace boost::gil;

typedef any_image<boost::mpl::vector<gray8_image_t, bgr8_image_t, argb8_image_t,
                                     rgb8_image_t, rgb8_planar_image_t,
                                     cmyk8_image_t, cmyk8_planar_image_t,
                                     rgba8_image_t, rgba8_planar_image_t> > any_image_t;

#ifdef BOOST_GIL_NO_IO
void test_image_io() {} // IO is not tested when BOOST_GIL_NO_IO is enabled
#else
void test_image_io() {
    const std::string in_dir="";  // directory of source images
    const std::string out_dir=in_dir+"image_io-out\\";
// ***********************************
// ************************ GRAY IMAGE
// ***********************************
    gray8_image_t imgGray;
// TIFF
    // load gray tiff into gray image
    tiff_read_image(in_dir+"gray.tif",imgGray);
    // save gray image to tiff
    tiff_write_view(out_dir+"grayFromGray.tif",view(imgGray));

    // load RGB tiff into gray image
    tiff_read_and_convert_image(in_dir+"RGB.tif",imgGray);

    // save gray image to tiff (again!)
    tiff_write_view(out_dir+"grayFromRGB.tif",view(imgGray));

// JPEG
    // load gray jpeg into gray image
    jpeg_read_image(in_dir+"gray.jpg",imgGray);
    // save gray image to gray jpeg
    jpeg_write_view(out_dir+"grayFromGray.jpg",view(imgGray));

    // load RGB jpeg into gray image
    jpeg_read_and_convert_image(in_dir+"RGB.jpg",imgGray);
    // save gray image to RGB jpeg
    jpeg_write_view(out_dir+"grayFromRGB.jpg",color_converted_view<rgb8_pixel_t>(view(imgGray)));

// PNG
    // load gray png into gray image
    png_read_image(in_dir+"gray.png",imgGray);
    // save gray image to gray png
    png_write_view(out_dir+"grayFromGray.png",view(imgGray));

    // load RGB png into gray image
    png_read_and_convert_image(in_dir+"RGB.png",imgGray);
    // save gray image to RGB png
    png_write_view(out_dir+"grayFromRGB.png",color_converted_view<rgb8_pixel_t>(view(imgGray)));

// ***********************************
// ************************* RGB Planar
// ***********************************

    rgb8_image_t imgRGB;

// TIFF

    // load gray tiff into RGB image
    tiff_read_and_convert_image(in_dir+"gray.tif",imgRGB);
    // save RGB image to tiff
    tiff_write_view(out_dir+"RGBFromGray.tif",view(imgRGB));

    // load RGB tiff into RGB image
    tiff_read_image(in_dir+"RGB.tif",imgRGB);
    // save RGB image to tiff (again!)
    tiff_write_view(out_dir+"RGBFromRGB.tif",view(imgRGB));

// JPEG
    // load gray jpeg into RGB image
    jpeg_read_and_convert_image(in_dir+"gray.jpg",imgRGB);
    // save RGB image to gray jpeg
    jpeg_write_view(out_dir+"RGBFromGray.jpg",view(imgRGB));

    // load RGB jpeg into RGB image
    jpeg_read_image(in_dir+"RGB.jpg",imgRGB);
    // save RGB image to RGB jpeg
    jpeg_write_view(out_dir+"RGBFromRGB.jpg",view(imgRGB));

// PNG
    // load gray png into RGB image
    png_read_and_convert_image(in_dir+"gray.png",imgRGB);
    // save RGB image to gray png
    png_write_view(out_dir+"RGBFromGray.png",view(imgRGB));

    // load RGB png into RGB image
    png_read_image(in_dir+"RGB.png",imgRGB);
    // save RGB image to RGB png
    png_write_view(out_dir+"RGBFromRGB.png",view(imgRGB));

// ***********************************
// ************************ GRAY32 Planar
// ***********************************
    gray32f_image_t imgGray32;
// TIFF
    // load gray tiff into gray image
    tiff_read_and_convert_image(in_dir+"gray.tif",imgGray32);
    // save gray image to tiff
    tiff_write_view(out_dir+"gray32FromGray.tif",view(imgGray32));

    // load RGB tiff into gray image
    tiff_read_and_convert_image(in_dir+"RGB.tif",imgGray32);

    // save gray image to tiff (again!)
    tiff_write_view(out_dir+"gray32FromRGB.tif",view(imgGray32));

// JPEG
    tiff_read_and_convert_image(in_dir+"gray.tif",imgGray32);    // again TIF (jpeg load not supported)
    // save RGB image to gray jpeg
    tiff_write_view(out_dir+"gray32FromGray.jpg",view(imgGray32));

    // load RGB jpeg into RGB image
    tiff_read_and_convert_image(in_dir+"RGB.tif",imgGray32);    // again TIF (jpeg load not supported)
    // save RGB image to RGB jpeg
    tiff_write_view(out_dir+"gray32FromRGB.jpg",color_converted_view<rgb32f_pixel_t>(view(imgGray32)));

// ***********************************
// ************************ NATIVE Planar
// ***********************************
    any_image_t anyImg;

// TIFF
    // load RGB tiff into any image
    tiff_read_image(in_dir+"RGB.tif",anyImg);

    // save any image to tiff
    tiff_write_view(out_dir+"RGBNative.tif",view(anyImg));

    // load gray tiff into any image
    tiff_read_image(in_dir+"gray.tif",anyImg);

    // save any image to tiff
    tiff_write_view(out_dir+"grayNative.tif",view(anyImg));

// JPEG
    // load gray jpeg into any image
    jpeg_read_image(in_dir+"gray.jpg",anyImg);
    // save any image to jpeg
    jpeg_write_view(out_dir+"grayNative.jpg",view(anyImg));

    // load RGB jpeg into any image
    jpeg_read_image(in_dir+"RGB.jpg",anyImg);
    // save any image to jpeg
    jpeg_write_view(out_dir+"RGBNative.jpg",view(anyImg));

// PNG
    // load gray png into any image
    png_read_image(in_dir+"gray.png",anyImg);
    // save any image to png
    png_write_view(out_dir+"grayNative.png",view(anyImg));

    // load RGB png into any image
    png_read_image(in_dir+"RGB.png",anyImg);
    // save any image to png
    png_write_view(out_dir+"RGBNative.png",view(anyImg));
}
#endif

int main(int argc, char* argv[]) {
    test_image_io();
    return 0;
}


text:
using std::map;
namespace sdo{
namespace sap{
class CSapStackThread
{
public:
	CSapStackThread();
	~CSapStackThread();
	void Start();
	void Stop();
	boost::asio::io_service & GetIoService(){return m_oIoService;}

private:
	boost::asio::io_service m_oIoService;
	boost::asio::io_service::work *m_oWork;
	boost::thread m_thread;
};
}
}
#endif


text:
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const monadic_react_1 = require("../../../src/monadic_react");
exports.context_sample = monadic_react_1.any()([
    _ => monadic_react_1.button(`Force reload`)(null).then(undefined, _ => monadic_react_1.get_context().then(undefined, ctxt => ctxt.force_reload())),
])(null).then(`context sample`, _ => monadic_react_1.get_context().then(undefined, ctxt => monadic_react_1.string("view")(`Context: ${JSON.stringify(ctxt)}`).ignore()));
//# sourceMappingURL=context.js.map


text:
/* To be used with cookieCuttr by Chris Wharton (http://cookiecuttr.com) */

.cc-cookies { position:fixed; width: 100%; left: 0; top: 0; padding: 0.5em 5%; background: #565656; background: rgba(86,86,86,0.95); color: #fff; font-size: 13px; font-weight: 700; text-shadow: 0 -1px 0 rgba(0,0,0,0.35); z-index: 99999; text-align: center; color: #fff; }
.cc-cookies a, .cc-cookies a:hover { color: #fff; text-decoration: underline; }
.cc-cookies a:hover { text-decoration: none; }
.cc-overlay { height: 100%; padding-top: 25%; }
.cc-cookies-error { float: left; width: 90%; text-align: center; margin: 1em 0 2em 0; background: #fff; padding: 2em 5%; border: 1px solid #ccc; font-size: 18px; color: #333; }
.cc-cookies a.cc-cookie-accept, .cc-cookies-error a.cc-cookie-accept, .cc-cookies a.cc-cookie-decline, .cc-cookies-error a.cc-cookie-decline, .cc-cookies a.cc-cookie-reset { display: inline-block; color: #fff; text-decoration: none; background: #7DAF3B; padding: 0.5em 0.75em; border-radius: 3px; box-shadow: 0 0 2px rgba(0,0,0,0.25); text-shadow: 0 -1px 0 rgba(0,0,0,0.35); -o-transition: background 0.5s ease-in; -webkit-transition: background 0.25s ease-in; -moz-transition: background 0.25s ease-in; }
.cc-cookies a.cc-cookie-decline, .cc-cookies-error a.cc-cookie-decline { background: #af3b3b; margin-left: 0.5em; }
.cc-cookies a.cc-cookie-reset { background: #f15b00; }
.cc-cookies a:hover.cc-cookie-accept, .cc-cookies-error a:hover.cc-cookie-accept, .cc-cookies a:hover.cc-cookie-decline, .cc-cookies-error a:hover.cc-cookie-decline, .cc-cookies a:hover.cc-cookie-reset  { background: #000; -o-transition: background 0.5s ease-in; -webkit-transition: background 0.25s ease-in; -moz-transition: background 0.25s ease-in; }
.cc-cookies-error a.cc-cookie-accept, .cc-cookies-error a.cc-cookie-decline { display: block; margin-top: 1em; }
.cc-cookies.cc-discreet { width: auto; padding: 0.5em 1em; left: auto; top: auto; }
.cc-cookies.cc-discreet a.cc-cookie-reset { background: none; text-shadow: none; padding: 0; text-decoration: underline; }
.cc-cookies.cc-discreet a:hover.cc-cookie-reset { text-decoration: none; }

@media screen and (max-width: 768px) {
.cc-cookies a.cc-cookie-accept, .cc-cookies a.cc-cookie-decline, .cc-cookies a.cc-cookie-reset { display: block; margin: 1em 0; }
}

@media screen and (max-width: 480px) {
.cc-cookies { position: relative; float: left; }
}

.cookie-banner-container{
	width:950px;
	margin: 0 auto;
	font-size: 14px;
}
.cookie-info{
	margin-right: 10px;
	display: inline;
}
@media (min-width: 1200px) {
	.cookie-banner-container{
	width:950px;
	}
}
@media (min-width: 768px) and (max-width: 979px){
	.cookie-banner-container{
		width:650px;
	}
	.cookie-info {
	display:none;
	}
}
@media (max-width: 768px){
	.cookie-banner-container{
		width:400px;
	}
	.cookie-info {
	display:none;
	}
}

@media (max-width: 480px) {
	.cookie-banner-container{
		width:300px;
	}
	.cookie-info {
	display:none;
	}
}


text:
An unofficial node.js implementation for managing freenom.com dns records.

## Freenom
freenom.com is a ccTLD register service, which has several free domains for users to register for free (.tk, .ml, .ga, etc...)
However, except web UI,  freenom does not provide friendly API interfaces for developers to update DNS records.
Thus, this module is intend to wrap DNS management web interface and provide some convenient node.js API for you. And the final goal is to provide full set of freenom management API interface, plus some extra features such as ddns functionality.

## Command Interface
### Install
	npm install -g freenom-dns
[Node.js](https://nodejs.org/en/download/package-manager/) and [npm](https://www.npmjs.com/) are required to use this tool

### Usage
	Commands:
		login                              enter freenom login info
	    list [<domain>]                    list domains or records of the domain
	    set <fqdn> <type> <value> [<ttl>]  add/edit a DNS record
	    clear <fqdn> <type>                delete a DNS record

	  Options:
	    -h, --help     output usage information
	    -V, --version  output the version number

### How to use

1. First of all, you need to have a [freenom](freenom.com) account, and register for a domain (free or paid).
2. Run login command, you will be prompt to input your credential.

        $ freenom-dns login
        email: your@email.com
        password: ********

3. list your domains by the following command

		  Domain              Status    Expiry Date
		  ----------------   --------   -------------
		  domain1.tk         Active    29/07/2017
          domain2.tk         Active    29/07/2017

4. list records for specific domain.

		  Name             Type       Value
		  --------------   --------   ----------------------------
					              A          1.2.3.4
                   www            A          1.2.3.4
	              TEST        CNAME      google.com

5. now you can add/edit via command line, such as

		$ freenom-dns set www.domain1.tk A 2.3.4.5
	Please note that you have to enter full domain(FQDN) here, so the API could locate the correct domain for you.

6. also, you could clear a record by specifying FQDN and type

		$freenom-dns clear www.domain1.tk  A

7. for detailed command format, please see

        $freenom-dns -h

## API
### Install
	npm install --save freenom-dns

### How to use
First of all, initialize freenom object with your login credential.

		var user = "YOUR EMAIL";
		var pass ="YOUR PASSWORD";
		var freenom = require("freenom-dns").init(user, pass);

Then you can call one of the exported api, such as

		freenom.dns.setRecord("subdomain.domain.tk", "CNAME", "www.google.com", 1440)
			    .then(function(ret) {
					console.log(ret)
				})
			    .catch((err) => {
			        console.log(err);
			    });

The API is in promise style, you can get the result from then() callback if success, or get error reason from catch() callback if failed.
For other samples, please checkout examples/

### Available methods
* dns
	* listDomains() - list your domains
	* listRecords(fqdn) - list records for specific domain.
	* setRecord(fqdn, type, value[, ttl]) - add/edit DNS record
	* clearRecord(fqdn, type) - clear a record

where type should be one of the following DNS record type.
* A
* AAAA
* CNAME
* LOC
* MX
* NAPTR
* RP
* TXT

## Reference
[Freenom offical web site](http://www.freenom.com/)

## Credits
* [lpinca/freenom](https://www.npmjs.com/package/freenom) - freenom API interfaces, but lack of dns record support.
* [a-c-t-i-n-i-u-m/freenom.com.ddns.sh](https://gist.github.com/a-c-t-i-n-i-u-m/bc4b1ff265b277dbf195) - awesome shell script to support ddns.

## License
[MIT](LICENSE)


text:
package edw.icecat.xml;

import edw.repository.IcecatFeatureDao;

public interface FeatureHandler {
	void handle(IcecatFeatureDao feature);
}


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

// Postgres DATABASE_URL = postgres://user:passwd@host:port/database
// SQLite DATABASE_URL = sqlite://:@:/
var url = process.env.DATABASE_URL.match(/(.*)\:\/\/(.*?)\:(.*)@(.*)\:(.*)\/(.*)/);
var DB_name = (url[6]||null);
var user = (url[2]||null);
var pwd = (url[3]||null);
var protocol = (url[1]||null);
var dialect = (url[1]||null);
var port = (url[5]||null);
var host = (url[4]||null);
var storage = process.env.DATABASE_STORAGE;

// Cargar Modelo ORM
var Sequelize = require('sequelize');

// Usar BBDD SQLite o Postgres
var sequelize = new Sequelize(DB_name, user, pwd,
						{dialect: protocol,
						 protocol: protocol,
						 port: port,
						 host: host,
						 storage: storage,	// solo SQLite (.env)
						 omitNull: true		// solo Postgres
						}
					);

//Importar la definicion de la tabla Quiz en quiz.js
var Quiz = sequelize.import(path.join(__dirname,'quiz'));

exports.Quiz = Quiz; // exportar definicion de tabla Quiz

// sequelize.sync() crea e inicializa tabla de preguntas en DB
	sequelize.sync().then(function() {
	// success(..) ejecuta el manejador una vez creada la tabla
	Quiz.count().then(function (count){
		if(count === 0 ) { //la tabla se inicializa solo si está vacía
			Quiz.create({ pregunta: 'Capital de Italia',
						  respuesta: 'Roma'
						})
			Quiz.create({ pregunta: 'Capital de Portugal',
						  respuesta: 'Lisboa'
						})
			.then(function(){console.log('Base de datos inicializada')});
		};
	});
});