text:
#pragma once
#include <aws/autoscaling/AutoScaling_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
#include <aws/autoscaling/model/Metric.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>

namespace Aws
{
namespace Utils
{
namespace Xml
{
  class XmlNode;
} // namespace Xml
} // namespace Utils
namespace AutoScaling
{
namespace Model
{

  /**
   *
This structure defines the CloudWatch metric to return, along with the
   * statistic, period, and unit.

For more information about the CloudWatch
   * terminology below, see Amazon
   * CloudWatch concepts in the Amazon CloudWatch User
   * Guide.

See Also:
   AWS
   * API Reference

   */
  class AWS_AUTOSCALING_API MetricStat
  {
  public:
    MetricStat();
    MetricStat(const Aws::Utils::Xml::XmlNode& xmlNode);
    MetricStat& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);

    void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
    void OutputToStream(Aws::OStream& oStream, const char* location) const;

    /**
     *
The CloudWatch metric to return, including the metric name, namespace, and
     * dimensions. To get the exact metric name, namespace, and dimensions, inspect the
     * Metric
     * object that is returned by a call to ListMetrics.

     */
    inline const Metric& GetMetric() const{ return m_metric; }

    /**
     *
The CloudWatch metric to return, including the metric name, namespace, and
     * dimensions. To get the exact metric name, namespace, and dimensions, inspect the
     * Metric
     * object that is returned by a call to ListMetrics.

     */
    inline bool MetricHasBeenSet() const { return m_metricHasBeenSet; }

    /**
     *
The CloudWatch metric to return, including the metric name, namespace, and
     * dimensions. To get the exact metric name, namespace, and dimensions, inspect the
     * Metric
     * object that is returned by a call to ListMetrics.

     */
    inline void SetMetric(const Metric& value) { m_metricHasBeenSet = true; m_metric = value; }

    /**
     *
The CloudWatch metric to return, including the metric name, namespace, and
     * dimensions. To get the exact metric name, namespace, and dimensions, inspect the
     * Metric
     * object that is returned by a call to ListMetrics.

     */
    inline void SetMetric(Metric&& value) { m_metricHasBeenSet = true; m_metric = std::move(value); }

    /**
     *
The CloudWatch metric to return, including the metric name, namespace, and
     * dimensions. To get the exact metric name, namespace, and dimensions, inspect the
     * Metric
     * object that is returned by a call to ListMetrics.

     */
    inline MetricStat& WithMetric(const Metric& value) { SetMetric(value); return *this;}

    /**
     *
The CloudWatch metric to return, including the metric name, namespace, and
     * dimensions. To get the exact metric name, namespace, and dimensions, inspect the
     * Metric
     * object that is returned by a call to ListMetrics.

     */
    inline MetricStat& WithMetric(Metric&& value) { SetMetric(std::move(value)); return *this;}

    /**
     *
The statistic to return. It can include any CloudWatch statistic or extended
     * statistic. For a list of valid values, see the table in Statistics
     * in the Amazon CloudWatch User Guide.

The most commonly used
     * metrics for predictive scaling are Average and
     * Sum.

     */
    inline const Aws::String& GetStat() const{ return m_stat; }

    /**
     *
The statistic to return. It can include any CloudWatch statistic or extended
     * statistic. For a list of valid values, see the table in Statistics
     * in the Amazon CloudWatch User Guide.

The most commonly used
     * metrics for predictive scaling are Average and
     * Sum.

     */
    inline bool StatHasBeenSet() const { return m_statHasBeenSet; }

    /**
     *
The statistic to return. It can include any CloudWatch statistic or extended
     * statistic. For a list of valid values, see the table in Statistics
     * in the Amazon CloudWatch User Guide.

The most commonly used
     * metrics for predictive scaling are Average and
     * Sum.

     */
    inline void SetStat(const Aws::String& value) { m_statHasBeenSet = true; m_stat = value; }

    /**
     *
The statistic to return. It can include any CloudWatch statistic or extended
     * statistic. For a list of valid values, see the table in Statistics
     * in the Amazon CloudWatch User Guide.

The most commonly used
     * metrics for predictive scaling are Average and
     * Sum.

     */
    inline void SetStat(Aws::String&& value) { m_statHasBeenSet = true; m_stat = std::move(value); }

    /**
     *
The statistic to return. It can include any CloudWatch statistic or extended
     * statistic. For a list of valid values, see the table in Statistics
     * in the Amazon CloudWatch User Guide.

The most commonly used
     * metrics for predictive scaling are Average and
     * Sum.

     */
    inline void SetStat(const char* value) { m_statHasBeenSet = true; m_stat.assign(value); }

    /**
     *
The statistic to return. It can include any CloudWatch statistic or extended
     * statistic. For a list of valid values, see the table in Statistics
     * in the Amazon CloudWatch User Guide.

The most commonly used
     * metrics for predictive scaling are Average and
     * Sum.

     */
    inline MetricStat& WithStat(const Aws::String& value) { SetStat(value); return *this;}

    /**
     *
The statistic to return. It can include any CloudWatch statistic or extended
     * statistic. For a list of valid values, see the table in Statistics
     * in the Amazon CloudWatch User Guide.

The most commonly used
     * metrics for predictive scaling are Average and
     * Sum.

     */
    inline MetricStat& WithStat(Aws::String&& value) { SetStat(std::move(value)); return *this;}

    /**
     *
The statistic to return. It can include any CloudWatch statistic or extended
     * statistic. For a list of valid values, see the table in Statistics
     * in the Amazon CloudWatch User Guide.

The most commonly used
     * metrics for predictive scaling are Average and
     * Sum.

     */
    inline MetricStat& WithStat(const char* value) { SetStat(value); return *this;}

    /**
     *
The unit to use for the returned data points. For a complete list of the
     * units that CloudWatch supports, see the MetricDatum
     * data type in the Amazon CloudWatch API Reference.

     */
    inline const Aws::String& GetUnit() const{ return m_unit; }

    /**
     *
The unit to use for the returned data points. For a complete list of the
     * units that CloudWatch supports, see the MetricDatum
     * data type in the Amazon CloudWatch API Reference.

     */
    inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }

    /**
     *
The unit to use for the returned data points. For a complete list of the
     * units that CloudWatch supports, see the MetricDatum
     * data type in the Amazon CloudWatch API Reference.

     */
    inline void SetUnit(const Aws::String& value) { m_unitHasBeenSet = true; m_unit = value; }

