text:
package org.bubblecloud.zigbee;

import org.bubblecloud.zigbee.v3.ZigBeeGatewayClient;
import org.bubblecloud.zigbee.v3.zcl.field.AttributeIdentifier;
import org.bubblecloud.zigbee.v3.zcl.protocol.command.general.ReadAttributesCommand;
import org.bubblecloud.zigbee.v3.Command;
import org.junit.Assert;
import org.bubblecloud.zigbee.v3.CommandListener;
import org.bubblecloud.zigbee.v3.ZigBeeDevice;
import org.junit.Ignore;
import org.junit.Test;

import java.util.ArrayList;
import java.util.Arrays;

/**
 * ZigBeeConsoleApiClient integration test.
 *
 * @author Tommi S.E. Laukkanen
 */
public class ZigBeeGatewayClientTest {

    @Test
    @Ignore
    public void testCommands() throws Exception {
        final ZigBeeGatewayClient client = new ZigBeeGatewayClient("http://127.0.0.1:5000/", "secret");

        client.startup();

        client.addCommandListener(new CommandListener() {
            @Override
            public void commandReceived(final Command command) {
                System.out.println(command);
            }
        });

        final ReadAttributesCommand readAttributesCommand = new ReadAttributesCommand();
        readAttributesCommand.setDestinationAddress(11022);
        readAttributesCommand.setDestinationEndpoint(11);
        readAttributesCommand.setClusterId(0);
        readAttributesCommand.setIdentifiers(new ArrayList<AttributeIdentifier>(Arrays.asList(new AttributeIdentifier())));
        client.sendCommand(readAttributesCommand);

        final ZigBeeDevice device = client.getDevices().get(3);

        Assert.assertTrue(client.on(device).get().isSuccess());

        Thread.sleep(1000);

        Assert.assertTrue(client.color(device, 1.0, 0.0, 0.0, 1.0).get().isSuccess());

        Thread.sleep(1000);

        Assert.assertTrue(client.color(device, 0.0, 1.0, 0.0, 1.0).get().isSuccess());

        Thread.sleep(1000);

        Assert.assertTrue(client.color(device, 0.0, 0.0, 1.0, 1.0).get().isSuccess());

        Thread.sleep(1000);

        Assert.assertTrue(client.off(device).get().isSuccess());

        /*final ReadAttributesCommand readAttributesCommand = new ReadAttributesCommand();
        readAttributesCommand.setDestinationAddress(11022);
        readAttributesCommand.setDestinationEndpoint(11);
        readAttributesCommand.setClusterId(0);
        readAttributesCommand.setIdentifiers(new ArrayList<AttributeIdentifier>(Arrays.asList(new AttributeIdentifier())));
        zigBeeClient.sendCommand(readAttributesCommand);*/

        /*final DiscoverAttributesCommand discoverAttributesCommand = new DiscoverAttributesCommand();
        discoverAttributesCommand.setClusterId(1);
        discoverAttributesCommand.setDestinationAddress(8951);
        discoverAttributesCommand.setDestinationEndpoint(1);
        discoverAttributesCommand.setStartAttributeIdentifier(0);
        discoverAttributesCommand.setMaximumAttributeIdentifiers(1);
        zigBeeClient.sendCommand(discoverAttributesCommand);*/

        /*final OffCommand offCommand = new OffCommand();
        offCommand.setDestinationAddress(11022);
        offCommand.setDestinationEndpoint(11);
        zigBeeClient.sendCommand(offCommand);*/

        /**final IdentifyCommand identifyCommand = new IdentifyCommand();
        identifyCommand.setDestinationAddress(11022);
        identifyCommand.setDestinationEndpoint(11);
        identifyCommand.setIdentifyTime(10);
        zigBeeClient.sendCommand(identifyCommand);*/

        /*final OnCommand onCommand = new OnCommand();
        onCommand.setDestinationAddress(11022);
        onCommand.setDestinationEndpoint(11);
        zigBeeClient.sendCommand(onCommand);*/

        client.shutdown();
    }

}


text:
package se.l4.dust.core.internal.expression.resolver;

import static org.junit.Assert.assertArrayEquals;

import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.junit.Before;
import org.junit.Test;

import com.google.inject.Guice;
import com.google.inject.Injector;
import com.google.inject.Stage;

import junit.framework.Assert;
import se.l4.crayon.Crayon;
import se.l4.dust.api.conversion.TypeConverter;
import se.l4.dust.api.expression.ExpressionException;
import se.l4.dust.core.internal.conversion.ConversionModule;
import se.l4.dust.core.internal.expression.ExpressionDebugger;
import se.l4.dust.core.internal.expression.ExpressionsImpl;
import se.l4.dust.core.internal.expression.model.Person;

/**
 * Tests that run expression in debug mode (interpreted) and verify that
 * they return the intended results.
 *
 * @author Andreas Holstenson
 *
 */
public class DebuggerTest
{
	private TypeConverter tc;
	private ExpressionsImpl expressions;

	@Before
	public void before()
	{
		Injector injector = Guice.createInjector(new ConversionModule());
		injector.getInstance(Crayon.class).start();
		tc = injector.getInstance(TypeConverter.class);
		expressions = new ExpressionsImpl(tc, Stage.DEVELOPMENT);
	}

	@Test
	public void testGetClass()
	{
		Object o = debug("class", "string");

		Assert.assertEquals(String.class, o);
	}

	@Test
	public void testNullPersonName()
	{
		Person p = new Person();
		Object o = debug("name", p);

		Assert.assertEquals(null, o);
	}

	@Test
	public void testPersonName()
	{
		Person p = new Person();
		p.setName("Name");
		Object o = debug("name", p);

		Assert.assertEquals("Name", o);
	}

	@Test
	public void testPersonNameLength()
	{
		Person p = new Person();
		p.setName("Name");
		Object o = debug("name.length()", p);

		Assert.assertEquals(4, o);
	}

	@Test
	public void testPersonNameIs()
	{
		Person p = new Person();
		p.setName("One");

		Object o = debug("name == 'One'", p);

		Assert.assertEquals(true, o);

		o = debug("name != 'One'", p);
		Assert.assertEquals(false, o);
	}

	@Test
	public void testPersonAge()
	{
		Person p = new Person();
		p.setAge(22);

		Object o = debug("age == 22", p);
		Assert.assertEquals(true, o);

		o = debug("age != 23", p);
		Assert.assertEquals(true, o);
	}

	@Test
	public void testPersonAgeLessOrGreater()
	{
		Person p = new Person();
		p.setAge(22);

		Object o = debug("age < 23", p);
		Assert.assertEquals(true, o);

		o = debug("age > 23", p);
		Assert.assertEquals(false, o);

		o = debug("age >= 22", p);
		Assert.assertEquals(true, o);

		o = debug("age <= 23", p);
		Assert.assertEquals(true, o);
	}

	@Test
	public void testAnd()
	{
		Person p = new Person();
		p.setName("Name");
		p.setAge(87);

		Object o = debug("name == 'Name' && age == 87", p);

		Assert.assertEquals(true, o);
	}

	@Test
	public void testMapAccess()
	{
		TestMap map = new TestMap();
		map.put("entry", "value");

		Object o = debug("get('entry').class", map);
		Assert.assertEquals(String.class, o);
	}

	@Test
	public void testMapIndex()
	{
		IndexContainer container = new IndexContainer();

		Object o = debug("map['test']", container);
		Assert.assertEquals("one", o);
	}

	@Test
	public void testListIndex()
	{
		IndexContainer container = new IndexContainer();

		Object o = debug("list[0]", container);
		Assert.assertEquals("entry", o);
	}

	@Test
	public void testArrayIndex()
	{
		IndexContainer container = new IndexContainer();

		Object o = debug("array[0]", container);
		Assert.assertEquals("entry", o);
	}

	@Test
	public void testMultiStepIndex()
	{
		IndexContainer container = new IndexContainer();

		Object o = debug("multiStep['key'][0]", container);
		Assert.assertEquals("entry", o);
	}

	@Test
	public void testMultiStepArrayIndex()
	{
		IndexContainer container = new IndexContainer();

		Object o = debug("multiArray[0][0]", container);
		Assert.assertEquals("entry", o);
	}

	@Test
	public void testPersonVerified()
	{
		Person p = new Person();
		Object o = debug("verified", p);

		Assert.assertEquals(false, o);
	}

	@Test
	public void testAnd2()
	{
		Person p = new Person();
		p.setName("false");
		Object o = debug("verified && name", p);

		Assert.assertEquals(false, o);
	}

	@Test
	public void testPersonNullFailure()
	{
		try
		{
			debug("verified", Person.class, null);

			Assert.fail();
		}
		catch(ExpressionException e)
		{
		}
	}

	@Test
	public void testPersonInnerFailure()
	{
		try
		{
			Person p = new Person();
			debug("name.length()", p);

			Assert.fail();
		}
		catch(ExpressionException e)
		{
		}
	}

	@Test
	public void testCalculateLong()
	{
		Assert.assertEquals(14l, debug("12 + 2", ""));
		Assert.assertEquals(10l, debug("12 - 2", ""));
		Assert.assertEquals(24l, debug("12 * 2", ""));
		Assert.assertEquals(6l, debug("12 / 2", ""));
		Assert.assertEquals(2l, debug("12 % 10", ""));
	}

	@Test
	public void testCalculateDouble()
	{
		Assert.assertEquals(14., debug("12.0 + 2", ""));
		Assert.assertEquals(10., debug("12.0 - 2", ""));
		Assert.assertEquals(24., debug("12.0 * 2", ""));
		Assert.assertEquals(6., debug("12.0 / 2", ""));
		Assert.assertEquals(2., debug("12.0 % 10", ""));
	}

	@Test
	public void testReturnThis()
	{
		Object t = new Object();
		Assert.assertSame(t, debug("this", t));
	}

	@Test
	public void testGetPublicField()
	{
		Person p = new Person();
		p.role = "test";

		Object o = debug("role", p);
		Assert.assertEquals("test", o);
	}

	@Test
	public void testAndChain()
	{
		Person p = new Person();

		Object o = debug("name != null && name.length() > 0", p);
		Assert.assertEquals(false, o);
	}

	@Test
	public void testLongArray()
	{
		Person p = new Person();

		Object o = debug("[ 1, 2 ]", p);
		if(! (o instanceof long[])) throw new AssertionError("Not a long array");
		assertArrayEquals(new long[] { 1l, 2l }, (long[]) o);
	}

