text:
use image::{GenericImage, GenericImageView, RgbImage, SubImage};

#[allow(unused_variables)]
fn converting() {
    use palette::{FromColor, Hsl, IntoColor, Lch, Srgb};

    let my_rgb = Srgb::new(0.8, 0.3, 0.3);

    let mut my_lch = Lch::from_color(my_rgb);
    my_lch.hue += 180.0;

    let mut my_hsl: Hsl = my_lch.into_color();
    my_hsl.lightness *= 0.6;

    let my_new_rgb = Srgb::from_color(my_hsl);

    // Write example image
    display_colors(
        "example-data/output/readme_converting.png",
        &[DisplayType::Discrete(&[
            my_rgb.into_format(),
            Srgb::from_linear(my_lch.into_color()),
            Srgb::from_color(my_hsl).into_format(), // my_new_rgb is the same as my_hsl
        ])],
    );
}

fn pixels_and_buffers() {
    use palette::{cast, Srgb};

    // The input to this function could be data from an image file or
    // maybe a texture in a game.
    fn swap_red_and_blue(my_rgb_image: &mut [u8]) {
        // Convert `my_rgb_image` into `&mut [Srgb<u8>]` without copying.
        let my_rgb_image: &mut [Srgb<u8>] = cast::from_component_slice_mut(my_rgb_image);

        for color in my_rgb_image {
            std::mem::swap(&mut color.red, &mut color.blue);
        }
    }

    // Write example image
    let mut image = image::open("example-data/input/fruits-128.png")
        .expect("could not open 'example-data/input/fruits-128.png'")
        .to_rgb8();
    swap_red_and_blue(&mut image);
    let filename = "example-data/output/readme_pixels_and_buffers.png";
    match image.save(filename) {
        Ok(()) => println!("see '{}' for the result", filename),
        Err(e) => println!("could not write '{}': {}", filename, e),
    }
}

fn color_operations_1() {
    use palette::{Hsl, Hsv, Lighten, Mix, ShiftHue};

    fn transform_color<C>(color: C, amount: f32) -> C
    where
        C: ShiftHue<Scalar = f32> + Lighten<Scalar = f32> + Mix<Scalar = f32> + Copy,
    {
        let new_color = color.shift_hue(170.0).lighten(1.0);

        // Interpolate between the old and new color.
        color.mix(new_color, amount)
    }

    // Write example image
    let hsl_color = Hsl::new_srgb(0.00, 0.70, 0.20);
    let hsl_color_at = |amount| {
        use palette::FromColor;

        let color = transform_color(hsl_color, amount);
        palette::Srgb::from_color(color).into_format()
    };

    let hsv_color = Hsv::new_srgb(0.00, 0.82, 0.34);
    let hsv_color_at = |amount| {
        use palette::FromColor;

        let color = transform_color(hsv_color, amount);
        palette::Srgb::from_color(color).into_format()
    };

    display_colors(
        "example-data/output/readme_color_operations_1.png",
        &[
            DisplayType::Continuous(&hsl_color_at),
            DisplayType::Continuous(&hsv_color_at),
        ],
    );
}

fn color_operations_2() {
    use palette::{blend::Compose, cast, Srgb, WithAlpha};

    // The input to this function could be data from image files.
    fn alpha_blend_images(image1: &mut [u8], image2: &[u8]) {
        // Convert the images into `&mut [Srgb<u8>]` and `&[Srgb<u8>]` without copying.
        let image1: &mut [Srgb<u8>] = cast::from_component_slice_mut(image1);
        let image2: &[Srgb<u8>] = cast::from_component_slice(image2);

        for (color1, color2) in image1.iter_mut().zip(image2) {
            // Convert the colors to linear floating point format and give them transparency values.
            let color1_alpha = color1.into_linear().opaque();
            let color2_alpha = color2.into_linear().with_alpha(0.5);

            // Alpha blend `color2_alpha` over `color1_alpha`.
            let blended = color2_alpha.over(color1_alpha);

            // Convert the color part back to `Srgb<u8>` and overwrite the value in image1.
            *color1 = blended.color.into_encoding();
        }
    }

    // Write example image
    let mut image1 = image::open("example-data/input/fruits-128.png")
        .expect("could not open 'example-data/input/fruits-128.png'")
        .to_rgb8();
    let image2 = image::open("example-data/input/cat-128.png")
        .expect("could not open 'example-data/input/fruits-128.png'")
        .to_rgb8();
    alpha_blend_images(&mut image1, &image2);
    let filename = "example-data/output/readme_color_operations_2.png";
    match image1.save(filename) {
        Ok(()) => println!("see '{}' for the result", filename),
        Err(e) => println!("could not write '{}': {}", filename, e),
    }
}

#[cfg(feature = "std")]
fn gradients_1() {
    use palette::{Gradient, LinSrgb};

    let gradient = Gradient::new(vec![
        LinSrgb::new(0.00, 0.05, 0.20),
        LinSrgb::new(0.70, 0.10, 0.20),
        LinSrgb::new(0.95, 0.90, 0.30),
    ]);

    let taken_colors: Vec<_> = gradient.take(10).collect();

    // Write example image
    let taken_srgb8_colors: Vec<_> = taken_colors
        .into_iter()
        .map(|color| color.into_encoding())
        .collect();
    display_colors(
        "example-data/output/readme_gradients_1.png",
        &[
            DisplayType::Continuous(&|i| gradient.get(i).into_encoding()),
            DisplayType::Discrete(&taken_srgb8_colors),
        ],
    );
}

#[cfg(feature = "std")]
fn gradients_2() {
    use palette::{Gradient, LinSrgb};

    let gradient = Gradient::from([
        (0.0, LinSrgb::new(0.00, 0.05, 0.20)), // A pair of position and color.
        (0.2, LinSrgb::new(0.70, 0.10, 0.20)),
        (1.0, LinSrgb::new(0.95, 0.90, 0.30)),
    ]);

    let taken_colors: Vec<_> = gradient.take(10).collect();

    // Write example image
    let taken_srgb8_colors: Vec<_> = taken_colors
        .into_iter()
        .map(|color| color.into_encoding())
        .collect();
    display_colors(
        "example-data/output/readme_gradients_2.png",
        &[
            DisplayType::Continuous(&|i| gradient.get(i).into_encoding()),
            DisplayType::Discrete(&taken_srgb8_colors),
        ],
    );
}

enum DisplayType<'a> {
    Discrete(&'a [palette::Srgb<u8>]),
    Continuous(&'a dyn Fn(f32) -> palette::Srgb<u8>),
}

fn display_colors(filename: &str, displays: &[DisplayType]) {
    const WIDTH: u32 = 500;
    const ROW_HEIGHT: u32 = 50;

    let row_height = if displays.len() > 1 {
        ROW_HEIGHT
    } else {
        ROW_HEIGHT * 2
    };

    let mut image = RgbImage::new(WIDTH, displays.len() as u32 * row_height);

    for (i, display) in displays.into_iter().enumerate() {
        let image = image.sub_image(0, i as u32 * row_height, WIDTH, row_height);
        match *display {
            DisplayType::Discrete(colors) => {
                display_discrete(image, colors);
            }
            DisplayType::Continuous(color_at) => {
                display_continuous(image, color_at);
            }
        }
    }

    let _ = std::fs::create_dir("example-data/output");
    match image.save(filename) {
        Ok(()) => println!("see '{}' for the result", filename),
        Err(e) => println!("could not write '{}': {}", filename, e),
    }
}

fn display_discrete(mut image: SubImage<&mut RgbImage>, colors: &[palette::Srgb<u8>]) {
    let (width, height) = image.dimensions();
    let swatch_size = width as f32 / colors.len() as f32;
    for (i, &color) in colors.iter().enumerate() {
        let swatch_begin = (i as f32 * swatch_size) as u32;
        let swatch_end = ((i + 1) as f32 * swatch_size) as u32;
        let mut sub_image = image.sub_image(swatch_begin, 0, swatch_end - swatch_begin, height);
        let (width, height) = sub_image.dimensions();
        for x in 0..width {
            for y in 0..height {
                sub_image.put_pixel(x, y, image::Rgb(color.into()));
            }
        }
    }
}

fn display_continuous(
    mut image: SubImage<&mut RgbImage>,
    color_at: &dyn Fn(f32) -> palette::Srgb<u8>,
) {
    let (width, height) = image.dimensions();
    for x in 0..width {
        for y in 0..height {
            image.put_pixel(x, y, image::Rgb(color_at(x as f32 / width as f32).into()));
        }
    }
}

fn main() {
    converting();
    pixels_and_buffers();
    color_operations_1();
    color_operations_2();
    #[cfg(feature = "std")]
    gradients_1();
    #[cfg(feature = "std")]
    gradients_2();
}


text:
package ch.wsl.box.client.services

import java.io.ByteArrayInputStream

import ch.wsl.box.client.{Context, IndexState}
import ch.wsl.box.model.shared.errors.{ExceptionReport, GenericExceptionReport, JsonDecoderExceptionReport, SQLExceptionReport}
import org.scalajs.dom
import org.scalajs.dom.{File, FormData, XMLHttpRequest}
import scribe.Logging

import scala.concurrent.{Future, Promise}

/**
  * Created by andre on 4/26/2017.
  */
object HttpClient{
  type Response[T] = Either[ExceptionReport,T]
}

trait HttpClient{
  def post[D, R](url: String, obj: D)(implicit decoder: io.circe.Decoder[R], encoder: io.circe.Encoder[D]):Future[R]
  def postFileResponse[D](url: String, obj: D)(implicit encoder: io.circe.Encoder[D]):Future[File]
  def put[D, R](url: String, obj: D)(implicit decoder: io.circe.Decoder[R], encoder: io.circe.Encoder[D]):Future[R]
  def get[T](url: String)(implicit decoder: io.circe.Decoder[T]): Future[T]
  def delete[T](url: String)(implicit decoder: io.circe.Decoder[T]): Future[T]
  def sendFile[T](url: String, file: File)(implicit decoder: io.circe.Decoder[T]):Future[T]
  def setHandleAuthFailure(f:() => Unit)
}

redpajama_set_name: RedPajamaGithub


text:
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802
// See http://java.sun.com/xml/jaxb
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2014.09.26 at 09:49:51 AM COT
//

package org.mjd.xml.domain;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;

/**
 * Specifies the organization that produces this project.
 *
 *
Java class for Organization complex type.
 *
 *
The following schema fragment specifies the expected content contained within this class.
 *
 *

 * <complexType name="Organization">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <all>
 *         <element name="name" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="url" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *       </all>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 *

 *
 *
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Organization", propOrder = {

})
public class Organization {

    protected String name;
    protected String url;

    /**
     * Gets the value of the name property.
     *
     * @return
     *     possible object is
     *     {@link String }
     *
     */
    public String getName() {
        return name;
    }

    /**
     * Sets the value of the name property.
     *
     * @param value
     *     allowed object is
     *     {@link String }
     *
     */
    public void setName(String value) {
        this.name = value;
    }

    /**
     * Gets the value of the url property.
     *
     * @return
     *     possible object is
     *     {@link String }
     *
     */
    public String getUrl() {
        return url;
    }

    /**
     * Sets the value of the url property.
     *
     * @param value
     *     allowed object is
     *     {@link String }
     *
     */
    public void setUrl(String value) {
        this.url = value;
    }

}


