text:
<!DOCTYPE html>
<html>
<head>
	<script type = "text/javascript" src="../../dist/js/readable/quack.js"></script>
</head>
<body>
 this page is simply meant to load the scripts, nothing more
</body>

redpajama_set_name: RedPajamaGithub


text:
package org.apache.hadoop.io.erasurecode;

import java.nio.ByteBuffer;

import org.apache.hadoop.classification.InterfaceAudience;

/**
 * A wrapper for ByteBuffer or bytes array for an erasure code chunk.
 */
@InterfaceAudience.Private
public class ECChunk {

  private ByteBuffer chunkBuffer;

  // TODO: should be in a more general flags
  private boolean allZero = false;

  /**
   * Wrapping a ByteBuffer
   * @param buffer buffer to be wrapped by the chunk
   */
  public ECChunk(ByteBuffer buffer) {
    this.chunkBuffer = buffer;
  }

  public ECChunk(ByteBuffer buffer, int offset, int len) {
    ByteBuffer tmp = buffer.duplicate();
    tmp.position(offset);
    tmp.limit(offset + len);
    this.chunkBuffer = tmp.slice();
  }

  /**
   * Wrapping a bytes array
   * @param buffer buffer to be wrapped by the chunk
   */
  public ECChunk(byte[] buffer) {
    this.chunkBuffer = ByteBuffer.wrap(buffer);
  }

  public ECChunk(byte[] buffer, int offset, int len) {
    this.chunkBuffer = ByteBuffer.wrap(buffer, offset, len);
  }

  public boolean isAllZero() {
    return allZero;
  }

  public void setAllZero(boolean allZero) {
    this.allZero = allZero;
  }

  /**
   * Convert to ByteBuffer
   * @return ByteBuffer
   */
  public ByteBuffer getBuffer() {
    return chunkBuffer;
  }

  /**
   * Convert an array of this chunks to an array of ByteBuffers
   * @param chunks chunks to convert into buffers
   * @return an array of ByteBuffers
   */
  public static ByteBuffer[] toBuffers(ECChunk[] chunks) {
    ByteBuffer[] buffers = new ByteBuffer[chunks.length];

    ECChunk chunk;
    for (int i = 0; i < chunks.length; i++) {
      chunk = chunks[i];
      if (chunk == null) {
        buffers[i] = null;
      } else {
        buffers[i] = chunk.getBuffer();
      }
    }

    return buffers;
  }

  /**
   * Convert to a bytes array, just for test usage.
   * @return bytes array
   */
  public byte[] toBytesArray() {
    byte[] bytesArr = new byte[chunkBuffer.remaining()];
    // Avoid affecting the original one
    chunkBuffer.mark();
    chunkBuffer.get(bytesArr);
    chunkBuffer.reset();

    return bytesArr;
  }
}


text:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="170dp"

    >
    <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
        android:layout_width="match_parent"
        android:layout_height="match_parent"

        android:paddingLeft="7dp"
        android:paddingRight="7dp"
        android:paddingTop="5dp"
        android:paddingBottom="55dp"

        >
        <ImageView
            android:id="@+id/image_view"
            android:layout_width="match_parent"
            android:layout_height="match_parent"

            android:src="@drawable/store_1"
            android:scaleType="centerCrop"
            android:layout_centerHorizontal="true"

            />
    </RelativeLayout>

    <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
        android:layout_width="match_parent"
        android:layout_height="match_parent"

        android:paddingLeft="6dp"
        android:paddingRight="6dp"
        android:paddingTop="4dp"
        android:paddingBottom="4dp"

        >
        <ImageView
            android:id="@+id/bacagraun"
            android:layout_width="match_parent"
            android:layout_height="match_parent"

            android:layout_centerHorizontal="true"

            android:background="@drawable/grid_background"
            />
    </RelativeLayout>

    <ImageView
        android:id="@+id/favorite"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"

        android:src="@drawable/grid_background_not_favorite"

        android:scaleType="fitCenter"
        android:layout_centerHorizontal="true"

        android:scaleX="0.6"
        android:scaleY="0.6"

        android:layout_alignParentTop="true"
        android:layout_alignParentLeft="true"

        android:paddingLeft="14dp"
        android:paddingRight="0dp"
        android:paddingTop="4dp"
        android:paddingBottom="0dp"

        />

    <ImageView
        android:id="@+id/sale"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"

        android:src="@drawable/grid_background_sale_flipped"

        android:scaleType="fitCenter"
        android:layout_centerHorizontal="true"

        android:layout_alignParentTop="true"
        android:layout_alignParentRight="true"

        android:paddingLeft="0dp"
        android:paddingRight="14dp"
        android:paddingTop="20dp"
        android:paddingBottom="0dp"

        />

    <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
        android:layout_width="match_parent"
        android:layout_height="match_parent"

        android:paddingLeft="25dp"
        android:paddingRight="25dp"
        android:paddingTop="6dp"
        android:paddingBottom="4dp"

        >

    </RelativeLayout>

    <TextView
        android:id="@+id/company_text_view"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="App name"
        android:textAlignment="center"

        android:textColor="@color/black_overlay"
        android:textStyle="bold"
        android:textSize="13sp"

        android:layout_alignParentBottom="true"
        android:layout_centerHorizontal="true"

        android:paddingLeft="14dp"
        android:paddingRight="14dp"
        android:paddingTop="0dp"
        android:paddingBottom="52dp"
        />

    <TextView
        android:id="@+id/company_description"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="descripcion direccion"
        android:textAlignment="center"

        android:textColor="#aaaaaa"
        android:textStyle="italic"
        android:textSize="8sp"

        android:layout_alignParentBottom="true"
        android:layout_centerHorizontal="true"

        android:paddingLeft="14dp"
        android:paddingRight="14dp"
        android:paddingTop="0dp"
        android:paddingBottom="42dp"
        />
    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true"
        android:paddingBottom="32dip"
        android:gravity="center">
        <TextView android:id="@+id/percentage"
            android:layout_width="wrap_content"
            android:textColor="#aaaaaa"
            android:layout_height="wrap_content"
            android:text="%14"
            android:textSize="8sp"
            android:textStyle="normal"
            />
        <ImageView android:id="@+id/triangle"
            android:layout_width="8dp"
            android:layout_height="8dp"
            android:src="@drawable/red_triangle"/>

        </LinearLayout>
    <TextView
        android:id="@+id/title_text_view"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:textColor="#aaaaaa"
        android:text="web site"
        android:textSize="10sp"
        android:textStyle="bold"

        android:gravity="center"

        android:layout_alignParentBottom="true"
        android:layout_alignParentLeft="true"

        android:paddingLeft="14dp"
        android:paddingRight="0dp"
        android:paddingTop="0dp"
        android:paddingBottom="12dp"

        />

    <TextView
        android:id="@+id/open_hours"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:textColor="#aaaaaa"
        android:text="horario"
        android:textSize="10sp"
        android:textStyle="normal"

        android:gravity="center"

        android:layout_alignParentBottom="true"
        android:layout_alignParentLeft="true"

        android:paddingLeft="14dp"
        android:paddingRight="0dp"
        android:paddingTop="0dp"
        android:paddingBottom="23dp"

        />

    <TextView
        android:id="@+id/availability"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:gravity="right"
        android:text="available"
        android:layout_alignParentBottom="true"
        android:layout_alignParentRight="true"
        android:textColor="#aaaaaa"
        android:textSize="10sp"
        android:textStyle="bold"

        android:paddingLeft="0dp"
        android:paddingRight="14dp"
        android:paddingTop="0dp"
        android:paddingBottom="12dp"

       />

