text:
package net.fortytwo.ripple.sail;

import info.aduna.iteration.CloseableIteration;
import org.openrdf.model.IRI;
import org.openrdf.model.Resource;
import org.openrdf.model.Statement;
import org.openrdf.model.Value;
import org.openrdf.model.ValueFactory;
import org.openrdf.query.QueryEvaluationException;
import org.openrdf.query.algebra.evaluation.TripleSource;
import org.openrdf.sail.SailConnection;
import org.openrdf.sail.SailException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @author Joshua Shinavier (http://fortytwo.net)
 */
public class SailConnectionTripleSource implements TripleSource {
    private static final Logger logger = LoggerFactory.getLogger(SailConnectionTripleSource.class.getName());

    private final SailConnection sailConnection;
    private final ValueFactory valueFactory;
    private final boolean includeInferred;

    public SailConnectionTripleSource(final SailConnection conn,
                                      final ValueFactory valueFactory,
                                      final boolean includeInferred) {
        sailConnection = conn;
        this.valueFactory = valueFactory;
        this.includeInferred = includeInferred;
    }

    public CloseableIteration<? extends Statement, QueryEvaluationException> getStatements(
            final Resource subj, final IRI pred, final Value obj, final Resource... contexts) {
        try {
            return new QueryEvaluationIteration(
                    sailConnection.getStatements(subj, pred, obj, includeInferred, contexts));
        } catch (SailException e) {
            logger.warn("query evaluation failed", e);
            return new EmptyCloseableIteration<>();
        }
    }

    public ValueFactory getValueFactory() {
        return valueFactory;
    }
}


text:
#ifndef R300_TGSI_TO_RC_H
#define R300_TGSI_TO_RC_H

#include "pipe/p_compiler.h"

struct radeon_compiler;

struct tgsi_full_declaration;
struct tgsi_shader_info;
struct tgsi_token;

struct swizzled_imms {
    unsigned index;
    unsigned swizzle;
};

struct tgsi_to_rc {
    struct radeon_compiler * compiler;
    const struct tgsi_shader_info * info;

    int immediate_offset;
    struct swizzled_imms * imms_to_swizzle;
    unsigned imms_to_swizzle_count;

    /* Vertex shaders have no half swizzles, and no way to handle them, so
     * until rc grows proper support, indicate if they're safe to use. */
    boolean use_half_swizzles;
};

void r300_tgsi_to_rc(struct tgsi_to_rc * ttr, const struct tgsi_token * tokens);

#endif /* R300_TGSI_TO_RC_H */

redpajama_set_name: RedPajamaGithub


text:
    <meta http-equiv="Content-Type" content="text/html; charset=Windows-1252" />
    <meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5" />
    <title>NativeError Class</title>
    <xml>
    </xml>
    <link rel="stylesheet" type="text/css" href="MSDN.css" />

            log4net SDK Reference

NativeError Class

 Represents a native error code and message.

For a list of all members of this type, see NativeError Members.

        System.Object

   log4net.Util.NativeError

        [Visual Basic]

NotInheritable Public Class NativeError

        [C#]

public sealed class NativeError

Thread Safety

This type is not safe for multithreaded operations.

Remarks

 Represents a Win32 platform native error.

Requirements

Namespace: log4net.Util

Assembly: log4net (in log4net.dll)

See Also

NativeError Members | log4net.Util Namespace

Copyright 2001-2006 The Apache Software Foundation.

Generated from assembly log4net [1.2.10.0]


text:
package com.example.moodly.Activities;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.util.SparseBooleanArray;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.ListView;

import com.example.moodly.Controllers.UserController;
import com.example.moodly.Models.User;
import com.example.moodly.R;

import java.util.ArrayList;

/**
 * Created by Victor on 2017-03-08.
 * Fragment to be displayed on SocialBase
 * Loads list of people that the current user follows from ElasticSearch
 *
 * @see SocialBase
 */

/**
 * SocialFollowingList class displays the current user's
 * following list. It sets the views of the user list and
 * updates when a change has been made.
 */
public class SocialFollowingList extends Fragment {

    protected UserController userController = UserController.getInstance();
    protected User currentUser;
    protected ArrayList<String> userList;

    private View rootView;
    protected ListView displayUserList;
    protected ArrayAdapter<String> adapter;

    /**
     * Synchronization of the user's following list
     * from ElasticSearch and sets the views to display
     * the list.
     * @param inflater
     * @param container
     * @param savedInstanceState
     * @return rootView
     * @see #setViews(LayoutInflater, ViewGroup)
     * @see #refreshOnline()
     */
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {

        refreshOnline();
        userList = currentUser.getFollowing();
        setViews(inflater, container);

        return rootView;
    }
    /**
     * Gets the ListViews of the user list and displays
     * the current user's following list in a ListView format
     * @param inflater
     * @param container
     */
    protected void setViews(LayoutInflater inflater, ViewGroup container) {

        rootView = inflater.inflate(R.layout.social_list, container, false);

        displayUserList = (ListView) rootView.findViewById(R.id.display_social_list);

        adapter = new ArrayAdapter<String>(getActivity(), R.layout.user_list_item, userList);
        displayUserList.setAdapter(adapter);

    }

    /**
     * Synchronization of an user's following list using
     * ElasticSearch
     */
    protected void refreshOnline() {
        // add synchronization elements for part 5 here?
        currentUser = userController.getCurrentUser();
        //followers = userController.getFollowers();

    }

}


text:
@font-face {
  font-family: 'icomoon';
  src:  url('fonts/icomoon.eot?ds29vl');
  src:  url('fonts/icomoon.eot?ds29vl#iefix') format('embedded-opentype'),
    url('fonts/icomoon.ttf?ds29vl') format('truetype'),
    url('fonts/icomoon.woff?ds29vl') format('woff'),
    url('fonts/icomoon.svg?ds29vl#icomoon') format('svg');
  font-weight: normal;
  font-style: normal;
}

[class^="icon-"], [class*=" icon-"] {
  /* use !important to prevent issues with browser extensions that change fonts */
  font-family: 'icomoon' !important;
  speak: none;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;

  /* Better Font Rendering =========== */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.icon-cross:before {
  content: "\ea0f";
}
.icon-checkmark:before {
  content: "\ea10";
}


text:
import validateNpmPkgName from 'validate-npm-package-name'
export function npm_validate(options) {
    options = options || {};
    if (!options.message) {
        options.message = "Invalid Package Name"
    }
    if (!options.validType) {
        options.validType = 'validForNewPackages'
    }
    return function package_name$validator(value) {
        if (!validateNpmPkgName(value)[options.validType]) {
            return {
                message: options.message
            }
        }
    }
}

export default  ({
    npm_validate
})


text:
<?php

require ("scriptValidaSession.php");
require ("../clases/unidad.class.php");
require ("../clases/baseDatos.class.php");

$conexion = new baseDatos();

if ($conexion->connect_errno) {

    echo "Fallo la conexion: ".$conexion->connect_error;
}

$unidad = new Unidad();

$unidad->setPlaca($_POST['placa']);
$unidad->setMarca($_POST['marca']);
$unidad->setModelo($_POST['modelo']);
$unidad->setCapacidad($_POST['capacidad']);
$unidad->setId_chofer($_POST['chofer']);
$unidad->addUnidad($conexion);

$conexion->close();

header("location: ../listUnit.php?active=4");
?>


text:
using namespace emscripten;

class MyClass {
    public:
        MyClass(int x, std::string y): x(x), y(y)
        {}

        void incrementX() {
            ++x;
        }

        int getX() const { return x; }
        void setX(int x_) { x = x_; }

        static std::string getStringFromInstance(const MyClass& instance) {
            return instance.y;
        }

    private:
        int x;
        std::string y;
};

// Binding code
EMSCRIPTEN_BINDINGS(MyClass) {
  class_<MyClass>("MyClass")
    .constructor<int, std::string>()
    .function("incrementX", &MyClass::incrementX)
    .property("x", &MyClass::getX, &MyClass::setX)
    .class_function("getStringFromInstance", &MyClass::getStringFromInstance);
}


text:
package com.android.settings;

import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.net.NetworkScoreManager;
import android.net.NetworkScorerAppManager;
import android.net.NetworkScorerAppManager.NetworkScorerAppData;
import android.os.Bundle;
import android.os.UserHandle;
import android.text.TextUtils;
import android.util.Log;

import com.android.internal.app.AlertActivity;
import com.android.internal.app.AlertController;

/**
 * Dialog to allow a user to select a new network scorer.
 *
 * <p>Finishes with {@link #RESULT_CANCELED} in all circumstances unless the scorer is successfully
 * changed or was already set to the new value (in which case it finishes with {@link #RESULT_OK}).
 */
public final class ActiveNetworkScorerDialog extends AlertActivity implements
        DialogInterface.OnClickListener {
    private static final String TAG = "ActiveNetScorerDlg";

    private String mNewPackageName;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        Intent intent = getIntent();
        mNewPackageName = intent.getStringExtra(NetworkScoreManager.EXTRA_PACKAGE_NAME);

        if (!buildDialog()) {
            finish();
        }
    }

    @Override
    public void onClick(DialogInterface dialog, int which) {
        switch (which) {
            case BUTTON_POSITIVE:
                NetworkScoreManager nsm =
                    (NetworkScoreManager) getSystemService(Context.NETWORK_SCORE_SERVICE);
                if (nsm.setActiveScorer(mNewPackageName)) {
                    setResult(RESULT_OK);
                }
                break;
            case BUTTON_NEGATIVE:
                break;
        }
    }

    private boolean buildDialog() {
        if (UserHandle.myUserId() != UserHandle.USER_OWNER) {
            Log.i(TAG, "Can only set scorer for owner user.");
            return false;
        }
        NetworkScorerAppData newScorer = NetworkScorerAppManager.getScorer(this, mNewPackageName);
        if (newScorer == null) {
            Log.e(TAG, "New package " + mNewPackageName + " is not a valid scorer.");
            return false;
        }

        NetworkScorerAppData oldScorer = NetworkScorerAppManager.getActiveScorer(this);
        if (oldScorer != null && TextUtils.equals(oldScorer.mPackageName, mNewPackageName)) {
            Log.i(TAG, "New package " + mNewPackageName + " is already the active scorer.");
            // Set RESULT_OK to indicate to the caller that the "switch" was successful.
            setResult(RESULT_OK);
            return false;
        }

        // Compose dialog.
        CharSequence newName = newScorer.mScorerName;
        final AlertController.AlertParams p = mAlertParams;
        p.mTitle = getString(R.string.network_scorer_change_active_dialog_title);
        if (oldScorer != null) {
            p.mMessage = getString(R.string.network_scorer_change_active_dialog_text, newName,
                    oldScorer.mScorerName);
        } else {
            p.mMessage = getString(R.string.network_scorer_change_active_no_previous_dialog_text,
                    newName);
        }
        p.mPositiveButtonText = getString(R.string.yes);
        p.mNegativeButtonText = getString(R.string.no);
        p.mPositiveButtonListener = this;
        p.mNegativeButtonListener = this;
        setupAlert();

        return true;
    }
}


text:
Puppet::Functions.create_function(:convert_cert_to_string) do
  dispatch :convert_cert_to_string do
    param 'String', :cert_file
  end

  def convert_cert_to_string(cert_file)
    unless File.file?(cert_file)
      raise puppet::ParseError, "Certificate file not found: #{cert_file}"
    end
    text=File.readlines(cert_file)
    cert_string = ''
    text.each do |line|
      unless line.include? '-----'
        cert_string += line.strip
      end
    end
    return cert_string
  end
end


text:
using System;
using System.Collections.Generic;
using System.Linq.Expressions;
using System.Web;
using Umbraco.Core.Models;
using Umbraco.Core.Models.PublishedContent;
using Umbraco.Web;
using Umbraco.ModelsBuilder;
using Umbraco.ModelsBuilder.Umbraco;

[assembly: PureLiveAssembly]
[assembly:ModelsBuilderAssembly(PureLive = true, SourceHash = "c78a81249667a243")]
[assembly:System.Reflection.AssemblyVersion("0.0.0.1")]

namespace Umbraco.Web.PublishedContentModels
{
	/// Home
	[PublishedContentModel("home")]
	public partial class Home : PublishedContentModel
	{
#pragma warning disable 0109 // new is redundant
		public new const string ModelTypeAlias = "home";
		public new const PublishedItemType ModelItemType = PublishedItemType.Content;
#pragma warning restore 0109

		public Home(IPublishedContent content)
			: base(content)
		{ }

#pragma warning disable 0109 // new is redundant
		public new static PublishedContentType GetModelContentType()
		{
			return PublishedContentType.Get(ModelItemType, ModelTypeAlias);
		}
#pragma warning restore 0109

		public static PublishedPropertyType GetModelPropertyType<TValue>(Expression<Func<Home, TValue>> selector)
		{
			return PublishedContentModelUtility.GetModelPropertyType(GetModelContentType(), selector);
		}

		///
		/// Heading
		///
		[ImplementPropertyType("heading")]
		public string Heading
		{
			get { return this.GetPropertyValue<string>("heading"); }
		}

		///
		/// Subheading
		///
		[ImplementPropertyType("subheading")]
		public string Subheading
		{
			get { return this.GetPropertyValue<string>("subheading"); }
		}
	}

	/// Header
	[PublishedContentModel("header")]
	public partial class Header : Home
	{
#pragma warning disable 0109 // new is redundant
		public new const string ModelTypeAlias = "header";
		public new const PublishedItemType ModelItemType = PublishedItemType.Content;
#pragma warning restore 0109

		public Header(IPublishedContent content)
			: base(content)
		{ }

#pragma warning disable 0109 // new is redundant
		public new static PublishedContentType GetModelContentType()
		{
			return PublishedContentType.Get(ModelItemType, ModelTypeAlias);
		}
#pragma warning restore 0109

		public static PublishedPropertyType GetModelPropertyType<TValue>(Expression<Func> selector)
		{
			return PublishedContentModelUtility.GetModelPropertyType(GetModelContentType(), selector);
		}
	}

	/// Navigation Link
	[PublishedContentModel("navigationLink")]
	public partial class NavigationLink : Home
	{
#pragma warning disable 0109 // new is redundant
		public new const string ModelTypeAlias = "navigationLink";
		public new const PublishedItemType ModelItemType = PublishedItemType.Content;
#pragma warning restore 0109

		public NavigationLink(IPublishedContent content)
			: base(content)
		{ }

#pragma warning disable 0109 // new is redundant
		public new static PublishedContentType GetModelContentType()
		{
			return PublishedContentType.Get(ModelItemType, ModelTypeAlias);
		}
#pragma warning restore 0109

		public static PublishedPropertyType GetModelPropertyType<TValue>(Expression<Func<NavigationLink, TValue>> selector)
		{
			return PublishedContentModelUtility.GetModelPropertyType(GetModelContentType(), selector);
		}

		///
		/// URL
		///
		[ImplementPropertyType("linkURL")]
		public string LinkUrl
		{
			get { return this.GetPropertyValue<string>("linkURL"); }
		}
	}

	/// Section
	[PublishedContentModel("page")]
	public partial class Page : Home
	{
#pragma warning disable 0109 // new is redundant
		public new const string ModelTypeAlias = "page";
		public new const PublishedItemType ModelItemType = PublishedItemType.Content;
#pragma warning restore 0109

		public Page(IPublishedContent content)
			: base(content)
		{ }

#pragma warning disable 0109 // new is redundant
		public new static PublishedContentType GetModelContentType()
		{
			return PublishedContentType.Get(ModelItemType, ModelTypeAlias);
		}
#pragma warning restore 0109

		public static PublishedPropertyType GetModelPropertyType<TValue>(Expression<Func<Page, TValue>> selector)
		{
			return PublishedContentModelUtility.GetModelPropertyType(GetModelContentType(), selector);
		}

		///
		/// Content
		///
		[ImplementPropertyType("content")]
		public IHtmlString Content
		{
			get { return this.GetPropertyValue<IHtmlString>("content"); }
		}
	}

	/// Project
	[PublishedContentModel("project")]
	public partial class Project : Home
	{
#pragma warning disable 0109 // new is redundant
		public new const string ModelTypeAlias = "project";
		public new const PublishedItemType ModelItemType = PublishedItemType.Content;
#pragma warning restore 0109

		public Project(IPublishedContent content)
			: base(content)
		{ }

#pragma warning disable 0109 // new is redundant
		public new static PublishedContentType GetModelContentType()
		{
			return PublishedContentType.Get(ModelItemType, ModelTypeAlias);
		}
#pragma warning restore 0109

		public static PublishedPropertyType GetModelPropertyType<TValue>(Expression<Func<Project, TValue>> selector)
		{
			return PublishedContentModelUtility.GetModelPropertyType(GetModelContentType(), selector);
		}

		///
		/// Code URL
		///
		[ImplementPropertyType("codeURL")]
		public string CodeUrl
		{
			get { return this.GetPropertyValue<string>("codeURL"); }
		}

		///
		/// Content
		///
		[ImplementPropertyType("content")]
		public IHtmlString Content
		{
			get { return this.GetPropertyValue<IHtmlString>("content"); }
		}

		///
		/// Demo URL
		///
		[ImplementPropertyType("demoURL")]
		public string DemoUrl
		{
			get { return this.GetPropertyValue<string>("demoURL"); }
		}

		///
		/// Image
		///
		[ImplementPropertyType("image")]
		public IPublishedContent Image
		{
			get { return this.GetPropertyValue<IPublishedContent>("image"); }
		}
	}

	/// Web Page
	[PublishedContentModel("webPage")]
	public partial class WebPage : PublishedContentModel
	{
#pragma warning disable 0109 // new is redundant
		public new const string ModelTypeAlias = "webPage";
		public new const PublishedItemType ModelItemType = PublishedItemType.Content;
#pragma warning restore 0109

		public WebPage(IPublishedContent content)
			: base(content)
		{ }

#pragma warning disable 0109 // new is redundant
		public new static PublishedContentType GetModelContentType()
		{
			return PublishedContentType.Get(ModelItemType, ModelTypeAlias);
		}
#pragma warning restore 0109

		public static PublishedPropertyType GetModelPropertyType<TValue>(Expression<Func<WebPage, TValue>> selector)
		{
			return PublishedContentModelUtility.GetModelPropertyType(GetModelContentType(), selector);
		}

		///
		/// Background Color
		///
		[ImplementPropertyType("backgroundColor")]
		public string BackgroundColor
		{
			get { return this.GetPropertyValue<string>("backgroundColor"); }
		}

		///
		/// Key Color
		///
		[ImplementPropertyType("keyColor")]
		public string KeyColor
		{
			get { return this.GetPropertyValue<string>("keyColor"); }
		}

		///
		/// Mountain Dark Color
		///
		[ImplementPropertyType("mountainDarkColor")]
		public string MountainDarkColor
		{
			get { return this.GetPropertyValue<string>("mountainDarkColor"); }
		}

		///
		/// Mountain Shadow Color
		///
		[ImplementPropertyType("mountainShadowColor")]
		public string MountainShadowColor
		{
			get { return this.GetPropertyValue<string>("mountainShadowColor"); }
		}

		///
		/// Secondary Color
		///
		[ImplementPropertyType("secondaryColor")]
		public string SecondaryColor
		{
			get { return this.GetPropertyValue<string>("secondaryColor"); }
		}

		///
		/// Sky Greadient: Paste hex color values comma separated, https://codepen.io/zessx/pen/rDEAl/
		///
		[ImplementPropertyType("skyGreadient")]
		public string SkyGreadient
		{
			get { return this.GetPropertyValue<string>("skyGreadient"); }
		}
	}

	/// Skill
	[PublishedContentModel("skill")]
	public partial class Skill : Home
	{
#pragma warning disable 0109 // new is redundant
		public new const string ModelTypeAlias = "skill";
		public new const PublishedItemType ModelItemType = PublishedItemType.Content;
#pragma warning restore 0109

		public Skill(IPublishedContent content)
			: base(content)
		{ }

#pragma warning disable 0109 // new is redundant
		public new static PublishedContentType GetModelContentType()
		{
			return PublishedContentType.Get(ModelItemType, ModelTypeAlias);
		}
#pragma warning restore 0109

		public static PublishedPropertyType GetModelPropertyType<TValue>(Expression<Func<Skill, TValue>> selector)
		{
			return PublishedContentModelUtility.GetModelPropertyType(GetModelContentType(), selector);
		}

		///
		/// Content
		///
		[ImplementPropertyType("content")]
		public IHtmlString Content
		{
			get { return this.GetPropertyValue<IHtmlString>("content"); }
		}

		///
		/// Image
		///
		[ImplementPropertyType("image")]
		public IPublishedContent Image
		{
			get { return this.GetPropertyValue<IPublishedContent>("image"); }
		}

		///
		/// Years
		///
		[ImplementPropertyType("years")]
		public int Years
		{
			get { return this.GetPropertyValue<int>("years"); }
		}
	}

	/// Folder
	[PublishedContentModel("Folder")]
	public partial class Folder : PublishedContentModel
	{
#pragma warning disable 0109 // new is redundant
		public new const string ModelTypeAlias = "Folder";
		public new const PublishedItemType ModelItemType = PublishedItemType.Media;
#pragma warning restore 0109

		public Folder(IPublishedContent content)
			: base(content)
		{ }

#pragma warning disable 0109 // new is redundant
		public new static PublishedContentType GetModelContentType()
		{
			return PublishedContentType.Get(ModelItemType, ModelTypeAlias);
		}
#pragma warning restore 0109

		public static PublishedPropertyType GetModelPropertyType<TValue>(Expression<Func<Folder, TValue>> selector)
		{
			return PublishedContentModelUtility.GetModelPropertyType(GetModelContentType(), selector);
		}

		///
		/// Contents:
		///
		[ImplementPropertyType("contents")]
		public object Contents
		{
			get { return this.GetPropertyValue("contents"); }
		}
	}

	/// Image
	[PublishedContentModel("Image")]
	public partial class Image : PublishedContentModel
	{
#pragma warning disable 0109 // new is redundant
		public new const string ModelTypeAlias = "Image";
		public new const PublishedItemType ModelItemType = PublishedItemType.Media;
#pragma warning restore 0109

		public Image(IPublishedContent content)
			: base(content)
		{ }

#pragma warning disable 0109 // new is redundant
		public new static PublishedContentType GetModelContentType()
		{
			return PublishedContentType.Get(ModelItemType, ModelTypeAlias);
		}
#pragma warning restore 0109

		public static PublishedPropertyType GetModelPropertyType<TValue>(Expression<Func<Image, TValue>> selector)
		{
			return PublishedContentModelUtility.GetModelPropertyType(GetModelContentType(), selector);
		}

		///
		/// Size
		///
		[ImplementPropertyType("umbracoBytes")]
		public string UmbracoBytes
		{
			get { return this.GetPropertyValue<string>("umbracoBytes"); }
		}

		///
		/// Type
		///
		[ImplementPropertyType("umbracoExtension")]
		public string UmbracoExtension
		{
			get { return this.GetPropertyValue<string>("umbracoExtension"); }
		}

		///
		/// Upload image
		///
		[ImplementPropertyType("umbracoFile")]
		public Umbraco.Web.Models.ImageCropDataSet UmbracoFile
		{
			get { return this.GetPropertyValue<Umbraco.Web.Models.ImageCropDataSet>("umbracoFile"); }
		}

		///
		/// Height
		///
		[ImplementPropertyType("umbracoHeight")]
		public string UmbracoHeight
		{
			get { return this.GetPropertyValue<string>("umbracoHeight"); }
		}

		///
		/// Width
		///
		[ImplementPropertyType("umbracoWidth")]
		public string UmbracoWidth
		{
			get { return this.GetPropertyValue<string>("umbracoWidth"); }
		}
	}

	/// File
	[PublishedContentModel("File")]
	public partial class File : PublishedContentModel
	{
#pragma warning disable 0109 // new is redundant
		public new const string ModelTypeAlias = "File";
		public new const PublishedItemType ModelItemType = PublishedItemType.Media;
#pragma warning restore 0109

		public File(IPublishedContent content)
			: base(content)
		{ }

#pragma warning disable 0109 // new is redundant
		public new static PublishedContentType GetModelContentType()
		{
			return PublishedContentType.Get(ModelItemType, ModelTypeAlias);
		}
#pragma warning restore 0109

		public static PublishedPropertyType GetModelPropertyType<TValue>(Expression<Func<File, TValue>> selector)
		{
			return PublishedContentModelUtility.GetModelPropertyType(GetModelContentType(), selector);
		}

		///
		/// Size
		///
		[ImplementPropertyType("umbracoBytes")]
		public string UmbracoBytes
		{
			get { return this.GetPropertyValue<string>("umbracoBytes"); }
		}

		///
		/// Type
		///
		[ImplementPropertyType("umbracoExtension")]
		public string UmbracoExtension
		{
			get { return this.GetPropertyValue<string>("umbracoExtension"); }
		}

		///
		/// Upload file
		///
		[ImplementPropertyType("umbracoFile")]
		public string UmbracoFile
		{
			get { return this.GetPropertyValue<string>("umbracoFile"); }
		}
	}

	/// Member
	[PublishedContentModel("Member")]
	public partial class Member : PublishedContentModel
	{
#pragma warning disable 0109 // new is redundant
		public new const string ModelTypeAlias = "Member";
		public new const PublishedItemType ModelItemType = PublishedItemType.Member;
#pragma warning restore 0109

		public Member(IPublishedContent content)
			: base(content)
		{ }

#pragma warning disable 0109 // new is redundant
		public new static PublishedContentType GetModelContentType()
		{
			return PublishedContentType.Get(ModelItemType, ModelTypeAlias);
		}
#pragma warning restore 0109

		public static PublishedPropertyType GetModelPropertyType<TValue>(Expression<Func<Member, TValue>> selector)
		{
			return PublishedContentModelUtility.GetModelPropertyType(GetModelContentType(), selector);
		}

		///
		/// Is Approved
		///
		[ImplementPropertyType("umbracoMemberApproved")]
		public bool UmbracoMemberApproved
		{
			get { return this.GetPropertyValue<bool>("umbracoMemberApproved"); }
		}

		///
		/// Comments
		///
		[ImplementPropertyType("umbracoMemberComments")]
		public string UmbracoMemberComments
		{
			get { return this.GetPropertyValue<string>("umbracoMemberComments"); }
		}

		///
		/// Failed Password Attempts
		///
		[ImplementPropertyType("umbracoMemberFailedPasswordAttempts")]
		public string UmbracoMemberFailedPasswordAttempts
		{
			get { return this.GetPropertyValue<string>("umbracoMemberFailedPasswordAttempts"); }
		}

		///
		/// Last Lockout Date
		///
		[ImplementPropertyType("umbracoMemberLastLockoutDate")]
		public string UmbracoMemberLastLockoutDate
		{
			get { return this.GetPropertyValue<string>("umbracoMemberLastLockoutDate"); }
		}

		///
		/// Last Login Date
		///
		[ImplementPropertyType("umbracoMemberLastLogin")]
		public string UmbracoMemberLastLogin
		{
			get { return this.GetPropertyValue<string>("umbracoMemberLastLogin"); }
		}

		///
		/// Last Password Change Date
		///
		[ImplementPropertyType("umbracoMemberLastPasswordChangeDate")]
		public string UmbracoMemberLastPasswordChangeDate
		{
			get { return this.GetPropertyValue<string>("umbracoMemberLastPasswordChangeDate"); }
		}

		///
		/// Is Locked Out
		///
		[ImplementPropertyType("umbracoMemberLockedOut")]
		public bool UmbracoMemberLockedOut
		{
			get { return this.GetPropertyValue<bool>("umbracoMemberLockedOut"); }
		}

		///
		/// Password Answer
		///
		[ImplementPropertyType("umbracoMemberPasswordRetrievalAnswer")]
		public string UmbracoMemberPasswordRetrievalAnswer
		{
			get { return this.GetPropertyValue<string>("umbracoMemberPasswordRetrievalAnswer"); }
		}

		///
		/// Password Question
		///
		[ImplementPropertyType("umbracoMemberPasswordRetrievalQuestion")]
		public string UmbracoMemberPasswordRetrievalQuestion
		{
			get { return this.GetPropertyValue<string>("umbracoMemberPasswordRetrievalQuestion"); }
		}
	}

}


text:
package net.sf.mmm.ui.toolkit.api.view.composite;

import net.sf.mmm.ui.toolkit.api.common.GridCellInfo;
import net.sf.mmm.ui.toolkit.api.view.UiElement;

/**
 * This is the interface of a {@link UiComposite} that represents a row of a {@link UiGridPanel}.
 *
 * @author Joerg Hohwiller (hohwille at users.sourceforge.net)
 * @param <CHILD> is the generic type of the {@link #getChild(int) children}.
 * @since 1.0.0
 */
public interface UiGridRow<CHILD extends UiElement> extends UiExtendableComposite<CHILD> {

  /** @see #getType() */
  String TYPE = "GridRow";

  /**
   * This method sets the given child as cell in this row at the specified column. A
   * {@link UiGridPanel} is created
   *
   * @param child is the {@link UiElement} to add.
   * @param column is the index of the column where to add the given child.
   */
  void setChild(CHILD child, int column);

  /**
   * This method gets the {@link GridCellInfo} for the {@link #getChild(int) cell} identified by the given
   * column in this {@link UiGridRow} .

   * NOTE:

   * The {@link GridCellInfo} are in sync with the {@link #getChild(int) children} of this {@link UiGridRow}.
   * Operations like {@link #removeChild(int)} or {@link #insertChild(UiElement, int)} will update the
   * {@link GridCellInfo}s accordingly.
   *
   * @param column is the index of the column of the cell in this row. Needs to be in the range from
   *        0 to {@link #getChildCount()} - 1.
   * @return the {@link GridCellInfo} for the identified cell.
   */
  GridCellInfo getCellInfo(int column);

}


text:
REM -------------------------------------------------------------
REM
REM vividos' last intro
REM (c) 2018 vividos
REM
REM -------------------------------------------------------------

REM Build.cmd - Build script for the standalone intro

set PATH=%PATH%;%CD%\..\tools\cc65\bin;%CD%\..\tools\winVICE;%CD%\..\tools\pucrunch\

ca65 ..\shared\intro.s -o intro-standalone.o -D EXIT_ACTION_SOFT_RESET -t c64
ca65 scrolltext.s -t c64
ld65 -C ..\shared\intro.cfg intro-standalone.o scrolltext.o -o intro-standalone.prg
pucrunch.exe -f -c64 -i1 -g0x37 intro-standalone.prg intro-standalone-pucrunch.prg
c1541 < c1541script.txt

pause


text:
namespace electron {

class TrayIconGtk : public TrayIcon, public ui::StatusIconLinux::Delegate {
 public:
  TrayIconGtk();
  ~TrayIconGtk() override;

  // TrayIcon:
  void SetImage(const gfx::Image& image) override;
  void SetToolTip(const std::string& tool_tip) override;
  void SetContextMenu(ElectronMenuModel* menu_model) override;

  // ui::StatusIconLinux::Delegate
  void OnClick() override;
  bool HasClickAction() override;
  // The following four methods are only used by StatusIconLinuxDbus, which we
  // aren't yet using, so they are given stub implementations.
  const gfx::ImageSkia& GetImage() const override;
  const std::u16string& GetToolTip() const override;
  ui::MenuModel* GetMenuModel() const override;
  void OnImplInitializationFailed() override;

 private:
  std::unique_ptr<ui::StatusIconLinux> icon_;
  gfx::ImageSkia image_;
  std::u16string tool_tip_;
  ui::MenuModel* menu_model_;
};

}  // namespace electron

#endif  // ELECTRON_SHELL_BROWSER_UI_TRAY_ICON_GTK_H_


text:
/* generated from Designfiles Public by generate_data_designfles */
require ('frameworks.mootools.core');
/*! LOAD: frameworks.mootools.core !*/

if(!window.$wh) window.$wh={};

(function($) { //mootools wrapper

/* IE FOCUS FIX - IE allows <divs> and some other elements to receive focus, if directly clicked.
   Debugged it using:

  ( function() { if(document.activeElement) ($$('.wh-menubar')[0] || $$('#demo h1')[0]).set('text', (document.activeElement.outerHTML || document.activeElement.innerHTML).substr(0,100));}).periodical(100);

*/
if(Browser.name=="ie")
{
  window.addEvent("domready",function()
  {
    window.addEventListener("focus", function(event)
    {
      for(var settarget = event.target; settarget && !$wh.isFocusableComponent(settarget); settarget=settarget.parentNode)
        ; //iterate until we find a target

      if(settarget && settarget != event.target && !settarget.isContentEditable)
        settarget.focus();
    },true);
  });
}

})(document.id); //end mootools wrapper


text:
source ./extras/colors

# Copy & Move Files Into Specified Directory
# ------------------------------------------------------------------------------

dir="$HOME/Code"

if [ ! -e ~/.ssh/config ]; then
	cp $dir/dotfiles/dots/.ssh/config ~/.ssh/config

	printf "\n$INFO - %s$RESET\n" "Copied SSH Config into home directory."
else
	printf "\n$INFO - %s$RESET\n" "SSH Config already exists in home directory."
fi


text:
"use strict";
// Counter as computable.
// ======================
exports.__esModule = true;
// Is this even necessary?
// TODO: add Obsevable.timer-like functionality.
var Observable_1 = require("rxjs/Observable");
require("rxjs/add/observable/interval");
function Cnt(ms) {
    if (ms === void 0) { ms = 1000; }
    return Observable_1.Observable.interval(ms);
}
exports.Cnt = Cnt;


text:
package com.example.scrumptious;

import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.location.Criteria;
import android.location.Location;
import android.location.LocationListener;
import android.location.LocationManager;
import android.net.Uri;
import android.os.Bundle;
import android.os.Looper;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentActivity;
import android.support.v4.app.FragmentManager;
import android.widget.Toast;
import com.facebook.FacebookException;
import com.example.scrumptious.picker.FriendPickerFragment;
import com.example.scrumptious.picker.PickerFragment;
import com.example.scrumptious.picker.PlacePickerFragment;

/**
 * The PickerActivity enhances the Friend or Place Picker by adding a title
 * and a Done button. The selection results are saved in the ScrumptiousApplication
 * instance.
 */
public class PickerActivity extends FragmentActivity {
    public static final Uri FRIEND_PICKER = Uri.parse("picker://friend");
    public static final Uri PLACE_PICKER = Uri.parse("picker://place");

    private static final int SEARCH_RADIUS_METERS = 1000;
    private static final int SEARCH_RESULT_LIMIT = 50;
    private static final String SEARCH_TEXT = "Restaurant";
    private static final int LOCATION_CHANGE_THRESHOLD = 50; // meters

    private FriendPickerFragment friendPickerFragment;
    private PlacePickerFragment placePickerFragment;
    private LocationListener locationListener;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.pickers);

        Bundle args = getIntent().getExtras();
        FragmentManager manager = getSupportFragmentManager();
        Fragment fragmentToShow = null;
        Uri intentUri = getIntent().getData();

        if (FRIEND_PICKER.equals(intentUri)) {
            if (savedInstanceState == null) {
                friendPickerFragment = new FriendPickerFragment();
                friendPickerFragment.setSettingsFromBundle(args);
                friendPickerFragment.setFriendPickerType(FriendPickerFragment.FriendPickerType.TAGGABLE_FRIENDS);
            } else {
                friendPickerFragment = (FriendPickerFragment) manager.findFragmentById(R.id.picker_fragment);;
            }

            friendPickerFragment.setOnErrorListener(new PickerFragment.OnErrorListener() {
                @Override
                public void onError(PickerFragment fragment, FacebookException error) {
                    PickerActivity.this.onError(error);
                }
            });
            friendPickerFragment.setOnDoneButtonClickedListener(new PickerFragment.OnDoneButtonClickedListener() {
                @Override
                public void onDoneButtonClicked(PickerFragment fragment) {
                    finishActivity();
                }
            });
            fragmentToShow = friendPickerFragment;

        } else if (PLACE_PICKER.equals(intentUri)) {
            if (savedInstanceState == null) {
                placePickerFragment = new PlacePickerFragment();
                placePickerFragment.setSettingsFromBundle(args);
            } else {
                placePickerFragment = (PlacePickerFragment) manager.findFragmentById(R.id.picker_fragment);
            }
            placePickerFragment.setOnSelectionChangedListener(new PickerFragment.OnSelectionChangedListener() {
                @Override
                public void onSelectionChanged(PickerFragment fragment) {
                    finishActivity(); // call finish since you can only pick one place
                }
            });
            placePickerFragment.setOnErrorListener(new PickerFragment.OnErrorListener() {
                @Override
                public void onError(PickerFragment fragment, FacebookException error) {
                    PickerActivity.this.onError(error);
                }
            });
            placePickerFragment.setOnDoneButtonClickedListener(new PickerFragment.OnDoneButtonClickedListener() {
                @Override
                public void onDoneButtonClicked(PickerFragment fragment) {
                    finishActivity();
                }
            });
            fragmentToShow = placePickerFragment;
        } else {
            // Nothing to do, finish
            setResult(RESULT_CANCELED);
            finish();
            return;
        }

        manager.beginTransaction().replace(R.id.picker_fragment, fragmentToShow).commit();
    }

    @Override
    protected void onStart() {
        super.onStart();
        if (FRIEND_PICKER.equals(getIntent().getData())) {
            try {
                friendPickerFragment.loadData(false);
            } catch (Exception ex) {
                onError(ex);
            }
        } else if (PLACE_PICKER.equals(getIntent().getData())) {
            try {
                Location location = null;
                Criteria criteria = new Criteria();
                LocationManager locationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE);
                String bestProvider = locationManager.getBestProvider(criteria, false);
                if (bestProvider != null) {
                    location = locationManager.getLastKnownLocation(bestProvider);
                    if (locationManager.isProviderEnabled(bestProvider) && locationListener == null) {
                        locationListener = new LocationListener() {
                            @Override
                            public void onLocationChanged(Location location) {
                                boolean updateLocation = true;
                                Location prevLocation = placePickerFragment.getLocation();
                                if (prevLocation != null) {
                                    updateLocation = location.distanceTo(prevLocation) >= LOCATION_CHANGE_THRESHOLD;
                                }
                                if (updateLocation) {
                                    placePickerFragment.setLocation(location);
                                    placePickerFragment.loadData(true);
                                }
                            }
                            @Override
                            public void onStatusChanged(String s, int i, Bundle bundle) {
                            }
                            @Override
                            public void onProviderEnabled(String s) {
                            }
                            @Override
                            public void onProviderDisabled(String s) {
                            }
                        };
                        locationManager.requestLocationUpdates(bestProvider, 1, LOCATION_CHANGE_THRESHOLD,
                                locationListener, Looper.getMainLooper());
                    }
                }
                if (location != null) {
                    placePickerFragment.setLocation(location);
                    placePickerFragment.setRadiusInMeters(SEARCH_RADIUS_METERS);
                    placePickerFragment.setSearchText(SEARCH_TEXT);
                    placePickerFragment.setResultsLimit(SEARCH_RESULT_LIMIT);
                    placePickerFragment.loadData(false);
                }
            } catch (Exception ex) {
                onError(ex);
            }
        }
    }

    @Override
    protected void onStop() {
        super.onStop();
        if (locationListener != null) {
            LocationManager locationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE);
            locationManager.removeUpdates(locationListener);
            locationListener = null;
        }
    }

    private void onError(Exception error) {
        String text = getString(R.string.exception, error.getMessage());
        Toast toast = Toast.makeText(this, text, Toast.LENGTH_SHORT);
        toast.show();
    }

    private void onError(String error, final boolean finishActivity) {
        AlertDialog.Builder builder = new AlertDialog.Builder(this);
        builder.setTitle(R.string.error_dialog_title).
                setMessage(error).
                setPositiveButton(R.string.error_dialog_button_text, new DialogInterface.OnClickListener() {
                    @Override
                    public void onClick(DialogInterface dialogInterface, int i) {
                        if (finishActivity) {
                            finishActivity();
                        }
                    }
                });
        builder.show();
    }

    private void finishActivity() {
        ScrumptiousApplication app = (ScrumptiousApplication) getApplication();
        if (FRIEND_PICKER.equals(getIntent().getData())) {
            if (friendPickerFragment != null) {
                app.setSelectedUsers(friendPickerFragment.getSelection());
            }
        } else if (PLACE_PICKER.equals(getIntent().getData())) {
            if (placePickerFragment != null) {
                app.setSelectedPlace(placePickerFragment.getSelection());
            }
        }
        setResult(RESULT_OK, null);
        finish();
    }
}