	@Test
	public void testStringArray()
	{
		Person p = new Person();

		Object o = debug("[ 'value1', 'value2' ]", p);
		if(! (o instanceof String[])) throw new AssertionError("Not a string array");
		assertArrayEquals(new String[] { "value1", "value2" }, (String[]) o);
	}

	@Test
	public void testMixedArray()
	{
		Person p = new Person();
		p.setName("test");

		Object o = debug("[ 'value1', 2, name ]", p);
		if(! (o instanceof Object[])) throw new AssertionError("Not an object array");
		assertArrayEquals(new Object[] { "value1", 2l, "test" }, (Object[]) o);
	}

	public static class IndexContainer
	{
		public Map<String, String> getMap()
		{
			Map<String, String> result = new HashMap<>();
			result.put("test", "one");
			return result;
		}

		public List<String> getList()
		{
			return Arrays.asList("entry");
		}

		public String[] getArray()
		{
			return new String[] { "entry" };
		}

		public String[][] getMultiArray()
		{
			return new String[][] {
				{ "entry" }
			};
		}

		public Map<String, List<String>> getMultiStep()
		{
			Map<String, List<String>> result = new HashMap<>();
			result.put("key", Arrays.asList("entry"));
			return result;
		}
	}

	private Object debug(String expr, Object in)
	{
		if(in == null) throw new NullPointerException("in must not be null");

		return debug(expr, in.getClass(), in);
	}

	private Object debug(String expr, Class<?> context, Object in)
	{
		ExpressionDebugger debugger = new ExpressionDebugger(
			tc,
			expressions,
			null,
			Collections.<String, String>emptyMap(),
			expr,
			context
		);

		return debugger.get(null, in);
	}

	public static class TestMap
		extends HashMap<String, String>
	{
	}
}

redpajama_set_name: RedPajamaGithub


text:
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.monitor.models;

import com.azure.core.annotation.Fluent;
import com.azure.core.annotation.JsonFlatten;
import com.azure.core.util.logging.ClientLogger;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;
import java.util.List;

/** Specifies the metric alert criteria for multiple resource that has multiple metric criteria. */
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "odata\\.type")
@JsonTypeName("Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria")
@JsonFlatten
@Fluent
public class MetricAlertMultipleResourceMultipleMetricCriteria extends MetricAlertCriteria {
    @JsonIgnore
    private final ClientLogger logger = new ClientLogger(MetricAlertMultipleResourceMultipleMetricCriteria.class);

    /*
     * the list of multiple metric criteria for this 'all of' operation.
     */
    @JsonProperty(value = "allOf")
    private List<MultiMetricCriteria> allOf;

    /**
     * Get the allOf property: the list of multiple metric criteria for this 'all of' operation.
     *
     * @return the allOf value.
     */
    public List<MultiMetricCriteria> allOf() {
        return this.allOf;
    }

    /**
     * Set the allOf property: the list of multiple metric criteria for this 'all of' operation.
     *
     * @param allOf the allOf value to set.
     * @return the MetricAlertMultipleResourceMultipleMetricCriteria object itself.
     */
    public MetricAlertMultipleResourceMultipleMetricCriteria withAllOf(List<MultiMetricCriteria> allOf) {
        this.allOf = allOf;
        return this;
    }

    /**
     * Validates the instance.
     *
     * @throws IllegalArgumentException thrown if the instance is not valid.
     */
    @Override
    public void validate() {
        super.validate();
        if (allOf() != null) {
            allOf().forEach(e -> e.validate());
        }
    }
}


text:
import { Plugin } from '@ckeditor/ckeditor5-core';

export default class IndentUI extends Plugin {
    static readonly pluginName: 'IndentUI';
    init(): void;
}


text:
@protocol RHCoreDataProtocol <NSObject>

@required

- (void)doDelete;
- (void)doSave;

@end


text:
<?php
    // denne fil må ikke kunne indlæses direkte, så hvis der ikke findes et
    // databaselink, sendes brugeren til forsiden
    if ( !isset($database_link))
    {
        die(header('location: ../index.php'));
    }

    // åben den ul som menuen ligger inden i
    echo '
';

    // link til forsiden
    $active = ($page_frontend == 'frontpage.php' ? $active = ' class="active"' : '');
    echo '
Forside
';

    // link til kontakt siden
    $active = ($page_frontend == 'contact.php' ? $active = ' class="active"' : '');
    echo '
Kontakt
';

    // link til hver af kategorierne
    $query = "  SELECT category_id, category_title
                FROM categories
                ORDER BY category_title ASC";
    $result = mysqli_query($database_link, $query) or if_sql_error_then_die(mysqli_error($database_link), __LINE__, __FILE__, $query);
    while ($row = mysqli_fetch_assoc($result))
    {
        $active = (isset($_GET['category_id']) && $_GET['category_id'] == $row['category_id'] ? ' class="active"' : '');
        echo '
'.$row['category_title'].'
';
    }

    // link til login
    if (isset($_SESSION['user']))
    {
        // vis et logud link, hvis brugeren er logget på.
        echo '
Logud
';
        // hvis brugeren har rettighed på 10 eller derover,
        // så vises linket til administrationen
        if ($_SESSION['user']['role_access'] >= 10)
        {
            echo '
Administration
';
        }
    }
    else
    {
        // vis login linket når brugeren ikke er logget på
        $active = ($page_frontend == 'login.php' ? ' class="active"' : '');
        echo '
Login
';
    }

    // her lukkes den ul, som menuen ligger inden i
    echo '
';
?>


