text:
<?php

// src/Project/UserBundle/Form/Type/BackgroundType.php
namespace Project\UserBundle\Form\Type;

use Symfony\Component\OptionsResolver\OptionsResolverInterface;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;

class BackgroundType extends AbstractType
{
    public function buildForm(FormBuilderInterface $builder, array $options)
    {
        $builder

        ->add('name', 'text', array('label' => 'Nombre','required' => true))
        ->add('file', 'file', array('label' => 'Imagen','required' => false, 'attr' => array('accept' => 'image/*')))
        ->add('home', 'checkbox', array('label' => 'En el inicio', 'required' => false, 'attr' => array('class' => 'ace-switch') ))
        ->add('save', 'submit',array('label' => 'Guardar', 'attr' => array('class' => 'btn btn-info')));
    }

    public function setDefaultOptions(OptionsResolverInterface $resolver)
    {
        $resolver->setDefaults(array(
            'data_class' => 'Project\UserBundle\Entity\Background',
            ));
    }

    public function getName()
    {
        return 'background';
    }
}


text:
"""Auto-generated file, do not edit by hand. AR metadata"""
from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata

PHONE_METADATA_AR = PhoneMetadata(id='AR', country_code=None, international_prefix=None,
    general_desc=PhoneNumberDesc(national_number_pattern='[01389]\\d{1,4}', possible_length=(2, 3, 4, 5)),
    toll_free=PhoneNumberDesc(national_number_pattern='000|1(?:0[0-35-7]|1[0245]|2[015]|3[47]|4[478]|9)|911', example_number='19', possible_length=(2, 3)),
    emergency=PhoneNumberDesc(national_number_pattern='10[017]|911', example_number='100', possible_length=(3,)),
    short_code=PhoneNumberDesc(national_number_pattern='000|1(?:0[0-35-7]|1[02-5]|2[015]|3[47]|4[478]|9)|3372|89338|911', example_number='19', possible_length=(2, 3, 4, 5)),
    carrier_specific=PhoneNumberDesc(national_number_pattern='893\\d\\d', example_number='89300', possible_length=(5,)),
    sms_services=PhoneNumberDesc(national_number_pattern='(?:337|893\\d)\\d', example_number='3370', possible_length=(4, 5)),
    short_data=True)

redpajama_set_name: RedPajamaGithub


text: Empower skilled and experienced Service Managers to direct the redesign and operation of services


text:
module BaseTestNext

export @test, @test_throws
export @testset

#-----------------------------------------------------------------------
# All tests produce a result object, that may or may not be stored
# depending on whether the test is part of a test set. Parameteric
# on the test type (:test, :test_throws)
abstract Result

# Pass: condition was true
immutable Pass <: Result
    test_type::Symbol
    orig_expr::Expr
    expr::Expr
    value
end
function Base.show(io::IO, t::Pass)
    print_with_color(:green, io, "Test Passed\n")
    print(io, "  Expression: ", t.orig_expr)
    if t.test_type == :test && t.expr.head == :comparison
        # The test was an expression, so display the term-by-term
        # evaluated version as well
        print(io, "\n   Evaluated: ", t.expr)
    elseif t.test_type == :test_throws
        # The correct type of exception was thrown
        print(io, "\n      Thrown: ", t.value)
    end
end

# Fail: condition was false
type Fail <: Result
    test_type::Symbol
    orig_expr::Expr
    expr::Expr
    value
end
function Base.show(io::IO, t::Fail)
    print_with_color(:red, io, "Test Failed\n")
    print(io, "  Expression: ", t.orig_expr)
    if t.test_type == :test && t.expr.head == :comparison
        # The test was an expression, so display the term-by-term
        # evaluated version as well
        print(io, "\n   Evaluated: ", t.expr)
    elseif t.test_type == :test_throws
        # Either no exception, or wrong exception
        extest, occurred = t.value
        print(io, "\n    Expected: ", extest)
        print(io, "\n      Thrown: ", occurred)
    end
end

# Error: condition couldn't be evaluated due to an exception, or
# the result of the test wasn't a Boolean
type Error <: Result
    test_type::Symbol
    orig_expr::Expr
    value::Any
    backtrace::Any
end
function Base.show(io::IO, t::Error)
    print_with_color(:red, io, "Error During Test\n")
    if t.test_type == :test_nonbool
        println(io, "  Expression evaluated to non-Boolean")
        println(io, "  Expression: ", t.orig_expr)
        print(  io, "       Value: ", t.value)
    elseif t.test_type == :test_error
        println(io, "  Test threw an exception of type ", typeof(t.value))
        println(io, "  Expression: ", t.orig_expr)
        # Capture error message and indent to match
        errmsg = sprint(showerror, t.value, t.backtrace)
        print(io, join(map(line->string("  ",line),
                            split(errmsg, "\n")), "\n"))
    end
end

#-----------------------------------------------------------------------
# @test - check if the expression evaluates to true
# In the special case of a comparison, e.g. x == 5, evaluate each term
# in the comparison individually so the results can be displayed
"""
@test ex

Tests that the expression `ex` evaluates to `true`.
"""
macro test(ex)
    # If the test is a comparison
    if typeof(ex) == Expr && ex.head == :comparison
        # Generate a temporary for every term in the expression
        n = length(ex.args)
        terms = [gensym() for i in 1:n]
        # Create a new block that evaluates each term in the
        # comparison indivudally
        comp_block = Expr(:block)
        comp_block.args = [:(
                            $(terms[i]) = $(esc(ex.args[i]))
                            ) for i in 1:n]
        # The block should then evaluate whether the comparison
        # evaluates to true by splicing in the new terms into the
        # original comparsion. The block returns
        # - an expression with the values of terms spliced in
        # - the result of the comparison itself
        push!(comp_block.args, Expr(:return,
            :(  Expr(:comparison, $(terms...)),  # Terms spliced in
              $(Expr(:comparison,   terms...))   # Comparison itself
            )))
        # Return code that calls do_test with an anonymous function
        # that calls the comparison block
        :(do_test(()->($comp_block), $(Expr(:quote,ex))))
    else
        # Something else, perhaps just a single value
        # Return code that calls do_test with an anonymous function
        # that returns the expression and its value
        :(do_test(()->($(Expr(:quote,ex)), $(esc(ex))), $(Expr(:quote,ex))))
    end
end

function do_test(predicate, orig_expr)
    record(get_testset(),
    try
        # expr, in the case of a comparison, will contain the
        # comparison with evaluated values of each term spliced in.
        # For anything else, just contains the test expression.
        # value is the evaluated value of the whole test expression.
        # Ideally it is true, but it may be false or non-Boolean.
        expr, value = predicate()
        if isa(value, Bool)
            value ? Pass(:test, orig_expr, expr, value) :
                    Fail(:test, orig_expr, expr, value)
        else
            Error(:test_nonbool, orig_expr, value, nothing)
        end
    catch err
        Error(:test_error, orig_expr, err, catch_backtrace())
    end)
end

#-----------------------------------------------------------------------
# @test_throws - check if the expression causes an exception to be
# thrown, and that the exception is of the correct type.
"""
@test_throws extype ex

Tests that the expression `ex` throws an exception of type `extype`.
"""
macro test_throws(extype, ex)
    :(do_test_throws( ()->($(esc(ex))), $(Expr(:quote,ex)),
                      backtrace(), $(esc(extype)) ))
end

function do_test_throws(predicate, orig_expr, bt, extype)
    record(get_testset(),
    try
        predicate()
        # If we hit this line, no exception was thrown
        Fail(:test_throws, orig_expr, orig_expr, (extype, nothing))
    catch err
        # Check the right type of exception was thrown
        if isa(err, extype)
            Pass(:test_throws, orig_expr, orig_expr, extype)
        else
            Fail(:test_throws, orig_expr, orig_expr, (extype,err))
        end
    end)
end

#-----------------------------------------------------------------------
# All tests belong to a test set. There is a default, task-level
# test set that throws on first failure. Users can wrap their tests in
# nested test sets to achieve other behaviours like not failing
# immediately or writing test results in special formats.
include("testsets.jl")

end # module


text:
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Themes on Mainroad</title>
    <link>/tags/themes/</link>
    <description>Recent content in Themes on Mainroad</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-us</language>
    <lastBuildDate>Wed, 02 Apr 2014 00:00:00 +0000</lastBuildDate>

	<atom:link href="/tags/themes/index.xml" rel="self" type="application/rss+xml" />

    <item>
      <title>(Hu)go Template Primer</title>
      <link>/post/goisforlovers/</link>
      <pubDate>Wed, 02 Apr 2014 00:00:00 +0000</pubDate>

      <guid>/post/goisforlovers/</guid>
      <description>
Hugo uses the excellent go html/template library for
its template engine. It is an extremely lightweight engine that provides a very
small amount of logic. In our experience that it is just the right amount of
logic to be able to create a good static website. If you have used other
template systems from different languages or frameworks you will find a lot of
similarities in go templates.

</description>
    </item>

  </channel>
</rss>


text:
<?php
/*!
* WordPress Social Login
*
* http://miled.github.io/wordpress-social-login/ | https://github.com/miled/wordpress-social-login
*  (c) 2011-2014 Mohamed Mrassi and contributors | http://wordpress.org/plugins/wordpress-social-login/
*/

// Exit if accessed directly
if ( !defined( 'ABSPATH' ) ) exit;

// --------------------------------------------------------------------

function wsl_component_contacts_settings_setup()
{
	$sections = array(
		'google'    => 'wsl_component_contacts_settings_setup_google',
		'facebook'  => 'wsl_component_contacts_settings_setup_facebook',
		'twitter'   => 'wsl_component_contacts_settings_setup_twitter',
		'linkedin'  => 'wsl_component_contacts_settings_setup_linkedin',
		'live'      => 'wsl_component_contacts_settings_setup_live',
		'vkontakte' => 'wsl_component_contacts_settings_setup_vkontakte',
	);

	$sections = apply_filters( 'wsl_component_buddypress_setup_alter_sections', $sections );

	foreach( $sections as $section => $action )
	{
		add_action( 'wsl_component_contacts_settings_setup_sections', $action );
	}
?>

	<?php
		// HOOKABLE:
		do_action( 'wsl_component_contacts_settings_setup_sections' );
	?>

		<input type="submit" class="button-primary" value="<?php _wsl_e("Save Settings", 'wordpress-social-login') ?>" />

<?php
}

// --------------------------------------------------------------------

function wsl_component_contacts_settings_setup_google()
{
?>

		<?php _wsl_e("Google", 'wordpress-social-login') ?>

			<?php _wsl_e( 'To import Google\'s users contacts list you will have to go to https://console.developers.google.com, then APIs & auth > APIs and enable Contacts API', 'wordpress-social-login') ?>

		<select name="wsl_settings_contacts_import_google" <?php if( ! get_option( 'wsl_settings_Google_enabled' ) ) echo "disabled" ?> >
			<option <?php if( get_option( 'wsl_settings_contacts_import_google' ) == 1 ) echo "selected"; ?> value="1"><?php _wsl_e("Enabled", 'wordpress-social-login') ?></option>
			<option <?php if( get_option( 'wsl_settings_contacts_import_google' ) == 2 ) echo "selected"; ?> value="2"><?php _wsl_e("Disabled", 'wordpress-social-login') ?></option>
		</select>

<?php
}

// --------------------------------------------------------------------