text:
package freestyle.free.tests

import freestyle.free.implicits._
import monix.eval.Task
import monix.execution.Scheduler.Implicits.global
import org.scalatest.{Matchers, WordSpec}
import scala.concurrent.Await
import scala.concurrent.duration.Duration

class MonixParallelTests extends WordSpec with Matchers {
  "Applicative Parallel Support" should {
    "allow non deterministic execution when interpreting to monix.eval.Task" ignore {

      val test = new freestyle.NonDeterminismTestShared
      import test._

      implicit val interpreter = new freestyle.MixedFreeS.Handler[Task] {
        override def x: Task[Int] = Task(blocker(1, 1000L))
        override def y: Task[Int] = Task(blocker(2, 0L))
        override def z: Task[Int] = Task(blocker(3, 2000L))
      }

      Await.result(program.interpret[Task].runAsync, Duration.Inf) shouldBe List(3, 1, 2, 3)
      buf.toArray shouldBe Array(3, 2, 1, 3)
    }
  }
}


text:
========
INSTALL
========

* Update the ``INSTALLED_APPS`` in the ``settings.py`` to reflect this app.
* Add the following attributes in the ``settings.py``::

    COMMENTS_APP = "recaptcha_comments"
    RECAPTCHA_PUBLIC_KEY = "xyz....."
    RECAPTCHA_PRIVATE_KEY = "abc...."

