text:
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

/**
 * @fileoverview The class to Manage both offline / online speech recognition.
 */

<include src="plugin_manager.js"/>
<include src="audio_manager.js"/>
<include src="speech_recognition_manager.js"/>

cr.define('speech', function() {
  'use strict';

  /**
   * The state of speech recognition.
   *
   * @enum {string}
   */
  var SpeechState = {
    READY: 'READY',
    HOTWORD_RECOGNIZING: 'HOTWORD_RECOGNIZING',
    RECOGNIZING: 'RECOGNIZING',
    IN_SPEECH: 'IN_SPEECH',
    STOPPING: 'STOPPING',
    NETWORK_ERROR: 'NETWORK_ERROR'
  };

  /**
   * The time to show the network error message in seconds.
   *
   * @const {number}
   */
  var SPEECH_ERROR_TIMEOUT = 3;

  /**
   * Checks the prefix for the hotword module based on the language. This is
   * fragile if the file structure has changed.
   */
  function getHotwordPrefix() {
    var prefix = navigator.language.toLowerCase();
    if (prefix == 'en-gb')
      return prefix;
    var hyphen = prefix.indexOf('-');
    if (hyphen >= 0)
      prefix = prefix.substr(0, hyphen);
    if (prefix == 'en')
      prefix = '';
    return prefix;
  }

  /**
   * @constructor
   */
  function SpeechManager() {
    this.audioManager_ = new speech.AudioManager();
    this.audioManager_.addEventListener('audio', this.onAudioLevel_.bind(this));
    this.speechRecognitionManager_ = new speech.SpeechRecognitionManager(this);
    this.errorTimeoutId_ = null;
  }

  /**
   * Updates the state.
   *
   * @param {SpeechState} newState The new state.
   * @private
   */
  SpeechManager.prototype.setState_ = function(newState) {
    if (this.state == newState)
      return;

    this.state = newState;
    chrome.send('setSpeechRecognitionState', [this.state]);
  };

  /**
   * Called with the mean audio level when audio data arrives.
   *
   * @param {cr.event.Event} event The event object for the audio data.
   * @private
   */
  SpeechManager.prototype.onAudioLevel_ = function(event) {
    var data = event.data;
    var level = 0;
    for (var i = 0; i < data.length; ++i)
      level += Math.abs(data[i]);
    level /= data.length;
    chrome.send('speechSoundLevel', [level]);
  };

  /**
   * Called when the hotword recognizer is ready.
   *
   * @param {PluginManager} pluginManager The hotword plugin manager which gets
   *   ready.
   * @private
   */
  SpeechManager.prototype.onHotwordRecognizerReady_ = function(pluginManager) {
    this.pluginManager_ = pluginManager;
    this.audioManager_.addEventListener(
        'audio', pluginManager.sendAudioData.bind(pluginManager));
    this.pluginManager_.startRecognizer();
    this.audioManager_.start();
    this.setState_(SpeechState.HOTWORD_RECOGNIZING);
  };

  /**
   * Called when an error happens for loading the hotword recognizer.
   *
   * @private
   */
  SpeechManager.prototype.onHotwordRecognizerLoadError_ = function() {
    this.setHotwordEnabled(false);
    this.setState_(SpeechState.READY);
  };

  /**
   * Called when the hotword is recognized.
   *
   * @private
   */
  SpeechManager.prototype.onHotwordRecognized_ = function() {
    if (this.state != SpeechState.HOTWORD_RECOGNIZING)
      return;
    this.pluginManager_.stopRecognizer();
    this.speechRecognitionManager_.start();
  };

  /**
   * Called when the speech recognition has happened.
   *
   * @param {string} result The speech recognition result.
   * @param {boolean} isFinal Whether the result is final or not.
   */
  SpeechManager.prototype.onSpeechRecognized = function(result, isFinal) {
    chrome.send('speechResult', [result, isFinal]);
    if (isFinal)
      this.speechRecognitionManager_.stop();
  };

  /**
   * Called when the speech recognition has started.
   */
  SpeechManager.prototype.onSpeechRecognitionStarted = function() {
    this.setState_(SpeechState.RECOGNIZING);
  };

  /**
   * Called when the speech recognition has ended.
   */
  SpeechManager.prototype.onSpeechRecognitionEnded = function() {
    // Do not handle the speech recognition ends if it ends due to an error
    // because an error message should be shown for a while.
    // See onSpeechRecognitionError.
    if (this.state == SpeechState.NETWORK_ERROR)
      return;

    // Restarts the hotword recognition.
    if (this.state != SpeechState.STOPPING && this.pluginManager_) {
      this.pluginManager_.startRecognizer();
      this.audioManager_.start();
      this.setState_(SpeechState.HOTWORD_RECOGNIZING);
    } else {
      this.audioManager_.stop();
      this.setState_(SpeechState.READY);
    }
  };

  /**
   * Called when a speech has started.
   */
  SpeechManager.prototype.onSpeechStarted = function() {
    if (this.state == SpeechState.RECOGNIZING)
      this.setState_(SpeechState.IN_SPEECH);
  };

  /**
   * Called when a speech has ended.
   */
  SpeechManager.prototype.onSpeechEnded = function() {
    if (this.state == SpeechState.IN_SPEECH)
      this.setState_(SpeechState.RECOGNIZING);
  };

  /**
   * Called when the speech manager should recover from the error state.
   *
   * @private
   */
  SpeechManager.prototype.onSpeechRecognitionErrorTimeout_ = function() {
    this.errorTimeoutId_ = null;
    this.setState_(SpeechState.READY);
    this.onSpeechRecognitionEnded();
  };

  /**
   * Called when an error happened during the speech recognition.
   *
   * @param {SpeechRecognitionError} e The error object.
   */
  SpeechManager.prototype.onSpeechRecognitionError = function(e) {
    if (e.error == 'network') {
      this.setState_(SpeechState.NETWORK_ERROR);
      this.errorTimeoutId_ = window.setTimeout(
          this.onSpeechRecognitionErrorTimeout_.bind(this),
          SPEECH_ERROR_TIMEOUT * 1000);
    } else {
      if (this.state != SpeechState.STOPPING)
        this.setState_(SpeechState.READY);
    }
  };

  /**
   * Changes the availability of the hotword plugin.
   *
   * @param {boolean} enabled Whether enabled or not.
   */
  SpeechManager.prototype.setHotwordEnabled = function(enabled) {
    var recognizer = $('recognizer');
    if (enabled) {
      if (recognizer)
        return;
      if (!this.naclArch)
        return;

      var prefix = getHotwordPrefix();
      var pluginManager = new speech.PluginManager(
          prefix,
          this.onHotwordRecognizerReady_.bind(this),
          this.onHotwordRecognized_.bind(this),
          this.onHotwordRecognizerLoadError_.bind(this));
      var modelUrl = 'chrome://app-list/_platform_specific/' + this.naclArch +
          '_' + prefix + '/hotword.data';
      pluginManager.scheduleInitialize(this.audioManager_.sampleRate, modelUrl);
    } else {
      if (!recognizer)
        return;
      document.body.removeChild(recognizer);
      this.pluginManager_ = null;
      if (this.state == SpeechState.HOTWORD_RECOGNIZING) {
        this.audioManager_.stop();
        this.setState_(SpeechState.READY);
      }
    }
  };

  /**
   * Sets the NaCl architecture for the hotword module.
   *
   * @param {string} arch The architecture.
   */
  SpeechManager.prototype.setNaclArch = function(arch) {
    this.naclArch = arch;
  };

  /**
   * Called when the app-list bubble is shown.
   *
   * @param {boolean} hotwordEnabled Whether the hotword is enabled or not.
   */
  SpeechManager.prototype.onShown = function(hotwordEnabled) {
    this.setHotwordEnabled(hotwordEnabled);

    // No one sets the state if the content is initialized on shown but hotword
    // is not enabled. Sets the state in such case.
    if (!this.state && !hotwordEnabled)
      this.setState_(SpeechState.READY);
  };

  /**
   * Called when the app-list bubble is hidden.
   */
  SpeechManager.prototype.onHidden = function() {
    this.setHotwordEnabled(false);

    // SpeechRecognition is asynchronous.
    this.audioManager_.stop();
    if (this.state == SpeechState.RECOGNIZING ||
        this.state == SpeechState.IN_SPEECH) {
      this.setState_(SpeechState.STOPPING);
      this.speechRecognitionManager_.stop();
    } else {
      this.setState_(SpeechState.READY);
    }
  };

  /**
   * Toggles the current state of speech recognition.
   */
  SpeechManager.prototype.toggleSpeechRecognition = function() {
    if (this.state == SpeechState.NETWORK_ERROR) {
      if (this.errorTimeoutId_)
        window.clearTimeout(this.errorTimeoutId_);
      this.onSpeechRecognitionErrorTimeout_();
    } else if (this.state == SpeechState.RECOGNIZING ||
        this.state == SpeechState.IN_SPEECH) {
      this.audioManager_.stop();
      this.speechRecognitionManager_.stop();
    } else {
      if (this.pluginManager_)
        this.pluginManager_.stopRecognizer();
      if (this.audioManager_.state == speech.AudioState.STOPPED)
        this.audioManager_.start();
      this.speechRecognitionManager_.start();
    }
  };

  return {
    SpeechManager: SpeechManager
  };
});


