text:
import React from 'react';
import { Button, Form, FormGroup, Label, Input } from 'reactstrap';

function Example(props) {
  return (
    <Form>
      <FormGroup>
        <Label for="exampleEmail" hidden>
          Email
        </Label>
        <Input
          type="email"
          name="email"
          id="exampleEmail"
          placeholder="Email"
        />
      </FormGroup>{' '}
      <FormGroup>
        <Label for="examplePassword" hidden>
          Password
        </Label>
        <Input
          type="password"
          name="password"
          id="examplePassword"
          placeholder="Password"
        />
      </FormGroup>{' '}
      <Button>Submit</Button>
    </Form>
  );
}

export default Example;


text:
package org.springframework.security.access;

import java.util.ArrayList;
import java.util.List;

import org.springframework.util.Assert;
import org.springframework.util.StringUtils;

/**
 * Stores a {@link ConfigAttribute} as a String.
 *
 * @author Ben Alex
 */
public class SecurityConfig implements ConfigAttribute {
    //~ Instance fields ================================================================================================

    private final String attrib;

    //~ Constructors ===================================================================================================

    public SecurityConfig(String config) {
        Assert.hasText(config, "You must provide a configuration attribute");
        this.attrib = config;
    }

    //~ Methods ========================================================================================================

    public boolean equals(Object obj) {
        if (obj instanceof ConfigAttribute) {
            ConfigAttribute attr = (ConfigAttribute) obj;

            return this.attrib.equals(attr.getAttribute());
        }

        return false;
    }

    public String getAttribute() {
        return this.attrib;
    }

    public int hashCode() {
        return this.attrib.hashCode();
    }

    public String toString() {
        return this.attrib;
    }

    public static List<ConfigAttribute> createListFromCommaDelimitedString(String access) {
        return createList(StringUtils.commaDelimitedListToStringArray(access));
    }

    public static List<ConfigAttribute> createList(String... attributeNames) {
        Assert.notNull(attributeNames, "You must supply an array of attribute names");
        List<ConfigAttribute> attributes = new ArrayList<ConfigAttribute>(attributeNames.length);

        for (String attribute : attributeNames) {
            attributes.add(new SecurityConfig(attribute.trim()));
        }

        return attributes;
    }
}

redpajama_set_name: RedPajamaGithub


text:
/**
 * This module handles the loading of the jamrc files used to configure the
 * behaviour of the command-line tool.
 *
 * @module
 */

var utils = require('./utils'),
    async = require('async'),
    _ = require('underscore'),
    path = require('path'),
    fs = require('fs'),
    env = require('./env');

var pathExists = fs.exists || path.exists;

/**
 * Default paths to lookup when constructing values for jamrc.
 * Paths are checked in order, with later paths overriding the values obtained
 * from earlier ones.
 */

exports.PATHS = [
    //'/etc/jamrc',
    //'/usr/local/etc/jamrc',
    env.home + '/.jamrc'
];

/**
 * The defaults jamrc settings
 */

exports.DEFAULTS = {
    repositories: [ "http://jamjs.org/repository" ],
    package_dir:  'jam',
    link_dir: env.home + '/.jam/link',
	system_dir: env.home
};

/**
 * Loads base jamrc settings from PATHS, and merges them along with the DEFAULT
 * values, returning the result.
 *
 * @param {Function} callback(err, settings)
 */

exports.load = function (callback) {
    async.map(exports.PATHS, exports.loadFile, function (err, results) {
        if (err) {
            return callback(err);
        }

        var defaults = _.clone(exports.DEFAULTS);
        var settings = results.reduce(function (merged, r) {
			return exports.merge(merged, r);
        }, defaults);

		exports.jamrc = settings || {};
		callback(null, settings);
    });
};

/**
 * Looks for a project-specific .jamrc file to override base settings with.
 * Walks up the directory tree until it finds a .jamrc file or hits the root.
 * Does not throw when no .jamrc is found, just returns null.
 *
 * @param {String} p - The starting path to search upwards from
 * @param {Function} callback(err, path)
 */

exports.findProjectRC = function (p, callback) {
    var filename = path.resolve(p, '.jamrc');
    pathExists(filename, function (exists) {
        if (exists) {
            return callback(null, filename);
        }
        var newpath = path.dirname(p);
        if (newpath === p) { // root directory
            return callback(null, null);
        }
        else {
            return exports.findProjectRC(newpath, callback);
        }
    });
};

/**
 * Searches for a project-level .jamrc and extends the provided settings
 * object if one is found. If no project-level .jamrc is found, returns the
 * original settings unmodified.
 *
 * @param {Object} settings - the base settings to extend
 * @param {String} cwd - the path to search upwards from
 * @param {Function} callback(err, settings)
 */

exports.loadProjectRC = function (settings, cwd, callback) {
    exports.findProjectRC(cwd, function (err, p) {
        if (err) {
            return callback(err);
        }
        if (!p) {
            // no project-level .jamrc, return original settings
            return callback(null, settings);
        }
        else {
            exports.extend(settings, p, callback);
        }
    });
};

/**
 * Deep merge for JSON objects, overwrites conflicting properties
 *
 * @param {Object} a
 * @param {Object} b
 * @returns {Object}
 */

exports.merge = function (a, b) {
    if (!b) {
        return a;
    }
    for (var k in b) {
        if (Array.isArray(b[k])) {
            a[k] = b[k];
        }
        else if (typeof b[k] === 'object') {
            if (typeof a[k] === 'object') {
                exports.merge(a[k], b[k]);
            }
            else if (b.hasOwnProperty(k)) {
                a[k] = b[k];
            }
        }
        else if (b.hasOwnProperty(k)) {
            a[k] = b[k]
        }
    }
    return a;
};

/**
 * Checks a jamrc file exists and loads it if available. If the file does not
 * exist the function will respond with an empty object.
 *
 * @param {String} p - the path of the jamrc file to load
 * @param {Function} callback(err, settings)
 */

exports.loadFile = function (p, callback) {
    pathExists(p, function (exists) {
        if (exists) {
            try {
                var mod = require(path.resolve(p));
            }
            catch (e) {
                return callback(e);
            }
            callback(null, mod);
        }
        else {
            callback(null, {});
        }
    });
};

/**
 * Extend currently loaded settings with another .jamrc file. Used by commands
 * specific to a project directory that would like to load project-specific
 * settings.
 *
 * @param {Object} settings - the base settings to extend
 * @param {String} path - the path to a .jamrc file to extend settings with
 * @param {Function} callback(err, settings)
 */

exports.extend = function (settings, path, callback) {
    exports.loadFile(path, function (err, s) {
        if (err) {
            return callback(err);
        }
        exports.merge(settings, s);
        callback(null, settings);
    });
};

['Tmp', 'Git', 'Cache'].forEach(function (name) {

	exports['get' + name + 'Dir'] = function () {
		var root = env.home;

		if (exports.jamrc && exports.jamrc['system_dir']) {
			root = exports.jamrc['system_dir'];
		}

		root = root.replace('~', env.home);
		return path.resolve(root, '.jam', name.toLowerCase());
	};

});


text:
using Grabacr07.KanColleWrapper;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AMing.Logger.Modes
{
    public class SimpleAdmiral
    {
        public string Id { get; set; }

        public string Nickname { get; set; }

        public int Level { get; set; }

        public SimpleAdmiral() { }
        public SimpleAdmiral(KanColleClient kanColleClient)
        {
            this.Id = kanColleClient.Homeport.Admiral.MemberId;
            this.Nickname = kanColleClient.Homeport.Admiral.Nickname;
            this.Level = kanColleClient.Homeport.Admiral.Level;
        }
    }
}


text:
import OpenSSL

from syhelpers.log import print_error

def load_certificate(filename):
    cert = None
    f = None
    try:
        f = open(filename, 'rb')
        cert = OpenSSL.crypto.load_certificate(OpenSSL.crypto.FILETYPE_PEM, f.read())
    except Exception as e:
        print_error("Loading certificate file failed: {}".format(e))
    finally:
        if f:
            f.close()
    return cert

def load_privatekey(filename):
    pkey = None
    f = None
    try:
        f = open(filename)
        pkey = OpenSSL.crypto.load_privatekey(OpenSSL.crypto.FILETYPE_PEM, f.read())
    except Exception as e:
        print_error("Loading certificate file failed: {}".format(e))
    finally:
        if f:
            f.close()
    return pkey

def verify_signature(cert, signature, data, digest='sha512'):
    try:
        OpenSSL.crypto.verify(cert, signature, data, digest)
        return True
    except Exception as e:
        print_error("Signature verification failed: {}".format(e))
        return False

def create_signature(pkey, data, digest='sha512'):
    try:
        sig = OpenSSL.crypto.sign(pkey, data, digest)
        return sig
    except Exception as e:
        print_error("Signature creation failed: {}".format(e))
        return None