* Copy the comments/ directory from recaptcha_comments/templates into your templates directory as referenced by your settings.py.
* Edit the project's urls.py to have the following line::

    (r'^comments/', include('recaptcha_comments.urls')),


text:
//  /////////////////////////////////////////////////////
//  // DO NOT EDIT.  This is a machine generated file. //
//  /////////////////////////////////////////////////////

/******************************************************************************/
/*                                                                            */
/*  Copyright (C) 2015, FLIR Systems                                          */
/*  All rights reserved.                                                      */
/*                                                                            */
/*  This document is controlled to FLIR Technology Level 2. The information   */
/*  contained in this document pertains to a dual use product controlled for  */
/*  export by the Export Administration Regulations (EAR). Diversion contrary */
/*  to US law is prohibited. US Department of Commerce authorization is not   */
/*  required prior to export or transfer to foreign persons or parties unless */
/*  otherwise prohibited.                                                     */
/*                                                                            */
/******************************************************************************/

#ifndef SERIALIZER_STRUCT_H
#define SERIALIZER_STRUCT_H

#include <stdint.h>
#include "EnumTypes.h"
#include "Serializer_BuiltIn.h"

struct t_FLR_ROIC_CONTROL_WORD_T {
	uint16_t value[16];
};
typedef struct t_FLR_ROIC_CONTROL_WORD_T FLR_ROIC_CONTROL_WORD_T;

