text:
package com.google.android.exoplayer2.extractor.ts;

import static com.google.common.truth.Truth.assertThat;

import androidx.test.core.app.ApplicationProvider;
import androidx.test.ext.junit.runners.AndroidJUnit4;
import com.google.android.exoplayer2.extractor.Extractor;
import com.google.android.exoplayer2.extractor.PositionHolder;
import com.google.android.exoplayer2.testutil.FakeExtractorInput;
import com.google.android.exoplayer2.testutil.TestUtil;
import java.io.IOException;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;

/** Unit test for {@link TsDurationReader}. */
@RunWith(AndroidJUnit4.class)
public final class TsDurationReaderTest {

  private TsDurationReader tsDurationReader;
  private PositionHolder seekPositionHolder;

  @Before
  public void setUp() {
    tsDurationReader = new TsDurationReader();
    seekPositionHolder = new PositionHolder();
  }

  @Test
  public void isDurationReadPending_returnFalseByDefault() {
    assertThat(tsDurationReader.isDurationReadFinished()).isFalse();
  }

  @Test
  public void readDuration_returnsCorrectDuration() throws IOException, InterruptedException {
    FakeExtractorInput input =
        new FakeExtractorInput.Builder()
            .setData(
                TestUtil.getByteArray(
                    ApplicationProvider.getApplicationContext(), "ts/bbb_2500ms.ts"))
            .setSimulateIOErrors(false)
            .setSimulateUnknownLength(false)
            .setSimulatePartialReads(false)
            .build();

    while (!tsDurationReader.isDurationReadFinished()) {
      int result = tsDurationReader.readDuration(input, seekPositionHolder, /* pcrPid= */ 256);
      if (result == Extractor.RESULT_END_OF_INPUT) {
        break;
      }
      if (result == Extractor.RESULT_SEEK) {
        input.setPosition((int) seekPositionHolder.position);
      }
    }
    assertThat(tsDurationReader.getDurationUs() / 1000).isEqualTo(2500);
  }

  @Test
  public void readDuration_midStream_returnsCorrectDuration() throws IOException {
    FakeExtractorInput input =
        new FakeExtractorInput.Builder()
            .setData(
                TestUtil.getByteArray(
                    ApplicationProvider.getApplicationContext(), "ts/bbb_2500ms.ts"))
            .setSimulateIOErrors(false)
            .setSimulateUnknownLength(false)
            .setSimulatePartialReads(false)
            .build();

    input.setPosition(1234);
    while (!tsDurationReader.isDurationReadFinished()) {
      int result = tsDurationReader.readDuration(input, seekPositionHolder, /* pcrPid= */ 256);
      if (result == Extractor.RESULT_END_OF_INPUT) {
        break;
      }
      if (result == Extractor.RESULT_SEEK) {
        input.setPosition((int) seekPositionHolder.position);
      }
    }
    assertThat(tsDurationReader.getDurationUs() / 1000).isEqualTo(2500);
  }
}


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

<title>AllowIncMountWhenVisibleRectIsEmptyTestRunConfiguration</title>
<meta name="date" content="2022-10-27">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">

JavaScript is disabled on your browser.

Skip navigation links

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

com.facebook.litho.testing.testrunner

Class AllowIncMountWhenVisibleRectIsEmptyTestRunConfiguration

java.lang.Object

com.facebook.litho.testing.testrunner.AllowIncMountWhenVisibleRectIsEmptyTestRunConfiguration

All Implemented Interfaces:

LithoTestRunConfiguration

public class AllowIncMountWhenVisibleRectIsEmptyTestRunConfiguration
extends java.lang.Object
implements LithoTestRunConfiguration

Constructor Summary

Constructors

Constructor and Description

AllowIncMountWhenVisibleRectIsEmptyTestRunConfiguration()

Method Summary

All Methods Instance Methods Concrete Methods

Modifier and Type
Method and Description

void
afterTest(FrameworkMethod method)

void
beforeTest(FrameworkMethod method)

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

AllowIncMountWhenVisibleRectIsEmptyTestRunConfiguration

public AllowIncMountWhenVisibleRectIsEmptyTestRunConfiguration()