def int2bytes(i, byteorder='big'):
    return i.to_bytes((i.bit_length() + 7) // 8, byteorder=byteorder)


text:
<?php
ob_start();

$title="options import data";
include ("header.php");

	$allow=check_allow('import_data','options_main.php');

	if ($_REQUEST['step']) $step=$_REQUEST['step']; else $step=1;

        echo '

Import data from old versions

		';

	// first step: from which system?
	if ($step==1 || !$step) {

        	echo '

			<FORM action="import_data.php">
			<INPUT type=hidden name="step" value="2">

						Import from version

						<SELECT name="old_version">
							<OPTION value="1.0"';
								if ($_SESSION['import_data']['old_version']=='1.0')
									echo ' SELECTED';
								echo '>ORSEE 1.0.1 - MetaHTML</OPTION>
						</SELECT>

						<INPUT type=submit name="submit" value="Continue">

			</FORM>

			';
		}

	// second step: database stuff

	if ($step==2) {

		$_SESSION['import_data']['old_version']=$_REQUEST['old_version'];

		if ($_SESSION['import_data']['old_version']=='1.0') {

			echo '

                        	<FORM action="import_data.php">
                        	<INPUT type=hidden name="step" value="3">

							Parameters for database containing old data

                                                	Database host:

                                                	<INPUT type=text name="old_db_host" size=30 maxlength=100 value="';
							if ($_SESSION['import_data']['old_db_host'])
								echo $_SESSION['import_data']['old_db_host'];
							   else echo 'localhost';
							echo '">

                                	</TR

                                                	Database name:

							<INPUT type=text name="old_db_name" size=30 maxlength=100
								value="'.$_SESSION['import_data']['old_db_name'].'">

                                                	Database user:

                                                	<INPUT type=text name="old_db_user" size=30 maxlength=100
								value="'.$_SESSION['import_data']['old_db_user'].'">

                                                	Database password:

                                                	<INPUT type=password name="old_db_password" size=30 maxlength=100
								value="'.$_SESSION['import_data']['old_db_password'].'">

                                                	<INPUT type=submit name="submit" value="Continue">

                        	</FORM>

                        	';
			}
		}

	// step 3: ask for some options

	if ($step==3) {

		if ($_SESSION['import_data']['old_version']=='1.0') {

			if ($_REQUEST['submit']) {
				$_SESSION['import_data']['old_db_host']=$_REQUEST['old_db_host'];
                		$_SESSION['import_data']['old_db_name']=$_REQUEST['old_db_name'];
				$_SESSION['import_data']['old_db_user']=$_REQUEST['old_db_user'];
				$_SESSION['import_data']['old_db_password']=$_REQUEST['old_db_password'];
				}

			function import_db_config() {
				$link2 = mysql_connect($_SESSION['import_data']['old_db_host'],$_SESSION['import_data']['old_db_user'],
							$_SESSION['import_data']['old_db_password'])
       						or die("Database connection failed: " . mysql_error());
				mysql_select_db($_SESSION['import_data']['old_db_name'], $link2) or die("Database selection failed.");
				}

			function select_field_new_subpools ($old_subpool_id,$selected) {
				echo '<SELECT name="new_subpool['.$old_subpool_id.']">';
				$query="SELECT * FROM ".table('subpools');
				$result=mysql_query($query) or die("Database error: " . mysql_error());
				while ($line=mysql_fetch_assoc($result)) {
					echo '<OPTION value="'.$line['subpool_id'].'"';
					if ($line['subpool_id']==$selected) echo ' SELECTED';
					echo '>'.$line['subpool_name'].'</OPTION>';
                                	}
				echo '<SELECT>';
				}

			function get_array_old_subpools() {
				$query="SELECT * FROM subpools";
				$result=mysql_query($query) or die("Database error: " . mysql_error());;
				$oldpools=array();
                                while ($line=mysql_fetch_assoc($result)) {
                                        $oldpools[$line['subpool_id']]=$line['subpool_name'];
                                        }
				return $oldpools;
				}

			function select_field_new_labs ($old_lab_id,$selected) {
                                echo '<SELECT name="new_laboratories['.$old_lab_id.']">';
                                $query="SELECT * FROM ".table('lang')." WHERE content_type='laboratory'";
                                $result=mysql_query($query) or die("Database error: " . mysql_error());
                                while ($line=mysql_fetch_assoc($result)) {
                                        echo '<OPTION value="'.$line['content_name'].'"';
                                        if ($line['content_name']==$selected) echo ' SELECTED';
                                        echo '>'.laboratories__strip_lab_name($line['subpool_name']).'</OPTION>';
                                        }
                                echo '<SELECT>';
                                }

			function get_array_old_laboratories() {
                                $query="SELECT * FROM laboratories";
                                $result=mysql_query($query) or die("Database error: " . mysql_error());
                                $oldlabs=array();
                                while ($line=mysql_fetch_assoc($result)) $oldlabs[$line['laboratory_id']]=$line['laboratory_name'];
				return $oldlabs;
				}

			function old_exp_type_to_ext_type_select_field($oldexptype,$selected) {
				if ($oldexptype=='online_survey') $search='online-survey';
					else $search=$oldexptype;

        			$query="SELECT *
                			FROM ".table('experiment_types')."
                			WHERE enabled='y' AND exptype_mapping LIKE '%".$search."%'
                			ORDER BY exptype_id";
        			$result=mysql_query($query);
				echo '<SELECT name="new_ext_type_'.$oldexptype.'">';
        			while ($line = mysql_fetch_assoc($result)) {
                			echo '<OPTION value="'.$line['exptype_name'].'"';
                			if ($line['exptype_name']==$selected) echo " SELECTED";
                			echo '>'.$line['exptype_name'].'</OPTION>';
                			}
				echo '</SELECT>';

				}

			import_db_config();
			$old_subjectpools=get_array_old_subpools();
			$old_labs=get_array_old_laboratories();

			site__database_config();

                	echo '

                        	<FORM action="import_data.php">
                        	<INPUT type=hidden name="step" value="4">

                                                	Import options

                                                	Subscribe participants who voted for LABORATORY experiments to experiment type:

                                                	';
							experiment_ext_types__checkboxes('new_exptypes_lab',$lang['lang'],
                                                                	$_SESSION['import_data']['new_exptypes_lab'],'exptype_name');
							echo '

                                                	Subscribe participants who voted for INTERNET experiments to experiment type:

                                                	';
                                                        experiment_ext_types__checkboxes('new_exptypes_internet',$lang['lang'],
                                                                        $_SESSION['import_data']['new_exptypes_internet'],'exptype_name');
                                                        echo '

					';

					foreach ($old_subjectpools as $oldpool_id=>$oldpool_name) {
                                		echo '

                                                		Move participants from subjectpool "'.$oldpool_name.'" to:

                                                		'; select_field_new_subpools ($oldpool_id,
								$_SESSION['import_data']['new_subpool'][$oldpool_id]); echo '

							';
						}

					echo '

                                                        To laboratory experiments, assign external type:

                                                        ';
                                                        old_exp_type_to_ext_type_select_field('laboratory',
                                                                        $_SESSION['import_data']['new_ext_type_laboratory']);
                                                        echo '

                                                        To online-surveys, assign external type:

                                                        ';
                                                        old_exp_type_to_ext_type_select_field('online_survey',
                                                                        $_SESSION['import_data']['new_ext_type_online_survey']);
                                                        echo '

                                                        To internet experiments, assign external type:

                                                        ';
                                                        old_exp_type_to_ext_type_select_field('internet',
                                                                        $_SESSION['import_data']['new_ext_type_internet']);
                                                        echo '

                                        ';

                                        foreach ($old_labs as $oldlab_id=>$oldlab_name) {
                                                echo '

                                                                Old laboratory "'.$oldlab_name.'" is now:

                                                                ';
								laboratories__select_field('new_laboratories['.$oldlab_id.']',
                                                                $_SESSION['import_data']['new_laboratories'][$oldlab_id]); echo '

                                                        ';
                                                }

					echo '

                                        ';

					echo '

                                                	<INPUT type=submit name="submit" value="Continue">

                        	</FORM>

                        	';
			}

		}

	// step4: confirm:
        if ($step==4) {

		if ($_SESSION['import_data']['old_version']=='1.0') {

			if ($_REQUEST['submit']) {
			$_SESSION['import_data']['new_exptypes_lab']=$_REQUEST['new_exptypes_lab'];
                        $_SESSION['import_data']['new_exptypes_internet']=$_REQUEST['new_exptypes_internet'];
                        $_SESSION['import_data']['new_subpool']=$_REQUEST['new_subpool'];
			$_SESSION['import_data']['new_ext_type_laboratory']=$_REQUEST['new_ext_type_laboratory'];
			$_SESSION['import_data']['new_ext_type_online_survey']=$_REQUEST['new_ext_type_online_survey'];
			$_SESSION['import_data']['new_ext_type_internet']=$_REQUEST['new_ext_type_internet'];
			$_SESSION['import_data']['new_laboratories']=$_REQUEST['new_laboratories'];
			}

			$continue=true;

			if (count($_SESSION['import_data']['new_exptypes_lab'])<1) {
				message ("At least one new  experiment type should be given for LABORATORY experiments.");
				$continue=false;
				}

			if (count($_SESSION['import_data']['new_exptypes_internet'])<1) {
                                message ("At least one new experiment type should be given for INTERNET experiments.");
                                $continue=false;
                                }

			if (!$continue) redirect ("admin/import_data.php?step=3");

			$import_settings=$_SESSION['import_data'];

			function list_array($array) {
				echo '
';
				while (list ($key, $value) = each ($array)) {
					if (is_array($value)) {
						echo "
$key:\n";
						list_array($value);
						echo "
\n";
						}
					else echo "
$key: $value
\n";
                                        }
				echo '
';
				}

			echo '

                                <FORM action="import_data.php">
                                <INPUT type=hidden name="step" value="5">

                                                        The following dump contains all import settings.

							Do you want to continue and start the data import?

';
							list_array($import_settings);
							echo '

                                                        <INPUT type=submit name="submit" value="Continue">

                                </FORM>

                                ';

			}
		}

	// step4: import it!
        if ($step==5) {

                if ($_SESSION['import_data']['old_version']=='1.0') {

			$imset=$_SESSION['import_data'];

			$continue=true;

                        $check_settings=array('old_version','old_db_host','old_db_name','old_db_user',
						'old_db_password','new_exptypes_lab','new_exptypes_internet',
						'new_subpool');

			foreach ($check_settings as $setting) {
				if (!isset($imset[$setting])) {
					echo 'Error: import setting "'.$setting.'" not found!
';
					$continue=false;
					}
				}

			function import_db_config() {
				global $imset;
                                $link2 = mysql_connect($imset['old_db_host'],$imset['old_db_user'],
                                                        $imset['old_db_password'])
                                                or die("Database connection failed: " . mysql_error());
                                mysql_select_db($imset['old_db_name'], $link2) or die("Database selection failed.");
                                }

			if ($continue) {

				// import participants

				// load old participants
				import_db_config();
				$query="SELECT * FROM participants";
                                $result=mysql_query($query) or die("Database error: " . mysql_error());
				$old_participants=array();
                                while ($line=mysql_fetch_assoc($result)) $old_participants[]=$line;

				site__database_config();

				$query="DELETE FROM ".table('participants');
                                $done=mysql_query($query) or die("Database error: " . mysql_error());

				foreach ($old_participants as $op) {

					// translate subscriptions
					$subscriptions=array();
					if ($op['get_labor']=='y')
						$subscriptions=array_merge($subscriptions,$imset['new_exptypes_lab']);
					if ($op['get_internet']=='y')
						$subscriptions=array_merge($subscriptions,$imset['new_exptypes_internet']);
					$op['subscriptions']=implode(",",$subscriptions);

					// translate subjectpool
					$op['subpool_id']=$imset['new_subpool'][$op['subpool_id']];

					$done=orsee_db_save_array($op,"participants",$op['participant_id'],"participant_id");
					}
				unset($old_participants);

				// import participants_os

				// load old participants_os
                                import_db_config();
                                $query="SELECT * FROM participants_os";
                                $result=mysql_query($query) or die("Database error: " . mysql_error());
                                $old_participants=array();
                                while ($line=mysql_fetch_assoc($result)) $old_participants[]=$line;

                                site__database_config();

                                $query="DELETE FROM ".table('participants_os');
                                $done=mysql_query($query) or die("Database error: " . mysql_error());

                                foreach ($old_participants as $op) {

                                        // translate subscriptions
                                        $subscriptions=array();
                                        if ($op['get_labor']=='y')
                                                $subscriptions=array_merge($subscriptions,$imset['new_exptypes_lab']);
                                        if ($op['get_internet']=='y')
                                                $subscriptions=array_merge($subscriptions,$imset['new_exptypes_internet']);
                                        $op['subscriptions']=implode(",",$subscriptions);

                                        // translate subjectpool
                                        $op['subpool_id']=$imset['new_subpool'][$op['subpool_id']];

                                        $done=orsee_db_save_array($op,"participants_os",$op['participant_id'],"participant_id");
                                        }
				unset($old_participants);

                                // import experiments

                                // load old experiments
                                import_db_config();
                                $query="SELECT * FROM experiments";
                                $result=mysql_query($query) or die("Database error: " . mysql_error());
                                $old_experiments=array();
                                while ($line=mysql_fetch_assoc($result)) $old_experiments[]=$line;

                                site__database_config();

                                $query="DELETE FROM ".table('experiments');
                                $done=mysql_query($query) or die("Database error: " . mysql_error());

				// load experimenters and mails
				$admins=array(); $admin_mails=array();
				$query="SELECT * FROM ".table('admin');
                                $result=mysql_query($query) or die("Database error: " . mysql_error());
				while ($line=mysql_fetch_assoc($result)) {
					$admins[$line['fname'].' '.$line['lname']]=$line['adminname'];
					$admins[$line['lname']]=$line['adminname'];
					$admins[$line['email']]=$line['adminname'];
					$admin_mails[$line['email']]=$line['adminname'];
					}

                                foreach ($old_experiments as $exp) {

                                        // translate internal to external experiment type
					if ($exp['experiment_type']=='laboratory')
						$exp['experiment_ext_type']=$imset['new_ext_type_laboratory'];
					   elseif ($exp['experiment_type']=='internet')
						$exp['experiment_ext_type']=$imset['new_ext_type_internet'];
					   elseif ($exp['experiment_type']=='online-survey')
                                                $exp['experiment_ext_type']=$imset['new_ext_type_online_survey'];

					// guess experimenters
					$tadmins=explode(",",$exp['experimenter']);
					foreach ($tadmins as $key=>$tadmin) {
						if (isset($admins[trim($tadmin)])) $tadmins[$key]=$admins[trim($tadmin)];
						}
					$exp['experimenter']=implode(",",$tadmins);

					// guess experimenter mails
					$tmails=explode(",",$exp['experimenter_mail']);
                                        foreach ($tmails as $key=>$tmail) {
                                                if (isset($admin_mails[trim($tmail)])) $tmails[$key]=$admin_mails[trim($tmail)];
                                                }
                                        $exp['experimenter_mail']=implode(",",$tmails);
					$exp['experiment_class']='0';

                                        $done=orsee_db_save_array($exp,"experiments",$exp['experiment_id'],"experiment_id");
                                        }
                                unset($old_experiments);

				// import os stuff

				// whcih tables?
				$os_tables=array('os_data_form','os_items_checkbox','os_items_radio','os_items_select_numbers',
						'os_items_select_text','os_items_textarea','os_items_textline','os_page_content',
						'os_playerdata','os_pre_answers','os_properties','os_questions','os_results');
				$os_ids=array('experiment_id','item_id','item_id','item_id',
						'item_id','item_id','item_id','page_id',
						'playerdata_id','answer_id','experiment_id','question_id','result_id');

				$i=0;
				foreach ($os_tables as $table) {
					$id=$os_ids[$i];
                                	// load old data
                                	import_db_config();
                                	$query="SELECT * FROM ".$table;
                                	$result=mysql_query($query) or die("Database error: " . mysql_error());
                                	$old_entries=array();
                                	while ($line=mysql_fetch_assoc($result)) $old_entries[]=$line;

                                	site__database_config();

                                	$query="DELETE FROM ".table($table);
                                	$done=mysql_query($query) or die("Database error: " . mysql_error());

                                	foreach ($old_entries as $entry) {
                                        	$done=orsee_db_save_array($entry,$table,$entry[$id],$id);
                                        	}
                                	unset($old_entries);
					$i++;
					}

				// import sessions

                                // load old sessions
                                import_db_config();
                                $query="SELECT * FROM sessions";
                                $result=mysql_query($query) or die("Database error: " . mysql_error());
                                $old_sessions=array();
                                while ($line=mysql_fetch_assoc($result)) $old_sessions[]=$line;

                                site__database_config();

                                $query="DELETE FROM ".table('sessions');
                                $done=mysql_query($query) or die("Database error: " . mysql_error());

                                foreach ($old_sessions as $sess) {
					$sess['send_reminder_on']='enough_participants_needed';
					$sess['reminder_checked']=$sess['reminder_sent'];
					$sess['noshow_warning_sent']='y';

					// translate laboratories
					$sess['laboratory_id']=$imset['new_laboratories'][$sess['laboratory_id']];

                                        $done=orsee_db_save_array($sess,"sessions",$sess['session_id'],"session_id");
                                        }
                                unset($old_sessions);

				// import participate_at

				// this might need a lot of memory, so let's do it in tranches of 200
                                // load old participate_data
				$i=0; $count=1;

				$query="DELETE FROM ".table('participate_at');
                                $done=mysql_query($query) or die("Database error: " . mysql_error());

				while ($count > 0) {
                                	import_db_config();
                                	$query="SELECT * FROM participate_at ORDER by participate_id LIMIT $i,200";
                                	$result=mysql_query($query) or die("Database error: " . mysql_error());
					$count=mysql_num_rows($result);

                                	$old_part=array();
                                	while ($line=mysql_fetch_assoc($result)) $old_part[]=$line;

                                	site__database_config();

                                	foreach ($old_part as $part) {
						$query="INSERT INTO ".table('participate_at')."
							SET participate_id='".$part['participate_id']."',
							participant_id='".$part['participant_id']."',
							experiment_id='".$part['experiment_id']."',
							invited='".$part['invited']."',
							registered='".$part['registered']."',
							shownup='".$part['shownup']."',
							participated='".$part['participated']."',
							session_id='".$part['session_id']."'";
                                        	$done=mysql_query($query);
                                        	}
                                	unset($old_part);
					$i=$i+200;
					}

				$inst_langs=get_languages();

				// import experiment mails

				// load old mails
                                import_db_config();
                                $query="SELECT * FROM experimentmail";
                                $result=mysql_query($query) or die("Database error: " . mysql_error());
                                $old_mails=array();
                                while ($line=mysql_fetch_assoc($result)) $old_mails[]=$line;

                                site__database_config();

                                $query="DELETE FROM ".table('lang')." WHERE content_type='experiment_invitation_mail'";
                                $done=mysql_query($query) or die("Database error: " . mysql_error());

				$query="SELECT max(lang_id) as max_id FROM ".table('lang');
                                $line=orsee_query($query);
				$new_id=$line['max_id'];

                                foreach ($old_mails as $omail) {
					$new_id++;
					$newmail=array();
					$newmail['enabled']='y';
					$newmail['content_type']='experiment_invitation_mail';
					$newmail['content_name']=$omail['experiment_id'];
					$value=$omail['subject']."\n".$omail['mailtext'];
					foreach ($inst_langs as $tlang) $newmail[$tlang]=$value;
                                        $done=orsee_db_save_array($newmail,"lang",$new_id,"lang_id");
					unset($newmail);
                                        }
                                unset($old_mails);

				// import fields of studies

                                // load old studies
                                import_db_config();
                                $query="SELECT * FROM field_of_studies ORDER by studies_id";
                                $result=mysql_query($query) or die("Database error: " . mysql_error());
                                $old_studies=array();
                                while ($line=mysql_fetch_assoc($result)) $old_studies[]=$line;

                                site__database_config();

                                $query="DELETE FROM ".table('lang')." WHERE content_type='field_of_studies'";
                                $done=mysql_query($query) or die("Database error: " . mysql_error());

                                $query="SELECT max(lang_id) as max_id FROM ".table('lang');
                                $line=orsee_query($query);
                                $new_id=$line['max_id'];

                                foreach ($old_studies as $study) {
                                        $new_id++;
                                        $newmail=array();
                                        $newmail['enabled']='y';
                                        $newmail['content_type']='field_of_studies';
                                        $newmail['content_name']=$study['studies_id'];
                                        foreach ($inst_langs as $tlang) {
						if (isset($study[$tlang])) $newmail[$tlang]=$study[$tlang];
							else $newmail[$tlang]=$study['en'];
						}
                                        $done=orsee_db_save_array($newmail,"lang",$new_id,"lang_id");
                                        unset($newmail);
                                        }
                                unset($old_studies);

				// import professions

                                // load old professions
                                import_db_config();
                                $query="SELECT * FROM professions ORDER by profession_id";
                                $result=mysql_query($query) or die("Database error: " . mysql_error());
                                $old_profs=array();
                                while ($line=mysql_fetch_assoc($result)) $old_profs[]=$line;

                                site__database_config();

                                $query="DELETE FROM ".table('lang')." WHERE content_type='profession'";
                                $done=mysql_query($query) or die("Database error: " . mysql_error());

                                $query="SELECT max(lang_id) as max_id FROM ".table('lang');
                                $line=orsee_query($query);
                                $new_id=$line['max_id'];

                                foreach ($old_profs as $prof) {
                                        $new_id++;
                                        $newmail=array();
                                        $newmail['enabled']='y';
                                        $newmail['content_type']='profession';
                                        $newmail['content_name']=$prof['profession_id'];
                                        foreach ($inst_langs as $tlang) {
                                                if (isset($prof[$tlang])) $newmail[$tlang]=$prof[$tlang];
                                                        else $newmail[$tlang]=$prof['en'];
						}
                                        $done=orsee_db_save_array($newmail,"lang",$new_id,"lang_id");
                                        unset($newmail);
                                        }
                                unset($old_profs);

				// clean up lang table
				$done=lang__reorganize_lang_table(1000);

				 // import participants log

                                // this might need a lot of memory, so let's do it in tranches of 200
                                // load old log data
                                $i=0; $count=1;

                                $query="DELETE FROM ".table('participants_log');
                                $done=mysql_query($query) or die("Database error: " . mysql_error());

                                while ($count > 0) {
                                        import_db_config();
                                        $query="SELECT * FROM participants_log ORDER by log_id LIMIT $i,200";
                                        $result=mysql_query($query) or die("Database error: " . mysql_error());
                                        $count=mysql_num_rows($result);

                                        $old_log=array();
                                        while ($line=mysql_fetch_assoc($result)) $old_log[]=$line;

                                        site__database_config();

                                        foreach ($old_log as $log) {
                                                $query="INSERT INTO ".table('participants_log')."
                                                        SET log_id='".$log['log_id']."',
                                                        id='".$log['participant_id']."',
                                                        action='".$log['action']."',
                                                        target='',
                                                        year='".$log['year']."',
                                                        month='".$log['month']."',
                                                        day='".$log['day']."',
                                                        timestamp='".$log['timestamp']."'";
                                                $done=mysql_query($query);
                                                }
                                        unset($old_log);
                                        $i=$i+200;
                                        }

				$query="UPDATE ".table('participants_log')."
					SET action='subscribe' where action='register'";
                                $done=mysql_query($query) or die("Database error: " . mysql_error());

				// end continue
				}

			// end version 1.0
                        }

		// end step 5
                }

        echo '';