void byteToFLR_ROIC_CONTROL_WORD_T(const uint8_t *inBuff, FLR_ROIC_CONTROL_WORD_T *outVal);
void FLR_ROIC_CONTROL_WORD_TToByte(const FLR_ROIC_CONTROL_WORD_T *inVal, const uint8_t *outBuff);

struct t_FLR_ROIC_FPATEMP_TABLE_T {
	int16_t value[32];
};
typedef struct t_FLR_ROIC_FPATEMP_TABLE_T FLR_ROIC_FPATEMP_TABLE_T;

void byteToFLR_ROIC_FPATEMP_TABLE_T(const uint8_t *inBuff, FLR_ROIC_FPATEMP_TABLE_T *outVal);
void FLR_ROIC_FPATEMP_TABLE_TToByte(const FLR_ROIC_FPATEMP_TABLE_T *inVal, const uint8_t *outBuff);

struct t_FLR_BOSON_PARTNUMBER_T {
	uint8_t value[20];
};
typedef struct t_FLR_BOSON_PARTNUMBER_T FLR_BOSON_PARTNUMBER_T;

void byteToFLR_BOSON_PARTNUMBER_T(const uint8_t *inBuff, FLR_BOSON_PARTNUMBER_T *outVal);
void FLR_BOSON_PARTNUMBER_TToByte(const FLR_BOSON_PARTNUMBER_T *inVal, const uint8_t *outBuff);