<LinearLayout
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"

    android:gravity="right"

    android:layout_alignParentBottom="true"
    android:layout_alignParentRight="true"

    android:paddingLeft="0dp"
    android:paddingRight="14dp"
    android:paddingTop="0dp"
    android:paddingBottom="22dp"
    >

    <ImageView
        android:id="@+id/clock"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:src="@drawable/grid_background_clock"
        android:scaleType="fitCenter"
        android:scaleX="0.9"
        android:scaleY="0.9"
        android:gravity="center"
        />

    <TextView
        android:id="@+id/time_to_arrive"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"

        android:text="time"

        android:textColor="#aaaaaa"
        android:textSize="10sp"
        android:textStyle="normal"

        />

    </LinearLayout>

</RelativeLayout>


text:
Coq'ified base library
======================

This directory contains beginnings a coqified version of the `Prelude` and
assorted bits of `base`.

We have the following directories:

 * `base`: A pristine check-out of base
 * `gen-files`: Additionaly artifacts that are produced when building base,
    included here for convenience.
 * `edits`: Global edit file
 * `module-edits/Foo/Bar/`: Edit files (`edit` and `preamble.v`) for `Foo.Bar`.
 * `drop-in/Foo/Bar.hs`: Manually edited Haskell file, to replace
    `base/Foo/Bar.hs`.
 * `manual/Foo/Bar.v`: Manually created `.v` files.
 * `../../base`: Output, including `_CoqProject`

The generated files in `../../base/` are added to the repository for two reasons:
 * So that `hs-to-coq` is usable translating `base`.
 * So that we can how its output changes.


text:
package term // import "github.com/docker/docker/pkg/term"

import (
	"io"
	"os"
	"os/signal"
	"syscall" // used for STD_INPUT_HANDLE, STD_OUTPUT_HANDLE and STD_ERROR_HANDLE

	"github.com/Azure/go-ansiterm/winterm"
	"github.com/docker/docker/pkg/term/windows"
)

// State holds the console mode for the terminal.
type State struct {
	mode uint32
}

// Winsize is used for window size.
type Winsize struct {
	Height uint16
	Width  uint16
}

// vtInputSupported is true if winterm.ENABLE_VIRTUAL_TERMINAL_INPUT is supported by the console
var vtInputSupported bool

// StdStreams returns the standard streams (stdin, stdout, stderr).
func StdStreams() (stdIn io.ReadCloser, stdOut, stdErr io.Writer) {
	// Turn on VT handling on all std handles, if possible. This might
	// fail, in which case we will fall back to terminal emulation.
	var emulateStdin, emulateStdout, emulateStderr bool
	fd := os.Stdin.Fd()
	if mode, err := winterm.GetConsoleMode(fd); err == nil {
		// Validate that winterm.ENABLE_VIRTUAL_TERMINAL_INPUT is supported, but do not set it.
		if err = winterm.SetConsoleMode(fd, mode|winterm.ENABLE_VIRTUAL_TERMINAL_INPUT); err != nil {
			emulateStdin = true
		} else {
			vtInputSupported = true
		}
		// Unconditionally set the console mode back even on failure because SetConsoleMode
		// remembers invalid bits on input handles.
		winterm.SetConsoleMode(fd, mode)
	}

	fd = os.Stdout.Fd()
	if mode, err := winterm.GetConsoleMode(fd); err == nil {
		// Validate winterm.DISABLE_NEWLINE_AUTO_RETURN is supported, but do not set it.
		if err = winterm.SetConsoleMode(fd, mode|winterm.ENABLE_VIRTUAL_TERMINAL_PROCESSING|winterm.DISABLE_NEWLINE_AUTO_RETURN); err != nil {
			emulateStdout = true
		} else {
			winterm.SetConsoleMode(fd, mode|winterm.ENABLE_VIRTUAL_TERMINAL_PROCESSING)
		}
	}

	fd = os.Stderr.Fd()
	if mode, err := winterm.GetConsoleMode(fd); err == nil {
		// Validate winterm.DISABLE_NEWLINE_AUTO_RETURN is supported, but do not set it.
		if err = winterm.SetConsoleMode(fd, mode|winterm.ENABLE_VIRTUAL_TERMINAL_PROCESSING|winterm.DISABLE_NEWLINE_AUTO_RETURN); err != nil {
			emulateStderr = true
		} else {
			winterm.SetConsoleMode(fd, mode|winterm.ENABLE_VIRTUAL_TERMINAL_PROCESSING)
		}
	}

	if os.Getenv("ConEmuANSI") == "ON" || os.Getenv("ConsoleZVersion") != "" {
		// The ConEmu and ConsoleZ terminals emulate ANSI on output streams well.
		emulateStdin = true
		emulateStdout = false
		emulateStderr = false
	}

	// Temporarily use STD_INPUT_HANDLE, STD_OUTPUT_HANDLE and
	// STD_ERROR_HANDLE from syscall rather than x/sys/windows as long as
	// go-ansiterm hasn't switch to x/sys/windows.
	// TODO: switch back to x/sys/windows once go-ansiterm has switched
	if emulateStdin {
		stdIn = windowsconsole.NewAnsiReader(syscall.STD_INPUT_HANDLE)
	} else {
		stdIn = os.Stdin
	}

	if emulateStdout {
		stdOut = windowsconsole.NewAnsiWriter(syscall.STD_OUTPUT_HANDLE)
	} else {
		stdOut = os.Stdout
	}

	if emulateStderr {
		stdErr = windowsconsole.NewAnsiWriter(syscall.STD_ERROR_HANDLE)
	} else {
		stdErr = os.Stderr
	}

	return
}