text:
@interface ESTDemoTableViewCell : UITableViewCell

@end

@implementation ESTDemoTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:reuseIdentifier];
    if (self)
    {

    }

    return self;
}

@end

@implementation ESTViewController

- (void)viewDidLoad
{
    [super viewDidLoad];

    [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent];

    self.title = @"Product Service Demos";

    self.tableView.sectionHeaderHeight = 20;
    [self.tableView registerClass:[ESTDemoTableViewCell class] forCellReuseIdentifier:@"DemoCellIdentifier"];

    self.beaconDemoList = @[ @[@"Distance Demo", @"Proximity Demo",@"Notification Demo"]];
    //self.beaconDemoList = @[ @[@"Distance Demo", @"Proximity Demo",@"Notification Demo"],
      //                       @[@"Temperature Demo", @"Accelerometer Demo", @"Motion UUID Demo"],
        //                     @[@"Update Firmware Demo", @"My beacons in Cloud Demo", @"Bulk update of beacons"]];
}

#pragma mark - Table view data source

- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
{
    return [self.beaconDemoList count];
}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
    return [[self.beaconDemoList objectAtIndex:section] count];
}

- (NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section
{
    if(section == 0)
        return @"Products Nearby";
    if(section == 1)
        return @"Sensor demos";
    if(section == 2)
        return @"Utilities demos";

    return nil;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
    ESTDemoTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"DemoCellIdentifier" forIndexPath:indexPath];
    cell.textLabel.text = [[self.beaconDemoList objectAtIndex:indexPath.section] objectAtIndex:indexPath.row];

    return cell;
}

-(CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section
{
    return 40;
}

#pragma mark - Table view delegate

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
    UIViewController *demoViewController;

    if (indexPath.section == 0)
    {
        switch (indexPath.row)
        {
            case 0:
            {
                demoViewController = [[ESTBeaconTableVC alloc] initWithScanType:ESTScanTypeBeacon
                                                                     completion:^(ESTBeacon *beacon) {

                    ESTDistanceDemoVC *distanceDemoVC = [[ESTDistanceDemoVC alloc] initWithBeacon:beacon];
                    [self.navigationController pushViewController:distanceDemoVC animated:YES];
                }];

                break;
            }
            case 1:
            {
                demoViewController = [[ESTBeaconTableVC alloc] initWithScanType:ESTScanTypeBeacon
                                                                     completion:^(ESTBeacon *beacon) {

                    ESTProximityDemoVC *proximityDemoVC = [[ESTProximityDemoVC alloc] initWithBeacon:beacon];
                    [self.navigationController pushViewController:proximityDemoVC animated:YES];
                }];

                break;
            }
            case 2:
            {
                demoViewController = [[ESTBeaconTableVC alloc] initWithScanType:ESTScanTypeBeacon
                                                                     completion:^(ESTBeacon *beacon) {

                    ESTNotificationDemoVC *notificationDemoVC = [[ESTNotificationDemoVC alloc] initWithBeacon:beacon];
                    [self.navigationController pushViewController:notificationDemoVC animated:YES];
                }];

                break;
            }
            default:
                break;
        }
    }
    else if (indexPath.section == 1)
    {
        switch (indexPath.row)
        {
            case 0:
            {
                demoViewController = [[ESTBeaconTableVC alloc] initWithScanType:ESTScanTypeBeacon
                                                                     completion:^(ESTBeacon *beacon) {

                    ESTTemperatureDemoVC *distanceDemoVC = [[ESTTemperatureDemoVC alloc] initWithBeacon:beacon];
                    [self.navigationController pushViewController:distanceDemoVC animated:YES];
                }];

                break;
            }
            case 1:
            {
                demoViewController = [[ESTBeaconTableVC alloc] initWithScanType:ESTScanTypeBeacon
                                                                     completion:^(ESTBeacon *beacon) {

                    ESTAccelerometerDemoVC *proximityDemoVC = [[ESTAccelerometerDemoVC alloc] initWithBeacon:beacon];
                    [self.navigationController pushViewController:proximityDemoVC animated:YES];
                }];

                break;
            }
            case 2:
            {
                demoViewController = [[ESTBeaconTableVC alloc] initWithScanType:ESTScanTypeBeacon
                                                                     completion:^(ESTBeacon *beacon) {

                                                                         ESTMotionUUIDDemoVC *proximityDemoVC = [[ESTMotionUUIDDemoVC alloc] initWithBeacon:beacon];
                                                                         [self.navigationController pushViewController:proximityDemoVC animated:YES];
                                                                     }];

                break;
            }
            default:
                break;
        }
    }
    else if (indexPath.section == 2)
    {
        switch (indexPath.row)
        {
            case 0:
            {
                demoViewController = [[ESTBeaconTableVC alloc] initWithScanType:ESTScanTypeBluetooth
                                                                     completion:^(ESTBeacon *beacon) {

                    ESTUpdateFirmwareDemoVC *updateFirmwareVC = [[ESTUpdateFirmwareDemoVC alloc] initWithBeacon:beacon];
                    [self.navigationController pushViewController:updateFirmwareVC animated:YES];
                }];
                break;
            }
            case 1:
            {
                demoViewController = [ESTCloudBeaconTableVC new];

                break;
            }
            case 2:
            {
                demoViewController = [[ESTBeaconTableVC alloc] initWithScanType:ESTScanTypeBeacon
                                                                     completion:^(ESTBeacon *beacon) {

                                                                         ESTBulkUpdaterDemoVC *bulkDemoVC = [[ESTBulkUpdaterDemoVC alloc] initWithBeacon:beacon];
                                                                         [self.navigationController pushViewController:bulkDemoVC animated:YES];
                                                                     }];
                break;
            }
            default:
                break;
        }
    }

    if (demoViewController)
    {
        [self.navigationController pushViewController:demoViewController animated:YES];
    }
}

@end


text:
<?php

/*
* <auto-generated>
*     This code was generated by a Codezu.
*
*     Changes to this file may cause incorrect behavior and will be lost if
*     the code is regenerated.
* </auto-generated>
*/

namespace Mozu\Api\Contracts\CommerceRuntime\Orders;

/**
*	Comments and/or gift message provided by the shopper which are associated with the order.
*/
class ShopperNotes
{
	/**
	*Notes entered and saved with an order. These notes may be entered by a shopper on a wishlist or for an order. Comments may also be entered by  Admins on an order that may be visible only to authorized shoppers and users.
	*/
	public $comments;

	/**
	*Shopper-entered gift message for the associated order.
	*/
	public $giftMessage;

}

?>


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

package com.google.uicd.backend.core.exceptions;

/**
 * UicdDBException
 *
 * @author tccyp@google.com
 */
public class UicdDBException extends UicdException {

  public UicdDBException(String message) {
    super(message);
  }
}


text:
using System;
using System.Threading.Tasks;
using MediatR;
using SFA.DAS.EmployerUsers.Domain;
using SFA.DAS.EmployerUsers.Domain.Data;

namespace SFA.DAS.EmployerUsers.Application.Queries.GetUserById
{
    public class GetUserByIdQueryHandler : IAsyncRequestHandler<GetUserByIdQuery, User>
    {
        private readonly IUserRepository _userRepository;

        public GetUserByIdQueryHandler(IUserRepository userRepository)
        {
            _userRepository = userRepository;
        }

        public Task<User> Handle(GetUserByIdQuery message)
        {
            if (message == null)
            {
                throw new ArgumentNullException(nameof(message));
            }

            return _userRepository.GetById(message.UserId);
        }
    }
}


text:
package griffon.javafx.support.typicons;

import griffon.core.editors.PropertyEditorResolver;
import griffon.plugins.typicons.TypIconFont;
import javafx.beans.property.IntegerProperty;
import javafx.beans.property.ObjectProperty;
import javafx.beans.property.SimpleIntegerProperty;
import javafx.beans.property.SimpleObjectProperty;
import javafx.beans.value.ChangeListener;
import javafx.beans.value.ObservableValue;
import javafx.scene.paint.Color;
import javafx.scene.paint.Paint;
import javafx.scene.text.Font;
import javafx.scene.text.Text;

import javax.annotation.Nonnull;
import java.beans.PropertyEditor;

import static griffon.plugins.typicons.TypIconFont.invalidDescription;
import static griffon.util.GriffonClassUtils.requireState;
import static griffon.util.GriffonNameUtils.requireNonBlank;
import static java.util.Objects.requireNonNull;

/**
 * @author Andres Almiray
 */
public class TypIcon extends Text {
    private static final String TYPICON_SET = "META-INF/resources/typicons/2.0.7/fonts/typicons.ttf";
    private static final String ERROR_TYPICON_NULL = "Argument 'typIcon' must not be null";

    private static final String TYPICON_FONT_FAMILY;

    static {
        Font font = Font.loadFont(Thread.currentThread().getContextClassLoader().getResource(TYPICON_SET).toExternalForm(), 16);
        TYPICON_FONT_FAMILY = font.getFamily();
    }

    private ObjectProperty<TypIconFont> typIcon;
    private IntegerProperty iconSize;
    private ObjectProperty<Paint> iconColor;

    private ChangeListener<Number> iconSizeChangeListener = new ChangeListener<Number>() {
        @Override
        public void changed(ObservableValue<? extends Number> v, Number o, Number n) {
            setStyle(getStyle() + " -fx-font-size: " + n + "px;");
        }
    };

    private ChangeListener<Paint> iconColorChangeListener = new ChangeListener<Paint>() {
        @Override
        public void changed(ObservableValue<? extends Paint> v, Paint o, Paint n) {
            setFill(n);
        }
    };

    public TypIcon() {
        this(TypIconFont.AT);
    }

    public TypIcon(@Nonnull TypIconFont typIcon) {
        setTypIconFont(requireNonNull(typIcon, ERROR_TYPICON_NULL));
        getStyleClass().add("typicons-icon");
        setText(String.valueOf(typIcon.getCode()));
        setStyle("-fx-font-family: '" + TYPICON_FONT_FAMILY + "';");
        setIconSize(16);
        setIconColor(Color.BLACK);
    }

    public TypIcon(@Nonnull String description) {
        this(TypIconFont.findByDescription(description));
        resolveSize(description);
        resolvePaint(description);
    }

    public ObjectProperty<TypIconFont> typIconProperty() {
        if (typIcon == null) {
            typIcon = new SimpleObjectProperty<>(this, "typIcon", null);
        }
        return typIcon;
    }

    public ObjectProperty<TypIconFont> getTypIconProperty() {
        return typIconProperty();
    }

    public IntegerProperty iconSizeProperty() {
        if (iconSize == null) {
            iconSize = new SimpleIntegerProperty(this, "iconSize", 16);
            iconSize.addListener(iconSizeChangeListener);
        }
        return iconSize;
    }

    public IntegerProperty getIconSizeProperty() {
        return iconSizeProperty();
    }

    public ObjectProperty<Paint> iconColorProperty() {
        if (iconColor == null) {
            iconColor = new SimpleObjectProperty<>(this, "iconColor", null);
            iconColor.addListener(iconColorChangeListener);
        }
        return iconColor;
    }

    public ObjectProperty<Paint> getIconColorProperty() {
        return iconColorProperty();
    }