struct t_FLR_BOSON_SENSOR_PARTNUMBER_T {
	uint8_t value[32];
};
typedef struct t_FLR_BOSON_SENSOR_PARTNUMBER_T FLR_BOSON_SENSOR_PARTNUMBER_T;

void byteToFLR_BOSON_SENSOR_PARTNUMBER_T(const uint8_t *inBuff, FLR_BOSON_SENSOR_PARTNUMBER_T *outVal);
void FLR_BOSON_SENSOR_PARTNUMBER_TToByte(const FLR_BOSON_SENSOR_PARTNUMBER_T *inVal, const uint8_t *outBuff);

struct t_FLR_BOSON_GAIN_SWITCH_PARAMS_T {
	uint32_t pHighToLowPercent;
	uint32_t cHighToLowPercent;
	uint32_t pLowToHighPercent;
	uint32_t hysteresisPercent;
};
typedef struct t_FLR_BOSON_GAIN_SWITCH_PARAMS_T FLR_BOSON_GAIN_SWITCH_PARAMS_T;

void byteToFLR_BOSON_GAIN_SWITCH_PARAMS_T(const uint8_t *inBuff, FLR_BOSON_GAIN_SWITCH_PARAMS_T *outVal);
void FLR_BOSON_GAIN_SWITCH_PARAMS_TToByte(const FLR_BOSON_GAIN_SWITCH_PARAMS_T *inVal, const uint8_t *outBuff);

struct t_FLR_DVO_YCBCR_SETTINGS_T {
	FLR_DVO_OUTPUT_YCBCR_FORMAT_E ycbcrFormat;
	FLR_DVO_OUTPUT_CBCR_ORDER_E cbcrOrder;
	FLR_DVO_OUTPUT_Y_ORDER_E yOrder;
};
typedef struct t_FLR_DVO_YCBCR_SETTINGS_T FLR_DVO_YCBCR_SETTINGS_T;

void byteToFLR_DVO_YCBCR_SETTINGS_T(const uint8_t *inBuff, FLR_DVO_YCBCR_SETTINGS_T *outVal);
void FLR_DVO_YCBCR_SETTINGS_TToByte(const FLR_DVO_YCBCR_SETTINGS_T *inVal, const uint8_t *outBuff);

struct t_FLR_DVO_RGB_SETTINGS_T {
	FLR_DVO_OUTPUT_RGB_FORMAT_E rgbFormat;
	FLR_DVO_OUTPUT_RGB_ORDER_E rgbOrder;
};
typedef struct t_FLR_DVO_RGB_SETTINGS_T FLR_DVO_RGB_SETTINGS_T;

void byteToFLR_DVO_RGB_SETTINGS_T(const uint8_t *inBuff, FLR_DVO_RGB_SETTINGS_T *outVal);
void FLR_DVO_RGB_SETTINGS_TToByte(const FLR_DVO_RGB_SETTINGS_T *inVal, const uint8_t *outBuff);

struct t_FLR_CAPTURE_SETTINGS_T {
	FLR_CAPTURE_SRC_E dataSrc;
	uint32_t numFrames;
	uint16_t bufferIndex;
};
typedef struct t_FLR_CAPTURE_SETTINGS_T FLR_CAPTURE_SETTINGS_T;

void byteToFLR_CAPTURE_SETTINGS_T(const uint8_t *inBuff, FLR_CAPTURE_SETTINGS_T *outVal);
void FLR_CAPTURE_SETTINGS_TToByte(const FLR_CAPTURE_SETTINGS_T *inVal, const uint8_t *outBuff);

struct t_FLR_AGC_ROI_T {
	uint16_t rowStart;
	uint16_t rowStop;
	uint16_t colStart;
	uint16_t colStop;
};
typedef struct t_FLR_AGC_ROI_T FLR_AGC_ROI_T;

void byteToFLR_AGC_ROI_T(const uint8_t *inBuff, FLR_AGC_ROI_T *outVal);
void FLR_AGC_ROI_TToByte(const FLR_AGC_ROI_T *inVal, const uint8_t *outBuff);

struct t_FLR_TF_WLUT_T {
	uint8_t value[32];
};
typedef struct t_FLR_TF_WLUT_T FLR_TF_WLUT_T;

void byteToFLR_TF_WLUT_T(const uint8_t *inBuff, FLR_TF_WLUT_T *outVal);
void FLR_TF_WLUT_TToByte(const FLR_TF_WLUT_T *inVal, const uint8_t *outBuff);

struct t_FLR_TF_NF_LUT_T {
	uint16_t value[17];
};
typedef struct t_FLR_TF_NF_LUT_T FLR_TF_NF_LUT_T;

void byteToFLR_TF_NF_LUT_T(const uint8_t *inBuff, FLR_TF_NF_LUT_T *outVal);
void FLR_TF_NF_LUT_TToByte(const FLR_TF_NF_LUT_T *inVal, const uint8_t *outBuff);

struct t_FLR_TF_MOTION_DELTA_LUT_T {
	uint32_t value[10];
};
typedef struct t_FLR_TF_MOTION_DELTA_LUT_T FLR_TF_MOTION_DELTA_LUT_T;

void byteToFLR_TF_MOTION_DELTA_LUT_T(const uint8_t *inBuff, FLR_TF_MOTION_DELTA_LUT_T *outVal);
void FLR_TF_MOTION_DELTA_LUT_TToByte(const FLR_TF_MOTION_DELTA_LUT_T *inVal, const uint8_t *outBuff);

struct t_FLR_SPNR_PSD_KERNEL_T {
	float fvalue[64];
};
typedef struct t_FLR_SPNR_PSD_KERNEL_T FLR_SPNR_PSD_KERNEL_T;

void byteToFLR_SPNR_PSD_KERNEL_T(const uint8_t *inBuff, FLR_SPNR_PSD_KERNEL_T *outVal);
void FLR_SPNR_PSD_KERNEL_TToByte(const FLR_SPNR_PSD_KERNEL_T *inVal, const uint8_t *outBuff);

struct t_FLR_SPNR_SF_LUT_T {
	float value[10];
};
typedef struct t_FLR_SPNR_SF_LUT_T FLR_SPNR_SF_LUT_T;

void byteToFLR_SPNR_SF_LUT_T(const uint8_t *inBuff, FLR_SPNR_SF_LUT_T *outVal);
void FLR_SPNR_SF_LUT_TToByte(const FLR_SPNR_SF_LUT_T *inVal, const uint8_t *outBuff);

struct t_FLR_SCALER_ZOOM_AREA_T {
	uint32_t zoom;
	FLR_SCALER_FILTER_E filter;
	uint32_t xStart;
	uint32_t yStart;
	uint32_t width;
	uint32_t height;
};
typedef struct t_FLR_SCALER_ZOOM_AREA_T FLR_SCALER_ZOOM_AREA_T;

void byteToFLR_SCALER_ZOOM_AREA_T(const uint8_t *inBuff, FLR_SCALER_ZOOM_AREA_T *outVal);
void FLR_SCALER_ZOOM_AREA_TToByte(const FLR_SCALER_ZOOM_AREA_T *inVal, const uint8_t *outBuff);

