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

    >
    <ImageView
        android:id="@+id/contactphotoleft"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentLeft="true"
        android:layout_alignParentTop="true"
        android:layout_marginTop="5dp"/>
    <RelativeLayout
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
	    android:layout_marginRight="50dp"
	    android:layout_marginTop="8dp"
	    android:layout_marginLeft="2dp"
	    android:layout_marginBottom="8dp"
	    android:background="@drawable/chatfrom_bg_selector"
        >
        <TextView
	        android:id="@+id/dateleft"
	        android:layout_width="wrap_content"
	        android:layout_height="wrap_content"
	        android:layout_alignParentLeft="true"
	        android:layout_alignParentTop="true"
	        android:textSize="10sp"
	        android:textColor="@color/text_color_light"/>

	    <TextView
	        android:id="@+id/bodyleft"
	        android:layout_width="wrap_content"
	        android:layout_height="wrap_content"
	        android:gravity="center_vertical"
	        android:layout_below="@id/dateleft"
	        android:layout_alignLeft="@id/dateleft"
	        android:textColor="@color/text_color_deep"/>

    </RelativeLayout>

</RelativeLayout>

redpajama_set_name: RedPajamaGithub


text:
DELIMITER /
--
-- Copyright 2005-2014 The Kuali Foundation
--
-- Licensed under the Educational Community 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.opensource.org/licenses/ecl2.php
--
-- 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.
--

-- DROP TABLE IF EXISTS krew_ppl_flw_attr_t ;
-- DROP TABLE IF EXISTS krew_ppl_flw_mbr_t ;
-- DROP TABLE IF EXISTS krew_typ_attr_t ;
-- DROP TABLE IF EXISTS krew_attr_defn_t ;
-- DROP TABLE IF EXISTS krew_ppl_flw_t ;
-- DROP TABLE IF EXISTS krew_typ_t ;
-- DROP TABLE IF EXISTS krew_ppl_flw_mbr_s ;
-- DROP TABLE IF EXISTS krew_ppl_flw_attr_s ;
-- DROP TABLE IF EXISTS krew_ppl_flw_s ;
-- DROP TABLE IF EXISTS krew_attr_defn_s ;
-- DROP TABLE IF EXISTS krew_typ_attr_s ;
-- DROP TABLE IF EXISTS krew_typ_s ;

-- -----------------------------------------------------
-- Table krew_typ_t
-- -----------------------------------------------------

CREATE  TABLE krew_typ_t (
  typ_id VARCHAR(40) NOT NULL ,
  nm VARCHAR(100) NOT NULL ,
  nmspc_cd VARCHAR(40) NOT NULL ,
  srvc_nm VARCHAR(200) NULL ,
  actv VARCHAR(1) NOT NULL DEFAULT 'Y' ,
  ver_nbr DECIMAL NOT NULL DEFAULT 0 ,
  PRIMARY KEY (typ_id) )
ENGINE = InnoDB
/

CREATE UNIQUE INDEX krew_typ_tc1 ON krew_typ_t (nm, nmspc_cd)
/

-- -----------------------------------------------------
-- Table krew_ppl_flw_t
-- -----------------------------------------------------

CREATE  TABLE krew_ppl_flw_t (
  ppl_flw_id VARCHAR(40) NOT NULL ,
  nm VARCHAR(100) NOT NULL ,
  nmspc_cd VARCHAR(40) NOT NULL ,
  typ_id VARCHAR(40) NOT NULL ,
  actv VARCHAR(1) NOT NULL DEFAULT 'Y' ,
  ver_nbr DECIMAL NOT NULL DEFAULT 0 ,
  desc_txt VARCHAR(4000) NULL ,
  PRIMARY KEY (ppl_flw_id) ,
  CONSTRAINT krew_ppl_flw_fk1
    FOREIGN KEY (typ_id )
    REFERENCES krew_typ_t (typ_id ))
ENGINE = InnoDB
/

CREATE UNIQUE INDEX krew_ppl_flw_tc1 ON krew_ppl_flw_t (nm, nmspc_cd)
/

DELIMITER ;
DROP PROCEDURE IF EXISTS p;

DELIMITER //
CREATE PROCEDURE p ()
BEGIN
    DECLARE c INT;

    SELECT COUNT(*) INTO c FROM INFORMATION_SCHEMA.STATISTICS WHERE TABLE_NAME = 'krew_ppl_flw_t' AND INDEX_NAME = 'krew_ppl_flw_fk1';
    IF c=0 THEN
        set @create_index := 'CREATE INDEX krew_ppl_flw_fk1 ON krew_ppl_flw_t (typ_id)';
        prepare create_index_stmt from @create_index;
        execute create_index_stmt;
        deallocate prepare create_index_stmt;
    ELSE
        SELECT 'krew_ppl_flw_fk1 exists, so not running statement to add it.';
    END IF;
END //
DELIMITER ;

CALL p ();

DROP PROCEDURE IF EXISTS p;
DELIMITER /

-- -----------------------------------------------------
-- Table krew_attr_defn_t
-- -----------------------------------------------------

CREATE  TABLE krew_attr_defn_t (
  attr_defn_id VARCHAR(40) NOT NULL ,
  nm VARCHAR(100) NOT NULL ,
  nmspc_cd VARCHAR(40) NOT NULL ,
  lbl VARCHAR(40) NULL ,
  actv VARCHAR(1) NOT NULL DEFAULT 'Y' ,
  cmpnt_nm VARCHAR(100) NULL ,
  ver_nbr DECIMAL NOT NULL DEFAULT 0 ,
  desc_txt VARCHAR(40) NULL ,
  PRIMARY KEY (attr_defn_id) )
ENGINE = InnoDB
/

CREATE UNIQUE INDEX krew_attr_defn_tc1 ON krew_attr_defn_t (nm, nmspc_cd)
/

-- -----------------------------------------------------
-- Table krew_typ_attr_t
-- -----------------------------------------------------

