text:
using System;

namespace viadflib.TravelTime.Utils
{
    public class Singleton<T> where T : class, new()
    {
        Singleton() { }

        private static readonly Lazy<T> _instance = new Lazy<T>(() => new T());

        public static T Instance { get { return _instance.Value; } }
    }
}

redpajama_set_name: RedPajamaGithub


text:
import cv2
from plantcv.plantcv import outputs
from plantcv.plantcv.morphology import find_tips

def test_find_tips(morphology_test_data):
    """Test for PlantCV."""
    outputs.clear()
    mask = cv2.imread(morphology_test_data.bin_img, -1)
    skeleton = cv2.imread(morphology_test_data.skel_img, -1)
    _ = find_tips(skel_img=skeleton, mask=mask)
    assert len(outputs.observations["default"]["tips"]["value"]) == 5

def test_find_tips_no_mask(morphology_test_data):
    """Test for PlantCV."""
    outputs.clear()
    skeleton = cv2.imread(morphology_test_data.skel_img, -1)
    _ = find_tips(skel_img=skeleton)
    assert len(outputs.observations["default"]["tips"]["value"]) == 5


text:
import { module, test } from 'qunit';
import setupSinonSandbox from 'ember-sinon-sandbox/test-support/setup-global-sinon-sandbox';
import {
  createSandbox,
  restoreSandbox,
} from 'ember-sinon-sandbox/test-support/sinon-sandbox';

module('Unit | ember-sinon-sandbox | Setup in testStart/testDone', function() {
  test(`configuring setup/restore`, function(assert) {
    assert.expect(4);

    let testStartCalled = false;
    let testDoneCalled = false;

    let qunit = {
      testStart(callback) {
        testStartCalled = true;
        assert.equal(callback, createSandbox);
      },

      testDone(callback) {
        testDoneCalled = true;
        assert.equal(callback, restoreSandbox);
      },
    };

    setupSinonSandbox(qunit);

    assert.ok(testStartCalled, 'testEnvironment.testStart is called');
    assert.ok(testDoneCalled, 'testEnvironment.testDone is called');
  });
});


text:
.. _api:

#############
API Reference
#############

:Release: |version|
:Date: |today|

.. module:: pynetdicom

This API reference guide details the functions, modules and objects included in
*pynetdicom*.

.. toctree::
   :maxdepth: 2
   :includehidden:

   init
   acse
   ae
   association
   config
   dimse
   dsutils
   dul
   events
   fsm
   presentation
   service_classes
   sop_classes
   status
   timer
   transport
   utils


text:
using System.Globalization;

namespace DiscUtils.Ntfs
{
    internal class DataRun
    {
        public DataRun() {}

        public DataRun(long offset, long length, bool isSparse)
        {
            RunOffset = offset;
            RunLength = length;
            IsSparse = isSparse;
        }

        public bool IsSparse { get; private set; }

        public long RunLength { get; set; }

        public long RunOffset { get; set; }

        internal int Size
        {
            get
            {
                int runLengthSize = VarLongSize(RunLength);
                int runOffsetSize = VarLongSize(RunOffset);
                return 1 + runLengthSize + runOffsetSize;
            }
        }

        public int Read(byte[] buffer, int offset)
        {
            int runOffsetSize = (buffer[offset] >> 4) & 0x0F;
            int runLengthSize = buffer[offset] & 0x0F;

            RunLength = ReadVarLong(buffer, offset + 1, runLengthSize);
            RunOffset = ReadVarLong(buffer, offset + 1 + runLengthSize, runOffsetSize);
            IsSparse = runOffsetSize == 0;

            return 1 + runLengthSize + runOffsetSize;
        }

        public override string ToString()
        {
            return string.Format(CultureInfo.InvariantCulture, "{0:+##;-##;0}[+{1}]", RunOffset, RunLength);
        }

        internal int Write(byte[] buffer, int offset)
        {
            int runLengthSize = WriteVarLong(buffer, offset + 1, RunLength);
            int runOffsetSize = IsSparse ? 0 : WriteVarLong(buffer, offset + 1 + runLengthSize, RunOffset);

            buffer[offset] = (byte)((runLengthSize & 0x0F) | ((runOffsetSize << 4) & 0xF0));

            return 1 + runLengthSize + runOffsetSize;
        }

        private static long ReadVarLong(byte[] buffer, int offset, int size)
        {
            ulong val = 0;
            bool signExtend = false;

            for (int i = 0; i < size; ++i)
            {
                byte b = buffer[offset + i];
                val = val | ((ulong)b << (i * 8));
                signExtend = (b & 0x80) != 0;
            }

            if (signExtend)
            {
                for (int i = size; i < 8; ++i)
                {
                    val = val | ((ulong)0xFF << (i * 8));
                }
            }

            return (long)val;
        }

        private static int WriteVarLong(byte[] buffer, int offset, long val)
        {
            bool isPositive = val >= 0;

            int pos = 0;
            do
            {
                buffer[offset + pos] = (byte)(val & 0xFF);
                val >>= 8;
                pos++;
            } while (val != 0 && val != -1);

            // Avoid appearing to have a negative number that is actually positive,
            // record an extra empty byte if needed.
            if (isPositive && (buffer[offset + pos - 1] & 0x80) != 0)
            {
                buffer[offset + pos] = 0;
                pos++;
            }
            else if (!isPositive && (buffer[offset + pos - 1] & 0x80) != 0x80)
            {
                buffer[offset + pos] = 0xFF;
                pos++;
            }

            return pos;
        }

        private static int VarLongSize(long val)
        {
            bool isPositive = val >= 0;
            bool lastByteHighBitSet = false;

            int len = 0;
            do
            {
                lastByteHighBitSet = (val & 0x80) != 0;
                val >>= 8;
                len++;
            } while (val != 0 && val != -1);

            if ((isPositive && lastByteHighBitSet) || (!isPositive && !lastByteHighBitSet))
            {
                len++;
            }

            return len;
        }
    }
}


text:
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Signal handler requirements</title>
<link rel="stylesheet" href="../../../../doc/src/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="../../boost_asio.html" title="Boost.Asio">
<link rel="up" href="../reference.html" title="Reference">
<link rel="prev" href="ShutdownHandler.html" title="SSL shutdown handler requirements">
<link rel="next" href="SyncRandomAccessReadDevice.html" title="Buffer-oriented synchronous random-access read device requirements">

Home
Libraries
People
FAQ
More

Signal handler requirements

        A signal handler must meet the requirements for a handler.
        A value h of a signal handler class should work correctly in
        the expression h(ec, n), where ec is an lvalue
        of type const error_code and n is an lvalue of
        type const int.

        Examples

        A free function as a signal handler:

void signal_handler(
    const boost::system::error_code& ec,
    int signal_number)
{
  ...
}

        A signal handler function object:

struct signal_handler
{
  ...
  void operator()(
      const boost::system::error_code& ec,
      int signal_number)
  {
    ...
  }
  ...
};

        A lambda as a signal handler:

my_signal_set.async_wait(
    [](const boost::system::error_code& ec,
      int signal_number)
    {
      ...
    });

        A non-static class member function adapted to a signal handler using std::bind():

void my_class::signal_handler(
    const boost::system::error_code& ec,
    int signal_number)
{
  ...
}
...
my_signal_set.async_wait(
    std::bind(&my_class::signal_handler,
      this, std::placeholders::_1,
      std::placeholders::_2));

        A non-static class member function adapted to a signal handler using boost::bind():

void my_class::signal_handler(
    const boost::system::error_code& ec,
    int signal_number)
{
  ...
}
...
my_signal_set.async_wait(
    boost::bind(&my_class::signal_handler,
      this, boost::asio::placeholders::error,
      boost::asio::placeholders::signal_number));

Copyright © 2003-2021 Christopher
      M. Kohlhoff

        Distributed under the Boost Software License, Version 1.0. (See accompanying
        file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)


text:
package com.rultor.maven.plugin;

import com.rultor.snapshot.XemblyLine;
import com.rultor.tools.Exceptions;
import com.rultor.tools.Time;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;
import java.util.logging.Level;
import org.apache.maven.execution.ExecutionEvent;
import org.apache.maven.execution.ExecutionListener;
import org.xembly.Directives;

/**
 * Reports mojos.
 *
 * @author Krzysztof Krason (Krzysztof.Krason@gmail.com)
 * @author Yegor Bugayenko (yegor@tpc2.com)
 * @version $Id$
 * @since 0.1
 * @checkstyle MultipleStringLiterals (500 lines)
 */
@SuppressWarnings("PMD.TooManyMethods")
final class XemblyMojos implements ExecutionListener {

    /**
     * Start times of given goal inside artifacts.
     */
    private final transient ConcurrentMap<String, Long> times =
        new ConcurrentHashMap<String, Long>(0);

    /**
     * Target execution origin.
     */
    private final transient ExecutionListener origin;

    /**
     * Constructor.
     *
     * @param lstnr Listener to call.
     */
    XemblyMojos(final ExecutionListener lstnr) {
        this.origin = lstnr;
    }

    @Override
    public void projectDiscoveryStarted(final ExecutionEvent event) {
        this.origin.projectDiscoveryStarted(event);
    }

    @Override
    public void sessionStarted(final ExecutionEvent event) {
        this.origin.sessionStarted(event);
    }

    @Override
    public void sessionEnded(final ExecutionEvent event) {
        this.origin.sessionEnded(event);
    }

    @Override
    public void projectSkipped(final ExecutionEvent event) {
        this.origin.projectSkipped(event);
    }

    @Override
    public void projectStarted(final ExecutionEvent event) {
        this.origin.projectStarted(event);
    }

    @Override
    public void projectSucceeded(final ExecutionEvent event) {
        this.origin.projectSucceeded(event);
    }

    @Override
    public void projectFailed(final ExecutionEvent event) {
        this.origin.projectFailed(event);
    }

    @Override
    public void mojoSkipped(final ExecutionEvent event) {
        final String name = XemblyMojos.identifier(event);
        final String label = XemblyMojos.label(event);
        new XemblyLine(
            new Directives()
                .xpath("/snapshot").strict(1)
                .addIf("steps").add("step")
                .attr("id", name)
                .add("summary")
                .set(String.format("%s skipped", label)).up()
                .add("start").set(new Time().toString()).up()
                .add("finish").set(new Time().toString()).up()
                .add("level").set(Level.INFO.toString())
        ).log();
        this.origin.mojoSkipped(event);
    }