struct t_FLR_SCALER_ZOOM_PARAMS_T {
	uint32_t zoom;
	uint32_t xCenter;
	uint32_t yCenter;
};
typedef struct t_FLR_SCALER_ZOOM_PARAMS_T FLR_SCALER_ZOOM_PARAMS_T;

void byteToFLR_SCALER_ZOOM_PARAMS_T(const uint8_t *inBuff, FLR_SCALER_ZOOM_PARAMS_T *outVal);
void FLR_SCALER_ZOOM_PARAMS_TToByte(const FLR_SCALER_ZOOM_PARAMS_T *inVal, const uint8_t *outBuff);

struct t_FLR_TESTRAMP_SETTINGS_T {
	uint16_t start;
	uint16_t end;
	uint16_t increment;
};
typedef struct t_FLR_TESTRAMP_SETTINGS_T FLR_TESTRAMP_SETTINGS_T;

void byteToFLR_TESTRAMP_SETTINGS_T(const uint8_t *inBuff, FLR_TESTRAMP_SETTINGS_T *outVal);
void FLR_TESTRAMP_SETTINGS_TToByte(const FLR_TESTRAMP_SETTINGS_T *inVal, const uint8_t *outBuff);

#endif //SERIALIZER_STRUCT_H


text:
=======
Credits
=======

Development Lead
----------------

* Hugo Bessa <hugo@bessa.me>

Contributors
------------

None yet. Why not be the first?


text:
package com.epi;

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

public class BadArrayListStore {
  public static void main(String[] args) {
    /* Intentionally commented out, otherwise mvn will not compile the project.
    // @include
    List<Object> numArrayList = new ArrayList<Integer>(1);
    numArrayList.add(42);
    // @exclude
    */
  }
}


text:
/*
 https://jonathanstark.com/blog/debugging-html-5-offline-application-cache?filename=2009/09/27/debugging-html-5-offline-application-cache/

 <script src="packages/tekartik_app_utils/appcache/appcache_debug.js"></script>
 */
console.log("* Debugging AppCache please remove before release");

var cacheStatusValues = [];
cacheStatusValues[0] = 'uncached';
cacheStatusValues[1] = 'idle';
cacheStatusValues[2] = 'checking';
cacheStatusValues[3] = 'downloading';
cacheStatusValues[4] = 'updateready';
cacheStatusValues[5] = 'obsolete';

var cache = window.applicationCache;
cache.addEventListener('cached', logEvent, false);
cache.addEventListener('checking', logEvent, false);
cache.addEventListener('downloading', logEvent, false);
cache.addEventListener('error', logEvent, false);
cache.addEventListener('noupdate', logEvent, false);
cache.addEventListener('obsolete', logEvent, false);
cache.addEventListener('progress', logEvent, false);
cache.addEventListener('updateready', logEvent, false);

function logEvent(e) {
    console.log(e);
    var online, status, type, message;
    online = (navigator.onLine) ? 'yes' : 'no';
    status = cacheStatusValues[cache.status];
    type = e.type;
    message = 'online: ' + online;
    message+= ', event: ' + type;
    message+= ', status: ' + status;
    if (type == 'error' && navigator.onLine) {
        message+= ' (prolly a syntax error in manifest)';
    }
    console.log(message);
}

window.applicationCache.addEventListener(
    'updateready',
    function(){
        window.applicationCache.swapCache();
        console.log('swap cache has been called');
    },
    false
);

setInterval(function(){cache.update()}, 10000);


text: X


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

import java.util.concurrent.TimeUnit;

/**
 * Class used to track immutable samples in an AtomicReference.
 *
 *
Changes made to {@link com.netflix.concurrency.limits.limit.ImmutableSampleWindow}
 *
 *
1. Package was changed. 2. Fields made private. 3. Fixed a typo (getAverateRttNanos -> getAverageRttNanos)
 */
final class ImmutableSampleWindow {
    private final long minRtt;
    private final int maxInFlight;
    private final int sampleCount;
    private final long sum;
    private final boolean didDrop;

    ImmutableSampleWindow() {
        this.minRtt = Long.MAX_VALUE;
        this.maxInFlight = 0;
        this.sampleCount = 0;
        this.sum = 0;
        this.didDrop = false;
    }

    ImmutableSampleWindow(long minRtt, long sum, int maxInFlight, int sampleCount, boolean didDrop) {
        this.minRtt = minRtt;
        this.sum = sum;
        this.maxInFlight = maxInFlight;
        this.sampleCount = sampleCount;
        this.didDrop = didDrop;
    }

    public ImmutableSampleWindow addSample(long rtt, int currentMaxInFlight) {
        return new ImmutableSampleWindow(
                Math.min(rtt, minRtt), sum + rtt, Math.max(currentMaxInFlight, maxInFlight), sampleCount + 1, didDrop);
    }

    public ImmutableSampleWindow addDroppedSample(int currentMaxInFlight) {
        return new ImmutableSampleWindow(minRtt, sum, Math.max(currentMaxInFlight, maxInFlight), sampleCount, true);
    }

    public long getCandidateRttNanos() {
        return minRtt;
    }

    public long getAverageRttNanos() {
        return sampleCount == 0 ? 0 : sum / sampleCount;
    }

    public int getMaxInFlight() {
        return maxInFlight;
    }

    public int getSampleCount() {
        return sampleCount;
    }

    public boolean didDrop() {
        return didDrop;
    }

    @Override
    public String toString() {
        return "ImmutableSampleWindow ["
                + "minRtt="
                + TimeUnit.NANOSECONDS.toMicros(minRtt) / 1000.0
                + ", avgRtt="
                + TimeUnit.NANOSECONDS.toMicros(getAverageRttNanos()) / 1000.0
                + ", maxInFlight="
                + maxInFlight
                + ", sampleCount="
                + sampleCount
                + ", didDrop="
                + didDrop
                + "]";
    }
}


text:
<?xml version="1.0" encoding="UTF-8"?>

<interface id="StyleSheets-MediaList" name="MediaList" since="DOM Level 2">
  <descr>

      The MediaList interface provides the abstraction of an
      ordered collection of <xspecref
      href="&html40;/types.html#h-6.13">media</xspecref>,
      without defining or constraining how this collection is implemented. An
      empty list is the same as a list that contains the medium
      "all".

      The items in the MediaList are accessible via an integral
      index, starting from 0.

  </descr>

  <attribute type="DOMString" name="mediaText" id="StyleSheets-MediaList-mediaText">
    <descr>

	The parsable textual representation of the media list. This is a
	comma-separated list of media.

    </descr>
    <setraises>
      <exception name="DOMException">
        <descr>

SYNTAX_ERR: Raised if the specified string value has a syntax
          error and is unparsable.

NO_MODIFICATION_ALLOWED_ERR: Raised if this media list is
	  readonly.

	</descr>
      </exception>
    </setraises>
  </attribute>

  <attribute id="StyleSheets-MediaList-length" name="length" type="unsigned long" readonly="yes">
    <descr>

	The number of media in the list. The range of valid media is
	0 to length-1 inclusive.

    </descr>
  </attribute>

  <method id="StyleSheets-MediaList-item" name="item">
    <descr>

	Returns the indexth in the list. If index is
	greater than or equal to the number of media in the list, this returns
	null.

    </descr>
    <parameters>
      <param name="index" type="unsigned long" attr="in">
	<descr>

	    Index into the collection.

	</descr>
      </param>
    </parameters>
    <returns type="DOMString">
      <descr>

	  The medium at the indexth position in the
	  MediaList, or null if that is not a
	  valid index.

      </descr>
    </returns>
    <raises>
    </raises>
  </method>

  <method name="deleteMedium" id="StyleSheets-MediaList-deleteMedium">
    <descr>

	Deletes the medium indicated by oldMedium from the list.

    </descr>
    <parameters>
      <param name="oldMedium" type="DOMString" attr="in">
	<descr>

The medium to delete in the media list.

	</descr>
      </param>
    </parameters>
    <returns type="void">
      <descr>

      </descr>
    </returns>
    <raises>
      <exception name="DOMException">
	<descr>

	    NO_MODIFICATION_ALLOWED_ERR: Raised if this list is readonly.

	    NOT_FOUND_ERR: Raised if oldMedium is not in the list.

	</descr>
      </exception>
    </raises>
  </method>

  <method id="StyleSheets-MediaList-appendMedium" name="appendMedium">
    <descr>

	Adds the medium newMedium to the end of the list. If the
	newMedium is already used, it is first removed.

    </descr>
    <parameters>
      <param name="newMedium" type="DOMString" attr="in">
	<descr>

The new medium to add.

	</descr>
      </param>
    </parameters>
    <returns type="void">
      <descr>

      </descr>
    </returns>
    <raises>
      <exception name="DOMException">
	<descr>

	    INVALID_CHARACTER_ERR: If the medium contains characters that are
	    invalid in the underlying style language.

	    NO_MODIFICATION_ALLOWED_ERR: Raised if this list is readonly.

	</descr>
      </exception>
    </raises>
  </method>

</interface>


text:
@implementation UINavigationController (MDNavigationAnimationController)

+ (void)load{
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        MDTransitioningMethodSwizzle([self class], @selector(pushViewController:animated:), @selector(swizzle_pushViewController:animated:));
    });
}

- (void)swizzle_pushViewController:(UIViewController*)viewController animated:(BOOL)animated{
    if ([self delegate] == [MDNavigationControllerDelegate defaultDelegate]) {
        self.view.userInteractionEnabled = NO;

        if ([self topViewController] && ![[self topViewController] snapshot]) {
            self.topViewController.snapshot = [[self view] snapshotViewAfterScreenUpdates:NO];
        }
    }

    [self swizzle_pushViewController:viewController animated:animated];
}

- (BOOL)allowPushAnimation{
    return [objc_getAssociatedObject(self, @selector(allowPushAnimation)) boolValue];
}

- (void)setAllowPushAnimation:(BOOL)allowPushAnimation{
    objc_setAssociatedObject(self, @selector(allowPushAnimation), @(allowPushAnimation), OBJC_ASSOCIATION_RETAIN_NONATOMIC);
}

@end

@implementation MDNavigationControllerDelegate

+ (instancetype)defaultDelegate;{
    static MDNavigationControllerDelegate *delegate = nil;
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        delegate = [MDNavigationControllerDelegate new];
    });
    return delegate;
}

#pragma mark UINavigationControllerDelegate

- (void)navigationController:(UINavigationController *)navigationController didShowViewController:(UIViewController *)viewController animated:(BOOL)animate{
    navigationController.view.userInteractionEnabled = YES;
}