CREATE  TABLE krew_typ_attr_t (
  typ_attr_id VARCHAR(40) NOT NULL ,
  seq_no DECIMAL(5,0) NOT NULL ,
  typ_id VARCHAR(40) NOT NULL ,
  attr_defn_id VARCHAR(255) NOT NULL ,
  actv VARCHAR(1) NOT NULL DEFAULT 'Y' ,
  ver_nbr DECIMAL NOT NULL DEFAULT 0 ,
  PRIMARY KEY (typ_attr_id) ,
  CONSTRAINT krew_typ_attr_fk1
    FOREIGN KEY (attr_defn_id )
    REFERENCES krew_attr_defn_t (attr_defn_id ),
  CONSTRAINT krew_typ_attr_fk2
    FOREIGN KEY (typ_id )
    REFERENCES krew_typ_t (typ_id ))
ENGINE = InnoDB
/

CREATE INDEX krew_typ_attr_ti1 ON krew_typ_attr_t (attr_defn_id)
/

CREATE INDEX krew_typ_attr_ti2 ON krew_typ_attr_t (typ_id)
/

CREATE UNIQUE INDEX krew_typ_attr_tc1 ON krew_typ_attr_t (typ_id, attr_defn_id)
/

-- -----------------------------------------------------
-- Table krew_ppl_flw_mbr_t
-- -----------------------------------------------------

CREATE  TABLE krew_ppl_flw_mbr_t (
  ppl_flw_mbr_id VARCHAR(40) NOT NULL ,
  ppl_flw_id VARCHAR(40) NOT NULL ,
  mbr_typ_cd VARCHAR(1) NOT NULL ,
  mbr_id VARCHAR(40) NOT NULL ,
  prio DECIMAL(8,0) NULL ,
  dlgt_frm_id VARCHAR(40) NULL ,
  ver_nbr DECIMAL NOT NULL DEFAULT 0 ,
  PRIMARY KEY (ppl_flw_mbr_id) ,
  CONSTRAINT krew_ppl_flw_mbr_fk1
    FOREIGN KEY (ppl_flw_id )
    REFERENCES krew_ppl_flw_t (ppl_flw_id ),
  CONSTRAINT krew_ppl_flw_mbr_fk2
    FOREIGN KEY (dlgt_frm_id )
    REFERENCES krew_ppl_flw_mbr_t (ppl_flw_mbr_id ))
ENGINE = InnoDB
/

CREATE INDEX krew_ppl_flw_mbr_ti1 ON krew_ppl_flw_mbr_t (ppl_flw_id)
/

CREATE INDEX krew_ppl_flw_mbr_ti2 ON krew_ppl_flw_mbr_t (ppl_flw_id, prio)
/

CREATE UNIQUE INDEX krew_ppl_flw_mbr_tc1 ON krew_ppl_flw_mbr_t (ppl_flw_id, mbr_typ_cd, mbr_id, dlgt_frm_id)
/

DELIMITER ;
DROP PROCEDURE IF EXISTS p;

DELIMITER //
CREATE PROCEDURE p ()
BEGIN
    DECLARE c INT;

    SELECT COUNT(*) INTO c FROM INFORMATION_SCHEMA.STATISTICS WHERE TABLE_NAME = 'krew_ppl_flw_mbr_t' AND INDEX_NAME = 'krew_ppl_flw_mbr_fk2';
    IF c=0 THEN
        set @create_index := 'CREATE INDEX krew_ppl_flw_mbr_fk2 ON krew_ppl_flw_mbr_t (dlgt_frm_id)';
        prepare create_index_stmt from @create_index;
        execute create_index_stmt;
        deallocate prepare create_index_stmt;
    ELSE
        SELECT 'krew_ppl_flw_mbr_fk2, so not running statement to add it.';
    END IF;
END //
DELIMITER ;

CALL p ();

DROP PROCEDURE IF EXISTS p;
DELIMITER /

-- -----------------------------------------------------
-- Table krew_ppl_flw_attr_t
-- -----------------------------------------------------

CREATE  TABLE krew_ppl_flw_attr_t (
  ppl_flw_attr_id VARCHAR(40) NOT NULL ,
  ppl_flw_id VARCHAR(40) NOT NULL ,
  attr_defn_id VARCHAR(40) NOT NULL ,
  attr_val VARCHAR(400) NULL ,
  ver_nbr DECIMAL NOT NULL DEFAULT 0 ,
  PRIMARY KEY (ppl_flw_attr_id) ,
  CONSTRAINT krew_ppl_flw_attr_fk1
    FOREIGN KEY (ppl_flw_id )
    REFERENCES krew_ppl_flw_t (ppl_flw_id ),
  CONSTRAINT krew_ppl_flw_attr_fk2
    FOREIGN KEY (attr_defn_id )
    REFERENCES krew_attr_defn_t (attr_defn_id ))
ENGINE = InnoDB
/

CREATE INDEX krew_ppl_flw_attr_ti1 ON krew_ppl_flw_attr_t (ppl_flw_id)
/

CREATE INDEX krew_ppl_flw_attr_ti2 ON krew_ppl_flw_attr_t (attr_defn_id)
/

-- -----------------------------------------------------
-- Table krew_typ_s
-- -----------------------------------------------------

CREATE  TABLE krew_typ_s (
  id BIGINT(19) NOT NULL AUTO_INCREMENT ,
  PRIMARY KEY (id) )
ENGINE = MyISAM
AUTO_INCREMENT = 10000
/

-- -----------------------------------------------------
-- Table krew_typ_attr_s
-- -----------------------------------------------------

CREATE  TABLE krew_typ_attr_s (
  id BIGINT(19) NOT NULL AUTO_INCREMENT ,
  PRIMARY KEY (id) )
ENGINE = MyISAM
AUTO_INCREMENT = 10000
/

-- -----------------------------------------------------
-- Table krew_attr_defn_s
-- -----------------------------------------------------

CREATE  TABLE krew_attr_defn_s (
  id BIGINT(19) NOT NULL AUTO_INCREMENT ,
  PRIMARY KEY (id) )
ENGINE = MyISAM
AUTO_INCREMENT = 10000
/

-- -----------------------------------------------------
-- Table krew_ppl_flw_s
-- -----------------------------------------------------