Method Detail

beforeTest

public void beforeTest(FrameworkMethod method)

Specified by:

beforeTest in interface LithoTestRunConfiguration

afterTest

public void afterTest(FrameworkMethod method)

Specified by:

afterTest in interface LithoTestRunConfiguration

Skip navigation links

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

redpajama_set_name: RedPajamaGithub


text:
{% extends "layout.html" %}

{% block page_title %}
  Apprenticeships
{% endblock %}

{% block content %}

{% include "includes/phase_banner_alpha.html" %}

Access my funds

Contracts

{% include "includes/account-name-number.html" %}Aeronautical engineering

Provider

Hackney skills & training Ltd

Contract reference

98HGS3F

Apprenticeship Overview

Apprenticeship level

Level 2 NVQ

Endpoint assessor

Pham Assessment Ltd

Training start date

20th July 2018

Payments

Date of first payment

20th August 2018

Total agreed

£2,987.24

Current total

£2,987.24

Total paid

£0

View details

Left to pay

£2,987.24

View details

Apprentices

Rob Edwards

Mel O'Connor

Carson Maayan

Kim Martie

Mattie Cheyenne

Ziv Yoshi

Lou Eden

David Jenkins

Susan Hamazaki

Eden Tierney

Freddie Dikla

September Logan

Florence Hadar

Greer Merlyn

{% endblock %}


text:
<?php

/**
 * BjyAuthorize Module (https://github.com/bjyoungblood/BjyAuthorize)
 *
 * @link https://github.com/bjyoungblood/BjyAuthorize for the canonical source repository
 * @license http://framework.zend.com/license/new-bsd New BSD License
 */

namespace Application\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * @ORM\Entity
 * @ORM\Table(name="time_slots")
 */
class TimeSlot
{

    /**
     * @var int
     * @ORM\Id
     * @ORM\Column(type="integer")
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    protected $id;

    /**
     * @var string
     * @ORM\Column(type="datetime",name="start_time")
     */
    protected $startTime;

    /**
     * @var string
     * @ORM\Column(type="datetime",name="end_time")
     */
    protected $endTime;

    /**
     * @var string
     * @ORM\Column(type="blob",name="image",nullable=true)
     */
    protected $image;

    /**
     * @var int
     * @ORM\Column(type="integer")
     */
    protected $status;

    /**
     * @ORM\ManyToOne(targetEntity="Memu", inversedBy="timeSlots")
     * @ORM\JoinColumn(name="memu_id", referencedColumnName="id",nullable=true)
     */
    protected $memu;

    /**
     * Initialies the roles variable.
     */
    public function __construct()
    {
	$this->status = 1;
    }

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

    public function getCheckbox()
    {
	$id = $this->id;
	return '<input class="checkbox" type="checkbox" name="del[]" value="' . $id . '" />';
    }

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

    public function getStartTime()
    {
	$date = $this->startTime;
	return $date->format("h:i:s");
    }

    public function setStartTime($startTime)
    {
	$this->startTime = $startTime;
    }

    public function getEndTime()
    {
	$date = $this->endTime;
	return $date->format("h:i:s");
    }

    public function setEndTime($endTime)
    {
	$this->endTime = $endTime;
    }

    public function getImage()
    {
	$imageBinary = stream_get_contents($this->image);
	$src = 'data:image/png;base64,' . $imageBinary;
	return '<img style="width:300px" src="' . $src . '" alt="Image" />';
    }

    public function setImage($image)
    {
	$this->image = $image;
    }

    public function getStatus()
    {
	return $this->status;
    }

    public function setStatus($status)
    {
	$this->status = $status;
    }

    public function getMemu()
    {
	return $this->memu;
    }

    public function getMemoName()
    {
	$memo = $this->getMemu();
	return $memo->getTitle();
    }

    public function setMemu($memu)
    {
	$this->memu = $memu;
    }

}


text:
package com.microsoft.azure.management.compute.v2017_12_01;

import org.joda.time.DateTime;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * Information about the current running state of the overall upgrade.
 */