    @Override
    public void mojoStarted(final ExecutionEvent event) {
        final String name = XemblyMojos.identifier(event);
        final Time start = new Time();
        this.times.put(name, start.millis());
        final String label = XemblyMojos.label(event);
        new XemblyLine(
            new Directives()
                .xpath("/snapshot").strict(1)
                .addIf("steps").add("step")
                .attr("id", name)
                .add("summary")
                .set(String.format("%s running...", label))
                .up()
                .add("start").set(start.toString()).up()
        ).log();
        this.origin.mojoStarted(event);
    }

    @Override
    public void mojoSucceeded(final ExecutionEvent event) {
        final String name = XemblyMojos.identifier(event);
        final String label = XemblyMojos.label(event);
        if (this.times.containsKey(name)) {
            final long start = this.times.get(name);
            final Time end = new Time();
            new XemblyLine(
                new Directives()
                    .xpath("/snapshot/steps").strict(1)
                    .xpath(String.format("step[@id='%s']/summary", name))
                    .set(label).up()
                    .add("finish").set(end.toString()).up()
                    .add("level").set(Level.INFO.toString()).up()
                    .add("duration").set(Long.toString(end.millis() - start))
            ).log();
        }
        this.origin.mojoSucceeded(event);
    }

    @Override
    public void mojoFailed(final ExecutionEvent event) {
        final String name = XemblyMojos.identifier(event);
        new XemblyLine(
            new Directives()
                .xpath(String.format("/snapshot/steps/step[@id='%s']", name))
                .add("exception").add("class")
                .set(event.getException().getClass().getCanonicalName()).up()
                .add("stacktrace")
                .set(Exceptions.stacktrace(event.getException())).up()
                .add("level").set(Level.SEVERE.toString()).up()
                .add("cause").set(Exceptions.message(event.getException()))
        ).log();
        this.origin.mojoFailed(event);
    }

    @Override
    public void forkStarted(final ExecutionEvent event) {
        this.origin.forkStarted(event);
    }

    @Override
    public void forkSucceeded(final ExecutionEvent event) {
        this.origin.forkSucceeded(event);
    }

    @Override
    public void forkFailed(final ExecutionEvent event) {
        this.origin.forkFailed(event);
    }

    @Override
    public void forkedProjectStarted(final ExecutionEvent event) {
        this.origin.forkedProjectStarted(event);
    }

    @Override
    public void forkedProjectSucceeded(final ExecutionEvent event) {
        this.origin.forkedProjectSucceeded(event);
    }

    @Override
    public void forkedProjectFailed(final ExecutionEvent event) {
        this.origin.forkedProjectFailed(event);
    }

    /**
     * Identifier of given event.
     *
     * @param event Event to identify.
     * @return Identifier.
     */
    private static String identifier(final ExecutionEvent event) {
        return String.format(
            "%s:%s:%s:%s",
            event.getMojoExecution().getGroupId(),
            event.getMojoExecution().getArtifactId(),
            event.getMojoExecution().getGoal(),
            event.getMojoExecution().getExecutionId()
        );
    }

    /**
     * Label of given event.
     *
     * @param event Event to identify.
     * @return Label.
     */
    private static String label(final ExecutionEvent event) {
        return String.format(
            "%s:%s",
            event.getMojoExecution().getArtifactId(),
            event.getMojoExecution().getGoal()
        );
    }
}


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.cdn.fluent;

import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceMethod;
import com.azure.core.http.rest.PagedFlux;
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.http.rest.Response;
import com.azure.core.management.polling.PollResult;
import com.azure.core.util.Context;
import com.azure.core.util.polling.PollerFlux;
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.cdn.fluent.models.OriginGroupInner;
import com.azure.resourcemanager.cdn.models.OriginGroupUpdateParameters;
import java.nio.ByteBuffer;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;

/** An instance of this class provides access to all the operations defined in OriginGroupsClient. */
public interface OriginGroupsClient {
    /**
     * Lists all of the existing origin groups within an endpoint.
     *
     * @param resourceGroupName Name of the Resource group within the Azure subscription.
     * @param profileName Name of the CDN profile which is unique within the resource group.
     * @param endpointName Name of the endpoint under the profile which is unique globally.
     * @throws IllegalArgumentException thrown if parameters fail the validation.
     * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
     * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
     * @return result of the request to list origin groups as paginated response with {@link PagedFlux}.
     */
    @ServiceMethod(returns = ReturnType.COLLECTION)
    PagedFlux<OriginGroupInner> listByEndpointAsync(String resourceGroupName, String profileName, String endpointName);

    /**
     * Lists all of the existing origin groups within an endpoint.
     *
     * @param resourceGroupName Name of the Resource group within the Azure subscription.
     * @param profileName Name of the CDN profile which is unique within the resource group.
     * @param endpointName Name of the endpoint under the profile which is unique globally.
     * @throws IllegalArgumentException thrown if parameters fail the validation.
     * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
     * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
     * @return result of the request to list origin groups as paginated response with {@link PagedIterable}.
     */
    @ServiceMethod(returns = ReturnType.COLLECTION)
    PagedIterable<OriginGroupInner> listByEndpoint(String resourceGroupName, String profileName, String endpointName);

    /**
     * Lists all of the existing origin groups within an endpoint.
     *
     * @param resourceGroupName Name of the Resource group within the Azure subscription.
     * @param profileName Name of the CDN profile which is unique within the resource group.
     * @param endpointName Name of the endpoint under the profile which is unique globally.
     * @param context The context to associate with this operation.
     * @throws IllegalArgumentException thrown if parameters fail the validation.
     * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
     * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
     * @return result of the request to list origin groups as paginated response with {@link PagedIterable}.
     */
    @ServiceMethod(returns = ReturnType.COLLECTION)
    PagedIterable<OriginGroupInner> listByEndpoint(
        String resourceGroupName, String profileName, String endpointName, Context context);

    /**
     * Gets an existing origin group within an endpoint.
     *
     * @param resourceGroupName Name of the Resource group within the Azure subscription.
     * @param profileName Name of the CDN profile which is unique within the resource group.
     * @param endpointName Name of the endpoint under the profile which is unique globally.
     * @param originGroupName Name of the origin group which is unique within the endpoint.
     * @throws IllegalArgumentException thrown if parameters fail the validation.
     * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
     * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
     * @return an existing origin group within an endpoint along with {@link Response} on successful completion of
     *     {@link Mono}.
     */
    @ServiceMethod(returns = ReturnType.SINGLE)
    Mono<Response<OriginGroupInner>> getWithResponseAsync(
        String resourceGroupName, String profileName, String endpointName, String originGroupName);

    /**
     * Gets an existing origin group within an endpoint.
     *
     * @param resourceGroupName Name of the Resource group within the Azure subscription.
     * @param profileName Name of the CDN profile which is unique within the resource group.
     * @param endpointName Name of the endpoint under the profile which is unique globally.
     * @param originGroupName Name of the origin group which is unique within the endpoint.
     * @throws IllegalArgumentException thrown if parameters fail the validation.
     * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
     * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
     * @return an existing origin group within an endpoint on successful completion of {@link Mono}.
     */
    @ServiceMethod(returns = ReturnType.SINGLE)
    Mono<OriginGroupInner> getAsync(
        String resourceGroupName, String profileName, String endpointName, String originGroupName);

    /**
     * Gets an existing origin group within an endpoint.
     *
     * @param resourceGroupName Name of the Resource group within the Azure subscription.
     * @param profileName Name of the CDN profile which is unique within the resource group.
     * @param endpointName Name of the endpoint under the profile which is unique globally.
     * @param originGroupName Name of the origin group which is unique within the endpoint.
     * @throws IllegalArgumentException thrown if parameters fail the validation.
     * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
     * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
     * @return an existing origin group within an endpoint.
     */
    @ServiceMethod(returns = ReturnType.SINGLE)
    OriginGroupInner get(String resourceGroupName, String profileName, String endpointName, String originGroupName);

    /**
     * Gets an existing origin group within an endpoint.
     *
     * @param resourceGroupName Name of the Resource group within the Azure subscription.
     * @param profileName Name of the CDN profile which is unique within the resource group.
     * @param endpointName Name of the endpoint under the profile which is unique globally.
     * @param originGroupName Name of the origin group which is unique within the endpoint.
     * @param context The context to associate with this operation.
     * @throws IllegalArgumentException thrown if parameters fail the validation.
     * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
     * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
     * @return an existing origin group within an endpoint along with {@link Response}.
     */
    @ServiceMethod(returns = ReturnType.SINGLE)
    Response<OriginGroupInner> getWithResponse(
        String resourceGroupName, String profileName, String endpointName, String originGroupName, Context context);

    /**
     * Creates a new origin group within the specified endpoint.
     *
     * @param resourceGroupName Name of the Resource group within the Azure subscription.
     * @param profileName Name of the CDN profile which is unique within the resource group.
     * @param endpointName Name of the endpoint under the profile which is unique globally.
     * @param originGroupName Name of the origin group which is unique within the endpoint.
     * @param originGroup Origin group properties.
     * @throws IllegalArgumentException thrown if parameters fail the validation.
     * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
     * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
     * @return origin group comprising of origins is used for load balancing to origins when the content cannot be
     *     served from CDN along with {@link Response} on successful completion of {@link Mono}.
     */
    @ServiceMethod(returns = ReturnType.SINGLE)
    Mono<Response<Flux<ByteBuffer>>> createWithResponseAsync(
        String resourceGroupName,
        String profileName,
        String endpointName,
        String originGroupName,
        OriginGroupInner originGroup);

    /**
     * Creates a new origin group within the specified endpoint.
     *
     * @param resourceGroupName Name of the Resource group within the Azure subscription.
     * @param profileName Name of the CDN profile which is unique within the resource group.
     * @param endpointName Name of the endpoint under the profile which is unique globally.
     * @param originGroupName Name of the origin group which is unique within the endpoint.
     * @param originGroup Origin group properties.
     * @throws IllegalArgumentException thrown if parameters fail the validation.
     * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
     * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
     * @return the {@link PollerFlux} for polling of origin group comprising of origins is used for load balancing to
     *     origins when the content cannot be served from CDN.
     */
    @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
    PollerFlux<PollResult<OriginGroupInner>, OriginGroupInner> beginCreateAsync(
        String resourceGroupName,
        String profileName,
        String endpointName,
        String originGroupName,
        OriginGroupInner originGroup);