CREATE  TABLE krew_ppl_flw_s (
  id BIGINT(19) NOT NULL AUTO_INCREMENT ,
  PRIMARY KEY (id) )
ENGINE = MyISAM
AUTO_INCREMENT = 10000
/

-- -----------------------------------------------------
-- Table krew_ppl_flw_attr_s
-- -----------------------------------------------------

CREATE  TABLE krew_ppl_flw_attr_s (
  id BIGINT(19) NOT NULL AUTO_INCREMENT ,
  PRIMARY KEY (id) )
ENGINE = MyISAM
AUTO_INCREMENT = 10000
/

-- -----------------------------------------------------
-- Table krew_ppl_flw_mbr_s
-- -----------------------------------------------------

CREATE  TABLE krew_ppl_flw_mbr_s (
  id BIGINT(19) NOT NULL AUTO_INCREMENT ,
  PRIMARY KEY (id) )
ENGINE = MyISAM
AUTO_INCREMENT = 10000
/
DELIMITER ;


text:
'use strict';
import { commands, Disposable } from 'vscode';
import { CommandContext, extensionId, setCommandContext } from './constants';
import { Logger } from './logger';

export declare interface KeyCommand {
	onDidPressKey?(key: Keys): Thenable<{} | undefined>;
}

const keyNoopCommand = Object.create(null) as KeyCommand;
export { keyNoopCommand as KeyNoopCommand };

export declare type Keys = 'left' | 'right' | ',' | '.' | 'escape';
export const keys: Keys[] = ['left', 'right', ',', '.', 'escape'];

export declare interface KeyMapping {
	[id: string]: KeyCommand | (() => Thenable<KeyCommand>) | undefined;
}

const mappings: KeyMapping[] = [];

export class KeyboardScope implements Disposable {
	constructor(private readonly mapping: KeyMapping) {
		for (const key in mapping) {
			mapping[key] = mapping[key] || keyNoopCommand;
		}
	}

	async dispose() {
		const index = mappings.indexOf(this.mapping);
		Logger.log('KeyboardScope.dispose', mappings.length, index);
		if (index === mappings.length - 1) {
			mappings.pop();
			await this.updateKeyCommandsContext(mappings[mappings.length - 1]);
		} else {
			mappings.splice(index, 1);
		}
	}

	async begin() {
		mappings.push(this.mapping);
		await this.updateKeyCommandsContext(this.mapping);
		return this;
	}

	async clearKeyCommand(key: Keys) {
		const mapping = mappings[mappings.length - 1];
		if (mapping !== this.mapping || !mapping[key]) return;

		Logger.log('KeyboardScope.clearKeyCommand', mappings.length, key);
		mapping[key] = undefined;
		await setCommandContext(`${CommandContext.Key}:${key}`, false);
	}

	async setKeyCommand(key: Keys, command: KeyCommand | (() => Promise<KeyCommand>)) {
		const mapping = mappings[mappings.length - 1];
		if (mapping !== this.mapping) return;

		Logger.log('KeyboardScope.setKeyCommand', mappings.length, key, Boolean(mapping[key]));

		if (!mapping[key]) {
			mapping[key] = command;
			await setCommandContext(`${CommandContext.Key}:${key}`, true);
		} else {
			mapping[key] = command;
		}
	}

	private async updateKeyCommandsContext(mapping: KeyMapping) {
		const promises = [];
		for (const key of keys) {
			promises.push(setCommandContext(`${CommandContext.Key}:${key}`, Boolean(mapping && mapping[key])));
		}
		await Promise.all(promises);
	}
}

export class Keyboard implements Disposable {
	private _disposable: Disposable;

	constructor() {
		const subscriptions = keys.map(key =>
			commands.registerCommand(`${extensionId}.key.${key}`, () => this.execute(key), this)
		);
		this._disposable = Disposable.from(...subscriptions);
	}

	dispose() {
		this._disposable && this._disposable.dispose();
	}

	beginScope(mapping?: KeyMapping): Promise<KeyboardScope> {
		Logger.log('Keyboard.beginScope', mappings.length);
		return new KeyboardScope(mapping ? Object.assign(Object.create(null), mapping) : Object.create(null)).begin();
	}

	async execute(key: Keys): Promise<{} | undefined> {
		if (!mappings.length) return undefined;

		try {
			const mapping = mappings[mappings.length - 1];

			let command = mapping[key] as KeyCommand | (() => Promise<KeyCommand>);
			if (typeof command === 'function') {
				command = await command();
			}
			if (!command || typeof command.onDidPressKey !== 'function') return undefined;

			Logger.log('Keyboard.execute', key);

			return await command.onDidPressKey(key);
		} catch (ex) {
			Logger.error(ex, 'Keyboard.execute');
			return undefined;
		}
	}
}


text:
package org.extremecomponents.table.calc;

/**
 * @author Jeff Johnston
 */
public final class CalcResult {
    private final String name;
    private final Number value;

    public CalcResult(String name, Number value) {
        this.name = name;
        this.value = value;
    }

    public String getName() {
        return name;
    }

    public Number getValue() {
        return value;
    }
}


text:
@interface RandomNumberViewController ()

@property (assign, nonatomic) int counter;
@property (assign, nonatomic) unsigned char hashkeyChar;
@property (strong, nonatomic) NSMutableData *hashkeyData;
@property (assign, nonatomic) unsigned char secretkeyChar;
@property (strong, nonatomic) NSMutableData *secretkeyData;
@property (assign, nonatomic) unsigned char kAChar;
@property (strong, nonatomic) NSMutableData *kAData;

@end

@implementation RandomNumberViewController

#define OUTPUT_LENGTH 160

- (void)touchesBegan:(NSSet*)touches withEvent:(UIEvent*)event
{
    UITouch *touch = [[event allTouches] anyObject];
    CGPoint touchPoint = [touch locationInView:self.view];
    [self saveCGPoint:touchPoint];

//    NSLog(@"Touches began, x: %f y: %f", touchPoint.x, touchPoint.y);
}