    @Nonnull
    public TypIconFont getTypIconFont() {
        return typIconProperty().get();
    }

    public void setTypIconFont(@Nonnull TypIconFont typIcon) {
        typIconProperty().set(requireNonNull(typIcon, ERROR_TYPICON_NULL));
        setText(String.valueOf(typIcon.getCode()));
    }

    public void setTypIconFont(@Nonnull String description) {
        requireNonBlank(description, "Argument 'description' must not be blank");
        typIconProperty().set(TypIconFont.findByDescription(description));
        resolveSize(description);
        resolvePaint(description);
    }

    public void setIconSize(int size) {
        requireState(size > 0, "Argument 'size' must be greater than zero.");
        iconSizeProperty().set(size);
    }

    public int getIconSize() {
        return iconSizeProperty().get();
    }

    public void setIconColor(@Nonnull Paint color) {
        requireNonNull(color, "Argument 'color' must not be null");
        iconColorProperty().set(color);
    }

    @Nonnull
    public Paint getIconColor() {
        return iconColorProperty().get();
    }

    private void resolveSize(String description) {
        String[] parts = description.split(":");
        if (parts.length > 1) {
            try {
                setIconSize(Integer.parseInt(parts[1]));
            } catch (NumberFormatException e) {
                throw invalidDescription(description, e);
            }
        } else {
            setIconSize(16);
        }
    }

    private void resolvePaint(String description) {
        String[] parts = description.split(":");
        if (parts.length > 2) {
            PropertyEditor editor = PropertyEditorResolver.findEditor(Paint.class);
            editor.setValue(parts[2]);
            Paint paint = (Paint) editor.getValue();
            if (paint != null) {
                setIconColor(paint);
            }
        }
    }
}


text:
require 'ebay/types/characteristics_set'

module Ebay # :nodoc:
  module Types # :nodoc:
    # == Attributes
    #  object_node :characteristics_set, 'CharacteristicsSet', :class => CharacteristicsSet, :optional => true
    #  text_node :details_url, 'DetailsURL', :optional => true
    #  numeric_node :num_items, 'NumItems', :optional => true
    #  money_node :min_price, 'MinPrice', :optional => true
    #  money_node :max_price, 'MaxPrice', :optional => true
    #  text_node :product_id, '@productID', :optional => true
    #  text_node :stock_photo_url, '@stockPhotoURL', :optional => true
    #  text_node :title, '@title', :optional => true
    class Product
      include XML::Mapping
      include Initializer
      root_element_name 'Product'
      object_node :characteristics_set, 'CharacteristicsSet', :class => CharacteristicsSet, :optional => true
      text_node :details_url, 'DetailsURL', :optional => true
      numeric_node :num_items, 'NumItems', :optional => true
      money_node :min_price, 'MinPrice', :optional => true
      money_node :max_price, 'MaxPrice', :optional => true
      text_node :product_id, '@productID', :optional => true
      text_node :stock_photo_url, '@stockPhotoURL', :optional => true
      text_node :title, '@title', :optional => true
    end
  end
end


text:
/**
This is a new files to replace datatables-custom.scss after all DataTables updated
 */
table.dataTable thead th {
  position: relative;
  background-image: none !important;
}

table.dataTable {
  margin-bottom: 0 !important;
  th {
    white-space: nowrap;
    height: 32px;
    vertical-align: middle !important;
    position: relative;
  }
  /*// Center the Sort indicator*/
  th:after {
    position: absolute;
    display: block;
    top: 50%;
    transform: translateY(-50%);
    content: "";
  }
}

/*// For fixed columns, this adds a gradient of it to differentiate it from*/
/*// the rest of the table.*/
.DTFC_LeftHeadWrapper,
.DTFC_LeftBodyWrapper {
  border-right: 2px solid rgba(218, 220, 224, 1) !important;
}

.DTFC_LeftBodyLiner {
  overflow-x: hidden !important;
}

.dataTables_paginate {
  display: flex;
  justify-content: center;
}

/*// Styles for a toolbar above the table*/
.dt-btn-toolbar {
  margin-bottom: 1rem;

  /*// Overriding dropdown placement.*/
  .dropdown-menu {
    position: absolute !important;
    top: 30px !important;
    left: 0;

    .checkbox {
      padding-left: 10px;
    }

    .btn-default {
      border: none !important;
      border-radius: 0;
      display: block;
      text-align: left !important;
    }

    li > ul {
      max-height: 300px;
      overflow-y: scroll;
      list-style: none;
      margin: 0;

      li {
        margin-left: -40px !important;
        line-height: 20px;
        &:hover {
          background-color: #f9f9f9 !important;
        }
      }

      a {
        background-color: #ffffff;
        box-sizing: border-box;
        clear: both;
        color: rgb(38, 38, 38);
        display: block;
        font-size: 14px;
        font-weight: 400;
        line-height: 20px;
        list-style: none outside none;
        outline: rgb(38, 38, 38) none 0px;
        padding: 3px 20px;
        text-align: left;
        text-decoration: none;
        text-decoration-color: rgb(38, 38, 38);
        text-decoration-style: solid;
        white-space: nowrap;
        &:hover {
          background-color: rgb(245, 245, 245);
        }
      }
    }
  }
}

/*// New custom wrapper for updated tables*/
/*// This is set in JS in datatable-utilities.js#dom*/
.dt-table-wrapper {
  border: 1px solid rgba(224, 227, 232, 1);
  margin-bottom: 1rem;
}

/*// Set up the filter to be pulled to the right and accept flex box*/
#dt-filters {
  display: flex;
  justify-content: flex-end;
}

.dataTables_filter {
  display: inline-block;
}

.dt-filter-btns {
  margin: 0 !important;
}

/*// Filter Row - updated tables*/
.filter-tags {
  display: flex;
  flex-direction: row-reverse;
}

.filter-tags__space {
  display: flex;
}

.filter-tags__tag {
  margin-left: 4px;
}

.dt-wrap-cell {
  position: relative;
  white-space: pre-line;
  word-wrap: break-word;
  display: block;
}

.dt-date {
  width: 200px !important;
}

/*// Filter Chips Styles*/
.filter-chip--wrapper {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  margin-bottom: 0.5rem;
}

.filter-chip--chip {
  transition: box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 24px;
  align-items: center;
  cursor: default;
  margin-left: 0.5rem;
  background-color: #e0e0e0;
  color: rgba(0, 0, 0, 0.87);
}

.filter-chip--close {
  font-size: 1.2em;
  width: 1em;
  height: 1em;
  margin-right: -4px;
  margin-left: 6px;
  cursor: pointer;
  display: inline-block;
}


text:
'use strict';

var Mocha = require('mocha'),
    SauceLabs = require('saucelabs'),
    SauceTunnel = require('sauce-tunnel'),
    selenium = require('selenium-standalone'),
    webdriverio = require('webdriverio'),
    http = require('http'),
    async = require('async'),
    hooker = require('hooker'),
    path = require('path'),
    fs = require('fs-extra'),
    deepmerge = require('deepmerge'),
    datadriverReporter = require('../support/reporter'),
    server = null,
    isSeleniumServerRunning = false,
    tunnel = null,
    seleniumServer = null,
    isSauceTunnelRunning = false,
    isHookedUp = false;

require('../support/ui');