text:
describe Fastlane do
  describe Fastlane::FastFile do
    describe "get_info_plist" do
      let (:plist_path) { "./fastlane/spec/fixtures/plist/Info.plist" }

      it "fetches the value from the plist" do
        allow(FastlaneCore::FastlaneFolder).to receive(:path).and_return(nil)
        value = Fastlane::FastFile.new.parse("lane :test do
          get_info_plist_value(path: '#{plist_path}', key: 'CFBundleIdentifier')
        end").runner.execute(:test)

        expect(value).to eq("com.krausefx.app")
      end
    end
  end
end


text:
var request = require('request');
var config = require('./../config.json');
var fs = require('fs');
var token;
var team;

function auth(cb) {
  request({
    method: 'POST',
    headers: {
      "content-type": "application/json"
    },
    url: config.request.auth.url,
    json: true,
    body: {
      email: config.request.auth.username,
      password: config.request.auth.password
    }
  }, function(error, response, body) {
    // console.log('body', body.Token);
    token = body.Token;
    cb();
  });
}

function getStats(cb) {
  auth(function() {
    request({
          method: 'GET',
          headers: {
            "Token": token
          },
          url: config.request.baseurl + '/Team/' + config.request.teamid
        }, function(error, response, body) {
          if (error) {
            console.log('error', error);
			return;
          } else if(response.statusCode != 200){
			console.log('API did not send the expected result. Error is: ', JSON.parse(body));
			return;
		  } else {
            team = JSON.parse(body);
            var MyRequestCounter = new MyAfter(team.users.length, function () {
              cb(team.users);
            });
            request({
              method: 'GET',
              headers: {
                "Token": token
              },
              url: config.request.baseurl + '/Team/' + config.request.teamid + '/lolstatsdetail'
            })
            .pipe(fs.createWriteStream(config.team_stats.fileData.inputFilePath + 'teamStatsRaw' + config.request.teamid + '.json'));

              team.users.forEach(function (user, index) {
                console.log('user', index, user);
                request({
                  method: 'GET',
                  headers: {
                    "Token": token
                  },
                  url: config.request.baseurl + '/User/' + user.user + '/lolstatsdetail'
                }, function (error, response, body) {
					if(response.statusCode != 200){
						console.log('API did not send the expected result. Error is: ', JSON.parse(body));
						return;
					}else{
						MyRequestCounter.called();
					}
                })
                .pipe(fs.createWriteStream(config.player_stats.fileData.inputFilePath + 'userStatsRaw' + user.user + '.json'));
              });

          }
        });
  });
}

function MyAfter(amount, cb) {
  this.amount = amount;
  this.cb = cb;
  this.current = 0;
  this.called = function () {
    this.current++;
    if (this.current === this.amount) {
      cb();
    }
  };
}

// getStats();

module.exports = {
  getStats: getStats,
};


text:
import Money from "components/Money";
import TimeseriesChart from "components/TimeseriesChart";
import Transactions from "components/Transactions";
import * as React from "react";
import { CategoriesData, ReportInfo, Transaction } from "util/data";

const CategoryEntry = (props: {
  onClick: () => void;
  category: string;
  amount: string | number;
  invert: boolean;
  expanded: boolean;
  transaction_ids: string[];
  transactions: Map<string, Transaction>;
}) => (
    <>

          <button onClick={props.onClick}>{props.category}</button>

          <Money amount={props.amount} invert={props.invert} />

        {props.expanded ? <Transactions {...props} /> : null}

    </>
  );

interface IProps {
  report: ReportInfo;
  data: CategoriesData;
  transactions: Map<string, Transaction>;
  showGraph: boolean;
}

interface IState {
  expanded: { [category: string]: boolean };
}

export default class Categories extends React.Component<IProps, IState> {
  constructor(props: IProps) {
    super(props);

    this.state = {
      expanded: {},
    };
  }

  public toggleExpanded(category: string) {
    const { expanded } = this.state;
    expanded[category] = !expanded[category];
    this.setState({ expanded });
  }

  public render() {
    const reverse = this.props.report.onlyType !== "Debit";
    let categories = [...this.props.data.categories.entries()].sort(
      (a, b) => parseFloat(a[1].amount) - parseFloat(b[1].amount),
    );

    if (reverse) {
      categories = categories.reverse();
    }

    return (

        Total:{" "}
        <Money amount={this.props.data.total()} invert={!reverse} />

            {categories.map(([category, amount]) => (
              <CategoryEntry
                key={category}
                category={category}
                amount={amount.amount}
                transaction_ids={amount.transactions}
                transactions={this.props.transactions}
                invert={!reverse}
                expanded={!!this.state.expanded[category]}
                onClick={() => this.toggleExpanded(category)}
              />
            ))}

        {this.props.data.timeseries && this.props.showGraph ? (
          <TimeseriesChart
            timeseries={this.props.data.timeseries}
            lineNames={[...this.props.data.categories.keys()]}
          />
        ) : null}

    );
  }
}


text:
package com.xeiam.xchange.kraken.dto.account.results;

import java.math.BigDecimal;
import java.util.Map;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.xeiam.xchange.kraken.dto.KrakenResult;

/**
 * @author Benedikt
 */
public class KrakenBalanceResult extends KrakenResult<Map<String, BigDecimal>> {

  /**
   * Constructor
   *
   * @param error List of errors
   * @param result Recent trades
   */
  public KrakenBalanceResult(@JsonProperty("error") String[] error, @JsonProperty("result") Map<String, BigDecimal> result) {

    super(result, error);
  }

}


text:
<?php
cw_load('image');
//$zoomer_images = cw_image_get_list('magnifier_images', $product_id, ($current_area == 'C'?1:0));
$smarty->assign('zoomer_images_count', cw_image_get_list_count('magnifier_images', $product_id, ($current_area == 'C'?1:0)));
?>


text:
#pragma once

#include "HTMLDocument.h"

namespace WebCore {

class HTMLPlugInElement;
class Widget;

class PluginDocument final : public HTMLDocument {
public:
    static Ref<PluginDocument> create(Frame* frame, const URL& url)
    {
        return adoptRef(*new PluginDocument(frame, url));
    }

    WEBCORE_EXPORT Widget* pluginWidget();
    HTMLPlugInElement* pluginElement() { return m_pluginElement.get(); }

    void setPluginElement(HTMLPlugInElement&);
    void detachFromPluginElement();

    void cancelManualPluginLoad();

    bool shouldLoadPluginManually() const { return m_shouldLoadPluginManually; }

private:
    PluginDocument(Frame*, const URL&);

    Ref<DocumentParser> createParser() final;

    RefPtr<HTMLPlugInElement> m_pluginElement;
    bool m_shouldLoadPluginManually { true };
};

} // namespace WebCore

SPECIALIZE_TYPE_TRAITS_BEGIN(WebCore::PluginDocument)
    static bool isType(const WebCore::Document& document) { return document.isPluginDocument(); }
    static bool isType(const WebCore::Node& node) { return is<WebCore::Document>(node) && isType(downcast<WebCore::Document>(node)); }
SPECIALIZE_TYPE_TRAITS_END()


text:
<?xml version="1.0" encoding="utf-8"?>
<View xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="1dp"
    android:background="@color/vert_sep_color" />


text:
import { ChangeDetectionStrategy, Component, forwardRef, Inject, Input, Optional, Self, SkipSelf } from '@angular/core';
import { ALuOnOpenSubscriber, ILuOnOpenSubscriber } from '@lucca-front/ng/core';
import { ALuOptionOperator, ILuOptionOperator } from '@lucca-front/ng/option';
import { BehaviorSubject } from 'rxjs';
import { ILuApiItem } from '../../api.model';
import { ALuApiService, LuApiHybridService } from '../../service/index';
import { ALuApiOptionFeeder } from './api-feeder.model';
@Component({
	selector: 'lu-api-feeder',
	template: '',
	styleUrls: [],
	changeDetection: ChangeDetectionStrategy.OnPush,
	providers: [
		{
			provide: ALuOptionOperator,
			useExisting: forwardRef(() => LuApiFeederComponent),
			multi: true,
		},
		{
			provide: ALuOnOpenSubscriber,
			useExisting: forwardRef(() => LuApiFeederComponent),
			multi: true,
		},
		{
			provide: ALuApiService,
			useClass: LuApiHybridService,
		},
	],
})
export class LuApiFeederComponent<T extends ILuApiItem = ILuApiItem> extends ALuApiOptionFeeder<T, LuApiHybridService<T>> implements ILuOptionOperator<T>, ILuOnOpenSubscriber {
	override outOptions$ = new BehaviorSubject<T[]>([]);
	constructor(
		@Inject(ALuApiService)
		@Optional()
		@SkipSelf()
		hostService: LuApiHybridService<T>,
		@Inject(ALuApiService) @Self() selfService: LuApiHybridService<T>,
	) {
		super(hostService || selfService);
	}

	@Input() set standard(standard: 'v3' | 'v4') {
		this._service.standard = standard;
	}
	@Input() set api(api: string) {
		this._service.api = api;
	}
	@Input() set fields(fields: string) {
		this._service.fields = fields;
	}
	@Input() set filters(filters: string[]) {
		this._service.filters = filters;
	}
	@Input() set orderBy(orderBy: string) {
		this._service.orderBy = orderBy;
	}
}


text:
<?php

namespace Koine\Repository\Entity;

use Koine\Repository\Entity\GeneratedIdInterface;
use Koine\Repository\Entity\IdAwareInterface;

abstract class IdAwareEntity implements GeneratedIdInterface, IdAwareInterface
{
    /**
     * @param int
     */
    private $id;

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

    /**
     * @param int $id
     *
     * @return self
     */
    public function setId($id)
    {
        $this->id = $id;

        return $this;
    }

    /**
     * @return int
     */
    public function getId()
    {
        return $this->id;
    }
}


text:
// Copyright (c) 2012 Ecma International.  All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/*---
es5id: 15.2.3.6-4-576
description: >
    ES5 Attributes - [[Set]] attribute is a function which contains
    return statement
---*/

        var obj = {};

        var setFunc = function () {
            return 2010;
        };

        Object.defineProperty(obj, "prop", {
            set: setFunc
        });

        var desc = Object.getOwnPropertyDescriptor(obj, "prop");

assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true');
assert.sameValue(desc.set, setFunc, 'desc.set');


text:
package com.aubreynicoll.javasynth;

/**
 * Created by aubrey on 6/5/15.
 */
public interface SampleProviderIntfc
{
    int getSamples(byte[] buffer);
}


text:
/**
 * Indicates that the result of a {@link Pipe} transformation has changed even though the reference
 *has not changed.
 *
 * The wrapped value will be unwrapped by change detection, and the unwrapped value will be stored.
 *
 * @exportedAs angular2/pipes
 */
export declare class WrappedValue {
    wrapped: any;
    constructor(wrapped: any);
    static wrap(value: any): WrappedValue;
}
/**
 * An interface for extending the list of pipes known to Angular.
 *
 * If you are writing a custom {@link Pipe}, you must extend this interface.
 *
 * #Example
 *
 * ```
 * class DoublePipe extends Pipe {
 *  supports(obj) {
 *    return true;
 *  }
 *
 *  transform(value) {
 *    return `${value}${value}`;
 *  }
 * }
 * ```
 *
 * @exportedAs angular2/pipes
 */
export declare class Pipe {
    supports(obj: any): boolean;
    onDestroy(): void;
    transform(value: any): any;
}
export declare class PipeFactory {
    supports(obs: any): boolean;
    create(cdRef: any): Pipe;
}
export declare var __esModule: boolean;


text:
@interface CommodityPraiseCell : UITableViewCell
@property (strong, nonatomic) IBOutlet UILabel *praiseLabel;
@property (strong, nonatomic) IBOutlet UILabel *personLabel;
- (void)showInfo:(DetailsMode *)model;
@end


text:
package com.fsck.k9.notification;

import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.support.v4.app.NotificationCompat;
import android.support.v4.app.NotificationCompat.BigTextStyle;
import android.support.v4.app.NotificationManagerCompat;

import com.fsck.k9.Account;
import com.fsck.k9.R;
import com.fsck.k9.activity.setup.AccountSetupIncoming;
import com.fsck.k9.activity.setup.AccountSetupOutgoing;

import static com.fsck.k9.notification.NotificationController.NOTIFICATION_LED_BLINK_FAST;
import static com.fsck.k9.notification.NotificationController.NOTIFICATION_LED_FAILURE_COLOR;

class AuthenticationErrorNotifications {
    private final NotificationController controller;

    public AuthenticationErrorNotifications(NotificationController controller) {
        this.controller = controller;
    }

    public void showAuthenticationErrorNotification(Account account, boolean incoming) {
        int notificationId = NotificationIds.getAuthenticationErrorNotificationId(account, incoming);
        Context context = controller.getContext();

        PendingIntent editServerSettingsPendingIntent = createContentIntent(context, account, incoming);
        String title = context.getString(R.string.notification_authentication_error_title);
        String text = context.getString(R.string.notification_authentication_error_text, account.getDescription());

        NotificationCompat.Builder builder = controller.createNotificationBuilder()
                .setSmallIcon(R.drawable.notification_icon_warning)
                .setWhen(System.currentTimeMillis())
                .setAutoCancel(true)
                .setTicker(title)
                .setContentTitle(title)
                .setContentText(text)
                .setContentIntent(editServerSettingsPendingIntent)
                .setStyle(new BigTextStyle().bigText(text))
                .setVisibility(NotificationCompat.VISIBILITY_PUBLIC);

        controller.configureNotification(builder, null, null,
                NOTIFICATION_LED_FAILURE_COLOR,
                NOTIFICATION_LED_BLINK_FAST, true);

        getNotificationManager().notify(notificationId, builder.build());
    }

    public void clearAuthenticationErrorNotification(Account account, boolean incoming) {
        int notificationId = NotificationIds.getAuthenticationErrorNotificationId(account, incoming);
        getNotificationManager().cancel(notificationId);
    }

    PendingIntent createContentIntent(Context context, Account account, boolean incoming) {
        Intent editServerSettingsIntent = incoming ?
                AccountSetupIncoming.intentActionEditIncomingSettings(context, account) :
                AccountSetupOutgoing.intentActionEditOutgoingSettings(context, account);

        return PendingIntent.getActivity(context, account.getAccountNumber(), editServerSettingsIntent,
                PendingIntent.FLAG_UPDATE_CURRENT);
    }

    private NotificationManagerCompat getNotificationManager() {
        return controller.getNotificationManager();
    }
}


text:
class Tag < ActiveRecord::Base
  belongs_to :course
end


text:
/*
 * Open Payments Cloud Application API
 * Open Payments Cloud API
 *
 * OpenAPI spec version: 1.0.0
 *
 *
 * NOTE: This class is auto generated by the swagger code generator program.
 * https://github.com/swagger-api/swagger-codegen.git
 * Do not edit the class manually.
 */

package com.ixaris.ope.applications.client.model;

import java.util.Objects;
import com.google.gson.annotations.SerializedName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * CreateCorporateUserParams
 */
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2017-08-30T15:46:40.836+02:00")
public class CreateCorporateUserParams {
  @SerializedName("identityId")
  private String identityId = null;

  @SerializedName("username")
  private String username = null;

  /**
   * A descriptive prefix to someones name. Possible values are Mr or Ms.
   */
  public enum TitleEnum {
    @SerializedName("MR")
    MR("MR"),

    @SerializedName("MS")
    MS("MS");

    private String value;

    TitleEnum(String value) {
      this.value = value;
    }

    @Override
    public String toString() {
      return String.valueOf(value);
    }
  }

  @SerializedName("title")
  private TitleEnum title = null;

  @SerializedName("name")
  private String name = null;

  @SerializedName("surname")
  private String surname = null;

  @SerializedName("email")
  private String email = null;

  @SerializedName("secretType")
  private String secretType = null;

  /**
   * Relating to the level of permissions of the the credential type.
   */
  public enum CredentialTypeEnum {
    @SerializedName("NO_VALUE")
    NO_VALUE("NO_VALUE"),

    @SerializedName("ROOT")
    ROOT("ROOT"),

    @SerializedName("USER")
    USER("USER");

    private String value;

    CredentialTypeEnum(String value) {
      this.value = value;
    }

    @Override
    public String toString() {
      return String.valueOf(value);
    }
  }

  @SerializedName("credentialType")
  private CredentialTypeEnum credentialType = null;

  public CreateCorporateUserParams identityId(String identityId) {
    this.identityId = identityId;
    return this;
  }

   /**
   * The ID of the Corporate Identity.
   * @return identityId
  **/
  @ApiModelProperty(example = "null", required = true, value = "The ID of the Corporate Identity.")
  public String getIdentityId() {
    return identityId;
  }

  public void setIdentityId(String identityId) {
    this.identityId = identityId;
  }

  public CreateCorporateUserParams username(String username) {
    this.username = username;
    return this;
  }

   /**
   * Get username
   * @return username
  **/
  @ApiModelProperty(example = "null", required = true, value = "")
  public String getUsername() {
    return username;
  }

  public void setUsername(String username) {
    this.username = username;
  }

  public CreateCorporateUserParams title(TitleEnum title) {
    this.title = title;
    return this;
  }

   /**
   * A descriptive prefix to someones name. Possible values are Mr or Ms.
   * @return title
  **/
  @ApiModelProperty(example = "null", value = "A descriptive prefix to someones name. Possible values are Mr or Ms.")
  public TitleEnum getTitle() {
    return title;
  }

  public void setTitle(TitleEnum title) {
    this.title = title;
  }

  public CreateCorporateUserParams name(String name) {
    this.name = name;
    return this;
  }

   /**
   * Get name
   * @return name
  **/
  @ApiModelProperty(example = "null", required = true, value = "")
  public String getName() {
    return name;
  }

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

  public CreateCorporateUserParams surname(String surname) {
    this.surname = surname;
    return this;
  }

   /**
   * Get surname
   * @return surname
  **/
  @ApiModelProperty(example = "null", required = true, value = "")
  public String getSurname() {
    return surname;
  }

  public void setSurname(String surname) {
    this.surname = surname;
  }

  public CreateCorporateUserParams email(String email) {
    this.email = email;
    return this;
  }

   /**
   * Get email
   * @return email
  **/
  @ApiModelProperty(example = "null", required = true, value = "")
  public String getEmail() {
    return email;
  }

  public void setEmail(String email) {
    this.email = email;
  }

  public CreateCorporateUserParams secretType(String secretType) {
    this.secretType = secretType;
    return this;
  }

   /**
   * Get secretType
   * @return secretType
  **/
  @ApiModelProperty(example = "null", required = true, value = "")
  public String getSecretType() {
    return secretType;
  }

  public void setSecretType(String secretType) {
    this.secretType = secretType;
  }

  public CreateCorporateUserParams credentialType(CredentialTypeEnum credentialType) {
    this.credentialType = credentialType;
    return this;
  }

   /**
   * Relating to the level of permissions of the the credential type.
   * @return credentialType
  **/
  @ApiModelProperty(example = "null", value = "Relating to the level of permissions of the the credential type.")
  public CredentialTypeEnum getCredentialType() {
    return credentialType;
  }

  public void setCredentialType(CredentialTypeEnum credentialType) {
    this.credentialType = credentialType;
  }

  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    CreateCorporateUserParams createCorporateUserParams = (CreateCorporateUserParams) o;
    return Objects.equals(this.identityId, createCorporateUserParams.identityId) &&
        Objects.equals(this.username, createCorporateUserParams.username) &&
        Objects.equals(this.title, createCorporateUserParams.title) &&
        Objects.equals(this.name, createCorporateUserParams.name) &&
        Objects.equals(this.surname, createCorporateUserParams.surname) &&
        Objects.equals(this.email, createCorporateUserParams.email) &&
        Objects.equals(this.secretType, createCorporateUserParams.secretType) &&
        Objects.equals(this.credentialType, createCorporateUserParams.credentialType);
  }

  @Override
  public int hashCode() {
    return Objects.hash(identityId, username, title, name, surname, email, secretType, credentialType);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class CreateCorporateUserParams {\n");

    sb.append("    identityId: ").append(toIndentedString(identityId)).append("\n");
    sb.append("    username: ").append(toIndentedString(username)).append("\n");
    sb.append("    title: ").append(toIndentedString(title)).append("\n");
    sb.append("    name: ").append(toIndentedString(name)).append("\n");
    sb.append("    surname: ").append(toIndentedString(surname)).append("\n");
    sb.append("    email: ").append(toIndentedString(email)).append("\n");
    sb.append("    secretType: ").append(toIndentedString(secretType)).append("\n");
    sb.append("    credentialType: ").append(toIndentedString(credentialType)).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(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }

}


text:
#include "../JuceLibraryCode/JuceHeader.h"

class BannerComponent : public juce::Component {
    public:
        BannerComponent();
        ~BannerComponent();
    private:

        JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (BannerComponent)
};

#endif  // BANNERCOMPONENT_H_INCLUDED


text:
                <input id="switch-1" ng-model="item[prop]" ng-change="toggle(item)" class="cmn-toggle cmn-toggle-round" type="checkbox" checked>

Css Grid Overlay

Some other content

                    Grid Size
                    <input id="grid-size" type="text" size="16px" value="16px" placeholder>

                    Grid Colour
                    <input id="grid-colour" type="text" size="rgba(0, 0, 0, 0.2)" value="rgba(0, 0, 0, 0.2)" placeholder>

                    Grid Selector
                    <input id="grid-selector" type="text" size="body" value="body" placeholder>

                    Offset Top
                    <input id="offset-top" type="text" size="0" value="0" placeholder>

                    Offset Bottom
                    <input id="offset-bottom" type="text" size="0" value="0" placeholder>

                    <input type="checkbox" id="vertical-axis" checked>
                    Vertical Axis

                    <input type="checkbox" id="horizontal-axis" checked>
                    Horizontal Axis


text:
FOUNDATION_EXPORT double Pods_MemoVersionNumber;
FOUNDATION_EXPORT const unsigned char Pods_MemoVersionString[];


text:
#include "nop.h"
#include <string.h>

// Internal entrypoint
riplBool nopApplyOperator(
    riplGreyMap const *pinputGreyMap,
    riplGreyMap *poutputGreyMap,
    riplGrey threshold)
{
    riplGrey const *inP = pinputGreyMap->data;
    riplGrey *outP = poutputGreyMap->data;
    unsigned i;

    RIPL_VALIDATE_OP_GREYMAPS(pinputGreyMap, poutputGreyMap)

    // Just copy straight from input to output
    memcpy(
      poutputGreyMap->data,
      pinputGreyMap->data,
      pinputGreyMap->size * sizeof(riplGrey));

    return true;
}

// Command-line version
int nopExecute(
    unsigned argc,
    char const **argv,
    riplGreyMap /*const*/ *pinputGreyMap,
    riplGreyMap *poutputGreyMap)
{
    riplGrey threshold;

    if (argc > 0)
    {
        riplMessage(
            itError,
            "Incorrect number of parameters!\n"
            "Usage: " RIPL_EXENAME " " RIPL_CMDLINE " nop\n");
        return RIPL_PARAMERROR;
    }

    if (!nopApplyOperator(pinputGreyMap, poutputGreyMap, threshold))
    {
        return RIPL_EXECUTEERROR;
    }

    // Number of command-line arguments consumed
    return 0;
}

// Command-line help
char const *nopHelp(void)
{
    return " nop\n\n"
        "   Do nothing: copy input image to output.\n";
}


text:
require 'spec_helper'

describe 'test::test_globalconfig_one' do
  platform 'centos'
  step_into :yum_globalconfig

  it do
    is_expected.to create_yum_globalconfig('/tmp/yum.conf')
  end

  it do
    is_expected.to create_template('/tmp/yum.conf')
  end

  it do
    is_expected.to render_file('/tmp/yum.conf').with_content(
      <<~EOF
        # This file was generated by Chef Infra Client
        # Do NOT modify this file by hand.

        [main]
        cachedir=/var/cache/yum/$basearch/$releasever
        debuglevel=2
        exactarch=1
        gpgcheck=1
        installonly_limit=3
        keepcache=0
        localpkg_gpgcheck=0
        logfile=/var/log/yum.log
        obsoletes=1
        plugins=1
      EOF
    )
  end
end


text:
PredicateEquals - value of predicate is of type array

--FILE--
<?php
include dirname(__FILE__)."/../../astestframework/astest-phpt-loader.inc";
aerospike_phpt_runtest("PredicateEquals", "testPredicateEqualsValueIsArray");
--EXPECT--
OK


text:
#include <aws/workspaces/model/WorkspaceImageIngestionProcess.h>
#include <aws/core/utils/HashingUtils.h>
#include <aws/core/Globals.h>
#include <aws/core/utils/EnumParseOverflowContainer.h>

using namespace Aws::Utils;

namespace Aws
{
  namespace WorkSpaces
  {
    namespace Model
    {
      namespace WorkspaceImageIngestionProcessMapper
      {

        static const int BYOL_REGULAR_HASH = HashingUtils::HashString("BYOL_REGULAR");
        static const int BYOL_GRAPHICS_HASH = HashingUtils::HashString("BYOL_GRAPHICS");
        static const int BYOL_GRAPHICSPRO_HASH = HashingUtils::HashString("BYOL_GRAPHICSPRO");
        static const int BYOL_GRAPHICS_G4DN_HASH = HashingUtils::HashString("BYOL_GRAPHICS_G4DN");
        static const int BYOL_REGULAR_WSP_HASH = HashingUtils::HashString("BYOL_REGULAR_WSP");

        WorkspaceImageIngestionProcess GetWorkspaceImageIngestionProcessForName(const Aws::String& name)
        {
          int hashCode = HashingUtils::HashString(name.c_str());
          if (hashCode == BYOL_REGULAR_HASH)
          {
            return WorkspaceImageIngestionProcess::BYOL_REGULAR;
          }
          else if (hashCode == BYOL_GRAPHICS_HASH)
          {
            return WorkspaceImageIngestionProcess::BYOL_GRAPHICS;
          }
          else if (hashCode == BYOL_GRAPHICSPRO_HASH)
          {
            return WorkspaceImageIngestionProcess::BYOL_GRAPHICSPRO;
          }
          else if (hashCode == BYOL_GRAPHICS_G4DN_HASH)
          {
            return WorkspaceImageIngestionProcess::BYOL_GRAPHICS_G4DN;
          }
          else if (hashCode == BYOL_REGULAR_WSP_HASH)
          {
            return WorkspaceImageIngestionProcess::BYOL_REGULAR_WSP;
          }
          EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
          if(overflowContainer)
          {
            overflowContainer->StoreOverflow(hashCode, name);
            return static_cast<WorkspaceImageIngestionProcess>(hashCode);
          }

          return WorkspaceImageIngestionProcess::NOT_SET;
        }

        Aws::String GetNameForWorkspaceImageIngestionProcess(WorkspaceImageIngestionProcess enumValue)
        {
          switch(enumValue)
          {
          case WorkspaceImageIngestionProcess::BYOL_REGULAR:
            return "BYOL_REGULAR";
          case WorkspaceImageIngestionProcess::BYOL_GRAPHICS:
            return "BYOL_GRAPHICS";
          case WorkspaceImageIngestionProcess::BYOL_GRAPHICSPRO:
            return "BYOL_GRAPHICSPRO";
          case WorkspaceImageIngestionProcess::BYOL_GRAPHICS_G4DN:
            return "BYOL_GRAPHICS_G4DN";
          case WorkspaceImageIngestionProcess::BYOL_REGULAR_WSP:
            return "BYOL_REGULAR_WSP";
          default:
            EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
            if(overflowContainer)
            {
              return overflowContainer->RetrieveOverflow(static_cast<int>(enumValue));
            }

            return {};
          }
        }

      } // namespace WorkspaceImageIngestionProcessMapper
    } // namespace Model
  } // namespace WorkSpaces
} // namespace Aws


text:
shell: *.go
	go build -o shell

run: shell
	./shell -bg-image=gopher.jpg VeraMono.ttf

clean:
	go clean


text:
🤖   🤖

Hi! 👋🏽 👋  Welcome to the Exercism Python Repo!

Thank you for opening an issue! 🐍  🌈  ✨

-      If you are **requesting support**, we will be along shortly to help. (*generally within* **72 hours,** *often more quickly*).
-      **Found a problem** with tests, exercises or something else??  🎉
  ◦ We'll take a look as soon as we can & identify what work is needed to fix it. *(generally within* **72 hours**).

		         ◦ _If you'd also like to make a PR to **fix** the issue,  please have a quick look at the [Pull Requests][prs] doc._
             _We  💙  PRs that follow our [Exercism][exercism-guidelines] & [Track][track-guidelines] contributing guidelines!_

-    Here because of an obvious (*and* **small** *set of*) spelling, grammar, or punctuation issues with **one** exercise,
  concept, or Python document?? 🌟  `Please feel free to submit a PR, linking to this issue.` 🎉

          ‼  Please Do Not ‼

		       ❗ Run checks on the whole repo & submit a bunch of PRs.
              This creates longer review cycles & exhausts reviewers energy & time.
              It may also conflict with ongoing changes from other contributors.
		       ❗ Insert only blank lines, make a closing bracket drop to the next line, change a word
               to a synonym without obvious reason, or add trailing space that's not an[ EOL][EOL] for the very end of text files.
        ❗ Introduce arbitrary changes "just to change things" .

        _...These sorts of things are **not** considered helpful, and will likely be closed by reviewers._

- For anything complicated or ambiguous, **let's discuss things**  --  we will likely welcome a PR from you.
- _Here to suggest a feature or new exercise??_ **Hooray!** Please keep in mind [_Chesterton's Fence_][chestertons-fence].
_Thoughtful suggestions will likely result faster & more enthusiastic responses from maintainers._

💛  💙  _While you are here..._ If you decide to help out with other [open issues][open-issues], you have our **gratitude** 🙌 🙌🏽.
Anything tagged with `[help wanted]` and without `[Claimed]` is up for grabs.
Comment on the issue and we will reserve it for you.  🌈  ✨

[prs]: https://github.com/exercism/docs/blob/main/community/good-member/pull-requests.md
[EOL]: https://en.wikipedia.org/wiki/Newline
[chestertons-fence]: https://github.com/exercism/docs/blob/main/community/good-member/chestertons-fence.md
[exercism-guidelines]: https://exercism.org/docs/building
[open-issues]: https://github.com/exercism/python/issues?q=is%3Aissue+is%3Aopen+label%3A%22help+wanted%22
[track-guidelines]: https://github.com/exercism/python/blob/main/CONTRIBUTING.md


text:
ActiveAdmin.register Site do

  menu parent: "Opções"

  index do
    column :nome
    column :meta_titulo
    column :meta_descricao
    column :autor
    actions
  end

  filter :nome
  filter :meta_titulo
  filter :autor

  form do |f|
    f.inputs "Detalhes sobre o site" do
      f.input :nome
      f.input :meta_titulo, max_length: 70
      f.input :meta_descricao, max_length: 156
      f.input :meta_keywords
      f.input :autor
    end
    f.inputs "Banners do Site" do
      f.input :banner
      f.input :url_banner
      f.input :banner_mobile
      f.input :url_banner_mobile
      f.input :title_banner
      f.input :alt_banner
      f.input :banner_h1_h2
      f.input :banner_mobile_h1_h2
    end
    f.actions
  end

  permit_params :nome, :meta_descricao, :meta_titulo, :autor, :banner, :banner_mobile, :url_banner, :url_banner_mobile, :meta_keywords, :banner_h1_h2, :banner_mobile_h1_h2, :title_banner, :alt_banner

end


text:
<?php

/* BladeTesterCalendarBundle:Category:form.html.twig */
class __TwigTemplate_c4a9028ad7afda8846314fab8a0c1e22c8a7921915fabc9a72f819c3647a1582 extends Twig_Template
{
    public function __construct(Twig_Environment $env)
    {
        parent::__construct($env);

        $this->parent = false;

        $this->blocks = array(
        );
    }

    protected function doDisplay(array $context, array $blocks = array())
    {
        // line 1
        echo "

        ";
        // line 3
        echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute((isset($context["form"]) ? $context["form"] : $this->getContext($context, "form")), "name", array()), 'label');
        echo "
        ";
        // line 4
        echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute((isset($context["form"]) ? $context["form"] : $this->getContext($context, "form")), "name", array()), 'errors');
        echo "
        ";
        // line 5
        echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute((isset($context["form"]) ? $context["form"] : $this->getContext($context, "form")), "name", array()), 'widget');
        echo "

            ";
        // line 9
        $context['_parent'] = (array) $context;
        $context['_seq'] = twig_ensure_traversable((isset($context["colors"]) ? $context["colors"] : $this->getContext($context, "colors")));
        foreach ($context['_seq'] as $context["_key"] => $context["color"]) {
            // line 10
            echo "
env, $context["color"], "html", null, true);
            echo "\" class=\"calendar-color event-color-";
            echo twig_escape_filter($this->env, $context["color"], "html", null, true);
            if (($this->getAttribute((isset($context["category"]) ? $context["category"] : $this->getContext($context, "category")), "color", array()) == $context["color"])) {
                echo " active";
            }
            echo "\">

            ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['color'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 12
        echo "

        ";
        // line 15
        echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute((isset($context["form"]) ? $context["form"] : $this->getContext($context, "form")), "color", array()), 'label');
        echo "
        ";
        // line 16
        echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute((isset($context["form"]) ? $context["form"] : $this->getContext($context, "form")), "color", array()), 'errors');
        echo "
        ";
        // line 17
        echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute((isset($context["form"]) ? $context["form"] : $this->getContext($context, "form")), "color", array()), 'widget');
        echo "