- (void)touchesMoved:(NSSet*)touches withEvent:(UIEvent*)event
{
    UITouch *touch = [[event allTouches] anyObject];
    CGPoint touchPoint = [touch locationInView:self.view];
    [self saveCGPoint:touchPoint];

//    NSLog(@"Touches moved, x: %f y: %f", touchPoint.x, touchPoint.y);
}

- (void)touchesEnded:(NSSet*)touches withEvent:(UIEvent*)event
{
    UITouch *touch = [[event allTouches] anyObject];
    CGPoint touchPoint = [touch locationInView:self.view];
    [self saveCGPoint:touchPoint];

//    NSLog(@"Touches ended, x: %f y: %f", touchPoint.x, touchPoint.y);
}

- (void)touchesCancelled:(NSSet*)touches withEvent:(UIEvent*)event
{
    UITouch *touch = [[event allTouches] anyObject];
    CGPoint touchPoint = [touch locationInView:self.view];
    [self saveCGPoint:touchPoint];

//    NSLog(@"Touches cancelled, x: %f y: %f", touchPoint.x, touchPoint.y);
}

- (void)saveCGPoint:(CGPoint)point
{
    if (self.isSHCBK && self.counter<OUTPUT_LENGTH/2) {
        self.kAChar = self.kAChar << 1;
        int x = point.x;
        unsigned int lsb_x = x % 2;
        self.kAChar = self.kAChar | lsb_x;

        self.kAChar = self.kAChar << 1;
        int y = point.y;
        unsigned int lsb_y = y % 2;
        self.kAChar = self.kAChar | lsb_y;

        if ((self.counter+1)%4==0) { // 2 bits processed for every action
            unsigned char array[1] = {self.kAChar};
            [self.kAData appendBytes:array length:sizeof(unsigned char)];
            self.kAChar = 0;
        }
    } else if (self.isSHCBK && self.counter==OUTPUT_LENGTH/2) {
        if (self.isTesting) {
            [self.delegate processReturnedTestingData:self.kAData];
            [self dismissViewControllerAnimated:NO completion:nil];
        } else {
            [self.delegate processSHCBKkA:self.kAData];
            [self dismissViewControllerAnimated:YES completion:nil];
        }
    } else if (!self.isSHCBK && self.counter<OUTPUT_LENGTH) {
        self.hashkeyChar = self.hashkeyChar << 1;
        int x = point.x;
        unsigned int lsb_x = x % 2;
        self.hashkeyChar = self.hashkeyChar | lsb_x;

        self.secretkeyChar = self.secretkeyChar << 1;
        int y = point.y;
        unsigned int lsb_y = y % 2;
        self.secretkeyChar = self.secretkeyChar | lsb_y;

        if ((self.counter+1)%8==0) {
            unsigned char array1[1] = {self.hashkeyChar};
            [self.hashkeyData appendBytes:array1 length:sizeof(unsigned char)];
            self.hashkeyChar = 0;

            unsigned char array2[1] = {self.secretkeyChar};
            [self.secretkeyData appendBytes:array2 length:sizeof(unsigned char)];
            self.secretkeyChar = 0;
        }
    } else if (!self.isSHCBK && self.counter==OUTPUT_LENGTH) {
        if (self.isTesting) {
            [self.delegate processReturnedTestingData:self.hashkeyData];
            [self.delegate processReturnedTestingData:self.secretkeyData];
            [self dismissViewControllerAnimated:NO completion:nil];
        } else {
            [self.delegate processGroupHCBKhashKey:self.hashkeyData andSecretKey:self.secretkeyData];
            [self dismissViewControllerAnimated:YES completion:nil];
        }
    }
    self.counter++;
}

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
    // Do any additional setup after loading the view.

    self.counter = 0;

    self.hashkeyChar = 0;
    self.hashkeyData = [[NSMutableData alloc] init];

    self.secretkeyChar = 0;
    self.secretkeyData = [[NSMutableData alloc] init];

    self.kAChar = 0;
    self.kAData = [[NSMutableData alloc] init];
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end


text:
<?php
declare(strict_types=1);

namespace Cake\TestSuite\Constraint\Email;

use Cake\Mailer\Message;

/**
 * MailContainsText
 *
 * @internal
 */
class MailContainsText extends MailContains
{
    /**
     * @inheritDoc
     */
    protected $type = Message::MESSAGE_TEXT;

    /**
     * Assertion message string
     *
     * @return string
     */
    public function toString(): string
    {
        if ($this->at) {
            return sprintf('is in the text message of email #%d', $this->at) . $this->getAssertedMessages();
        }

        return 'is in the text message of an email' . $this->getAssertedMessages();
    }
}


text:
namespace Engineering.Expressions
{
    public interface IDerived<T> : IExpressible
        where T : IExpressible
    {
        Expression<T> Expression { get; }
        bool HasCustomRepresentation { get; }
    }
}


text:
title: Italian
taxonomy:
    category: docs
---

![Italian](italian-doc.jpg)

Italian is a child theme of the Buildr template. This means it uses the Build.r template and applies Italian specific style via Buildr's built in child theme functionality.

## A note about child themes
The files for child themes are located in the templates/buildr/child folder and are selected in the template admin design side panel.  You can read a full explanation of child theming in Build.r here.

## Installing Italian

The following applies to situations where you have already installed the Buildr template on your site or are installing buildr for the first time.

**Step 1** - Download and install the latest version of the Buildr template.

**Step 2** - Once installed navigate to the template manager and edit the Buildr template.

**Step 3** - Select the Italian example configuration from the load saved settings dropdown.

![Apply Italian](config-1-theme.gif)

After doing this the Italian child theme will be selected and the Italian preset will be set in the preset dropdown list.

Applying the Italian example configuration sets the required theme panel options including the layout blocks used on the demo site in the layout tool.

**Step 4** - Click Save. After clicking save the required assets for the Italian theme will be generated (theme files, css files etc) and will now be available for use on your website.

You can customise the template through the theme control panel, according to the image:

![Apply Italian](config-2-theme-italian.gif)

## Install the Italian quickstart package

If you are starting a new website from scratch we highly recommend installing the Italian quickstart package. This is by far the simplest way to recreate the demo site on your server.

Learn about installing the quickstart package.

## Recreating the Italian demo site

## Description of elements