include ("footer.php");

?>


text:
/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.servicio.reparaciones.web.bean;

import com.servicio.reparaciones.modelo.nosql.Servicio;
import com.servicio.reparaciones.modelo.nosql.Tecnico;
import com.servicio.reparaciones.modelo.nosql.Usuario;
import com.servicio.reparaciones.servicio.ArticuloService;
import com.servicio.reparaciones.servicio.BodegaService;
import com.servicio.reparaciones.servicio.EntradaService;
import com.servicio.reparaciones.servicio.SalidaService;
import com.servicio.reparaciones.servicio.ServicioServicio;
import com.servicio.reparaciones.servicio.TecnicoServicio;
import com.servicio.reparaciones.servicio.UsuarioServicio;
import com.servicio.reparaciones.web.util.FacesUtil;
import java.io.Serializable;
import java.util.Date;
import javax.annotation.PostConstruct;
import javax.faces.context.FacesContext;
import javax.faces.event.ActionEvent;
import javax.inject.Named;
import javax.faces.view.ViewScoped;
import javax.inject.Inject;
import org.primefaces.context.RequestContext;

/**
 *
 * @author luis
 */
@Named(value = "loginBean")
@ViewScoped
public class LoginBean implements Serializable {

    private static final long serialVersionUID = -6124049081154351792L;