// GetFdInfo returns the file descriptor for an os.File and indicates whether the file represents a terminal.
func GetFdInfo(in interface{}) (uintptr, bool) {
	return windowsconsole.GetHandleInfo(in)
}

// GetWinsize returns the window size based on the specified file descriptor.
func GetWinsize(fd uintptr) (*Winsize, error) {
	info, err := winterm.GetConsoleScreenBufferInfo(fd)
	if err != nil {
		return nil, err
	}

	winsize := &Winsize{
		Width:  uint16(info.Window.Right - info.Window.Left + 1),
		Height: uint16(info.Window.Bottom - info.Window.Top + 1),
	}

	return winsize, nil
}

// IsTerminal returns true if the given file descriptor is a terminal.
func IsTerminal(fd uintptr) bool {
	return windowsconsole.IsConsole(fd)
}

// RestoreTerminal restores the terminal connected to the given file descriptor
// to a previous state.
func RestoreTerminal(fd uintptr, state *State) error {
	return winterm.SetConsoleMode(fd, state.mode)
}

// SaveState saves the state of the terminal connected to the given file descriptor.
func SaveState(fd uintptr) (*State, error) {
	mode, e := winterm.GetConsoleMode(fd)
	if e != nil {
		return nil, e
	}

	return &State{mode: mode}, nil
}

// DisableEcho disables echo for the terminal connected to the given file descriptor.
// -- See https://msdn.microsoft.com/en-us/library/windows/desktop/ms683462(v=vs.85).aspx
func DisableEcho(fd uintptr, state *State) error {
	mode := state.mode
	mode &^= winterm.ENABLE_ECHO_INPUT
	mode |= winterm.ENABLE_PROCESSED_INPUT | winterm.ENABLE_LINE_INPUT
	err := winterm.SetConsoleMode(fd, mode)
	if err != nil {
		return err
	}

	// Register an interrupt handler to catch and restore prior state
	restoreAtInterrupt(fd, state)
	return nil
}

// SetRawTerminal puts the terminal connected to the given file descriptor into
// raw mode and returns the previous state. On UNIX, this puts both the input
// and output into raw mode. On Windows, it only puts the input into raw mode.
func SetRawTerminal(fd uintptr) (*State, error) {
	state, err := MakeRaw(fd)
	if err != nil {
		return nil, err
	}

	// Register an interrupt handler to catch and restore prior state
	restoreAtInterrupt(fd, state)
	return state, err
}

// SetRawTerminalOutput puts the output of terminal connected to the given file
// descriptor into raw mode. On UNIX, this does nothing and returns nil for the
// state. On Windows, it disables LF -> CRLF translation.
func SetRawTerminalOutput(fd uintptr) (*State, error) {
	state, err := SaveState(fd)
	if err != nil {
		return nil, err
	}

	// Ignore failures, since winterm.DISABLE_NEWLINE_AUTO_RETURN might not be supported on this
	// version of Windows.
	winterm.SetConsoleMode(fd, state.mode|winterm.DISABLE_NEWLINE_AUTO_RETURN)
	return state, err
}

// MakeRaw puts the terminal (Windows Console) connected to the given file descriptor into raw
// mode and returns the previous state of the terminal so that it can be restored.
func MakeRaw(fd uintptr) (*State, error) {
	state, err := SaveState(fd)
	if err != nil {
		return nil, err
	}

	mode := state.mode

	// See
	// -- https://msdn.microsoft.com/en-us/library/windows/desktop/ms686033(v=vs.85).aspx
	// -- https://msdn.microsoft.com/en-us/library/windows/desktop/ms683462(v=vs.85).aspx

	// Disable these modes
	mode &^= winterm.ENABLE_ECHO_INPUT
	mode &^= winterm.ENABLE_LINE_INPUT
	mode &^= winterm.ENABLE_MOUSE_INPUT
	mode &^= winterm.ENABLE_WINDOW_INPUT
	mode &^= winterm.ENABLE_PROCESSED_INPUT

	// Enable these modes
	mode |= winterm.ENABLE_EXTENDED_FLAGS
	mode |= winterm.ENABLE_INSERT_MODE
	mode |= winterm.ENABLE_QUICK_EDIT_MODE
	if vtInputSupported {
		mode |= winterm.ENABLE_VIRTUAL_TERMINAL_INPUT
	}

	err = winterm.SetConsoleMode(fd, mode)
	if err != nil {
		return nil, err
	}
	return state, nil
}

func restoreAtInterrupt(fd uintptr, state *State) {
	sigchan := make(chan os.Signal, 1)
	signal.Notify(sigchan, os.Interrupt)

	go func() {
		_ = <-sigchan
		RestoreTerminal(fd, state)
		os.Exit(0)
	}()
}


text:
This benchmark renders a table of 1000 rows with 10 columns (10k components), with around 30k normal elements on the page. Note this is not something likely to be seen in a typical app. This benchmark is mostly for stress/regression testing and comparing between `renderToString` and `renderToStream`.

To view the results follow the run section. Note that the overall completion time for the results are variable, this is due to other system related variants at run time (available memory, processing ect). In ideal circumstances both should finish within similar results.

`renderToStream` pipes the content through a stream which provides considerable performance benefits (faster time-to-first-byte and non-event-loop-blocking) over renderToString. This can be observed through the benchmark.

### run

``` bash
npm run bench:ssr
```


text:
license: >
    Licensed to the Apache Software Foundation (ASF) under one
    or more contributor license agreements.  See the NOTICE file
    distributed with this work for additional information
    regarding copyright ownership.  The ASF licenses this file
    to you 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.

title: Icons and Splash Screens
---

# Icons and Splash Screens