## Menu

![Menu](menuit.png)

**The offcanvas menu**

![Toggle Menu](canvasita.png)
![Toggle Menu](canvasita2.png)

**Collapsed menu**

The configuration of offcanvas menu is controlled according to the following screen in the theme admin panel

![Collapse](colapsedmenuitalian.png)

**Offcanvas button settings**

The settings used to customize the offcanvas menu are controlled according to the next image.

![Toggle Menu](canvas2ita.png)

**Positioning the offcanvas menu**

The offcanvas menu is located according to the image below. It is enabled to access the website on portable devices.

![Collapse Type](canvas-positionita.png)

**Please note:** The offcanvas menu will only be activated and viewed when accessing the website from a portable device.

To edit the row settings, click the row icon according to the figure below and then go into the style tab. To copy the settings from the demo, set them according to the next image.

![Top Right Row](editcanvasita.png)
![Top Right Row](canvas-style-italian.gif)

To customize the menus, follow the panel according to the image:

![Top Right Row](screen_menu_admin.png)

## Logo

![Logo](logo-ita.png)

The logo in the Utafiti template uses a custom html module published to the logo position.

The markup used in this position is:

Italian Restaurant

![Logo Default](logoita.png)

Do not forget to create a module for the logo of the mobile version as the image. The other settings are the same as the previous one.

![Logo](logoitamobile.png)

Remember to select all the contents within the text field, and add the link under the picture.

![Logo](link-logoita.png)

## Contact

![Logo](contact-ita.png)

This module displays a contact phone made with a custom html (icon + text)
![Logo](phone-ita.png)
To view the list of Zen Shortcode tags, access path: Features menu> Tools > Zen Shortcode> tab font icons:

![Logo](shortcode-italian.png)

## Social Icons

The social icons are located in the top-right position of the theme.

### SOCIAL POSITION TOP-RIGHT
![Social Icons](social-head-ita.png)

- The social icons position is within the logo line, according to the image:

![Social Icons](social-head-position.png)

### Social icon content
The content for the social icons can be set in the social panel in the template panel.

![Social icon content](social-icons-settings.png)

### Social Icon appearance

The color, size and other aspects of the social icon appearance can be controlled via the general settings side panel in the template's design panel.

![Social icon content2](screen_social_admin.png)

![Social icon content2](social-icons-settings2.png)

These icons in top-right position are hidden when accessed on smartphones and others devices.

### SOCIAL POSITION COPYRIGHT

![Sociat](social-ita.png)

- This is the thin module in position copyright.
- Leave module title display desabled.

To configure the top slideshow, see the illustration below:

![Social](config-social.gif)

For the Featured module assume the style of the Italian theme, do not forget to use it, according to the image below

Module class suffix:

      zencenter

![Social](social-css.png)

### Social icons on smaller screens

Accessing the project in portable devices, social icons are like the image:

![Social icon Mobile](social-device.png)

As can be seen in the screenshot above, the social block is designed to be hidden on all screens larger than the phone breakpoint size. The value for the breakpoints can be set in the Layout > Breakpoints section of the General settings side panel.

### Social Icon appearance

The colour, size and other aspects of the social-mobile icon appearance can be controlled via the general settings side panel in the template's design panel.

![Social Icons mobile](social-device-config-ita.png)

## Module Banner Slideshow

![slideshow](banner-ita.png)

To configure the top slideshow, see the illustration below:

![slideshow](confg-bannerita.png)

![slideshow](config-slidehome-ita.gif)

Slideshow items use standard joomla articles:

![slideshow](content-slide1-ita.png)

![slideshow](content-slide2-ita.png)

The content selection is made according to the image:

![slideshow](config-content-slide-ita.gif)

## Module Our Menu Specialities

![especialities](our-menu-ita.png)

The module configuration in accordance with the image:

![our services ](config_ourmenu-ita.png)

![our services ](config-ourmenu-ita.gif)

- Please note the number of columns! (3)
- This is the thin module in position grid5.
- Leave module title display enabled.

The content selection is made according to the image:

![slideshow](config-ourmenu2-ita.gif)

The content that is displayed is generated from joomla articles.

![our services ](conten-out-1-ita.png)

![our services ](conten-out-2-ita.png)

For the Featured module assume the style of the Italian theme, do not forget to use it, according to the image below

Module class suffix:

     zen-centered

![our services ](class-ourmenu-ita.png)

## Module About The Company

![our services ](company.png)

The module configuration in accordance with the image:

![our services ](company-module.gif)

- This is the thin module in position grid9.
- Leave module title display enabled.

The content selection is made according to the image:

![slideshow](company-module-content.gif)

The content that is displayed is generated from joomla articles.

![our services ](conten-out-1-ita.png)

![our services ](conten-out-2-ita.png)

For the Featured module assume the style of the Italian theme, do not forget to use it, according to the image below:

Module class suffix:

     icon

![our services ](class-company.png)

## Module People Talk About Us

![the testimony](testimony.png)

This module is constituted with a module Custom HTML (1º) and another module zentools (2º).

1º -The module configuration follows the image:

![our services ](testimony-content.gif)
![our services ](testimony-background.png)

- This is the thin module in position grid13.
- Leave module title display desabled.

2º -The module configuration follows the image:

![our services ](testimony-2.gif)
![our services ](testimony.gif)

- This is the thin module in position grid14.
- Leave module title display desabled.

The content selection is made according to the image:

![slideshow](testimony-3.gif)

The content that is displayed is generated from joomla articles.

![our services ](testimony-4.png)

![our services ](testimony-5.png)

## Module Menu Footer

![menu](foot-menu.png)

This is type module menu in position footer with title enabled.

![menu](menu-foot-conf-ita.png)

## Module Copyright Address

![address](addres.png)

This is type module custom in position copyright with title enabled.

![address](adress-conf-ita.png)

## Module Sample Menu

![address](sample-menu-ita.gif)

The module configuration in accordance with the image:

![menu](sample-menu-config1-ita.gif)
![menu](sample-menu-config2-ita.gif)

- This is formed by two modules in position grid-example-1 called in an article through the tag {loadposition) within an article.