function wsl_component_contacts_settings_setup_facebook()
{
?>

		<?php _wsl_e("Facebook", 'wordpress-social-login') ?>

			<?php _wsl_e( 'When enabled, Facebook\'s users will be asked for an extra permission to get access for their friends lists', 'wordpress-social-login') ?>

		<select name="wsl_settings_contacts_import_facebook" <?php if( ! get_option( 'wsl_settings_Facebook_enabled' ) ) echo "disabled" ?> >
			<option <?php if( get_option( 'wsl_settings_contacts_import_facebook' ) == 1 ) echo "selected"; ?> value="1"><?php _wsl_e("Enabled", 'wordpress-social-login') ?></option>
			<option <?php if( get_option( 'wsl_settings_contacts_import_facebook' ) == 2 ) echo "selected"; ?> value="2"><?php _wsl_e("Disabled", 'wordpress-social-login') ?></option>
		</select>

<?php
}

// --------------------------------------------------------------------

function wsl_component_contacts_settings_setup_twitter()
{
?>

		<?php _wsl_e("Twitter", 'wordpress-social-login') ?>

			<?php _wsl_e( 'This will only import the Twitter\'s users followed by the connected user on your website', 'wordpress-social-login') ?>

		<select name="wsl_settings_contacts_import_twitter" <?php if( ! get_option( 'wsl_settings_Twitter_enabled' ) ) echo "disabled" ?> >
			<option <?php if( get_option( 'wsl_settings_contacts_import_twitter' ) == 1 ) echo "selected"; ?> value="1"><?php _wsl_e("Enabled", 'wordpress-social-login') ?></option>
			<option <?php if( get_option( 'wsl_settings_contacts_import_twitter' ) == 2 ) echo "selected"; ?> value="2"><?php _wsl_e("Disabled", 'wordpress-social-login') ?></option>
		</select>

<?php
}

// --------------------------------------------------------------------

function wsl_component_contacts_settings_setup_linkedin()
{
?>

		<?php _wsl_e("LinkedIn", 'wordpress-social-login') ?>

			<?php _wsl_e( 'To import LinkedIn\'s users contacts list you will have to go to https://www.linkedin.com/secure/developer, then Default scope and check r_network', 'wordpress-social-login') ?>

		<select name="wsl_settings_contacts_import_linkedin" <?php if( ! get_option( 'wsl_settings_LinkedIn_enabled' ) ) echo "disabled" ?> >
			<option <?php if( get_option( 'wsl_settings_contacts_import_linkedin' ) == 1 ) echo "selected"; ?> value="1"><?php _wsl_e("Enabled", 'wordpress-social-login') ?></option>
			<option <?php if( get_option( 'wsl_settings_contacts_import_linkedin' ) == 2 ) echo "selected"; ?> value="2"><?php _wsl_e("Disabled", 'wordpress-social-login') ?></option>
		</select>

<?php
}

// --------------------------------------------------------------------

function wsl_component_contacts_settings_setup_live()
{
?>

		<?php _wsl_e("Windows Live", 'wordpress-social-login') ?>

		<select name="wsl_settings_contacts_import_live" <?php if( ! get_option( 'wsl_settings_Live_enabled' ) ) echo "disabled" ?> >
			<option <?php if( get_option( 'wsl_settings_contacts_import_live' ) == 1 ) echo "selected"; ?> value="1"><?php _wsl_e("Enabled", 'wordpress-social-login') ?></option>
			<option <?php if( get_option( 'wsl_settings_contacts_import_live' ) == 2 ) echo "selected"; ?> value="2"><?php _wsl_e("Disabled", 'wordpress-social-login') ?></option>
		</select>

<?php
}

// --------------------------------------------------------------------

function wsl_component_contacts_settings_setup_vkontakte()
{
?>

		<?php _wsl_e("Vkontakte", 'wordpress-social-login') ?>

		<select name="wsl_settings_contacts_import_vkontakte" <?php if( ! get_option( 'wsl_settings_Vkontakte_enabled' ) ) echo "disabled" ?> >
			<option <?php if( get_option( 'wsl_settings_contacts_import_vkontakte' ) == 1 ) echo "selected"; ?> value="1"><?php _wsl_e("Enabled", 'wordpress-social-login') ?></option>
			<option <?php if( get_option( 'wsl_settings_contacts_import_vkontakte' ) == 2 ) echo "selected"; ?> value="2"><?php _wsl_e("Disabled", 'wordpress-social-login') ?></option>
		</select>

<?php
}

// --------------------------------------------------------------------


text:
<?php

// An API key to use for testing.
define('TEST_API_KEY', 'your_api_key_here');

// A client ID to use for testing.
define('TEST_CLIENT_ID', 'any_client_id_here');


text:
export const MODULES_ANALYTICS_4 = 'modules/analytics-4';

export const PROPERTY_CREATE = 'property_create';
export const WEBDATASTREAM_CREATE = 'webdatastream_create';

export const MAX_WEBDATASTREAMS_PER_BATCH = 10;


text:
import sys, datetime, optparse

from core import pycore
from core.misc import ipaddr
from core.constants import *
from core.emane.ieee80211abg import EmaneIeee80211abgModel

# node list (count from 1)
n = [None]

def main():
    usagestr = "usage: %prog [-h] [options] [args]"
    parser = optparse.OptionParser(usage = usagestr)
    parser.set_defaults(numnodes = 5)

    parser.add_option("-n", "--numnodes", dest = "numnodes", type = int,
                      help = "number of nodes")

    def usage(msg = None, err = 0):
        sys.stdout.write("\n")
        if msg:
            sys.stdout.write(msg + "\n\n")
        parser.print_help()
        sys.exit(err)

    # parse command line options
    (options, args) = parser.parse_args()

    if options.numnodes < 1:
        usage("invalid number of nodes: %s" % options.numnodes)

    for a in args:
        sys.stderr.write("ignoring command line argument: '%s'\n" % a)

    start = datetime.datetime.now()

    # IP subnet
    prefix = ipaddr.IPv4Prefix("10.83.0.0/16")
    # session with some EMANE initialization
    cfg = {'verbose': 'false'}
    session = pycore.Session(cfg = cfg, persistent = False)
    session.master = True
    session.location.setrefgeo(47.57917,-122.13232,2.00000)
    session.location.refscale = 150.0
    session.cfg['emane_models'] = "RfPipe, Ieee80211abg, Bypass"
    session.emane.loadmodels()
    if 'server' in globals():
        server.addsession(session)

    # EMANE WLAN
    print "creating EMANE WLAN wlan1"
    wlan = session.addobj(cls = pycore.nodes.EmaneNode, name = "wlan1")
    wlan.setposition(x=80,y=50)
    names = EmaneIeee80211abgModel.getnames()
    values = list(EmaneIeee80211abgModel.getdefaultvalues())
    # TODO: change any of the EMANE 802.11 parameter values here
    try:
        values[ names.index('pathlossmode') ] = '2ray'
    except ValueError:
        values[ names.index('propagationmodel') ] = '2ray'

    session.emane.setconfig(wlan.objid, EmaneIeee80211abgModel._name, values)
    services_str = "zebra|OSPFv3MDR|vtysh|IPForward"

    print "creating %d nodes with addresses from %s" % \
          (options.numnodes, prefix)
    for i in xrange(1, options.numnodes + 1):
        tmp = session.addobj(cls = pycore.nodes.CoreNode, name = "n%d" % i,
                             objid=i)
        tmp.newnetif(wlan, ["%s/%s" % (prefix.addr(i), prefix.prefixlen)])
        tmp.cmd([SYSCTL_BIN, "net.ipv4.icmp_echo_ignore_broadcasts=0"])
        tmp.setposition(x=150*i,y=150)
        session.services.addservicestonode(tmp, "", services_str, verbose=False)
        n.append(tmp)

    # this starts EMANE, etc.
    session.node_count = str(options.numnodes + 1)
    session.instantiate()

    # start a shell on node 1
    n[1].term("bash")

    print "elapsed time: %s" % (datetime.datetime.now() - start)

if __name__ == "__main__" or __name__ == "__builtin__":
    main()


text:
<?php

use yii\helpers\Html;
use yii\grid\GridView;

/* @var $this yii\web\View */
/* @var $searchModel backend\models\ReferencePointsSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */

$this->title = 'Reference Points';
$this->params['breadcrumbs'][] = $this->title;
?>

<?= Html::encode($this->title) ?>

    <?php // echo $this->render('_search', ['model' => $searchModel]); ?>

        <?php //Html::a('Create Reference Points', ['create'], ['class' => 'btn btn-success']) ?>

    <?= GridView::widget([
        'dataProvider' => $dataProvider,
        'filterModel' => $searchModel,
        'columns' => [
            ['class' => 'yii\grid\SerialColumn'],

            ['attribute' => 'boothside.boothside_from', 'filterInputOptions' => ['placeholder' => 'Direction', 'class' => "form-control"]],
            'toll_axis',
            'lat',
            'lng',
            //'toll_ref_point_id',

            ['class' => 'yii\grid\ActionColumn'],
        ],
    ]); ?>


text:
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using CommonDomain;
using CommonDomain.Core;
using CommonDomain.Persistence;
using CommonDomain.Persistence.EventStore;
using EventStore;
using EventStore.Serialization;
using MongoDB.Bson.Serialization;
using NUnit.Framework;
using Sample.Domain.Inventory;
using Sample.Domain.Inventory.Domain;
using Sample.Domain.Inventory.Domain.Events;

// ReSharper disable InconsistentNaming

namespace Sample.Tests.DomainTests
{
    public class InnerBuilder : IConstructAggregates
    {
        public IAggregate Build(Type type, Guid id, IMemento snapshot)
        {
            var a = Activator.CreateInstance(type) as IAggregate;

            return a;
        }
    }

    [TestFixture]
    public class InventoryItemsTests
    {
        private Guid id = Guid.Parse("{022744D8-DAA7-4F36-B311-DF70F35B26FB}");
        private static IStoreEvents _store;

        [TestFixtureSetUp]
        public void Setup()
        {
            BsonClassMap.RegisterClassMap<InventoryItemCreated>();
            BsonClassMap.RegisterClassMap<InventoryItemStocked>();

            _store = Wireup.Init()
                .UsingMongoPersistence("demo", new DocumentObjectSerializer())
                .InitializeStorageEngine()
                .Build();
        }

        [Test]
        public void can_create_new_item()
        {
            var item = new InventoryItem(
                id,
                "001",
                "Sample Item"
            );

            Assert.NotNull(item.ItemId);
        }

        [Test,Explicit]
        public void save_to_storage()
        {
            var item = new InventoryItem(
                id,
                "001",
                "Sample Item"
            );

            using (var r = BuildRepository())
            {
                r.Save(item, Guid.NewGuid());
            }
        }

        private EventStoreRepository BuildRepository()
        {
            return new EventStoreRepository(_store, new InnerBuilder(), new ConflictDetector());
        }

        [Test,Explicit]
        public void load_from_storage()
        {
            using (var r = BuildRepository())
            {
                var item = r.GetById<InventoryItem>(id);

                Assert.AreEqual(id, item.Id);
                Assert.AreEqual("Sample Item", item.Description);
            }
        }

        [Test,Explicit]
        public void receive_items()
        {
            decimal currentQty = 0;
            using (var r = BuildRepository())
            {
                var item = r.GetById<InventoryItem>(id);
                currentQty = item.Quantity;
                item.Stock(100);
                r.Save(item, Guid.NewGuid());
            }

            using (var r = BuildRepository())
            {
                var item = r.GetById<InventoryItem>(id);
                Assert.AreEqual(currentQty + 100, item.Quantity);
            }
        }