    private Usuario usuario;

    @Inject
    private CredencialBean session;
    @Inject
    private UsuarioServicio usuarioService;
    @Inject
    private TecnicoServicio tecnicoService;
    @Inject
    private ServicioServicio servicioService;
    @Inject
    private BodegaService bodegaService;
    @Inject
    private ArticuloService articuloService;
    @Inject
    private EntradaService entradaService;
    @Inject
    private SalidaService salidaService;

    @PostConstruct
    public void init() {
        this.usuario = new Usuario();
        this.createAdmin();
        this.tecnicoBlank();
        this.servicioBlank();
    }

    public void login(ActionEvent evt) {
        RequestContext context = RequestContext.getCurrentInstance();
        String url = FacesContext.getCurrentInstance().getExternalContext().getRequestContextPath();
        Boolean LoggedIn = Boolean.FALSE;
        if (this.usuarioService.existsUsername(this.usuario)) {
            if (this.usuarioService.stateUsername(this.usuario)) {
                if (this.usuarioService.checkPassword(this.usuario)) {
                    Usuario loginUser = this.usuarioService.findByUsername(this.usuario);
                    this.session.startSession(loginUser);
                    url = url + "/faces/views/principal.xhtml";
                    LoggedIn = Boolean.TRUE;
                    this.init();
                } else {
                    FacesUtil.addMessageError(null, "Username y/o contrseña incorreoctos.");
                }
            } else {
                FacesUtil.addMessageInfo("El usuario no esta habilitado porfavor comuniquese con el administrador.");
            }
        } else {
            FacesUtil.addMessageError(null, "El usuario no se encuentra registrado.");
        }
        context.addCallbackParam("loggedIn", LoggedIn);
        context.addCallbackParam("ruta", url);
    }

    private void createAdmin() {
        Usuario admin = new Usuario();
        admin.setEstado(Boolean.TRUE);
        admin.setUsername("admin.servi.2017");
        admin.setPassword("admin.servi.2017");
        admin.setAdmin(Boolean.TRUE);
        admin = this.usuarioService.findByUsername(admin);
        if (admin.getCodigo() == null) {
            Usuario adminServi = new Usuario();
            adminServi.setEstado(Boolean.TRUE);
            adminServi.setAdmin(Boolean.TRUE);
            adminServi.setUsername("admin.servi.2017");
            adminServi.setPassword("admin.servi.2017");
            adminServi.getDatosPersonales().setApellidos("admin");
            adminServi.getDatosPersonales().setNombres("admin");
            adminServi.getDatosPersonales().setCedula("1111111111");
            adminServi.getDatosPersonales().setMovil("9999999999");
            adminServi.getDatosPersonales().setEmail("admin@info.com");
            adminServi.getDatosPersonales().setFechaNacimiento(new Date());
            Usuario mUsername = this.usuarioService.findByUsername(adminServi);
            if (mUsername.getId() == null) {
                this.usuarioService.insert(adminServi);
            }
        }
    }

    private void tecnicoBlank() {
        Tecnico blank = new Tecnico();
        blank.getDatosPersonales().setApellidos("admin");
        blank.getDatosPersonales().setNombres("admin");
        blank.getDatosPersonales().setCedula("1111111111");
        blank.getDatosPersonales().setMovil("9999999999");
        blank.getDatosPersonales().setEmail("admin@info.com");
        blank.getDatosPersonales().setFechaNacimiento(new Date());
        blank.setCargo("blank");
        Usuario admin = new Usuario();
        admin.setEstado(Boolean.TRUE);
        admin.setUsername("admin.servi.2017");
        admin.setPassword("admin.servi.2017");
        admin.setAdmin(Boolean.TRUE);
        admin = this.usuarioService.findByUsername(admin);
        blank.setUsername(admin);
        Tecnico mblank = this.tecnicoService.findByCargo(blank);
        if (mblank.getCodigo() == null) {
            this.tecnicoService.insert(blank);
        }
    }

    private void servicioBlank() {
        Servicio blank = new Servicio();
        blank.setDescripcion("blank");
        blank.setArtefacto("blank");
        blank.setMarca("blank");
        blank.setPrecio(0d);
        Usuario admin = new Usuario();
        admin.setEstado(Boolean.TRUE);
        admin.setUsername("admin.servi.2017");
        admin.setPassword("admin.servi.2017");
        admin.setAdmin(Boolean.TRUE);
        admin = this.usuarioService.findByUsername(admin);
        blank.setUsername(admin);
        Servicio mblank = this.servicioService.findByDescripcion(blank);
        if (mblank.getCodigo() == null) {
            this.servicioService.insert(blank);
        }
    }

    public Usuario getUsuario() {
        return usuario;
    }

    public void setUsuario(Usuario usuario) {
        this.usuario = usuario;
    }

}


text:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace System.Windows.Forms
{
    public class TreeNode
    {
        public string Name { get; set; }
        public string Text { get; set; }
        public List<TreeNode> Nodes = new List<TreeNode>();
        public TreeNode()
        {

        }
        public TreeNode(string name)
        {
            this.Name = name;
            this.Text = name;
        }
        public TreeNode(string name, IEnumerable<TreeNode> nodes) : this(name)
        {
            this.Nodes.AddRange(nodes);
        }
    }
}


text:
<!doctype html>
<html lang="en" ng-app="phonecat">
<head>
  <meta charset="utf-8">
  <title>Google Phone Gallery</title>
  <link rel="stylesheet" href="css/app.css">
  <link rel="stylesheet" href="css/bootstrap.css">
  <script src="lib/angular/angular.js"></script>
  <script src="js/app.js"></script>
  <script src="js/controllers.js"></script>
  <script src="js/filters.js"></script>
</head>
<body>

  <div ng-view></div>

</body>
</html>


text:
#include <boost/test/unit_test.hpp>
#include <boost/thread.hpp>

#include <uecho/util/thread.h>
#include <uecho/util/timer.h>

const int THREAD_TEST_LOOP_NUM = 10;

void test_theread_func(uEchoThread* thread)
{
  int* test_counter = (int*)uecho_thread_getuserdata(thread);
  for (int n = 0; n < THREAD_TEST_LOOP_NUM; n++) {
    (*test_counter)++;
  }
}

BOOST_AUTO_TEST_CASE(ThreadTest)
{
  uEchoThread* thread = uecho_thread_new();

  int test_counter = 0;
  uecho_thread_setaction(thread, test_theread_func);
  uecho_thread_setuserdata(thread, &test_counter);

  BOOST_CHECK_EQUAL(uecho_thread_start(thread), true);
  while (test_counter != THREAD_TEST_LOOP_NUM) {
    uecho_sleep(100);
  }
  BOOST_CHECK_EQUAL(test_counter, THREAD_TEST_LOOP_NUM);
  BOOST_CHECK_EQUAL(uecho_thread_stop(thread), true);

  uecho_thread_delete(thread);
}


text:
package com.evanzeimet.queryinfo.condition;

import com.fasterxml.jackson.databind.JsonNode;

public class DefaultCondition implements Condition {

	private JsonNode leftHandSide;
	private OperandType leftHandSideType;
	private String leftHandSideTypeConfig;
	private String operator;
	private JsonNode rightHandSide;
	private OperandType rightHandSideType;
	private String rightHandSideTypeConfig;

	public DefaultCondition() {

	}

	@Override
	public JsonNode getLeftHandSide() {
		return leftHandSide;
	}

	@Override
	public void setLeftHandSide(JsonNode leftHandSide) {
		this.leftHandSide = leftHandSide;
	}

	@Override
	public OperandType getLeftHandSideType() {
		return leftHandSideType;
	}

	@Override
	public void setLeftHandSideType(OperandType leftHandSideType) {
		this.leftHandSideType = leftHandSideType;
	}

	@Override
	public String getLeftHandSideTypeConfig() {
		return leftHandSideTypeConfig;
	}

	@Override
	public void setLeftHandSideTypeConfig(String leftHandSideTypeConfig) {
		this.leftHandSideTypeConfig = leftHandSideTypeConfig;
	}

	@Override
	public String getOperator() {
		return operator;
	}

	@Override
	public void setOperator(String operator) {
		this.operator = operator;
	}

	@Override
	public JsonNode getRightHandSide() {
		return rightHandSide;
	}

	@Override
	public void setRightHandSide(JsonNode rightHandSide) {
		this.rightHandSide = rightHandSide;
	}

	@Override
	public OperandType getRightHandSideType() {
		return rightHandSideType;
	}

	@Override
	public void setRightHandSideType(OperandType rightHandSideType) {
		this.rightHandSideType = rightHandSideType;
	}

	@Override
	public String getRightHandSideTypeConfig() {
		return rightHandSideTypeConfig;
	}

	@Override
	public void setRightHandSideTypeConfig(String rightHandSideTypeConfig) {
		this.rightHandSideTypeConfig = rightHandSideTypeConfig;
	}

}


text:
using System;
using System.IO;

namespace Memoria.Test
{
    public sealed class UInt64Message : IValueMessage
    {
        public ValueMessageType ValueType => ValueMessageType.UInt64;

        ValueType IValueMessage.Object => Value;

        public UInt64 Value;

        public UInt64Message(UInt64 value)
        {
            Value = value;
        }

        public void Serialize(BinaryWriter bw)
        {
            bw.Write(Value);
        }

        public void Deserialize(BinaryReader br)
        {
            Value = br.ReadUInt64();
        }
    }
}


text:
/**
 * @ignore
 */
// backwards compat
Ext.toolbar.Toolbar.Button = Ext.extend(Ext.button.Button, {});
Ext.toolbar.Toolbar.SplitButton = Ext.extend(Ext.button.Split, {});
Ext.reg('tbbutton', Ext.toolbar.Toolbar.Button);
Ext.reg('tbsplit', Ext.toolbar.Toolbar.SplitButton);

/**
 * @ignore
 */