    /**
     *
The unit to use for the returned data points. For a complete list of the
     * units that CloudWatch supports, see the MetricDatum
     * data type in the Amazon CloudWatch API Reference.

     */
    inline void SetUnit(Aws::String&& value) { m_unitHasBeenSet = true; m_unit = std::move(value); }

    /**
     *
The unit to use for the returned data points. For a complete list of the
     * units that CloudWatch supports, see the MetricDatum
     * data type in the Amazon CloudWatch API Reference.

     */
    inline void SetUnit(const char* value) { m_unitHasBeenSet = true; m_unit.assign(value); }

    /**
     *
The unit to use for the returned data points. For a complete list of the
     * units that CloudWatch supports, see the MetricDatum
     * data type in the Amazon CloudWatch API Reference.

     */
    inline MetricStat& WithUnit(const Aws::String& value) { SetUnit(value); return *this;}

    /**
     *
The unit to use for the returned data points. For a complete list of the
     * units that CloudWatch supports, see the MetricDatum
     * data type in the Amazon CloudWatch API Reference.

     */
    inline MetricStat& WithUnit(Aws::String&& value) { SetUnit(std::move(value)); return *this;}

    /**
     *
The unit to use for the returned data points. For a complete list of the
     * units that CloudWatch supports, see the MetricDatum
     * data type in the Amazon CloudWatch API Reference.

     */
    inline MetricStat& WithUnit(const char* value) { SetUnit(value); return *this;}

  private:

    Metric m_metric;
    bool m_metricHasBeenSet;

    Aws::String m_stat;
    bool m_statHasBeenSet;

    Aws::String m_unit;
    bool m_unitHasBeenSet;
  };

} // namespace Model
} // namespace AutoScaling
} // namespace Aws


text:
namespace DBA.FreshdeskSharp.Models
{
    public abstract class FreshdeskListOptionsBase
    {
        public uint? Page { get; set; }
        public uint? PerPage { get; set; }
    }
}

redpajama_set_name: RedPajamaGithub


text:
try:
    from setuptools import setup
except ImportError:
    from distutils.core import setup

long_description = '''\
QtSix provides a compatibility layer that allows to write Python
applications that work with different Qt bindings: PyQt5, PyQt4 or
PySide.

An application that used QtSix can work correctly if any of the
supported Qt bindings is installed on the system.
QtSix automatically detects available bindings and uses them
transparently.

If more than one Qt_ binding is present on the system then it is selected
the first one available in the following order: PyQt5, PyQt4, PySide.

'''

setup(
    name='qtsix',
    version='1.1.1.dev',
    description='Compatibility layer for different Qt bindings.',
    long_description=long_description,
    url='https://github.com/avalentino/qtsix',
    author='Antonio Valentino',
    author_email='antonio.valentino@tiscali.it',
    license='BSD',
    classifiers=[
        'Development Status :: 4 - Beta',
        'Intended Audience :: Developers',
        'Topic :: Software Development :: Widget Sets',
        'License :: OSI Approved :: BSD License',
        'Programming Language :: Python :: 2',
        'Programming Language :: Python :: 2.6',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.2',
        'Programming Language :: Python :: 3.3',
        'Programming Language :: Python :: 3.4',
    ],
    keywords='Qt bindings',
    packages=['qtsix'],
)


text:
This assumes you have Java Development Environment configured on you Raspberry Pi