text:
require 'rgen/metamodel_builder'

# The Bindings model is a model of Key to Producer mappings (bindings).
# It is composed of a meta-model part (bindings_model_meta.rb), and
# and implementation part (this file).
#
# @see Puppet::Pops::Binder::BindingsFactory The BindingsFactory for more details on how to create model instances.
# @api public
module Puppet::Pops::Binder
  require 'puppet/pops/binder/bindings_model_meta'

  # TODO: See PUP-2978 for possible performance optimization

  # Mix in implementation into the generated code
  module Bindings
    class BindingsModelObject
      include Puppet::Pops::Visitable
      include Puppet::Pops::Adaptable
      include Puppet::Pops::Containment
    end

    class ConstantProducerDescriptor
      module ClassModule
        def setValue(v)
          @value = v
        end
        def getValue()
          @value
        end
        def value=(v)
          @value = v
        end
      end
    end

    class NamedArgument
      module ClassModule
        def setValue(v)
          @value = v
        end
        def getValue()
          @value
        end
        def value=(v)
          @value = v
        end
      end
    end

    class InstanceProducerDescriptor
      module ClassModule
        def addArguments(val, index =-1)
          @arguments ||= []
          @arguments.insert(index, val)
        end
        def removeArguments(val)
          raise "unsupported operation"
        end
        def setArguments(values)
          @arguments = []
          values.each {|v| addArguments(v) }
        end
      end
    end

  end