Ext.toolbar.Toolbar.override({
    /**
     * Adds text to the toolbar
     *

Note: See the notes within {@link Ext.container.Container#add}.

     * @param {String} text The text to add
     * @return {Ext.Toolbar.Item} The element's item
     */
    addText : function(text){
        return this.addItem(new Ext.Toolbar.TextItem(text));
    },

    /**
     * Adds a new element to the toolbar from the passed {@link Ext.core.DomHelper} config
     *

Note: See the notes within {@link Ext.container.Container#add}.

     * @param {Object} config
     * @return {Ext.Toolbar.Item} The element's item
     */
    addDom : function(config){
        return this.add(new Ext.Toolbar.Item({autoEl: config}));
    },

    /**
     * Adds a dynamically rendered Ext.form field (Text, ComboBox, etc). Note: the field should not have
     * been rendered yet. For a field that has already been rendered, use {@link #addElement}.
     *

Note: See the notes within {@link Ext.container.Container#add}.

     * @param {Ext.form.field.Field} field
     * @return {Ext.Toolbar.Item}
     */
    addField : function(field){
        return this.add(field);
    },

    /**
     * Inserts any {@link Ext.toolbar.Item}/{@link Ext.button.Button} at the specified index.
     *

Note: See the notes within {@link Ext.container.Container#add}.

     * @param {Number} index The index where the item is to be inserted
     * @param {Object/Ext.Toolbar.Item/Ext.button.Button/Array} item The button, or button config object to be
     * inserted, or an array of buttons/configs.
     * @return {Ext.button.Button/Item}
     */
    insertButton : function(index, item){
        if(Ext.isArray(item)){
            var buttons = [];
            for(var i = 0, len = item.length; i < len; i++) {
               buttons.push(this.insertButton(index + i, item[i]));
            }
            return buttons;
        }
        return Ext.toolbar.Toolbar.superclass.insert.call(this, index, item);
    },

    /**
     * Adds a separator
     *

Note: See the notes within {@link Ext.container.Container#add}.

     * @return {Ext.toolbar.Item} The separator {@link Ext.toolbar.Item item}
     */
    addSeparator : function(){
        return this.add(new Ext.toolbar.Separator());
    },

    /**
     * Adds a spacer element
     *

Note: See the notes within {@link Ext.container.Container#add}.

     * @return {Ext.Toolbar.Spacer} The spacer item
     */
    addSpacer : function(){
        return this.add(new Ext.Toolbar.Spacer());
    },

    /**
     * Forces subsequent additions into the float:right toolbar
     *

Note: See the notes within {@link Ext.container.Container#add}.

     */
    addFill : function(){
        this.add(new Ext.Toolbar.Fill());
    },

    /**
     * Adds any standard HTML element to the toolbar
     *

Note: See the notes within {@link Ext.container.Container#add}.

     * @param {Mixed} el The element or id of the element to add
     * @return {Ext.Toolbar.Item} The element's item
     */
    addElement : function(el){
        return this.addItem(new Ext.Toolbar.Item({el:el}));
    },

    /**
     * Adds any Toolbar.Item or subclass
     *

Note: See the notes within {@link Ext.container.Container#add}.

     * @param {Ext.Toolbar.Item} item
     * @return {Ext.Toolbar.Item} The item
     */
    addItem : function(item){
        return this.add.apply(this, arguments);
    },

    /**
     * Adds a button (or buttons). See {@link Ext.button.Button} for more info on the config.
     *

Note: See the notes within {@link Ext.container.Container#add}.

     * @param {Object/Array} config A button config or array of configs
     * @return {Ext.button.Button/Array}
     */
    addButton : function(config){
        if(Ext.isArray(config)){
            var buttons = [];
            for(var i = 0, len = config.length; i < len; i++) {
                buttons.push(this.addButton(config[i]));
            }
            return buttons;
        }
        return this.add(this.constructButton(config));
    }
});


text:
namespace ash {

TrayTiles::TrayTiles(SystemTray* system_tray)
    : SystemTrayItem(system_tray, UMA_NOT_RECORDED), default_view_(nullptr) {}

TrayTiles::~TrayTiles() {}

views::View* TrayTiles::GetHelpButtonView() const {
  if (!default_view_)
    return nullptr;
  return default_view_->GetHelpButtonView();
}

TilesDefaultView* TrayTiles::GetDefaultViewForTesting() const {
  return default_view_;
}

views::View* TrayTiles::CreateDefaultViewForTesting(LoginStatus status) {
  return CreateDefaultView(status);
}

views::View* TrayTiles::CreateDefaultView(LoginStatus status) {
  CHECK(default_view_ == nullptr);
  default_view_ = new TilesDefaultView(this, status);
  default_view_->Init();
  return default_view_;
}

void TrayTiles::DestroyDefaultView() {
  default_view_ = nullptr;
}

}  // namespace ash


text:
@interface YYIAppHelper : NSObject
+(id)sharedInstace;

+ (NSString *)deviceID;

+ (NSString *)userAgent;

@end


text:
import logging
import os
from tempfile import TemporaryDirectory

from pyscreenshot.err import FailedBackendError
from pyscreenshot.imcodec import codec
from pyscreenshot.util import run_mod_as_subproc

log = logging.getLogger(__name__)

def childprocess_backend_version(backend):
    p = run_mod_as_subproc("pyscreenshot.cli.print_backend_version", [backend])
    if p.return_code != 0:
        log.warning(p)
        raise FailedBackendError(p)

    return p.stdout

def childprocess_grab(backend, bbox):
    with TemporaryDirectory(prefix="pyscreenshot") as tmpdirname:
        filename = os.path.join(tmpdirname, "screenshot.png")
        cmd = ["--filename", filename]
        if bbox:
            x1, y1, x2, y2 = map(str, bbox)
            bbox = ":".join(map(str, (x1, y1, x2, y2)))
            cmd += ["--bbox", bbox]
        if backend:
            cmd += ["--backend", backend]
        if log.isEnabledFor(logging.DEBUG):
            cmd += ["--debug"]

        p = run_mod_as_subproc("pyscreenshot.cli.grab", cmd)
        if p.return_code != 0:
            # log.debug(p)
            raise FailedBackendError(p)

        data = open(filename, "rb").read()
        data = codec[1](data)
        return data


text:
<?xml version="1.0" ?>
<rdf:RDF xmlns:grn="urn:bbn.com:tasbe:grn/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:sbol="http://sbols.org/v2#" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:annot="http://myannotation.org/" xmlns:prov="http://www.w3.org/ns/prov#">
  <grn:RegulatoryReaction rdf:about="http://www.async.ece.utah.edu/GenericTopLevel/1.0">
    <sbol:persistentIdentity rdf:resource="http://www.async.ece.utah.edu/GenericTopLevel"/>
    <sbol:displayId>GenericTopLevel</sbol:displayId>
    <sbol:version>1.0</sbol:version>
  </grn:RegulatoryReaction>
  <sbol:Experiment rdf:about="http://www.async.ece.utah.edu/experiment/1.0">
    <sbol:persistentIdentity rdf:resource="http://www.async.ece.utah.edu/experiment"/>
    <sbol:displayId>experiment</sbol:displayId>
    <sbol:version>1.0</sbol:version>
    <sbol:experimentalData rdf:resource="http://www.async.ece.utah.edu/experimental_data1/1.0"/>
    <sbol:experimentalData rdf:resource="http://www.async.ece.utah.edu/GenericTopLevel/1.0"/>
  </sbol:Experiment>
  <sbol:ExperimentalData rdf:about="http://www.async.ece.utah.edu/experimental_data1/1.0">
    <sbol:persistentIdentity rdf:resource="http://www.async.ece.utah.edu/experimental_data1"/>
    <sbol:displayId>experimental_data1</sbol:displayId>
    <sbol:version>1.0</sbol:version>
  </sbol:ExperimentalData>
  <sbol:ExperimentalData rdf:about="http://www.async.ece.utah.edu/experimental_data2/1.0">
    <sbol:persistentIdentity rdf:resource="http://www.async.ece.utah.edu/experimental_data2"/>
    <sbol:displayId>experimental_data2</sbol:displayId>
    <sbol:version>1.0</sbol:version>
  </sbol:ExperimentalData>
</rdf:RDF>


text:
package com.amazonaws.services.connect.model.transform;

import javax.annotation.Generated;

import com.amazonaws.SdkClientException;
import com.amazonaws.services.connect.model.*;

import com.amazonaws.protocol.*;
import com.amazonaws.annotation.SdkInternalApi;

/**
 * UpdateUserHierarchyStructureRequestMarshaller
 */
@Generated("com.amazonaws:aws-java-sdk-code-generator")
@SdkInternalApi
public class UpdateUserHierarchyStructureRequestMarshaller {

    private static final MarshallingInfo<StructuredPojo> HIERARCHYSTRUCTURE_BINDING = MarshallingInfo.builder(MarshallingType.STRUCTURED)
            .marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("HierarchyStructure").build();
    private static final MarshallingInfo<String> INSTANCEID_BINDING = MarshallingInfo.builder(MarshallingType.STRING).marshallLocation(MarshallLocation.PATH)
            .marshallLocationName("InstanceId").build();

    private static final UpdateUserHierarchyStructureRequestMarshaller instance = new UpdateUserHierarchyStructureRequestMarshaller();

    public static UpdateUserHierarchyStructureRequestMarshaller getInstance() {
        return instance;
    }

    /**
     * Marshall the given parameter object.
     */
    public void marshall(UpdateUserHierarchyStructureRequest updateUserHierarchyStructureRequest, ProtocolMarshaller protocolMarshaller) {

        if (updateUserHierarchyStructureRequest == null) {
            throw new SdkClientException("Invalid argument passed to marshall(...)");
        }

        try {
            protocolMarshaller.marshall(updateUserHierarchyStructureRequest.getHierarchyStructure(), HIERARCHYSTRUCTURE_BINDING);
            protocolMarshaller.marshall(updateUserHierarchyStructureRequest.getInstanceId(), INSTANCEID_BINDING);
        } catch (Exception e) {
            throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
        }
    }

}


text:
package com.atomikos.icatch.imp;

import com.atomikos.icatch.HeurCommitException;
import com.atomikos.icatch.Participant;

/**
 *
 *
 * A PropagationMessage is used for propagation of 2pc communication.
 */

abstract class PropagationMessage
{
    /**
     * How many times is message re-sent if comm. failure?
     */

    public static final int MAX_RETRIES = 5;
    // how many times is message retried if failure

    protected Participant participant_;
    // to whom should it go?

    protected int retrycount_ = 0;
    // increased on every retry

    protected Result result_ = null;

    // The Result object for this message

    /**
     * Constructor.
     *
     * @param participant
     *            The participant to send it to.
     * @param result
     *            The result object to report to after sending.
     */

    public PropagationMessage ( Participant participant , Result result )
    {
        participant_ = participant;
        result_ = result;
    }

    /**
     * Getter method.
     *
     * @return Participant The participant for this one.
     */

    public Participant getParticipant ()
    {
        return participant_;
    }

    /**
     * Abstract method: send the message.
     *
     * @return Object Application dependent.
     * @exception PropagationException
     *                If any. If the exception is transient, then the Propagator
     *                will retry calling send() until it succeeds. Otherwise, a
     *                failure is reported to the Result object.
     */

    protected abstract Object send () throws PropagationException;

    /**
     * Called by system to process message. This will call the send() method and
     * return a reply to the result object.
     *
     * @return boolean If true, then it should be tried again on failure.
     */