## Install Maven on Raspberry Pi
* [Maven Installation Guide](https://grizzlykoalabear.com/2015/installing-maven-on-the-raspberry-pi-2/)

## Run
* First you need to compile `make compile`
* You can run the application using the script I provide simply `./run`


text:
package renamed;

import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;

import java.io.InputStreamReader;
import java.math.BigInteger;
import java.util.HashMap;
import java.util.Locale;
import java.util.StringTokenizer;

public class Main {
	static BufferedReader input;

	static StringTokenizer _stk;
	static String readln() throws IOException{
		String l=input.readLine();
		if(l!=null) _stk=new StringTokenizer(l," ");
		return l;
	}

	static String next(){return _stk.nextToken();}
	static int nextI(){return Integer.parseInt(next());}

	static int nextInt() throws Exception{
		try {
			return nextI();
		} catch (Exception e) {
			if(readln()==null)
				throw new Exception();
			return nextInt();
			// TODO: handle exception
		}

	}

	public static void main(String[] args) throws IOException {
		Locale.setDefault(Locale.US);
		input=new BufferedReader(new InputStreamReader(System.in));
//		input=new BufferedReader(new FileReader("FibonacciFreeze"));

		for (int casesId = 1; readln()!=null; casesId++) {

			try{
				int n=nextInt();
				System.out.printf("The Fibonacci number for %d is %d\n", n, fibRecursivoBig(n));
			}
			catch (Exception e) {
				return;
				// TODO: handle exception
			}
		}

	}

	static HashMap<Integer, BigInteger> fiboBig=new HashMap<Integer, BigInteger>();
	static{
		fiboBig.put(0, BigInteger.ZERO);
		fiboBig.put(1, BigInteger.ONE);
		for (int i = 2; i < 5001; i++) {
			fibRecursivoBig(i);
		}
	}

	static BigInteger fibRecursivoBig(Integer n){/*sirve mas alla de
												99*/
		BigInteger salida=fiboBig.get(n);
		if(salida==null){
			salida=fibRecursivoBig(n-1).add(fibRecursivoBig(n-2));
			fiboBig.put(n, salida);
		}
		return fiboBig.get(n);
	}
}


text:
class Post < ApplicationRecord
  belongs_to :blog
end


text:
package main

import (
	"fmt"
	. "github.com/mailgun/vulcand/backend"
	"strings"
)

const (
	vLine   = "\u2502"
	rCross  = "\u251C"
	lCorner = "\u2514"
)

type Tree interface {
	Self() string
	Children() []Tree
}

func printTree(root Tree, depth int, last bool, offset string) {
	// Print self
	tprint(fmt.Sprintf("%s%s%s", offset, getConnector(depth, last), root.Self()))

	// No children, we are done
	children := root.Children()
	if len(children) == 0 {
		return
	}

	// We have children, print connector offset
	tprint(getOffset(offset, last))
	// Compute child offset, in case if we are not the last child
	// add vertical line | to connect our parent to the last child
	childOffset := getChildOffset(offset, last)

	for i, c := range children {
		printTree(c, depth+1, i == len(children)-1, childOffset)
		if i != len(children)-1 {
			tprint(fmt.Sprintf("%s|", childOffset))
		}
	}
}

func getConnector(depth int, last bool) string {
	if depth == 0 {
		return ""
	}
	if last {
		return lCorner
	}
	return rCross
}

func getChildOffset(offset string, last bool) string {
	if last {
		return fmt.Sprintf("%s  ", offset)
	}
	// in case if we are not the last child
	// add vertical line | to connect our parent to the last child
	return fmt.Sprintf("%s| ", offset)
}

func getOffset(offset string, last bool) string {
	if last {
		return fmt.Sprintf("%s  |", offset)
	}
	return fmt.Sprintf("%s| |", offset)
}

type VulcanTree struct {
	root interface{}
}

func (vt *VulcanTree) Self() string {
	switch r := (vt.root).(type) {
	case []*Host:
		return "[hosts]"
	case []*Upstream:
		return "[upstreams]"
	case *Host:
		return r.String()
	case *Location:
		return r.String()
	case *Upstream:
		return r.String()
	case *Endpoint:
		return r.String()
	}
	return "unknown"
}

func (vt *VulcanTree) Children() []Tree {
	switch r := (vt.root).(type) {
	case []*Host:
		return hostsToTrees(r)
	case []*Upstream:
		return upstreamsToTrees(r)
	case *Host:
		return locationsToTrees(r.Locations)
	case *Upstream:
		return endpointsToTrees(r.Endpoints)
	case *Location:
		return upstreamsToTrees([]*Upstream{r.Upstream})
	}
	return nil
}

func hostsToTrees(in []*Host) []Tree {
	out := make([]Tree, len(in))
	for i, _ := range out {
		out[i] = &VulcanTree{root: in[i]}
	}
	return out
}

func locationsToTrees(in []*Location) []Tree {
	out := make([]Tree, len(in))
	for i, _ := range out {
		out[i] = &VulcanTree{root: in[i]}
	}
	return out
}

func upstreamsToTrees(in []*Upstream) []Tree {
	out := make([]Tree, len(in))
	for i, _ := range out {
		out[i] = &VulcanTree{root: in[i]}
	}
	return out
}

func endpointsToTrees(in []*Endpoint) []Tree {
	out := make([]Tree, len(in))
	for i, _ := range out {
		out[i] = &VulcanTree{root: in[i]}
	}
	return out
}

func printStatus(response *StatusResponse, err error) {
	if err != nil {
		printError(err)
	} else {
		printOk(response.Message)
	}
}

func printError(err error) {
	fmt.Printf("[ERROR]: %s\n", err)
}

func printOk(message string) {
	fmt.Printf("[SUCCESS]: %s\n", message)
}

func printHosts(hosts []*Host) {
	tprint("")
	printTree(&VulcanTree{root: hosts}, 0, true, "")
}

func printUpstreams(upstreams []*Upstream) {
	tprint("")
	printTree(&VulcanTree{root: upstreams}, 0, true, "")
}

func tprint(out string, params ...interface{}) {
	s := fmt.Sprintf(out, params...)
	s = strings.Replace(s, "+-", rCross, -1)
	s = strings.Replace(s, "|", vLine, -1)
	fmt.Println(s)
}


text:
namespace MDM.ServiceHost.Unity.Sample.Configuration
{
    using System.Collections.Generic;

    using EnergyTrading.Contracts.Atom;
    using EnergyTrading.Mapping;
    using EnergyTrading.MDM;
    using EnergyTrading.MDM.Contracts.Mappers;
    using EnergyTrading.MDM.Contracts.Validators;
    using EnergyTrading.MDM.Mappers;
    using EnergyTrading.MDM.Services;

    using Microsoft.Practices.Unity;

    public class ExchangeConfiguration : NexusEntityConfiguration<ExchangeService, Exchange, EnergyTrading.MDM.Contracts.Sample.Exchange,
		PartyRoleMapping, ExchangeValidator>
    {
        public ExchangeConfiguration(IUnityContainer container) : base(container)
        {
        }

        protected override string Name
        {
            get { return "exchange"; }
        }

        protected override void ContractDomainMapping()
        {
            this.Container.RegisterType<IMapper<EnergyTrading.MDM.Contracts.Sample.Exchange, Exchange>, EnergyTrading.MDM.Contracts.Mappers.ExchangeMapper>();
            this.Container.RegisterType<IMapper<EnergyTrading.MDM.Contracts.Sample.ExchangeDetails, ExchangeDetails>, EnergyTrading.MDM.Contracts.Mappers.ExchangeDetailsMapper>();
            this.Container.RegisterType<IMapper<EnergyTrading.Mdm.Contracts.MdmId, PartyRoleMapping>, MappingMapper<PartyRoleMapping>>();
        }

        protected override void DomainContractMapping()
        {
            this.MappingEngine.RegisterMap(new EnergyTrading.MDM.Mappers.ExchangeDetailsMapper());
            this.MappingEngine.RegisterMap(new PartyRoleMappingMapper());
            this.Container.RegisterType<IMapper<Exchange, List<Link>>, NullLinksMapper>();
            this.Container.RegisterType<IMapper<Exchange, EnergyTrading.MDM.Contracts.Sample.Exchange>, EnergyTrading.MDM.Mappers.ExchangeMapper>();
        }
    }
}


text:
package integrationtest

import (
	"context"
	"sort"
	"testing"
	"time"

	"github.com/stretchr/testify/require"
	apioption "google.golang.org/api/option"
	"google.golang.org/grpc"
	"google.golang.org/grpc/credentials/insecure"

	"github.com/GoogleCloudPlatform/opentelemetry-operations-go/exporter/collector/internal/integrationtest/protos"
	"github.com/GoogleCloudPlatform/opentelemetry-operations-go/exporter/collector/internal/integrationtest/testcases"
	"github.com/GoogleCloudPlatform/opentelemetry-operations-go/exporter/metric"
	"github.com/GoogleCloudPlatform/opentelemetry-operations-go/internal/cloudmock"
)

func TestCollectorMetrics(t *testing.T) {
	ctx := context.Background()
	endTime := time.Now()
	startTime := endTime.Add(-time.Second)

	for _, test := range testcases.MetricsTestCases {
		test := test

		t.Run(test.Name, func(t *testing.T) {
			test.SkipIfNeeded(t)

			metrics := test.LoadOTLPMetricsInput(t, startTime, endTime)

			testServer, err := cloudmock.NewMetricTestServer()
			require.NoError(t, err)
			go testServer.Serve()
			defer testServer.Shutdown()
			testServerExporter := NewMetricTestExporter(ctx, t, testServer, test.CreateCollectorMetricConfig())
			// For collecting self observability metrics
			inMemoryOCExporter, err := NewInMemoryOCViewExporter()
			require.NoError(t, err)
			defer inMemoryOCExporter.Shutdown(ctx)

			err = testServerExporter.PushMetrics(ctx, metrics)
			if !test.ExpectErr {
				require.NoError(t, err, "Failed to export metrics to local test server")
			} else {
				require.Error(t, err, "Did not see expected error")
			}
			require.NoError(t, testServerExporter.Shutdown(ctx))

			expectFixture := test.LoadMetricExpectFixture(
				t,
				startTime,
				endTime,
			)
			sort.Slice(expectFixture.CreateTimeSeriesRequests, func(i, j int) bool {
				return expectFixture.CreateTimeSeriesRequests[i].Name < expectFixture.CreateTimeSeriesRequests[j].Name
			})
			sort.Slice(expectFixture.CreateMetricDescriptorRequests, func(i, j int) bool {
				if expectFixture.CreateMetricDescriptorRequests[i].Name != expectFixture.CreateMetricDescriptorRequests[j].Name {
					return expectFixture.CreateMetricDescriptorRequests[i].Name < expectFixture.CreateMetricDescriptorRequests[j].Name
				}
				return expectFixture.CreateMetricDescriptorRequests[i].MetricDescriptor.Name < expectFixture.CreateMetricDescriptorRequests[j].MetricDescriptor.Name
			})
			sort.Slice(expectFixture.CreateServiceTimeSeriesRequests, func(i, j int) bool {
				return expectFixture.CreateServiceTimeSeriesRequests[i].Name < expectFixture.CreateServiceTimeSeriesRequests[j].Name
			})

			selfObsMetrics, err := inMemoryOCExporter.Proto(ctx)
			require.NoError(t, err)
			fixture := &protos.MetricExpectFixture{
				CreateTimeSeriesRequests:        testServer.CreateTimeSeriesRequests(),
				CreateMetricDescriptorRequests:  testServer.CreateMetricDescriptorRequests(),
				CreateServiceTimeSeriesRequests: testServer.CreateServiceTimeSeriesRequests(),
				SelfObservabilityMetrics:        selfObsMetrics,
			}
			sort.Slice(fixture.CreateTimeSeriesRequests, func(i, j int) bool {
				return fixture.CreateTimeSeriesRequests[i].Name < fixture.CreateTimeSeriesRequests[j].Name
			})
			sort.Slice(fixture.CreateMetricDescriptorRequests, func(i, j int) bool {
				if fixture.CreateMetricDescriptorRequests[i].Name != fixture.CreateMetricDescriptorRequests[j].Name {
					return fixture.CreateMetricDescriptorRequests[i].Name < fixture.CreateMetricDescriptorRequests[j].Name
				}
				return fixture.CreateMetricDescriptorRequests[i].MetricDescriptor.Name < fixture.CreateMetricDescriptorRequests[j].MetricDescriptor.Name
			})
			sort.Slice(fixture.CreateServiceTimeSeriesRequests, func(i, j int) bool {
				return fixture.CreateServiceTimeSeriesRequests[i].Name < fixture.CreateServiceTimeSeriesRequests[j].Name
			})
			diff := DiffMetricProtos(
				t,
				fixture,
				expectFixture,
			)
			if diff != "" {
				require.Fail(
					t,
					"Expected requests fixture and actual GCM requests differ",
					diff,
				)
			}
		})
	}
}

func TestSDKMetrics(t *testing.T) {
	ctx := context.Background()
	endTime := time.Now()
	startTime := endTime.Add(-time.Second)

	for _, test := range testcases.MetricsTestCases {
		test := test

		t.Run(test.Name, func(t *testing.T) {
			test.SkipIfNeededForSDK(t)

			metrics := test.LoadOTLPMetricsInput(t, startTime, endTime)

			testServer, err := cloudmock.NewMetricTestServer()
			require.NoError(t, err)
			go testServer.Serve()
			defer testServer.Shutdown()
			opts := append([]metric.Option{
				metric.WithProjectID("fakeprojectid"),
				metric.WithMonitoringClientOptions(
					apioption.WithEndpoint(testServer.Endpoint),
					apioption.WithoutAuthentication(),
					apioption.WithGRPCDialOption(grpc.WithTransportCredentials(insecure.NewCredentials())),
				)},
				test.MetricSDKExporterOptions...,
			)
			testServerExporter, err := metric.New(opts...)
			require.NoError(t, err)

			for _, m := range testcases.ConvertResourceMetrics(metrics) {
				err = testServerExporter.Export(ctx, m)
				if !test.ExpectErr {
					require.NoError(t, err, "Failed to export metrics to local test server")
				} else {
					require.Error(t, err, "Did not see expected error")
				}
			}
			require.NoError(t, testServerExporter.Shutdown(ctx))

			expectFixture := test.LoadMetricExpectFixture(
				t,
				startTime,
				endTime,
			)
			sort.Slice(expectFixture.CreateTimeSeriesRequests, func(i, j int) bool {
				return expectFixture.CreateTimeSeriesRequests[i].Name < expectFixture.CreateTimeSeriesRequests[j].Name
			})
			sort.Slice(expectFixture.CreateMetricDescriptorRequests, func(i, j int) bool {
				if expectFixture.CreateMetricDescriptorRequests[i].Name != expectFixture.CreateMetricDescriptorRequests[j].Name {
					return expectFixture.CreateMetricDescriptorRequests[i].Name < expectFixture.CreateMetricDescriptorRequests[j].Name
				}
				return expectFixture.CreateMetricDescriptorRequests[i].MetricDescriptor.Name < expectFixture.CreateMetricDescriptorRequests[j].MetricDescriptor.Name
			})
			sort.Slice(expectFixture.CreateServiceTimeSeriesRequests, func(i, j int) bool {
				return expectFixture.CreateServiceTimeSeriesRequests[i].Name < expectFixture.CreateServiceTimeSeriesRequests[j].Name
			})

			// Do not test self-observability metrics with SDK exporters
			expectFixture.SelfObservabilityMetrics = nil

			fixture := &protos.MetricExpectFixture{
				CreateTimeSeriesRequests:        testServer.CreateTimeSeriesRequests(),
				CreateMetricDescriptorRequests:  testServer.CreateMetricDescriptorRequests(),
				CreateServiceTimeSeriesRequests: testServer.CreateServiceTimeSeriesRequests(),
				// Do not test self-observability metrics with SDK exporters
			}
			sort.Slice(fixture.CreateTimeSeriesRequests, func(i, j int) bool {
				return fixture.CreateTimeSeriesRequests[i].Name < fixture.CreateTimeSeriesRequests[j].Name
			})
			sort.Slice(fixture.CreateMetricDescriptorRequests, func(i, j int) bool {
				if fixture.CreateMetricDescriptorRequests[i].Name != fixture.CreateMetricDescriptorRequests[j].Name {
					return fixture.CreateMetricDescriptorRequests[i].Name < fixture.CreateMetricDescriptorRequests[j].Name
				}
				return fixture.CreateMetricDescriptorRequests[i].MetricDescriptor.Name < fixture.CreateMetricDescriptorRequests[j].MetricDescriptor.Name
			})
			sort.Slice(fixture.CreateServiceTimeSeriesRequests, func(i, j int) bool {
				return fixture.CreateServiceTimeSeriesRequests[i].Name < fixture.CreateServiceTimeSeriesRequests[j].Name
			})
			diff := DiffMetricProtos(
				t,
				fixture,
				expectFixture,
			)
			if diff != "" {
				require.Fail(
					t,
					"Expected requests fixture and actual GCM requests differ",
					diff,
				)
			}
		})
	}
}


text:
package com.digitalvibes.swipeCards;

import android.app.Activity;
import android.content.Intent;
import android.content.res.Resources;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.Window;
import android.webkit.JavascriptInterface;
import android.webkit.WebView;
import android.widget.Button;
import android.widget.Toast;

import com.digitalvibes.swipeCards.model.CardModel;
import com.digitalvibes.swipeCards.view.CardContainer;
import com.digitalvibes.swipeCards.view.SimpleCardStackAdapter;
import org.apache.cordova.*;
import org.json.JSONObject;
import org.json.JSONException;

public class MainActivity extends CordovaActivity {

    private CardContainer mCardContainer;
    public static String PACKAGE_NAME;
    public static Resources RESOURCES;
    public static MainActivity myActivity;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        super.onCreate(savedInstanceState);
        super.init();

        String package_name = getApplication().getPackageName();
        Resources resources = getApplication().getResources();
        PACKAGE_NAME = package_name;
        RESOURCES = resources;

        setContentView(resources.getIdentifier("mainlayout", "layout", package_name));

        JSONObject cards = null;

        try {
            cards = new JSONObject(getIntent().getStringExtra("cards"));
            //Log.i("SwipeCardsLength",new Integer(cards.length()).toString());
        } catch(JSONException e) {

        }

        final String successCallback = getIntent().getStringExtra("successCallback");
        final String failureCallback = getIntent().getStringExtra("failureCallback");

        mCardContainer = (CardContainer) findViewById(resources.getIdentifier("layoutview","id",package_name));

        Button right = (Button) findViewById(resources.getIdentifier("likeButton","id",package_name));
        right.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {

                CardModel currentCard = (CardModel) mCardContainer.getAdapter().getItem(mCardContainer.getChildCount()-1);
                currentCard.getOnCardDismissedListener().onLike();
                currentCard.flingRight();

            }
        });

        Button left = (Button) findViewById(resources.getIdentifier("dislikeButton","id",package_name));
        left.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {

                CardModel currentCard = (CardModel) mCardContainer.getAdapter().getItem(mCardContainer.getChildCount()-1);
                currentCard.getOnCardDismissedListener().onDislike();
                currentCard.flingLeft();

            }
        });

        Resources r = getResources();

        SimpleCardStackAdapter adapter = new SimpleCardStackAdapter(this);

        for(int i=0;i<cards.length();i++) {
            final int count  = i+1;
            try {
                JSONObject currentCard = cards.getJSONObject("item"+(i+1));
                //Log.i("CardsTitle",currentCard.getString("title"));
                CardModel cardModel = new CardModel(currentCard.getString("title"), currentCard.getString("img"),mCardContainer);
                cardModel.setOnClickListener(new CardModel.OnClickListener() {
                    @Override
                    public void OnClickListener() {
                        Log.i("Swipeable Cards","I am pressing the card");

                    }
                });

                cardModel.setOnCardDismissedListener(new CardModel.OnCardDismissedListener() {
                    @Override
                    public void onLike() {
                        //Log.i("Swipeable Cards", "javascript:" + successCallback +
                                //"(" + count + ");");

                        swipeCardsActivity.example.loadUrl("javascript:" + successCallback +
                                "(" + count + ");");

                        if(mCardContainer.getChildCount() == 1)
                            MainActivity.this.finish();
                    }

                    @Override
                    public void onDislike() {
                        //Log.i("Swipeable Cards", "javascript:" + failureCallback +
                                //"(" + count + ");");

                        swipeCardsActivity.example.loadUrl("javascript:" + failureCallback +
                                "(" + count + ");");

                        if(mCardContainer.getChildCount() == 1)
                            MainActivity.this.finish();
                    }
                });

                adapter.add(cardModel);

            } catch (JSONException e) {
                e.printStackTrace();
            }
        }

        mCardContainer.setAdapter(adapter);
    }

}