    /**
     * Creates a new origin group within the specified endpoint.
     *
     * @param resourceGroupName Name of the Resource group within the Azure subscription.
     * @param profileName Name of the CDN profile which is unique within the resource group.
     * @param endpointName Name of the endpoint under the profile which is unique globally.
     * @param originGroupName Name of the origin group which is unique within the endpoint.
     * @param originGroup Origin group properties.
     * @throws IllegalArgumentException thrown if parameters fail the validation.
     * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
     * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
     * @return the {@link SyncPoller} for polling of origin group comprising of origins is used for load balancing to
     *     origins when the content cannot be served from CDN.
     */
    @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
    SyncPoller<PollResult<OriginGroupInner>, OriginGroupInner> beginCreate(
        String resourceGroupName,
        String profileName,
        String endpointName,
        String originGroupName,
        OriginGroupInner originGroup);

    /**
     * Creates a new origin group within the specified endpoint.
     *
     * @param resourceGroupName Name of the Resource group within the Azure subscription.
     * @param profileName Name of the CDN profile which is unique within the resource group.
     * @param endpointName Name of the endpoint under the profile which is unique globally.
     * @param originGroupName Name of the origin group which is unique within the endpoint.
     * @param originGroup Origin group properties.
     * @param context The context to associate with this operation.
     * @throws IllegalArgumentException thrown if parameters fail the validation.
     * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
     * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
     * @return the {@link SyncPoller} for polling of origin group comprising of origins is used for load balancing to
     *     origins when the content cannot be served from CDN.
     */
    @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
    SyncPoller<PollResult<OriginGroupInner>, OriginGroupInner> beginCreate(
        String resourceGroupName,
        String profileName,
        String endpointName,
        String originGroupName,
        OriginGroupInner originGroup,
        Context context);

    /**
     * Creates a new origin group within the specified endpoint.
     *
     * @param resourceGroupName Name of the Resource group within the Azure subscription.
     * @param profileName Name of the CDN profile which is unique within the resource group.
     * @param endpointName Name of the endpoint under the profile which is unique globally.
     * @param originGroupName Name of the origin group which is unique within the endpoint.
     * @param originGroup Origin group properties.
     * @throws IllegalArgumentException thrown if parameters fail the validation.
     * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
     * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
     * @return origin group comprising of origins is used for load balancing to origins when the content cannot be
     *     served from CDN on successful completion of {@link Mono}.
     */
    @ServiceMethod(returns = ReturnType.SINGLE)
    Mono<OriginGroupInner> createAsync(
        String resourceGroupName,
        String profileName,
        String endpointName,
        String originGroupName,
        OriginGroupInner originGroup);

    /**
     * Creates a new origin group within the specified endpoint.
     *
     * @param resourceGroupName Name of the Resource group within the Azure subscription.
     * @param profileName Name of the CDN profile which is unique within the resource group.
     * @param endpointName Name of the endpoint under the profile which is unique globally.
     * @param originGroupName Name of the origin group which is unique within the endpoint.
     * @param originGroup Origin group properties.
     * @throws IllegalArgumentException thrown if parameters fail the validation.
     * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
     * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
     * @return origin group comprising of origins is used for load balancing to origins when the content cannot be
     *     served from CDN.
     */
    @ServiceMethod(returns = ReturnType.SINGLE)
    OriginGroupInner create(
        String resourceGroupName,
        String profileName,
        String endpointName,
        String originGroupName,
        OriginGroupInner originGroup);

    /**
     * Creates a new origin group within the specified endpoint.
     *
     * @param resourceGroupName Name of the Resource group within the Azure subscription.
     * @param profileName Name of the CDN profile which is unique within the resource group.
     * @param endpointName Name of the endpoint under the profile which is unique globally.
     * @param originGroupName Name of the origin group which is unique within the endpoint.
     * @param originGroup Origin group properties.
     * @param context The context to associate with this operation.
     * @throws IllegalArgumentException thrown if parameters fail the validation.
     * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
     * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
     * @return origin group comprising of origins is used for load balancing to origins when the content cannot be
     *     served from CDN.
     */
    @ServiceMethod(returns = ReturnType.SINGLE)
    OriginGroupInner create(
        String resourceGroupName,
        String profileName,
        String endpointName,
        String originGroupName,
        OriginGroupInner originGroup,
        Context context);

    /**
     * Updates an existing origin group within an endpoint.
     *
     * @param resourceGroupName Name of the Resource group within the Azure subscription.
     * @param profileName Name of the CDN profile which is unique within the resource group.
     * @param endpointName Name of the endpoint under the profile which is unique globally.
     * @param originGroupName Name of the origin group which is unique within the endpoint.
     * @param originGroupUpdateProperties Origin group properties.
     * @throws IllegalArgumentException thrown if parameters fail the validation.
     * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
     * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
     * @return origin group comprising of origins is used for load balancing to origins when the content cannot be
     *     served from CDN along with {@link Response} on successful completion of {@link Mono}.
     */
    @ServiceMethod(returns = ReturnType.SINGLE)
    Mono<Response<Flux<ByteBuffer>>> updateWithResponseAsync(
        String resourceGroupName,
        String profileName,
        String endpointName,
        String originGroupName,
        OriginGroupUpdateParameters originGroupUpdateProperties);

    /**
     * Updates an existing origin group within an endpoint.
     *
     * @param resourceGroupName Name of the Resource group within the Azure subscription.
     * @param profileName Name of the CDN profile which is unique within the resource group.
     * @param endpointName Name of the endpoint under the profile which is unique globally.
     * @param originGroupName Name of the origin group which is unique within the endpoint.
     * @param originGroupUpdateProperties Origin group properties.
     * @throws IllegalArgumentException thrown if parameters fail the validation.
     * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
     * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
     * @return the {@link PollerFlux} for polling of origin group comprising of origins is used for load balancing to
     *     origins when the content cannot be served from CDN.
     */
    @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
    PollerFlux<PollResult<OriginGroupInner>, OriginGroupInner> beginUpdateAsync(
        String resourceGroupName,
        String profileName,
        String endpointName,
        String originGroupName,
        OriginGroupUpdateParameters originGroupUpdateProperties);

    /**
     * Updates an existing origin group within an endpoint.
     *
     * @param resourceGroupName Name of the Resource group within the Azure subscription.
     * @param profileName Name of the CDN profile which is unique within the resource group.
     * @param endpointName Name of the endpoint under the profile which is unique globally.
     * @param originGroupName Name of the origin group which is unique within the endpoint.
     * @param originGroupUpdateProperties Origin group properties.
     * @throws IllegalArgumentException thrown if parameters fail the validation.
     * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
     * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
     * @return the {@link SyncPoller} for polling of origin group comprising of origins is used for load balancing to
     *     origins when the content cannot be served from CDN.
     */
    @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
    SyncPoller<PollResult<OriginGroupInner>, OriginGroupInner> beginUpdate(
        String resourceGroupName,
        String profileName,
        String endpointName,
        String originGroupName,
        OriginGroupUpdateParameters originGroupUpdateProperties);

    /**
     * Updates an existing origin group within an endpoint.
     *
     * @param resourceGroupName Name of the Resource group within the Azure subscription.
     * @param profileName Name of the CDN profile which is unique within the resource group.
     * @param endpointName Name of the endpoint under the profile which is unique globally.
     * @param originGroupName Name of the origin group which is unique within the endpoint.
     * @param originGroupUpdateProperties Origin group properties.
     * @param context The context to associate with this operation.
     * @throws IllegalArgumentException thrown if parameters fail the validation.
     * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
     * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
     * @return the {@link SyncPoller} for polling of origin group comprising of origins is used for load balancing to
     *     origins when the content cannot be served from CDN.
     */
    @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
    SyncPoller<PollResult<OriginGroupInner>, OriginGroupInner> beginUpdate(
        String resourceGroupName,
        String profileName,
        String endpointName,
        String originGroupName,
        OriginGroupUpdateParameters originGroupUpdateProperties,
        Context context);

    /**
     * Updates an existing origin group within an endpoint.
     *
     * @param resourceGroupName Name of the Resource group within the Azure subscription.
     * @param profileName Name of the CDN profile which is unique within the resource group.
     * @param endpointName Name of the endpoint under the profile which is unique globally.
     * @param originGroupName Name of the origin group which is unique within the endpoint.
     * @param originGroupUpdateProperties Origin group properties.
     * @throws IllegalArgumentException thrown if parameters fail the validation.
     * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
     * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
     * @return origin group comprising of origins is used for load balancing to origins when the content cannot be
     *     served from CDN on successful completion of {@link Mono}.
     */
    @ServiceMethod(returns = ReturnType.SINGLE)
    Mono<OriginGroupInner> updateAsync(
        String resourceGroupName,
        String profileName,
        String endpointName,
        String originGroupName,
        OriginGroupUpdateParameters originGroupUpdateProperties);

    /**
     * Updates an existing origin group within an endpoint.
     *
     * @param resourceGroupName Name of the Resource group within the Azure subscription.
     * @param profileName Name of the CDN profile which is unique within the resource group.
     * @param endpointName Name of the endpoint under the profile which is unique globally.
     * @param originGroupName Name of the origin group which is unique within the endpoint.
     * @param originGroupUpdateProperties Origin group properties.
     * @throws IllegalArgumentException thrown if parameters fail the validation.
     * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
     * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
     * @return origin group comprising of origins is used for load balancing to origins when the content cannot be
     *     served from CDN.
     */
    @ServiceMethod(returns = ReturnType.SINGLE)
    OriginGroupInner update(
        String resourceGroupName,
        String profileName,
        String endpointName,
        String originGroupName,
        OriginGroupUpdateParameters originGroupUpdateProperties);

    /**
     * Updates an existing origin group within an endpoint.
     *
     * @param resourceGroupName Name of the Resource group within the Azure subscription.
     * @param profileName Name of the CDN profile which is unique within the resource group.
     * @param endpointName Name of the endpoint under the profile which is unique globally.
     * @param originGroupName Name of the origin group which is unique within the endpoint.
     * @param originGroupUpdateProperties Origin group properties.
     * @param context The context to associate with this operation.
     * @throws IllegalArgumentException thrown if parameters fail the validation.
     * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
     * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
     * @return origin group comprising of origins is used for load balancing to origins when the content cannot be
     *     served from CDN.
     */
    @ServiceMethod(returns = ReturnType.SINGLE)
    OriginGroupInner update(
        String resourceGroupName,
        String profileName,
        String endpointName,
        String originGroupName,
        OriginGroupUpdateParameters originGroupUpdateProperties,
        Context context);