module.exports = function(grunt) {

    grunt.registerMultiTask('datadriver', 'run WebdriverIO tests with Mocha', function() {

        var done = this.async(),
            base = process.cwd(),
            options = this.options({
                reporter: datadriverReporter,
                ui: 'ddui',
                slow: 75,
                bail: false,
                grep: null,
                timeout: 1000000,
                updateSauceJob: false,
                output: null,
                quiet: false,
                nospawn: false,
                seleniumOptions: {},
                seleniumInstallOptions: {}
            }),
            sessionID = null,
            capabilities = deepmerge(options, this.data.options || {}),
            tunnelIdentifier = options['tunnel-identifier'] || (capabilities.desiredCapabilities ? capabilities.desiredCapabilities['tunnel-identifier'] : null) || null,
            tunnelFlags = (capabilities.desiredCapabilities ? capabilities.desiredCapabilities['tunnel-flags'] : []) || [],
            fd;

        var queue = grunt.task._queue.filter(function(task) {
            return typeof task.placeholder === 'undefined';
        });

        var isLastTask = queue.length === 0;

        /**
         * initialise tunnel
         */
        if (!tunnel && options.user && options.key && tunnelIdentifier) {
            grunt.log.debug('initialise test session using sauce tunnel from user ' + options.user);
            tunnel = new SauceTunnel(options.user, options.key, tunnelIdentifier, true, tunnelFlags);
            tunnel.on('verbose:debug', grunt.log.debug);

            capabilities.host = undefined;
            capabilities.port = 4445;
        }

        /**
         * initialize WebdriverIO
         */
        grunt.log.debug('run webdriverio with following capabilities: ' + JSON.stringify(capabilities));
        capabilities.logLevel = options.quiet ? 'silent' : capabilities.logLevel;
        GLOBAL.browser = webdriverio.remote(capabilities);

        /**
         * initialize Mocha
         */
        var mocha = new Mocha(options);

        grunt.file.setBase(base);

        grunt.file.expand(this.data.tests).forEach(function(file) {
            mocha.addFile(file);
        });

        /**
         * hook process.stdout.write to save reporter output into file
         * thanks to https://github.com/pghalliday/grunt-mocha-test
         */
        if (!isHookedUp) {
            if (options.output) {
                fs.mkdirsSync(path.dirname(options.output));
                fd = fs.openSync(options.output, 'w');
            }

            // Hook process.stdout.write
            hooker.hook(process.stdout, 'write', {

                // This gets executed before the original process.stdout.write
                pre: function(result) {

                    // Write result to file if it was opened
                    if (fd && result.slice(0, 3) !== '[D]' && result.match(/\u001b\[/g) === null) {
                        fs.writeSync(fd, result);
                    }

                    // Prevent the original process.stdout.write from executing if quiet was specified
                    if (options.quiet) {
                        return hooker.preempt();
                    }

                }

            });

            isHookedUp = true;
        }

        /**
         * temporary remove the grunt exception handler , to make tasks continue (see also)
          - https://github.com/pghalliday/grunt-mocha-test/blob/master/tasks/mocha.js#L57
          - https://github.com/gregrperkins/grunt-mocha-hack
         */
        var uncaughtExceptionHandlers = process.listeners('uncaughtException');
        process.removeAllListeners('uncaughtException');

        /*istanbul ignore next*/
        var unmanageExceptions = function() {
            uncaughtExceptionHandlers.forEach(process.on.bind(process, 'uncaughtException'));
        };

        // Clear require cache to allow for multiple execution of same mocha commands
        Object.keys(require.cache).forEach(function(key) {
            delete require.cache[key];
        });

        /**
         * helper function for asyncjs
         */
        var next = function(cb, param) {
            return function() {
                var args = Array.prototype.slice.call(arguments, 1);

                if(typeof param !== 'undefined') {
                    args.unshift(param);
                } else if (arguments.length === 1) {
                    args.unshift(arguments[0]);
                }

                args.unshift(null);
                cb.apply(null, args);
            };
        };

        async.waterfall([

            /**
             * check if selenium server is already running
             */
            function(callback) {

                if (tunnel) {
                    return callback(null);
                }

                grunt.log.debug('checking if selenium is running');

                var options = {
                    host: capabilities.host || 'localhost',
                    port: capabilities.port || 4444,
                    path: '/wd/hub/status'
                };

                http.get(options, function() {
                    grunt.log.debug('selenium is running');
                    isSeleniumServerRunning = true;
                    callback(null);
                }).on('error', function() {
                    grunt.log.debug('selenium is not running');
                    callback(null);
                });

            },
            /**
             *  install drivers if needed
             */
            function(callback) {
                if (tunnel || isSeleniumServerRunning) {
                    return callback(null);
                }

                grunt.log.debug('installing driver if needed');
                selenium.install(options.seleniumInstallOptions, function(err) {
                    if (err) {
                        return callback(err);
                    }

                    grunt.log.debug('driver installed');
                    callback(null);
                });
            },

            /**
             * start selenium server or sauce tunnel (if not already started)
             */
            function(callback) {

                if (tunnel) {

                    if (isSauceTunnelRunning) {
                        return callback(null, true);
                    }

                    grunt.log.debug('start sauce tunnel');

                    /**
                     * start sauce tunnel
                     */
                    tunnel.start(function(hasTunnelStarted) {
                        // output here means if tunnel was created successfully
                        if (hasTunnelStarted === false) {
                            callback(new Error('Sauce-Tunnel couldn\'t created successfully'));
                        }

                        grunt.log.debug('tunnel created successfully');
                        isSauceTunnelRunning = true;
                        callback(null);
                    });

                } else if (!server && !isSeleniumServerRunning && !options.nospawn) {

                    grunt.log.debug('start selenium standalone server');

                    /**
                     * starts selenium standalone server if its not running
                     */

                    server = selenium.start(options.seleniumOptions, function(err, child) {
                        if (err) {
                            return callback(err);
                        }

                        grunt.log.debug('selenium successfully started');
                        seleniumServer = child;
                        isSeleniumServerRunning = true;
                        callback(null, true);
                    });

                } else {
                    grunt.log.debug('standalone server or sauce tunnel is running');
                    callback(null, true);
                }

            },

            /**
             * init WebdriverIO instance
             */
            function() {
                var callback = arguments[arguments.length - 1];
                grunt.log.debug('init WebdriverIO instance');

                GLOBAL.browser.init(function(err) {
                    /**
                     * gracefully kill process if init fails
                     */
                    callback(err);
                });
            },

            /**
             * run mocha tests
             */
            function(callback) {
                grunt.log.debug('run mocha tests');

                /**
                 * save session ID
                 */
                sessionID = GLOBAL.browser.requestHandler.sessionID;

                mocha.run(next(callback));
            },

            /**
             * end selenium session
             */
            function(result, callback) {
                grunt.log.debug('end selenium session');

                // Restore grunt exception handling
                unmanageExceptions();

                // Close Remote sessions if needed
                GLOBAL.browser.end(next(callback, result === 0));
            },

            /**
             * destroy sauce tunnel if connected (once all tasks were executed) or
             * kill selenium server process if created
             */
            function(result) {
                var callback = arguments[arguments.length - 1];

                if (isLastTask && isSauceTunnelRunning) {
                    grunt.log.debug('destroy sauce tunnel if connected (once all tasks were executed)');
                    return tunnel.stop(next(callback, result));
                } else if (isLastTask && seleniumServer) {
                    grunt.log.debug('kill selenium server');
                    seleniumServer.kill();
                }

                callback(null, result);
            },

            /**
             * update job on Sauce Labs
             */
            function(result) {
                var callback = arguments[arguments.length - 1];

                if (!options.user && !options.key && !options.updateSauceJob) {
                    return callback(null, result);
                }

                grunt.log.debug('update job on Sauce Labs');
                var sauceAccount = new SauceLabs({
                    username: options.user,
                    password: options.key
                });

                sauceAccount.updateJob(sessionID, {
                    passed: result,
                    public: true
                }, next(callback, result));
            },

            /**
             * finish grunt task
             */
            function(result) {
                var callback = arguments[arguments.length - 1];
                grunt.log.debug('finish grunt task');

                if (isLastTask) {

                    // close the file if it was opened
                    if (fd) {
                        fs.closeSync(fd);
                    }

                    // Restore process.stdout.write to its original value
                    hooker.unhook(process.stdout, 'write');

                }

                done(result);
                callback();
            }
        ], function(err) {

            /**
             * if no error happened, we are good
             */
            if(!err) {
                return;
            }

            grunt.log.debug('An error happened, shutting down services');

            var logTunnelStopped = function() {
                grunt.log.debug('tunnel closed successfully');
                grunt.fail.warn(err);
            };

            if(sessionID) {
                return GLOBAL.browser.end(function() {
                    grunt.log.debug('Selenium session closed successfully');

                    if(isSauceTunnelRunning) {
                        return tunnel.stop(logTunnelStopped);
                    }

                    grunt.fail.warn(err);
                });
            }

            if(isSauceTunnelRunning) {
                return tunnel.stop(logTunnelStopped);
            }

            grunt.fail.warn(err);
        });

    });

};


text:
SYSTEMDCTL=/usr/bin/systemctl
UPSTARTCTL=/sbin/initctl
SPAWNSVC=st2actionrunner
WORKERSVC=st2actionrunner-worker

# 1. Choose init type
if [ -x $SYSTEMDCTL ]; then
  sv=systemd
  svbin=$SYSTEMDCTL
elif ( /sbin/start 2>&1 | grep -q "missing job name" ); then
  sv=upstart
  svbin=$UPSTARTCTL
else
  # Old debians, redhats and centos, amazon etc
  sv=sysv
  svbin=/etc/init.d/$WORKERSVC
  if [ ! -x $svbin ]; then
    >&2 echo "Init file not found: $svbin"
    >&2 echo "Unknown platform, we support ONLY debian, systemd and sysv!"
    exit 99
  fi
fi

# 2. Spwan workers
WORKERSNUM=${WORKERSNUM:-`nproc`}
action="$1"; shift;
rs=0
for i in `seq $WORKERSNUM`; do
  if [ $sv = systemd ]; then
    $svbin $action $SPAWNSVC@$i
  elif [ $sv = upstart ]; then
    $svbin $action $WORKERSVC WORKERID=$i
  elif [ $sv = sysv ]; then
    WORKERID=$i $svbin $action
  fi
  cmdrs=$?
  [ $cmdrs -gt 0 ] && rs=$cmdrs
done

exit $rs


text:
using System;
using System.Data.Entity;
using System.Diagnostics;
using System.Linq;
using EFSecondLevelCache.TestDataLayer.DataLayer;

namespace EFSecondLevelCache.PerformanceTests
{
    class Program
    {
        private static void cachedQueries()
        {
            Console.WriteLine("CachedQueries");
            using (var context = new SampleContext())
            {
                var watch = Stopwatch.StartNew();
                for (var i = 0; i <= 10000; i++)
                {
                    var products = context.Products.Include(x => x.Tags).Cacheable().ToList();
                }
                Console.WriteLine("10000 iterations in {0} ms. Average speed: {1} iterations/second.", watch.ElapsedMilliseconds, (int)(10000 / watch.Elapsed.TotalSeconds));
            }
        }

        static void Main(string[] args)
        {
            startDb();
            cachedQueries();
            uncachedQueries();
        }

        private static void startDb()
        {
            Database.SetInitializer(new MigrateDatabaseToLatestVersion<SampleContext, Configuration>());
            using (var ctx = new SampleContext())
            {
                ctx.Database.Initialize(force: true);
            }
        }

        private static void uncachedQueries()
        {
            Console.WriteLine("UncachedQueries");
            using (var context = new SampleContext())
            {
                var watch = Stopwatch.StartNew();
                for (var i = 0; i <= 10000; i++)
                {
                    var products = context.Products.Include(x => x.Tags).ToList();
                }
                Console.WriteLine("10000 iterations in {0} ms. Average speed: {1} iterations/second.", watch.ElapsedMilliseconds, (int)(10000 / watch.Elapsed.TotalSeconds));
            }
        }
    }
}


text:
The preface is already intriguing. A tour through the new notation, plus some discussion of why a programming language is the best route in to this stuff. Both of these are extremely powerful ideas, and why I was pulled to this book in the first place.

The functional notation is:

\begin{equation}
  D (\partial\_2 L \circ \Gamma[q]) - (\partial\_1 L \circ \Gamma[q]) = 0
\end{equation}

Compare that to the traditional notation:

\begin{equation}
  \frac{d}{dt} \frac{\partial L}{\partial \dot q^i} -\frac{\partial L}{\partial q^i}= 0
\end{equation}

They have a nice riff on how this is totally ambiguous. \\(\Gamma\\) is not a great way to go.


text:
#ifndef _JIMI_BASIC_COMPILER_H_
#define _JIMI_BASIC_COMPILER_H_

#if defined(_MSC_VER) && (_MSC_VER >= 1020)
#pragma once
#endif

/**
 Config of jimi project, per target compiler.
 */

// Compiler name
#define _JIMI_STRING_ESCAPE(x)      #x
#define _JIMI_TO_STRING(x)          _JIMI_STRING_ESCAPE(x)

#if defined(__ICL) || defined(__INTEL_COMPILER)     // Intel C++
#  if defined(__VERSION__)
#    define JIMI_COMPILER_NAME      "Intel C++ " __VERSION__
#  elif defined(__INTEL_COMPILER_BUILD_DATE)
#    define JIMI_COMPILER_NAME      "Intel C++ (" _JIMI_TO_STRING(__INTEL_COMPILER_BUILD_DATE) ")"
#  else
#    define JIMI_COMPILER_NAME      "Intel C++"
#  endif    // #  if defined(__VERSION__)
#elif defined(_MSC_VER)     // Microsoft VC++
#  if defined(_MSC_FULL_VER)
#    define JIMI_COMPILER_NAME      "Microsoft VC++ (" _JIMI_TO_STRING(_MSC_FULL_VER) ")"
#  elif defined(_MSC_VER)
#    define JIMI_COMPILER_NAME      "Microsoft VC++ (" _JIMI_TO_STRING(_MSC_VER) ")"
#  else
#    define JIMI_COMPILER_NAME      "Microsoft VC++"
#  endif    // #  if defined(_MSC_FULL_VER)
#elif defined(__GNUC__)    // GCC
#  if defined(__CYGWIN__)
#    define JIMI_COMPILER_NAME      "GCC(Cygmin) " __VERSION__
#  elif defined(__MINGW32__) || defined(__MINGW64__)
#    define JIMI_COMPILER_NAME      "GCC(MinGW) " __VERSION__
#  else
#    define JIMI_COMPILER_NAME      "GCC " __VERSION__
#  endif    // #  if defined(__CYGWIN__)
#elif defined(__TURBOC__)   // Borland C++
#  if defined(__BCPLUSPLUS__)
#    define JIMI_COMPILER_NAME      "Borland C++ (" _JIMI_TO_STRING(__BCPLUSPLUS__) ")"
#  elif defined(__BORLANDC__)
#    define JIMI_COMPILER_NAME      "Borland C (" _JIMI_TO_STRING(__BORLANDC__) ")"
#  else
#    define JIMI_COMPILER_NAME      "Turbo C (" _JIMI_TO_STRING(__TURBOC__) ")"
#  endif    // #  if defined(_MSC_FULL_VER)
#else
#  define JIMI_COMPILER_NAME        "Unknown Compiler"
#endif  // #if defined(__ICL)    // Intel C++

//////////////////////////////////////////////////////////////////////////
// pre configure
//////////////////////////////////////////////////////////////////////////

// define supported target compiler macro which JIMI uses.
#define JIMI_COMPILER_UNKNOWN               0

#define JIMI_COMPILER_MSVC                  1
#define JIMI_COMPILER_MSVC_60               2
#define JIMI_COMPILER_MSVC_70               3
#define JIMI_COMPILER_MSVC_71               4
#define JIMI_COMPILER_MSVC_80               5
#define JIMI_COMPILER_MSVC_90               6
#define JIMI_COMPILER_MSVC_100              7
#define JIMI_COMPILER_MSVC_110              8
#define JIMI_COMPILER_MSVC_120              9
#define JIMI_COMPILER_MSVC_130              10
#define JIMI_COMPILER_MSVC_140              11

#define JIMI_COMPILER_BORLANDC              20
#define JIMI_COMPILER_BCB                   21
#define JIMI_COMPILER_BC                    22
#define JIMI_COMPILER_TC                    23

#define JIMI_COMPILER_GCC                   30
#define JIMI_COMPILER_GCC_MINGW             31
#define JIMI_COMPILER_GCC_CYGWIN            32
#define JIMI_COMPILER_GCC_LLVM              33

#define JIMI_COMPILER_GPP                   40

#define JIMI_COMPILER_ICC                   50
#define JIMI_COMPILER_ICC_70                51
#define JIMI_COMPILER_ICC_80                52
#define JIMI_COMPILER_ICC_81                53
#define JIMI_COMPILER_ICC_90                54
#define JIMI_COMPILER_ICC_100               55
#define JIMI_COMPILER_ICC_110               56

#define JIMI_COMPILER_XCODE                 60
#define JIMI_COMPILER_XCODE3                61
#define JIMI_COMPILER_XCODE4                62

#define JIMI_COMPILER_MINGW                 70
#define JIMI_COMPILER_CYGWIN                80

#define JIMI_COMPILER_MSC_VER               0
#define JIMI_COMPILER_C99                   0
#define JIMI_COMPILER_C0X11                 0

// Determine target compiler by compile environment macro.
#undef  JIMI_TARGET_COMPILER_MAIN
#undef  JIMI_TARGET_COMPILER

#define JIMI_TARGET_COMPILER_MAIN           JIMI_COMPILER_UNKNOWN
#define JIMI_TARGET_COMPILER                JIMI_COMPILER_UNKNOWN

// Borland C++
#if defined(__TURBOC__)
    #undef  JIMI_TARGET_COMPILER_MAIN
    #define JIMI_TARGET_COMPILER_MAIN       JIMI_COMPILER_BORLANDC
    #if defined(__BCPLUSPLUS__)
        #undef  JIMI_TARGET_COMPILER
        #define JIMI_TARGET_COMPILER        JIMI_COMPILER_BCB
    #elif defined(__BORLANDC__)
        #undef  JIMI_TARGET_COMPILER
        #define JIMI_TARGET_COMPILER        JIMI_COMPILER_BC
    #else
        #undef  JIMI_TARGET_COMPILER
        #define JIMI_TARGET_COMPILER        JIMI_COMPILER_TC
    #endif

    #ifndef JIMI_IS_BCB
        #define JIMI_IS_BCB                 1
    #endif
#endif

// Intel C++
#if defined(__ICL) || defined(__INTEL_COMPILER)
    #undef  JIMI_TARGET_COMPILER_MAIN
    #define JIMI_TARGET_COMPILER_MAIN       JIMI_COMPILER_ICC
    #undef  JIMI_TARGET_COMPILER
    #define JIMI_TARGET_COMPILER            JIMI_COMPILER_ICC

    #ifndef JIMI_IS_ICC
        #define JIMI_IS_ICC                 1
    #endif
#endif

// cygwin
#if defined(__CYGWIN__)
    #undef  JIMI_TARGET_COMPILER_MAIN
    #define JIMI_TARGET_COMPILER_MAIN       JIMI_COMPILER_CYGWIN
    #undef  JIMI_TARGET_COMPILER
    #define JIMI_TARGET_COMPILER            JIMI_COMPILER_CYGWIN

    #ifndef JIMI_IS_CYGWIN
        #define JIMI_IS_CYGWIN              1
    #endif
#endif

// MinGW
#if defined(__MINGW__) || defined(__MINGW32__) || defined(__MINGW64__)
    #undef  JIMI_TARGET_COMPILER_MAIN
    #define JIMI_TARGET_COMPILER_MAIN       JIMI_COMPILER_MINGW
    #undef  JIMI_TARGET_COMPILER
    #define JIMI_TARGET_COMPILER            JIMI_COMPILER_MINGW

    #ifndef JIMI_IS_MINGW
    #define JIMI_IS_MINGW                   1
    #endif

    #if defined(__MINGW32__)
        #ifndef JIMI_IS_MINGW32
        #define JIMI_IS_MINGW32             1
        #endif
    #endif

    #if defined(__MINGW64__)
        #ifndef JIMI_IS_MINGW64
        #define JIMI_IS_MINGW64             1
        #endif
    #endif
#endif

// GNU C++
#if defined(__GNUC__)
    #undef  JIMI_TARGET_COMPILER_MAIN
    #define JIMI_TARGET_COMPILER_MAIN       JIMI_COMPILER_GCC
    #if defined(__CYGWIN__)     // cygwin
        #undef  JIMI_TARGET_COMPILER
        #define JIMI_TARGET_COMPILER        JIMI_COMPILER_GCC_CYGWIN
    #elif defined(__MINGW32__) || defined(__MINGW64__)  // MinGW
        #undef  JIMI_TARGET_COMPILER
        #define JIMI_TARGET_COMPILER        JIMI_COMPILER_GCC_MINGW
    #elif defined(_LLVM)        // LLVM
        #undef  JIMI_TARGET_COMPILER
        #define JIMI_TARGET_COMPILER        JIMI_COMPILER_GCC_LLVM
        #ifndef JIMI_IS_LLVM
            #define JIMI_IS_LLVM            1
        #endif
    #else
        #undef  JIMI_TARGET_COMPILER
        #define JIMI_TARGET_COMPILER        JIMI_COMPILER_GCC
    #endif

    #ifndef JIMI_IS_GNUC
        #define JIMI_IS_GNUC                1
    #endif

    #ifndef JIMI_IS_GCC
        #define JIMI_IS_GCC                 1
    #endif
#endif

// GNU G++
#if defined(__GNUCPP__)
    #undef  JIMI_TARGET_COMPILER_MAIN
    #define JIMI_TARGET_COMPILER_MAIN       JIMI_COMPILER_GPP
    #undef  JIMI_TARGET_COMPILER
    #define JIMI_TARGET_COMPILER            JIMI_COMPILER_GPP

    #ifndef JIMI_IS_GNUCPP
        #define JIMI_IS_GNUCPP              1
    #endif

    #ifndef JIMI_IS_GPP
        #define JIMI_IS_GPP                 1
    #endif
#endif

// MSVC
#if defined(_MSC_VER)
    #undef  JIMI_TARGET_COMPILER_MAIN
    #define JIMI_TARGET_COMPILER_MAIN       JIMI_COMPILER_MSVC
    #undef  JIMI_TARGET_COMPILER
    #define JIMI_TARGET_COMPILER            JIMI_COMPILER_MSVC
    #undef  JIMI_COMPILER_MSC_VER
    #define JIMI_COMPILER_MSC_VER           _MSC_VER

    #ifndef JIMI_IS_MSVC
        #define JIMI_IS_MSVC                1
    #endif

    #ifndef JIMI_MSC_VER
        #define JIMI_MSC_VER                _MSC_VER
    #endif
#endif

//////////////////////////////////////////////////////////////////////////
// post configure
//////////////////////////////////////////////////////////////////////////

// check user set compiler
#if (!defined(JIMI_TARGET_COMPILER)) || (JIMI_TARGET_COMPILER == JIMI_COMPILER_UNKNOWN)
    #error "Cannot recognize the target compiler; are you targeting an unsupported compiler?"
#endif

#endif  /* _JIMI_BASIC_COMPILER_H_ */


text:
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
Partial Class DNS
    Inherits System.Windows.Forms.Form

    'Form overrides dispose to clean up the component list.
    <System.Diagnostics.DebuggerNonUserCode()> _
    Protected Overrides Sub Dispose(ByVal disposing As Boolean)
        Try
            If disposing AndAlso components IsNot Nothing Then
                components.Dispose()
            End If
        Finally
            MyBase.Dispose(disposing)
        End Try
    End Sub

    'Required by the Windows Form Designer
    Private components As System.ComponentModel.IContainer

    'NOTE: The following procedure is required by the Windows Form Designer
    'It can be modified using the Windows Form Designer.
    'Do not modify it using the code editor.
    <System.Diagnostics.DebuggerStepThrough()> _
    Private Sub InitializeComponent()
        Dim resources As System.ComponentModel.ComponentResourceManager = New System.ComponentModel.ComponentResourceManager(GetType(DNS))
        Me.btnExit = New System.Windows.Forms.Button()
        Me.btnReset = New System.Windows.Forms.Button()
        Me.btnCheckDNS = New System.Windows.Forms.Button()
        Me.lblDescription = New System.Windows.Forms.Label()
        Me.txtDomain = New System.Windows.Forms.TextBox()
        Me.lblEnterDomain = New System.Windows.Forms.Label()
        Me.lblChooseDNS = New System.Windows.Forms.Label()
        Me.txtOtherDNS = New System.Windows.Forms.TextBox()
        Me.cboDNSServer = New System.Windows.Forms.ComboBox()
        Me.lblSpecificDNS = New System.Windows.Forms.Label()
        Me.txtResults = New System.Windows.Forms.TextBox()
        Me.lblResults = New System.Windows.Forms.Label()
        Me.btnCopy = New System.Windows.Forms.Button()
        Me.lblOwner = New System.Windows.Forms.Label()
        Me.chkMX = New System.Windows.Forms.CheckBox()
        Me.chkTXT = New System.Windows.Forms.CheckBox()
        Me.chkA = New System.Windows.Forms.CheckBox()
        Me.lblTypes = New System.Windows.Forms.Label()
        Me.btnSave = New System.Windows.Forms.Button()
        Me.btnClear = New System.Windows.Forms.Button()
        Me.SaveFileDialog1 = New System.Windows.Forms.SaveFileDialog()
        Me.SuspendLayout()
        '
        'btnExit
        '
        Me.btnExit.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
        Me.btnExit.Font = New System.Drawing.Font("Microsoft Sans Serif", 12.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.btnExit.Location = New System.Drawing.Point(19, 661)
        Me.btnExit.Name = "btnExit"
        Me.btnExit.Size = New System.Drawing.Size(252, 43)
        Me.btnExit.TabIndex = 9
        Me.btnExit.Text = "E&xit"
        Me.btnExit.UseVisualStyleBackColor = True
        '
        'btnReset
        '
        Me.btnReset.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
        Me.btnReset.Font = New System.Drawing.Font("Microsoft Sans Serif", 12.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.btnReset.Location = New System.Drawing.Point(19, 605)
        Me.btnReset.Name = "btnReset"
        Me.btnReset.Size = New System.Drawing.Size(252, 43)
        Me.btnReset.TabIndex = 8
        Me.btnReset.Text = "&Reset Form"
        Me.btnReset.UseVisualStyleBackColor = True
        '
        'btnCheckDNS
        '
        Me.btnCheckDNS.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
        Me.btnCheckDNS.DialogResult = System.Windows.Forms.DialogResult.OK
        Me.btnCheckDNS.Font = New System.Drawing.Font("Microsoft Sans Serif", 14.25!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.btnCheckDNS.Location = New System.Drawing.Point(19, 436)
        Me.btnCheckDNS.Name = "btnCheckDNS"
        Me.btnCheckDNS.Size = New System.Drawing.Size(252, 97)
        Me.btnCheckDNS.TabIndex = 6
        Me.btnCheckDNS.Tag = ""
        Me.btnCheckDNS.Text = "Check &DNS!"
        Me.btnCheckDNS.UseVisualStyleBackColor = True
        '
        'lblDescription
        '
        Me.lblDescription.Location = New System.Drawing.Point(22, 18)
        Me.lblDescription.Name = "lblDescription"
        Me.lblDescription.Size = New System.Drawing.Size(252, 30)
        Me.lblDescription.TabIndex = 20
        Me.lblDescription.Text = "This program will query a public DNS server for the specified domain. It will ret" & _
    "urn the following records: "
        '
        'txtDomain
        '
        Me.txtDomain.Location = New System.Drawing.Point(25, 222)
        Me.txtDomain.MaxLength = 255
        Me.txtDomain.Name = "txtDomain"
        Me.txtDomain.Size = New System.Drawing.Size(249, 20)
        Me.txtDomain.TabIndex = 0
        '
        'lblEnterDomain
        '
        Me.lblEnterDomain.AutoSize = True
        Me.lblEnterDomain.Location = New System.Drawing.Point(22, 206)
        Me.lblEnterDomain.Name = "lblEnterDomain"
        Me.lblEnterDomain.Size = New System.Drawing.Size(114, 13)
        Me.lblEnterDomain.TabIndex = 22
        Me.lblEnterDomain.Text = "Enter the domain here:"
        '
        'lblChooseDNS
        '
        Me.lblChooseDNS.AutoSize = True
        Me.lblChooseDNS.Location = New System.Drawing.Point(22, 254)
        Me.lblChooseDNS.Name = "lblChooseDNS"
        Me.lblChooseDNS.Size = New System.Drawing.Size(138, 13)
        Me.lblChooseDNS.TabIndex = 23
        Me.lblChooseDNS.Text = "Choose DNS Server to use:"
        '
        'txtOtherDNS
        '
        Me.txtOtherDNS.Location = New System.Drawing.Point(25, 320)
        Me.txtOtherDNS.MaxLength = 15
        Me.txtOtherDNS.Name = "txtOtherDNS"
        Me.txtOtherDNS.Size = New System.Drawing.Size(166, 20)
        Me.txtOtherDNS.TabIndex = 2
        Me.txtOtherDNS.Visible = False
        '
        'cboDNSServer
        '
        Me.cboDNSServer.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
        Me.cboDNSServer.FormattingEnabled = True
        Me.cboDNSServer.Items.AddRange(New Object() {"8.8.8.8", "4.2.2.2", "4.2.2.1", "208.67.220.220", "208.67.222.222", "Use my internal DNS server", "Other (specify below)"})
        Me.cboDNSServer.Location = New System.Drawing.Point(25, 271)
        Me.cboDNSServer.Name = "cboDNSServer"
        Me.cboDNSServer.Size = New System.Drawing.Size(166, 21)
        Me.cboDNSServer.TabIndex = 1
        '
        'lblSpecificDNS
        '
        Me.lblSpecificDNS.AutoSize = True
        Me.lblSpecificDNS.Location = New System.Drawing.Point(22, 304)
        Me.lblSpecificDNS.Name = "lblSpecificDNS"
        Me.lblSpecificDNS.Size = New System.Drawing.Size(118, 13)
        Me.lblSpecificDNS.TabIndex = 24
        Me.lblSpecificDNS.Text = "Custom DNS Server IP:"
        Me.lblSpecificDNS.Visible = False
        '
        'txtResults
        '
        Me.txtResults.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
            Or System.Windows.Forms.AnchorStyles.Left) _
            Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
        Me.txtResults.BackColor = System.Drawing.SystemColors.Window
        Me.txtResults.Location = New System.Drawing.Point(293, 29)
        Me.txtResults.Multiline = True
        Me.txtResults.Name = "txtResults"
        Me.txtResults.ReadOnly = True
        Me.txtResults.ScrollBars = System.Windows.Forms.ScrollBars.Vertical
        Me.txtResults.Size = New System.Drawing.Size(570, 626)
        Me.txtResults.TabIndex = 10
        '
        'lblResults
        '
        Me.lblResults.AutoSize = True
        Me.lblResults.Location = New System.Drawing.Point(290, 13)
        Me.lblResults.Name = "lblResults"
        Me.lblResults.Size = New System.Drawing.Size(45, 13)
        Me.lblResults.TabIndex = 26
        Me.lblResults.Text = "Results:"
        '
        'btnCopy
        '
        Me.btnCopy.Anchor = System.Windows.Forms.AnchorStyles.Bottom
        Me.btnCopy.Font = New System.Drawing.Font("Microsoft Sans Serif", 12.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.btnCopy.Location = New System.Drawing.Point(322, 661)
        Me.btnCopy.Name = "btnCopy"
        Me.btnCopy.Size = New System.Drawing.Size(252, 43)
        Me.btnCopy.TabIndex = 7
        Me.btnCopy.Text = "&Copy Results"
        Me.btnCopy.UseVisualStyleBackColor = True
        '
        'lblOwner
        '
        Me.lblOwner.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
        Me.lblOwner.AutoSize = True
        Me.lblOwner.Location = New System.Drawing.Point(562, 9)
        Me.lblOwner.Name = "lblOwner"
        Me.lblOwner.Size = New System.Drawing.Size(298, 13)
        Me.lblOwner.TabIndex = 28
        Me.lblOwner.Text = "DNS Checker v1.2.2 - https://github.com/jwyllys/dnschecker"
        '
        'chkMX
        '
        Me.chkMX.AutoSize = True
        Me.chkMX.Location = New System.Drawing.Point(25, 353)
        Me.chkMX.Name = "chkMX"
        Me.chkMX.Size = New System.Drawing.Size(123, 17)
        Me.chkMX.TabIndex = 3
        Me.chkMX.Text = "Include MX Records"
        Me.chkMX.UseVisualStyleBackColor = True
        '
        'chkTXT
        '
        Me.chkTXT.AutoSize = True
        Me.chkTXT.Location = New System.Drawing.Point(25, 376)
        Me.chkTXT.Name = "chkTXT"
        Me.chkTXT.Size = New System.Drawing.Size(128, 17)
        Me.chkTXT.TabIndex = 4
        Me.chkTXT.Text = "Include TXT Records"
        Me.chkTXT.UseVisualStyleBackColor = True
        '
        'chkA
        '
        Me.chkA.AutoSize = True
        Me.chkA.Location = New System.Drawing.Point(25, 399)
        Me.chkA.Name = "chkA"
        Me.chkA.Size = New System.Drawing.Size(109, 17)
        Me.chkA.TabIndex = 5
        Me.chkA.Text = "Include A Record"
        Me.chkA.UseVisualStyleBackColor = True
        '
        'lblTypes
        '
        Me.lblTypes.Location = New System.Drawing.Point(22, 50)
        Me.lblTypes.Name = "lblTypes"
        Me.lblTypes.Size = New System.Drawing.Size(245, 140)
        Me.lblTypes.TabIndex = 32
        Me.lblTypes.Text = resources.GetString("lblTypes.Text")
        '
        'btnSave
        '
        Me.btnSave.Anchor = System.Windows.Forms.AnchorStyles.Bottom
        Me.btnSave.Font = New System.Drawing.Font("Microsoft Sans Serif", 12.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.btnSave.Location = New System.Drawing.Point(580, 661)
        Me.btnSave.Name = "btnSave"
        Me.btnSave.Size = New System.Drawing.Size(252, 43)
        Me.btnSave.TabIndex = 33
        Me.btnSave.Text = "&Save Results"
        Me.btnSave.UseVisualStyleBackColor = True
        '
        'btnClear
        '
        Me.btnClear.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
        Me.btnClear.Font = New System.Drawing.Font("Microsoft Sans Serif", 12.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.btnClear.Location = New System.Drawing.Point(19, 549)
        Me.btnClear.Name = "btnClear"
        Me.btnClear.Size = New System.Drawing.Size(252, 43)
        Me.btnClear.TabIndex = 34
        Me.btnClear.Text = "Clear Results"
        Me.btnClear.UseVisualStyleBackColor = True
        '
        'SaveFileDialog1
        '
        Me.SaveFileDialog1.Filter = "Text Files|*.txt"
        Me.SaveFileDialog1.Title = "Save As"
        '
        'DNS
        '
        Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
        Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
        Me.ClientSize = New System.Drawing.Size(872, 715)
        Me.Controls.Add(Me.btnClear)
        Me.Controls.Add(Me.btnSave)
        Me.Controls.Add(Me.lblTypes)
        Me.Controls.Add(Me.chkA)
        Me.Controls.Add(Me.chkTXT)
        Me.Controls.Add(Me.chkMX)
        Me.Controls.Add(Me.lblOwner)
        Me.Controls.Add(Me.btnCopy)
        Me.Controls.Add(Me.lblResults)
        Me.Controls.Add(Me.txtResults)
        Me.Controls.Add(Me.lblSpecificDNS)
        Me.Controls.Add(Me.cboDNSServer)
        Me.Controls.Add(Me.txtOtherDNS)
        Me.Controls.Add(Me.lblChooseDNS)
        Me.Controls.Add(Me.btnExit)
        Me.Controls.Add(Me.btnReset)
        Me.Controls.Add(Me.btnCheckDNS)
        Me.Controls.Add(Me.lblDescription)
        Me.Controls.Add(Me.txtDomain)
        Me.Controls.Add(Me.lblEnterDomain)
        Me.Icon = CType(resources.GetObject("$this.Icon"), System.Drawing.Icon)
        Me.MinimumSize = New System.Drawing.Size(888, 726)
        Me.Name = "DNS"
        Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
        Me.Text = "DNS Checker v1.2.2"
        Me.ResumeLayout(False)
        Me.PerformLayout()

    End Sub
    Friend WithEvents btnExit As System.Windows.Forms.Button
    Friend WithEvents btnReset As System.Windows.Forms.Button
    Friend WithEvents btnCheckDNS As System.Windows.Forms.Button
    Friend WithEvents lblDescription As System.Windows.Forms.Label
    Friend WithEvents txtDomain As System.Windows.Forms.TextBox
    Friend WithEvents lblEnterDomain As System.Windows.Forms.Label
    Friend WithEvents lblChooseDNS As System.Windows.Forms.Label
    Friend WithEvents txtOtherDNS As System.Windows.Forms.TextBox
    Friend WithEvents cboDNSServer As System.Windows.Forms.ComboBox
    Friend WithEvents lblSpecificDNS As System.Windows.Forms.Label
    Friend WithEvents txtResults As System.Windows.Forms.TextBox
    Friend WithEvents lblResults As System.Windows.Forms.Label
    Friend WithEvents btnCopy As System.Windows.Forms.Button
    Friend WithEvents lblOwner As System.Windows.Forms.Label
    Friend WithEvents chkMX As System.Windows.Forms.CheckBox
    Friend WithEvents chkTXT As System.Windows.Forms.CheckBox
    Friend WithEvents chkA As System.Windows.Forms.CheckBox
    Friend WithEvents lblTypes As System.Windows.Forms.Label
    Friend WithEvents btnSave As System.Windows.Forms.Button
    Friend WithEvents btnClear As System.Windows.Forms.Button
    Friend WithEvents SaveFileDialog1 As System.Windows.Forms.SaveFileDialog
End Class


text:
declare module "simple-assign" {
  function simpleAssign<T, U>(target: T, source: U): T & U;
  function simpleAssign<T, U, V>(target: T, source1: U, source2: V): T & U & V;
  function simpleAssign<T, U, V, W>(target: T, source1: U, source2: V, source3: W): T & U & V & W;
  function simpleAssign<T, U, V, W, Q>(target: T, source1: U, source2: V, source3: W, source4: Q): T & U & V & W & Q;
  function simpleAssign<T, U, V, W, Q, R>(target: T, source1: U, source2: V, source3: W, source4: Q, source5: R): T & U & V & W & Q & R;
  function simpleAssign(target: any, ...sources: any[]): any;
  export = simpleAssign;
}


text: package testblas // import "gonum.org/v1/gonum/blas/testblas"


text:
'use strict';

System.register([], function (_export, _context) {
  "use strict";

  // obviously close to underscorejs and lodash ;)

  /**
   * Converts value to an array.
   * @param [value] the value to convert
   * @returns {Array} the converted array
   */
  function toArray(value) {
    return Array.prototype.slice.call(value);
  }

  /**
   * Converts string to camel case.
   * @param {string} [string=''] the string to convert
   * @return {string} the camel cased string
   */

  _export('toArray', toArray);

  function toCamelCase() {
    var string = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';

    return string.toLowerCase().split('-').map(function (part, index) {
      return index ? part.charAt(0).toUpperCase() + part.slice(1) : part;
    }).join('');
  }
  _export('toCamelCase', toCamelCase);

  return {
    setters: [],
    execute: function () {}
  };
});


text:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>pool – Project Dependencies</title>

    <link rel="stylesheet" href="./css/print.css" type="text/css" media="print" />
    <meta name="Date-Revision-yyyymmdd" content="20170122" />
    <meta http-equiv="Content-Language" content="en" />

                pool

        Last Published: 2017-01-22
                   | Version: 1.0

                    pool

Parent Project

                          crypto4j Parent

Project Documentation

                          Project Information

                          About

                          Dependency Information

                          Issue Tracking

                          Project Team

            Dependencies

                          Dependency Management

                          Dependency Convergence

                          Project License

                          Source Repository

                          Project Plugins

                          Project Reports

Project Dependencies

compile

The following is a list of compile dependencies for this project. These dependencies are required to compile and run the application:

GroupId
ArtifactId
Version
Type
License

org.apache.commons
commons-lang3
3.3.2
jar
The Apache Software License, Version 2.0

org.apache.commons
commons-pool2
2.4.2
jar
The Apache Software License, Version 2.0

org.slf4j
slf4j-log4j12
1.7.7
jar
MIT License

test

The following is a list of test dependencies for this project. These dependencies are only required to compile and run unit tests for the application:

GroupId
ArtifactId
Version
Type
License

junit
junit
4.11
jar
Common Public License Version 1.0

org.hamcrest
hamcrest-library
1.3
jar
New BSD License

Project Transitive Dependencies

The following is a list of transitive dependencies for this project. Transitive dependencies are the dependencies of the project dependencies.

compile

The following is a list of compile dependencies for this project. These dependencies are required to compile and run the application:

GroupId
ArtifactId
Version
Type
License

log4j
log4j
1.2.17
jar
The Apache Software License, Version 2.0

org.slf4j
slf4j-api
1.7.7
jar
MIT License

test

The following is a list of test dependencies for this project. These dependencies are only required to compile and run unit tests for the application:

GroupId
ArtifactId
Version
Type
License

org.hamcrest
hamcrest-core
1.3
jar
New BSD License

Project Dependency Graph

Dependency Tree

org.beiter.michael.crypto4j:pool:jar:1.0

pool

Description: This module is part of the crypto4j library, providing a simple and pluggable crypto
		abstraction library for Java.

        This particular Maven module contains classes to facilitate object pooling and pool
		management.

URL: http://mbeiter.github.io/crypto4j/docs/1.0/pool/

Project License: BSD 3-clause Revised License

org.slf4j:slf4j-log4j12:jar:1.7.7 (compile)

SLF4J LOG4J-12 Binding

Description: SLF4J LOG4J-12 Binding

URL: http://www.slf4j.org

Project License: MIT License

org.slf4j:slf4j-api:jar:1.7.7 (compile)

SLF4J API Module

Description: The slf4j API

URL: http://www.slf4j.org

Project License: MIT License

log4j:log4j:jar:1.2.17 (compile)

Apache Log4j

Description: Apache Log4j 1.2

URL: http://logging.apache.org/log4j/1.2/

Project License: The Apache Software License, Version 2.0

org.apache.commons:commons-lang3:jar:3.3.2 (compile)

Apache Commons Lang

Description: Apache Commons Lang, a package of Java utility classes for the
  classes that are in java.lang's hierarchy, or are considered to be so
  standard as to justify existence in java.lang.

URL: http://commons.apache.org/proper/commons-lang/

Project License: The Apache Software License, Version 2.0

org.apache.commons:commons-pool2:jar:2.4.2 (compile)

Apache Commons Pool

Description: Apache Commons Object Pooling Library

URL: http://commons.apache.org/proper/commons-pool/

Project License: The Apache Software License, Version 2.0

junit:junit:jar:4.11 (test)

JUnit

Description: JUnit is a regression testing framework written by Erich Gamma and Kent Beck.
        It is used by the developer who implements unit tests in Java.

URL: http://junit.org

Project License: Common Public License Version 1.0

org.hamcrest:hamcrest-core:jar:1.3 (test)

Hamcrest Core

Description: This is the core API of hamcrest matcher framework to be used by third-party framework providers. This includes the a foundation set of matcher implementations for common operations.

URL: https://github.com/hamcrest/JavaHamcrest/hamcrest-core

Project License: New BSD License

org.hamcrest:hamcrest-library:jar:1.3 (test)

Hamcrest library

Description: Hamcrest library of matcher implementations.

URL: https://github.com/hamcrest/JavaHamcrest/hamcrest-library

Project License: New BSD License

Licenses

MIT License: SLF4J API Module, SLF4J LOG4J-12 Binding

BSD 3-clause Revised License: pool

New BSD License: Hamcrest Core, Hamcrest library

The Apache Software License, Version 2.0: Apache Commons Lang, Apache Commons Pool, Apache Log4j

Common Public License Version 1.0: JUnit

Dependency File Details

Filename
Size
Entries
Classes
Packages
JDK Rev
Debug

junit-4.11.jar
239.30 kB
266
233
28
1.5
debug

log4j-1.2.17.jar
478.40 kB
353
314
21
1.4
debug

commons-lang3-3.3.2.jar
403.07 kB
241
217
12
1.6
debug

commons-pool2-2.4.2.jar
109.34 kB
83
68
3
1.6
debug

hamcrest-core-1.3.jar
43.97 kB
52
45
3
1.5
debug

hamcrest-library-1.3.jar
51.83 kB
46
35
7
1.5
debug

slf4j-api-1.7.7.jar
28.57 kB
35
24
3
1.5
debug

slf4j-log4j12-1.7.7.jar
8.66 kB
16
6
1
1.5
debug

Total
Size
Entries
Classes
Packages
JDK Rev
Debug

8
1.33 MB
1,092
942
78
1.6
8

compile: 5
compile: 1.00 MB
compile: 728
compile: 629
compile: 40
-
compile: 5

test: 3
test: 335.09 kB
test: 364
test: 313
test: 38
-
test: 3

Dependency Repository Locations

Repo ID
URL
Release
Snapshot
Blacklisted

maven2-repository.dev.java.net
http://download.java.net/maven/2/
Yes
Yes
Yes

central
https://repo.maven.apache.org/maven2
Yes
-
-

apache.snapshots
http://repository.apache.org/snapshots
-
Yes
-

Repository locations for each of the Dependencies.

Artifact
central
apache.snapshots

junit:junit:jar:4.11
-
-

log4j:log4j:jar:1.2.17
-
-

org.apache.commons:commons-lang3:jar:3.3.2
-
-

org.apache.commons:commons-pool2:jar:2.4.2
-
-

org.hamcrest:hamcrest-core:jar:1.3
-
-

org.hamcrest:hamcrest-library:jar:1.3
-
-

org.slf4j:slf4j-api:jar:1.7.7
-
-

org.slf4j:slf4j-log4j12:jar:1.7.7
-
-

Total
central
apache.snapshots

8 (compile: 5, test: 3)
0
0

              Copyright ©                    2014–2017
                        Michael Beiter <michael@beiter.org>.
            All rights reserved.


text:
import types

def verify___all__(module_obj):
    expected = []
    for name in dir(module_obj):
        if not name.startswith("_"):
            value = getattr(module_obj, name)
            if not isinstance(value, types.ModuleType):
                expected.append(name)
    expected.sort(key=str.lower)
    assert sorted(module_obj.__all__, key=str.lower) == expected


text:
package emil

// Directions in terms of board index
const (
	North     = 8
	South     = -8
	West      = -1
	East      = 1
	NorthWest = 7
	NorthEast = 9
	SouthWest = -9
	SouthEast = -7
)

var (
	kingDirections = [...]int{North, South, West, East, NorthWest, NorthEast, SouthWest, SouthEast}
	rookDirections = [...]int{North, South, West, East}

	kingMoves [SQUARES][]int
	rockMoves [SQUARES][][]int
)

func destinations(piece, square int) string {
	switch piece {
	case WhiteKing:
		return squareList(kingDestinationsFrom(square))
	case BlackKing:
		return squareList(kingDestinationsFrom(square))
	case WhiteRock:
		return squareLists(rockDestinationsFrom(square))
	case BlackRock:
		return squareLists(rockDestinationsFrom(square))
	default:
		panic("yet not implemented")
	}
}

func kingDestinationsFrom(source int) []int {
	var list []int
	for _, d := range kingDirections {
		dst := source + d
		if validIndex(dst) && squaresDistances[source][dst] == 1 {
			list = append(list, dst)
		}
	}
	return list
}
func rockDestinationsFrom(source int) [][]int {
	var list [][]int
	for _, d := range rookDirections {
		var dstList []int
		for step := 1; step < 8; step++ {
			dst := source + (step * d)
			if validIndex(dst) && squaresDistances[source][dst] == step && BoardSquares[source].isSameRankOrFile(BoardSquares[dst]) {
				dstList = append(dstList, dst)
			} else {
				break
			}
		}
		if len(dstList) > 0 {
			list = append(list, dstList)
		}
	}
	return list
}

func squareList(list []int) string {
	r := "["
	for i, s := range list {
		if i > 0 {
			r += ", "
		}
		r += BoardSquares[s].name
	}
	r += "]"
	return r
}

func squareLists(lists [][]int) string {
	r := "["
	for i, list := range lists {
		if i > 0 {
			r += ", "
		}
		r += squareList(list)
	}
	r += "]"
	return r
}


text:
package com.linecorp.armeria.internal.common.util;

import com.linecorp.armeria.common.util.Unwrappable;
import com.linecorp.armeria.internal.server.annotation.AnnotatedService;
import com.linecorp.armeria.server.HttpService;

public final class ServiceNamingUtil {

    public static final String GRPC_SERVICE_NAME = "com.linecorp.armeria.internal.common.grpc.GrpcLogUtil";

    public static String fullTypeHttpServiceName(HttpService service) {
        Unwrappable unwrappable = service;
        for (;;) {
            final Unwrappable delegate = unwrappable.unwrap();
            if (delegate != unwrappable) {
                unwrappable = delegate;
                continue;
            }
            if (delegate instanceof AnnotatedService) {
                return ((AnnotatedService) delegate).serviceName();
            } else {
                return delegate.getClass().getName();
            }
        }
    }

    public static String trimTrailingDollarSigns(String serviceName) {
        int lastIndex = serviceName.length() - 1;
        if (serviceName.charAt(lastIndex) != '$') {
            return serviceName;
        }

        do {
            lastIndex--;
        } while (lastIndex > 0 && serviceName.charAt(lastIndex) == '$');
        return serviceName.substring(0, lastIndex + 1);
    }

    private ServiceNamingUtil() {}
}


text:
package net.ssehub.kernel_haven.code_model.ast;

import java.util.function.Function;

import net.ssehub.kernel_haven.code_model.AbstractCodeElement;
import net.ssehub.kernel_haven.code_model.CodeElement;
import net.ssehub.kernel_haven.code_model.JsonCodeModelCache.CheckedFunction;
import net.ssehub.kernel_haven.util.FormatException;
import net.ssehub.kernel_haven.util.io.json.JsonElement;
import net.ssehub.kernel_haven.util.io.json.JsonObject;
import net.ssehub.kernel_haven.util.logic.Formula;
import net.ssehub.kernel_haven.util.null_checks.NonNull;

/**
 * Represents a comment. This can also appear inside unparsed {@link Code}, thus it implements {@link ICode}.
 *
 * @author El-Sharkawy
 */
public class Comment extends AbstractSyntaxElementNoNesting implements ICode {

    private @NonNull ICode comment;

    /**
     * Sole constructor.
     *
     * @param presenceCondition The presents condition of this comment.
     * @param comment The text content of the comment
     */
    public Comment(@NonNull Formula presenceCondition, @NonNull ICode comment) {
        super(presenceCondition);
        this.comment = comment;
    }

    /**
     * De-serializes the given JSON to a {@link CodeElement}. This is the inverse operation to
     * {@link #serializeToJson(JsonObject, Function, Function)}.
     *
     * @param json The JSON do de-serialize.
     * @param deserializeFunction The function to use for de-serializing secondary nested elements. Do not use this to
     *      de-serialize the {@link CodeElement}s in the primary nesting structure!
     *      (i.e. {@link #getNestedElement(int)})
     *
     * @throws FormatException If the JSON does not have the expected format.
     */
    protected Comment(@NonNull JsonObject json,
        @NonNull CheckedFunction<@NonNull JsonElement, @NonNull CodeElement<?>, FormatException> deserializeFunction)
        throws FormatException {
        super(json, deserializeFunction);

        this.comment = (ICode) deserializeFunction.apply(json.getObject("comment"));
    }

    /**
     * Returns the text of the comment.
     *
     * @return The text content of this comment.
     */
    public @NonNull ICode getComment() {
        return comment;
    }

    @Override
    public @NonNull String elementToString(@NonNull String indentation) {
        return "Comment:\n" + comment.toString(indentation + "\t");
    }

    @Override
    public void accept(@NonNull ISyntaxElementVisitor visitor) {
        visitor.visitComment(this);
    }

    @Override
    protected int hashCode(@NonNull CodeElementHasher hasher) {
        return super.hashCode(hasher) + hasher.hashCode((AbstractCodeElement<?>) comment);
    }

    @Override
    protected boolean equals(@NonNull AbstractCodeElement<?> other, @NonNull CodeElementEqualityChecker checker) {
        boolean equal = other instanceof Comment && super.equals(other, checker);

        if (equal) {
            Comment o = (Comment) other;

            equal = checker.isEqual((AbstractCodeElement<?>) this.comment, (AbstractCodeElement<?>) o.comment);
        }

        return equal;
    }

    @Override
    public void serializeToJson(JsonObject result,
            @NonNull Function<@NonNull CodeElement<?>, @NonNull JsonElement> serializeFunction,
            @NonNull Function<@NonNull CodeElement<?>, @NonNull Integer> idFunction) {
        super.serializeToJson(result, serializeFunction, idFunction);

        result.putElement("comment", serializeFunction.apply(comment));
    }

}


text:
package io.cattle.platform.iaas.api.auth.github.resource;

import io.github.ibuildthecloud.gdapi.annotation.Field;
import io.github.ibuildthecloud.gdapi.annotation.Type;

import java.util.List;

@Type(name = "githubconfig")
public class GithubConfig {

    private Boolean enabled;
    private String accessMode;
    private String clientId;
    private String clientSecret;
    private List<String> allowedUsers;
    private List<String> allowedOrganizations;

    public GithubConfig(Boolean enabled, String accessMode, String clientId, List<String> allowedUsers, List<String> allowedOrganizations) {
        this.enabled = enabled;
        this.accessMode = accessMode;
        this.clientId = clientId;
        this.allowedUsers = allowedUsers;
        this.allowedOrganizations = allowedOrganizations;
    }

    @Field(nullable = true)
    public Boolean getEnabled() {
        return enabled;
    }

    @Field(nullable = true)
    public String getClientId() {
        return clientId;
    }

    @Field(nullable = true)
    public String getClientSecret() {
        return clientSecret;
    }

    @Field(nullable = true)
    public List<String> getAllowedUsers() {
        return allowedUsers;
    }

    @Field(nullable = true)
    public List<String> getAllowedOrganizations() {
        return allowedOrganizations;
    }

    @Field(nullable = false)
    public String getAccessMode() {
        return accessMode;
    }
}


text:
package com.hazelcast.test.mocknetwork;

import com.hazelcast.internal.networking.OutboundFrame;
import com.hazelcast.nio.Address;
import com.hazelcast.nio.Connection;
import com.hazelcast.nio.ConnectionManager;
import com.hazelcast.nio.ConnectionType;
import com.hazelcast.nio.Packet;
import com.hazelcast.nio.PacketIOHelper;
import com.hazelcast.spi.impl.NodeEngineImpl;

import java.net.InetAddress;
import java.net.InetSocketAddress;
import java.net.UnknownHostException;
import java.nio.ByteBuffer;
import java.util.concurrent.atomic.AtomicBoolean;

import static com.hazelcast.test.mocknetwork.MockConnectionManager.isTargetLeft;
import static com.hazelcast.util.ExceptionUtil.rethrow;
import static org.junit.Assert.assertNotNull;

public class MockConnection implements Connection {

    protected final Address localEndpoint;
    protected final NodeEngineImpl remoteNodeEngine;

    volatile MockConnection localConnection;

    private final AtomicBoolean alive = new AtomicBoolean(true);

    private final Address remoteEndpoint;

    public MockConnection(Address localEndpoint, Address remoteEndpoint, NodeEngineImpl remoteNodeEngine) {
        this.localEndpoint = localEndpoint;
        this.remoteEndpoint = remoteEndpoint;
        this.remoteNodeEngine = remoteNodeEngine;
    }

    @Override
    public Throwable getCloseCause() {
        return null;
    }

    @Override
    public String getCloseReason() {
        return null;
    }

    public Address getEndPoint() {
        return remoteEndpoint;
    }

    public boolean write(OutboundFrame frame) {
        if (!isAlive()) {
            return false;
        }

        Packet packet = (Packet) frame;
        Packet newPacket = readFromPacket(packet);
        try {
            remoteNodeEngine.getPacketDispatcher().accept(newPacket);
        } catch (Exception e) {
            throw rethrow(e);
        }
        return true;
    }

    private Packet readFromPacket(Packet packet) {
        Packet newPacket;
        PacketIOHelper packetReader = new PacketIOHelper();
        PacketIOHelper packetWriter = new PacketIOHelper();
        ByteBuffer buffer = ByteBuffer.allocate(4096);
        boolean writeDone;
        do {
            writeDone = packetWriter.writeTo(packet, buffer);
            buffer.flip();
            newPacket = packetReader.readFrom(buffer);
            if (buffer.hasRemaining()) {
                throw new IllegalStateException("Buffer should be empty! " + buffer);
            }
            buffer.clear();
        } while (!writeDone);

        assertNotNull(newPacket);
        newPacket.setConn(localConnection);
        return newPacket;
    }

    public long lastReadTimeMillis() {
        return System.currentTimeMillis();
    }

    public long lastWriteTimeMillis() {
        return System.currentTimeMillis();
    }

    public void close(String msg, Throwable cause) {
        if (!alive.compareAndSet(true, false)) {
            return;
        }

        if (localConnection != null) {
            //this is a member-to-member connection
            NodeEngineImpl nodeEngine = localConnection.remoteNodeEngine;
            ConnectionManager connectionManager = nodeEngine.getNode().connectionManager;
            localConnection.close(msg, cause);
            connectionManager.onConnectionClose(this);
        } else {
            //this is a client-member connection. we need to notify NodeEngine about a client connection being closed.
            ConnectionManager connectionManager = remoteNodeEngine.getNode().connectionManager;
            connectionManager.onConnectionClose(this);
        }
    }

    @Override
    public void setType(ConnectionType type) {
        //NO OP
    }

    public boolean isClient() {
        return false;
    }

    @Override
    public ConnectionType getType() {
        return ConnectionType.MEMBER;
    }

    public InetAddress getInetAddress() {
        try {
            return localEndpoint.getInetAddress();
        } catch (UnknownHostException e) {
            throw rethrow(e);
        }
    }

    public InetSocketAddress getRemoteSocketAddress() {
        return new InetSocketAddress(getInetAddress(), getPort());
    }

    public int getPort() {
        return localEndpoint.getPort();
    }

    @Override
    public boolean isAlive() {
        return alive.get() && !isTargetLeft(remoteNodeEngine.getNode());
    }

    @Override
    public String toString() {
        return "MockConnection{" + "localEndpoint=" + localEndpoint + ", remoteEndpoint=" + remoteEndpoint + '}';
    }
}


text:
SYNONYM

#### According to
The Catalogue of Life, 3rd January 2011

#### Published in
Mycol. eur. (Erlanga) 2: 86 (1825)

#### Original name
Polyporus loricatus Pers., 1825

### Remarks
null