";
        // line 20
        echo $this->env->getExtension('form')->renderer->searchAndRenderBlock((isset($context["form"]) ? $context["form"] : $this->getContext($context, "form")), 'rest');
        echo "

";
    }

    public function getTemplateName()
    {
        return "BladeTesterCalendarBundle:Category:form.html.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  75 => 20,  69 => 17,  65 => 16,  61 => 15,  56 => 12,  42 => 10,  38 => 9,  31 => 5,  27 => 4,  23 => 3,  19 => 1,);
    }
}


text:
package org.cipango.console.printer.statistics;

import java.io.Writer;
import java.util.Date;
import java.util.Set;

import javax.management.Attribute;
import javax.management.MBeanServerConnection;
import javax.management.ObjectName;
import javax.servlet.http.HttpServletRequest;

import org.cipango.console.Action;
import org.cipango.console.ConsoleFilter;
import org.cipango.console.printer.MenuPrinter;
import org.cipango.console.printer.generic.MultiplePrinter;
import org.cipango.console.printer.generic.PrinterUtil;
import org.cipango.console.printer.generic.PropertiesPrinter;
import org.cipango.console.printer.generic.SetPrinter;

public class DiameterStatisticsPrinter extends MultiplePrinter
{
	public static final Action ENABLE_STATS = Action.add(new Action(MenuPrinter.STATISTICS_DIAMETER, "enable-statistics")
	{
		@Override
		public void doProcess(HttpServletRequest request) throws Exception
		{
			getConnection().setAttribute(ConsoleFilter.DIAMETER_NODE, new Attribute("statsOn", Boolean.TRUE));
		}
	});