    /**
     * Deletes an existing origin group within an endpoint.
     *
     * @param resourceGroupName Name of the Resource group within the Azure subscription.
     * @param profileName Name of the CDN profile which is unique within the resource group.
     * @param endpointName Name of the endpoint under the profile which is unique globally.
     * @param originGroupName Name of the origin group which is unique within the endpoint.
     * @throws IllegalArgumentException thrown if parameters fail the validation.
     * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
     * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
     * @return the {@link Response} on successful completion of {@link Mono}.
     */
    @ServiceMethod(returns = ReturnType.SINGLE)
    Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(
        String resourceGroupName, String profileName, String endpointName, String originGroupName);

    /**
     * Deletes an existing origin group within an endpoint.
     *
     * @param resourceGroupName Name of the Resource group within the Azure subscription.
     * @param profileName Name of the CDN profile which is unique within the resource group.
     * @param endpointName Name of the endpoint under the profile which is unique globally.
     * @param originGroupName Name of the origin group which is unique within the endpoint.
     * @throws IllegalArgumentException thrown if parameters fail the validation.
     * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
     * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
     * @return the {@link PollerFlux} for polling of long-running operation.
     */
    @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
    PollerFlux<PollResult<Void>, Void> beginDeleteAsync(
        String resourceGroupName, String profileName, String endpointName, String originGroupName);

    /**
     * Deletes an existing origin group within an endpoint.
     *
     * @param resourceGroupName Name of the Resource group within the Azure subscription.
     * @param profileName Name of the CDN profile which is unique within the resource group.
     * @param endpointName Name of the endpoint under the profile which is unique globally.
     * @param originGroupName Name of the origin group which is unique within the endpoint.
     * @throws IllegalArgumentException thrown if parameters fail the validation.
     * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
     * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
     * @return the {@link SyncPoller} for polling of long-running operation.
     */
    @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
    SyncPoller<PollResult<Void>, Void> beginDelete(
        String resourceGroupName, String profileName, String endpointName, String originGroupName);

    /**
     * Deletes an existing origin group within an endpoint.
     *
     * @param resourceGroupName Name of the Resource group within the Azure subscription.
     * @param profileName Name of the CDN profile which is unique within the resource group.
     * @param endpointName Name of the endpoint under the profile which is unique globally.
     * @param originGroupName Name of the origin group which is unique within the endpoint.
     * @param context The context to associate with this operation.
     * @throws IllegalArgumentException thrown if parameters fail the validation.
     * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
     * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
     * @return the {@link SyncPoller} for polling of long-running operation.
     */
    @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
    SyncPoller<PollResult<Void>, Void> beginDelete(
        String resourceGroupName, String profileName, String endpointName, String originGroupName, Context context);

    /**
     * Deletes an existing origin group within an endpoint.
     *
     * @param resourceGroupName Name of the Resource group within the Azure subscription.
     * @param profileName Name of the CDN profile which is unique within the resource group.
     * @param endpointName Name of the endpoint under the profile which is unique globally.
     * @param originGroupName Name of the origin group which is unique within the endpoint.
     * @throws IllegalArgumentException thrown if parameters fail the validation.
     * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
     * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
     * @return A {@link Mono} that completes when a successful response is received.
     */
    @ServiceMethod(returns = ReturnType.SINGLE)
    Mono<Void> deleteAsync(String resourceGroupName, String profileName, String endpointName, String originGroupName);

    /**
     * Deletes an existing origin group within an endpoint.
     *
     * @param resourceGroupName Name of the Resource group within the Azure subscription.
     * @param profileName Name of the CDN profile which is unique within the resource group.
     * @param endpointName Name of the endpoint under the profile which is unique globally.
     * @param originGroupName Name of the origin group which is unique within the endpoint.
     * @throws IllegalArgumentException thrown if parameters fail the validation.
     * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
     * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
     */
    @ServiceMethod(returns = ReturnType.SINGLE)
    void delete(String resourceGroupName, String profileName, String endpointName, String originGroupName);

    /**
     * Deletes an existing origin group within an endpoint.
     *
     * @param resourceGroupName Name of the Resource group within the Azure subscription.
     * @param profileName Name of the CDN profile which is unique within the resource group.
     * @param endpointName Name of the endpoint under the profile which is unique globally.
     * @param originGroupName Name of the origin group which is unique within the endpoint.
     * @param context The context to associate with this operation.
     * @throws IllegalArgumentException thrown if parameters fail the validation.
     * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
     * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
     */
    @ServiceMethod(returns = ReturnType.SINGLE)
    void delete(
        String resourceGroupName, String profileName, String endpointName, String originGroupName, Context context);
}


text:
namespace JetBrains.TeamCity.NuGet.CredentialProvider
{
  public enum Verbosity
  {
    Normal,
    Quiet,
    Detailed
  }
}


text:
from __future__ import unicode_literals

from .common import InfoExtractor
from ..utils import (
    determine_ext,
    int_or_none,
    parse_iso8601,
    try_get,
)

class TelegraafIE(InfoExtractor):
    _VALID_URL = r'https?://(?:www\.)?telegraaf\.nl/video/(?P<id>\d+)'
    _TEST = {
        'url': 'https://www.telegraaf.nl/video/734366489/historisch-scheepswrak-slaat-na-100-jaar-los',
        'info_dict': {
            'id': 'gaMItuoSeUg2',
            'ext': 'mp4',
            'title': 'Historisch scheepswrak slaat na 100 jaar los',
            'description': 'md5:6f53b7c4f55596722ac24d6c0ec00cfb',
            'thumbnail': r're:^https?://.*\.jpg',
            'duration': 55,
            'timestamp': 1572805527,
            'upload_date': '20191103',
        },
        'params': {
            # m3u8 download
            'skip_download': True,
        },
    }

    def _real_extract(self, url):
        article_id = self._match_id(url)

        video_id = self._download_json(
            'https://www.telegraaf.nl/graphql', article_id, query={
                'query': '''{
  article(uid: %s) {
    videos {
      videoId
    }
  }
}''' % article_id,
            })['data']['article']['videos'][0]['videoId']

        item = self._download_json(
            'https://content.tmgvideo.nl/playlist/item=%s/playlist.json' % video_id,
            video_id)['items'][0]
        title = item['title']

        formats = []
        locations = item.get('locations') or {}
        for location in locations.get('adaptive', []):
            manifest_url = location.get('src')
            if not manifest_url:
                continue
            ext = determine_ext(manifest_url)
            if ext == 'm3u8':
                formats.extend(self._extract_m3u8_formats(
                    manifest_url, video_id, ext='mp4', m3u8_id='hls', fatal=False))
            elif ext == 'mpd':
                formats.extend(self._extract_mpd_formats(
                    manifest_url, video_id, mpd_id='dash', fatal=False))
            else:
                self.report_warning('Unknown adaptive format %s' % ext)
        for location in locations.get('progressive', []):
            src = try_get(location, lambda x: x['sources'][0]['src'])
            if not src:
                continue
            label = location.get('label')
            formats.append({
                'url': src,
                'width': int_or_none(location.get('width')),
                'height': int_or_none(location.get('height')),
                'format_id': 'http' + ('-%s' % label if label else ''),
            })

        self._sort_formats(formats)

        return {
            'id': video_id,
            'title': title,
            'description': item.get('description'),
            'formats': formats,
            'duration': int_or_none(item.get('duration')),
            'thumbnail': item.get('poster'),
            'timestamp': parse_iso8601(item.get('datecreated'), ' '),
        }


text:
package com.aaron.pseplanner.service.implementation;

import com.aaron.pseplanner.service.HttpClient;

import java.net.InetSocketAddress;
import java.net.Proxy;
import java.util.concurrent.TimeUnit;

import okhttp3.OkHttpClient;
import retrofit2.Retrofit;
import retrofit2.adapter.rxjava2.RxJava2CallAdapterFactory;
import retrofit2.converter.jackson.JacksonConverterFactory;

/**
 * Created by Aaron on 2/26/2017.
 */

public abstract class BaseHttpClient implements HttpClient
{
    protected static Retrofit retrofit;

    public BaseHttpClient()
    {
        setRetrofit(DEFAUT_TIMEOUT, DEFAUT_TIMEOUT, DEFAUT_TIMEOUT);
    }

    public BaseHttpClient(long connectionTimeout, long readTimeout, long pingInterval)
    {
        setRetrofit(connectionTimeout, readTimeout, pingInterval);
    }

    public BaseHttpClient(long connectionTimeout, long readTimeout, long pingInterval, String proxyHost, int proxyPort)
    {
        setRetrofit(connectionTimeout, readTimeout, pingInterval, proxyHost, proxyPort);
    }

    /**
     * Sets the retrofit http client.
     *
     * @param connectionTimeout connect timeout in seconds for new connections
     * @param readTimeout       read timeout in seconds for new connections
     * @param pingInterval      interval in seconds between web socket pings initiated by this client. Use this to automatically send web socket ping frames until either the web socket fails or it is closed.
     */
    private void setRetrofit(long connectionTimeout, long readTimeout, long pingInterval)
    {
        OkHttpClient client = new OkHttpClient.Builder()
                                                .connectTimeout(connectionTimeout, TimeUnit.SECONDS)
                                                .readTimeout(readTimeout, TimeUnit.SECONDS)
                                                .writeTimeout(readTimeout, TimeUnit.SECONDS)
                                                .pingInterval(pingInterval, TimeUnit.SECONDS)
                                                .build();

        retrofit = new Retrofit.Builder()
                                .baseUrl(getBaseURL())
                                .client(client).addConverterFactory(JacksonConverterFactory.create())
                                .addCallAdapterFactory(RxJava2CallAdapterFactory.create())
                                .build();
    }