        [Test,Explicit]
        public void massive_save_to_storage()
        {
            var s = new Stopwatch();
            s.Start();
            Parallel.ForEach(Enumerable.Range(1, 10000), x =>
                                                             {
                                                                 using (var r = BuildRepository())
                                                                 {
                                                                     var item = new InventoryItem(
                                                                         Guid.NewGuid(),
                                                                         "001",
                                                                         "Sample Item"
                                                                     );

                                                                     r.Save(item, item.Id);
                                                                 }
                                                             });
            s.Stop();
            Debug.WriteLine("Elapsed " + s.ElapsedMilliseconds / 1000.0);
        }
    }
}


text:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using Newtonsoft.Json;

using CWEBot.Interfaces;
namespace CWEBot.Extract.OSSIndex
{
    public class ExtractedRecord : IRecord
    {
        #region Properties
        [JsonProperty("pm")]
        public string PackageManager { get; set; }

        [JsonProperty("pid")]
        public long PackageId { get; set; }

        [JsonProperty("name")]
        public string PackageName { get; set; }

        public long VulnerabilityId { get; set; }

        public string Title { get; set; }

        public string Description { get; set; }

        public string[] References { get; set; }

        public DateTime Published { get; set; }

        [JsonIgnore]
        public int? CWEId { get; set; }

        [JsonProperty("updated")]
        public DateTime Updated { get; set; }
        #endregion

        #region Methods
        public static implicit operator Record(ExtractedRecord er)
        {
            return new Record()
            {
                CWEId = er.CWEId,
                Title = er.Title,
                Description = er.Description,
                Published = er.Published,
                References = er.References,
                VulnerabilityId = er.VulnerabilityId
            };
        }
        #endregion
    }
    public class ExtractedRecordComparator : IEqualityComparer<ExtractedRecord>
    {
        public bool Equals(ExtractedRecord r1, ExtractedRecord r2)
        {
            return r1.VulnerabilityId == r2.VulnerabilityId;

        }

        public int GetHashCode(ExtractedRecord r)
        {
            return r.VulnerabilityId.GetHashCode();
        }
    }
}


text: export var nls = {};


text:
CREATE TABLE user
(
    user_id       INTEGER PRIMARY KEY AUTO_INCREMENT NOT NULL,
    username      VARCHAR(255) DEFAULT NULL UNIQUE,
    firstname      VARCHAR(255) NOT NULL,
    lastname      VARCHAR(255) NOT NULL,
    email         VARCHAR(255) DEFAULT NULL UNIQUE,
    display_name  VARCHAR(50) DEFAULT NULL,
    password      VARCHAR(128) NOT NULL,
    state         SMALLINT
) ENGINE=InnoDB;


text:
from django.conf.urls import include, url
from django.contrib import admin

urlpatterns = [
    url(r'', include('booking.urls')),
    url(r'^admin/', include(admin.site.urls)),
]


text:
package org.jbehave.examples.core.annotations;

import static org.jbehave.core.io.CodeLocations.codeLocationFromPath;

import java.util.List;

import org.jbehave.core.io.StoryFinder;
import org.jbehave.core.steps.InjectableStepsFactory;
import org.jbehave.core.steps.ScanningStepsFactory;
import org.jbehave.examples.core.CoreStories;

/**
 * <p>
 * Example of how multiple stories can be run via JUnit, finding steps
 * via the {@link ScanningStepsFactory}.
 * </p>
 */
public class CoreStoriesUsingScanning extends CoreStories {

    @Override
    public InjectableStepsFactory stepsFactory() {
        return new ScanningStepsFactory(configuration(), "org.jbehave.examples.core.steps").notMatchingNames(".*Failing.*");
    }

    @Override
    protected List<String> storyPaths() {
        return new StoryFinder().findPaths(codeLocationFromPath("../core/src/main/java"), "**/*.story", "");
    }

}


text:
import hashlib
import os
import image_dl

pool=None
hbase_conn_timeout=None
tab_aaron_name='aaron_memex_ht-images'
# After import do
#pool = happybase.ConnectionPool(size=12,host='10.1.94.57',timeout=hbase_conn_timeout)
#sha1_tools.pool = pool
#global_var = json.load(open('../../conf/global_var_all.json'))
#sha1_tools.global_var = global_var

def get_SHA1_from_MySQL(image_id):
    res_sha1 = None
    if image_id:
        # minimize the number of global variables using only global_var
        localhost=global_var['local_db_host']
        localuser=global_var['local_db_user']
        localpwd=global_var['local_db_pwd']
        localdb=global_var['local_db_dbname']
        # query
        db=MySQLdb.connect(host=localhost,user=localuser,passwd=localpwd,db=localdb)
        c=db.cursor()
        #sql='SELECT sha1 FROM uniqueIds WHERE htid=\"{}\"'.format(image_id)
        sql='SELECT sha1 FROM uniqueIds JOIN fullIds ON fullIds.uid=uniqueIds.htid WHERE fullIds.htid=\"{}\"'.format(image_id)
        #print sql
        c.execute(sql)
        res=c.fetchall()
        if res:
            res_sha1=res[0][0]
    return res_sha1

def get_batch_SHA1_from_mysql(image_ids):
    if len(image_ids)==0 or type(image_ids)!=list:
        return [None]
    if type(image_ids[0])!=str:
        image_ids = [str(iid) for iid in image_ids]
    res_sha1 = [None]*len(image_ids)
    if image_ids:
        # minimize the number of global variables using only global_var
        localhost=global_var['local_db_host']
        localuser=global_var['local_db_user']
        localpwd=global_var['local_db_pwd']
        localdb=global_var['local_db_dbname']
        # query with these ids
        db=MySQLdb.connect(host=localhost,user=localuser,passwd=localpwd,db=localdb)
        c=db.cursor()
        #sql='SELECT sha1,htid FROM uniqueIds WHERE htid IN (%s)'
        sql='SELECT sha1,fullIds.htid FROM uniqueIds JOIN fullIds ON fullIds.uid=uniqueIds.htid WHERE fullIds.htid IN (%s)' % (','.join(image_ids),)
        #print sql
        #c.execute(sql, (','.join(image_ids),))
        c.execute(sql)
        res=c.fetchall()
        #print res
        for row in res:
            #print row
            res_sha1[image_ids.index(str(row[1]))]=row[0]
    return res_sha1

def get_SHA1_from_file(filepath,delete_after=False):
    sha1hash = None
    try:
        sha1 = hashlib.sha1()
        f = open(filepath, 'rb')
        sha1.update(f.read())
        f.close()
        sha1hash = sha1.hexdigest().upper()
    except:
        print "Could not open file {}.".format(filepath)
    if delete_after:
        try:
            os.unlink(filepath)
        except:
            print "Could not delete file {}.".format(filepath)
    return sha1hash

def get_SHA1_from_data(data):
    sha1hash = None
    import hashlib
    try:
        sha1 = hashlib.sha1()
        sha1.update(data)
        sha1hash = sha1.hexdigest().upper()
    except:
        print "Could not read data to compute SHA1."
    return sha1hash

def get_SHA1_from_URL(one_url,delete_after=False):
    sha1hash = None
    localpath = image_dl.dlimage(one_url)
    # compute sha1
    if localpath:
        # True for delete after
        sha1hash = get_SHA1_from_file(localpath,True)
    return sha1hash

def compute_SHA1_for_image_id_from_tab_aaron(image_id,tab_aaron_name=tab_aaron_name,logf=None):
    global pool, hbase_conn_timeout
    sha1hash = None
    # get image url
    with pool.connection(timeout=hbase_conn_timeout) as connection:
        tab_aaron = connection.table(tab_aaron_name)
        one_row = tab_aaron.row(str(image_id))
    #print one_row
    one_url = one_row['meta:location']
    if not one_url:
        # save the info that the URL is empty somewhere?
        pass
    else: # download
        localpath = image_dl.dlimage(one_url,logf)
        # compute sha1
        if localpath:
            # True for delete after
            sha1hash = get_SHA1_from_file(localpath,True)
        else:
            if logf:
                logf.write("Could not download image from URL {} of image_id {}.\n".format(one_url,image_id))
            else:
                print "Could not download image from URL {} of image_id {}.".format(one_url,image_id)
    return sha1hash

def compute_SHA1_for_cdr_id_from_tab_samples(cdr_id,tab_samples_name,logf=None):
    global pool, hbase_conn_timeout
    sha1hash = None
    # get image url
    with pool.connection(timeout=hbase_conn_timeout) as connection:
        tab_samples = connection.table(tab_samples_name)
        one_row = tab_samples.row(cdr_id)
    #print one_row
    doc = one_row['images:images_doc']
    jd = json.loads(doc)
    one_url = jd['obj_stored_url']
    if not one_url:
        # save the info that the URL is empty somewhere?
        pass
    else: # download
        localpath = image_dl.image(one_url,logf)
        # compute sha1
        if localpath:
            # True for delete after
            sha1hash = get_SHA1_from_file(localpath,True)
        else:
            if logf:
                logf.write("Could not download image from URL {} of cdrid {}.\n".format(one_url,cdr_id))
            else:
                print "Could not download image from URL {} of cdrid {}.".format(one_url,cdr_id)
    return sha1hash

def get_SHA1_from_hbase_imagehash(image_id,tab_hash_name='image_hash'):
    global pool, hbase_conn_timeout
    hash_row = None
    sha1hash = None
    if image_id:
        with pool.connection(timeout=hbase_conn_timeout) as connection:
            tab_hash = connection.table(tab_hash_name)
            hash_row = tab_hash.row(str(image_id))
    if hash_row:
        sha1hash = hash_row['image:hash']
    return sha1hash

def get_SHA1_from_image_id_or_cdr_id(image_id,cdr_id,tab_hash_name='image_hash',logf=None):
    if image_id:
        sha1hash = get_SHA1_from_hbase_imagehash(image_id,tab_hash_name)
    if not sha1hash:
        # HBase Hash row is empty. Trying to get SHA1 from MySQL.
        # Why batch here?
        #sha1hash = get_batch_SHA1_from_mysql(image_id)
        sha1hash = get_SHA1_from_MySQL(image_id)
        # Or recompute from image if failed.
        if not sha1hash and cdr_id:
            #print "Could not get SHA1 from MYSQL. Recomputing..."
            sha1hash = compute_SHA1_for_cdr_id_from_tab_samples(cdr_id,tab_samples_name,logf)
    return sha1hash

def save_SHA1_to_hbase_cdrid_sha1(cdr_id,sha1hash,tab_cdrid_sha1_name='ht_images_cdrid_to_sha1'):
    global pool, hbase_conn_timeout
    # new table indexed by cdrid
    if cdr_id and sha1hash and sha1hash!='NULL':
        with pool.connection(timeout=hbase_conn_timeout) as connection:
            tab_cdr_hash = connection.table(tab_cdrid_sha1_name)
            tab_cdr_hash.put(str(cdr_id), {'hash:sha1': sha1hash})

def save_SHA1_to_hbase_imagehash(image_id,sha1hash,tab_hash_name='image_hash'):
    global pool, hbase_conn_timeout
    # old table indexed by htid 'tab_hash'
    if image_id and sha1hash and sha1hash!='NULL':
        with pool.connection(timeout=hbase_conn_timeout) as connection:
            tab_hash = connection.table(tab_hash_name)
            tab_hash.put(str(image_id), {'image:hash': sha1hash})