	public static final Action DISABLE_STATS = Action.add(new Action(MenuPrinter.STATISTICS_DIAMETER, "disable-statistics")
	{
		@Override
		public void doProcess(HttpServletRequest request) throws Exception
		{
			getConnection().setAttribute(ConsoleFilter.DIAMETER_NODE, new Attribute("statsOn", Boolean.FALSE));
		}
	});

	public static final Action RESET_STATS = Action.add(new Action(MenuPrinter.STATISTICS_DIAMETER, "reset-statistics")
	{
		@Override
		public void doProcess(HttpServletRequest request) throws Exception
		{
			getConnection().invoke(ConsoleFilter.DIAMETER_NODE, "statsReset", null, null);
		}
	});

	private MBeanServerConnection _connection;

	public DiameterStatisticsPrinter(MBeanServerConnection connection) throws Exception
	{
		_connection = connection;
		ObjectName objectName = (ObjectName) _connection.getAttribute(ConsoleFilter.DIAMETER_NODE, "sessionManager");

		add(new PropertiesPrinter(objectName, "diameter.stats.sessions",  _connection));

		ObjectName[] transports = (ObjectName[]) _connection.getAttribute(
				ConsoleFilter.DIAMETER_NODE, "connectors");
		for (int i = 0; i < transports.length; i++)
			add(new PropertiesPrinter(transports[i], "diameter.stats.msg",  _connection));

		@SuppressWarnings("unchecked")
		Set<ObjectName> peers = _connection.queryNames(ConsoleFilter.DIAMETER_PEERS, null);
		add(new SetPrinter(peers, "diameter.stats.pending", _connection));
	}