    /**
     * Sets the retrofit http client with proxy
     *
     * @param connectionTimeout connect timeout in seconds for new connections
     * @param readTimeout       read timeout in seconds for new connections
     * @param pingInterval      interval in seconds between web socket pings initiated by this client. Use this to automatically send web socket ping frames until either the web socket fails or it is closed.
     * @param proxyHost         the proxy host name
     * @param proxyPort         the proxy port number
     */
    private void setRetrofit(long connectionTimeout, long readTimeout, long pingInterval, String proxyHost, int proxyPort)
    {
        OkHttpClient client = new OkHttpClient.Builder()
                                                .connectTimeout(connectionTimeout, TimeUnit.SECONDS)
                                                .readTimeout(readTimeout, TimeUnit.SECONDS)
                                                .writeTimeout(readTimeout, TimeUnit.SECONDS)
                                                .pingInterval(pingInterval, TimeUnit.SECONDS)
                                                .proxy(new Proxy(Proxy.Type.HTTP, InetSocketAddress.createUnresolved(proxyHost, proxyPort)))
                                                .build();

        retrofit = new Retrofit.Builder()
                                .baseUrl(getBaseURL())
                                .client(client)
                                .addConverterFactory(JacksonConverterFactory.create())
                                .build();
    }

    /**
     * The base URL used by the implementing class.
     *
     * @return String the base URL
     */
    protected abstract String getBaseURL();
}


text:
.heading-font {
    font-family: 'Catamaran', 'Helvetica', 'Arial', 'sans-serif';
    font-weight: 200;
    letter-spacing: 1px;
}
.body-font {
    font-family: 'Muli', 'Helvetica', 'Arial', 'sans-serif';
}
.alt-font {
    font-family: 'Lato', 'Helvetica', 'Arial', 'sans-serif';
    text-transform: uppercase;
    letter-spacing: 2px;
}
html,
body {
    height: 100%;
    width: 100%;
}
body {
    font-family: 'Muli', 'Helvetica', 'Arial', 'sans-serif';
}
a {
    -webkit-transition: all 0.35s;
    -moz-transition: all 0.35s;
    transition: all 0.35s;
    color: #66080b;
}
a:hover,
a:focus {
    color: #fcbd20;
}
button.email {
    background: rgba(0, 0, 0, 0);
}
hr {
    max-width: 100px;
    margin: 25px auto 0;
    border-width: 1px;
    border-color: rgba(34, 34, 34, 0.1);
}

div#contactFeedback{
    padding-top: 10px;
}