text:
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.InteropServices.ComTypes;
using NetOffice;
using NetOffice.Attributes;

namespace NetOffice.OWC10Api.Events
{
	#pragma warning disable

	#region SinkPoint Interface

	[SupportByVersion("OWC10", 1)]
    [InternalEntity(InternalEntityKind.ComEventInterface)]
    [ComImport, Guid("B8891063-2B00-48EC-957F-6DEBEADE9D8B"), InterfaceType(ComInterfaceType.InterfaceIsIDispatch), TypeLibType((short)0x1010)]
	public interface IRangeEvents
	{
		[SupportByVersion("OWC10", 1)]
		[PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(1510)]
		void Change();
	}

    #endregion

    #region SinkHelper

    [InternalEntity(InternalEntityKind.SinkHelper)]
    [ComVisible(true), ClassInterface(ClassInterfaceType.None), TypeLibType(TypeLibTypeFlags.FHidden)]
	public class IRangeEvents_SinkHelper : SinkHelper, IRangeEvents
	{
		#region Static

		public static readonly string Id = "B8891063-2B00-48EC-957F-6DEBEADE9D8B";

		#endregion

		#region Ctor

		public IRangeEvents_SinkHelper(ICOMObject eventClass, IConnectionPoint connectPoint): base(eventClass)
		{
			SetupEventBinding(connectPoint);
		}