def save_SHA1_to_hbase(image_id,cdr_id,sha1hash,tab_hash_name='image_hash',tab_cdrid_sha1_name='ht_images_cdrid_to_sha1'):
    # save in the two tables
    save_SHA1_to_hbase_imagehash(image_id,sha1hash,tab_hash_name)
    save_SHA1_to_hbase_cdrid_sha1(cdr_id,sha1hash,tab_cdrid_sha1_name)

def save_missing_sha1(image_id,cdr_id,tab_missing_sha1_name='ht_images_missing_sha1'):
    global pool, hbase_conn_timeout
    with pool.connection(timeout=hbase_conn_timeout) as connection:
        tab_missing_sha1 = connection.table(tab_missing_sha1_name)
        # TODO maybe list of info:cdr_id if already exists?
        if not tab_missing_sha1.row(str(image_id)):
            tab_missing_sha1.put(str(image_id), {'info:cdr_id': str(cdr_id)})

def get_batch_SHA1_from_imageids(image_ids,tab_hash_name='image_hash',logf=None):
    global pool, hbase_conn_timeout
    #print image_id,cdr_id
    if not image_ids:
        #logf.write("[get_batch_SHA1_from_imageids] image_ids is empty!\n")
        return None, None, None
    str_image_ids=[str(iid) for iid in image_ids if str(iid)]
    if not str_image_ids:
        #logf.write("[get_batch_SHA1_from_imageids] str_image_ids is empty!\n")
        return None, None, None
    hash_rows = None
    #if logf:
    #    logf.write("Looking for images: {}\n".format(",".join(str_image_ids)))
    with pool.connection(timeout=hbase_conn_timeout) as connection:
        # if logf:
        #     logf.write("Connection opened on port: {}\n".format(connection.port))
        tab_hash = connection.table(tab_hash_name)
        hash_rows = tab_hash.rows(str_image_ids)
    sha1hash=[]
    misssing_sha1=[]
    stillmissing_sha1=[]
    stillstillmissing_sha1=[]
    new_sha1=[]
    # check if we have all sha1 requested
    if len(hash_rows)==len(str_image_ids):
        # hash_rows should have kept the order of image_ids
        for iid,sha1 in hash_rows:
            sha1hash.append(sha1['image:hash'])
    else:
        # fill whatever we got up to now
        sha1hash=[None]*len(str_image_ids)
        for iid,sha1 in hash_rows:
            sha1hash[str_image_ids.index(iid)]=sha1['image:hash']
        missing_sha1=[str_image_ids[iid] for iid in range(len(str_image_ids)) if sha1hash[iid] is None]
        # try to get the missing sha1 form mysql...
        if missing_sha1:
            sha1hash_sql = get_batch_SHA1_from_mysql(missing_sha1)
            for missid,iid in enumerate(missing_sha1):
                if sha1hash_sql[missid] is not None:
                    sha1hash[str_image_ids.index(iid)]=sha1hash_sql[missid]
                else:
                    stillmissing_sha1.append(iid)
        # trying to compute SHA1 from aaron's table location field
        if stillmissing_sha1:
            for missid,iid in enumerate(stillmissing_sha1):
                sha1hash_aaron = compute_SHA1_for_image_id_from_tab_aaron(str_image_ids.index(iid))
                if sha1hash_aaron is not None:
                    sha1hash[str_image_ids.index(iid)]=sha1hash_aaron
                else:
                    stillstillmissing_sha1.append(iid)
    if len(hash_rows)!=len(str_image_ids) and [sha1 is not None for sha1 in sha1hash].count(True)>len(hash_rows):
        sha1_hbase=[]
        for iid,sha1 in hash_rows:
            sha1_hbase.append(iid)
        new_sha1=[(str_image_ids[lid],sha1) for lid,sha1 in enumerate(sha1hash) if sha1 is not None and str_image_ids[lid] not in sha1_hbase]
    return sha1hash,stillstillmissing_sha1,new_sha1

def save_missing_SHA1_to_hbase_missing_sha1(missing_sha1,tab_missing_sha1_name='ht_images_missing_sha1'):
    global pool, hbase_conn_timeout
    # save the missing sha1
    if missing_sha1:
        with pool.connection(timeout=hbase_conn_timeout) as connection:
            tab_missing_sha1 = connection.table(tab_missing_sha1_name)
            b = tab_missing_sha1.batch()
            for image_id in missing_sha1:
                b.put(str(image_id), {'info:cdr_id': ''})
            b.send()

def check_sha1(sha1):
    if sha1 is None or sha1=="NULL" or sha1=="null" or sha1==u'None' or sha1=='None':
        return False
    else:
        return True

def save_batch_SHA1_to_hbase_image_hash(new_sha1,tab_hash_name='image_hash'):
    global pool, hbase_conn_timeout
    # save the new sha1 we got
    with pool.connection(timeout=hbase_conn_timeout) as connection:
        tab_hash = connection.table(tab_hash_name)
        b = tab_hash.batch()
        for image_id,sha1 in new_sha1:
            # save only valid sha1
            if check_sha1(sha1):
                b.put(str(image_id), {'image:hash': sha1})
        b.send()


text:
<?xml version="1.0" encoding="UTF-8"?>
<project>
  <property name="jnlp.title"    value="JST DisableComboPopupByVerifier" />
  <property name="jnlp.Name"     value="DisableComboPopupByVerifier" />
  <property name="jnlp.name"     value="disablecombopopupbyverifier" />
  <property name="jnlp.codebase" value="https://ateraimemo.com/swing/disablecombopopupbyverifier/" />
  <property name="jnlp.homepage" value="https://ateraimemo.com/Swing/DisableComboPopupByVerifier.html" />
</project>


text:
.edit_slide_wrapper .timeline	{
	width:410px;
	height:10px;
	background:url(../images/timeline.png) repeat-x 0px 0px;
	position:relative;

	margin:20px 20px 40px;

	z-index:10;
}

.slide_layer .icon_cross{
	background-image:url(../images/cross.png);
	width:24px;
	height:24px;
	background-repeat:no-repeat;
	position:absolute;
	top:0px;
	left:0px;
	  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
	  filter: alpha(opacity=0);
	  -moz-opacity: 0.0;
	  -khtml-opacity: 0.0;
	  opacity: 0.0;

}

.layer_selected .icon_cross	{
	  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=8)";
	  filter: alpha(opacity=8);
	  -moz-opacity: 0.8;
	  -khtml-opacity: 0.8;
	  opacity: 0.8;

}

.edit_slide_wrapper .timeline .mintime	{
	font-color:#777;
	font-size:10px;
	position:absolute;
	top:20px;
	left:-20px;
	white-space:no-wrap;
	width:40px; text-align:center;
}

.edit_slide_wrapper .layertime {
	position:absolute;
	top:1px;
	height:9px;
	background:rgba(60,147,154,0.4);
	xwidth:300px;left:10px;
	display:none;
}

.edit_slide_wrapper .layertime.layertime-error{
	background:rgba(157,23,23,0.4);
}

.edit_slide_wrapper .timeline .maxtime	{
	font-color:#777;
	font-size:10px;
	position:absolute;
	top:20px;
	white-space:no-wrap;
	width:40px; text-align:center;
	right:-20px;
}

.list-settings hr	{	width:100%;
						clear:both;
						border-top: 1px solid #DDD;
						border-bottom: 1px solid white;
						margin-bottom:0px;
					}

span.setting_text	{	line-height:24px;}

span.setting_text_2	{	color:#ACA899;
						line-height: 10px;
						font-size: 11px;
}

.edit_slide_wrapper .attribute_title	{
											clear:both;padding-bottom:0px !important;
										}

/************************************************************/

.edit_layers_left{
	width:450px;
	float:left;
}

.edit_layers_right{
	width:450px;
	float:left;
	margin-left:20px;
}

#link_slider_settings{
	font-size:18px;
	padding-left:50px;
}

.edit_slide_wrapper .slide_layers{
	border:1px solid black;
	overflow:hidden;
	background-position:center center;
	background-repeat:no-repeat;
	position:relative;
	float:left;
	background-size:cover;
}

.slide_layers.trans_bg{
	background-image:url(../images/trans_tile2.png) !important;
	background-repeat:repeat !important;
	background-size:cover;
	background-size:auto !important;
}

.edit_slide_wrapper .caption{
	font-weight:bold;
}

.slide_layers .slide_layer{
	position:absolute;
	white-space:nowrap;
}

/* video layer */

.slide_layer .slide_layer_video{
	background-color:black;
	position:relative;
	background-repeat:no-repeat;
	background-position:center center;
}

.slide_layer .video-layer-inner{
	height:100%;
	width:100%;
	background-repeat:no-repeat;
	background-position:right bottom;
}

.slide_layer .video-icon-youtube{
	background-image:url(../images/icon_youtube.png);
}

.slide_layer .video-icon-vimeo{
	background-image:url(../images/icon_vimeo.png);
}

.slide_layer .video-icon-html5{
	background-image:url(../images/icon_html5.png);
}

.slide_layer_video .layer-video-title{
	color:white;
	padding:10px;
	text-align:center;
}

.ui-draggable{
	cursor:move;
}

.edit_layers_left .area-layer-params{
	width:415px;
	height:80px;
}

.edit_layers_left .textbox-caption{
	width:170px;
}

#layer_captions_down{
	margin-top:1px;
	width:26px;
	height:21px;
	float:left;
	cursor:pointer;
}

#layer_captions_down span{
	margin-top:2px;
	margin-left:5px;
}

#button_edit_css{
	float:right;
	margin-right:10px;
}

.edit_layers_left .setting_text{
	min-width:60px;
}

.edit_layers_left .text-disabled{
	color:#ACA899;
}

#divLayers .layer_selected{
	/* glow on selected */
	box-shadow: 0 0 8px #DDE573;
    -webkit-box-shadow: 0 0 8px #DDE573;
    -moz-box-shadow: 0 0 8px #DDE573;
}

.layer_sortbox{
	width:460px;
	min-height:266px;
}

.layer_sortbox input.sortbox_time,		/* sortbox inputboxes */
.layer_sortbox input.sortbox_depth
{
	float:right;
	width:40px;
	background-color:#EBEBEB;
	border:1px solid #E0E0E0;
	color:#04076A;
}

.layer_sortbox input.sortbox_depth{
	width:28px;
	cursor:default;
}

.layer_sortbox .sortbox_eye{
	width:20px;
	height:14px;
	background:url(../images/eyes.png) no-repeat;
	float:right;
	margin-top:5px;
	margin-left:3px;
	margin-right:3px;
	cursor:pointer;
}

.sortlist li.sortitem-hidden .sortbox_eye{
	/* IE 8 */
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";

  /* IE 5-7 */
  filter: alpha(opacity=50);

  /* Netscape */
  -moz-opacity: 0.5;

  /* Safari 1.x */
  -khtml-opacity: 0.5;

  /* Good browsers */
  opacity: 0.5;
}

.sortlist li.sortitem-hidden .sortbox_text{
	color:#B9A8B9;
}

.sortlist li.sortitem-hidden{
	background-image:none;
	background-color:#FFF0E6;
}

.sortlist{
	padding:0px;
	margin:0px;
}

.sortlist li span.ui-icon{
	float:right;
	margin-top:4px;
}

.sortlist li{
	padding-left:4px;
	cursor:move;
	min-height:17px;
}

.sortlist li .sortbox_text{
	display:block;
	float:left;
	padding-top:4px;
	padding-bottom:4px;
}

/* ------ Layer Sorting Button ---- */