public class UpgradeOperationHistoryStatus {
    /**
     * Code indicating the current status of the upgrade. Possible values
     * include: 'RollingForward', 'Cancelled', 'Completed', 'Faulted'.
     */
    @JsonProperty(value = "code", access = JsonProperty.Access.WRITE_ONLY)
    private UpgradeState code;

    /**
     * Start time of the upgrade.
     */
    @JsonProperty(value = "startTime", access = JsonProperty.Access.WRITE_ONLY)
    private DateTime startTime;

    /**
     * End time of the upgrade.
     */
    @JsonProperty(value = "endTime", access = JsonProperty.Access.WRITE_ONLY)
    private DateTime endTime;

    /**
     * Get the code value.
     *
     * @return the code value
     */
    public UpgradeState code() {
        return this.code;
    }

    /**
     * Get the startTime value.
     *
     * @return the startTime value
     */
    public DateTime startTime() {
        return this.startTime;
    }

    /**
     * Get the endTime value.
     *
     * @return the endTime value
     */
    public DateTime endTime() {
        return this.endTime;
    }

}


text:
// Copyright 2018 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package com.google.api.ads.adwords.jaxws.v201809.billing;

import java.net.MalformedURLException;
import java.net.URL;
import javax.xml.namespace.QName;
import javax.xml.ws.Service;
import javax.xml.ws.WebEndpoint;
import javax.xml.ws.WebServiceClient;
import javax.xml.ws.WebServiceException;
import javax.xml.ws.WebServiceFeature;

/**
 * This class was generated by the JAX-WS RI.
 * JAX-WS RI 2.2.9-b130926.1035
 * Generated source version: 2.1
 *
 */
@WebServiceClient(name = "BudgetOrderService", targetNamespace = "https://adwords.google.com/api/adwords/billing/v201809", wsdlLocation = "https://adwords.google.com/api/adwords/billing/v201809/BudgetOrderService?wsdl")
public class BudgetOrderService
    extends Service
{

    private final static URL BUDGETORDERSERVICE_WSDL_LOCATION;
    private final static WebServiceException BUDGETORDERSERVICE_EXCEPTION;
    private final static QName BUDGETORDERSERVICE_QNAME = new QName("https://adwords.google.com/api/adwords/billing/v201809", "BudgetOrderService");

    static {
        URL url = null;
        WebServiceException e = null;
        try {
            url = new URL("https://adwords.google.com/api/adwords/billing/v201809/BudgetOrderService?wsdl");
        } catch (MalformedURLException ex) {
            e = new WebServiceException(ex);
        }
        BUDGETORDERSERVICE_WSDL_LOCATION = url;
        BUDGETORDERSERVICE_EXCEPTION = e;
    }

    public BudgetOrderService() {
        super(__getWsdlLocation(), BUDGETORDERSERVICE_QNAME);
    }

    public BudgetOrderService(URL wsdlLocation, QName serviceName) {
        super(wsdlLocation, serviceName);
    }

    /**
     *
     * @return
     *     returns BudgetOrderServiceInterface
     */
    @WebEndpoint(name = "BudgetOrderServiceInterfacePort")
    public BudgetOrderServiceInterface getBudgetOrderServiceInterfacePort() {
        return super.getPort(new QName("https://adwords.google.com/api/adwords/billing/v201809", "BudgetOrderServiceInterfacePort"), BudgetOrderServiceInterface.class);
    }

    /**
     *
     * @param features
     *     A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy.  Supported features not in the features parameter will have their default values.
     * @return
     *     returns BudgetOrderServiceInterface
     */
    @WebEndpoint(name = "BudgetOrderServiceInterfacePort")
    public BudgetOrderServiceInterface getBudgetOrderServiceInterfacePort(WebServiceFeature... features) {
        return super.getPort(new QName("https://adwords.google.com/api/adwords/billing/v201809", "BudgetOrderServiceInterfacePort"), BudgetOrderServiceInterface.class, features);
    }

    private static URL __getWsdlLocation() {
        if (BUDGETORDERSERVICE_EXCEPTION!= null) {
            throw BUDGETORDERSERVICE_EXCEPTION;
        }
        return BUDGETORDERSERVICE_WSDL_LOCATION;
    }

}