- (id<UIViewControllerInteractiveTransitioning>)navigationController:(UINavigationController *)navigationController
                         interactionControllerForAnimationController:(MDNavigationAnimationController *)animationController {
    return [[[animationController fromViewController] interactionController] interactiveTransition];
}

- (id<UIViewControllerAnimatedTransitioning>)navigationController:(UINavigationController *)navigationController
                                  animationControllerForOperation:(UINavigationControllerOperation)operation
                                               fromViewController:(UIViewController *)fromViewController
                                                 toViewController:(UIViewController *)toViewController {
    if (operation == UINavigationControllerOperationPush && ![navigationController allowPushAnimation]) return nil;
    UIViewController *displayingViewController = operation == UINavigationControllerOperationPush ? toViewController : fromViewController;
    return [displayingViewController animationForNavigationOperation:operation fromViewController:fromViewController toViewController:toViewController];
}

@end


text:
<?xml version="1.0"?>
<entity_carrier>
  <carrier id="carrier_1" id_shop="1">
    <delay>Recogida en la tienda</delay>
  </carrier>
</entity_carrier>


text:
import sys
from collections import defaultdict

'''
For amr, there is a special case where the -of relation are reversed
'''
class AMR(object):
  def __init__(self,var_list=None,var_value_list=None,link_list=None,const_link_list=None):
    if var_list is None:
       self.nodes=[]  #AMR variables
       self.root=None
    else:
       self.nodes=var_list[:]
       if len(var_list)!=0:
          self.root=var_list[0]
       else:
          self.root=None
    if var_value_list is None:
       self.var_values=[]
    else:
       self.var_values=var_value_list[:]
    if link_list is None:
       self.links=[]  #connections between instances  #adjacent list representation
    else:
       self.links=link_list[:]
    if const_link_list is None:
       self.const_links=[]
    else:
       self.const_links=const_link_list[:]

  def to_edge_labeled(self):
      cur_var = 0
      return

  def add_node(node_value):
    self.nodes.append(node_value)

  def rename_node(self,prefix):
    var_map_dict={}
    for i in range(0,len(self.nodes)):
      var_map_dict[self.nodes[i]]=prefix+str(i)
    for i,v in enumerate(self.nodes):
      self.nodes[i]=var_map_dict[v]
    for i,d in enumerate(self.links):
      new_dict={}
      for k,v in d.items():
        new_dict[var_map_dict[k]]=v
      self.links[i]=new_dict

  def get_triples(self):
      """Get the triples in two list: instance_triple, relation_triple"""
      instance_triple=[]
      relation_triple=[]
      for i in range(len(self.nodes)):
        instance_triple.append(("instance",self.nodes[i],self.var_values[i]))
        for k,v in self.links[i].items():
            relation_triple.append((v,self.nodes[i],k))
        for k2,v2 in self.const_links[i].items():
            relation_triple.append((k2,self.nodes[i],v2))
      return (instance_triple,relation_triple)

  def get_triples2(self):
      """Get the triples in three lists: instance_triple, relation (two variables) triple, and relation (one variable) triple"""
      instance_triple=[]
      relation_triple1=[]
      relation_triple2=[]
      for i in range(len(self.nodes)):
        instance_triple.append(("instance",self.nodes[i],self.var_values[i]))
        for k,v in self.links[i].items():
            relation_triple2.append((v,self.nodes[i],k))
        for k2,v2 in self.const_links[i].items():
            relation_triple1.append((k2,self.nodes[i],v2))
      return (instance_triple,relation_triple1,relation_triple2)

  def __str__(self):
      """Output AMR string"""
      for i in range(len(self.nodes)):
        print ("Variable", i, self.nodes[i], ", Variable value:", self.var_values[i])
        print ("Dependencies:")
        for k,v in self.links[i].items():
          print ("Variable", k, " via ",v)
        for k2,v2 in self.const_links[i].items():
          print ("Attribute:",k2, "value",v2)

  def __repr__(self):
      return self.__str__()

  def out_amr(self):
      self.__str__()

  @staticmethod
  def parse_AMR_line(line):
    state=-1 #significant symbol just encountered: 1 for (, 2 for :, 3 for /
    stack=[] #variable stack
    cur_charseq=[] #current processing char sequence
    var_dict={} #key: var name value: var value
    var_list=[] #variable name list (order: occurence of the variable
    var_attr_dict1=defaultdict(list) #key: var name:  value: list of (attribute name, other variable)
    var_attr_dict2=defaultdict(list) #key:var name, value: list of (attribute name, const value)
    cur_attr_name="" #current attribute name
    attr_list=[] #each entry is an attr dict
    in_quote=False
    for i,c in enumerate(line.strip()):
      if c==" ":
         if state==2:
            cur_charseq.append(c) #will be stripped
         continue
      if c=="\"": #if it's the first quote or the second
         if in_quote:
            in_quote=False
         else:
            in_quote=True
      if c=="(":
         if in_quote:
            continue
         if state==2:
            if cur_attr_name!="":
               print >> sys.stderr, "Format error when processing ",line[0:i+1]
               return None
            cur_attr_name="".join(cur_charseq).strip() #just identified a relation before a concept after parenthesis
            cur_charseq[:]=[]
         state=1
      elif c==":":
         if in_quote:
            continue
         if state==3: #(...: #/  Has just identified a variable value
            var_value="".join(cur_charseq)
            cur_charseq[:]=[]
            cur_var_name=stack[-1] #The variable will be pushed into stack before recognizing its value
            var_dict[cur_var_name]=var_value
         elif state==2: #: ...:  What is this situation, only when const, we have recognized relation and the const it links to
            temp_attr_value="".join(cur_charseq)
            cur_charseq[:]=[]
            parts=temp_attr_value.split()
            if len(parts)<2:
               print >> sys.stderr, "Error in processing",line[0:i+1]
               return None
            attr_name=parts[0].strip()
            attr_value=parts[1].strip()
            if len(stack)==0:
               print >> sys.stderr, "Error in processing",line[:i],attr_name,attr_value
               return None
            if attr_value not in var_dict:
               var_attr_dict2[stack[-1]].append((attr_name,attr_value)) #var_attr_dict2 recognize relation between a variable and a const
               #print stack[-1],attr_name,attr_value
            else:
    #           print stack[-2],attr_name,attr_value
               #print 'It appears here'
               var_attr_dict1[stack[-1]].append((attr_name,attr_value)) #dict1 recognize relation between a variable and a variable

            #   if attr_value[0]=="\"" and attr_value[-1]=="\"":
            #      attr_value=attr_value[1:-1]
           # attr_dict[attr_name]=attr_value
       #  elif state==4: #:)....:
       #     pass
         state=2
      elif c=="/":
         if in_quote:
            continue
         if state==1:
            variable_name="".join(cur_charseq)
            cur_charseq[:]=[]
            if variable_name in var_dict:
               print >> sys.stderr, "Duplicate variable ",variable_name, " in parsing AMR"
               return None
            stack.append(variable_name)
            var_list.append(variable_name)
      #      print variable_name,cur_attr_name
            if cur_attr_name!="": #There are unassigned relation
               if not cur_attr_name.endswith("-of"): #Transformation of -of relation
                 # var_attr_dict1[stack[-2]][cur_attr_name]=variable_name
                  var_attr_dict1[stack[-2]].append((cur_attr_name, variable_name))
     #             print stack[-2]
               else:
                  #print variable_name,cur_attr_name,stack[-2]
                  var_attr_dict1[stack[-2]].append((cur_attr_name, variable_name))
                  #var_attr_dict1[variable_name].append((cur_attr_name[:-3],stack[-2]))
                  #var_attr_dict1[variable_name][cur_attr_name[:-3]]=stack[-2]
               cur_attr_name=""
         else:
            #print state
            print >> sys.stderr, "Error in parsing AMR", line[0:i+1]
            return None
         state=3
      elif c==")":
         if in_quote:
            continue
         #pop
         if len(stack)==0:
            print >> sys.stderr, "Unmatched parathesis at position", i, "in processing", line[0:i+1]
            return None
         if state==2:
            temp_attr_value="".join(cur_charseq)
            cur_charseq[:]=[]
            parts=temp_attr_value.split()
            if len(parts)<2:
               print >> sys.stderr, "Error processing",line[:i+1],temp_attr_value
               return None
            attr_name=parts[0].strip()
            attr_value=parts[1].strip()
            if cur_attr_name.endswith("-of"): #What is this situation?
               #var_attr_dict1[stack[-2]].append((cur_attr_name, variable_name))
               var_attr_dict1[variable_name].append((cur_attr_name[:-3],stack[-2]))
            elif attr_value not in var_dict:
               var_attr_dict2[stack[-1]].append((attr_name,attr_value))
               #print stack[-1],attr_name,attr_value
            else:
               #print 'It appears here'
               var_attr_dict1[stack[-1]].append((attr_name,attr_value))
         elif state==3:
            var_value="".join(cur_charseq)
            cur_charseq[:]=[]
            cur_var_name=stack[-1]
            var_dict[cur_var_name]=var_value
         stack.pop()  #Have met the sign of recognizing a whole variable
       #  if cur_attr_name!="":
       #     var_attr_dict[cur_attr_name]=
       #  var_name.append(cur_var_name)
       #  attr_list.append(attr_dict)
         cur_attr_name=""
         state=4 #just mark as not doing any relations when metting other state symbols
      else:
         cur_charseq.append(c)
    #create var_list, link_list, attribute
    #keep original variable name.
    var_value_list=[] #Keep a list of all the values for all the variables
    link_list=[]
    const_attr_list=[]
    #print var_dict[var_list[0]]
    '''
    root = var_list[0]
    curr_var = root
    print var_dict[curr_var]
    for i in xrange(2):
        curr_var = var_attr_dict1[curr_var][0][1]
        print var_dict[curr_var]
    curr_var = var_attr_dict2[curr_var][0][1]
    print curr_var
    '''
    #for v in var_attr_dict1:
    #    print v, var_attr_dict1[v]
    for v in var_list:
      #print var_dict[v]
      if v not in var_dict:
         print >> sys.stderr, "Error: variable value not found", v
         return None
      else:
         var_value_list.append(var_dict[v])
      link_dict={}
      const_dict={}
      if v in var_attr_dict1:
         for v1 in var_attr_dict1[v]:
           link_dict[v1[1]]=v1[0]
         #for k1,v1 in var_attr_dict1[v].items():
          # if v in var_list:
       #    link_dict[v1]=k1
         #  else:
         #     const_dict[v2]=k
    #     print v, var_attr_dict2[v]
      if v in var_attr_dict2:
         for v2 in var_attr_dict2[v]:
           if v2[1][0]=="\"" and v2[1][-1]=="\"":
              const_dict[v2[0]]=v2[1][1:-1]
           elif v2[1] in var_dict:
              link_dict[v2[1]]=v2[0]
           else:
              const_dict[v2[0]]=v2[1]
       #  for k2,v2 in var_attr_dict2[v].items():
       #    if v2[0]=="\"" and v2[1]=="\"":
       #       const_dict[k2]=v2[1:-1]
        #   elif v2 in var_dict:
      #        print "test",v,v2,k2
        #      link_dict[v2]=k2
        #   else:
        #      const_dict[k2]=v2
      link_list.append(link_dict)
      #print link_dict
      const_attr_list.append(const_dict)
      const_attr_list[0]["TOP"]=var_value_list[0] # add TOP relation, now just this remains
    result_amr=AMR(var_list,var_value_list,link_list,const_attr_list)
    #print result_amr.links
    return result_amr