    protected boolean submit ()
    {
        boolean failed = false;
        boolean transienterr = false;
        Exception exception = null;
        Object result = null;
        boolean retried = false;
        boolean heurcommit = false;

        try {
            result = send ();
        } catch ( PropagationException e ) {
            failed = true;
            transienterr = e.isTransient ();
            exception = e.getDetail ();
            if ( exception instanceof HeurCommitException )
                heurcommit = true;
        } finally {

            if ( failed && transienterr && retrycount_ < MAX_RETRIES ) {
                retried = true;
                retrycount_++;
            }

            // the following line is only necessary if not retried,
            // but removing it makes test fail.
            // addReply checks for retried replies anyway, so leave it in.

            if ( result_ != null ) {

                result_.addReply ( new Reply ( result, exception,
                        getParticipant (), retried ) );
            }
            return retried;
        }
    }

}


text:
\echo --start_ignore
set gp_enable_column_oriented_table=on;
\echo --end_ignore
DROP TABLE IF EXISTS mpp21090_changedistpolicy_dml_pttab_int;
CREATE TABLE mpp21090_changedistpolicy_dml_pttab_int
(
    col1 int,
    col2 int,
    col3 char,
    col4 int,
    col5 int
) DISTRIBUTED BY (col1) PARTITION BY RANGE(col2)(partition partone start(1) end(10001) WITH (APPENDONLY=true, COMPRESSLEVEL=5, ORIENTATION=column),partition parttwo start(10001) end(20001) WITH (APPENDONLY=true, COMPRESSLEVEL=5, ORIENTATION=row),partition partthree start(20001) end(30001));

INSERT INTO mpp21090_changedistpolicy_dml_pttab_int VALUES(10000,10000,'a',10000,0);
SELECT * FROM mpp21090_changedistpolicy_dml_pttab_int ORDER BY 1,2,3,4;

ALTER TABLE mpp21090_changedistpolicy_dml_pttab_int DROP COLUMN col4;

INSERT INTO mpp21090_changedistpolicy_dml_pttab_int VALUES(10000,10000,'b',1);
SELECT * FROM mpp21090_changedistpolicy_dml_pttab_int ORDER BY 1,2,3,4;

ALTER TABLE mpp21090_changedistpolicy_dml_pttab_int SET DISTRIBUTED BY (col3);

INSERT INTO mpp21090_changedistpolicy_dml_pttab_int SELECT 20000, 20000,'c', 2;
SELECT * FROM mpp21090_changedistpolicy_dml_pttab_int ORDER BY 1,2,3;

UPDATE mpp21090_changedistpolicy_dml_pttab_int SET col3 ='c' WHERE col3 ='b';
SELECT * FROM mpp21090_changedistpolicy_dml_pttab_int ORDER BY 1,2,3;

DELETE FROM mpp21090_changedistpolicy_dml_pttab_int WHERE col3 ='c';
SELECT * FROM mpp21090_changedistpolicy_dml_pttab_int ORDER BY 1,2,3;


text:
<?xml version="1.0" encoding="utf-8"?>
<!--
  Copyright 2019 The Android Open Source Project

  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.
  -->

<resources>
    <!-- Definitions of attributes to be exposed as public -->
    <public type="attr" name="alpha"/>
    <public type="attr" name="lStar" />
    <public type="attr" name="fontProviderAuthority"/>
    <public type="attr" name="fontProviderPackage"/>
    <public type="attr" name="fontProviderQuery"/>
    <public type="attr" name="fontProviderCerts"/>
    <public type="attr" name="fontProviderFetchStrategy"/>
    <public type="attr" name="fontProviderFetchTimeout"/>
    <public type="attr" name="fontProviderSystemFontFamily"/>
    <public type="attr" name="fontStyle"/>
    <public type="attr" name="font"/>
    <public type="attr" name="fontWeight"/>
    <public type="attr" name="fontVariationSettings"/>
    <public type="attr" name="ttcIndex"/>
    <public type="attr" name="queryPatterns"/>
    <public type="attr" name="shortcutMatchRequired"/>

    <!-- Definitions of styles to be exposed as public -->
    <public type="style" name="TextAppearance.Compat.Notification"/>
    <public type="style" name="TextAppearance.Compat.Notification.Title"/>
    <public type="style" name="TextAppearance.Compat.Notification.Info"/>
    <public type="style" name="TextAppearance.Compat.Notification.Line2"/>
    <public type="style" name="TextAppearance.Compat.Notification.Time"/>
</resources>


text:
namespace net {

// Implements a QuartcStreamInterface using a QuicStream.
class QUIC_EXPORT_PRIVATE QuartcStream : public QuicStream,
                                         public QuartcStreamInterface {
 public:
  QuartcStream(QuicStreamId id, QuicSession* session);

  ~QuartcStream() override;

  // QuicStream overrides.
  void OnDataAvailable() override;

  void OnClose() override;

  void OnCanWrite() override;

  // QuartcStreamInterface overrides.
  uint32_t stream_id() override;

  uint64_t buffered_amount() override;

  bool fin_sent() override;

  void Write(const char* data,
             size_t size,
             const WriteParameters& param) override;

  void Close() override;

  void SetDelegate(QuartcStreamInterface::Delegate* delegate) override;

 private:
  QuartcStreamInterface::Delegate* delegate_ = nullptr;
};

}  // namespace net

#endif  // NET_QUIC_QUARTC_QUARTC_STREAM_H_


text:
/*
    -- MAGMA (version 2.1.0) --
       Univ. of Tennessee, Knoxville
       Univ. of California, Berkeley
       Univ. of Colorado, Denver
       @date August 2016

       @precisions normal z -> c

       @author Jakub Kurzak
       @author Stan Tomov
       @author Mark Gates
       @author Azzam Haidar
       @author Ahmad Abdelfattah

*/
#include "magma_internal.h"
#include "commonblas_z.h"

#define COMPLEX

/******************************************************************************/
extern "C" void
magmablas_zsyr2k_vbatched_max_nocheck(
    magma_uplo_t uplo, magma_trans_t trans, magma_int_t* n, magma_int_t* k,
    magmaDoubleComplex alpha,
    magmaDoubleComplex const * const * dA_array, magma_int_t* ldda,
    magmaDoubleComplex const * const * dB_array, magma_int_t* lddb,
    magmaDoubleComplex beta,
    magmaDoubleComplex **dC_array, magma_int_t* lddc,
    magma_int_t batchCount,
    magma_int_t max_n, magma_int_t max_k, magma_queue_t queue )
{
    magmaDoubleComplex c_one = MAGMA_Z_MAKE(1., 0.);

    // Quick return if possible
    if( ( n == 0 ) ||
        ( (alpha == 0 || k == 0) && (beta == 1) ) ||
        ( batchCount == 0 )
      ) return;

    if( trans == MagmaNoTrans){
        magmablas_zsyrk_internal_vbatched(uplo, MagmaNoTrans, n, k, alpha, dA_array, ldda, dB_array, lddb, beta, dC_array, lddc, max_n, max_k, batchCount, queue );
        magmablas_zsyrk_internal_vbatched(uplo, MagmaNoTrans, n, k, alpha, dB_array, lddb, dA_array, ldda, c_one, dC_array, lddc, max_n, max_k, batchCount, queue );
    }else{
        magmablas_zsyrk_internal_vbatched(uplo, MagmaTrans, n, k, alpha, dA_array, ldda, dB_array, lddb, beta, dC_array, lddc, max_n, max_k, batchCount, queue );
        magmablas_zsyrk_internal_vbatched(uplo, MagmaTrans, n, k, alpha, dB_array, lddb, dA_array, ldda, c_one, dC_array, lddc, max_n, max_k, batchCount, queue );
    }
}

/******************************************************************************/
extern "C" void
magmablas_zsyr2k_vbatched_max(
    magma_uplo_t uplo, magma_trans_t trans, magma_int_t* n, magma_int_t* k,
    magmaDoubleComplex alpha,
    magmaDoubleComplex const * const * dA_array, magma_int_t* ldda,
    magmaDoubleComplex const * const * dB_array, magma_int_t* lddb,
    magmaDoubleComplex beta,
    magmaDoubleComplex **dC_array, magma_int_t* lddc,
    magma_int_t batchCount,
    magma_int_t max_n, magma_int_t max_k, magma_queue_t queue )
{
    magma_int_t info = 0;
    info =  magma_syr2k_vbatched_checker( 1, uplo, trans, n, k, ldda, lddb, lddc, batchCount, queue );
    if (info != 0) {
        magma_xerbla( __func__, -(info) );
        return;
    }

    magmablas_zsyr2k_vbatched_max_nocheck(
            uplo, trans,
            n, k,
            alpha, dA_array, ldda,
                   dB_array, lddb,
            beta,  dC_array, lddc,
            batchCount, max_n, max_k, queue );
}

/******************************************************************************/
extern "C" void
magmablas_zsyr2k_vbatched_nocheck(
    magma_uplo_t uplo, magma_trans_t trans, magma_int_t* n, magma_int_t* k,
    magmaDoubleComplex alpha,
    magmaDoubleComplex const * const * dA_array, magma_int_t* ldda,
    magmaDoubleComplex const * const * dB_array, magma_int_t* lddb,
    magmaDoubleComplex beta,
    magmaDoubleComplex **dC_array, magma_int_t* lddc,
    magma_int_t batchCount, magma_queue_t queue )
{
    // compute the max. dimensions
    magma_imax_size_2(n, k, batchCount, queue);
    magma_int_t max_n, max_k;
    magma_getvector(1, sizeof(magma_int_t), &n[batchCount], 1, &max_n, 1, queue);
    magma_getvector(1, sizeof(magma_int_t), &k[batchCount], 1, &max_k, 1, queue);

    // Quick return if possible
    if( ( n == 0 ) ||
        ( (alpha == 0 || k == 0) && (beta == 1) ) ||
        ( batchCount == 0 )
      ) return;

    magmablas_zsyr2k_vbatched_max_nocheck(
            uplo, trans,
            n, k,
            alpha, dA_array, ldda,
                   dB_array, lddb,
            beta,  dC_array, lddc,
            batchCount, max_n, max_k, queue );
}