	public void print(Writer out) throws Exception
	{
		super.print(out);
		printActions(out);
	}

	private void printActions(Writer out) throws Exception
	{
		out.write("
\n");
		Boolean on = (Boolean) _connection.getAttribute(ConsoleFilter.DIAMETER_NODE, "statsOn");
		if (on.booleanValue())
		{
			out.write("Statistics are started since ");
			Long start = (Long)  _connection.getAttribute(ConsoleFilter.DIAMETER_NODE, "statsStartedAt");
			out.write(PrinterUtil.getDuration(System.currentTimeMillis() - start) + ".
");
			DISABLE_STATS.print(out);
			out.write("   ");
			RESET_STATS.print(out);
		}
		else
		{
			ENABLE_STATS.print(out);
		}

	}
}


text:
@class PermissionBubbleController;
#else
class PermissionBubbleController;
#endif

class PermissionBubbleCocoa : public PermissionBubbleView {
 public:
  explicit PermissionBubbleCocoa(NSWindow* parent_window);
  virtual ~PermissionBubbleCocoa();

  // PermissionBubbleView interface.
  virtual void Show(const std::vector<PermissionBubbleRequest*>& requests,
                    const std::vector<bool>& accept_state,
                    bool customization_mode) OVERRIDE;
  virtual void Hide() OVERRIDE;
  virtual bool IsVisible() OVERRIDE;
  virtual void SetDelegate(Delegate* delegate) OVERRIDE;
  virtual bool CanAcceptRequestUpdate() OVERRIDE;

  // Called when |bubbleController_| is closing.
  void OnBubbleClosing();

  // Returns the point, in screen coordinates, to which the bubble's arrow
  // should point.
  NSPoint GetAnchorPoint();

  // Returns the NSWindow containing the bubble.
  NSWindow* window();

private:
  NSWindow* parent_window_;  // Weak.
  Delegate* delegate_;  // Weak.

  // Cocoa-side UI controller for the bubble.  Weak, as it will close itself.
  PermissionBubbleController* bubbleController_;

  DISALLOW_COPY_AND_ASSIGN(PermissionBubbleCocoa);
};

#endif  // CHROME_BROWSER_UI_COCOA_PERMISSION_BUBBLE_COCOA_H_


text:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<TITLE>
etm.contrib.aop.jboss (Java Execution Measurement Library)
</TITLE>

<META NAME="date" CONTENT="2009-03-12">

<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">

      Overview
    Package
      Class
      Use
      Tree
      Deprecated
      Index
      Help

 PREV PACKAGE
 NEXT PACKAGE

  FRAMES
 NO FRAMES

  All Classes

Package etm.contrib.aop.jboss

  JBoss AOP Integration.

See:

          Description

Class Summary

EtmJbossConstructorInterceptor
A interceptor that may be used to advise constructor invocations.

EtmJbossMethodInterceptor
A interceptor that may be used to advise method invocations.

JbossInterceptorSupport
Base class for JBoss AOP support (even though current content is pretty generic...)

Package etm.contrib.aop.jboss Description

  JBoss AOP Integration.

  Support for JBoss AOP framework.

      Overview
    Package
      Class
      Use
      Tree
      Deprecated
      Index
      Help

 PREV PACKAGE
 NEXT PACKAGE

  FRAMES
 NO FRAMES

  All Classes

Copyright © 2004,2005, 2006, 2007 void.fm. All Rights Reserved.


text:
\chapter{Credits}
See \url{http://bap.ece.cmu.edu} for a list of current and former \bap
developers.


text:
using System.Collections.Generic;
using Sabio.Web.Domain;
using Sabio.Web.Models.Requests;

namespace Sabio.Web.Requests.Interfaces
{
    public interface ITestimonialService
    {
        void Delete(int id);
        int Post(TestimonialAddRequest model);
        List<Testimonial> SelectAll();
        Testimonial SelectById(int id);
        void Update(TestimonialUpdateRequest model);
        List<Testimonial> Search(TestimonialSearchRequest model);

    }
}


text:
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Runtime.Serialization;
using Newtonsoft.Json;

namespace TweetSharp
{
    // https://dev.twitter.com/docs/tweet-entities

#if !SILVERLIGHT
    [Serializable]
#endif
#if !Smartphone && !NET20
    [DataContract]
#endif
    [JsonObject(MemberSerialization.OptIn)]
    public class TwitterEntities : IEnumerable<TwitterEntity>
    {
        [JsonProperty("user_mentions")]
#if !Smartphone && !NET20
        [DataMember]
#endif
        public virtual IList<TwitterMention> Mentions { get; set; }

        [JsonProperty("hashtags")]
#if !Smartphone && !NET20
        [DataMember]
#endif
        public virtual IList<TwitterHashTag> HashTags { get; set; }

        [JsonProperty("urls")]
#if !Smartphone && !NET20
        [DataMember]
#endif
        public virtual IList<TwitterUrl> Urls { get; set; }

        [JsonProperty("media")]
#if !Smartphone && !NET20
        [DataMember]
#endif
        public virtual IList<TwitterMedia> Media { get; set; }

        public TwitterEntities()
        {
            Initialize();
        }

        private void Initialize()
        {
            Mentions = new List<TwitterMention>(0);
            HashTags = new List<TwitterHashTag>(0);
            Urls = new List<TwitterUrl>(0);
            Media = new List<TwitterMedia>(0);
        }

        public IEnumerable<TwitterEntity> Coalesce()
        {
#if !WINDOWS_PHONE
            var entities = new List<TwitterEntity>(Mentions.Count() + HashTags.Count() + Urls.Count() + Media.Count());
            entities.AddRange(Mentions.Cast<TwitterEntity>());
            entities.AddRange(HashTags.Cast<TwitterEntity>());
            entities.AddRange(Urls.Cast<TwitterEntity>());
            entities.AddRange(Media.Cast<TwitterEntity>());
            entities.Sort();
#else
            var entities = new List<TwitterEntity>(Mentions.Count() + HashTags.Count() + Urls.Count() + Media.Count());
            entities.AddRange(Mentions.Cast<TwitterEntity>());
            entities.AddRange(HashTags.Cast<TwitterEntity>());
            entities.AddRange(Urls.Cast<TwitterEntity>());
            entities.AddRange(Media.Cast<TwitterEntity>());
            entities.Sort();
#endif
            return entities;
        }

        public IEnumerator<TwitterEntity> GetEnumerator()
        {
            return Coalesce().GetEnumerator();
        }

        IEnumerator IEnumerable.GetEnumerator()
        {
            return GetEnumerator();
        }
    }

#if !SILVERLIGHT
    [Serializable]
#endif
#if !Smartphone && !NET20
    [DataContract]
#endif
    [JsonObject(MemberSerialization.OptIn)]
    public abstract class TwitterEntity : IComparable<TwitterEntity>, IComparer<TwitterEntity>
    {
        [JsonProperty("indices")]
#if !Smartphone && !NET20
        [DataMember]
#endif
        public virtual IList<int> Indices { get; set; }

#if !Smartphone && !NET20
        [DataMember]
#endif
        public virtual TwitterEntityType EntityType { get; protected set; }

        public virtual int StartIndex { get { return Indices.Count > 0 ? Indices[0] : -1; }}

        public virtual int EndIndex { get { return Indices.Count > 1 ? Indices[1] : -1; } }

        public virtual int CompareTo(TwitterEntity other)
        {
            return StartIndex.CompareTo(other.StartIndex);
        }

        public virtual int Compare(TwitterEntity x, TwitterEntity y)
        {
            return x.StartIndex.CompareTo(y.StartIndex);
        }
    }

#if !SILVERLIGHT
    [Serializable]
#endif
#if !Smartphone && !NET20
    [DataContract]
    [DebuggerDisplay("@{Value}")]
#endif
    [JsonObject(MemberSerialization.OptIn)]
    public class TwitterUrl : TwitterEntity
    {
        [JsonProperty("url")]
#if !Smartphone && !NET20
        [DataMember]
#endif
        public virtual string Value { get; set; }

        [JsonProperty("expanded_url")]
#if !Smartphone && !NET20
        [DataMember]
#endif
        public virtual string ExpandedValue { get; set; }

        [JsonProperty("display_url")]
#if !Smartphone && !NET20
        [DataMember]
#endif
        public virtual string DisplayUrl { get; set; }

        public TwitterUrl()
        {
            Initialize();
        }

        private void Initialize()
        {
            EntityType = TwitterEntityType.Url;
        }
    }

#if !SILVERLIGHT
    [Serializable]
#endif
#if !Smartphone && !NET20
    [DataContract]
    [DebuggerDisplay("@{ScreenName}")]
#endif
    [JsonObject(MemberSerialization.OptIn)]
    public class TwitterMention : TwitterEntity
    {
        [JsonProperty("id")]
#if !Smartphone && !NET20
        [DataMember]
#endif
        public virtual long Id { get; set; }

        [JsonProperty("screen_name")]
#if !Smartphone && !NET20
        [DataMember]
#endif
        public virtual string ScreenName { get; set; }

        [JsonProperty("name")]
#if !Smartphone && !NET20
        [DataMember]
#endif
        public virtual string Name { get; set; }

        public TwitterMention()
        {
            EntityType = TwitterEntityType.Mention;
        }
    }

#if !SILVERLIGHT
    [Serializable]
#endif
#if !Smartphone && !NET20
    [DataContract]
    [DebuggerDisplay("#{Text}")]
#endif
    [JsonObject(MemberSerialization.OptIn)]
    public class TwitterHashTag : TwitterEntity
    {
        [JsonProperty("text")]
#if !Smartphone && !NET20
        [DataMember]
#endif
        public virtual string Text { get; set; }

        public TwitterHashTag()
        {
            Initialize();
        }

        private void Initialize()
        {
            EntityType = TwitterEntityType.HashTag;
        }
    }

#if !SILVERLIGHT
    [Serializable]
#endif
#if !Smartphone && !NET20
    [DataContract]
    [DebuggerDisplay("{MediaType}:{MediaUrl}")]
#endif
    [JsonObject(MemberSerialization.OptIn)]
    public class TwitterMedia : TwitterEntity
    {
        [JsonProperty("id")]
#if !Smartphone && !NET20
        [DataMember]
#endif
        public virtual long Id { get; set; }

        [JsonProperty("id_str")]
#if !Smartphone && !NET20
        [DataMember]
#endif
        public virtual string IdAsString { get; set; }

        [JsonProperty("media_url")]
#if !Smartphone && !NET20
        [DataMember]
#endif
        public virtual string MediaUrl { get; set; }

        [JsonProperty("media_url_https")]
#if !Smartphone && !NET20
        [DataMember]
#endif
        public virtual string MediaUrlHttps { get; set; }

        [JsonProperty("url")]
#if !Smartphone && !NET20
        [DataMember]
#endif
        public virtual string Url { get; set; }

        [JsonProperty("display_url")]
#if !Smartphone && !NET20
        [DataMember]
#endif
        public virtual string DisplayUrl { get; set; }

        [JsonProperty("expanded_url")]
#if !Smartphone && !NET20
        [DataMember]
#endif
        public virtual string ExpandedUrl { get; set; }

        [JsonProperty("type")]
#if !Smartphone && !NET20
        [DataMember]
#endif
        public virtual TwitterMediaType MediaType { get; set; }

        [JsonProperty("sizes")]
#if !Smartphone && !NET20
        [DataMember]
#endif
        public virtual TwitterMediaSizes Sizes { get; set; }

        public TwitterMedia()
        {
            Initialize();
        }

        private void Initialize()
        {
            EntityType = TwitterEntityType.Media;
        }
    }

#if !SILVERLIGHT
    [Serializable]
#endif
#if !Smartphone && !NET20
    [DataContract]
#endif
    [JsonObject(MemberSerialization.OptIn)]
    public class TwitterMediaSizes : IEnumerable<TwitterMediaSize>
    {
        [JsonProperty("thumb")]
#if !Smartphone && !NET20
        [DataMember]
#endif
        public virtual TwitterMediaSize Thumb { get; set; }

        [JsonProperty("small")]
#if !Smartphone && !NET20
        [DataMember]
#endif
        public virtual TwitterMediaSize Small { get; set; }

        [JsonProperty("medium")]
#if !Smartphone && !NET20
        [DataMember]
#endif
        public virtual TwitterMediaSize Medium { get; set; }

        [JsonProperty("large")]
#if !Smartphone && !NET20
        [DataMember]
#endif
        public virtual TwitterMediaSize Large { get; set; }

        public IEnumerator<TwitterMediaSize> GetEnumerator()
        {
            return Coalesce().GetEnumerator();
        }

        private IEnumerable<TwitterMediaSize> Coalesce()
        {
            var sizes = new List<TwitterMediaSize>();
            if(Thumb != null)
            {
                sizes.Add(Thumb);
            }
            if(Small != null)
            {
                sizes.Add(Small);
            }
            if(Medium != null)
            {
                sizes.Add(Medium);
            }
            if(Large != null)
            {
                sizes.Add(Large);
            }
            return sizes;
        }

        IEnumerator IEnumerable.GetEnumerator()
        {
            return GetEnumerator();
        }
    }

#if !SILVERLIGHT
    [Serializable]
#endif
#if !Smartphone && !NET20
    [DataContract]
#endif
    [JsonObject(MemberSerialization.OptIn)]
    public class TwitterMediaSize
    {
#if !Smartphone && !NET20
        [DataMember]
#endif
        public virtual string Resize { get; set; }

        [JsonProperty("w")]
#if !Smartphone && !NET20
        [DataMember]
#endif
        public virtual int Width { get; set; }

        [JsonProperty("h")]
#if !Smartphone && !NET20
        [DataMember]
#endif
        public virtual int Height { get; set; }
    }
}


text:
require 'spec_helper'
require_relative 'ipcommerce_transaction.rb'

describe VaultedBilling::Gateways::Ipcommerce do
  let(:gateway) { VaultedBilling.gateway(:ipcommerce).new }
  # let(:options) { { :merchant_profile_id => 'TicketTest_C82ED00001', :workflow_id => 'C82ED00001' }} # Terminal Capture: Tsys
  # let(:batch) { "T" }

  let(:options) { { :merchant_profile_id => 'TicketTest_B447F00001', :workflow_id => 'B447F00001' }} # Terminal Capture: Vantiv / 5th 3rd Bank
  let(:batch) { "V" }

  before(:all) do
    puts "test code, status code, approval code, status message, transaction id"
  end

  context "Authorization Tests" do
    let(:customer) { Factory.build(:customer) }
    let(:authorization) { gateway.authorize(nil, credit_card, amount, options) }

    subject { IpcommerceTransaction.new(code, authorization) }

    context 'setup' do
      use_vcr_cassette 'ipcommerce/certification/terminal/a-setup'
      it "clears captures" do
        gateway.capture_all(options)
      end
    end

    context 'A1' do
      let(:code) { "#{batch}_A1" }
      let(:amount) { 2.00 }
      let(:credit_card) { Factory.build(:expires_credit_card, :card_number => '4111111111111111', :cvv_number => '111', :postal_code => '10101') }
      use_vcr_cassette 'ipcommerce/certification/terminal/a1'

      it "outputs the result" do
        puts subject.print
      end
    end

    context 'A2' do
      let(:code) { "#{batch}_A2" }
      let(:amount) { 2.50 }
      let(:credit_card) { Factory.build(:expires_credit_card, :card_number => '5454545454545454', :cvv_number => '111', :postal_code => '10101') }
      use_vcr_cassette 'ipcommerce/certification/terminal/a2'

      it "outputs the result" do
        puts subject.print
      end
    end

    context 'A3' do
      let(:code) { "#{batch}_A3" }
      let(:amount) { 5.00 }
      let(:credit_card) { Factory.build(:expires_credit_card, :card_number => '371449635398456', :cvv_number => '1111', :postal_code => '10101') }
      use_vcr_cassette 'ipcommerce/certification/terminal/a3'

      it "outputs the result" do
        puts subject.print
      end
    end

    context 'A4' do
      let(:code) { "#{batch}_A4" }
      let(:amount) { 6.00 }
      let(:credit_card) { Factory.build(:expires_credit_card, :card_number => '4111111111111111', :cvv_number => '111', :postal_code => '10101') }
      use_vcr_cassette 'ipcommerce/certification/terminal/a4'

      it "outputs the result" do
        puts subject.print
      end
    end

    context 'A5' do
      let(:code) { "#{batch}_A5" }
      let(:amount) { 2.15 }
      let(:credit_card) { Factory.build(:expires_credit_card, :card_number => '5454545454545454', :cvv_number => nil, :postal_code => '10101') }
      use_vcr_cassette 'ipcommerce/certification/terminal/a5'

      it "outputs the result" do
        puts subject.print
      end
    end

    context 'A6' do
      let(:code) { "#{batch}_A6" }
      let(:amount) { 10.83 }
      let(:credit_card) { Factory.build(:expires_credit_card, :card_number => '371449635398456', :cvv_number => 777, :postal_code => '10101') }
      use_vcr_cassette 'ipcommerce/certification/terminal/a6'

      it "outputs the result" do
        puts subject.print
      end
    end

    context 'A7' do
      let(:capture_all) { gateway.capture_all(options) }
      use_vcr_cassette 'ipcommerce/certification/terminal/a7'

      it "outputs the results" do
        puts IpcommerceTransaction.new("#{batch}_A7", capture_all).print
      end
    end
  end

  context "ReturnById Tests" do
    let(:b1_authorization) { gateway.authorize(nil, b1_credit_card, 49.00, options) }
    let(:b1_credit_card) { Factory.build(:expires_credit_card, :card_number => '4111111111111111', :cvv_number => '111', :postal_code => '10101') }
    let(:b2_capture_selective) { gateway.capture_selective([b1_authorization.id], nil, options) }
    let(:b3_refund) { gateway.refund(b1_authorization.id, 32.00, options) }
    let(:b4_authorization) { gateway.authorize(nil, b4_credit_card, 27.00, options) }
    let(:b4_credit_card) { Factory.build(:expires_credit_card, :card_number => '5454545454545454', :cvv_number => '111', :postal_code => '10101') }
    let(:b6_refund) { gateway.refund(b4_authorization.id, 27.00, options) }
    let(:b7_return_unlinked) { gateway.return_unlinked(nil, unlinked_credit_card, 3.00, options) }
    let(:unlinked_credit_card) { Factory.build(:expires_credit_card, :card_number => '5454545454545454') }

    use_vcr_cassette 'ipcommerce/certification/terminal/b'

    context 'setup' do
      use_vcr_cassette 'ipcommerce/certification/terminal/b-setup'
      it "clears captures" do
        gateway.capture_all(options)
      end
    end

    it "outputs the result" do
      puts IpcommerceTransaction.new("#{batch}_B1", b1_authorization).print
      puts IpcommerceTransaction.new("#{batch}_B2", b2_capture_selective).print
      puts IpcommerceTransaction.new("#{batch}_B3", b3_refund).print
      puts IpcommerceTransaction.new("#{batch}_B4", b4_authorization).print
      puts IpcommerceTransaction.new("#{batch}_B5", gateway.capture_all(options)).print
      puts IpcommerceTransaction.new("#{batch}_B6", b6_refund).print
      puts IpcommerceTransaction.new("#{batch}_B7", b7_return_unlinked).print
      puts IpcommerceTransaction.new("#{batch}_B8", gateway.capture_all(options)).print
    end
  end

  context "Undo (Void) Tests" do
    let(:c1_authorization) { gateway.authorize(nil, c1_credit_card, 57.00, options) }
    let(:c1_credit_card) { Factory.build(:expires_credit_card, :card_number => '5454545454545454', :cvv_number => '111', :postal_code => '10101') }
    let(:c2_void) { gateway.void(c1_authorization.id, options) }
    let(:c3_authorization) { gateway.authorize(nil, c3_credit_card, 54.00, options) }
    let(:c3_credit_card) { Factory.build(:expires_credit_card, :card_number => '4111111111111111', :cvv_number => '111', :postal_code => '10101') }
    let(:c4_capture_selective) { gateway.capture_selective([c3_authorization.id], nil, options) }
    let(:c5_authorization) { gateway.authorize(nil, c5_credit_card, 61.00, options) }
    let(:c5_credit_card) { Factory.build(:expires_credit_card, :card_number => '5454545454545454', :cvv_number => '111', :postal_code => '10101') }
    let(:c6_void) { gateway.void(c5_authorization.id, options) }
    let(:c7_authorization) { gateway.authorize(nil, c3_credit_card, 63.00, options) }
    let(:c7_credit_card) { Factory.build(:expires_credit_card, :card_number => '4111111111111111', :cvv_number => '111', :postal_code => '10101') }

    use_vcr_cassette 'ipcommerce/certification/terminal/c'

    context 'setup' do
      use_vcr_cassette 'ipcommerce/certification/terminal/c-setup'
      it "clears captures" do
        gateway.capture_all(options)
      end
    end

    it "outputs the result" do
      puts IpcommerceTransaction.new("#{batch}_C1", c1_authorization).print
      puts IpcommerceTransaction.new("#{batch}_C2", c2_void).print
      puts IpcommerceTransaction.new("#{batch}_C3", c3_authorization).print
      puts IpcommerceTransaction.new("#{batch}_C4", c4_capture_selective).print
      puts IpcommerceTransaction.new("#{batch}_C5", c5_authorization).print
      puts IpcommerceTransaction.new("#{batch}_C6", c6_void).print
      puts IpcommerceTransaction.new("#{batch}_C7", c7_authorization).print
      puts IpcommerceTransaction.new("#{batch}_C8", gateway.capture_all(options)).print
    end
  end

  context "Non-Standard Card Tests" do
    let(:d1_authorization) { gateway.authorize(nil, d1_credit_card, 17.00, options) }
    let(:d1_credit_card) { Factory.build(:expires_credit_card, :card_number => '6011000995504101', :cvv_number => '111', :postal_code => '10101') }
    let(:d2_authorization) { gateway.authorize(nil, d2_credit_card, 33.03, options) }
    let(:d2_credit_card) { Factory.build(:expires_credit_card, :card_number => '4111111111111111', :postal_code => '10101') }
    let(:d3_authorization) { gateway.authorize(nil, d3_credit_card, 34.02, options) }
    let(:d3_credit_card) { Factory.build(:expires_credit_card, :card_number => '4111111111111111', :postal_code => '10101') }
    let(:d4_authorization) { gateway.authorize(nil, d4_credit_card, 35.05, options) }
    let(:d4_credit_card) { Factory.build(:expires_credit_card, :card_number => '5454545454545454', :postal_code => '10101') }

    use_vcr_cassette 'ipcommerce/certification/terminal/d'

    context 'setup' do
      use_vcr_cassette 'ipcommerce/certification/terminal/d-setup'
      it "clears captures" do
        gateway.capture_all(options)
      end
    end

    it "outputs the result" do
      puts IpcommerceTransaction.new("#{batch}_D1", d1_authorization).print
      puts IpcommerceTransaction.new("#{batch}_D2", d2_authorization).print
      puts IpcommerceTransaction.new("#{batch}_D3", d3_authorization).print
      puts IpcommerceTransaction.new("#{batch}_D4", d4_authorization).print
      puts IpcommerceTransaction.new("#{batch}_D5", gateway.capture_all(options)).print
    end
  end

  context "Voice Authorization Tests" do
    let(:v1_authorization) { gateway.authorize(nil, v1_credit_card, 8.00, options.merge(:approval_code => 'ABC123')) }
    let(:v1_credit_card) { Factory.build(:expires_credit_card, :card_number => '4111111111111111') }

    use_vcr_cassette 'ipcommerce/certification/terminal/v'

    context 'setup' do
      use_vcr_cassette 'ipcommerce/certification/terminal/v-setup'
      it "clears captures" do
        gateway.capture_all(options)
      end
    end

    it "outputs the result" do
      puts IpcommerceTransaction.new("#{batch}_V1", v1_authorization).print
      puts IpcommerceTransaction.new("#{batch}_V2", gateway.capture_all(options)).print
    end
  end

  context "Secure Card Data Tokenization Tests" do
    let(:i1_authorization) { gateway.authorize(nil, i1_credit_card, 1.00, options) }
    let(:i1_credit_card) { Factory.build(:expires_credit_card, :card_number => '4111111111111111', :street_address => '1000 1st Av', :postal_code => '10101') }
    let(:i2_authorization) { gateway.authorize(nil, i2_credit_card, 1.00, options) }
    let(:i2_credit_card) { Factory.build(:expires_credit_card, :card_number => '5454545454545454', :cvv_number => '111', :postal_code => '10101') }
    let(:i3_authorization) { gateway.authorize(nil, i3_credit_card, 1.00, options) }
    let(:i3_credit_card) { Factory.build(:expires_credit_card, :card_number => '371449635398456', :cvv_number => '1111', :postal_code => '10101') }
    let(:i5_authorization) { gateway.authorize(nil, i1_credit_card, 16.00, options) }
    let(:i6_return_unlinked) { gateway.return_unlinked(nil, i1_credit_card, 18.00, options) }
    let(:i7_authorization) { gateway.authorize(nil, i3_credit_card, 31.83, options) }

    use_vcr_cassette 'ipcommerce/certification/terminal/i'

    context 'setup' do
      use_vcr_cassette 'ipcommerce/certification/terminal/i-setup'
      it "clears captures" do
        gateway.capture_all(options)
      end
    end

    it "outputs the result" do
      puts IpcommerceTransaction.new("#{batch}_I1", i1_authorization).print
      puts IpcommerceTransaction.new("#{batch}_I2", i2_authorization).print
      puts IpcommerceTransaction.new("#{batch}_I3", i3_authorization).print
      puts IpcommerceTransaction.new("#{batch}_I4", gateway.capture_all(options)).print
      puts IpcommerceTransaction.new("#{batch}_I5", i5_authorization).print
      puts IpcommerceTransaction.new("#{batch}_I6", i6_return_unlinked).print
      puts IpcommerceTransaction.new("#{batch}_I7", i7_authorization).print
      puts IpcommerceTransaction.new("#{batch}_I8", gateway.capture_all(options)).print
    end
  end

  context 'Transaction Management Services (TMS)' do
    let(:t1_authorization) { gateway.authorize(nil, t1_credit_card, 30.00, options) }
    let(:t1_credit_card) { Factory.build(:expires_credit_card, :card_number => '4111111111111111', :postal_code => '10101', :cvv_number => '111') }
    let(:t2_refund) { gateway.return_unlinked(nil, t1_credit_card, 30.00, options) }

    let(:t3_authorization) { gateway.authorize(nil, t3_credit_card, 30.00, options) }
    let(:t3_credit_card) { Factory.build(:expires_credit_card, :card_number => '5454545454545454', :postal_code => '10101', :cvv_number => '111') }
    let(:t4_void) { gateway.void(t3_authorization.id, options) }

    let(:t5_authorization) { gateway.authorize(nil, t5_credit_card, 33.00, options) }
    let(:t5_credit_card) { Factory.build(:expires_credit_card, :card_number => '6011000995504101', :postal_code => '10101', :cvv_number => '111') }
    let(:t6_capture) { gateway.capture_selective([t5_authorization.id], [{ :id => t5_authorization.id, :amount => 35.00 }], options) }

    let(:t7_authorization) { gateway.authorize(nil, t7_credit_card, 33.00, options) }
    let(:t7_credit_card) { Factory.build(:expires_credit_card, :card_number => '371449635398456', :postal_code => '10101', :cvv_number => '111') }

    let(:t8_refund) { gateway.refund(t5_authorization.id, 33.00, options) }

    use_vcr_cassette 'ipcommerce/certification/terminal/t'

    context 'setup' do
      use_vcr_cassette 'ipcommerce/certification/terminal/t-setup'
      it "clears captures" do
        gateway.capture_all(options)
      end
    end

    it "outputs the result" do
      puts IpcommerceTransaction.new("#{batch}_T1", t1_authorization).print
      puts IpcommerceTransaction.new("#{batch}_T2", t2_refund).print
      puts IpcommerceTransaction.new("#{batch}_T3", t3_authorization).print
      puts IpcommerceTransaction.new("#{batch}_T4", t4_void).print
      puts IpcommerceTransaction.new("#{batch}_T5", t5_authorization).print
      puts IpcommerceTransaction.new("#{batch}_T6", t6_capture).print
      puts IpcommerceTransaction.new("#{batch}_T7", t7_authorization).print
      puts IpcommerceTransaction.new("#{batch}_T8", t8_refund).print
      puts IpcommerceTransaction.new("#{batch}_T9", gateway.capture_all(options)).print

      gateway.query_batch
      gateway.query_transactions_summary
      gateway.query_transactions_families({ :transaction_ids => [t1_authorization.id]})
      gateway.query_transaction_details({ :transaction_ids => [t1_authorization.id]})
    end
  end
end


text:
Odin Capital forex MT4

            Why is MetaTrader right for you?

            The Odin Capital forex MetaTrader 4 account offers forex traders fast, low latency, forex execution and highly competitive low interbank spreads. Compatible with all EA's and all trading styles, your automated trading potential is unlimited.

            MetaTrader 4 Client Terminal key features :

            Works with expert advisors, built-in and custom indicators

            Allows mobile trading for PDA’s and suitable mobile phones

            Complete technical analysis with over 50 indicators and charting tools

            Handles a vast number of orders

            Creates various custom indicators and different time periods

            History database management, and historic data export/import

            Guarantees full data back-up and security

            Internal mailing system

            Built-in help guides for MetaTrader4 and Metaquotes Language 4

            Odin Capital forex MT4 System Requirements

            >PC with Microsoft Windows 98 SE2 operating system or higher

            >Intel Celeron-based processor, with a frequency of 1.7 GHz or higher

            >Screen resolution of 1024×768 pixels or higher

            >256 Mb of RAM or more

            >50 Mb of free drive space