#button_sort_visibility{
	width:20px;
	height:14px;
	background:url(../images/eyes.png) no-repeat;
	cursor:pointer;
	float:right;
	margin-top:5px;
	margin-right:5px;
	margin-left:3px;
}

#button_sort_visibility.e-disabled {
	/* IE 8 */
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";

  /* IE 5-7 */
  filter: alpha(opacity=50);

  /* Netscape */
  -moz-opacity: 0.5;

  /* Safari 1.x */
  -khtml-opacity: 0.5;

  /* Good browsers */
  opacity: 0.5;
}

.layer_sortbox .button_sorttype{
	width:70px;
	float:right;
	height:20px;
	text-align:center;
	margin-right:10px;
	margin-top:2px;
}

.layer_sortbox .button_sorttype.ui-state-hover{
	cursor:pointer;
}

.layer_sortbox .button_sorttype.ui-state-active{
	cursor:default;
}

.layer_sortbox .button_sorttype span{
	display:block;
	padding:0px;
	margin:0px;
	float:none;
	margin-top:3px;
	text-align:center;
}

.slide_update_button_wrapper{
	float:left;
	width:110px;
}

.slider_update_button_wrapper{
	float:left;
	width:115px;
	margin-top:2px;
}

.slide_update_button_wrapper div{
	float:left;
}

#button_save_slide{
	display:block;
	width:73px;
	margin:0px;
	float:left;
}

#button_close_slide{
	display:block;
	float:left;
}

.edit_layers_left .list_settings li .setting_text{
	min-width:70px;
}

.setting-disabled{
	color:#B9A8B9;
}

#layer_caption.setting-disabled{
	color:#B9A8B9;
}

/* ============================================= */
/*   		Layer Form Position 				 */
/* ============================================= */

#layer_left_row{
	float:left;
}

#layer_left_row .setting_text,
#layer_top_row .setting_text{
	min-width:10px;
	width:10px;
}

#layer_top_row{
	float:left;
	margin-left:15px;
}

#button_edit_video_row{
	float:left;
	margin-right:10px;
	clear:left;
}

#button_change_image_source_row{
	float:left;
	margin-right:10px;
	clear:both;
}

#button_edit_video{
	cursor:pointer;
}

#layer_animation_row{
	clear:both;
	float:left;
}

#layer_easing_row{
	float:right;
	margin-right:10px;
}

#layer_easing_row .setting_text{
	min-width:50px;
	width:50px;
}

#layer_hidden_row{
	float:left;
	margin-left:0px;
}

#layer_speed_row{
	clear:left;
	float:left;
}

#layer_slide_link_row{
	clear:both;
}

#layer_resizeme_row{
	float:left;
}

#layer_hidden_row{
	float:left;
	margin-left:26px;
}

#linkInsertButton{
	float:right;
	margin-right:8px;
	padding:0px;
	padding-bottom:2px;
	font-size:11px;
	text-decoration:none;
	cursor:pointer;
}

#linkInsertButton.disabled{
	color:#ACA899;
	cursor:default;
}

.list-buttons li{
	float:left;
	margin-left:10px;
}

/* ============================================= */
/*   		End Params Layer Form Part			 */
/* ============================================= */

.link_show_params{
	margin-left:70px;
}

.link_show_advanced_params{
	margin-left:20px;
}

.link_show_params.button-selected{
	color:green;
}

#layer_endtime_row{

}

#layer_endanimation_row{
	float:left;
}

#layer_endeasing_row{
	float:right;
	xmargin-right:10px;
}

#layer_endeasing_row .setting_text{
	width:50px;
	min-width:50px;
}

#layer_endtime_row{
	float:left;
	margin-left: 78px;

}

#layer_endspeed_row{
	float:left;
	clear:left;
}

#layer_cornerleft_row{
	float:left;
}

#layer_cornerright_row{
	float:right;
	margin-right:10px;
}

/* ============================================= */
/*   		Align Table							 */
/* ============================================= */

.align_table_wrapper{
	clear:both;
	float:left;
	margin-right:20px;
}

.align_table{
	table-collapse:collapse;
}

.align_table td{
	border:1px solid black;
	padding:2px;
}

.align_table td a{
	text-decoration:none;
	display:block;
	width:20px;
	height:20px;
	background-color:#888;
}

.align_table td a:hover{
	background-color:#cfcfcf;
}

.align_table td a.selected{
	background-color:#cfcfcf;
	cursor:default;
}

.align_table td a.selected:hover{
	cursor:default;
	background-color:#cfcfcf;
}

.align_table.table_disabled td{
	border:1px solid #ACACAC;
}

.align_table.table_disabled td a{
	background-color:#ACACAC;
	cursor:default;
}

.align_table.table_disabled td a:hover{
	background-color:#ACACAC;
}

/******************************
	-	SPECIALS	-
********************************/

.tp-closedatstart	{	display:none;}

#layer_link_open_in_row	{	float:left;}

.depthselected .sortbox_time	{	  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";
							  			filter: alpha(opacity=50);
							  			-moz-opacity: 0.5;
							  			-khtml-opacity: 0.5;
							  			opacity: 0.5;
							  	}

.timeselected .sortbox_depth		{	  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";
								  filter: alpha(opacity=50);
								  -moz-opacity: 0.5;
								  -khtml-opacity: 0.5;
								  opacity: 0.5;
								}