This section shows how to configure an app's icon and optional splash
screen for various platforms, both when working in the Cordova CLI
(described in The Command-Line Interface) or using platform-specific
SDK tools (detailed in the Platform Guides).

## Configuring Icons in the CLI

When working in the CLI you can define app icon(s) via `<icon>` element (`config.xml`).
If you do not specify an icon then the Apache Cordova logo is used.

        <icon src="res/ios/icon.png" platform="ios" width="57" height="57" density="mdpi" />

src: (required) specifies the location of the image file, relative to your project directory

platform: (optional) target platform

width: (optional) icon width in pixels

height: (optional) icon height in pixels

density: (optional) android specific, specifies icon density

The following configuration can be used to define single default icon
which will be used for all platforms.

        <icon src="res/icon.png" />

For each platform you can also define a pixel-perfect icons set to fit
different screen resolutions.

Amazon Fire OS

         <platform name="amazon-fireos">
                  <icon src="res/android/ldpi.png" density="ldpi" />
                  <icon src="res/android/mdpi.png" density="mdpi" />
                  <icon src="res/android/hdpi.png" density="hdpi" />
                  <icon src="res/android/xhdpi.png" density="xhdpi" />
         </platform>

Android

         <platform name="android">
                  <icon src="res/android/ldpi.png" density="ldpi" />
                  <icon src="res/android/mdpi.png" density="mdpi" />
                  <icon src="res/android/hdpi.png" density="hdpi" />
                  <icon src="res/android/xhdpi.png" density="xhdpi" />
         </platform>

BlackBerry10

         <platform name="blackberry10">
                  <icon src="res/bb10/icon-86.png" />
                  <icon src="res/bb10/icon-150.png" />
         </platform>