/***************************************************************************//**
    Purpose
    -------
   ZSYR2K  performs one of the symmetric rank 2k operations

      C := alpha*A*B**T + conjg( alpha )*B*A**T + beta*C,

   or

      C := alpha*A**T*B + conjg( alpha )*B**T*A + beta*C,

   where  alpha and beta  are scalars with  beta  real,  C is an  n by n
   symmetric matrix and  A and B  are  n by k matrices in the first case
   and  k by n  matrices in the second case.

    Parameters
    ----------
    @param[in]
    uplo     magma_uplo_t.
             On entry, UPLO specifies whether the upper or lower
             triangular part of the array C is to be referenced as
             follows:
      -     = MagmaUpper:  Only the upper triangular part of C is to be referenced.
      -     = MagmaLower:  Only the lower triangular part of C is to be referenced.

    @param[in]
    trans    magma_trans_t.
             On entry, TRANS specifies the operation to be performed as
             follows:
      -     = MagmaNoTrans:     C := alpha*A*B**T + conj( alpha )*B*A**T + beta*C.
      -     = Magma_ConjTrans:  C := alpha*A**T*B + conj( alpha )*B**T*A + beta*C.

    @param[in]
    n        Array of integers, size(batchCount + 1).
             On entry, each INTEGER N specifies the order of the corresponding matrix C.
             N must be at least zero.
             The last element of the array is used internally by the routine.

    @param[in]
    k        Array of integers, size(batchCount + 1).
             On entry with TRANS = MagmaNoTrans, each INTEGER K specifies the number
             of columns of the corresponding matrices A and B, and on entry with
             TRANS = Magma_ConjTrans, K specifies the number of rows of the
             corresponding matrices A and B. k must be at least zero.

    @param[in]
    alpha    COMPLEX*16.
             On entry, ALPHA specifies the scalar alpha.

    @param[in]
    dA_array      Array of pointers, dimension (batchCount).
             Each is a COMPLEX*16 array of DIMENSION ( LDDA, Ka ), where Ka is
             K when TRANS = MagmaNoTrans, and is N otherwise.
             Before entry with TRANS = MagmaNoTrans, the leading N by K
             part of the array A must contain the matrix A, otherwise
             the leading K by N part of the array A must contain the
             matrix A.

    @param[in]
    ldda    Array of integers, size(batchCount + 1).
            On entry, each INTEGER LDDA specifies the first dimension of the
            corresponding matrix A as declared in the calling (sub) program.
            When TRANS = MagmaNoTrans then LDDA must be at least max( 1, N ),
            otherwise LDDA must be at least max( 1, K ).
            The last element of the array is used internally by the routine.

    @param[in]
    dB_array      Array of pointers, dimension (batchCount).
             Each is a COMPLEX*16 array of DIMENSION ( LDDB, Kb ), where Kb is
             K  when  TRANS = MagmaNoTrans,  and is  N  otherwise.
             Before entry with  TRANS = MagmaNoTrans,  the  leading  N by K
             part of the array  B  must contain the matrix  B,  otherwise
             the leading  K by N  part of the array  B  must contain  the
             matrix B.

    @param[in]
    lddb     Array of integers, size(batchCount + 1).
             On entry, each INTEGER LDDB specifies the first dimension of the
             corresponding matrix B as declared in  the  calling  (sub)  program.
             When  TRANS = MagmaNoTrans then LDDB must be at least  max( 1, N ),
             otherwise LDDB must be at least  max( 1, K ).
             Unchanged on exit.
             The last element of the array is used internally by the routine.

    @param[in]
    beta    COMPLEX*16.
            On entry,  BETA  specifies the scalar  beta.

    @param[in,out]
    dC_array      Array of pointers, dimension (batchCount).
             Each is COMPLEX*16 array of DIMENSION ( lddc, n ).
             Before entry  with  UPLO = MagmaUpper,  the leading  n by n
             upper triangular part of the array C must contain the upper
             triangular part  of the  symmetric matrix  and the strictly
             lower triangular part of C is not referenced.  On exit, the
             upper triangular part of the array  C is overwritten by the
             upper triangular part of the updated matrix.
             Before entry  with  UPLO = MagmaLower,  the leading  n by n
             lower triangular part of the array C must contain the lower
             triangular part  of the  symmetric matrix  and the strictly
             upper triangular part of C is not referenced.  On exit, the
             lower triangular part of the array  C is overwritten by the
             lower triangular part of the updated matrix.
             Note that the imaginary parts of the diagonal elements need
             not be set,  they are assumed to be zero,  and on exit they
             are set to zero.

    @param[in]
    lddc    Array of integers, size(batchCount + 1).
            On entry, each INTEGER LDDC specifies the first dimension of each array C
            as declared in  the  calling  (sub)  program.   LDDC  must  be  at  least
            max( 1, N ).
            The last element of the array is used internally by the routine.

    @param[in]
    batchCount  INTEGER
                The number of matrices to operate on.

    @param[in]
    queue   magma_queue_t
            Queue to execute in.

    @ingroup magma_syr2k_batched
*******************************************************************************/
extern "C" void
magmablas_zsyr2k_vbatched(
    magma_uplo_t uplo, magma_trans_t trans, magma_int_t* n, magma_int_t* k,
    magmaDoubleComplex alpha,
    magmaDoubleComplex const * const * dA_array, magma_int_t* ldda,
    magmaDoubleComplex const * const * dB_array, magma_int_t* lddb,
    magmaDoubleComplex beta,
    magmaDoubleComplex **dC_array, magma_int_t* lddc,
    magma_int_t batchCount, magma_queue_t queue )
{
    magma_int_t info = 0;
    info =  magma_syr2k_vbatched_checker( 1, uplo, trans, n, k, ldda, lddb, lddc, batchCount, queue );
    if (info != 0) {
        magma_xerbla( __func__, -(info) );
        return;
    }

    // compute the max. dimensions
    magma_imax_size_2(n, k, batchCount, queue);
    magma_int_t max_n, max_k;
    magma_getvector(1, sizeof(magma_int_t), &n[batchCount], 1, &max_n, 1, queue);
    magma_getvector(1, sizeof(magma_int_t), &k[batchCount], 1, &max_k, 1, queue);

    // Quick return if possible
    if( ( n == 0 ) ||
        ( (alpha == 0 || k == 0) && (beta == 1) ) ||
        ( batchCount == 0 )
      ) return;

    magmablas_zsyr2k_vbatched_max_nocheck(
            uplo, trans,
            n, k,
            alpha, dA_array, ldda,
                   dB_array, lddb,
            beta,  dC_array, lddc,
            batchCount, max_n, max_k, queue );
}


text:
package de.is24.rest.api.export.api.impl;

import java.io.File;

/**
 * @author Martin Fluegge
 *
 */
public abstract class FileMultimediaObject extends AbstractMultimediaObject {

	private File file;

	public File getFile() {
		return file;
	}

	public void setFile(File file) {
		this.file = file;
	}
}


text:
package org.apache.asterix.common.memory;

import java.nio.ByteBuffer;
import java.util.logging.Logger;

public class FrameAction {
    private static final boolean DEBUG = false;
    private static final Logger LOGGER = Logger.getLogger(FrameAction.class.getName());
    private ByteBuffer allocated;
    private ByteBuffer frame;

    public void call(ByteBuffer freeFrame) {
        if (DEBUG) {
            LOGGER.info("FrameAction: My subscription is being answered");
        }
        freeFrame.put(frame);
        synchronized (this) {
            allocated = freeFrame;
            if (DEBUG) {
                LOGGER.info("FrameAction: Waking up waiting threads");
            }
            notifyAll();
        }
    }

    public synchronized ByteBuffer retrieve() throws InterruptedException {
        if (DEBUG) {
            LOGGER.info("FrameAction: Attempting to get allocated buffer");
        }
        while (allocated == null) {
            if (DEBUG) {
                LOGGER.info("FrameAction: Allocated buffer is not ready yet. I will wait for it");
            }
            wait();
            if (DEBUG) {
                LOGGER.info("FrameAction: Awoken Up");
            }
        }
        ByteBuffer temp = allocated;
        allocated = null;
        return temp;
    }

    public void setFrame(ByteBuffer frame) {
        this.frame = frame;
    }

    public int getSize() {
        return frame.capacity();
    }
}


text:
<!doctype html>

  <meta charset="utf-8">
  <title>ADMAG | Responsive Blog & Magazine HTML Template</title>
  <meta name="keywords" content="HTML5 Template">
  <meta name="description" content="ADMAG — Responsive Blog & Magazine HTML Template">
  <meta name="author" content="digitaltheme.co">
  <meta class="viewport" name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">

  <link rel="shortcut icon" href="img/favicon/favicon.ico" type="image/x-icon" />
  <link rel="apple-touch-icon" sizes="57x57" href="img/favicon/apple-touch-icon-57x57.png">
  <link rel="apple-touch-icon" sizes="60x60" href="img/favicon/apple-touch-icon-60x60.png">
  <link rel="apple-touch-icon" sizes="72x72" href="img/favicon/apple-touch-icon-72x72.png">
  <link rel="apple-touch-icon" sizes="76x76" href="img/favicon/apple-touch-icon-76x76.png">
  <link rel="apple-touch-icon" sizes="114x114" href="img/favicon/apple-touch-icon-114x114.png">
  <link rel="apple-touch-icon" sizes="120x120" href="img/favicon/apple-touch-icon-120x120.png">
  <link rel="apple-touch-icon" sizes="144x144" href="img/favicon/apple-touch-icon-144x144.png">
  <link rel="apple-touch-icon" sizes="152x152" href="img/favicon/apple-touch-icon-152x152.png">
  <link rel="apple-touch-icon" sizes="180x180" href="img/favicon/apple-touch-icon-180x180.png">
  <link rel="icon" type="image/png" href="img/favicon/favicon-16x16.png" sizes="16x16">
  <link rel="icon" type="image/png" href="img/favicon/favicon-32x32.png" sizes="32x32">
  <link rel="icon" type="image/png" href="img/favicon/favicon-96x96.png" sizes="96x96">
  <link rel="icon" type="image/png" href="img/favicon/android-chrome-192x192.png" sizes="192x192">

  <link href="http://fonts.googleapis.com/css?family=Roboto:100,300,300italic,400,400italic,500,700,700italic,900" rel="stylesheet" type="text/css">
  <link href="http://fonts.googleapis.com/css?family=Noto+Serif:400,400italic,700,700italic" rel="stylesheet" type="text/css">
  <link href="http://fonts.googleapis.com/css?family=Raleway:900" rel="stylesheet" type="text/css">

  <link rel="stylesheet" href="plugins/font-awesome/css/font-awesome.min.css">

  <link rel="stylesheet" href="plugins/bootstrap/css/bootstrap.min.css">

  <link rel="stylesheet" href="css/style.css">

                AD MAG

                  Home

Home - All Block

                      Home - Grid Style

With Sidebar

No Sidebar

                      Home - Blog Style

Classic Blog

Modern Blog

                      Home - Minimal Style

2 Columns

2 Columns With Sidebar

3 Columns

                      Home - Fixed Sidebar

Fixed Left Sidebar

Fixed Right Sidebar

                      Home - 3 Different Columns

Left Big Column

Right Big Column

                  Tech

Reviews

Apps

Design

Gadgets

Mobile

                                  Nikon D5000 review: Design, Controls, Screen

                                  Apple iOS 8 Review

                                  Canon 70D review

                                  iMac review

                                  Top 15 Android tablet apps for work and play

                                  Apple iOS 8 Review

                                  15 apps you need to download right now

                                  9 Apps for Transforming Your Phone into The Ultimate Toolkit

                                  Asia's 100 Fastest Growing Technology Companies

                                  Nikon D5000 review: Design, Controls, Screen

                                  20 Incredible Job Sites for Freelance Computer Techs

                                  5 Ways to Use the Web Developer Toolbar for SEO

                                  5 Gadget Gifts for Father's Day

                                  Audio Equalizer Apps Beyond the Smartphone Sound

                                  Smartwatch App Concepts You Need to See

                                  How to Buy the Right Headphones

                                  What the Viny "Comeback" Really Looks Like

                                  Are smartphones stressing kids out?

                                  Android Wear is Coming to Luxury Watches

                                  These are the four apps that every smartphone must get right

                  Lifestyle

                              6 Tips Before Traveling Internationally

                              How Can I Find a Coffee Shop That'll Actually Let Me Work?

                              10 Tips for Taking Great Outdoor Photos

                              9 Reasons To Run in the Morning

                              Never Ask a Busy Person to Lunch

                  Business

                              3 things I learned about running startup board meetings

                              How Technology Is Revolutionizing the Franchise World

                              8 Ways to Know If Your Business Is Ready to Franchise

                              9 Business Leaders Share the Best and Worst Advice They've Heard

                              Tickets and prices for Metro and public transport in Milan

                  Entertainment

                              Does going to the gym count as a sport?

                              Older actors still hot in Hollywood

                              Inside U2's Ambitious Upcoming Tour Strategy

                              How Bollywood is romancing with period films to woo modern audience

                              9 Curious Facts About Charlie Chaplin

                  Features

                      Header Style