![menu position](sample-menu-article-position.png)
- Leave the modules with title enabled.

The modules  Starters and Mains following the same configuration.

The content selection is made according to the image:

![slideshow](sample-menu-config-content-ita.gif)

The content that is displayed is generated from joomla articles.

![our services ](content_menu_smart.png)

![our services ](sample-content-img.png)

For the Featured module assume the style of the Italian theme, do not forget to use it, according to the image below:

Module class suffix:

      menuContent

![our services ](sample-menu-config-class-ita.gif)

## Module Restaurant Map

The background used in page Single Contact is managed by a JB Maps2 module. Where you can change the images,

![our services ](map-single.jpg)

The settings you can see in the images:

![map ](map.gif)
- This is the thin module in position grid17.
- Leave module title display disabled.


text:
#ifndef WebGLLoseContext_h
#define WebGLLoseContext_h

#include "bindings/v8/ScriptWrappable.h"
#include "core/html/canvas/WebGLExtension.h"
#include "wtf/PassRefPtr.h"

namespace WebCore {

class WebGLRenderingContext;

class WebGLLoseContext : public WebGLExtension, public ScriptWrappable {
public:
    static PassRefPtr<WebGLLoseContext> create(WebGLRenderingContext*);
    static bool supported(WebGLRenderingContext*);
    static const char* extensionName();

    virtual ~WebGLLoseContext();
    virtual ExtensionName name() const;
    virtual void lose(bool);

    void loseContext();
    void restoreContext();

private:
    WebGLLoseContext(WebGLRenderingContext*);
};

} // namespace WebCore

#endif // WebGLLoseContext_h


text:
package org.bitcoins.core.serializers.p2p.messages

import org.bitcoins.core.number.UInt32
import org.bitcoins.core.p2p.TypeIdentifier
import org.bitcoins.core.serializers.RawBitcoinSerializer
import scodec.bits.ByteVector

/** Created by chris on 5/31/16.
  * Reads and writes a type identifier on a peer-to-peer network
  * https://bitcoin.org/en/developer-reference#data-messages
  */
trait RawTypeIdentifierSerializer extends RawBitcoinSerializer[TypeIdentifier] {

  override def read(bytes: ByteVector): TypeIdentifier = {
    TypeIdentifier(UInt32(bytes.reverse))
  }

  override def write(typeIdentifier: TypeIdentifier): ByteVector = {
    typeIdentifier.num.bytes.reverse
  }
}
object RawTypeIdentifierSerializer extends RawTypeIdentifierSerializer


text:
<!DOCTYPE html>

    <link rel="canonical"/>
    <title>Project Name - Ürün Listeleme</title>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="description" content="Ünlü markaların online ayakkabı satışı. Ücretsiz kargo, 365 gün iade ve 7/24 müşteri desteğiyle hizmetinizde."/>
    <meta name="keywords" content=", online ayakkabı mağazası, online ayakkabı satın al, ayakkabı modelleri, terlik modelleri, sandalet modelleri"/>
    <meta property="fb:app_id" content="229179347121022"/>
    <link rel="shortcut icon" href="images/favicon.ico">

            product


text:
from django.contrib import admin

# No admin fews here


text:
The following commands are provided to manage the state of your branch(es).  Future versions of GitSavvy will include a full-featured branch view, similar to the status dashboard.

## `git: checkout`

You will be shown a panel of local branches.  Once you've made a selection, that branch will be checked out.

## `git: checkout new branch`

You will be prompted for a new branch name.  Once entered, that branch will be created and checked out.

## `git: merge`

You will be shown a list of all local _and_ remote branches.  Once selected, that branch will be merged in the current branch.  Any errors will be displayed, and any merge conflicts can be seen and addressed in the status dashboard.

## `git: abort merge`

While in a merge, running this command will reset the working tree back to pre-merge conditions.

## `git: restart merge for file...`

Running this command while mid-merge will display a list of all files with merge conflicts.  Once you've made a selection, that file will be reset to the condition it was in at the beginning of the merge, before you attempted to resolve the merge conflict.


text:
namespace Fizzler
{
    using System;

    /// <summary>
    /// Represent a token and optionally any text associated with it.
    /// </summary>
    public struct Token : IEquatable<Token>
    {
        /// <summary>
        /// Gets the kind/type/class of the token.
        /// </summary>
        public TokenKind Kind { get; private set; }

        /// <summary>
        /// Gets text, if any, associated with the token.
        /// </summary>
        public string Text { get; private set; }

        private Token(TokenKind kind) : this(kind, null) {}

        private Token(TokenKind kind, string text) : this()
        {
            Kind = kind;
            Text = text;
        }

        /// <summary>
        /// Creates an end-of-input token.
        /// </summary>
        public static Token Eoi()
        {
            return new Token(TokenKind.Eoi);
        }

        private static readonly Token _star = Char('*');
        private static readonly Token _dot = Char('.');
        private static readonly Token _colon = Char(':');
        private static readonly Token _comma = Char(',');
        private static readonly Token _rightParenthesis = Char(')');
        private static readonly Token _equals = Char('=');
        private static readonly Token _pipe = Char('|');
        private static readonly Token _leftBracket = Char('[');
        private static readonly Token _rightBracket = Char(']');

        /// <summary>
        /// Creates a star token.
        /// </summary>
        public static Token Star()
        {
            return _star;
        }

        /// <summary>
        /// Creates a dot token.
        /// </summary>
        public static Token Dot()
        {
            return _dot;
        }

        /// <summary>
        /// Creates a colon token.
        /// </summary>
        public static Token Colon()
        {
            return _colon;
        }

        /// <summary>
        /// Creates a comma token.
        /// </summary>
        public static Token Comma()
        {
            return _comma;
        }

        /// <summary>
        /// Creates a right parenthesis token.
        /// </summary>
        public static Token RightParenthesis()
        {
            return _rightParenthesis;
        }

        /// <summary>
        /// Creates an equals token.
        /// </summary>
        public static Token Equals()
        {
            return _equals;
        }

        /// <summary>
        /// Creates a left bracket token.
        /// </summary>
        public static Token LeftBracket()
        {
            return _leftBracket;
        }