end

redpajama_set_name: RedPajamaGithub


text:
package oo;

public class Contato {

  public String nome;
  public String telefone;

}


text:
package ec2

import (
	"context"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/internal/awsutil"
	"github.com/aws/aws-sdk-go-v2/private/protocol"
	"github.com/aws/aws-sdk-go-v2/private/protocol/ec2query"
)

type DeleteInternetGatewayInput struct {
	_ struct{} `type:"structure"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// The ID of the internet gateway.
	//
	// InternetGatewayId is a required field
	InternetGatewayId *string `locationName:"internetGatewayId" type:"string" required:"true"`
}

// String returns the string representation
func (s DeleteInternetGatewayInput) String() string {
	return awsutil.Prettify(s)
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *DeleteInternetGatewayInput) Validate() error {
	invalidParams := aws.ErrInvalidParams{Context: "DeleteInternetGatewayInput"}

	if s.InternetGatewayId == nil {
		invalidParams.Add(aws.NewErrParamRequired("InternetGatewayId"))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

type DeleteInternetGatewayOutput struct {
	_ struct{} `type:"structure"`
}

// String returns the string representation
func (s DeleteInternetGatewayOutput) String() string {
	return awsutil.Prettify(s)
}

const opDeleteInternetGateway = "DeleteInternetGateway"

// DeleteInternetGatewayRequest returns a request value for making API operation for
// Amazon Elastic Compute Cloud.
//
// Deletes the specified internet gateway. You must detach the internet gateway
// from the VPC before you can delete it.
//
//    // Example sending a request using DeleteInternetGatewayRequest.
//    req := client.DeleteInternetGatewayRequest(params)
//    resp, err := req.Send(context.TODO())
//    if err == nil {
//        fmt.Println(resp)
//    }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteInternetGateway
func (c *Client) DeleteInternetGatewayRequest(input *DeleteInternetGatewayInput) DeleteInternetGatewayRequest {
	op := &aws.Operation{
		Name:       opDeleteInternetGateway,
		HTTPMethod: "POST",
		HTTPPath:   "/",
	}

	if input == nil {
		input = &DeleteInternetGatewayInput{}
	}

	req := c.newRequest(op, input, &DeleteInternetGatewayOutput{})
	req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
	req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)

	return DeleteInternetGatewayRequest{Request: req, Input: input, Copy: c.DeleteInternetGatewayRequest}
}

// DeleteInternetGatewayRequest is the request type for the
// DeleteInternetGateway API operation.
type DeleteInternetGatewayRequest struct {
	*aws.Request
	Input *DeleteInternetGatewayInput
	Copy  func(*DeleteInternetGatewayInput) DeleteInternetGatewayRequest
}

// Send marshals and sends the DeleteInternetGateway API request.
func (r DeleteInternetGatewayRequest) Send(ctx context.Context) (*DeleteInternetGatewayResponse, error) {
	r.Request.SetContext(ctx)
	err := r.Request.Send()
	if err != nil {
		return nil, err
	}

	resp := &DeleteInternetGatewayResponse{
		DeleteInternetGatewayOutput: r.Request.Data.(*DeleteInternetGatewayOutput),
		response:                    &aws.Response{Request: r.Request},
	}

	return resp, nil
}

// DeleteInternetGatewayResponse is the response type for the
// DeleteInternetGateway API operation.
type DeleteInternetGatewayResponse struct {
	*DeleteInternetGatewayOutput

	response *aws.Response
}

// SDKResponseMetdata returns the response metadata for the
// DeleteInternetGateway request.
func (r *DeleteInternetGatewayResponse) SDKResponseMetdata() *aws.Response {
	return r.response
}


text:
package com.google.android.exoplayer2.transformer;

import static org.junit.Assert.assertThrows;

import android.content.Context;
import androidx.test.core.app.ApplicationProvider;
import androidx.test.ext.junit.runners.AndroidJUnit4;
import com.google.android.exoplayer2.util.MimeTypes;
import org.junit.Test;
import org.junit.runner.RunWith;

/** Unit test for {@link Transformer.Builder}. */
@RunWith(AndroidJUnit4.class)
public class TransformerBuilderTest {

  @Test
  public void setOutputMimeType_unsupportedMimeType_throws() {
    Context context = ApplicationProvider.getApplicationContext();

    assertThrows(
        IllegalStateException.class,
        () -> new Transformer.Builder(context).setOutputMimeType(MimeTypes.VIDEO_UNKNOWN).build());
  }

  @Test
  public void build_withoutContext_throws() {
    assertThrows(NullPointerException.class, () -> new Transformer.Builder().build());
  }

  @Test
  public void build_removeAudioAndVideo_throws() {
    Context context = ApplicationProvider.getApplicationContext();

    assertThrows(
        IllegalStateException.class,
        () -> new Transformer.Builder(context).setRemoveAudio(true).setRemoveVideo(true).build());
  }

  @Test
  public void build_withUnsupportedAudioMimeType_throws() {
    Context context = ApplicationProvider.getApplicationContext();
    TransformationRequest transformationRequest =
        new TransformationRequest.Builder().setAudioMimeType(MimeTypes.AUDIO_UNKNOWN).build();

    assertThrows(
        IllegalStateException.class,
        () ->
            new Transformer.Builder(context)
                .setTransformationRequest(transformationRequest)
                .build());
  }

  @Test
  public void build_withUnsupportedVideoMimeType_throws() {
    Context context = ApplicationProvider.getApplicationContext();
    TransformationRequest transformationRequest =
        new TransformationRequest.Builder().setVideoMimeType(MimeTypes.VIDEO_UNKNOWN).build();

    assertThrows(
        IllegalStateException.class,
        () ->
            new Transformer.Builder(context)
                .setTransformationRequest(transformationRequest)
                .build());
  }
}


text:
This will auto generate pages to view Wraith galleries, when they were created and enable a user to run a job.

Actual use :

`bundle exec shotgun`

Visit : `http://127.0.0.1:9393/`

## Installation

Add this line to your application's Gemfile:

    gem 'wraith-view'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install wraith-view

## Usage

TODO: Write usage instructions here

## Contributing

1. Fork it ( http://github.com/DaveBlooman/wraith-view/fork )
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request


text:
/*	$OpenBSD: sfbreg.h,v 1.3 1996/10/30 22:39:28 niklas Exp $	*/
/*	$NetBSD: sfbreg.h,v 1.1 1996/05/01 21:15:46 cgd Exp $	*/

/*
 * Copyright (c) 1996 Carnegie-Mellon University.
 * All rights reserved.
 *
 * Author: Chris G. Demetriou
 *
 * Permission to use, copy, modify and distribute this software and
 * its documentation is hereby granted, provided that both the copyright
 * notice and this permission notice appear in all copies of the
 * software, derivative works or modified versions, and any portions
 * thereof, and that both notices appear in supporting documentation.
 *
 * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
 * CONDITION.  CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND
 * FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
 *
 * Carnegie Mellon requests users of this software to return to
 *
 *  Software Distribution Coordinator  or  Software.Distribution@CS.CMU.EDU
 *  School of Computer Science
 *  Carnegie Mellon University
 *  Pittsburgh PA 15213-3890
 *
 * any improvements or extensions that they make and grant Carnegie the
 * rights to redistribute these changes.
 */

/*
 * Smart ("CXTurbo") Frame Buffer definitions, from:
 * ``DEC 3000 300/400/500/600/700/800/900 AXP Models System Prgrammer's Manual''
 * (DEC order number EK-D3SYS-PM), section 6.
 *
 * All definitions are in "dense" TurboChannel space.
 */

/*
 * Size of the SFB address space.
 */
#define	SFB_SIZE		0x1000000

/*
 * Offsets into slot space of each functional unit.
 */
#define	SFB_ASIC_OFFSET		0x0100000	/* SFB ASIC Control Registers */
#define	SFB_ASIC_SIZE		0x0020000
#define	SFB_RAMDAC_OFFSET	0x01c0000	/* Bt495 RAMDAC Registers */
#define	SFB_RAMDAC_SIZE		0x0040000
#define	SFB_FB_OFFSET		0x0200000	/* Frame buffer */
#define	SFB_FB_SIZE		0x0200000
#define	SFB_OSBM_OFFSET		0x0600000	/* Off-screen buffer memory */
#define	SFB_OSBM_SIZE		0x0200000

/*
 * SFB ASIC registers (offsets from SFB_ASIC_OFFSET).
 */
#define	SFB_ASIC_COPYBUF_0	0x0000	/* Copy buffer register 0 (R/W) */
#define	SFB_ASIC_COPYBUF_1	0x0004	/* Copy buffer register 1 (R/W) */
#define	SFB_ASIC_COPYBUF_2	0x0008	/* Copy buffer register 2 (R/W) */
#define	SFB_ASIC_COPYBUF_3	0x000c	/* Copy buffer register 3 (R/W) */
#define	SFB_ASIC_COPYBUF_4	0x0010	/* Copy buffer register 4 (R/W) */
#define	SFB_ASIC_COPYBUF_5	0x0014	/* Copy buffer register 5 (R/W) */
#define	SFB_ASIC_COPYBUF_6	0x0018	/* Copy buffer register 6 (R/W) */
#define	SFB_ASIC_COPYBUF_7	0x001c	/* Copy buffer register 7 (R/W) */
#define	SFB_ASIC_FG		0x0020	/* Foreground (R/W) */
#define	SFB_ASIC_BG		0x0024	/* Background (R/W) */
#define	SFB_ASIC_PLANEMASK	0x0028	/* PlaneMask (R/W) */
#define	SFB_ASIC_PIXELMASK	0x002c	/* PixelMask (R/W) */
#define	SFB_ASIC_MODE		0x0030	/* Mode (R/W) */
#define	SFB_ASIC_ROP		0x0034	/* RasterOp (R/W) */
#define	SFB_ASIC_PIXELSHIFT	0x0038	/* PixelShift (R/W) */
#define	SFB_ASIC_ADDRESS	0x003c	/* Address (R/W) */
#define	SFB_ASIC_BRES1		0x0040	/* Bresenham register 1 (R/W) */
#define	SFB_ASIC_BRES2		0x0044	/* Bresenham register 2 (R/W) */
#define	SFB_ASIC_BRES3		0x0048	/* Bresenham register 3 (R) (?) */
#define	SFB_ASIC_BCONT		0x004c	/* Bcont (W) */
#define	SFB_ASIC_DEEP		0x0050	/* Deep (R/W) */
#define	SFB_ASIC_START		0x0054	/* Start (W) */
#define	SFB_ASIC_CLEAR_INTR	0x0058	/* Clear Interrupt (W) */
#define	SFB_ASIC_VIDEO_REFRESH	0x0060	/* Video refresh counter (R/W) */
#define	SFB_ASIC_VIDEO_HSETUP	0x0064	/* Video horizontal setup (R/W) */
#define	SFB_ASIC_VIDEO_VSETUP	0x0068	/* Video vertical setup (R/W) */
#define	SFB_ASIC_VIDEO_BASE	0x006c	/* Video base address (R/W) */
#define	SFB_ASIC_VIDEO_VALID	0x0070	/* Video valid (W) */
#define	SFB_ASIC_ENABLE_INTR	0x0074	/* Enable/Disable Interrupts (W) */
#define	SFB_ASIC_TCCLK		0x0078	/* TCCLK count (R/W) */
#define	SFB_ASIC_VIDCLK		0x007c	/* VIDCLK count (R/W) */

/*
 * Bt459 RAMDAC registers (offsets from SFB_RAMDAC_OFFSET)
 */
#define	SFB_RAMDAC_ADDRLOW	0x0000	/* Address register low byte */
#define	SFB_RAMDAC_ADDRHIGH	0x0004	/* Address register high byte */
#define	SFB_RAMDAC_REGDATA	0x0008	/* Register addressed by addr reg */
#define	SFB_RAMDAC_CMAPDATA	0x000c	/* Colormap loc addressed by addr reg */


text:
layout: page
title: Shadow Base Llc. Dinner
date: 2016-05-24
author: Andrea Klein
tags: weekly links, java
status: published
summary: Phasellus maximus fermentum lorem vel pulvinar. Proin.
banner: images/banner/leisure-04.jpg
booking:
  startDate: 03/05/2017
  endDate: 03/06/2017
  ctyhocn: ATLSMHX
  groupCode: SBLD
published: true
---
Curabitur sed erat iaculis, aliquet enim quis, laoreet arcu. Sed tristique augue et est commodo, in feugiat justo ornare. Donec volutpat commodo augue ac rhoncus. Sed eu ante a mi aliquam sagittis et vel erat. Sed sed semper purus. Nulla nec ante et dolor vulputate tincidunt. Etiam rutrum pellentesque felis, nec congue mauris luctus vel. Suspendisse potenti. In molestie mollis sapien eget laoreet.

* Duis ac est id orci sollicitudin commodo
* Mauris sed justo convallis, porta tellus at, scelerisque elit
* Donec ac libero sit amet augue pretium volutpat et id eros
* Proin in elit eget odio pharetra varius.

Vestibulum aliquet magna nulla, sit amet finibus arcu venenatis a. Phasellus vel ipsum non metus vestibulum volutpat et eget tellus. Aliquam nec tortor massa. Ut nec porttitor nunc, a feugiat turpis. Praesent et rutrum mi. Integer dictum enim ipsum, eu tempor quam ullamcorper quis. Aenean imperdiet eleifend magna. Fusce enim sapien, vehicula sed congue non, vestibulum et nisi. Integer laoreet, sem at volutpat porttitor, urna sapien dignissim libero, ut finibus sem nisi at metus. Morbi porta turpis id consequat iaculis. Nulla luctus tristique justo, dapibus ultrices diam ornare ut.
Donec pretium est sed tortor pulvinar, in commodo sapien luctus. Ut lacus felis, blandit a eleifend sit amet, fringilla a magna. Cras ultrices neque eu lobortis efficitur. Praesent eget laoreet mauris, placerat congue eros. Maecenas ac feugiat nulla. Integer molestie tellus massa. Quisque ultrices ipsum lectus, eget fermentum nulla hendrerit vitae. Maecenas ultrices, orci eu placerat ornare, tortor neque semper ante, sed viverra lorem nulla eu augue. Vestibulum faucibus interdum efficitur. Quisque scelerisque quam in dui ultricies, egestas laoreet enim convallis. Nunc sit amet consectetur justo, eu tincidunt urna. Etiam sed magna volutpat, viverra magna id, luctus dui.


text:
class ck_random_test : public test_fixture
{
public:
    TEST_SUITE(ck_random_test);
        TEST(ck_random_test::test_random_device);
        TEST(ck_random_test::test_mersenne_twister);
        TEST(ck_random_test::test_mersenne_twister_with_random_device_seed);
        TEST(ck_random_test::test_mersenne_twister_64);
        TEST(ck_random_test::test_mersenne_twister_with_floating_point_distribution);
    TEST_SUITE_END();

    virtual ~ck_random_test() throw() {}

    virtual void setup();
    virtual void teardown();

    void test_random_device();
    void test_mersenne_twister();
    void test_mersenne_twister_with_random_device_seed();
    void test_mersenne_twister_64();
    void test_mersenne_twister_with_floating_point_distribution();
};


text:
class SelectThread : public Network::Select, public Sync::Thread
{
public:
  void Run(void);
};

#endif


text:
__title__ = 'zerorpc'
__version__ = '0.1.0'
__author__ = 'dotCloud, Inc.'
__license__ = 'MIT'
__copyright__ = 'Copyright 2012 dotCloud, Inc.'

from .exceptions import *
from .context import *
from .socket import *
from .channel import *
from .events import *
from .core import *


text:
![Nobu](./assets/logo-wide-dark.svg)

A CSS framework based on [Bulma](http://bulma.io)

[Live demo](http://nobu.lux.moe)


text:
<?php

namespace Symfony\Component\Validator\Tests\Constraints;

use Symfony\Component\Validator\Constraints\IsFalse;
use Symfony\Component\Validator\Constraints\IsFalseValidator;
use Symfony\Component\Validator\Test\ConstraintValidatorTestCase;

class IsFalseValidatorTest extends ConstraintValidatorTestCase
{
    protected function createValidator()
    {
        return new IsFalseValidator();
    }

    public function testNullIsValid()
    {
        $this->validator->validate(null, new IsFalse());

        $this->assertNoViolation();
    }

    public function testFalseIsValid()
    {
        $this->validator->validate(false, new IsFalse());

        $this->assertNoViolation();
    }

    /**
     * @dataProvider provideInvalidConstraints
     */
    public function testTrueIsInvalid(IsFalse $constraint)
    {
        $this->validator->validate(true, $constraint);

        $this->buildViolation('myMessage')
            ->setParameter('{{ value }}', 'true')
            ->setCode(IsFalse::NOT_FALSE_ERROR)
            ->assertRaised();
    }

    public function provideInvalidConstraints(): iterable
    {
        yield 'Doctrine style' => [new IsFalse([
            'message' => 'myMessage',
        ])];
        yield 'named parameters' => [new IsFalse(message: 'myMessage')];
    }
}


text:
package com.android101.calculatorv20;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import android.widget.Toast;

public class MainActivity extends AppCompatActivity {

    private TextView screen;
    private boolean decimalAdded = false; // Prevents you from writing numbers like 2.4..57.9

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        screen = (TextView)findViewById(R.id.full_expression);
        screen.setText("0"); // Initialising the value to 0
    }

    public void onClick (View v){

        if (v instanceof Button) {

            Button clickedButton = (Button) v;
            String screenString = screen.getText().toString();
            String lastChar = screenString.substring(screenString.length() - 1); // Fetching and storing the last character

            switch (v.getId()) {
                case R.id.button_clear:
                    screen.setText("0");
                    decimalAdded = false;
                    break;

                case R.id.button_dot:
                    if (!decimalAdded) {
                        if (lastChar.equals("+") || lastChar.equals("-") || lastChar.equals("×") || lastChar.equals("÷")) {
                            screen.append("0"); // Add a zero before adding the decimal point
                        }
                        screen.append(".");
                        decimalAdded = true;
                    }
                    break;

                case R.id.button_add:
                    if(lastChar.equals("+") || lastChar.equals("-") || lastChar.equals("×") || lastChar.equals("÷") || lastChar.equals(".")){
                        screen.append("");
                    }
                    else {
                        screen.append("+");
                    }
                    decimalAdded = false;
                    break;
                case R.id.button_subtract:
                    if(lastChar.equals("+") || lastChar.equals("-") || lastChar.equals("×") || lastChar.equals("÷") || lastChar.equals(".")){
                        screen.append("");
                    }
                    else {
                        screen.append("-");
                    }
                    decimalAdded = false;
                    break;
                case R.id.button_multiply:
                    if(lastChar.equals("+") || lastChar.equals("-") || lastChar.equals("×") || lastChar.equals("÷") || lastChar.equals(".")){
                        screen.append("");
                    }
                    else {
                        screen.append("×");
                    }
                    decimalAdded = false;
                    break;
                case R.id.button_divide:
// If the screen text is 0, you should still permit the calculation, so I've removed that condition
                    if(lastChar.equals("+") || lastChar.equals("-") || lastChar.equals("×") || lastChar.equals("÷") || lastChar.equals(".")){
                        screen.append("");
                    }
                    else {
                        screen.append("÷");
                    }
                    decimalAdded = false;

                    /*if (lastChar.equals(".")) {
                        screen.append("0"); // Append a 0 after the decimal point
                    }
                    decimalAdded = false;
                    screen.append(clickedButton.getText().toString());*/
                    break;

/* case R.id.button_equals:
computeString();
decimalAdded = false;
break;
*/

                default:
                    if (screenString.equals("0")) {
                        screen.setText(clickedButton.getText().toString());
                    } else {
                        screen.append(clickedButton.getText().toString());
                    }
            }
        }
    }
}


text:
<TITLE>Review for Horse Whisperer, The (1998)</TITLE>
<LINK REL="STYLESHEET" TYPE="text/css" HREF="/ramr.css">

Horse Whisperer, The (1998)

reviewed by
Bill Chambers

THE HORSE WHISPERER ***1/2 (out of four)
-a review by Bill Chambers, wchamber@netcom.ca

(Now with TRIVIA; film, DVD, LD reviews; a section where YOU can
recommend movies;
fabric softener; and much more!
FILM FREAK CENTRAL
http://www.geocities.com/~billchambers
New address. New attitude. Same crappy writing.)

starring Robert Redford, Kristin Scott-Thomas, Scarlett Johanssen, Sam
Neill
                  screenplay by Richard LaGravenese, based on the book
by Nicholas Evans
                                     directed by Robert Redford

After Indecent Proposal and Up Close and Personal, Redford was wise to
direct himself in a picture at last. Redford
may look great on-screen, but over the past few years, he's proven
himself a bigger talent behind the camera.
Ordinary People is one of the best films of the nineteen-eighties, and
it was the first picture he helmed. While The
Milagro Beanfield War was only occasionally successful at combining
magic-realism with...um, realism, and I've
never been much of a fan of A River Runs Through It (to the chagrin of
many), Quiz Show was dazzling, energetic
and convincing. THE HORSE WHISPERER represents both his directorial
return to nature films and the first time
in that sub-genre Redford seems equally concerned with humans and
scenery.

Scott-Thomas plays Annie MacLean, an uptight but respected New York
magazine editor whose daughter Grace
(Johanssen) loses a leg and a good friend when an early morning ride
climaxes with their horses colliding with a
semi. Grace's horse survived, but barely, and has gone mad. Annie
refuses to put the animal out of his misery,
believing that if the horse heals it will mend Grace's newly-broken
spirit. Eventually, mother and daughter travel
alone to Montana to be with Tom Booker (Redford), a famed "horse
whisperer" who has a gift of calming horses
with simple looks and touches, leaving busy husband Neill behind.
Eventually, they move onto the Booker ranch
with the rest of Tom's family, and Annie finds herself falling in love
with all things Montana, including, naturally,
Tom, the wise and lonely trainer.

THE HORSE WHISPERER is delicately made. I dare say lyrical, since to
many people's ear, that word is
synonymous with boring. Hardly. THE HORSE WHISPERER has little to offer
in the way of surprise, but it does
have an honesty that is refreshing and consistently enjoyable to watch,
especially in the final third of the
story. Scott-Thomas and Johanssen seem like mother and daughter, and you
have no doubt believing that the
mountain vistas would put these New Yorkers under a spell, especially
since d.p. Robert Richardson's photography
casts Montana as Heaven on Earth. (A gimmicky but effective technique
the filmmakers employ is a switch in
aspect ratio from squarish to widescreen when the central location
shifts from New York to Montana.) The
underrated Sam Neill turns in perhaps his most heartfelt, emotive
performance as the nice-guy husband, who is as
authoritive and likeable as Tom. He is indeed a refreshing change from
the sexist, lout of a husband so many
writers resort to as a short-cut for explaining away the cheating
spouse's motivation. Unfortunately, one of THE
HORSE WHISPERER's only flaws is the chemistry between would-be lovers
Scott-Thomas and Redford. I liked
both of them, but I didn't necessarily believe that Redford would fall
for such a cold fish, even if the countryside air
thawed her slightly. Luckily (and curiously), this is such a rich and
textured movie that it doesn't quite matter-their adultery
seems like an afterthought, the obligatory sub-plot that ties many of
the characters' complex relationships together.

                                     -July, 1998

The review above was posted to the
rec.arts.movies.reviews newsgroup (de.rec.film.kritiken for German reviews).

The Internet Movie Database accepts no responsibility for the contents of the
review and has no editorial control. Unless stated otherwise, the copyright
belongs to the author.

Please direct comments/criticisms of the review to relevant newsgroups.

Broken URLs inthe reviews are the responsibility of the author.

The formatting of the review is likely to differ from the original due
to ASCII to HTML conversion.

Related links: index of all rec.arts.movies.reviews reviews


text:
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
  <component name="ProjectModuleManager">
    <modules>
      <module fileurl="file://$PROJECT_DIR$/MultiImagePick-master.iml" filepath="$PROJECT_DIR$/MultiImagePick-master.iml" />
      <module fileurl="file://$PROJECT_DIR$/app/app.iml" filepath="$PROJECT_DIR$/app/app.iml" />
      <module fileurl="file://$PROJECT_DIR$/multi-image-pick/multi-image-pick.iml" filepath="$PROJECT_DIR$/multi-image-pick/multi-image-pick.iml" />
    </modules>
  </component>
</project>


text:
#ifndef WEBRTC_MODULES_DESKTOP_CAPTURE_DESKTOP_CAPTURER_H_
#define WEBRTC_MODULES_DESKTOP_CAPTURE_DESKTOP_CAPTURER_H_

#include <stddef.h>
#include <stdint.h>

#include <memory>
#include <string>
#include <type_traits>
#include <vector>

#include "webrtc/modules/desktop_capture/desktop_frame.h"
#include "webrtc/modules/desktop_capture/desktop_capture_types.h"
#include "webrtc/modules/desktop_capture/shared_memory.h"

namespace webrtc {

class DesktopCaptureOptions;
class DesktopFrame;

// Abstract interface for screen and window capturers.
class DesktopCapturer {
 public:
  enum class Result {
    // The frame was captured successfully.
    SUCCESS,

    // There was a temporary error. The caller should continue calling
    // CaptureFrame(), in the expectation that it will eventually recover.
    ERROR_TEMPORARY,

    // Capture has failed and will keep failing if the caller tries calling
    // CaptureFrame() again.
    ERROR_PERMANENT,

    MAX_VALUE = ERROR_PERMANENT
  };

  // Interface that must be implemented by the DesktopCapturer consumers.
  class Callback {
   public:
    // Called after a frame has been captured. |frame| is not nullptr if and
    // only if |result| is SUCCESS.
    virtual void OnCaptureResult(Result result,
                                 std::unique_ptr<DesktopFrame> frame) = 0;

   protected:
    virtual ~Callback() {}
  };

  typedef intptr_t SourceId;

  static_assert(std::is_same<SourceId, ScreenId>::value,
                "SourceId should be a same type as ScreenId.");

  struct Source {
    // The unique id to represent a Source of current DesktopCapturer.
    SourceId id;

    // Title of the window or screen in UTF-8 encoding, maybe empty. This field
    // should not be used to identify a source.
    std::string title;
  };

  typedef std::vector<Source> SourceList;

  virtual ~DesktopCapturer();

  // Called at the beginning of a capturing session. |callback| must remain
  // valid until capturer is destroyed.
  virtual void Start(Callback* callback) = 0;

  // Sets SharedMemoryFactory that will be used to create buffers for the
  // captured frames. The factory can be invoked on a thread other than the one
  // where CaptureFrame() is called. It will be destroyed on the same thread.
  // Shared memory is currently supported only by some DesktopCapturer
  // implementations.
  virtual void SetSharedMemoryFactory(
      std::unique_ptr<SharedMemoryFactory> shared_memory_factory);

  // Captures next frame, and involve callback provided by Start() function.
  // Pending capture requests are canceled when DesktopCapturer is deleted.
  virtual void CaptureFrame() = 0;

  // Sets the window to be excluded from the captured image in the future
  // Capture calls. Used to exclude the screenshare notification window for
  // screen capturing.
  virtual void SetExcludedWindow(WindowId window);

  // TODO(zijiehe): Following functions should be pure virtual. The default
  // implementations are for backward compatibility only. Remove default
  // implementations once all DesktopCapturer implementations in Chromium have
  // implemented these functions.

  // Gets a list of sources current capturer supports. Returns false in case of
  // a failure.
  virtual bool GetSourceList(SourceList* sources);

  // Selects a source to be captured. Returns false in case of a failure (e.g.
  // if there is no source with the specified type and id.)
  virtual bool SelectSource(SourceId id);

  // Brings the selected source to the front and sets the input focus on it.
  // Returns false in case of a failure or no source has been selected or the
  // implementation does not support this functionality.
  virtual bool FocusOnSelectedSource();

  // Creates a DesktopCapturer instance which targets to capture windows.
  static std::unique_ptr<DesktopCapturer> CreateWindowCapturer(
      const DesktopCaptureOptions& options);

  // Creates a DesktopCapturer instance which targets to capture screens.
  static std::unique_ptr<DesktopCapturer> CreateScreenCapturer(
      const DesktopCaptureOptions& options);

 protected:
  // CroppingWindowCapturer needs to create raw capturers without wrappers, so
  // the following two functions are protected.

  // Creates a platform specific DesktopCapturer instance which targets to
  // capture windows.
  static std::unique_ptr<DesktopCapturer> CreateRawWindowCapturer(
      const DesktopCaptureOptions& options);

  // Creates a platform specific DesktopCapturer instance which targets to
  // capture screens.
  static std::unique_ptr<DesktopCapturer> CreateRawScreenCapturer(
      const DesktopCaptureOptions& options);
};

}  // namespace webrtc

#endif  // WEBRTC_MODULES_DESKTOP_CAPTURE_DESKTOP_CAPTURER_H_


text:
<?php

namespace IronEdge\Component\Graphs\Exception;

/**
 * @author Gustavo Falco <comfortablynumb84@gmail.com>
 */
class ValidationException extends BaseException
{
    public static function create($msg)
    {
        return new self($msg);
    }
}


text:
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

// Allgemeine Informationen über eine Assembly werden über die folgenden
// Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern,
// die mit einer Assembly verknüpft sind.

[assembly: AssemblyTitle("weasel")]
[assembly: AssemblyDescription("A lightweight dynamic proxy library.")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("weasel")]
[assembly: AssemblyCopyright("Copyright ©  2017")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

// Durch Festlegen von ComVisible auf "false" werden die Typen in dieser Assembly unsichtbar
// für COM-Komponenten.  Wenn Sie auf einen Typ in dieser Assembly von
// COM zugreifen müssen, legen Sie das ComVisible-Attribut für diesen Typ auf "true" fest.

[assembly: ComVisible(false)]

// Die folgende GUID bestimmt die ID der Typbibliothek, wenn dieses Projekt für COM verfügbar gemacht wird

[assembly: Guid("919db5ea-3c5d-4f80-b4f4-0f95a675b8ea")]

// Versionsinformationen für eine Assembly bestehen aus den folgenden vier Werten:
//
//      Hauptversion
//      Nebenversion
//      Buildnummer
//      Revision
//
// Sie können alle Werte angeben oder die standardmäßigen Build- und Revisionsnummern
// übernehmen, indem Sie "*" eingeben:
// [assembly: AssemblyVersion("1.0.*")]

[assembly: AssemblyVersion("0.9.*")]
[assembly: InternalsVisibleTo("weasel.Test")]