		#endregion

		#region IRangeEvents

		public void Change()
		{
            if (!Validate("Change"))
            {
                return;
            }

            object[] paramsArray = new object[0];
			EventBinding.RaiseCustomEvent("Change", ref paramsArray);
		}

		#endregion
	}

	#endregion

	#pragma warning restore
}


text:
.class Lcom/android/server/tv/TvInputHardwareManager$TvInputHardwareImpl$1;
.super Ljava/lang/Object;
.source "TvInputHardwareManager.java"

# interfaces
.implements Landroid/media/AudioManager$OnAudioPortUpdateListener;

# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/android/server/tv/TvInputHardwareManager$TvInputHardwareImpl;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation

# instance fields
.field final synthetic this$1:Lcom/android/server/tv/TvInputHardwareManager$TvInputHardwareImpl;

# direct methods
.method constructor <init>(Lcom/android/server/tv/TvInputHardwareManager$TvInputHardwareImpl;)V
    .locals 0

    iput-object p1, p0, Lcom/android/server/tv/TvInputHardwareManager$TvInputHardwareImpl$1;->this$1:Lcom/android/server/tv/TvInputHardwareManager$TvInputHardwareImpl;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

# virtual methods
.method public onAudioPatchListUpdate([Landroid/media/AudioPatch;)V
    .locals 0

    return-void
.end method

.method public onAudioPortListUpdate([Landroid/media/AudioPort;)V
    .locals 2

    iget-object v0, p0, Lcom/android/server/tv/TvInputHardwareManager$TvInputHardwareImpl$1;->this$1:Lcom/android/server/tv/TvInputHardwareManager$TvInputHardwareImpl;

    invoke-static {v0}, Lcom/android/server/tv/TvInputHardwareManager$TvInputHardwareImpl;->-get2(Lcom/android/server/tv/TvInputHardwareManager$TvInputHardwareImpl;)Ljava/lang/Object;

    move-result-object v1

    monitor-enter v1

    :try_start_0
    iget-object v0, p0, Lcom/android/server/tv/TvInputHardwareManager$TvInputHardwareImpl$1;->this$1:Lcom/android/server/tv/TvInputHardwareManager$TvInputHardwareImpl;

    invoke-static {v0}, Lcom/android/server/tv/TvInputHardwareManager$TvInputHardwareImpl;->-wrap3(Lcom/android/server/tv/TvInputHardwareManager$TvInputHardwareImpl;)V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    monitor-exit v1

    return-void

    :catchall_0
    move-exception v0

    monitor-exit v1

    throw v0
.end method

.method public onServiceDied()V
    .locals 3

    iget-object v0, p0, Lcom/android/server/tv/TvInputHardwareManager$TvInputHardwareImpl$1;->this$1:Lcom/android/server/tv/TvInputHardwareManager$TvInputHardwareImpl;

    invoke-static {v0}, Lcom/android/server/tv/TvInputHardwareManager$TvInputHardwareImpl;->-get2(Lcom/android/server/tv/TvInputHardwareManager$TvInputHardwareImpl;)Ljava/lang/Object;

    move-result-object v1

    monitor-enter v1

    :try_start_0
    iget-object v0, p0, Lcom/android/server/tv/TvInputHardwareManager$TvInputHardwareImpl$1;->this$1:Lcom/android/server/tv/TvInputHardwareManager$TvInputHardwareImpl;

    const/4 v2, 0x0

    invoke-static {v0, v2}, Lcom/android/server/tv/TvInputHardwareManager$TvInputHardwareImpl;->-set1(Lcom/android/server/tv/TvInputHardwareManager$TvInputHardwareImpl;Landroid/media/AudioDevicePort;)Landroid/media/AudioDevicePort;

    iget-object v0, p0, Lcom/android/server/tv/TvInputHardwareManager$TvInputHardwareImpl$1;->this$1:Lcom/android/server/tv/TvInputHardwareManager$TvInputHardwareImpl;

    invoke-static {v0}, Lcom/android/server/tv/TvInputHardwareManager$TvInputHardwareImpl;->-get1(Lcom/android/server/tv/TvInputHardwareManager$TvInputHardwareImpl;)Ljava/util/List;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/List;->clear()V

    iget-object v0, p0, Lcom/android/server/tv/TvInputHardwareManager$TvInputHardwareImpl$1;->this$1:Lcom/android/server/tv/TvInputHardwareManager$TvInputHardwareImpl;

    invoke-static {v0}, Lcom/android/server/tv/TvInputHardwareManager$TvInputHardwareImpl;->-get0(Lcom/android/server/tv/TvInputHardwareManager$TvInputHardwareImpl;)Landroid/media/AudioPatch;

    move-result-object v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/android/server/tv/TvInputHardwareManager$TvInputHardwareImpl$1;->this$1:Lcom/android/server/tv/TvInputHardwareManager$TvInputHardwareImpl;

    iget-object v0, v0, Lcom/android/server/tv/TvInputHardwareManager$TvInputHardwareImpl;->this$0:Lcom/android/server/tv/TvInputHardwareManager;

    invoke-static {v0}, Lcom/android/server/tv/TvInputHardwareManager;->-get1(Lcom/android/server/tv/TvInputHardwareManager;)Landroid/media/AudioManager;

    iget-object v0, p0, Lcom/android/server/tv/TvInputHardwareManager$TvInputHardwareImpl$1;->this$1:Lcom/android/server/tv/TvInputHardwareManager$TvInputHardwareImpl;

    invoke-static {v0}, Lcom/android/server/tv/TvInputHardwareManager$TvInputHardwareImpl;->-get0(Lcom/android/server/tv/TvInputHardwareManager$TvInputHardwareImpl;)Landroid/media/AudioPatch;

    move-result-object v0

    invoke-static {v0}, Landroid/media/AudioManager;->releaseAudioPatch(Landroid/media/AudioPatch;)I

    iget-object v0, p0, Lcom/android/server/tv/TvInputHardwareManager$TvInputHardwareImpl$1;->this$1:Lcom/android/server/tv/TvInputHardwareManager$TvInputHardwareImpl;

    const/4 v2, 0x0

    invoke-static {v0, v2}, Lcom/android/server/tv/TvInputHardwareManager$TvInputHardwareImpl;->-set0(Lcom/android/server/tv/TvInputHardwareManager$TvInputHardwareImpl;Landroid/media/AudioPatch;)Landroid/media/AudioPatch;
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    :cond_0
    monitor-exit v1

    return-void

    :catchall_0
    move-exception v0

    monitor-exit v1

    throw v0
.end method


text:
/*
* PROJECT:          Atomix Development
* LICENSE:          BSD 3-Clause (LICENSE.md)
* PURPOSE:          Long Value MSIL
* PROGRAMMERS:      Aman Priyadarshi (aman.eureka@gmail.com)
*/

using System.Reflection;

namespace Atomixilc.IL.CodeType
{
    internal class OpInt64 : OpCodeType
    {
        internal readonly long Value;

        internal OpInt64(ILCode aCode, int aPosition, int aNextPosition, long aValue, ExceptionHandlingClause aEhc)
            :base(aCode, aPosition, aNextPosition, aEhc)
        {
            Value = aValue;
        }

        public override string ToString()
        {
            return string.Format("{0} [0x{1}-0x{2}] {3}", GetType().Name, Position.ToString("X4"), NextPosition.ToString("X4"), Value);
        }
    }
}


text:
package tools;

import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;

public class MD5Decoder {

    private static MessageDigest md;

    public static String encryptPass(String pass){
        try {
            byte[] passDigestBytes = getDigestBytes(pass);
            return getStringCode(passDigestBytes);
        }catch (NoSuchAlgorithmException e) {
            return null;
        }
    }

    private static String getStringCode(byte[] passDigestBytes) {
        StringBuffer passDigestString = new StringBuffer();
        for (int i = 0; i < passDigestBytes.length; i++) {
            passDigestString.append(Integer.toHexString(0xff & passDigestBytes[i]));
        }
        return passDigestString.toString();
    }

    private static byte[] getDigestBytes(String pass) throws NoSuchAlgorithmException {
        md = MessageDigest.getInstance("MD5");
        md.reset();
        byte[] passBytes = pass.getBytes();
        return md.digest(passBytes);
    }
}


text:
<!DOCTYPE html>

  <title>Semantic Menus</title>
  <link rel="stylesheet" type="text/css" href="../../semantic/dist/semantic.min.css">

Semantic Menus

  Editorials
  Reviews
  Upcoming Events

    Browse Courses

    More

Applications

International Students

Scholarships

Business

        Design & Urban Ecologies
        Fashion Design
        Fine Art
        Strategic Design

Liberal Arts

        Anthropology
        Economics
        Media Studies
        Philosophy

Social Sciences

        Food Studies
        Journalism
        Non Profit Management

        New

Document

Image

        Open...

        Save...

Edit Permissions

        Export

        Share...

        <input class="prompt" type="text" placeholder="Search animals...">

    Home

    Messages

    Friends

        <input type="text" placeholder="Search...">

      Logout

    Home

    Messages

    Friends

        <input type="text" placeholder="Search...">

    Home

    Messages

    Friends

      Logout

    Bio

    Photos

    Bio

    Photos

        <input type="text" placeholder="Search users...">

        Bio

        Pics

        Companies

        Links

      This is an stretched grid column. This segment will always match the tab height

Sort By

    Closest

    Most Comments

    Most Popular

    Inbox

1

    Spam

51

    Updates

1

      <input type="text" placeholder="Search mail...">

    Account

    Settings

    Display Options

Text Size

      Small
      Medium
      Large

    Home

    Messages

    Friends

    1

    ...

    10

    11

    12

    Our Company

    About Us

    Jobs

    Locations

Products

      Enterprise
      Consumer

CMS Solutions

      Rails
      Python
      PHP

Hosting

      Shared
      Dedicated

Support

      E-mail Support
      FAQs

Promotions

Check out our new promotions

Coupons

Check out our collection of coupons

Rebates

Visit our rebate forum for information on claiming rebates

      <input type="text" placeholder="Search...">

      <input type="text" placeholder="Navigate to...">

Go

Sign up

Log-in

    Visit Google

    Javascript Link

    Categories

      Electronics
      Automotive
      Home

    Browse

Fabrics

        Cashmere
        Linen
        Cotton
        Viscose

Size

        Small
        Medium
        Large
        Plus Sizes

Colored

        Neutrals
        Brights
        Pastels

Types

        Knitwear
        Outerwear
        Pants
        Shoes

      <input class="prompt" type="text" placeholder="Search animals...">

  Browse
  Submit

    Sign Up
    Help

<input type="text" placeholder="Search...">

    Home

      Search
      Add
      Remove

     Browse

    Messages

    More

       Edit Profile
       Choose Language
       Account Settings

    Link

    Link

    Link

  Features
  Testimonials
  Sign-in

    Home

    Messages

    Friends

    Home

    Messages

    Friends

  Red
  Orange
  Yellow
  Olive
  Green
  Teal

  Blue
  Violet
  Purple
  Pink
  Brown
  Grey

    Games

    Channels

    Videos

    Games

    Channels

    Videos

  Run
  Walk
  Bike

    Games

    Channels

    Videos

    Games

    Channels

    Videos

  Buy
  Sell
  Rent

    Site Title

    Grouped Section

      Subsection 1
      Subsection 1
      Subsection 1

    Dropdown

Choice 1

Choice 2

Choice 3

    Tab 1

    Tab 2

  There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which don't look even slightly believable. If you are going to use a passage of Lorem Ipsum, you need to be sure there isn't anything embarrassing hidden in the middle of text. All the Lorem Ipsum generators on the Internet tend to repeat predefined chunks as necessary, making this the first true generator on the Internet. It uses a dictionary of over 200 Latin words, combined with a handful of model sentence structures, to generate Lorem Ipsum which looks reasonable. The generated Lorem Ipsum is therefore always free from repetition, injected humour, or non-characteristic words etc.

    Section 1

    Section 2

  There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which don't look even slightly believable. If you are going to use a passage of Lorem Ipsum, you need to be sure there isn't anything embarrassing hidden in the middle of text. All the Lorem Ipsum generators on the Internet tend to repeat predefined chunks as necessary, making this the first true generator on the Internet. It uses a dictionary of over 200 Latin words, combined with a handful of model sentence structures, to generate Lorem Ipsum which looks reasonable. The generated Lorem Ipsum is therefore always free from repetition, injected humour, or non-characteristic words etc.

    Section 1

    Section 2

    Home

    Messages

      Language

        English
        Russian
        Spanish

Sign Up

1

    Inbox

51

    Spam

1

    Updates

      <input type="text" placeholder="Search mail...">

  1
  2
  3
  4
  5
  6

  Menu


text:
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <artifactId>userservice</artifactId>
    <packaging>jar</packaging>

    <name>userservice</name>
    <description>User Microservice</description>

    <parent>
        <groupId>com.github.mavogel.vislab</groupId>
        <artifactId>vis-lab</artifactId>
        <version>0.0.1-SNAPSHOT</version>
        <relativePath>../../pom.xml</relativePath>
    </parent>

    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
        <java.version>1.8</java.version>
        <docker.port>8080</docker.port>
        <snippetsDirectory>${project.build.directory}/generated-snippets</snippetsDirectory>
    </properties>

    <dependencies>
        <dependency>
            <groupId>com.gitlab.mavogel.vislab</groupId>
            <artifactId>dtos</artifactId>
            <version>0.0.1-SNAPSHOT</version>
        </dependency>
        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-starter-feign</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-data-jpa</artifactId>
        </dependency>
        <dependency>
            <groupId>com.h2database</groupId>
            <artifactId>h2</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>mysql</groupId>
            <artifactId>mysql-connector-java</artifactId>
            <scope>runtime</scope>
        </dependency>
        <dependency>
            <groupId>com.jayway.jsonpath</groupId>
            <artifactId>json-path</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.springframework.restdocs</groupId>
            <artifactId>spring-restdocs-mockmvc</artifactId>
            <scope>test</scope>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <configuration>
                    <includes>
                        <include>**/*Documentation.java</include>
                    </includes>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.asciidoctor</groupId>
                <artifactId>asciidoctor-maven-plugin</artifactId>
                <version>1.5.2</version>
                <executions>
                    <execution>
                        <id>generate-docs</id>
                        <phase>prepare-package</phase>
                        <goals>
                            <goal>process-asciidoc</goal>
                        </goals>
                        <configuration>
                            <backend>html</backend>
                            <doctype>book</doctype>
                            <attributes>
                                <snippets>${snippetsDirectory}</snippets>
                            </attributes>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <artifactId>maven-resources-plugin</artifactId>
                <executions>
                    <execution>
                        <id>copy-resources</id>
                        <phase>prepare-package</phase>
                        <goals>
                            <goal>copy-resources</goal>
                        </goals>
                        <configuration>
                            <outputDirectory>${project.build.outputDirectory}/static/docs</outputDirectory>
                            <resources>
                                <resource>
                                    <directory>${project.build.directory}/generated-docs</directory>
                                </resource>
                            </resources>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>io.fabric8</groupId>
                <artifactId>docker-maven-plugin</artifactId>
                <configuration>
                    <images>
                        <image>
                            <build>
                                <entryPoint>
                                    <exec>
                                        <arg>java</arg>
                                        <arg>-Djava.security.egd=file:/dev/./urandom</arg>
                                        <arg>-Dspring.profiles.active=container</arg>
                                        <arg>-jar</arg>
                                        <arg>/app.jar</arg>
                                    </exec>
                                </entryPoint>
                            </build>
                        </image>
                    </images>
                </configuration>
            </plugin>
        </plugins>
    </build>

</project>


text:
package com.example.mobilesafe.db.dao;

import java.io.File;

import android.content.ContentValues;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;

public class AntivirusDao {
	/**
	 * 检查当前的md5值是否在病毒数据库
	 *
	 * @param md5
	 * @return
	 */
	public static String checkFileVirus(String md5, String descFile) {
		// :/data/data/com.example.mobilesafe/files/antivirus

		String desc = null;

		SQLiteDatabase db = SQLiteDatabase.openDatabase(descFile, null,
				SQLiteDatabase.OPEN_READONLY);

		// 查询当前传过来的md5是否在病毒数据库里面
		Cursor cursor = db.rawQuery("select desc from datable where md5 = ?",
				new String[] { md5 });
		// 判断当前的游标是否可以移动
		if (cursor.moveToNext()) {
			desc = cursor.getString(0);
		}
		cursor.close();
		return desc;
	}

	/**
	 * 添加病毒数据库
	 *
	 * @param md5
	 *            特征码
	 * @param desc
	 *            描述信息
	 */
	public static void addVirus(String descFile, String md5, String desc) {
		SQLiteDatabase db = SQLiteDatabase.openDatabase(descFile, null,
				SQLiteDatabase.OPEN_READONLY);

		ContentValues values = new ContentValues();
		values.put("md5", md5);
		values.put("type", 6);
		values.put("name", "Android.Troj.AirAD.a");
		values.put("desc", desc);

		db.insert("datable", null, values);

		db.close();
	}

}


text:
package com.vaadin.v7.tests.server.component.table;

import org.junit.Assert;
import org.junit.Test;

import com.vaadin.v7.ui.Table;
import com.vaadin.v7.ui.Table.CacheUpdateException;

public class CacheUpdateExceptionCausesTest {
    @Test
    public void testSingleCauseException() {
        Table table = new Table();
        Throwable[] causes = new Throwable[] {
                new RuntimeException("Broken in one way.") };

        CacheUpdateException exception = new CacheUpdateException(table,
                "Error during Table cache update.", causes);

        Assert.assertSame(causes[0], exception.getCause());
        Assert.assertEquals("Error during Table cache update.",
                exception.getMessage());
    }

    @Test
    public void testMultipleCauseException() {
        Table table = new Table();
        Throwable[] causes = new Throwable[] {
                new RuntimeException("Broken in the first way."),
                new RuntimeException("Broken in the second way.") };

        CacheUpdateException exception = new CacheUpdateException(table,
                "Error during Table cache update.", causes);

        Assert.assertSame(causes[0], exception.getCause());
        Assert.assertEquals(
                "Error during Table cache update. Additional causes not shown.",
                exception.getMessage());
    }
}