.timeselected .sortbox_time,
.depthselected .sortbox_depth	{	background:#fff !important;}


text:
Gavel

Gavel tells you whether an actual HTTP message is valid against an expected HTTP message.

## Install

```bash
npm install gavel
```

## Usage

### CLI

```bash
# (Optional) Record HTTP messages
curl -s --trace - http://httpbin.org/ip | curl-trace-parser > expected
curl -s --trace - http://httpbin.org/ip | curl-trace-parser > actual

# Perform the validation
cat actual | gavel expected
```

> **Gavel CLI is not supported on Windows**. Example above uses [`curl-trace-parser`](https://github.com/apiaryio/curl-trace-parser).

### NodeJS

```js
const gavel = require('gavel');

// Define HTTP messages
const expected = {
  statusCode: 200,
  headers: {
    'Content-Type': 'application/json'
  }
};

const actual = {
  statusCode: 404,
  headers: {
    'Content-Type': 'application/json'
  }
};

// Perform the validation
const result = gavel.validate(expected, actual);
```

The code above would return the following validation `result`:

```js
{
  valid: false,
  fields: {
    statusCode: {
      valid: false,
      kind: 'text',
      values: {
        expected: '200',
        actual: '404'
      },
      errors: [
        {
          message: `Expected status code '200', but got '404'.`
        }
      ]
    },
    headers: {
      valid: true,
      kind: 'json',
      values: {
        expected: {
          'Content-Type': 'application/json'
        },
        actual: {
          'Content-Type': 'application/json'
        }
      },
      errors: []
    }
  }
}
```

### Usage with JSON Schema

> When a parsable JSON body is expected without an explicit schema the [default schema](https://github.com/apiaryio/gavel-spec/blob/master/features/expectations/bodyJsonExample.feature) is inferred.

You can describe the body expectations using [JSON Schema](https://json-schema.org/) by providing a valid schema to the `bodySchema` property of the expected HTTP message:

```js
const gavel = require('gavel');

const expected = {
  bodySchema: {
    type: 'object',
    properties: {
      fruits: {
        type: 'array',
        items: {
          type: 'string'
        }
      }
    }
  }
};

const actual = {
  body: JSON.stringify({
    fruits: ['apple', 'banana', 2]
  })
};

const result = gavel.validate(expected, actual);
```

The validation `result` against the given JSON Schema will look as follows:

```js
{
  valid: false,
  fields: {
    body: {
      valid: false,
      kind: 'json',
      values: {
        actual: "{\"fruits\":[\"apple\",\"banana\",2]}"
      },
      errors: [
        {
          message: `At '/fruits/2' Invalid type: number (expected string)`,
          location: {
            pointer: '/fruits/2'
          }
        }
      ]
    }
  }
}
```

### Supported JSON Schema versions

- [JSON Schema Draft 7](https://json-schema.org/specification-links.html#draft-7)
- [JSON Schema Draft 6](https://json-schema.org/specification-links.html#draft-6)
- [JSON Schema Draft 4](https://json-schema.org/specification-links.html#draft-4)

## Examples

Take a look at the [Gherkin](https://cucumber.io/docs/gherkin/) specification, which describes on examples how validation of each field behaves:

- [`method`](https://github.com/apiaryio/gavel-spec/blob/master/features/javascript/fields/method.feature)
- [`uri`](https://github.com/apiaryio/gavel-spec/blob/master/features/javascript/fields/uri.feature)
- [`statusCode`](https://github.com/apiaryio/gavel-spec/blob/master/features/javascript/fields/statusCode.feature)
- [`headers`](https://github.com/apiaryio/gavel-spec/blob/master/features/javascript/fields/headers.feature)
- [`body`](https://github.com/apiaryio/gavel-spec/blob/master/features/javascript/fields/body.feature)
- [`bodySchema`](https://github.com/apiaryio/gavel-spec/blob/master/features/javascript/fields/bodySchema.feature)

## Type definitions

Gavel ships with [TypeScript type definitions](./typings.d.ts). Please refer to the definitions file for more details.

## API

- `validate(expected: HttpMessage, actual: HttpMessage): ValidationResult`

## License

[MIT](LICENSE)


text:
const { client } = require('nightwatch-cucumber')
const { Given, Then, When } = require('cucumber')

Given(/^I open Google`s search page$/, () => {
  return client
    .url('http://google.com')
    .waitForElementVisible('body', 1000)
})
When(/^I search for "(.*?)"$/, (text) => {
  return client
    .setValue('input[name=q]', text)
    .submitForm('input[name=q]')
})
Then(/^the search result should contain "(.*?)"$/, (text) => {
  return client.assert.containsText('body', text)
})


text:
from __future__ import unicode_literals

from django.db import migrations, models
import django.utils.timezone

class Migration(migrations.Migration):

    dependencies = [
        ('feer', '0006_auto_20160116_2137'),
    ]

    operations = [
        migrations.AddField(
            model_name='orderitem',
            name='drink_date',
            field=models.DateField(default=django.utils.timezone.now, verbose_name='drink date'),
            preserve_default=False,
        ),
    ]


text:
if [ -f ~/.coverity ] ; then
    source ~/.coverity
fi

if [ "${COV_SCAN_EMAIL+x}" != "x" ] ; then
    echo "[ERROR] COV_SCAN_EMAIL needs to be set."
    cov_error=true
fi
if [ "${COV_SCAN_TOKEN+x}" != "x" ] ; then
    echo "[ERROR] COV_SCAN_TOKEN needs to be set."
    cov_error=true
fi
if [ "${COV_BUILD_PREFIX+x}" != "x" ] ; then
    echo "[ERROR] COV_BUILD_PREFIX needs to be set."
    cov_error=true
fi
if [ "${cov_error}" = "true" ] ; then
    exit 1
fi

# Grab the current revision and set description.
version=$(git rev-parse --short HEAD)
description="Git master build."

# Build chapel with cov-build.
$COV_BUILD_PREFIX/cov-build --dir cov-int make

# Create compressed tarball.
tar --create --bzip2 --verbose --file chapel.tar.bz2 cov-int

curl --verbose --silent \
    --form project="chapel" \
    --form token="${COV_SCAN_TOKEN}" \
    --form email="${COV_SCAN_EMAIL}" \
    --form file=@chapel.tar.bz2 \
    --form version="${version}" \
    --form description="${description}" \
    http://scan5.coverity.com/cgi-bin/upload.py


text:
/*
 * Swaggy Jenkins
 * Jenkins API clients generated from Swagger / Open API specification
 *
 * The version of the OpenAPI document: 1.5.1-pre.0
 * Contact: blah@cliffano.com
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

package com.cliffano.swaggyjenkins.model;

import java.util.Objects;
import java.util.Arrays;
import com.cliffano.swaggyjenkins.model.PipelineBranchesitemlatestRun;
import com.cliffano.swaggyjenkins.model.PipelineBranchesitempullRequest;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.google.gson.JsonArray;
import com.google.gson.JsonDeserializationContext;
import com.google.gson.JsonDeserializer;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import com.google.gson.JsonParseException;
import com.google.gson.TypeAdapterFactory;
import com.google.gson.reflect.TypeToken;

import java.lang.reflect.Type;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;

import com.cliffano.swaggyjenkins.JSON;

/**
 * PipelineBranchesitem
 */
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-06-04T08:16:08.847436Z[Etc/UTC]")
public class PipelineBranchesitem {
  public static final String SERIALIZED_NAME_DISPLAY_NAME = "displayName";
  @SerializedName(SERIALIZED_NAME_DISPLAY_NAME)
  private String displayName;

  public static final String SERIALIZED_NAME_ESTIMATED_DURATION_IN_MILLIS = "estimatedDurationInMillis";
  @SerializedName(SERIALIZED_NAME_ESTIMATED_DURATION_IN_MILLIS)
  private Integer estimatedDurationInMillis;

  public static final String SERIALIZED_NAME_NAME = "name";
  @SerializedName(SERIALIZED_NAME_NAME)
  private String name;

  public static final String SERIALIZED_NAME_WEATHER_SCORE = "weatherScore";
  @SerializedName(SERIALIZED_NAME_WEATHER_SCORE)
  private Integer weatherScore;

  public static final String SERIALIZED_NAME_LATEST_RUN = "latestRun";
  @SerializedName(SERIALIZED_NAME_LATEST_RUN)
  private PipelineBranchesitemlatestRun latestRun;

  public static final String SERIALIZED_NAME_ORGANIZATION = "organization";
  @SerializedName(SERIALIZED_NAME_ORGANIZATION)
  private String organization;

  public static final String SERIALIZED_NAME_PULL_REQUEST = "pullRequest";
  @SerializedName(SERIALIZED_NAME_PULL_REQUEST)
  private PipelineBranchesitempullRequest pullRequest;

  public static final String SERIALIZED_NAME_TOTAL_NUMBER_OF_PULL_REQUESTS = "totalNumberOfPullRequests";
  @SerializedName(SERIALIZED_NAME_TOTAL_NUMBER_OF_PULL_REQUESTS)
  private Integer totalNumberOfPullRequests;

  public static final String SERIALIZED_NAME_PROPERTY_CLASS = "_class";
  @SerializedName(SERIALIZED_NAME_PROPERTY_CLASS)
  private String propertyClass;

  public PipelineBranchesitem() {
  }

  public PipelineBranchesitem displayName(String displayName) {

    this.displayName = displayName;
    return this;
  }

   /**
   * Get displayName
   * @return displayName
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")

  public String getDisplayName() {
    return displayName;
  }

  public void setDisplayName(String displayName) {
    this.displayName = displayName;
  }

  public PipelineBranchesitem estimatedDurationInMillis(Integer estimatedDurationInMillis) {

    this.estimatedDurationInMillis = estimatedDurationInMillis;
    return this;
  }

   /**
   * Get estimatedDurationInMillis
   * @return estimatedDurationInMillis
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")

  public Integer getEstimatedDurationInMillis() {
    return estimatedDurationInMillis;
  }

  public void setEstimatedDurationInMillis(Integer estimatedDurationInMillis) {
    this.estimatedDurationInMillis = estimatedDurationInMillis;
  }

  public PipelineBranchesitem name(String name) {

    this.name = name;
    return this;
  }

   /**
   * Get name
   * @return name
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public PipelineBranchesitem weatherScore(Integer weatherScore) {

    this.weatherScore = weatherScore;
    return this;
  }

   /**
   * Get weatherScore
   * @return weatherScore
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")

  public Integer getWeatherScore() {
    return weatherScore;
  }

  public void setWeatherScore(Integer weatherScore) {
    this.weatherScore = weatherScore;
  }

  public PipelineBranchesitem latestRun(PipelineBranchesitemlatestRun latestRun) {

    this.latestRun = latestRun;
    return this;
  }

   /**
   * Get latestRun
   * @return latestRun
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")

  public PipelineBranchesitemlatestRun getLatestRun() {
    return latestRun;
  }

  public void setLatestRun(PipelineBranchesitemlatestRun latestRun) {
    this.latestRun = latestRun;
  }

  public PipelineBranchesitem organization(String organization) {

    this.organization = organization;
    return this;
  }

   /**
   * Get organization
   * @return organization
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")

  public String getOrganization() {
    return organization;
  }

  public void setOrganization(String organization) {
    this.organization = organization;
  }

  public PipelineBranchesitem pullRequest(PipelineBranchesitempullRequest pullRequest) {

    this.pullRequest = pullRequest;
    return this;
  }

   /**
   * Get pullRequest
   * @return pullRequest
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")

  public PipelineBranchesitempullRequest getPullRequest() {
    return pullRequest;
  }

  public void setPullRequest(PipelineBranchesitempullRequest pullRequest) {
    this.pullRequest = pullRequest;
  }

  public PipelineBranchesitem totalNumberOfPullRequests(Integer totalNumberOfPullRequests) {

    this.totalNumberOfPullRequests = totalNumberOfPullRequests;
    return this;
  }

   /**
   * Get totalNumberOfPullRequests
   * @return totalNumberOfPullRequests
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")

  public Integer getTotalNumberOfPullRequests() {
    return totalNumberOfPullRequests;
  }

  public void setTotalNumberOfPullRequests(Integer totalNumberOfPullRequests) {
    this.totalNumberOfPullRequests = totalNumberOfPullRequests;
  }

  public PipelineBranchesitem propertyClass(String propertyClass) {

    this.propertyClass = propertyClass;
    return this;
  }

   /**
   * Get propertyClass
   * @return propertyClass
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")

  public String getPropertyClass() {
    return propertyClass;
  }

  public void setPropertyClass(String propertyClass) {
    this.propertyClass = propertyClass;
  }

  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    PipelineBranchesitem pipelineBranchesitem = (PipelineBranchesitem) o;
    return Objects.equals(this.displayName, pipelineBranchesitem.displayName) &&
        Objects.equals(this.estimatedDurationInMillis, pipelineBranchesitem.estimatedDurationInMillis) &&
        Objects.equals(this.name, pipelineBranchesitem.name) &&
        Objects.equals(this.weatherScore, pipelineBranchesitem.weatherScore) &&
        Objects.equals(this.latestRun, pipelineBranchesitem.latestRun) &&
        Objects.equals(this.organization, pipelineBranchesitem.organization) &&
        Objects.equals(this.pullRequest, pipelineBranchesitem.pullRequest) &&
        Objects.equals(this.totalNumberOfPullRequests, pipelineBranchesitem.totalNumberOfPullRequests) &&
        Objects.equals(this.propertyClass, pipelineBranchesitem.propertyClass);
  }

  @Override
  public int hashCode() {
    return Objects.hash(displayName, estimatedDurationInMillis, name, weatherScore, latestRun, organization, pullRequest, totalNumberOfPullRequests, propertyClass);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class PipelineBranchesitem {\n");
    sb.append("    displayName: ").append(toIndentedString(displayName)).append("\n");
    sb.append("    estimatedDurationInMillis: ").append(toIndentedString(estimatedDurationInMillis)).append("\n");
    sb.append("    name: ").append(toIndentedString(name)).append("\n");
    sb.append("    weatherScore: ").append(toIndentedString(weatherScore)).append("\n");
    sb.append("    latestRun: ").append(toIndentedString(latestRun)).append("\n");
    sb.append("    organization: ").append(toIndentedString(organization)).append("\n");
    sb.append("    pullRequest: ").append(toIndentedString(pullRequest)).append("\n");
    sb.append("    totalNumberOfPullRequests: ").append(toIndentedString(totalNumberOfPullRequests)).append("\n");
    sb.append("    propertyClass: ").append(toIndentedString(propertyClass)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }

  public static HashSet<String> openapiFields;
  public static HashSet<String> openapiRequiredFields;

  static {
    // a set of all properties/fields (JSON key names)
    openapiFields = new HashSet<String>();
    openapiFields.add("displayName");
    openapiFields.add("estimatedDurationInMillis");
    openapiFields.add("name");
    openapiFields.add("weatherScore");
    openapiFields.add("latestRun");
    openapiFields.add("organization");
    openapiFields.add("pullRequest");
    openapiFields.add("totalNumberOfPullRequests");
    openapiFields.add("_class");

    // a set of required properties/fields (JSON key names)
    openapiRequiredFields = new HashSet<String>();
  }

 /**
  * Validates the JSON Object and throws an exception if issues found
  *
  * @param jsonObj JSON Object
  * @throws IOException if the JSON Object is invalid with respect to PipelineBranchesitem
  */
  public static void validateJsonObject(JsonObject jsonObj) throws IOException {
      if (jsonObj == null) {
        if (PipelineBranchesitem.openapiRequiredFields.isEmpty()) {
          return;
        } else { // has required fields
          throw new IllegalArgumentException(String.format("The required field(s) %s in PipelineBranchesitem is not found in the empty JSON string", PipelineBranchesitem.openapiRequiredFields.toString()));
        }
      }

      Set<Entry<String, JsonElement>> entries = jsonObj.entrySet();
      // check to see if the JSON string contains additional fields
      for (Entry<String, JsonElement> entry : entries) {
        if (!PipelineBranchesitem.openapiFields.contains(entry.getKey())) {
          throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `PipelineBranchesitem` properties. JSON: %s", entry.getKey(), jsonObj.toString()));
        }
      }
      if (jsonObj.get("displayName") != null && !jsonObj.get("displayName").isJsonPrimitive()) {
        throw new IllegalArgumentException(String.format("Expected the field `displayName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("displayName").toString()));
      }
      if (jsonObj.get("name") != null && !jsonObj.get("name").isJsonPrimitive()) {
        throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString()));
      }
      // validate the optional field `latestRun`
      if (jsonObj.getAsJsonObject("latestRun") != null) {
        PipelineBranchesitemlatestRun.validateJsonObject(jsonObj.getAsJsonObject("latestRun"));
      }
      if (jsonObj.get("organization") != null && !jsonObj.get("organization").isJsonPrimitive()) {
        throw new IllegalArgumentException(String.format("Expected the field `organization` to be a primitive type in the JSON string but got `%s`", jsonObj.get("organization").toString()));
      }
      // validate the optional field `pullRequest`
      if (jsonObj.getAsJsonObject("pullRequest") != null) {
        PipelineBranchesitempullRequest.validateJsonObject(jsonObj.getAsJsonObject("pullRequest"));
      }
      if (jsonObj.get("_class") != null && !jsonObj.get("_class").isJsonPrimitive()) {
        throw new IllegalArgumentException(String.format("Expected the field `_class` to be a primitive type in the JSON string but got `%s`", jsonObj.get("_class").toString()));
      }
  }

  public static class CustomTypeAdapterFactory implements TypeAdapterFactory {
    @SuppressWarnings("unchecked")
    @Override
    public <T> TypeAdapter<T> create(Gson gson, TypeToken<T> type) {
       if (!PipelineBranchesitem.class.isAssignableFrom(type.getRawType())) {
         return null; // this class only serializes 'PipelineBranchesitem' and its subtypes
       }
       final TypeAdapter<JsonElement> elementAdapter = gson.getAdapter(JsonElement.class);
       final TypeAdapter<PipelineBranchesitem> thisAdapter
                        = gson.getDelegateAdapter(this, TypeToken.get(PipelineBranchesitem.class));

       return (TypeAdapter<T>) new TypeAdapter<PipelineBranchesitem>() {
           @Override
           public void write(JsonWriter out, PipelineBranchesitem value) throws IOException {
             JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject();
             elementAdapter.write(out, obj);
           }

           @Override
           public PipelineBranchesitem read(JsonReader in) throws IOException {
             JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject();
             validateJsonObject(jsonObj);
             return thisAdapter.fromJsonTree(jsonObj);
           }

       }.nullSafe();
    }
  }

 /**
  * Create an instance of PipelineBranchesitem given an JSON string
  *
  * @param jsonString JSON string
  * @return An instance of PipelineBranchesitem
  * @throws IOException if the JSON string is invalid with respect to PipelineBranchesitem
  */
  public static PipelineBranchesitem fromJson(String jsonString) throws IOException {
    return JSON.getGson().fromJson(jsonString, PipelineBranchesitem.class);
  }

 /**
  * Convert an instance of PipelineBranchesitem to an JSON string
  *
  * @return JSON string
  */
  public String toJson() {
    return JSON.getGson().toJson(this);
  }
}


text:
<?php
    include 'header.php';
?>
    <title>Hardware</title>

<?php
    include 'header_menu.php';
?>

Computer hardware consists of peripherals, motherboard, and storage devices.

Computer peripherals

Motherboard

Storage devices

<map name='imagemapp'>
    <area shape='rect' coords='0.1,0.1,200.1,200.1' href='peripherals.php' title="click here">
</map>
<map name='imagemapm'>
    <area shape='rect' coords='0.1,0.1,200.1,200.1' href='motherboard.php' title="click here">
</map>
<map name='imagemaps'>
    <area shape='rect' coords='0.1,0.1,200.1,200.1' href='storage_devices.php' title="click here">
</map>

<?php
    include 'footing.php';
?>


text:
export { timeoutWith } from 'rxjs/operators';
//# sourceMappingURL=timeoutWith.js.map


text:
#pragma once

#include "il2cpp-config.h"

#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif

#include <stdint.h>
#include <assert.h>
#include <exception>

#include "codegen/il2cpp-codegen.h"
#include "mscorlib_System_Comparison_1_gen2887177558MethodDeclarations.h"

// System.Void System.Comparison`1<UnityEngine.Component>::.ctor(System.Object,System.IntPtr)
#define Comparison_1__ctor_m2598071403(__this, ___object0, ___method1, method) ((  void (*) (Comparison_1_t2217877462 *, Il2CppObject *, IntPtr_t, const MethodInfo*))Comparison_1__ctor_m487232819_gshared)(__this, ___object0, ___method1, method)
// System.Int32 System.Comparison`1<UnityEngine.Component>::Invoke(T,T)
#define Comparison_1_Invoke_m3544145205(__this, ___x0, ___y1, method) ((  int32_t (*) (Comparison_1_t2217877462 *, Component_t3501516275 *, Component_t3501516275 *, const MethodInfo*))Comparison_1_Invoke_m1888033133_gshared)(__this, ___x0, ___y1, method)
// System.IAsyncResult System.Comparison`1<UnityEngine.Component>::BeginInvoke(T,T,System.AsyncCallback,System.Object)
#define Comparison_1_BeginInvoke_m3132564910(__this, ___x0, ___y1, ___callback2, ___object3, method) ((  Il2CppObject * (*) (Comparison_1_t2217877462 *, Component_t3501516275 *, Component_t3501516275 *, AsyncCallback_t1369114871 *, Il2CppObject *, const MethodInfo*))Comparison_1_BeginInvoke_m3177996774_gshared)(__this, ___x0, ___y1, ___callback2, ___object3, method)
// System.Int32 System.Comparison`1<UnityEngine.Component>::EndInvoke(System.IAsyncResult)
#define Comparison_1_EndInvoke_m1038750999(__this, ___result0, method) ((  int32_t (*) (Comparison_1_t2217877462 *, Il2CppObject *, const MethodInfo*))Comparison_1_EndInvoke_m651541983_gshared)(__this, ___result0, method)


text:
package de.jeha.s3srv.common.s3;

import javax.validation.ValidationException;
import java.util.regex.Pattern;

/**
 * @author jenshadlich@googlemail.com
 */
public class BucketNameValidator {

    private static final int MIN_BUCKET_LENGTH = 3;
    private static final int MAX_BUCKET_LENGTH = 63;
    private static final Pattern IPV4_PATTERN = Pattern.compile("(\\d+\\.){3}\\d+");

    /**
     * Validate the given bucket name.
     *
     * @param bucket name of bucket
     * @return true if valid
     * @throws ValidationException if not valid
     */
    public static boolean isValid(String bucket) {
        return isValid(bucket, true);
    }

    /**
     * Validate the given bucket name.
     *
     * @param bucket    name of bucket
     * @param exception throw exception if true
     * @return true if valid
     * @throws ValidationException if not valid and exception is 'true'
     */
    public static boolean isValid(String bucket, boolean exception)
            throws ValidationException {

        if (bucket == null) {
            return throwValidationExceptionOrReturnFalse(exception, "bucket must not be null");
        }

        if (bucket.length() < MIN_BUCKET_LENGTH || bucket.length() > MAX_BUCKET_LENGTH) {
            final String message = "bucket length must be between " + MIN_BUCKET_LENGTH + " and " + MAX_BUCKET_LENGTH;
            return throwValidationExceptionOrReturnFalse(exception, message);
        }

        if (IPV4_PATTERN.matcher(bucket).matches()) {
            return throwValidationExceptionOrReturnFalse(exception, "bucket must no be formatted like an IP address");
        }

        int prev = -1;
        for (int i = 0; i < bucket.length(); ++i) {
            int next = bucket.charAt(i);

            if (Character.isUpperCase(next)) {
                return throwValidationExceptionOrReturnFalse(exception, "bucket must not contain uppercase characters");
            }

            if (Character.isWhitespace(next)) {
                return throwValidationExceptionOrReturnFalse(exception, "bucket must not contain whitespaces");
            }

            if (next == '.') {
                if (prev == -1) {
                    return throwValidationExceptionOrReturnFalse(exception, "bucket must not begin with a period");
                }
                if (prev == '.') {
                    return throwValidationExceptionOrReturnFalse(exception, "bucket must not contain two adjacent periods");
                }
                if (prev == '-') {
                    return throwValidationExceptionOrReturnFalse(exception, "bucket must not contain dashes next to periods");
                }
            } else {
                if (next == '-') {
                    if (prev == '.') {
                        return throwValidationExceptionOrReturnFalse(exception, "bucket must not contain dashes next to periods");
                    }
                    if (prev == -1) {
                        return throwValidationExceptionOrReturnFalse(exception, "bucket must not begin with a '-'");
                    }
                } else {
                    if (!Character.isDigit(next) && !Character.isLetter(next)) {
                        return throwValidationExceptionOrReturnFalse(exception, "bucket must not contain '" + (char) next + "'");
                    }
                }
            }

            prev = next;
        }

        if (prev == '.' || prev == '-') {
            return throwValidationExceptionOrReturnFalse(exception, "bucket must not end with '-' or '.'");
        }

        return true;
    }

    /**
     * @param exception if true throw a ValidationException with the given message otherwise return false
     * @param message   the exception message
     * @return always false
     */
    private static boolean throwValidationExceptionOrReturnFalse(boolean exception, String message) {
        if (exception) {
            throw new ValidationException(message);
        }
        return false;
    }

}


text:
<?php

namespace Pagekit\Database\ORM\Annotation;

/**
 * @Annotation
 * @Target("PROPERTY")
 */
final class OrderBy implements Annotation
{
    /** @var array<string> */
    public $value;
}


text:
using System;
using Excel = Microsoft.Office.Interop.Excel;
using System.Windows.Forms;
using Office = Microsoft.Office.Core;
using System.Runtime.InteropServices;
using System.Text;
using System.Collections.Generic;
using System.IO;

namespace UnicodeCSVAddin
{
    public partial class ThisAddIn
    {
        private Excel.Application app;
        private List<string> unicodeFiles; //a list of opened Unicode CSV files. We populate this list on WorkBookOpen event to avoid checking for CSV files on every Save event.
        private bool sFlag = false;

        //Unicode file byte order marks.
        private const string UTF_16BE_BOM = "FEFF";
        private const string UTF_16LE_BOM = "FFFE";
        private const string UTF_8_BOM = "EFBBBF";

        private void ThisAddIn_Startup(object sender, System.EventArgs e)
        {
            app = this.Application;
            unicodeFiles = new List<string>();
            app.WorkbookOpen += new Excel.AppEvents_WorkbookOpenEventHandler(app_WorkbookOpen);
            app.WorkbookBeforeClose += new Excel.AppEvents_WorkbookBeforeCloseEventHandler(app_WorkbookBeforeClose);
            app.WorkbookBeforeSave += new Excel.AppEvents_WorkbookBeforeSaveEventHandler(app_WorkbookBeforeSave);
        }

        void ThisAddIn_Shutdown(object sender, EventArgs e)
        {
            app = null;
            unicodeFiles = null;
        }

        void app_WorkbookBeforeSave(Excel.Workbook Wb, bool SaveAsUI, ref bool Cancel)
        {
            //Override Save behaviour for Unicode CSV files.
            if (!SaveAsUI && !sFlag && unicodeFiles.Contains(Wb.FullName))
            {
                Cancel = true;
                SaveAsUnicodeCSV(false, false);
            }
            sFlag = false;
        }

        //This is required to show our custom Ribbon
        protected override Office.IRibbonExtensibility CreateRibbonExtensibilityObject()
        {
            return new Ribbon1();
        }

        void app_WorkbookBeforeClose(Excel.Workbook Wb, ref bool Cancel)
        {
            unicodeFiles.Remove(Wb.FullName);
            app.StatusBar = "Ready";
        }

        void app_WorkbookOpen(Excel.Workbook Wb)
        {
            //Check to see if the opened document is a Unicode CSV files, so we can override Excel's Save method
            if (Wb.FullName.ToLower().EndsWith(".csv") && isFileUnicode(Wb.FullName))
            {
                if (!unicodeFiles.Contains(Wb.FullName))
                {
                    unicodeFiles.Add(Wb.FullName);
                }
                app.StatusBar = Wb.Name + " has been opened as a Unicode CSV file";
            }
            else
            {
                app.StatusBar = "Ready";
            }
        }

        /// <summary>
        /// This method check whether Excel is in Cell Editing mode or not
        /// There are few ways to check this (eg. check to see if a standard menu item is disabled etc.)
        /// I know in cell editing mode app.DisplayAlerts throws an Exception, so here I'm relying on that behaviour
        /// </summary>
        /// <returns>true if Excel is in cell editing mode</returns>
        private bool isInCellEditingMode()
        {
            bool flag = false;
            try
            {
                app.DisplayAlerts = false; //This will throw an Exception if Excel is in Cell Editing Mode
            }
            catch (Exception)
            {
                flag = true;
            }
            return flag;
        }
        /// <summary>
        /// This will create a temporary file in Unicode text (*.txt) format, overwrite the current loaded file by replaing all tabs with a comma and reload the file.
        /// </summary>
        /// <param name="force">To force save the current file as a Unicode CSV.
        /// When called from the Ribbon items Save/SaveAs, <i>force</i> will be true
        /// If this parameter is true and the file name extention is not .csv, then a SaveAs dialog will be displayed to choose a .csv file</param>
        /// <param name="newFile">To show a SaveAs dialog box to select a new file name
        /// This will be set to true when called from the Ribbon item SaveAs</param>
        public void SaveAsUnicodeCSV(bool force, bool newFile)
        {
            app.StatusBar = "";
            bool currDispAlert = app.DisplayAlerts;
            bool flag = true;
            int i;
            string filename = app.ActiveWorkbook.FullName;

            if (force) //then make sure a csv file name is selected.
            {
                if (newFile || !filename.ToLower().EndsWith(".csv"))
                {
                    Office.FileDialog d = app.get_FileDialog(Office.MsoFileDialogType.msoFileDialogSaveAs);
                    i = app.ActiveWorkbook.Name.LastIndexOf(".");
                    if (i >= 0)
                    {
                        d.InitialFileName = app.ActiveWorkbook.Name.Substring(0, i);
                    }
                    else
                    {
                        d.InitialFileName = app.ActiveWorkbook.Name;
                    }
                    d.AllowMultiSelect = false;
                    Office.FileDialogFilters f = d.Filters;
                    for (i = 1; i <= f.Count; i++)
                    {
                        if ("*.csv".Equals(f.Item(i).Extensions))
                        {
                            d.FilterIndex = i;
                            break;
                        }
                    }
                    if (d.Show() == 0) //User cancelled the dialog
                    {
                        flag = false;
                    }
                    else
                    {
                        filename = d.SelectedItems.Item(1);
                    }
                }
                if (flag && !filename.ToLower().EndsWith(".csv"))
                {
                    MessageBox.Show("Please select a CSV file name first");
                    flag = false;
                }
            }

            if (flag && filename.ToLower().EndsWith(".csv") && (force || unicodeFiles.Contains(filename)))
            {
                if (isInCellEditingMode())
                {
                    MessageBox.Show("Please finish editing before saving");
                }
                else
                {
                    try
                    {
                        //Getting current selection to restore the current cell selection
                        Excel.Range rng = (Excel.Range)app.ActiveCell;
                        int row = rng.Row;
                        int col = rng.Column;

                        string tempFile = System.IO.Path.GetTempFileName();

                        try
                        {
                            sFlag = true; //This is to prevent this method getting called again from app_WorkbookBeforeSave event caused by the next SaveAs call
                            app.ActiveWorkbook.SaveAs(tempFile, Excel.XlFileFormat.xlUnicodeText);
                            app.ActiveWorkbook.Close();

                            if (new FileInfo(tempFile).Length <= (1024 * 1024)) //If its less than 1MB, load the whole data to memory for character replacement
                            {
                                File.WriteAllText(filename, File.ReadAllText(tempFile, UnicodeEncoding.UTF8).Replace("\t", ","), UnicodeEncoding.UTF8);
                            }
                            else //otherwise read chunks for data (in 10KB chunks) into memory
                            {
                                using (StreamReader sr = new StreamReader(tempFile, true))
                                using (StreamWriter sw = new StreamWriter(filename, false, sr.CurrentEncoding))
                                {
                                    char[] buffer = new char[10 * 1024]; //10KB Chunks
                                    while (!sr.EndOfStream)
                                    {
                                        int cnt = sr.ReadBlock(buffer, 0, buffer.Length);
                                        for (i = 0; i < cnt; i++)
                                        {
                                            if (buffer[i] == '\t')
                                            {
                                                buffer[i] = ',';
                                            }
                                        }
                                        sw.Write(buffer, 0, cnt);
                                    }
                                }
                            }
                        }
                        finally
                        {
                            File.Delete(tempFile);
                        }

                        app.Workbooks.Open(filename, Type.Missing, Type.Missing, Excel.XlFileFormat.xlCSV, Type.Missing, Type.Missing, Type.Missing, Type.Missing, ",");
                        Excel.Worksheet ws = app.ActiveWorkbook.ActiveSheet;
                        ws.Cells[row, col].Select();
                        app.StatusBar = "File has been saved as a Unicode CSV";
                        if (!unicodeFiles.Contains(filename))
                        {
                            unicodeFiles.Add(filename);
                        }
                        app.ActiveWorkbook.Saved = true;
                    }
                    catch (Exception e)
                    {
                        MessageBox.Show("Error occured while trying to save this file as Unicode CSV: " + e.Message);
                    }
                    finally
                    {
                        app.DisplayAlerts = currDispAlert;
                    }
                }
            }
        }

        /// <summary>
        /// This method will try and read the first few bytes to see if it contains a Unicode BOM
        /// </summary>
        /// <param name="filename">File to check for including full path</param>
        /// <returns>true if its a Unicode file</returns>
        private bool isFileUnicode(string filename)
        {
            bool ret = false;
            try
            {
                byte[] buff = new byte[3];
                using (FileStream fs = new FileStream(filename, FileMode.Open, FileAccess.Read, FileShare.ReadWrite))
                {
                    fs.Read(buff, 0, 3);
                }

                string hx = "";
                foreach (byte letter in buff)
                {
                    hx += string.Format("{0:X2}", Convert.ToInt32(letter));
                    //Checking to see the first bytes matches with any of the defined Unicode BOM
                    //We only check for UTF8 and UTF16 here.
                    ret = UTF_16BE_BOM.Equals(hx) || UTF_16LE_BOM.Equals(hx) || UTF_8_BOM.Equals(hx);
                    if (ret)
                    {
                        break;
                    }
                }
            }
            catch (IOException)
            {
                //ignore any exception
            }
            return ret;
        }

        #region VSTO generated code

        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InternalStartup()
        {
            this.Startup += new System.EventHandler(ThisAddIn_Startup);
            this.Shutdown += new System.EventHandler(ThisAddIn_Shutdown);
        }

        #endregion
    }
}


text:
namespace Equinox.Application.EventSourcedNormalizers
{
    public class CustomerHistoryData
    {
        public string Action { get; set; }
        public string Id { get; set; }
        public string Name { get; set; }
        public string Email { get; set; }
        public string BirthDate { get; set; }
        public string Timestamp { get; set; }
        public string Who { get; set; }
    }
}


text:
// MS compatible compilers support #pragma once
#if defined(_MSC_VER) && (_MSC_VER >= 1020)
# pragma once
#endif

/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8
// dataflow.hpp

// (C) Copyright 2002 Robert Ramey - http://www.rrsd.com .
// Use, modification and distribution is subject to the Boost Software
// License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)

//  See http://www.boost.org for updates, documentation, and revision history.

#include <cassert>

#include <boost/config.hpp> // for BOOST_DEDUCED_TYPENAME

#include <boost/mpl/eval_if.hpp>
#include <boost/mpl/if.hpp>
#include <boost/mpl/bool.hpp>
#include <boost/mpl/apply.hpp>
#include <boost/mpl/plus.hpp>
#include <boost/mpl/int.hpp>

#include <boost/type_traits/is_convertible.hpp>
#include <boost/type_traits/is_base_and_derived.hpp>
#include <boost/type_traits/is_pointer.hpp>
#include <boost/iterator/iterator_adaptor.hpp>
#include <boost/iterator/iterator_traits.hpp>
#include <boost/static_assert.hpp>

namespace boost {
namespace archive {
namespace iterators {

// poor man's tri-state
struct tri_state {
    enum state_enum {
        is_false = false,
        is_true = true,
        is_indeterminant,
    } m_state;
    // convert to bool
    operator bool (){
        assert(is_indeterminant != m_state);
        return is_true == m_state ? true : false;
    }
    // assign from bool
    tri_state & operator=(bool rhs) {
        m_state = rhs ? is_true : is_false;
    }
    tri_state(bool rhs) :
        m_state(rhs ? is_true : is_false)
    {}
    tri_state(state_enum state) :
        m_state(state)
    {}
    bool operator==(const tri_state & rhs) const {
        return m_state == rhs.m_state;
    }
    bool operator!=(const tri_state & rhs) const {
        return m_state != rhs.m_state;
    }
};

/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8
// implement functions common to dataflow iterators
template<class Derived>
class dataflow {
    bool m_eoi;
protected:
    // test for iterator equality
    tri_state equal(const Derived & rhs) const {
        if(m_eoi && rhs.m_eoi)
            return true;
        if(m_eoi || rhs.m_eoi)
            return false;
        return tri_state(tri_state::is_indeterminant);
    }
    void eoi(bool tf){
        m_eoi = tf;
    }
    bool eoi() const {
        return m_eoi;
    }
public:
    dataflow(bool tf) :
        m_eoi(tf)
    {}
    dataflow() : // used for iterator end
        m_eoi(true)
    {}
};

} // namespace iterators
} // namespace archive
} // namespace boost

#endif // BOOST_ARCHIVE_ITERATORS_DATAFLOW_HPP


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.

Imports System.Threading
Imports Microsoft.CodeAnalysis
Imports Microsoft.CodeAnalysis.Text
Imports Microsoft.CodeAnalysis.VisualBasic
Imports Microsoft.CodeAnalysis.VisualBasic.Symbols
Imports Microsoft.CodeAnalysis.VisualBasic.Syntax

Namespace Microsoft.CodeAnalysis.VisualBasic.Utilities.IntrinsicOperators
    Friend NotInheritable Class PredefinedCastExpressionDocumentation
        Inherits AbstractIntrinsicOperatorDocumentation

        Private ReadOnly _resultingType As ITypeSymbol
        Private ReadOnly _keywordText As String

        Public Sub New(keywordKind As SyntaxKind, compilation As Compilation)
            _resultingType = compilation.GetTypeFromPredefinedCastKeyword(keywordKind)
            _keywordText = SyntaxFacts.GetText(keywordKind)
        End Sub

        Public Overrides ReadOnly Property DocumentationText As String
            Get
                Return String.Format(VBWorkspaceResources.Converts_an_expression_to_the_0_data_type, _resultingType.ToDisplayString())
            End Get
        End Property

        Public Overrides Function GetParameterDocumentation(index As Integer) As String
            Select Case index
                Case 0
                    Return VBWorkspaceResources.The_expression_to_be_evaluated_and_converted
                Case Else
                    Throw New ArgumentException(NameOf(index))
            End Select
        End Function

        Public Overrides Function GetParameterName(index As Integer) As String
            Select Case index
                Case 0
                    Return VBWorkspaceResources.expression
                Case Else
                    Throw New ArgumentException(NameOf(index))
            End Select
        End Function

        Public Overrides ReadOnly Property IncludeAsType As Boolean
            Get
                Return True
            End Get
        End Property

        Public Overrides ReadOnly Property ParameterCount As Integer
            Get
                Return 1
            End Get
        End Property

        Public Overrides ReadOnly Property PrefixParts As IEnumerable(Of SymbolDisplayPart)
            Get
                Return {New SymbolDisplayPart(SymbolDisplayPartKind.Keyword, Nothing, _keywordText),
                        New SymbolDisplayPart(SymbolDisplayPartKind.Punctuation, Nothing, "(")}
            End Get
        End Property

        Public Overrides ReadOnly Property ReturnTypeMetadataName As String
            Get
                Return _resultingType.ContainingNamespace.Name + "." + _resultingType.MetadataName
            End Get
        End Property
    End Class
End Namespace