text:
/**
 */
package org.liquibase.xml.ns.dbchangelog.tests;

import junit.textui.TestRunner;

import org.liquibase.xml.ns.dbchangelog.ColumnType4;
import org.liquibase.xml.ns.dbchangelog.DbchangelogFactory;

/**
 *
 * A test case for the model object 'Column Type4'.
 *
 * @generated
 */
public class ColumnType4Test extends ColumnType2Test {

	/**
	 *
	 *
	 * @generated
	 */
	public static void main(String[] args) {
		TestRunner.run(ColumnType4Test.class);
	}

	/**
	 * Constructs a new Column Type4 test case with the given name.
	 *
	 *
	 * @generated
	 */
	public ColumnType4Test(String name) {
		super(name);
	}

	/**
	 * Returns the fixture for this Column Type4 test case.
	 *
	 *
	 * @generated
	 */
	@Override
	protected ColumnType4 getFixture() {
		return (ColumnType4)fixture;
	}

	/**
	 *
	 *
	 * @see junit.framework.TestCase#setUp()
	 * @generated
	 */
	@Override
	protected void setUp() throws Exception {
		setFixture(DbchangelogFactory.eINSTANCE.createColumnType4());
	}

	/**
	 *
	 *
	 * @see junit.framework.TestCase#tearDown()
	 * @generated
	 */
	@Override
	protected void tearDown() throws Exception {
		setFixture(null);
	}

} //ColumnType4Test


text:
/**
 * Created by dli on 06.03.2015.
 */
define('sync/transform/Inclusions', [
    'exports',

    'sync/transform/Inclusion',
    'data/command/Insert',
    'data/command/Delete',
    'data/command/Set',
    'data/command/Unset',
    'data/command/Construct',
    'data/command/Destruct',
    'data/command/NIL'

], function (exports, Inclusion, Insert, Delete, Set, Unset, Construct, Destruct, NIL) {

    var InsertInsert = exports.InsertInsert = Inclusion.extend({
        canInclude: function (c1, c2) {
            return c1 instanceof Insert && c2 instanceof Insert;
        },
        include: function (c1, c2, inferior) {
            if (c1.offset > c2.offset || (c1.offset === c2.offset && inferior)) {
                return new Insert({
                    offset: c1.offset + 1,
                    data: c1.data
                });
            }
            return c1;
        }
    });

    var InsertDelete = exports.InsertDelete = Inclusion.extend({
        canInclude: function (c1, c2) {
            return c1 instanceof Insert && c2 instanceof Delete;
        },
        include: function (c1, c2, inferior) {
            if (c1.offset > c2.offset) {
                return new Insert({
                    offset: c1.offset - 1,
                    data : c1.data
                });
            }

            return c1;
        }
    });

    var DeleteInsert = exports.DeleteInsert = Inclusion.extend({
        canInclude: function (c1, c2) {
            return c1 instanceof Delete && c2 instanceof Insert;
        },
        include: function (c1, c2, inferior) {
            if (c1.offset >= c2.offset) {
                return new Delete({
                    offset: c1.offset + 1
                });
            }

            return c1;
        }
    });

    var DeleteDelete = exports.DeleteDelete = Inclusion.extend({
        canInclude: function (c1, c2) {
            return x1 instanceof Delete && c2 instanceof Delete;
        },
        include: function (c1, c2, inferior) {
            if (c1.offset === c2.offset) {
                return NIL;
            } else if (c1.offset > c2.offset) {
                return new Delete({
                    offset: c1.offset - 1
                });
            }

            return c1;
        }
    });

    var SetSet = exports.SetSet = Inclusion.extend({
        canInclude: function (c1, c2) {
            return c1 instanceof Set && c2 instanceof Set;
        },
        include: function (c1, c2, inferior) {
            if ((c1.identifier === c2.identifier) && inferior) {
                return NIL
            }

            return c1;
        }
    });

    var SetUnset = exports.SetUnset = Inclusion.extend({
        canInclude: function (c1, c2) {
            return c1 instanceof Set && c2 instanceof Unset;
        },
        include: function (c1, c2, inferior) {
            return c1;
        }
    });

    var UnsetSet = exports.UnsetSet = Inclusion.extend({
        canInclude: function (c1, c2) {
            return c1 instanceof Unset && c2 instanceof Set;
        },
        include: function (c1, c2, inferior) {
            if (c1.identifier === c2.identifier) {
                return NIL;
            }

            return c1;
        }

    });

    var UnsetUnset = exports.UnsetUnset = Inclusion.extend({
        canInclude: function(c1, c2) {
            return c1 instanceof Unset && c2 instanceof Unset;
        },
        include: function(c1, c2, inferior) {
            if (c1.identifier === c2.identifier){
                return NIL;
            }

            return c1;
        }
    });

    var NilNil = exports.NilNil = Inclusion.extend({
        canInclude: function(c1, c2) {
            return c1 instanceof Nil || c2 instanceof Nil;
        },
        include: function(c1, c2, inferior) {
            return c1;
        }
    });

    exports.ALL = [
        new InsertInsert,
        new DeleteDelete,
        new DeleteInsert,
        new InsertDelete,
        new SetSet,
        new UnsetUnset,
        new SetUnset,
        new UnsetSet,
        new NilNil
    ];
});


text:
using System.Collections.Generic;
using System.Linq;
using FoodControl.BusinessLogicLayer;
using FoodControl.DataAccessLayer;
using FoodControl.Model;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Moq;

namespace FoodControlTests.ServiceTests
{
    ///
    /// This is a test class for <see cref="UserService"/> and is intended
    /// to contain all <see cref="UserService"/> Unit Tests
    ///
    [TestClass]
    public class UserServiceTests
    {
        private IBLLContext _BLLcontext;
        private Mock<IDALContext> _DALcontextMock;
        private List<User> _userList;

        private User _user1;
        private User _user2;

        ///
        /// Initialises the test context which provides
        /// information about and functionality for the current test run.
        ///
        [TestInitialize]
        public void Init()
        {
            _DALcontextMock = new Mock<IDALContext>();

            // test-values that should be returned by DataAccessLayer
            _user1 = new User() { UserID = 1000, Profile = new Profile() { ProfileID = 1 } };
            _user2 = new User() { UserID = 1337, Profile = new Profile() { ProfileID = 2 } };
            _userList = new List<User>() { _user1, _user2 };

            // setup the mocked DataAccessLayer object
            _DALcontextMock.Setup(context => context.User.GetAll()).Returns(_userList);
            _DALcontextMock.Setup(context => context.User.GetById(_user1.UserID)).Returns(_user1);
            _DALcontextMock.Setup(context => context.User.GetById(_user2.UserID)).Returns(_user2);

            // instantiate the BusinessLayerContext with the mocked object of the DataAccessLayer
            _BLLcontext = new BLLContext(_DALcontextMock.Object);

        }

        ///
        /// Unit-test for <see cref="UserService"/>.GetLastId().
        ///
        /// <remarks>
        /// Checks, if GetLastId() returns the ID of the last user entry.
        /// </remarks>
        [TestMethod]
        public void ReturnLastUserId()
        {
            // act
            var lastUserId = _BLLcontext.User.GetLastId();
            // assert
            Assert.AreEqual(_user2.UserID, lastUserId);
        }

        ///
        /// Unit-test for <see cref="UserService"/>.GetUserById().
        ///
        /// <remarks>
        /// Checks, if GetUserById() returns the user for the userId.
        /// </remarks>
        [TestMethod]
        public void ReturnUserById()
        {
            // act
            var user = _BLLcontext.User.GetUserById(1000);
            // assert
            Assert.AreEqual(_user1, user);
        }

        ///
        /// Unit-test for <see cref="UserService"/>.GetAllProfiles().
        ///
        /// <remarks>
        /// Checks, if GetAllProfiles() returns the user profiles.
        /// </remarks>
        [TestMethod]
        public void ReturnAllUserProfiles()
        {
            // act
            var allUserProfiles = _BLLcontext.User.GetAllProfiles().ToList();

            // assert
            Assert.IsTrue(allUserProfiles.Count == _userList.Count);
        }

        ///
        /// Unit-test for <see cref="UserService"/>.Count().
        ///
        /// <remarks>
        /// Checks, if Count() returns number of user entries.
        /// </remarks>
        [TestMethod]
        public void ReturnUserCount()
        {
            // act
            var userCount = _BLLcontext.User.Count();

            // assert
            Assert.IsTrue(userCount == _userList.Count);
        }
    }
}


text:
<!DOCTYPE html>

    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=Edge" />
    <title>Ultimate Picture Search</title>

    <link href="{{ url_for('static', filename='Content/Office.css') }}" rel="stylesheet" type="text/css" />

    <link href="{{ url_for('static', filename='App/App.css') }}" rel="stylesheet" type="text/css" />

    <link href="{{ url_for('static', filename='App/Home/Home.css') }}" rel="stylesheet" type="text/css" />

    <link href="{{ url_for('static', filename='App/hoverbox.css') }}" rel="stylesheet" type="text/css" media="screen, projection" />

        O365 - Login

        O365 - Logout

        Flickr login test

        <input type="button" id="searhPictures" value="Search Pictures" />

        Results:

    {% macro flash_messages() -%}
        {% with messages = get_flashed_messages(with_categories=true) %}
        {% if messages %}
            {% for category, message in messages %}

                    ×
                      {{ message }}

            {% endfor %}
        {% endif %}
        {% endwith %}
    {%- endmacro %}
    {{ flash_messages() }}
    {% block content %}
    {% endblock %}