See BlackBerry's documentation for targeting multiple sizes and locales.
[http://developer.blackberry.com/html5/documentation/icon_element.html]

Firefox OS

         <platform name="firefoxos">
                  <icon src="res/ff/logo.png" width="60" height="60" />
         </platform>

iOS

         <platform name="ios">
                  <!-- iOS 7.0+ -->
                  <!-- iPhone / iPod Touch  -->
                  <icon src="res/ios/icon-60.png" width="60" height="60" />
                  <icon src="res/ios/icon-60@2x.png" width="120" height="120" />
                  <!-- iPad -->
                  <icon src="res/ios/icon-76.png" width="76" height="76" />
                  <icon src="res/ios/icon-76@2x.png" width="152" height="152" />
                  <!-- iOS 6.1 -->
                  <!-- Spotlight Icon -->
                  <icon src="res/ios/icon-40.png" width="40" height="40" />
                  <icon src="res/ios/icon-40@2x.png" width="80" height="80" />
                  <!-- iPhone / iPod Touch -->
                  <icon src="res/ios/icon.png" width="57" height="57" />
                  <icon src="res/ios/icon@2x.png" width="114" height="114" />
                  <!-- iPad -->
                  <icon src="res/ios/icon-72.png" width="72" height="72" />
                  <icon src="res/ios/icon-72@2x.png" width="144" height="144" />
                  <!-- iPhone Spotlight and Settings Icon -->
                  <icon src="res/ios/icon-small.png" width="29" height="29" />
                  <icon src="res/ios/icon-small@2x.png" width="58" height="58" />
                  <!-- iPad Spotlight and Settings Icon -->
                  <icon src="res/ios/icon-50.png" width="50" height="50" />
                  <icon src="res/ios/icon-50@2x.png" width="100" height="100" />
         </platform>

Tizen

         <platform name="tizen">
                  <icon src="res/tizen/icon-128.png" width="128" height="128" />
         </platform>

Windows Phone8

         <platform name="wp8">
                  <icon src="res/wp/ApplicationIcon.png" width="99" height="99" />
                  <!-- tile image -->
                  <icon src="res/wp/Background.png" width="159" height="159" />
         </platform>

Windows8

         <platform name="windows8">
                  <icon src="res/windows8/logo.png" width="150" height="150" />
                  <icon src="res/windows8/smalllogo.png" width="30" height="30" />
                  <icon src="res/windows8/storelogo.png" width="50" height="50" />
         </platform>

## Configuring Splash Screens in the CLI

Use the Splashscreen API to enable display of an app's introductory
splash screen on many platforms.  When working in the CLI, splash
screen source files are located within the project's `www/res/screens`
subdirectory.

Android specifies both portrait- and landscape-oriented splash screen
images for low, medium, high, and extra-high resolutions:

        android/screen-hdpi-landscape.png
        android/screen-hdpi-portrait.png
        android/screen-ldpi-landscape.png
        android/screen-ldpi-portrait.png
        android/screen-mdpi-landscape.png
        android/screen-mdpi-portrait.png
        android/screen-xhdpi-landscape.png
        android/screen-xhdpi-portrait.png

The iOS platform specifies variants for iPhone/iPod and iPad, with
variants for retina displays and different orientations. The _568h_
file applies to the iPhone 5's taller screen:

        ios/screen-ipad-landscape-2x.png
        ios/screen-ipad-landscape.png
        ios/screen-ipad-portrait-2x.png
        ios/screen-ipad-portrait.png
        ios/screen-iphone-landscape-2x.png
        ios/screen-iphone-landscape.png
        ios/screen-iphone-portrait-2x.png
        ios/screen-iphone-portrait.png
        ios/screen-iphone-portrait-568h-2x.png

Windows Phone specifies a single splash screen image:

        windows-phone/screen-portrait.jpg

The following sections detail how to set up splash screens when
working with SDKs and related command-line tools described in Platform
Guides.

Don't forget to install the SplashScreen plugin before trying to use the
`navigator.splashscreen.hide()` or `navigator.splashscreen.show()` methods.

## Splash Screens for the Android Platform

Place [9-patch image](https://developer.android.com/tools/help/draw9patch.html)
files in the Android project's `platforms/android/res/drawable*` directories.

The size for each should be:

- xlarge (xhdpi): at least 960 × 720
- large (hdpi): at least 640 × 480
- medium (mdpi): at least 470 × 320
- small (ldpi): at least 426 × 320

When creating a new Android project, the default splash screen images
provided in the Cordova sample app should already be present in the
`platforms/android/res/drawable*` directories. Feel free to replace these
with your own images.
When providing your own splash screen images, you do not need to
provide the same permutation of 8 as the Cordova default ones
here.  More or less optimization can be used.
The `drawable` directory names must follow the Android conventions for
supporting
[screen sizes](http://developer.android.com/guide/practices/screens_support.html) and
[alternate resources](http://developer.android.com/guide/topics/resources/providing-resources.html#AlternativeResources).

In the top-level `config.xml` file (not the one in `platforms`), add the
following preferences:

    <preference name="SplashScreen" value="screen" />
    <preference name="SplashScreenDelay" value="10000" />

The first line sets the image to display as the splash screen. This is the
file name of the png in the `drawable*` directories, minus the `.png`
extension. The default value for SplashScreen is `screen` (for the file
`platforms/android/res/drawable*/screen.png`), so if you
name the image anything other than `screen.png` in the `drawable*` directories,
you need to add/modify this line.

The second line sets the default delay of how long the splashscreen appears in
milliseconds. This should be the worst-case expected start time.
The default value for SplashScreenDelay is 3000 ms.

Finally, as a best practice, the splash screen should be present only as long
as necessary. When your app has started and the webview has loaded, your app
should hide the splash screen so that your main view is visible as soon as it
is ready. Because the app start time will vary quite a bit due to a number of
factors such as CPU speed and network, it is recommended that your app
explicitly invoke `navigator.splashscreen.hide()` in the JavaScript
method that responds to the `[deviceready](../cordova/events/events.deviceready.html)` event. Otherwise the splash screen
will be visible for the SplashScreenDelay value that you configured above,
which is likely longer than necessary.
This event-driven approach is highly recommended versus having the splash
screen visible for always a fixed duration.

## Splash Screens for the iOS Platform

Copy splash screen images into the iOS project's `Resources/splash`
directory. Only add those images for the devices you want to support,
such as iPad or iPhone. The size of each image should be:

- Default-568h@2x~iphone.png (640x1136 pixels)
- Default-Landscape@2x~ipad.png (2048x1496 pixels)
- Default-Landscape~ipad.png (1024x748 pixels)
- Default-Portrait@2x~ipad.png (1536x2008 pixels)
- Default-Portrait~ipad.png (768x1004 pixels)
- Default@2x~iphone.png (640x960 pixels)
- Default~iphone.png (320x480 pixels)

## Splash Screens for the BlackBerry 10 Platform

Add a rim:splash element to config.xml for each resolution and locale you wish
to support:

<http://developer.blackberry.com/html5/documentation/rim_splash_element.html>


text:
[Crest](http://github.com/cordazar/crest) is a REST API Server for MongoDB built in node.js.

## Archived

I finally got around to archiving this project since I have neither the time nor the use for it. If someone wants to fork and build on it, be my guest.

## About

The idea for crest was born when we needed a REST API for a MongoDB project at work and the ones we found were not what we expected from

So this is my attempt at building a small and easy to use REST API Server for MongoDB with primary focus on json. Since this is my first time building a REST API I'll appreciate any and all feedback.

Crest stands for [Cygnus](http://en.wiktionary.org/wiki/Cygnus) REST.

## Installation

### Recommended way
    npm install crest -g

This will install crest globally so that it may be run from the command line.

### As node.js module
    npm install crest

This will install crest as a module to be used as a part of some other project.

### Clone with git
    git clone git://github.com/Cordazar/crest.git

## Usage
If installed globally you can just run

    crest

### Quick try
After starting the server you can quickly try it out by issuing the following from the command line:

    curl -d '{ "Key" : 42 }' -H "Content-Type: application/json" http://localhost:3500/test/example

This should add a document to the collection **example** in database **test** looking similar to this:

    { "Key": 42, "_id": ObjectId("4e90e196b0c7f4687000000e") }

### Supported REST requests
    GET /db/collection
Returns all documents (query and options can be sent in GET body)

    GET /db/collection?query=%7B%22isDone%22%3A%20false%7D
Returns all documents satisfying query

    GET /db/collection?query=%7B%22isDone%22%3A%20false%7D&limit=2&skip=2
Ability to add options to query (limit, skip, etc)

    GET /db/collection/id
Returns document with _id_

    POST /db/collection
Insert new document in collection (document in POST body)

    PUT /db/collection/id
Update document with _id_ (updated document in PUT body)

    DELETE /db/collection/id
Delete document with _id_

### Content Type
Please make sure `application/json` is used as Content-Type when using POST/PUT/GET with data in request body.

## Setup

### Configuration parameters

These parameters are saved in __config.json__.

Database settings where username and password are optional.

    db [object]
        host [string]
        port [string]
        username [string] (optional)
        password [string] (optional)

Server settings for where and how the rest api is going to be run.

    server [object]
        port [string]
        address [string]

General settings

    flavor [string] (mongodb or normal)
    debug [boolean]

#### Flavors
* Choose **mongodb** as flavor to keep using *\_id* as primary key for a document.
* Choose **normal** as flavor if you want to change *\_id* to *id*

### Dependencies
Application dependencies are sorted under dependencies in _package.json_ while test dependencies are sorted under devDependencies.

## Tests
Basic tests are available and can be run via [mocha](http://visionmedia.github.com/mocha/).

These tests require a working mongodb installation and might require changes to __config.json__

Recommended way to run mocha in terminal with mocha reporter _spec_ chosen.

    mocha -R spec

More indepth tests will be added at a later date.

##Bugs

Issues can be found at [https://github.com/cordazar/crest/issues](https://github.com/cordazar/crest/issues)

## License

The MIT License (MIT)
Copyright (c) 2013 Ricard Aspeljung

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.


text:
module RealWorldRails
  module Inspectors

    class FileInspector
      def self.from_gem?(filename)
        filename.start_with? "apps/canvas-lms/gems/"
      end

      TEST_REGEX = /_(?:spec|test)\.rb$/

      def self.test?(filename)
        filename.match TEST_REGEX
      end

      GENERATOR_REGEX = %r{\Aapps/.+/lib/(?:.+/)?generators/}

      def self.from_generator?(filename)
        filename.match GENERATOR_REGEX
      end

    end

  end
end


text:
DEPS = [
    'gerrit',
    'recipe_engine/step',
]

def RunSteps(api):
  host = 'https://chromium-review.googlesource.com'
  project = 'v8/v8'

  branch = 'test'
  commit = '67ebf73496383c6777035e374d2d664009e2aa5c'

  data = api.gerrit.create_gerrit_branch(host, project, branch, commit)
  assert data == 'refs/heads/test'

  data = api.gerrit.get_gerrit_branch(host, project, 'master')
  assert data == '67ebf73496383c6777035e374d2d664009e2aa5c'

  # Query for changes in Chromium's CQ.
  api.gerrit.get_changes(
      host,
      query_params=[
        ('project', 'chromium/src'),
        ('status', 'open'),
        ('label', 'Commit-Queue>0'),
      ],
      start=1,
      limit=1,
  )

  # Query which returns no changes is still successful query.
  empty_list = api.gerrit.get_changes(
      host,
      query_params=[
        ('project', 'chromium/src'),
        ('status', 'open'),
        ('label', 'Commit-Queue>2'),
      ],
      name='changes empty query',
  )
  assert len(empty_list) == 0

  api.gerrit.get_change_description(
      host, change=123, patchset=1)

  api.gerrit.abandon_change(host, 123, 'bad roll')

  with api.step.defer_results():
    api.gerrit.get_change_description(
        host, change=122, patchset=3)

def GenTests(api):
  yield (
      api.test('basic')
      + api.step_data(
          'gerrit create_gerrit_branch (v8/v8 test)',
          api.gerrit.make_gerrit_create_branch_response_data()
      )
      + api.step_data(
          'gerrit get_gerrit_branch (v8/v8 master)',
          api.gerrit.make_gerrit_get_branch_response_data()
      )
      + api.step_data(
        'gerrit changes empty query',
        api.gerrit.get_empty_changes_response_data()
      )
  )


text:
package example.service;

import example.repo.Customer1393Repository;

import org.springframework.stereotype.Service;

@Service
public class Customer1393Service {
	public Customer1393Service(Customer1393Repository repo) {}
}


text:
import { mapRefocus } from 'fm3/actions/mapActions';
import { mapPromise } from 'fm3/leafletElementHolder';
import { Processor } from 'fm3/middlewares/processorMiddleware';

export const mapRefocusProcessor: Processor = {
  handle: async ({ dispatch, getState, prevState }) => {
    const prevMap = prevState.map;

    const { zoom, lat, lon } = getState().map;

    if (prevMap.lat === lat && prevMap.lon === lon && prevMap.zoom === zoom) {
      return;
    }

    const map = await mapPromise;

    let fixedLon = lon;

    while (fixedLon < -180) {
      fixedLon += 360;
    }

    while (fixedLon > 180) {
      fixedLon -= 360;
    }

    if (
      map.getZoom() !== zoom ||
      map.getCenter().lat !== lat ||
      map.getCenter().lng !== fixedLon
    ) {
      const fixing = lon !== fixedLon;

      map.setView([lat, fixedLon], zoom, {
        animate: !fixing,
      });

      if (fixing) {
        dispatch(mapRefocus({ lon: fixedLon }));
      }
    }
  },
};


text:
namespace Repository.Infrastructure
{
    public sealed class ContextAccessor
    {
        public object Context { get; set; }
    }
}


text:
package com.stone.shopmanager.model.hbut;

import cn.bmob.v3.BmobObject;

/**
 * 博学堂讲座实体类
 * @date 2014-5-10
 * @author Stone
 */
public class BXTNews extends BmobObject{

	//private String id;

	private String title;			//标题
	private String topic;			//讲座主题
	private String speaker;			//主 讲 人
	private String time;			//讲座时间
	private String location;		//讲座地点
	private String holder1;			//主办单位
	private String holder2;			//承办单位
	private String points;			//主讲内容提要
	private String speakerinfo;		//主讲人简介

	public String getTitle() {
		return title;
	}
	public String getTopic() {
		return topic;
	}
	public String getSpeaker() {
		return speaker;
	}
	public String getTime() {
		return time;
	}
	public String getLocation() {
		return location;
	}
	public String getHolder1() {
		return holder1;
	}
	public String getHolder2() {
		return holder2;
	}
	public String getPoints() {
		return points;
	}
	public String getSpeakerinfo() {
		return speakerinfo;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public void setTopic(String topic) {
		this.topic = topic;
	}
	public void setSpeaker(String speaker) {
		this.speaker = speaker;
	}
	public void setTime(String time) {
		this.time = time;
	}
	public void setLocation(String location) {
		this.location = location;
	}
	public void setHolder1(String holder1) {
		this.holder1 = holder1;
	}
	public void setHolder2(String holder2) {
		this.holder2 = holder2;
	}
	public void setPoints(String points) {
		this.points = points;
	}
	public void setSpeakerinfo(String speakerinfo) {
		this.speakerinfo = speakerinfo;
	}
}


text:
<?php
namespace Chamilo\Application\Weblcms\Tool\Implementation\Plagiarism\Package;

class Activator extends \Chamilo\Configuration\Package\Action\Activator
{
}


text:
{-# OPTIONS -fno-warn-incomplete-patterns #-}

{-# LANGUAGE CPP                          #-}
{-# LANGUAGE FlexibleInstances            #-}
{-# LANGUAGE OverlappingInstances         #-}
{-# LANGUAGE UnicodeSyntax                #-}

module Data.TSTP.Formula where

import           Data.Function        (on)
import           Data.Monoid          (mappend)
import           Data.Set             (Set, difference, empty, fromList,
                                       singleton, toList, unions)
import           Data.TSTP.AtomicWord (AtomicWord (..))
import           Data.TSTP.BinOp      (BinOp (..))
import           Data.TSTP.InfixPred  (InfixPred (..))
import           Data.TSTP.Quant      (Quant (..))
import           Data.TSTP.Term       (Term (..))
import           Data.TSTP.V          (V (..))
import           Utils.Functions      (βshow, (▪), (<>))

-- The following code is based on:
-- https://github.com/DanielSchuessler/logic-TPTP
-- and is just a simplified version of the the datatypes
-- (without the Indirect composite)

-- | first-order logic formula.
data Formula = BinOp Formula BinOp Formula    -- ^ Binary connective application
             | InfixPred Term InfixPred Term  -- ^ Infix predicate application
             | PredApp AtomicWord [Term]      -- ^ Predicate application
             | Quant Quant [V] Formula        -- ^ Quantified Formula
             | (:~:) Formula                  -- ^ Negation
             deriving (Eq, Ord, Read)

-- Pretty print instance of Show for Formula and Term
instance Show Formula where
  -- To avoid confusion every α → β is printed as (α → β)
  show (BinOp     f₁  (:=>:) f₂) = '(' <> f₁ ▪ '→' ▪ f₂ <> ')'
  show (BinOp     f₁  op     f₂) = f₁ ▪ op ▪ f₂
  show (InfixPred t₁  r      t₂) = t₁ ▪ r  ▪ t₂
  -- Predicates are just functions that return ⊤ with some parameter
  show (PredApp   ρ          []) = show ρ
  show (PredApp   ρ          φ ) = '(' <> ρ ▪ ':' ▪ φ ▪ "→ ⊤" <> ')'
  show (Quant     All []     f ) = βshow f
  show (Quant     All υ      f ) = '(' <> foldl (▪) "{" υ  ▪ ": Set}" ▪ '→' ▪ f <> ')'
  show (Quant     Exists υ   f ) = '(' <> foldl (▪) "{" υ  ▪ ": Set}" ▪ '→' ▪ f <> ')'
  show ((:~:)                f ) = '¬' ▪ f

-- Overlaped instance of Show [Formula] for "easy" representation of
-- x₁ ∧ x₂ ⊢ y₀ as x₀ → x₁ → y₀
#if MIN_VERSION_base(4,8,0)
instance {-# OVERLAPPING #-} Show [Formula] where
#else
instance Show [Formula] where
#endif
  show []       = []
  show φ@(x:xs) = fvars ▪ foldl ((▪) . (▪ '→')) (βshow x) xs
      where
        fvars = case getFreeVars φ of
          [] → []
          (y:ys) → '{'  <> foldl (▪) (βshow y) ys ▪ ": Set} →"

-- | 'freeVarsF' 'f', returns a 'Set' of all free variables of 'f'.
freeVarsF ∷ Formula → Set V
freeVarsF ((:~:) x)                           = freeVarsF x
freeVarsF (BinOp x _ y)                       = (mappend `on` freeVarsF) x y
freeVarsF (InfixPred x _ y)                   = (mappend `on` freeVarsT) x y
freeVarsF (PredApp (AtomicWord "$false") [])  = empty
freeVarsF (PredApp (AtomicWord v) [])         = singleton $ V v
freeVarsF (PredApp _ args)                    = unions (fmap freeVarsT args)
freeVarsF (Quant _ vars x)                    = difference fvarsx lvars
  where
    fvarsx ∷ Set V
    fvarsx = freeVarsF x

    lvars  = fromList vars

-- | 'freeVarsT' 't', returns a 'Set' of all free variables of 't'.
freeVarsT ∷ Term → Set V
freeVarsT (FunApp _ args) = unions (fmap freeVarsT args)
freeVarsT (Var x)         = singleton x
freeVarsT _               = empty

-- | 'getFreeVars' 'f', given a list of formulas 'f' return all free
-- variables in the formulas.
getFreeVars ∷ [Formula] → [V]
getFreeVars = toList . unions . map freeVarsF


text:
require 'tk'
require 'tkextlib/tcllib.rb'

# TkPackage.require('widget::canvas_sqmap', '0.2')
TkPackage.require('widget::canvas_sqmap')

module Tk::Tcllib
  module Widget
    class Canvas_Sqmap < Canvas
      TkCommandNames = ['::widget::canvas_sqmap'.freeze].freeze

      def image_set(cell, img)
        tk_send('image', 'set', cell, img)
        self
      end

      def image_unset(cell)
        tk_send('image', 'unset', cell)
        self
      end

      def flush
        tk_send('flush')
        self
      end
    end
  end
end


text:
/*
 * Compressor.cpp
 * ---------------
 * Purpose: Implementation of the DMO Compressor DSP (for non-Windows platforms)
 * Notes  : The original plugin's integer and floating point code paths only
 *          behave identically when feeding floating point numbers in range
 *          [-32768, +32768] rather than the usual [-1, +1] into the plugin.
 * Authors: OpenMPT Devs
 * The OpenMPT source code is released under the BSD license. Read LICENSE for more details.
 */

#include "stdafx.h"

#if !defined(NO_PLUGINS) && defined(NO_DMO)
#include "../../Sndfile.h"
#include "Compressor.h"

OPENMPT_NAMESPACE_BEGIN

namespace DMO
{

// See Distortion.cpp
float logGain(float x, int32 shiftL, int32 shiftR);

IMixPlugin* Compressor::Create(VSTPluginLib &factory, CSoundFile &sndFile, SNDMIXPLUGIN *mixStruct)
//-------------------------------------------------------------------------------------------------
{
	return new (std::nothrow) Compressor(factory, sndFile, mixStruct);
}

Compressor::Compressor(VSTPluginLib &factory, CSoundFile &sndFile, SNDMIXPLUGIN *mixStruct)
	: IMixPlugin(factory, sndFile, mixStruct)
//-----------------------------------------------------------------------------------------
{
	m_param[kCompGain] = 0.5f;
	m_param[kCompAttack] = 0.02f;
	m_param[kCompRelease] = 150.0f / 2950.0f;
	m_param[kCompThreshold] = 2.0f / 3.0f;
	m_param[kCompRatio] = 0.02f;
	m_param[kCompPredelay] = 1.0f;

	m_mixBuffer.Initialize(2, 2);
	InsertIntoFactoryList();
}

void Compressor::Process(float *pOutL, float *pOutR, uint32 numFrames)
//--------------------------------------------------------------------
{
	if(!m_bufSize || !m_mixBuffer.Ok())
		return;

	const float *in[2] = { m_mixBuffer.GetInputBuffer(0), m_mixBuffer.GetInputBuffer(1) };
	float *out[2] = { m_mixBuffer.GetOutputBuffer(0), m_mixBuffer.GetOutputBuffer(1) };

	for(uint32 i = numFrames; i != 0; i--)
	{
		float leftIn  = *(in[0])++;
		float rightIn = *(in[1])++;

		while(m_bufPos < 0)
			m_bufPos += m_bufSize * 4096;

		int32 writeOffset = (m_bufPos / 4096) % m_bufSize;
		m_buffer[writeOffset * 2] = leftIn;
		m_buffer[writeOffset * 2 + 1] = rightIn;

		leftIn = mpt::abs(leftIn);
		rightIn = mpt::abs(rightIn);

		float mono = (leftIn + rightIn) * (0.5f * 32768.0f * 32768.0f);
		float monoLog = mpt::abs(logGain(mono, 31, 5)) * (1.0f / float(1u << 31));

		float newPeak = monoLog + (m_peak - monoLog) * ((m_peak <= monoLog) ? m_attack : m_release);
		m_peak = newPeak;

		if(newPeak < m_threshold)
			newPeak = m_threshold;

		float compGain = (m_threshold - newPeak) * m_ratio + 0.9999999f;

		// Computes 2 ^ (2 ^ (log2(x) - 26) - 1) (x = 0...2^31)
		uint32 compGainInt = static_cast<uint32>(compGain * 2147483648.0f);
		uint32 compGainPow = compGainInt << 5;
		compGainInt >>= 26;
		if(compGainInt)	// compGainInt >= 2^26
		{
			compGainPow |= 0x80000000u;
			compGainInt--;
		}
		compGainPow >>= (31 - compGainInt);

		int32 readOffset = m_predelay + m_bufPos + m_bufSize - 1;
		readOffset /= 4096;
		readOffset %= m_bufSize;

		float outGain = (compGainPow * (1.0f / 2147483648.0f)) * m_gain;
		*(out[0])++ = m_buffer[readOffset * 2] * outGain;
		*(out[1])++ = m_buffer[readOffset * 2 + 1] * outGain;

		m_bufPos -= 4096;
	}

	ProcessMixOps(pOutL, pOutR, m_mixBuffer.GetOutputBuffer(0), m_mixBuffer.GetOutputBuffer(1), numFrames);
}

PlugParamValue Compressor::GetParameter(PlugParamIndex index)
//-----------------------------------------------------------
{
	if(index < kCompNumParameters)
	{
		return m_param[index];
	}
	return 0;
}

void Compressor::SetParameter(PlugParamIndex index, PlugParamValue value)
//-----------------------------------------------------------------------
{
	if(index < kCompNumParameters)
	{
		Limit(value, 0.0f, 1.0f);
		m_param[index] = value;
		RecalculateCompressorParams();
	}
}

void Compressor::Resume()
//-----------------------
{
	uint64 bufferSize = Util::mul32to64_unsigned(m_SndFile.GetSampleRate(), 200) / 1000;
	if(bufferSize > uint64(int32_max))
	{
		m_bufSize = 0;
		return;
	}
	m_bufSize = static_cast<int32>(bufferSize);
	try
	{
		m_buffer.assign(m_bufSize * 2, 0.0f);
	} catch(MPTMemoryException)
	{
		m_bufSize = 0;
	}

	m_isResumed = true;
	m_bufPos = 0;
	m_peak = 0.0f;
	RecalculateCompressorParams();
}

#ifdef MODPLUG_TRACKER

CString Compressor::GetParamName(PlugParamIndex param)
//----------------------------------------------------
{
	switch(param)
	{
	case kCompGain: return _T("Gain");
	case kCompAttack: return _T("Attack");
	case kCompRelease: return _T("Release");
	case kCompThreshold: return _T("Threshold");
	case kCompRatio: return _T("Ratio");
	case kCompPredelay: return _T("Predelay");
	}
	return CString();
}

CString Compressor::GetParamLabel(PlugParamIndex param)
//-----------------------------------------------------
{
	switch(param)
	{
	case kCompGain:
	case kCompThreshold:
		return _T("dB");
	case kCompAttack:
	case kCompRelease:
	case kCompPredelay:
		return _T("ms");
	}
	return CString();
}

CString Compressor::GetParamDisplay(PlugParamIndex param)
//-------------------------------------------------------
{
	float value = m_param[param];
	switch(param)
	{
	case kCompGain:
		value = GainInDecibel();
		break;
	case kCompAttack:
		value = AttackTime();
		break;
	case kCompRelease:
		value = ReleaseTime();
		break;
	case kCompThreshold:
		value = ThresholdInDecibel();
		break;
	case kCompRatio:
		value = CompressorRatio();
		break;
	case kCompPredelay:
		value = PreDelay();
		break;
	}
	CString s;
	s.Format("%.2f", value);
	return s;
}

#endif // MODPLUG_TRACKER

void Compressor::RecalculateCompressorParams()
//--------------------------------------------
{
	const float sampleRate = m_SndFile.GetSampleRate() / 1000.0f;
	m_gain = std::pow(10.0f, GainInDecibel() / 20.0f);
	m_attack = std::pow(10.0f, -1.0f / (AttackTime() * sampleRate));
	m_release = std::pow(10.0f, -1.0f / (ReleaseTime() * sampleRate));
	const double _2e31 = double(1u << 31);
	const double _2e26 = double(1u << 26);
	m_threshold = static_cast<float>(std::min((_2e31 - 1.0), (std::log(std::pow(10.0f, ThresholdInDecibel() / 20.0f) * _2e31) * _2e26) / M_LN2 + _2e26) * (1.0 / _2e31));
	m_ratio = 1.0f - (1.0f / CompressorRatio());
	m_predelay = static_cast<int32>((PreDelay() * sampleRate) + 2.0f);
}

} // namespace DMO

OPENMPT_NAMESPACE_END

#endif // !NO_PLUGINS && NO_DMO


text:
// This file is automatically generated.

package adila.db;

/*
 * Wiko RAINBOW LITE 4G
 *
 * DEVICE: L5221
 * MODEL: RAINBOW LITE 4G
 */
final class l5221_rainbow20lite204g {
    public static final String DATA = "Wiko|RAINBOW LITE 4G|";
}


text:
namespace IndicatorsUI.UserAccess.Migrations
{
    using System.CodeDom.Compiler;
    using System.Data.Entity.Migrations;
    using System.Data.Entity.Migrations.Infrastructure;
    using System.Resources;

    [GeneratedCode("EntityFramework.Migrations", "6.1.0-30225")]
    public sealed partial class InitialCreate : IMigrationMetadata
    {
        private readonly ResourceManager Resources = new ResourceManager(typeof(InitialCreate));

        string IMigrationMetadata.Id
        {
            get { return "201712111448288_InitialCreate"; }
        }

        string IMigrationMetadata.Source
        {
            get { return null; }
        }

        string IMigrationMetadata.Target
        {
            get { return Resources.GetString("Target"); }
        }
    }
}