        /// <summary>
        /// Creates a right bracket token.
        /// </summary>
        public static Token RightBracket()
        {
            return _rightBracket;
        }

        /// <summary>
        /// Creates a pipe (vertical line) token.
        /// </summary>
        public static Token Pipe()
        {
            return _pipe;
        }

        /// <summary>
        /// Creates a plus token.
        /// </summary>
        public static Token Plus()
        {
            return new Token(TokenKind.Plus);
        }

        /// <summary>
        /// Creates a greater token.
        /// </summary>
        public static Token Greater()
        {
            return new Token(TokenKind.Greater);
        }

        /// <summary>
        /// Creates an includes token.
        /// </summary>
        public static Token Includes()
        {
            return new Token(TokenKind.Includes);
        }

        /// <summary>
        /// Creates a dash-match token.
        /// </summary>
        public static Token DashMatch()
        {
            return new Token(TokenKind.DashMatch);
        }

        /// <summary>
        /// Creates a prefix-match token.
        /// </summary>
        public static Token PrefixMatch()
        {
            return new Token(TokenKind.PrefixMatch);
        }

        /// <summary>
        /// Creates a suffix-match token.
        /// </summary>
        public static Token SuffixMatch()
        {
            return new Token(TokenKind.SuffixMatch);
        }

        /// <summary>
        /// Creates a substring-match token.
        /// </summary>
        public static Token SubstringMatch()
        {
            return new Token(TokenKind.SubstringMatch);
        }

        /// <summary>
        /// Creates a general sibling token.
        /// </summary>
        public static Token Tilde()
        {
            return new Token(TokenKind.Tilde);
        }

        /// <summary>
        /// Creates an identifier token.
        /// </summary>
        public static Token Ident(string text)
        {
            ValidateTextArgument(text);
            return new Token(TokenKind.Ident, text);
        }

        /// <summary>
        /// Creates an integer token.
        /// </summary>
        public static Token Integer(string text)
        {
            ValidateTextArgument(text);
            return new Token(TokenKind.Integer, text);
        }

        /// <summary>
        /// Creates a hash-name token.
        /// </summary>
        public static Token Hash(string text)
        {
            ValidateTextArgument(text);
            return new Token(TokenKind.Hash, text);
        }

        /// <summary>
        /// Creates a white-space token.
        /// </summary>
        public static Token WhiteSpace(string space)
        {
            ValidateTextArgument(space);
            return new Token(TokenKind.WhiteSpace, space);
        }

        /// <summary>
        /// Creates a string token.
        /// </summary>
        public static Token String(string text)
        {
            return new Token(TokenKind.String, text ?? string.Empty);
        }

        /// <summary>
        /// Creates a function token.
        /// </summary>
        public static Token Function(string text)
        {
            ValidateTextArgument(text);
            return new Token(TokenKind.Function, text);
        }

        /// <summary>
        /// Creates an arbitrary character token.
        /// </summary>
        public static Token Char(char ch)
        {
            return new Token(TokenKind.Char, ch.ToString());
        }

        /// <summary>
        /// Indicates whether this instance and a specified object are equal.
        /// </summary>
        public override bool Equals(object obj)
        {
            return obj != null && obj is Token && Equals((Token) obj);
        }

        /// <summary>
        /// Returns the hash code for this instance.
        /// </summary>
        public override int GetHashCode()
        {
            return Text == null ? Kind.GetHashCode() : Kind.GetHashCode() ^ Text.GetHashCode();
        }

        /// <summary>
        /// Indicates whether the current object is equal to another object of the same type.
        /// </summary>
        public bool Equals(Token other)
        {
            return Kind == other.Kind && Text == other.Text;
        }

        /// <summary>
        /// Gets a string representation of the token.
        /// </summary>
        public override string ToString()
        {
            return Text == null ? Kind.ToString() : Kind + ": " + Text;
        }
        /// <summary>
        /// Performs a logical comparison of the two tokens to determine
        /// whether they are equal.
        /// </summary>
        public static bool operator==(Token a, Token b)
        {
            return a.Equals(b);
        }

        /// <summary>
        /// Performs a logical comparison of the two tokens to determine
        /// whether they are inequal.
        /// </summary>
        public static bool operator !=(Token a, Token b)
        {
            return !a.Equals(b);
        }

        private static void ValidateTextArgument(string text)
        {
            if (text == null) throw new ArgumentNullException("text");
            if (text.Length == 0) throw new ArgumentException(null, "text");
        }
    }
}


text:
=========================================
Using Gittern with the Gaufrette Adapters
=========================================

GitternCommitishReadOnlyAdapter
-------------------------------

Code speaks louder than words:

.. code-block:: php

    <?php

    use Gittern\Repository,
        Gittern\Transport\NativeTransport,
        Gittern\Configurator,
        Gittern\Gaufrette\GitternCommitishReadOnlyAdapter;

    use Gaufrette\Filesystem;

    $repo = new Repository;
    $repo->setTransport(new NativeTransport($repo_path));

    $configurator = new Configurator;
    $configurator->defaultConfigure($repo);

    $filesystem = new Filesystem(new GitternCommitishReadOnlyAdapter($repo, "master"));

After this, you can use the filesystem like any other Gaufrette Filesystem. Just bear in mind that it's read-only, and will throw exceptions if you try to modify it.

GitternIndexAdapter
-------------------

Again, code speaks louder than words:

.. code-block:: php

    <?php

    use Gittern\Repository,
        Gittern\Transport\NativeTransport,
        Gittern\Configurator,
        Gittern\Gaufrette\GitternIndexAdapter;

    use Gaufrette\Filesystem;

    $repo = new Repository;
    $repo->setTransport(new NativeTransport($repo_path));

    $configurator = new Configurator;
    $configurator->defaultConfigure($repo);

    $filesystem = new Filesystem(new GitternIndexAdapter($repo));

After this, you can use the filesystem like any other Gaufrette Filesystem.

Committing
++++++++++

The Git Index contains everything necessary to create a tree. Once you have a tree, creating a commit is a fairly straight-forward deal, but additional convenience is under consideration.