Header Style 1

Header Style 2

Header Style 3

Header Style 4

                      Footer Style

Footer Style 1

Footer Style 2

                      Pages

About Page

Contact Page

Author page

Tags page

Search page

404 page

                      Posts

Simple Post

Review Post

Parallax post

Full Width Post

Fixed Sidebar Post

Gallery Post

Video Post

                      Category Layouts

Classic blog

Modern blog

Grid blog

Minimal blog

Fixed sidebar blog

Left big column blog

Typography

Shortcodes

              <form>
                <input class="sb-search-input" placeholder="Enter your search text..." type="text" value="" name="search" id="search">
                <input class="sb-search-submit" type="submit" value="">

              </form>

                9 Steps to Staying Motivated for Creative Freelancers

                Design

                by John Doe
                 2 hours ago
                 1349 views
                4

How am I ever gonna explain this? Remember, a Jedi can feel the Force flowing through him. All right. Well, take care of yourself, Han. I guess that's what you're best at, ain't it? Still, she's got a lot of spirit. I don't know, what do you think? But with the blast shield down, I can't even see! How am I supposed to fight? I need your help, Luke. She needs your help. I'm getting too old for this sort of thing.

The Phantom Menace

This is the image caption

Kid, I've flown from one side of this galaxy to the other. I've seen a lot of strange stuff, but I've never seen anything to make me believe there's one all-powerful Force controlling everything. There's no mystical energy field that controls my destiny. It's all a lot of simple tricks and nonsense. Red Five standing by. I care. So, what do you think of her, Han? You don't believe in the Force, do you? I have traced the Rebel spies to her. Now she is my only link to finding their secret base.
                  Remember, a Jedi can feel the Force flowing through him. Kid, I've flown from one side of this galaxy to the other. I've seen a lot of strange stuff, but I've never seen anything to make me believe there's one all-powerful Force controlling everything. There's no mystical energy field that controls my destiny. It's all a lot of simple tricks and nonsense. Hey, Luke! May the Force be with you. You're all clear, kid. Let's blow this thing and go home! Partially, but it also obeys your commands. I'm surprised you had the courage to take the responsibility yourself.

The Rebel Force

This is the image caption

Obi-Wan is here. The Force is with him. You are a part of the Rebel Alliance and a traitor! Take her away! A tremor in the Force. The last time I felt it was in the presence of my old master. Leave that to me. Send a distress signal, and inform the Senate that all on board were killed. Look, I can take you as far as Anchorhead. You can get a transport there to Mos Eisley or wherever you're going. Hey, Luke! May the Force be with you. You mean it controls your actions? But with the blast shield down, I can't even see! How am I supposed to fight? Red Five standing by. You are a part of the Rebel Alliance and a traitor! Take her away!
                  Remember, a Jedi can feel the Force flowing through him. Kid, I've flown from one side of this galaxy to the other. I've seen a lot of strange stuff, but I've never seen anything to make me believe there's one all-powerful Force controlling everything. There's no mystical energy field that controls my destiny. It's all a lot of simple tricks and nonsense. Hey, Luke! May the Force be with you. You're all clear, kid. Let's blow this thing and go home! Partially, but it also obeys your commands. I'm surprised you had the courage to take the responsibility yourself.

Revenge of the Sith

Remember, a Jedi can feel the Force flowing through him. Kid, I've flown from one side of this galaxy to the other. I've seen a lot of strange stuff, but I've never seen anything to make me believe there's one all-powerful Force controlling everything. There's no mystical energy field that controls my destiny. It's all a lot of simple tricks and nonsense. Hey, Luke! May the Force be with you. You're all clear, kid. Let's blow this thing and go home! Partially, but it also obeys your commands. I'm surprised you had the courage to take the responsibility yourself.

I want to come with you to Alderaan. There's nothing for me here now. I want to learn the ways of the Force and be a Jedi, like my father before me. He is here. Don't be too proud of this technological terror you've constructed. The ability to destroy a planet is insignificant next to the power of the Force.

TAGS:

Creative

Wood

Advice

                  267

Shares

                    Share

                    Tweet

                        Previous post

                      4 apps that every smartphone must get right

                        Next post

                      What the Viny "Comeback" Really Looks Like

John Doe

                    He is here. All right. Well, take care of yourself, Han. I guess that's what you're best at, ain't it? What?! Don't act so surprised, Your Highness. You weren't on any mercy mission this time.

Related Posts

          Fashion

              5 Spring Outfits For Under $200

            by John Doe -
             4 hours ago

          Travel

              6 Tips Before Traveling Internationally

            by John Doe -
             46 minutes ago

          Food

              How to Make Perfect Homemade Pizza

            by John Doe -
             12 hours ago

          Advice

              10 Tips for Taking Great Outdoor Photos

            by John Doe -
             13 hours ago

Comments

                Stephen Thompson
                March 12, 2015 at 8:41 am

The more you tighten your grip, Tarkin, the more star systems will slip through your fingers. Don't be too proud of this technological terror you've constructed. The ability to destroy a planet is insignificant next to the power of the Force.

Reply

                    Martha Collins
                    March 12, 2015 at 11:02 am

The more you tighten your grip, Tarkin, the more star systems will slip through your fingers. Don't be too proud of this technological terror you've constructed. The ability to destroy a planet is insignificant next to the power of the Force.

Reply

                        Stephen Thompson
                        March 12, 2015 at 11:34 am

The more you tighten your grip, Tarkin, the more star systems will slip through your fingers. Don't be too proud of this technological terror you've constructed. The ability to destroy a planet is insignificant next to the power of the Force.

Reply

                Lauren Daniels
                March 18, 2015 at 2:41 pm

The more you tighten your grip, Tarkin, the more star systems will slip through your fingers. Don't be too proud of this technological terror you've constructed. The ability to destroy a planet is insignificant next to the power of the Force.

Reply

Leave a Comment

      <form class="clearfix" action="#" method="post" id="commentform">

              <input type="text" name="author" id="author" value="" tabindex="1" class="form-control" placeholder="Name *">

                <input type="text" name="email" id="email" value="" tabindex="2" class="form-control" placeholder="Email *">

                <textarea name="comment" cols="50" rows="6" tabindex="4" class="form-control" placeholder="Your comment *"></textarea>

          <button name="submit" type="submit" id="submit-button" tabindex="5" value="Submit" class="btn btn-default">Submit</button>

      </form>

      <form class="searchwidget-form">

          <input type="text" class="form-control" placeholder="Search...">

            <button class="btn btn-default" type="button"></button>

      </form>

Popular

Recent

Comments

                The 10 most beautiful cars money can buy

                 1,129,753 views

                Asian Startup Companies Boom

                 989,039 views

                9 Apps for Transforming Your Phone into The Ultimate Toolkit

                 920,540 views

                15 Books You Should Read Before They Become Movies This Year

                 780,540 views

                The 20 most important Instagram pictures of all time

                 725,566 views

                7 Tips for Creating a Functional Home Workspace

                 2 minutes ago

                Does going to the gym count as a sport?

                 2 minutes ago

                Older actors still hot in Hollywood

                 3 minutes ago

                5 Gadget Gifts for Father's Day

                 3 minutes ago

                Inside U2's Ambitious Upcoming Tour Strategy

                 5 minutes ago

                How to Buy the Right Headphones

                 12 minutes ago

                6 Tips Before Traveling Internationally

                 26 minutes ago

                The Partnership of Coffee and Tech

                 34 minutes ago

                8 Ways to Know If Your Business Is Ready to Franchise

                 40 minutes ago

                Tickets and prices for Metro and public transport in Milan

                 54 minutes ago

Tags

Windows 10

FIFA 2015

iPhone 6

Flappy Bird

World Cup

WeChat desktop

Clash of Clans

Apple Watch

Oscar 2015

Taken 3

Lego

Reviews

            Nikon D5000 review: Design, Controls, Screen

            Apple iOS 8 Review

            Canon 70D review

            iMac review

Categories

          Tech 25

          Lifestyle 23

          Business 19

          Entertainment 20

Subscribe

The more you tighten your grip, Tarkin, the more star systems will slip through your fingers.

      <form class="form-inline">

          <input type="text" class="form-control" placeholder="Enter your email">

            <button class="btn btn-default" type="button">Subscribe</button>

      </form>

                    AD MAG

                  You are a part of the Rebel Alliance and a traitor! Take her away! You are a part of the Rebel Alliance and a traitor! Take her away! Don't underestimate the Force. Hey, Luke! May the Force be with you.

Categories

Tech

Lifestyle

Business

Entertainment

Social

Politics

Tags

Windows 10

FIFA 2015

iPhone 6

Flappy Bird

World Cup

WeChat desktop

Clash of Clans

Apple Watch

Oscar 2015

Taken 3

Dota

Newsletter

The more you tighten your grip, Tarkin, the more star systems will slip through your fingers.

                <form>

                    <input type="text" class="form-control" placeholder="Enter your email">

                      <button class="btn btn-default" type="button">Subscribe</button>

                </form>

Copyright Admag © 2015. All Rights Reserved

        Home

Home - All Block

            Home - Grid Style

With Sidebar

No Sidebar

            Home - Blog Style

Classic Blog

Modern Blog

            Home - Minimal Style

2 Columns

2 Columns With Sidebar

3 Columns

            Home - Fixed Sidebar

Fixed Left Sidebar

Fixed Right Sidebar

            Home - 3 Different Columns

Left Big Column

Right Big Column

        Tech

Reviews

Apps

Design

Gadgets

Mobile

        Lifestyle

Love

Advice

Food

Travel

Fashion

Business

Entertainment

        Features

            Header Style

Header Style 1

Header Style 2

Header Style 3

Header Style 4

            Footer Style

Footer Style 1

Footer Style 2

            Pages

About Page

Contact Page

Author page

Tags page

Search page

404 page

            Posts

Simple Post

Review Post

Parallax post

Full Width Post

Fixed Sidebar Post

Gallery Post

Video Post

            Category Layouts

Classic blog

Modern blog

Grid blog

Minimal blog

Fixed sidebar blog

Left big column blog

Typography

Shortcodes


text:
<script src="giveTreeNode.js"></script>
<script src="giveNonLeafNode.js"></script>
<script src="witheringMixin.js"></script>
<script src="dataNode.js"></script>
<script src="giveTree.js"></script>