input.form-control {
    border-color: white;
    color: white;
    border-radius: 300px;
    background-color: transparent;
}
hr.light {
    border-color: white;
}
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Catamaran', 'Helvetica', 'Arial', 'sans-serif';
    font-weight: 200;
    letter-spacing: 1px;
}
p {
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 20px;
}
.navbar-default {
    background-color: white;
    border-color: rgba(34, 34, 34, 0.05);
    -webkit-transition: all 0.35s;
    -moz-transition: all 0.35s;
    transition: all 0.35s;
    font-family: 'Catamaran', 'Helvetica', 'Arial', 'sans-serif';
    font-weight: 200;
    letter-spacing: 1px;
}
.navbar-default .navbar-header .navbar-brand {
    font-family: 'Catamaran', 'Helvetica', 'Arial', 'sans-serif';
    font-weight: 200;
    letter-spacing: 1px;
    color: #66080b;
}
.navbar-default .navbar-header .navbar-brand:hover,
.navbar-default .navbar-header .navbar-brand:focus {
    color: #fcbd20;
}
.navbar-default .navbar-header .navbar-toggle {
    font-size: 12px;
    color: #222222;
    padding: 8px 10px;
}
.navbar-default .nav > li > a {
    font-family: 'Lato', 'Helvetica', 'Arial', 'sans-serif';
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 14px;
    font-weight: 900;
}
.navbar-default .nav > li > a,
.navbar-default .nav > li > a:focus {
    color: #222222;
}
.navbar-default .nav > li > a:hover,
.navbar-default .nav > li > a:focus:hover {
    color: #66080b;
}
.navbar-default .nav > li.active > a,
.navbar-default .nav > li.active > a:focus {
    color: #66080b !important;
    background-color: transparent;
}
.navbar-default .nav > li.active > a:hover,
.navbar-default .nav > li.active > a:focus:hover {
    background-color: transparent;
}
@media (min-width: 768px) {
    .navbar-default {
        background-color: transparent;
        border-color: transparent;
    }
    .navbar-default .navbar-header .navbar-brand {
        font-weight: bold;
        color: rgba(0, 0, 0, 0.7);
    }
    .navbar-default .navbar-header .navbar-brand:hover,
    .navbar-default .navbar-header .navbar-brand:focus {
        color: white;
    }
    .navbar-default .nav > li > a,
    .navbar-default .nav > li > a:focus {
        color: rgba(0, 0, 0, 0.7);
    }
    .navbar-default .nav > li > a:hover,
    .navbar-default .nav > li > a:focus:hover {
        color: white;
    }
    .navbar-default.affix {
        background-color: white;
        border-color: rgba(34, 34, 34, 0.1);
    }
    .navbar-default.affix .navbar-header .navbar-brand {
        color: #222222;
    }
    .navbar-default.affix .navbar-header .navbar-brand:hover,
    .navbar-default.affix .navbar-header .navbar-brand:focus {
        color: #66080b;
    }
    .navbar-default.affix .nav > li > a,
    .navbar-default.affix .nav > li > a:focus {
        color: #222222;
    }
    .navbar-default.affix .nav > li > a:hover,
    .navbar-default.affix .nav > li > a:focus:hover {
        color: #66080b;
    }
}
header {
    position: relative;
    width: 100%;
    min-height: auto;
    overflow-y: hidden;
    background: url("../img/bg-pattern.png"), #21db36;
    /* fallback for old browsers */
    background: url("../img/bg-pattern.png"), -webkit-linear-gradient(to left, #1773db, #21db36);
    /* Chrome 10-25, Safari 5.1-6 */
    background: url("../img/bg-pattern.png"), linear-gradient(to left, #1773db, #21db36);
    /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
    color: black;
}
header.error {
    position: relative;
    width: 100%;
    min-height: auto;
    overflow-y: hidden;
    background: url("../img/bg-pattern.png"), #eb1611;
    /* fallback for old browsers */
    background: url("../img/bg-pattern.png"), -webkit-linear-gradient(to left, #766015, #eb1611);
    /* Chrome 10-25, Safari 5.1-6 */
    background: url("../img/bg-pattern.png"), linear-gradient(to left, #766015, #eb1611);
    /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
    color: black;
}
header .header-content {
    text-align: center;
    padding: 150px 0 50px;
    position: relative;
}
header .header-content .header-content-inner {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}
header .header-content .header-content-inner h1 {
    margin-top: 0;
    margin-bottom: 30px;
    font-size: 30px;
}
header .header-content .header-content-inner .list-badges {
    margin-bottom: 25px;
}
header .header-content .header-content-inner .list-badges img {
    height: 50px;
    margin-bottom: 25px;
}
header .device-container {
    max-width: 300px;
    margin: 0 auto 100px;
}
header .device-container .screen img {
    border-radius: 3px;
}
@media (min-width: 768px) {
    header {
        min-height: 100%;
    }
    header .header-content {
        text-align: left;
        padding: 0;
        height: 100vh;
    }
    header .header-content .header-content-inner {
        max-width: none;
        margin: 0;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
    }
    header .header-content .header-content-inner h1 {
        font-size: 35px;
    }
    header .device-container {
        max-width: none;
        max-height: calc(0vh);
        margin: 100px auto 0;
    }
}
@media (min-width: 992px) {
    header .header-content .header-content-inner h1 {
        font-size: 50px;
    }
}
section {
    padding: 100px 0;
}
section#features {
    background: black;
}
section h2 {
    font-size: 50px;
}
section.download {
    padding: 100px 0;
    position: relative;
}
section.download h2 {
    margin-top: 0;
    font-size: 50px;
}
section.download .badges .badge-link {
    display: block;
    margin-bottom: 25px;
}
section.download .badges .badge-link:last-child {
    margin-bottom: 0;
}
section.download .badges .badge-link img {
    height: 60px;
}
@media (min-width: 768px) {
    section.download .badges .badge-link {
        display: inline-block;
        margin-bottom: 0;
    }
}
@media (min-width: 768px) {
    section.download h2 {
        font-size: 70px;
    }
}
section.features {
    padding-bottom: 0px;
}
section.features .section-heading {
    margin-bottom: 100px;
}
section.features .section-heading h2 {
    margin-top: 0;
}
section.features .section-heading p {
    margin-bottom: 0;
}
section.features .device-container,
section.features .feature-item {
    max-width: 300px;
    margin: 0 auto;
}
section.features .device-container {
    margin-bottom: 100px;
}
@media (min-width: 992px) {
    section.features .device-container {
        margin-bottom: 0;
    }
}
section.features .feature-item {
    text-align: center;
    margin-bottom: 100px;
}
section.features .feature-item h3 {
    font-size: 30px;
}
section.features .feature-item i {
    font-size: 80px;
    background: -webkit-linear-gradient(to left, #21db36, #1773db);
    background: linear-gradient(to left, #21db36, #1773db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
@media (min-width: 992px) {
    section.features .device-container,
    section.features .feature-item {
        max-width: none;
    }
}
section.cta {
    position: relative;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    background-size: cover;
    -o-background-size: cover;
    background-position: center;
    background-image: url('../img/bg-cta.jpg');
    padding: 250px 0;
}
section.cta .cta-content {
    position: relative;
    z-index: 1;
}
section.cta .cta-content h2 {
    margin-top: 0;
    margin-bottom: 25px;
    color: white;
    max-width: 450px;
    font-size: 50px;
}
@media (min-width: 768px) {
    section.cta .cta-content h2 {
        font-size: 80px;
    }
}
section.cta .overlay {
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    position: absolute;
    top: 0;
    left: 0;
}
section.contact {
    text-align: center;
}
section.contact h2 {
    margin-top: 0;
    margin-bottom: 25px;
}
section.contact h2 i {
    color: #dd4b39;
}
section.contact ul.list-social {
    margin-bottom: 0;
}
section.contact ul.list-social li a {
    display: block;
    height: 80px;
    width: 80px;
    line-height: 80px;
    font-size: 40px;
    border-radius: 100%;
    color: white;
}
section.contact ul.list-social li.social-twitter a {
    background-color: #1da1f2;
}
section.contact ul.list-social li.social-twitter a:hover {
    background-color: #0d95e8;
}
section.contact ul.list-social li.social-facebook a {
    background-color: #3b5998;
}
section.contact ul.list-social li.social-facebook a:hover {
    background-color: #344e86;
}
section.contact ul.list-social li.social-google-plus a {
    background-color: #dd4b39;
}
section.contact ul.list-social li.social-google-plus a:hover {
    background-color: #d73925;
}
footer {
    background-color: #222222;
    padding: 25px 0;
    color: rgba(255, 255, 255, 0.3);
    text-align: center;
}
footer p {
    font-size: 12px;
    margin: 0;
}
footer ul {
    margin-bottom: 0;
}
footer ul li a {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
}
footer ul li a:hover,
footer ul li a:focus,
footer ul li a:active,
footer ul li a.active {
    text-decoration: none;
}
.bg-primary {
    background: #66080b;
    background: -webkit-linear-gradient(#77080b, #66080b);
    background: linear-gradient(#8d080b, #66080b);
}
.text-primary {
    color: #66080b;
}
.no-gutter > [class*='col-'] {
    padding-right: 0;
    padding-left: 0;
}
.btn-outline {
    color: black;
    border-color: black;
    border: 1px solid;
}

.btn-outline-w {
    color: #ffffff;
    border-color: #ffffff;
    border: 1px solid;
}

.btn-outline:hover,
.btn-outline:focus,
.btn-outline:active,
.btn-outline.active{
    color: white;
    background-color: #66080b;
    border-color: #66080b;
}
.btn-outline-w:hover,
.btn-outline-w:focus,
.btn-outline-w:active,
.btn-outline-w.active{
    color: #ffffff;
    background-color: #66080b;
    border-color: #66080b;
}
.btn {
    font-family: 'Lato', 'Helvetica', 'Arial', 'sans-serif';
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 300px;
}
.btn-w {
    font-family: 'Lato', 'Helvetica', 'Arial', 'sans-serif';
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 300px;
}
.btn-xl {
    padding: 15px 45px;
    font-size: 11px;
}
::-moz-selection {
    color: white;
    text-shadow: none;
    background: #222222;
}
::selection {
    color: white;
    text-shadow: none;
    background: #222222;
}
img::selection {
    color: white;
    background: transparent;
}
img::-moz-selection {
    color: white;
    background: transparent;
}
body {
    webkit-tap-highlight-color: #222222;
}
hr {
    font-family: Arial, sans-serif; /* choose the font you like */
    text-align: center; /* horizontal centering */
    line-height: 1px; /* vertical centering */
    height: 1px; /* gap between the lines */
    font-size: 1em; /* choose font size you like */
    border-width: 1px 0; /* top and bottom borders */
    border-style: solid;
    border-color: #FFFFFF;
    margin: 20px 16%; /* 20px space above/below, 10px left/right */

    /* ensure 1px gap between borders */
    -webkit-box-sizing: content-box;
    -moz-box-sizing: content-box;
    -ms-box-sizing: content-box;
    -o-box-sizing: content-box;
    box-sizing: content-box;
}
section.theCode h2{
    color: black;
}
section.theCode div.feature-item{
    text-align: center;
}
h2 {
    color: white;
}

h3{
    color: white;
}

hr:after {
    font-size: 100%;
    /*content: "<>"; !* section sign *!*/
    color: #999;
    display: inline; /* for vertical centering and background knockout */
    background-color: white; /* same as background color */
    padding: 0 0.5em; /* size of background color knockout */
}


text:
set -euo pipefail

LIQUIDHASKELL_VER=$(cat "liquidhaskell.cabal" | grep "^version" | awk '{print $2}')
TO_UPLOAD=($(ls | grep "^liquid\-.*" | xargs echo))
GREEN='\033[0;32m'
NC='\033[0m' # no colour
UPLOAD_CMD=(cabal upload)
SDIST_CMD=(stack sdist)
TMP_TAR_DIR=$(mktemp -d /tmp/liquid-release.XXXXXX)
USER_PROVIDED_OPTIONS=$@

# Run the upload command to actually upload the packages.
function doUpload {

    ${SDIST_CMD[@]} . "--tar-dir=$TMP_TAR_DIR"
    ${UPLOAD_CMD[@]} ${USER_PROVIDED_OPTIONS[@]} "$TMP_TAR_DIR/liquidhaskell-$LIQUIDHASKELL_VER.tar.gz"

    for pkg in "${TO_UPLOAD[@]}"
    do
        pkg_version=$(cat $pkg/$pkg.cabal | grep "^version" | awk '{print $2}')
        ${SDIST_CMD[@]} $pkg "--tar-dir=$TMP_TAR_DIR"
        ${UPLOAD_CMD[@]} ${USER_PROVIDED_OPTIONS[@]} "$TMP_TAR_DIR/${pkg}-${pkg_version}.tar.gz"
    done
}

# Shows a recap of the packages that will be uploaded, as well as the commands that
# will be run.
function showRecap {

    echo -e "\nThe following packages will be uploaded:\n"

    echo -e liquidhaskell-${GREEN}$LIQUIDHASKELL_VER${NC}
    for pkg in "${TO_UPLOAD[@]}"
    do
        pkg_version=$(cat $pkg/$pkg.cabal | grep "^version" | awk '{print $2}')
        echo -e $pkg-${GREEN}$pkg_version${NC}
    done

    echo -e "\nHere is what I will run:\n"

    # Special treatment for liquidhaskell (due to the megarepo structure)
    echo "${SDIST_CMD[@]} . --tar-dir=$TMP_TAR_DIR"
    echo "${UPLOAD_CMD[@]} ${USER_PROVIDED_OPTIONS[@]} $TMP_TAR_DIR/liquidhaskell-$LIQUIDHASKELL_VER.tar.gz"

    echo ""

    for pkg in "${TO_UPLOAD[@]}"
    do
        pkg_version=$(cat $pkg/$pkg.cabal | grep "^version" | awk '{print $2}')
        echo "${SDIST_CMD[@]} $pkg --tar-dir=$TMP_TAR_DIR"
        echo "${UPLOAD_CMD[@]} ${USER_PROVIDED_OPTIONS[@]} $TMP_TAR_DIR/${pkg}-${pkg_version}.tar.gz"
        echo ""
    done

    echo ""

}

# Shows the recap and ask the user for a choice.
function main {

    showRecap

    read -p "Continue [Y/n]? " choice
    case "$choice" in
      y|Y ) doUpload;;
      n|N ) echo "Operation aborted.";;
      * ) echo "Invalid choice.";;
    esac

}

# Main starts here.
main


text:
IMPLEMENT_DYNAMIC_CLASS(StdStringValidator,wxTextValidator)

StdStringValidator::StdStringValidator(long style, std::string *val)
: pValue(val),
value(wxString::FromUTF8(val->c_str()) ),
wxTextValidator(style,&value)
{
};

StdStringValidator ::StdStringValidator (const StdStringValidator& val)
{
  pValue = val.pValue;
  value = val.value;
  Copy(val);
  m_stringValue = &value;
};

wxObject *StdStringValidator ::Clone() const
{ return new StdStringValidator(*this); }

// Called to transfer data to the window
bool StdStringValidator ::TransferToWindow()
{
  value = wxString::FromUTF8(pValue->c_str());
  return wxTextValidator::TransferToWindow();
}

// Called to transfer data from the window
bool StdStringValidator ::TransferFromWindow()
{
  bool result = wxTextValidator::TransferFromWindow();
  *pValue = value.ToUTF8();
  return result;
}


text:
package com.amazonaws.services.identitymanagement.model;

import java.io.Serializable;

/**
 *

 * Contains information about a virtual MFA device.
 *

 */
public class VirtualMFADevice implements Serializable, Cloneable {

    /**
     *

     * The serial number associated with VirtualMFADevice.
     *

     */
    private String serialNumber;
    /**
     *

     * The Base32 seed defined as specified in RFC3548. The
     * Base32StringSeed is Base64-encoded.
     *

     */
    private java.nio.ByteBuffer base32StringSeed;
    /**
     *

     * A QR code PNG image that encodes
     * otpauth://totp/$virtualMFADeviceName@$AccountName?secret=$Base32String
     * where $virtualMFADeviceName is one of the create call
     * arguments, AccountName is the user name if set (otherwise,
     * the account ID otherwise), and Base32String is the seed in
     * Base32 format. The Base32String value is Base64-encoded.
     *

     */
    private java.nio.ByteBuffer qRCodePNG;

    private User user;
    /**
     *

     * The date and time on which the virtual MFA device was enabled.
     *

     */
    private java.util.Date enableDate;

    /**
     *

     * The serial number associated with VirtualMFADevice.
     *

     *
     * @param serialNumber
     *        The serial number associated with VirtualMFADevice.
     */

    public void setSerialNumber(String serialNumber) {
        this.serialNumber = serialNumber;
    }

    /**
     *

     * The serial number associated with VirtualMFADevice.
     *

     *
     * @return The serial number associated with VirtualMFADevice.
     */

    public String getSerialNumber() {
        return this.serialNumber;
    }

    /**
     *

     * The serial number associated with VirtualMFADevice.
     *

     *
     * @param serialNumber
     *        The serial number associated with VirtualMFADevice.
     * @return Returns a reference to this object so that method calls can be
     *         chained together.
     */

    public VirtualMFADevice withSerialNumber(String serialNumber) {
        setSerialNumber(serialNumber);
        return this;
    }

    /**
     *

     * The Base32 seed defined as specified in RFC3548. The
     * Base32StringSeed is Base64-encoded.
     *

     *

     * AWS SDK for Java performs a Base64 encoding on this field before sending
     * this request to AWS service by default. Users of the SDK should not
     * perform Base64 encoding on this field.
     *

     *
     * @param base32StringSeed
     *        The Base32 seed defined as specified in RFC3548. The
     *        Base32StringSeed is Base64-encoded.
     */

    public void setBase32StringSeed(java.nio.ByteBuffer base32StringSeed) {
        this.base32StringSeed = base32StringSeed;
    }

    /**
     *

     * The Base32 seed defined as specified in RFC3548. The
     * Base32StringSeed is Base64-encoded.
     *

     *

     * {@code ByteBuffer}s are stateful. Calling their {@code get} methods
     * changes their {@code position}. We recommend using
     * {@link java.nio.ByteBuffer#asReadOnlyBuffer()} to create a read-only view
     * of the buffer with an independent {@code position}, and calling
     * {@code get} methods on this rather than directly on the returned
     * {@code ByteBuffer}. Doing so will ensure that anyone else using the
     * {@code ByteBuffer} will not be affected by changes to the {@code position}
     * .
     *

     *
     * @return The Base32 seed defined as specified in RFC3548. The
     *         Base32StringSeed is Base64-encoded.
     */

    public java.nio.ByteBuffer getBase32StringSeed() {
        return this.base32StringSeed;
    }

    /**
     *

     * The Base32 seed defined as specified in RFC3548. The
     * Base32StringSeed is Base64-encoded.
     *

     *
     * @param base32StringSeed
     *        The Base32 seed defined as specified in RFC3548. The
     *        Base32StringSeed is Base64-encoded.
     * @return Returns a reference to this object so that method calls can be
     *         chained together.
     */

    public VirtualMFADevice withBase32StringSeed(
            java.nio.ByteBuffer base32StringSeed) {
        setBase32StringSeed(base32StringSeed);
        return this;
    }

    /**
     *

     * A QR code PNG image that encodes
     * otpauth://totp/$virtualMFADeviceName@$AccountName?secret=$Base32String
     * where $virtualMFADeviceName is one of the create call
     * arguments, AccountName is the user name if set (otherwise,
     * the account ID otherwise), and Base32String is the seed in
     * Base32 format. The Base32String value is Base64-encoded.
     *

     *

     * AWS SDK for Java performs a Base64 encoding on this field before sending
     * this request to AWS service by default. Users of the SDK should not
     * perform Base64 encoding on this field.
     *

     *
     * @param qRCodePNG
     *        A QR code PNG image that encodes
     *        otpauth://totp/$virtualMFADeviceName@$AccountName?secret=$Base32String
     *        where $virtualMFADeviceName is one of the create call
     *        arguments, AccountName is the user name if set
     *        (otherwise, the account ID otherwise), and
     *        Base32String is the seed in Base32 format. The
     *        Base32String value is Base64-encoded.
     */

    public void setQRCodePNG(java.nio.ByteBuffer qRCodePNG) {
        this.qRCodePNG = qRCodePNG;
    }

    /**
     *

     * A QR code PNG image that encodes
     * otpauth://totp/$virtualMFADeviceName@$AccountName?secret=$Base32String
     * where $virtualMFADeviceName is one of the create call
     * arguments, AccountName is the user name if set (otherwise,
     * the account ID otherwise), and Base32String is the seed in
     * Base32 format. The Base32String value is Base64-encoded.
     *

     *

     * {@code ByteBuffer}s are stateful. Calling their {@code get} methods
     * changes their {@code position}. We recommend using
     * {@link java.nio.ByteBuffer#asReadOnlyBuffer()} to create a read-only view
     * of the buffer with an independent {@code position}, and calling
     * {@code get} methods on this rather than directly on the returned
     * {@code ByteBuffer}. Doing so will ensure that anyone else using the
     * {@code ByteBuffer} will not be affected by changes to the {@code position}
     * .
     *

     *
     * @return A QR code PNG image that encodes
     *         otpauth://totp/$virtualMFADeviceName@$AccountName?secret=$Base32String
     *         where $virtualMFADeviceName is one of the create
     *         call arguments, AccountName is the user name if set
     *         (otherwise, the account ID otherwise), and
     *         Base32String is the seed in Base32 format. The
     *         Base32String value is Base64-encoded.
     */

    public java.nio.ByteBuffer getQRCodePNG() {
        return this.qRCodePNG;
    }

    /**
     *

     * A QR code PNG image that encodes
     * otpauth://totp/$virtualMFADeviceName@$AccountName?secret=$Base32String
     * where $virtualMFADeviceName is one of the create call
     * arguments, AccountName is the user name if set (otherwise,
     * the account ID otherwise), and Base32String is the seed in
     * Base32 format. The Base32String value is Base64-encoded.
     *

     *
     * @param qRCodePNG
     *        A QR code PNG image that encodes
     *        otpauth://totp/$virtualMFADeviceName@$AccountName?secret=$Base32String
     *        where $virtualMFADeviceName is one of the create call
     *        arguments, AccountName is the user name if set
     *        (otherwise, the account ID otherwise), and
     *        Base32String is the seed in Base32 format. The
     *        Base32String value is Base64-encoded.
     * @return Returns a reference to this object so that method calls can be
     *         chained together.
     */

    public VirtualMFADevice withQRCodePNG(java.nio.ByteBuffer qRCodePNG) {
        setQRCodePNG(qRCodePNG);
        return this;
    }

    /**
     * @param user
     */

    public void setUser(User user) {
        this.user = user;
    }

    /**
     * @return
     */

    public User getUser() {
        return this.user;
    }

    /**
     * @param user
     * @return Returns a reference to this object so that method calls can be
     *         chained together.
     */

    public VirtualMFADevice withUser(User user) {
        setUser(user);
        return this;
    }

    /**
     *

     * The date and time on which the virtual MFA device was enabled.
     *

     *
     * @param enableDate
     *        The date and time on which the virtual MFA device was enabled.
     */

    public void setEnableDate(java.util.Date enableDate) {
        this.enableDate = enableDate;
    }

    /**
     *

     * The date and time on which the virtual MFA device was enabled.
     *

     *
     * @return The date and time on which the virtual MFA device was enabled.
     */

    public java.util.Date getEnableDate() {
        return this.enableDate;
    }

    /**
     *

     * The date and time on which the virtual MFA device was enabled.
     *

     *
     * @param enableDate
     *        The date and time on which the virtual MFA device was enabled.
     * @return Returns a reference to this object so that method calls can be
     *         chained together.
     */

    public VirtualMFADevice withEnableDate(java.util.Date enableDate) {
        setEnableDate(enableDate);
        return this;
    }

    /**
     * Returns a string representation of this object; useful for testing and
     * debugging.
     *
     * @return A string representation of this object.
     *
     * @see java.lang.Object#toString()
     */
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("{");
        if (getSerialNumber() != null)
            sb.append("SerialNumber: " + getSerialNumber() + ",");
        if (getBase32StringSeed() != null)
            sb.append("Base32StringSeed: " + getBase32StringSeed() + ",");
        if (getQRCodePNG() != null)
            sb.append("QRCodePNG: " + getQRCodePNG() + ",");
        if (getUser() != null)
            sb.append("User: " + getUser() + ",");
        if (getEnableDate() != null)
            sb.append("EnableDate: " + getEnableDate());
        sb.append("}");
        return sb.toString();
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj)
            return true;
        if (obj == null)
            return false;

        if (obj instanceof VirtualMFADevice == false)
            return false;
        VirtualMFADevice other = (VirtualMFADevice) obj;
        if (other.getSerialNumber() == null ^ this.getSerialNumber() == null)
            return false;
        if (other.getSerialNumber() != null
                && other.getSerialNumber().equals(this.getSerialNumber()) == false)
            return false;
        if (other.getBase32StringSeed() == null
                ^ this.getBase32StringSeed() == null)
            return false;
        if (other.getBase32StringSeed() != null
                && other.getBase32StringSeed().equals(
                        this.getBase32StringSeed()) == false)
            return false;
        if (other.getQRCodePNG() == null ^ this.getQRCodePNG() == null)
            return false;
        if (other.getQRCodePNG() != null
                && other.getQRCodePNG().equals(this.getQRCodePNG()) == false)
            return false;
        if (other.getUser() == null ^ this.getUser() == null)
            return false;
        if (other.getUser() != null
                && other.getUser().equals(this.getUser()) == false)
            return false;
        if (other.getEnableDate() == null ^ this.getEnableDate() == null)
            return false;
        if (other.getEnableDate() != null
                && other.getEnableDate().equals(this.getEnableDate()) == false)
            return false;
        return true;
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int hashCode = 1;

        hashCode = prime
                * hashCode
                + ((getSerialNumber() == null) ? 0 : getSerialNumber()
                        .hashCode());
        hashCode = prime
                * hashCode
                + ((getBase32StringSeed() == null) ? 0 : getBase32StringSeed()
                        .hashCode());
        hashCode = prime * hashCode
                + ((getQRCodePNG() == null) ? 0 : getQRCodePNG().hashCode());
        hashCode = prime * hashCode
                + ((getUser() == null) ? 0 : getUser().hashCode());
        hashCode = prime * hashCode
                + ((getEnableDate() == null) ? 0 : getEnableDate().hashCode());
        return hashCode;
    }

    @Override
    public VirtualMFADevice clone() {
        try {
            return (VirtualMFADevice) super.clone();
        } catch (CloneNotSupportedException e) {
            throw new IllegalStateException(
                    "Got a CloneNotSupportedException from Object.clone() "
                            + "even though we're Cloneable!", e);
        }
    }
}


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

<title>ColumnIdentifier.Raw</title>
<meta name="date" content="2015-05-16">
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">

JavaScript is disabled on your browser.

Overview

Package

Class

Tree

Deprecated

Index

Help

Prev Class

Next Class

Frames

No Frames

All Classes

Summary:

Nested |

Field |

Constr |

Method

Detail:

Field |

Constr |

Method

org.apache.cassandra.cql3

Class ColumnIdentifier.Raw

java.lang.Object

org.apache.cassandra.cql3.ColumnIdentifier.Raw

All Implemented Interfaces:

Selectable.Raw

Enclosing class:

ColumnIdentifier

public static class ColumnIdentifier.Raw
extends java.lang.Object
implements Selectable.Raw

Because Thrift-created tables may have a non-text comparator, we cannot determine the proper 'key' until
 we know the comparator. ColumnIdentifier.Raw is a placeholder that can be converted to a real ColumnIdentifier
 once the comparator is known with prepare(). This should only be used with identifiers that are actual
 column names. See CASSANDRA-8178 for more background.

Constructor Summary

Constructors

Constructor and Description

ColumnIdentifier.Raw(java.lang.String rawText,
                    boolean keepCase)

Method Summary

Methods

Modifier and Type
Method and Description

boolean
equals(java.lang.Object o)

int
hashCode()

ColumnIdentifier
prepare(CFMetaData cfm)

boolean
processesSelection()

Returns true if any processing is performed on the selected column.

java.lang.String
toString()

Methods inherited from class java.lang.Object

clone, finalize, getClass, notify, notifyAll, wait, wait, wait

Constructor Detail

ColumnIdentifier.Raw

public ColumnIdentifier.Raw(java.lang.String rawText,
                    boolean keepCase)

Method Detail

prepare

public ColumnIdentifier prepare(CFMetaData cfm)

Specified by:

prepare in interface Selectable.Raw

processesSelection

public boolean processesSelection()

Description copied from interface: Selectable.Raw

Returns true if any processing is performed on the selected column.

Specified by:

processesSelection in interface Selectable.Raw

hashCode

public final int hashCode()

Overrides:

hashCode in class java.lang.Object

equals

public final boolean equals(java.lang.Object o)

Overrides:

equals in class java.lang.Object

toString

public java.lang.String toString()

Overrides:

toString in class java.lang.Object

Overview

Package

Class

Tree

Deprecated

Index

Help

Prev Class

Next Class

Frames

No Frames

All Classes

Summary:

Nested |

Field |

Constr |

Method

Detail:

Field |

Constr |

Method


text:
package thobe.logfileviewer.plugins.perfMon;

import java.util.List;
import java.util.logging.Logger;
import java.util.regex.Pattern;

import thobe.logfileviewer.plugin.Plugin;
import thobe.logfileviewer.plugin.api.IPluginAccess;
import thobe.logfileviewer.plugin.api.IPluginUIComponent;
import thobe.logfileviewer.plugin.source.logline.ILogLine;

/**
 * @author Thomas Obenaus
 * @source PerformanceMonitor.java
 * @date Jul 7, 2014
 */
public class PerformanceMonitor extends Plugin
{
	public static final String	FULL_PLUGIN_NAME	= "thobe.logfileviewer.performance.Performance";

	private Logger				log;

	public PerformanceMonitor( )
	{
		super( FULL_PLUGIN_NAME, FULL_PLUGIN_NAME );
		this.log = Logger.getLogger( FULL_PLUGIN_NAME );
	}

	@Override
	public IPluginUIComponent getUIComponent( )
	{
		// TODO Auto-generated method stub
		return null;//new JButton( "Performance" );
	}

	@Override
	public boolean onStarted( )
	{
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public boolean onRegistered( IPluginAccess pluginAccess )
	{
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public void onLogStreamOpened( )
	{
		// TODO Auto-generated method stub

	}

	@Override
	public void onPrepareCloseLogStream( )
	{
		// TODO Auto-generated method stub

	}

	@Override
	public void onLogStreamClosed( )
	{
		// TODO Auto-generated method stub

	}

	@Override
	public void onUnRegistered( )
	{
		// TODO Auto-generated method stub

	}

	@Override
	public boolean onStopped( )
	{
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public String getPluginDescription( )
	{
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public void freeMemory( )
	{
		// TODO Auto-generated method stub

	}

	@Override
	public void onNewBlockOfLines( List<ILogLine> blockOfLines )
	{
		// TODO Auto-generated method stub

	}

	@Override
	public Pattern getLineFilter( )
	{
		return Pattern.compile( ".*" );
	}

	protected Logger LOG( )
	{
		return this.log;
	}

	@Override
	public long getMemory( )
	{
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public String getNameOfMemoryWatchable( )
	{
		return FULL_PLUGIN_NAME;
	}

	@Override
	public int getMajorVersion( )
	{
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int getMinorVersion( )
	{
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int getBugfixVersion( )
	{
		// TODO Auto-generated method stub
		return 0;
	}

}


text:
export default class Alfred {

	decideTargetMove(gun, target) {

		var impacting_bullet = target.firstToImpact(gun);

		if(impacting_bullet != null) {

			var result = target.preferredDirection(gun, impacting_bullet);

			return result;
		}

		return null;
	}

	decideGunMove(gun, target) {

		var target_y_mid = target.y_pos + (target.height / 2);

		return {
			gun_x_pos: target.x_pos,
			gun_y_pos: target_y_mid,
			is_shoot: true
		};
	}
}


text:
package com.jinwen.thread.multithread.supplement.example3;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

public class Thread0 extends Thread {
    private SimpleDateFormat sdf;
    private String dateString;

    public Thread0(SimpleDateFormat sdf, String dateString) {
        this.sdf = sdf;
        this.dateString = dateString;
    }

    @Override
    public void run() {
        try {
            Date date = sdf.parse(dateString);
            String newDateString = sdf.format(date).toString();
            if (!newDateString.equals(dateString)) {
                System.out.println("ThreadName = " + this.getName()
                        + "报错了 日期字符串:" + dateString
                        + " 转换成的日期为" + newDateString);
            }
        } catch (ParseException e) {
            e.printStackTrace();
        }
    }
}


text:
cd "`dirname "$0"`"

# Build for each platform
dotnet publish -c Release -r win-x86 --self-contained /p:PublishTrimmed=false /p:PublishSingleFile=true -o BuildForInky inklecate/inklecate.csproj
mv BuildForInky/inklecate.exe BuildForInky/inklecate_win.exe

dotnet publish -c Release -r osx-x64 --self-contained /p:PublishTrimmed=false /p:PublishSingleFile=true -o BuildForInky inklecate/inklecate.csproj
mv BuildForInky/inklecate BuildForInky/inklecate_mac

dotnet publish -c Release -r linux-x64 --self-contained /p:PublishTrimmed=false /p:PublishSingleFile=true -o BuildForInky inklecate/inklecate.csproj
mv BuildForInky/inklecate BuildForInky/inklecate_linux

# Copy the runtime and compiler debug symbols in
cp ink-engine-runtime/bin/Release/net6.0/ink-engine-runtime.pdb BuildForInky/
cp compiler/bin/Release/net6.0/ink_compiler.pdb BuildForInky/


text:
module Variation

# Represent a setting that can change over time.
class Profile

  attr_reader :start_value, :changes

  def initialize hashed_args
    raise HashedArgMissingError unless hashed_args.has_key?(:start_value)
    changes = hashed_args[:changes] || {}

    @start_value = hashed_args[:start_value]
    @changes = changes

    trim_changes_if_needed @changes
  end

  def ==(other)
    @start_value == other.start_value &&
    @changes == other.changes
  end

  def length
    length = 0
    if @changes.any?
      first_offset = @changes.keys.min
      last_offset = @changes.keys.max
      length = (last_offset - first_offset) + @changes[first_offset].length
    end
    return length
  end

  # def select range
  #   raise OutsideOfDomainError unless domain.include?(x_range.first)
  #   raise OutsideOfDomainError unless domain.include?(x_range.last)

  #   changes = {}
  #   @changes.each do |offset, change|
  #     change_end = offset + change.length
  #     if range.include?(offset) && range.include?(change_end)
  #       changes[offset] = change
  #     elsif range.include?(offset)
  #       changes[offset] = change.truncate_end(range.last - offset)
  #     elsif range.include?(change_end)
  #       changes[range.first] = change.truncate_start(change_end - range.first)
  #     end
  #   end

  #     changes = @changes.select do |offset, change|
  #       range.include?(offset) || range.include?(offset + change.length)
  #     end

  #     if changes.keys.min < range.first

  #     if first_offset
  #     last_offset = changes.keys.max

  #   end
  #   Profile.new(@start_value, changes)
  # end

  def end_value
    if @changes.any?
      @changes[@changes.keys.max].end_value
    else
      start_value
    end
  end

  def function
    functions = {}

    prev_val = start_value
    prev_offset = -Float::INFINITY

    if @changes.any?
      sorted_offsets = @changes.keys.sort

      sorted_offsets.each_index do |i|
        offset = sorted_offsets[i]
        change = @changes[offset]
        start_of_transition = offset - change.length

        unless prev_offset == start_of_transition
          functions[prev_offset...start_of_transition] = ConstantFunction.from_value(prev_val)
        end
        functions[start_of_transition...offset] = change.transition_function([start_of_transition, prev_val])

        prev_val = change.end_value
        prev_offset = offset
      end
    end

    functions[prev_offset...Float::INFINITY] = ConstantFunction.from_value(prev_val)

    lambda do |x|
      result = functions.find {|domain,func| domain.include?(x) }
      f = result[1]
      f.call(x)
    end
  end

  def at(x)
    function.call(x)
  end

  def data(step_size)
    data = {}
    if @changes.any?
      f = function
      domain = (@changes.keys.max - length)..length
      domain.step(step_size) do |x|
        data[x] = f.call(x)
      end
    end
    return data
  end

  private

  def trim_changes_if_needed changes
    offsets = changes.keys.sort
    for i in 1...offsets.count
      prev_offset = offsets[i-1]
      offset = offsets[i]
      change = changes[offset]

      if (offset - change.length) < prev_offset
        change.length = offset - prev_offset
      end
    end
  end
end

end


text:
use strict;
use warnings;

use List::Util qw(sum);

#
sub getTargetSiteConservationFeatures(\@\@$)
{
	my @targetCandidate = @{shift()};
	my @phastConsScores = @{shift()};
	my $flankLength = shift() || 70;
	my $utrLength = scalar(@phastConsScores);
	my $startPos = $targetCandidate[1] - 1;
	my $endPos = $targetCandidate[2] - 1;
	my $upStart = $startPos - $flankLength;
	my $downEnd = $endPos + $flankLength;
	my $seedScore = 0;
	my $siteScore = 0;
	my $flankScore = 0;

	if ($upStart < 0)
	{
		$upStart = 0;
	}

	if ($downEnd >= $utrLength)
	{
		$downEnd = $utrLength - 1;
	}

	#print STDERR "$utrLength $startPos $endPos\n";

	if ($endPos < $utrLength)
	{
		# Seed score
		my $startSeed = $endPos - 7;
		my @seedScores = @phastConsScores[$startSeed .. $endPos];
		$seedScore = sum(@seedScores) / @seedScores;

		#print STDERR "$seedScore\n";

		# Target site score
		my @siteScores = @phastConsScores[$startPos .. $endPos];
		$siteScore = sum(@siteScores) / @siteScores;

		# Flank score
		my @flankScores = @phastConsScores[$upStart .. ($startPos - 1)];
		my @downScores = @phastConsScores[($endPos + 1) .. $downEnd];
		push(@flankScores, @downScores);
		$flankScore = sum(@flankScores) / @flankScores;
	}

	return($seedScore, $siteScore, $flankScore);
}

1;