.. code-block:: php

    <?php

    use Gittern\Entity\GitObject\Commit,
        Gittern\Entity\GitObject\User;

    use DateTime;

    $parent = $repo->getObject('master');

    $tree = $repo->getIndex()->createTree();
    $commit = new Commit;
    $commit->setTree($tree);
    $commit->addParent($parent);
    $commit->setMessage("Added another file");
    $commit->setAuthor(new User("Tessie Testson", "tessie.testson@example.com"));
    $commit->setCommitter(new User("Tessie Testson", "tessie.testson@example.com"));
    $commit->setAuthorTime(new DateTime);
    $commit->setCommitTime(new DateTime);

    $repo->desiccateGitObject($commit);
    $repo->setBranch('master', $commit);

    $repo->flush();


text:
package org.apache.ignite.internal.processors.rest.client.message;

import java.io.IOException;
import java.io.ObjectInput;
import java.io.ObjectOutput;
import org.apache.ignite.internal.util.typedef.internal.S;

/**
 * Client authentication request.
 */
public class GridClientAuthenticationRequest extends GridClientAbstractMessage {
    /** */
    private static final long serialVersionUID = 0L;

    /** Credentials. */
    private Object cred;

    /**
     * @return Credentials object.
     */
    public Object credentials() {
        return cred;
    }

    /**
     * @param cred Credentials object.
     */
    public void credentials(Object cred) {
        this.cred = cred;
    }

    /** {@inheritDoc} */
    @Override public void writeExternal(ObjectOutput out) throws IOException {
        super.writeExternal(out);

        out.writeObject(cred);
    }

    /** {@inheritDoc} */
    @Override public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
        super.readExternal(in);

        cred = in.readObject();
    }

    /** {@inheritDoc} */
    @Override public String toString() {
        return S.toString(GridClientAuthenticationRequest.class, this, super.toString());
    }
}


text:
namespace reporting {

namespace cros_healthd = ::ash::cros_healthd::mojom;

CrosHealthdAudioSamplerHandler::~CrosHealthdAudioSamplerHandler() = default;

void CrosHealthdAudioSamplerHandler::HandleResult(
    cros_healthd::TelemetryInfoPtr result,
    OptionalMetricCallback callback) const {
  absl::optional<MetricData> metric_data;
  const auto& audio_result = result->audio_result;

  if (!audio_result.is_null()) {
    switch (audio_result->which()) {
      case cros_healthd::AudioResult::Tag::kError: {
        DVLOG(1) << "CrosHealthD: Error getting audio telemetry: "
                 << audio_result->get_error()->msg;
        break;
      }

      case cros_healthd::AudioResult::Tag::kAudioInfo: {
        const auto& audio_info = audio_result->get_audio_info();
        if (audio_info.is_null()) {
          DVLOG(1) << "CrosHealthD: No audio info received";
          break;
        }

        metric_data = absl::make_optional<MetricData>();
        auto* const audio_info_out =
            metric_data->mutable_telemetry_data()->mutable_audio_telemetry();
        audio_info_out->set_output_mute(audio_info->output_mute);
        audio_info_out->set_input_mute(audio_info->input_mute);
        audio_info_out->set_output_volume(audio_info->output_volume);
        audio_info_out->set_output_device_name(audio_info->output_device_name);
        audio_info_out->set_input_gain(audio_info->input_gain);
        audio_info_out->set_input_device_name(audio_info->input_device_name);

        break;
      }
    }
  }

  std::move(callback).Run(std::move(metric_data));
}

}  // namespace reporting


text:
require('../../support/spec_helper');

describe("Cucumber.SupportCode.WorldConstructor", function () {
  var Cucumber = requireLib('cucumber');
  var WorldConstructor;

  it("returns a default World constructor", function () {
    WorldConstructor = Cucumber.SupportCode.WorldConstructor();
    expect(WorldConstructor).toBeAFunction ();
  });

  describe("default World constructor", function () {
    var callback;

    beforeEach(function () {
      WorldConstructor = Cucumber.SupportCode.WorldConstructor();
      callback = createSpy("callback");
    });

    it("calls back", function () {
      new WorldConstructor(callback);
      expect(callback).toHaveBeenCalled();
    });
  });
});


text:
<?xml version="1.0" encoding="UTF-8"?>
<ti:app xmlns:ti="http://ti.appcelerator.org">
    <deployment-targets>
        <target device="mobileweb">false</target>
        <target device="iphone">true</target>
        <target device="ipad">false</target>
        <target device="android">false</target>
        <target device="blackberry">false</target>
    </deployment-targets>
    <sdk-version>1.8.1</sdk-version>
    <id>com.appcelerator.smartapp</id>
    <name>smartapp</name>
    <version>1.0</version>
    <publisher>sofie</publisher>
    <url>http://</url>
    <description>not specified</description>
    <copyright>2012 by sofie</copyright>
    <icon>appicon.png</icon>
    <persistent-wifi>false</persistent-wifi>
    <prerendered-icon>false</prerendered-icon>
    <statusbar-style>default</statusbar-style>
    <statusbar-hidden>false</statusbar-hidden>
    <fullscreen>false</fullscreen>
    <navbar-hidden>false</navbar-hidden>
    <analytics>true</analytics>
    <guid>6ecb792d-3a45-44e5-80d6-1ffa6bb3abad</guid>
    <iphone>
        <orientations device="iphone">
            <orientation>Ti.UI.PORTRAIT</orientation>
        </orientations>
        <orientations device="ipad">
            <orientation>Ti.UI.PORTRAIT</orientation>
            <orientation>Ti.UI.UPSIDE_PORTRAIT</orientation>
            <orientation>Ti.UI.LANDSCAPE_LEFT</orientation>
            <orientation>Ti.UI.LANDSCAPE_RIGHT</orientation>
        </orientations>
    </iphone>
    <android xmlns:android="http://schemas.android.com/apk/res/android">
        <manifest>
            <supports-screens android:anyDensity="false"/>
        </manifest>
        <icon>appicon.png</icon>
    </android>
    <modules>
        <module version="0.4.2">tibar</module>
    </modules>
</ti:app>