text:
namespace permissions {
enum class PermissionAction;
}

// This class manages File System Access permission requests for a particular
// WebContents. It is very similar to the generic PermissionRequestManager
// class, and as such deals with throttling, coallescing and/or completely
// denying permission requests, depending on the situation and policy.
//
// File System Access code doesn't just use PermissionRequestManager directly
// because the permission requests use different UI, and as such can't easily
// be supported by PermissionRequestManager.
//
// The FileSystemAccessPermissionRequestManager should be used on the UI thread.
class FileSystemAccessPermissionRequestManager
    : public content::WebContentsObserver,
      public content::WebContentsUserData<
          FileSystemAccessPermissionRequestManager> {
 public:
  ~FileSystemAccessPermissionRequestManager() override;

  enum class Access {
    // Only ask for read access.
    kRead,
    // Only ask for write access, assuming read access has already been granted.
    kWrite,
    // Ask for both read and write access.
    kReadWrite
  };

  struct RequestData {
    RequestData(
        const url::Origin& origin,
        const base::FilePath& path,
        content::FileSystemAccessPermissionContext::HandleType handle_type,
        Access access)
        : origin(origin),
          path(path),
          handle_type(handle_type),
          access(access) {}
    RequestData(RequestData&&) = default;
    RequestData(const RequestData&) = default;
    RequestData& operator=(RequestData&&) = default;
    RequestData& operator=(const RequestData&) = default;

    url::Origin origin;
    base::FilePath path;
    content::FileSystemAccessPermissionContext::HandleType handle_type;
    Access access;
  };

  void AddRequest(
      RequestData request,
      base::OnceCallback<void(permissions::PermissionAction result)> callback,
      base::ScopedClosureRunner fullscreen_block);

  // Do NOT use this method in production code. Use this method in browser
  // tests that need to accept or deny permissions when requested in
  // JavaScript. Your test needs to call this before permission is requested,
  // and then the bubble will proceed as desired as soon as it would have been
  // shown.
  void set_auto_response_for_test(
      absl::optional<permissions::PermissionAction> response) {
    auto_response_for_test_ = response;
  }

 private:
  friend class content::WebContentsUserData<
      FileSystemAccessPermissionRequestManager>;

  explicit FileSystemAccessPermissionRequestManager(
      content::WebContents* web_contents);

  bool IsShowingRequest() const { return current_request_ != nullptr; }
  bool CanShowRequest() const;
  void ScheduleShowRequest();
  void DequeueAndShowRequest();

  // WebContentsObserver
  void DocumentOnLoadCompletedInPrimaryMainFrame() override;

  void OnPermissionDialogResult(permissions::PermissionAction result);

  struct Request;
  // Request currently being shown in prompt.
  std::unique_ptr<Request> current_request_;
  // Queued up requests.
  base::circular_deque<std::unique_ptr<Request>> queued_requests_;

  absl::optional<permissions::PermissionAction> auto_response_for_test_;

  base::WeakPtrFactory<FileSystemAccessPermissionRequestManager> weak_factory_{
      this};
  WEB_CONTENTS_USER_DATA_KEY_DECL();
};

#endif  // CHROME_BROWSER_FILE_SYSTEM_ACCESS_FILE_SYSTEM_ACCESS_PERMISSION_REQUEST_MANAGER_H_


text:
"""
This script will take a landlab netcdf file as input and convert the
'topographic__elevation' parameter to a numpy array .npy which can be
loaded in the standart landlab script.
"""

import numpy as np
import matplotlib.pyplot as plt
from landlab import RasterModelGrid
from landlab.io.netcdf import write_netcdf
from landlab.io.netcdf import read_netcdf
from landlab import imshow_grid

fileNc = 'output19990000__1999.nc'

def loadNetCDF(filename):
    global conGrid
    try:
        conGrid = read_netcdf(filename)
    except:
        print('No Netcdf')

def convertNetCdf():
    _buffGrid = conGrid.at_node['topographic__elevation'][:]
    np.save('convertTopography', _buffGrid)

def makeExamplePlot():
    plt.figure()
    imshow_grid(conGrid, 'topographic__elevation')
    plt.savefig('convertTopo.png')
    plt.close()

def main():

    loadNetCDF(fileNc)
    convertNetCdf()
    makeExamplePlot()
    print('####### FINISHED CONVERSION #########')

main()

redpajama_set_name: RedPajamaGithub


text:
package org.zmpp.iff;

import java.io.*;

/**
 * Generic implementation of the algorithm for compressing memory.
 */
public class QuetzalCompression {
    public static byte[] decompressDiffBytes(byte[] compressed,
                                             byte[] originalBytes,
                                             byte[] targetBytes,
                                             int numBytes) {
        System.arraycopy(originalBytes, 0, targetBytes, 0, numBytes);
        int compressedIndex = 0;
        int targetIndex = 0;
        while (compressedIndex < compressed.length) {
            if (compressed[compressedIndex] == 0) {
                int numZeroBytes = (compressed[compressedIndex + 1] & 0xff) + 1;
                targetIndex += numZeroBytes;
                compressedIndex++;
            } else {
                targetBytes[targetIndex] = (byte)
                    (originalBytes[targetIndex] ^ compressed[compressedIndex]);
                targetIndex++;
            }
            compressedIndex++;
        }
        return targetBytes;
    }

    private static void writeZeroRun(DataOutputStream out, int zeroCount) throws IOException {
        while (zeroCount > 256) {
            out.writeByte(0);
            out.writeByte(255);
            zeroCount -= 256;
        }
        if (zeroCount > 0) {
            out.writeByte(0);
            out.writeByte((byte) ((zeroCount - 1) & 0xff));
        }
    }

    public static byte[] compressDiffBytes(byte[] changedBytes,
                                           byte[] originalBytes,
                                           int numBytes) {
        try {
            ByteArrayOutputStream resultStream = new ByteArrayOutputStream();
            DataOutputStream out = new DataOutputStream(resultStream);
            int srcIndex = 0;
            int zeroCount = 0;
            while (srcIndex < numBytes) {
                int xorValue = (changedBytes[srcIndex] ^ originalBytes[srcIndex]) & 0xff;
                if (xorValue == 0) zeroCount++;
                else {
                    if (zeroCount > 0) {
                        writeZeroRun(out, zeroCount);
                        zeroCount = 0;
                    }
                    out.writeByte(xorValue);
                }
                srcIndex++;
            }
            out.flush();
            out.close();
            return resultStream.toByteArray();
        } catch (IOException ex) {
            ex.printStackTrace(); // should not happen
        }
        return null;
    }
}


text:
package gozer.services.compiler;

import gozer.services.CompilationService;
import org.joda.time.DateTime;

public class CompilationFinishedEvent {
    private final CompilationService compilationManager;
    private final DateTime endTime;

    public CompilationFinishedEvent(CompilationService compilationManager, DateTime endTime) {
        this.compilationManager = compilationManager;
        this.endTime = endTime;
    }

    public CompilationService getCompilationManager() {
        return compilationManager;
    }

    public DateTime getEndTime() {
        return endTime;
    }
}


text:
using System;
using NUnit.Framework;
using Validations;

namespace Validations.Test
{
    [TestFixture]
    public class ValidatorTest
    {
        private class ValidatorTestClass
        {
            [Between("0", "9")]
            public virtual string InheritedField { get; set; }

            [Required, Matches(@"\d{5}")]
            public virtual string ZipCode { get; set; }

            public virtual bool ValidateField { get; set; }

            [Between("0", "9")]
            [DependsOn("ValidateField")]
            public virtual string Field { get; set; }
        }

        private class ValidatorTestSubclass : ValidatorTestClass
        {
            [Required]
            public override string InheritedField
            {
                get { return base.InheritedField; }
                set { base.InheritedField = value; }
            }
        }

        private interface IValidatorTestInterface
        {
            [CanParseAs(typeof(int))]
            string InheritedField { get; set; }
        }

        private class ValidatorTestSubclassWithInterface : ValidatorTestSubclass, IValidatorTestInterface
        {
        }

        [Test]
        public void MultipleFailures()
        {
            var obj = new ValidatorTestClass { InheritedField = "A" };
            var notification = Validator.Validate(obj);
            Assert.IsTrue(notification.HasMessage("InheritedField", BetweenAttribute.DefaultErrorMessage(0, 9)), "missing between");
            Assert.IsTrue(notification.HasMessage("ZipCode", RequiredAttribute.DefaultMessage), "missing required");
        }

        [Test]
        public virtual void NothingFails()
        {
            var obj = new ValidatorTestClass { InheritedField = "0", ZipCode = "75672" };
            var notification = Validator.Validate(obj);
            Assert.IsTrue(notification.IsValid);
        }

        [Test]
        public virtual void SubclassAttributesAlsoChecked()
        {
            var subclass = new ValidatorTestSubclass();
            var notification = Validator.Validate(subclass);
            Assert.IsTrue(notification.HasMessage("InheritedField", RequiredAttribute.DefaultMessage));
        }

        [Test]
        public virtual void InterfaceAttributesAlsoChecked()
        {
            var subclass = new ValidatorTestSubclassWithInterface { InheritedField = "notANumber" };
            var notification = Validator.Validate(subclass);
            Assert.IsTrue(notification.HasMessage("InheritedField", CanParseAsAttribute.DefaultMessage));
        }

        [Test]
        public virtual void ValidateProperty()
        {
            var obj = new ValidatorTestClass { InheritedField = "A" };
            var notification = Validator.ValidateProperty(obj, "InheritedField");
            Assert.IsTrue(notification.HasMessage("InheritedField", BetweenAttribute.DefaultErrorMessage(0, 9)));
        }

        [Test]
        [ExpectedException(typeof(ArgumentException))]
        public virtual void ValidateInvalidPropertyName()
        {
            Validator.ValidateProperty(this, "blarf");
        }

        [Test]
        public void FieldNotValidatedIfDependencyNotMet()
        {
            var obj = new ValidatorTestClass { ValidateField = false, Field = "A" };
            var notification = Validator.ValidateProperty(obj, "Field");
            Assert.IsTrue(notification.IsValid);
        }

        [Test]
        public void FieldValidatedIfDependencyMet()
        {
            var obj = new ValidatorTestClass { ValidateField = true, Field = "A" };
            var notification = Validator.ValidateProperty(obj, "Field");
            Assert.IsTrue(notification.HasMessage("Field", BetweenAttribute.DefaultErrorMessage(0, 9)));
        }

        [Test]
        public void PassedValidationWithDependency()
        {
            var obj = new ValidatorTestClass { ValidateField = true, Field = "0" };
            var notification = Validator.ValidateProperty(obj, "Field");
            Assert.IsTrue(notification.IsValid);
        }
    }
}


text:
#ifndef SPECIALFORMIMPL_H_
#define SPECIALFORMIMPL_H_

#include <basic/TermImpl.h>
#include <ISpecialForm.h>
#include <Lazy.h>

namespace elision {
namespace term {
namespace basic {

class SpecialFormImpl: public ISpecialForm, public TermImpl {
public:
	virtual ~SpecialFormImpl() = default;

	inline pTerm get_tag() const {
		return tag_;
	}

	inline pTerm get_content() const {
		return content_;
	}

	inline bool is_constant() const {
		return tag_->is_constant() && content_->is_constant();
	}

	inline bool is_equal(ITerm const& other) const {
		auto oth = dynamic_cast<ISpecialForm const*>(&other);
		return *get_tag() == *oth->get_tag() &&
				*get_content() == *oth->get_content();
	}

	inline TermKind get_kind() const {
		return SPECIAL_FORM_KIND;
	}

	inline std::string to_string() const {
		return strval_;
	}

	inline bool operator<(ITerm const& other) const {
		if (get_kind() < other.get_kind()) return true;
		auto oth = CAST(ISpecialForm, other);
		if (get_tag() < oth->get_tag()) return true;
		else if (oth->get_tag() < get_tag()) return false;
		else return (get_content() < oth->get_content());
	}

private:
	friend class TermFactoryImpl;
	SpecialFormImpl(Locus the_loc, pTerm the_tag, pTerm the_content,
			pTerm the_type);
	pTerm tag_;
	pTerm content_;
	Lazy<std::string> strval_;
};

} /* namespace basic */
} /* namespace term */
} /* namespace elision */

#endif /* SPECIALFORMIMPL_H_ */


text:
"""
Copyright (C) 2004-2015 Pivotal Software, Inc. All rights reserved.

This program and the accompanying materials are made available under
the terms of the 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.
"""

import unittest2 as unittest

import os
import shutil

from tinctest.lib import local_path, Gpdiff

from mpp.models import SQLTestCase

@unittest.skip('mock')
class MockSQLTestCase(SQLTestCase):
    def test_foo(self):
        pass

@unittest.skip('mock')
class MockSQLTestCaseWithGucs(SQLTestCase):
    '''
    @gucs gp_optimizer=on;gp_log_optimizer=on
    '''

class SQLTestCaseTests(unittest.TestCase):
    test_case = MockSQLTestCase('test_foo')

    def setUp(self):
        if os.path.exists(SQLTestCaseTests.test_case.get_out_dir()):
            shutil.rmtree(SQLTestCaseTests.test_case.get_out_dir())

    def test_pos(self):
        test_case = MockSQLTestCase('test_test_pos')
        test_case.run_test()
        self.assertTrue(os.path.exists(os.path.join(test_case.get_out_dir(), 'test_pos.sql')))
        self.assertTrue(os.path.exists(os.path.join(test_case.get_out_dir(), 'test_pos.out')))

    def test_neg(self):
        test_case = MockSQLTestCase('test_test_neg')
        with self.assertRaises(AssertionError) as cm:
            result = test_case.run_test()

    def test_with_gucs(self):
        test_case = MockSQLTestCaseWithGucs('test_test_pos')
        test_case.run_test()
        self.assertTrue(os.path.exists(os.path.join(test_case.get_out_dir(), 'test_pos.sql')))
        self.assertTrue(os.path.exists(os.path.join(test_case.get_out_dir(), 'test_pos.out')))
        self.assertTrue(Gpdiff.are_files_equal(
                        os.path.join(test_case.get_out_dir(), 'test_pos.sql'),
                        local_path('gucs/test_pos_gucs.sql')))

    def test_file_with_gucs(self):
        test_case = MockSQLTestCase('test_test_file_with_gucs')
        result = test_case.run_test()
        self.assertTrue(os.path.exists(os.path.join(test_case.get_out_dir(), 'test_file_with_gucs.sql')))
        self. _check_gucs_exist_in_file(os.path.join(test_case.get_out_dir(), 'test_file_with_gucs.sql'), test_case.gucs)
        self.assertTrue(os.path.exists(os.path.join(test_case.get_out_dir(), 'test_file_with_gucs.out')))
        self.assertTrue(Gpdiff.are_files_equal(
                        os.path.join(test_case.get_out_dir(), 'test_file_with_gucs.sql'),
                        local_path('gucs/test_file_with_gucs.sql')))

    def _check_gucs_exist_in_file(self, sql_file, gucs):
        with open(sql_file, 'r') as f:
            for guc in gucs:
                guc_exists = False
                for line in f:
                    if guc in line:
                        guc_exists = True
                        break
                self.assertTrue(guc_exists)

    def test_gather_minidump(self):
        test_case = MockSQLTestCase('test_test_md')
        test_case.gather_mini_dump(test_case.sql_file)
        self.assertTrue(os.path.exists(os.path.join(test_case.get_out_dir(),
                                                    os.path.basename(test_case.sql_file).replace('.sql', '_minidump.mdp'))))


text:
package Chisel

trait IODirection;

object INPUT extends IODirection;

object OUTPUT extends IODirection;


text:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<vizmap documentVersion="3.0" id="VizMap-2013_08_19-15_53">
    <visualStyle name="KAM Visualization">
        <network>
            <visualProperty name="NETWORK_CENTER_X_LOCATION" default="0.0"/>
            <visualProperty name="NETWORK_TITLE" default=""/>
            <visualProperty name="NETWORK_BACKGROUND_PAINT" default="#ffffff"/>
            <visualProperty name="NETWORK_WIDTH" default="550.0"/>
            <visualProperty name="NETWORK_SCALE_FACTOR" default="1.0"/>
            <visualProperty name="NETWORK_HEIGHT" default="400.0"/>
            <visualProperty name="NETWORK_EDGE_SELECTION" default="true"/>
            <visualProperty name="NETWORK_CENTER_Z_LOCATION" default="0.0"/>
            <visualProperty name="NETWORK_CENTER_Y_LOCATION" default="0.0"/>
            <visualProperty name="NETWORK_NODE_SELECTION" default="true"/>
            <visualProperty name="NETWORK_DEPTH" default="0.0"/>
        </network>
        <node>
            <dependency name="nodeSizeLocked" value="false"/>
            <dependency name="nodeCustomGraphicsSizeSync" value="true"/>
            <visualProperty name="NODE_CUSTOMGRAPHICS_POSITION_1" default="C,C,c,0.00,0.00"/>
            <visualProperty name="NODE_LABEL_COLOR" default="#000000"/>
            <visualProperty name="NODE_CUSTOMGRAPHICS_POSITION_7" default="C,C,c,0.00,0.00"/>
            <visualProperty name="NODE_CUSTOMGRAPHICS_POSITION_2" default="C,C,c,0.00,0.00"/>
            <visualProperty name="NODE_BORDER_STROKE" default="SOLID"/>
            <visualProperty name="NODE_SHAPE" default="RECTANGLE">
                <discreteMapping attributeType="string" attributeName="bel.function">
                    <discreteMappingEntry value="PARALLELOGRAM" attributeValue="reaction"/>
                    <discreteMappingEntry value="ROUND_RECTANGLE" attributeValue="degradation"/>
                    <discreteMappingEntry value="HEXAGON" attributeValue="transcriptionalActivity"/>
                    <discreteMappingEntry value="ROUND_RECTANGLE" attributeValue="transportActivity"/>
                    <discreteMappingEntry value="PARALLELOGRAM" attributeValue="pathology"/>
                    <discreteMappingEntry value="VEE" attributeValue="cellSurfaceExpression"/>
                    <discreteMappingEntry value="HEXAGON" attributeValue="catalyticActivity"/>
                    <discreteMappingEntry value="HEXAGON" attributeValue="gtpBoundActivity"/>
                    <discreteMappingEntry value="ROUND_RECTANGLE" attributeValue="proteinAbundance"/>
                    <discreteMappingEntry value="HEXAGON" attributeValue="phosphataseActivity"/>
                    <discreteMappingEntry value="VEE" attributeValue="cellSecretion"/>
                    <discreteMappingEntry value="HEXAGON" attributeValue="molecularActivity"/>
                    <discreteMappingEntry value="HEXAGON" attributeValue="chaperoneActivity"/>
                    <discreteMappingEntry value="ELLIPSE" attributeValue="microRNAAbundance"/>
                    <discreteMappingEntry value="ROUND_RECTANGLE" attributeValue="compositeAbundance"/>
                    <discreteMappingEntry value="ROUND_RECTANGLE" attributeValue="complexAbundance"/>
                    <discreteMappingEntry value="PARALLELOGRAM" attributeValue="biologicalProcess"/>
                    <discreteMappingEntry value="HEXAGON" attributeValue="peptidaseActivity"/>
                    <discreteMappingEntry value="ELLIPSE" attributeValue="geneAbundance"/>
                    <discreteMappingEntry value="VEE" attributeValue="translocation"/>
                    <discreteMappingEntry value="HEXAGON" attributeValue="ribosylationActivity"/>
                    <discreteMappingEntry value="DIAMOND" attributeValue="abundance"/>
                    <discreteMappingEntry value="ELLIPSE" attributeValue="rnaAbundance"/>
                    <discreteMappingEntry value="HEXAGON" attributeValue="kinaseActivity"/>
                </discreteMapping>
            </visualProperty>
            <visualProperty name="NODE_LABEL_TRANSPARENCY" default="255">
                <discreteMapping attributeType="boolean" attributeName="linked">
                    <discreteMappingEntry value="100" attributeValue="false"/>
                    <discreteMappingEntry value="255" attributeValue="true"/>
                </discreteMapping>
            </visualProperty>
            <visualProperty name="NODE_CUSTOMGRAPHICS_POSITION_3" default="C,C,c,0.00,0.00"/>
            <visualProperty name="NODE_Z_LOCATION" default="0.0"/>
            <visualProperty name="NODE_LABEL_WIDTH" default="100.0"/>
            <visualProperty name="NODE_CUSTOMGRAPHICS_SIZE_6" default="0.0"/>
            <visualProperty name="NODE_CUSTOMGRAPHICS_SIZE_1" default="0.0"/>
            <visualProperty name="NODE_SELECTED_PAINT" default="#ffff00"/>
            <visualProperty name="NODE_CUSTOMGRAPHICS_POSITION_6" default="C,C,c,0.00,0.00"/>
            <visualProperty name="NODE_NESTED_NETWORK_IMAGE_VISIBLE" default="true"/>
            <visualProperty name="NODE_CUSTOMGRAPHICS_9" default="org.cytoscape.ding.customgraphics.NullCustomGraphics,0,[ Remove Graphics ],"/>
            <visualProperty name="NODE_CUSTOMGRAPHICS_POSITION_9" default="C,C,c,0.00,0.00"/>
            <visualProperty name="NODE_CUSTOMGRAPHICS_POSITION_8" default="C,C,c,0.00,0.00"/>
            <visualProperty name="NODE_CUSTOMGRAPHICS_SIZE_2" default="0.0"/>
            <visualProperty name="NODE_SELECTED" default="false"/>
            <visualProperty name="NODE_BORDER_WIDTH" default="1.0"/>
            <visualProperty name="NODE_CUSTOMGRAPHICS_SIZE_3" default="0.0"/>
            <visualProperty name="NODE_HEIGHT" default="30.0"/>
            <visualProperty name="NODE_CUSTOMGRAPHICS_8" default="org.cytoscape.ding.customgraphics.NullCustomGraphics,0,[ Remove Graphics ],"/>
            <visualProperty name="NODE_TRANSPARENCY" default="255">
                <discreteMapping attributeType="boolean" attributeName="linked">
                    <discreteMappingEntry value="100" attributeValue="false"/>
                    <discreteMappingEntry value="255" attributeValue="true"/>
                </discreteMapping>
            </visualProperty>
            <visualProperty name="NODE_LABEL_FONT_FACE" default="Dialog.plain,plain,12"/>
            <visualProperty name="NODE_BORDER_PAINT" default="#000000"/>
            <visualProperty name="NODE_VISIBLE" default="true"/>
            <visualProperty name="NODE_BORDER_TRANSPARENCY" default="255">
                <discreteMapping attributeType="boolean" attributeName="linked">
                    <discreteMappingEntry value="100" attributeValue="false"/>
                    <discreteMappingEntry value="255" attributeValue="true"/>
                </discreteMapping>
            </visualProperty>
            <visualProperty name="NODE_LABEL_POSITION" default="C,C,c,0.00,0.00"/>
            <visualProperty name="NODE_X_LOCATION" default="0.0"/>
            <visualProperty name="NODE_Y_LOCATION" default="0.0"/>
            <visualProperty name="NODE_CUSTOMGRAPHICS_7" default="org.cytoscape.ding.customgraphics.NullCustomGraphics,0,[ Remove Graphics ],"/>
            <visualProperty name="NODE_CUSTOMGRAPHICS_4" default="org.cytoscape.ding.customgraphics.NullCustomGraphics,0,[ Remove Graphics ],"/>
            <visualProperty name="NODE_WIDTH" default="70.0">
                <discreteMapping attributeType="string" attributeName="bel.function">
                    <discreteMappingEntry value="150.0" attributeValue="reaction"/>
                    <discreteMappingEntry value="110.0" attributeValue="degradation"/>
                    <discreteMappingEntry value="110.0" attributeValue="transcriptionalActivity"/>
                    <discreteMappingEntry value="110.0" attributeValue="transportActivity"/>
                    <discreteMappingEntry value="125.0" attributeValue="pathology"/>
                    <discreteMappingEntry value="110.0" attributeValue="cellSurfaceExpression"/>
                    <discreteMappingEntry value="110.0" attributeValue="catalyticActivity"/>
                    <discreteMappingEntry value="110.0" attributeValue="gtpBoundActivity"/>
                    <discreteMappingEntry value="75.0" attributeValue="proteinAbundance"/>
                    <discreteMappingEntry value="110.0" attributeValue="phosphataseActivity"/>
                    <discreteMappingEntry value="110.0" attributeValue="cellSecretion"/>
                    <discreteMappingEntry value="110.0" attributeValue="molecularActivity"/>
                    <discreteMappingEntry value="110.0" attributeValue="chaperoneActivity"/>
                    <discreteMappingEntry value="150.0" attributeValue="compositeAbundance"/>
                    <discreteMappingEntry value="150.0" attributeValue="complexAbundance"/>
                    <discreteMappingEntry value="75.0" attributeValue="microRNAAbundance"/>
                    <discreteMappingEntry value="125.0" attributeValue="biologicalProcess"/>
                    <discreteMappingEntry value="110.0" attributeValue="peptidaseActivity"/>
                    <discreteMappingEntry value="75.0" attributeValue="geneAbundance"/>
                    <discreteMappingEntry value="110.0" attributeValue="translocation"/>
                    <discreteMappingEntry value="110.0" attributeValue="ribosylationActivity"/>
                    <discreteMappingEntry value="110.0" attributeValue="kinaseActivity"/>
                    <discreteMappingEntry value="75.0" attributeValue="rnaAbundance"/>
                    <discreteMappingEntry value="75.0" attributeValue="abundance"/>
                </discreteMapping>
            </visualProperty>
            <visualProperty name="NODE_CUSTOMGRAPHICS_SIZE_8" default="0.0"/>
            <visualProperty name="NODE_CUSTOMGRAPHICS_6" default="org.cytoscape.ding.customgraphics.NullCustomGraphics,0,[ Remove Graphics ],"/>
            <visualProperty name="NODE_CUSTOMGRAPHICS_POSITION_5" default="C,C,c,0.00,0.00"/>
            <visualProperty name="NODE_CUSTOMGRAPHICS_2" default="org.cytoscape.ding.customgraphics.NullCustomGraphics,0,[ Remove Graphics ],"/>
            <visualProperty name="NODE_SIZE" default="35.0">
                <discreteMapping attributeType="string" attributeName="bel.function">
                    <discreteMappingEntry value="100.0" attributeValue="transcriptionalActivity"/>
                </discreteMapping>
            </visualProperty>
            <visualProperty name="NODE_CUSTOMGRAPHICS_1" default="org.cytoscape.ding.customgraphics.NullCustomGraphics,0,[ Remove Graphics ],"/>
            <visualProperty name="NODE_FILL_COLOR" default="#ffffff">
                <discreteMapping attributeType="string" attributeName="bel.function">
                    <discreteMappingEntry value="#9696ff" attributeValue="reaction"/>
                    <discreteMappingEntry value="#ff3264" attributeValue="degradation"/>
                    <discreteMappingEntry value="#6464ff" attributeValue="transcriptionalActivity"/>
                    <discreteMappingEntry value="#6464ff" attributeValue="transportActivity"/>
                    <discreteMappingEntry value="#ff3264" attributeValue="pathology"/>
                    <discreteMappingEntry value="#c8c8ff" attributeValue="cellSurfaceExpression"/>
                    <discreteMappingEntry value="#6464ff" attributeValue="gtpBoundActivity"/>
                    <discreteMappingEntry value="#6464ff" attributeValue="catalyticActivity"/>
                    <discreteMappingEntry value="#64ffff" attributeValue="proteinAbundance"/>
                    <discreteMappingEntry value="#6464ff" attributeValue="phosphataseActivity"/>
                    <discreteMappingEntry value="#6464ff" attributeValue="molecularActivity"/>
                    <discreteMappingEntry value="#c8c8ff" attributeValue="cellSecretion"/>
                    <discreteMappingEntry value="#6464ff" attributeValue="chaperoneActivity"/>
                    <discreteMappingEntry value="#96ff96" attributeValue="microRNAAbundance"/>
                    <discreteMappingEntry value="#c8ffff" attributeValue="compositeAbundance"/>
                    <discreteMappingEntry value="#6496ff" attributeValue="complexAbundance"/>
                    <discreteMappingEntry value="#ff64ff" attributeValue="biologicalProcess"/>
                    <discreteMappingEntry value="#6464ff" attributeValue="peptidaseActivity"/>
                    <discreteMappingEntry value="#c8ffc8" attributeValue="geneAbundance"/>
                    <discreteMappingEntry value="#c8c8ff" attributeValue="translocation"/>
                    <discreteMappingEntry value="#6464ff" attributeValue="ribosylationActivity"/>
                    <discreteMappingEntry value="#6464ff" attributeValue="kinaseActivity"/>
                    <discreteMappingEntry value="#64c8ff" attributeValue="abundance"/>
                    <discreteMappingEntry value="#64ff64" attributeValue="rnaAbundance"/>
                </discreteMapping>
            </visualProperty>
            <visualProperty name="NODE_CUSTOMGRAPHICS_SIZE_7" default="0.0"/>
            <visualProperty name="NODE_DEPTH" default="0.0"/>
            <visualProperty name="NODE_CUSTOMGRAPHICS_SIZE_5" default="0.0"/>
            <visualProperty name="NODE_TOOLTIP" default=""/>
            <visualProperty name="NODE_LABEL_FONT_SIZE" default="12"/>
            <visualProperty name="NODE_CUSTOMGRAPHICS_POSITION_4" default="C,C,c,0.00,0.00"/>
            <visualProperty name="NODE_LABEL" default="">
                <passthroughMapping attributeType="string" attributeName="name"/>
            </visualProperty>
            <visualProperty name="NODE_CUSTOMGRAPHICS_SIZE_9" default="0.0"/>
            <visualProperty name="NODE_CUSTOMGRAPHICS_SIZE_4" default="0.0"/>
            <visualProperty name="NODE_CUSTOMGRAPHICS_5" default="org.cytoscape.ding.customgraphics.NullCustomGraphics,0,[ Remove Graphics ],"/>
            <visualProperty name="NODE_CUSTOMGRAPHICS_3" default="org.cytoscape.ding.customgraphics.NullCustomGraphics,0,[ Remove Graphics ],"/>
        </node>
        <edge>
            <dependency name="arrowColorMatchesEdge" value="true"/>
            <visualProperty name="EDGE_SOURCE_ARROW_UNSELECTED_PAINT" default="#000000"/>
            <visualProperty name="EDGE_TARGET_ARROW_SELECTED_PAINT" default="#ffff00"/>
            <visualProperty name="EDGE_BEND"/>
            <visualProperty name="EDGE_LABEL_FONT_SIZE" default="10"/>
            <visualProperty name="EDGE_SELECTED" default="false"/>
            <visualProperty name="EDGE_SOURCE_ARROW_SELECTED_PAINT" default="#ffff00"/>
            <visualProperty name="EDGE_STROKE_UNSELECTED_PAINT" default="#000000">
                <discreteMapping attributeType="string" attributeName="interaction">
                    <discreteMappingEntry value="#999999" attributeValue="translatedTo"/>
                    <discreteMappingEntry value="#999999" attributeValue="hasModification"/>
                    <discreteMappingEntry value="#999999" attributeValue="hasProduct"/>
                    <discreteMappingEntry value="#999999" attributeValue="reactantIn"/>
                    <discreteMappingEntry value="#999999" attributeValue="hasVariant"/>
                    <discreteMappingEntry value="#999999" attributeValue="includes"/>
                    <discreteMappingEntry value="#999999" attributeValue="subProcessOf"/>
                    <discreteMappingEntry value="#999999" attributeValue="actsIn"/>
                    <discreteMappingEntry value="#999999" attributeValue="hasMember"/>
                    <discreteMappingEntry value="#999999" attributeValue="translocates"/>
                    <discreteMappingEntry value="#999999" attributeValue="subProcess_OF"/>
                    <discreteMappingEntry value="#999999" attributeValue="isA"/>
                    <discreteMappingEntry value="#999999" attributeValue="hasComponent"/>
                    <discreteMappingEntry value="#999999" attributeValue="transcribedTo"/>
                    <discreteMappingEntry value="#999999" attributeValue="orthologous"/>
                </discreteMapping>
            </visualProperty>
            <visualProperty name="EDGE_LINE_TYPE" default="SOLID">
                <discreteMapping attributeType="string" attributeName="interaction">
                    <discreteMappingEntry value="LONG_DASH" attributeValue="translatedTo"/>
                    <discreteMappingEntry value="EQUAL_DASH" attributeValue="hasModification"/>
                    <discreteMappingEntry value="EQUAL_DASH" attributeValue="hasProduct"/>
                    <discreteMappingEntry value="DOT" attributeValue="association"/>
                    <discreteMappingEntry value="DOT" attributeValue="prognosticBiomarkerFor"/>
                    <discreteMappingEntry value="SOLID" attributeValue="directlyIncreases"/>
                    <discreteMappingEntry value="EQUAL_DASH" attributeValue="reactantIn"/>
                    <discreteMappingEntry value="EQUAL_DASH" attributeValue="hasVariant"/>
                    <discreteMappingEntry value="EQUAL_DASH" attributeValue="includes"/>
                    <discreteMappingEntry value="DOT" attributeValue="negativeCorrelation"/>
                    <discreteMappingEntry value="EQUAL_DASH" attributeValue="subProcessOf"/>
                    <discreteMappingEntry value="EQUAL_DASH" attributeValue="rateLimitingStepOf"/>
                    <discreteMappingEntry value="LONG_DASH" attributeValue="actsIn"/>
                    <discreteMappingEntry value="EQUAL_DASH" attributeValue="hasMember"/>
                    <discreteMappingEntry value="EQUAL_DASH" attributeValue="translocates"/>
                    <discreteMappingEntry value="EQUAL_DASH" attributeValue="isA"/>
                    <discreteMappingEntry value="EQUAL_DASH" attributeValue="subProcess_OF"/>
                    <discreteMappingEntry value="BACKWARD_SLASH" attributeValue="causesNoChange"/>
                    <discreteMappingEntry value="EQUAL_DASH" attributeValue="hasComponent"/>
                    <discreteMappingEntry value="DOT" attributeValue="positiveCorrelation"/>
                    <discreteMappingEntry value="SOLID" attributeValue="directlyDecreases"/>
                    <discreteMappingEntry value="DOT" attributeValue="biomarkerFor"/>
                    <discreteMappingEntry value="LONG_DASH" attributeValue="transcribedTo"/>
                    <discreteMappingEntry value="EQUAL_DASH" attributeValue="orthologous"/>
                </discreteMapping>
            </visualProperty>
            <visualProperty name="EDGE_SOURCE_ARROW_SHAPE" default="NONE">
                <discreteMapping attributeType="string" attributeName="interaction">
                    <discreteMappingEntry value="NONE" attributeValue="association"/>
                    <discreteMappingEntry value="NONE" attributeValue="hasMember"/>
                    <discreteMappingEntry value="ARROW" attributeValue="positiveCorrelation"/>
                    <discreteMappingEntry value="CIRCLE" attributeValue="negativeCorrelation"/>
                    <discreteMappingEntry value="NONE" attributeValue="orthologous"/>
                </discreteMapping>
            </visualProperty>
            <visualProperty name="EDGE_TOOLTIP" default=""/>
            <visualProperty name="EDGE_LABEL" default=""/>
            <visualProperty name="EDGE_UNSELECTED_PAINT" default="#000000">
                <discreteMapping attributeType="string" attributeName="interaction">
                    <discreteMappingEntry value="#999999" attributeValue="translatedTo"/>
                    <discreteMappingEntry value="#999999" attributeValue="hasModification"/>
                    <discreteMappingEntry value="#999999" attributeValue="hasProduct"/>
                    <discreteMappingEntry value="#999999" attributeValue="reactantIn"/>
                    <discreteMappingEntry value="#999999" attributeValue="hasVariant"/>
                    <discreteMappingEntry value="#999999" attributeValue="includes"/>
                    <discreteMappingEntry value="#999999" attributeValue="subProcessOf"/>
                    <discreteMappingEntry value="#999999" attributeValue="actsIn"/>
                    <discreteMappingEntry value="#999999" attributeValue="hasMember"/>
                    <discreteMappingEntry value="#999999" attributeValue="translocates"/>
                    <discreteMappingEntry value="#999999" attributeValue="subProcess_OF"/>
                    <discreteMappingEntry value="#999999" attributeValue="isA"/>
                    <discreteMappingEntry value="#999999" attributeValue="hasComponent"/>
                    <discreteMappingEntry value="#999999" attributeValue="transcribedTo"/>
                    <discreteMappingEntry value="#999999" attributeValue="orthologous"/>
                </discreteMapping>
            </visualProperty>
            <visualProperty name="EDGE_LABEL_COLOR" default="#000000"/>
            <visualProperty name="EDGE_TARGET_ARROW_UNSELECTED_PAINT" default="#000000"/>
            <visualProperty name="EDGE_CURVED" default="true"/>
            <visualProperty name="EDGE_LABEL_FONT_FACE" default="Dialog.plain,plain,10"/>
            <visualProperty name="EDGE_TRANSPARENCY" default="255">
                <discreteMapping attributeType="boolean" attributeName="linked">
                    <discreteMappingEntry value="100" attributeValue="false"/>
                    <discreteMappingEntry value="255" attributeValue="true"/>
                </discreteMapping>
            </visualProperty>
            <visualProperty name="EDGE_WIDTH" default="1.0">
                <discreteMapping attributeType="string" attributeName="interaction">
                    <discreteMappingEntry value="3.0" attributeValue="hasModification"/>
                    <discreteMappingEntry value="3.0" attributeValue="directlyIncreases"/>
                    <discreteMappingEntry value="3.0" attributeValue="includes"/>
                    <discreteMappingEntry value="3.0" attributeValue="subProcessOf"/>
                    <discreteMappingEntry value="3.0" attributeValue="rateLimitingStepOf"/>
                    <discreteMappingEntry value="3.0" attributeValue="actsIn"/>
                    <discreteMappingEntry value="1.0" attributeValue="increases"/>
                    <discreteMappingEntry value="3.0" attributeValue="subProcess_OF"/>
                    <discreteMappingEntry value="3.0" attributeValue="causesNoChange"/>
                    <discreteMappingEntry value="1.0" attributeValue="positiveCorrelation"/>
                    <discreteMappingEntry value="1.0" attributeValue="biomarkerFor"/>
                    <discreteMappingEntry value="3.0" attributeValue="transcribedTo"/>
                    <discreteMappingEntry value="3.0" attributeValue="translatedTo"/>
                    <discreteMappingEntry value="3.0" attributeValue="hasProduct"/>
                    <discreteMappingEntry value="1.0" attributeValue="association"/>
                    <discreteMappingEntry value="1.0" attributeValue="prognosticBiomarkerFor"/>
                    <discreteMappingEntry value="3.0" attributeValue="reactantIn"/>
                    <discreteMappingEntry value="3.0" attributeValue="hasVariant"/>
                    <discreteMappingEntry value="1.0" attributeValue="negativeCorrelation"/>
                    <discreteMappingEntry value="1.0" attributeValue="decreases"/>
                    <discreteMappingEntry value="3.0" attributeValue="hasMember"/>
                    <discreteMappingEntry value="3.0" attributeValue="translocates"/>
                    <discreteMappingEntry value="3.0" attributeValue="isA"/>
                    <discreteMappingEntry value="3.0" attributeValue="hasComponent"/>
                    <discreteMappingEntry value="3.0" attributeValue="directlyDecreases"/>
                    <discreteMappingEntry value="3.0" attributeValue="orthologous"/>
                </discreteMapping>
            </visualProperty>
            <visualProperty name="EDGE_LABEL_TRANSPARENCY" default="255"/>
            <visualProperty name="EDGE_VISIBLE" default="true"/>
            <visualProperty name="EDGE_TARGET_ARROW_SHAPE" default="NONE">
                <discreteMapping attributeType="string" attributeName="interaction">
                    <discreteMappingEntry value="DIAMOND" attributeValue="hasModification"/>
                    <discreteMappingEntry value="ARROW" attributeValue="directlyIncreases"/>
                    <discreteMappingEntry value="DIAMOND" attributeValue="includes"/>
                    <discreteMappingEntry value="DIAMOND" attributeValue="subProcessOf"/>
                    <discreteMappingEntry value="ARROW" attributeValue="analogous"/>
                    <discreteMappingEntry value="DIAMOND" attributeValue="actsIn"/>
                    <discreteMappingEntry value="ARROW" attributeValue="rateLimitingStepOf"/>
                    <discreteMappingEntry value="ARROW" attributeValue="increases"/>
                    <discreteMappingEntry value="DIAMOND" attributeValue="subProcess_OF"/>
                    <discreteMappingEntry value="ARROW" attributeValue="positiveCorrelation"/>
                    <discreteMappingEntry value="ARROW" attributeValue="biomarkerFor"/>
                    <discreteMappingEntry value="DIAMOND" attributeValue="transcribedTo"/>
                    <discreteMappingEntry value="DIAMOND" attributeValue="translatedTo"/>
                    <discreteMappingEntry value="DIAMOND" attributeValue="hasProduct"/>
                    <discreteMappingEntry value="NONE" attributeValue="association"/>
                    <discreteMappingEntry value="ARROW" attributeValue="prognosticBiomarkerFor"/>
                    <discreteMappingEntry value="ARROW" attributeValue="unknown"/>
                    <discreteMappingEntry value="DIAMOND" attributeValue="reactantIn"/>
                    <discreteMappingEntry value="DIAMOND" attributeValue="hasVariant"/>
                    <discreteMappingEntry value="CIRCLE" attributeValue="negativeCorrelation"/>
                    <discreteMappingEntry value="DIAMOND" attributeValue="hasMember"/>
                    <discreteMappingEntry value="CIRCLE" attributeValue="decreases"/>
                    <discreteMappingEntry value="DIAMOND" attributeValue="translocates"/>
                    <discreteMappingEntry value="DIAMOND" attributeValue="isA"/>
                    <discreteMappingEntry value="DIAMOND" attributeValue="hasComponent"/>
                    <discreteMappingEntry value="CIRCLE" attributeValue="directlyDecreases"/>
                    <discreteMappingEntry value="NONE" attributeValue="orthologous"/>
                </discreteMapping>
            </visualProperty>
            <visualProperty name="EDGE_STROKE_SELECTED_PAINT" default="#ff0000"/>
        </edge>
    </visualStyle>
    <visualStyle name="KAM Visualization Minimal">
        <network>
            <visualProperty name="NETWORK_CENTER_X_LOCATION" default="0.0"/>
            <visualProperty name="NETWORK_TITLE" default=""/>
            <visualProperty name="NETWORK_BACKGROUND_PAINT" default="#ffffff"/>
            <visualProperty name="NETWORK_WIDTH" default="550.0"/>
            <visualProperty name="NETWORK_SCALE_FACTOR" default="1.0"/>
            <visualProperty name="NETWORK_HEIGHT" default="400.0"/>
            <visualProperty name="NETWORK_EDGE_SELECTION" default="true"/>
            <visualProperty name="NETWORK_CENTER_Z_LOCATION" default="0.0"/>
            <visualProperty name="NETWORK_CENTER_Y_LOCATION" default="0.0"/>
            <visualProperty name="NETWORK_NODE_SELECTION" default="true"/>
            <visualProperty name="NETWORK_DEPTH" default="0.0"/>
        </network>
        <node>
            <dependency name="nodeCustomGraphicsSizeSync" value="true"/>
            <dependency name="nodeSizeLocked" value="false"/>
            <visualProperty name="NODE_CUSTOMGRAPHICS_POSITION_1" default="C,C,c,0.00,0.00"/>
            <visualProperty name="NODE_LABEL_COLOR" default="#000000"/>
            <visualProperty name="NODE_CUSTOMGRAPHICS_POSITION_7" default="C,C,c,0.00,0.00"/>
            <visualProperty name="NODE_CUSTOMGRAPHICS_POSITION_2" default="C,C,c,0.00,0.00"/>
            <visualProperty name="NODE_BORDER_STROKE" default="SOLID"/>
            <visualProperty name="NODE_SHAPE" default="RECTANGLE">
                <discreteMapping attributeType="string" attributeName="bel.function">
                    <discreteMappingEntry value="PARALLELOGRAM" attributeValue="reaction"/>
                    <discreteMappingEntry value="ROUND_RECTANGLE" attributeValue="degradation"/>
                    <discreteMappingEntry value="HEXAGON" attributeValue="transcriptionalActivity"/>
                    <discreteMappingEntry value="ROUND_RECTANGLE" attributeValue="transportActivity"/>
                    <discreteMappingEntry value="PARALLELOGRAM" attributeValue="pathology"/>
                    <discreteMappingEntry value="VEE" attributeValue="cellSurfaceExpression"/>
                    <discreteMappingEntry value="HEXAGON" attributeValue="gtpBoundActivity"/>
                    <discreteMappingEntry value="HEXAGON" attributeValue="catalyticActivity"/>
                    <discreteMappingEntry value="ROUND_RECTANGLE" attributeValue="proteinAbundance"/>
                    <discreteMappingEntry value="HEXAGON" attributeValue="phosphataseActivity"/>
                    <discreteMappingEntry value="HEXAGON" attributeValue="molecularActivity"/>
                    <discreteMappingEntry value="VEE" attributeValue="cellSecretion"/>
                    <discreteMappingEntry value="HEXAGON" attributeValue="chaperoneActivity"/>
                    <discreteMappingEntry value="ROUND_RECTANGLE" attributeValue="complexAbundance"/>
                    <discreteMappingEntry value="ELLIPSE" attributeValue="microRNAAbundance"/>
                    <discreteMappingEntry value="ROUND_RECTANGLE" attributeValue="compositeAbundance"/>
                    <discreteMappingEntry value="PARALLELOGRAM" attributeValue="biologicalProcess"/>
                    <discreteMappingEntry value="HEXAGON" attributeValue="peptidaseActivity"/>
                    <discreteMappingEntry value="ELLIPSE" attributeValue="geneAbundance"/>
                    <discreteMappingEntry value="VEE" attributeValue="translocation"/>
                    <discreteMappingEntry value="HEXAGON" attributeValue="ribosylationActivity"/>
                    <discreteMappingEntry value="ELLIPSE" attributeValue="rnaAbundance"/>
                    <discreteMappingEntry value="DIAMOND" attributeValue="abundance"/>
                    <discreteMappingEntry value="HEXAGON" attributeValue="kinaseActivity"/>
                </discreteMapping>
            </visualProperty>
            <visualProperty name="NODE_LABEL_TRANSPARENCY" default="255">
                <discreteMapping attributeType="boolean" attributeName="linked">
                    <discreteMappingEntry value="100" attributeValue="false"/>
                    <discreteMappingEntry value="255" attributeValue="true"/>
                </discreteMapping>
            </visualProperty>
            <visualProperty name="NODE_CUSTOMGRAPHICS_POSITION_3" default="C,C,c,0.00,0.00"/>
            <visualProperty name="NODE_Z_LOCATION" default="0.0"/>
            <visualProperty name="NODE_LABEL_WIDTH" default="100.0"/>
            <visualProperty name="NODE_CUSTOMGRAPHICS_SIZE_6" default="0.0"/>
            <visualProperty name="NODE_CUSTOMGRAPHICS_SIZE_1" default="0.0"/>
            <visualProperty name="NODE_SELECTED_PAINT" default="#ffff00"/>
            <visualProperty name="NODE_CUSTOMGRAPHICS_POSITION_6" default="C,C,c,0.00,0.00"/>
            <visualProperty name="NODE_NESTED_NETWORK_IMAGE_VISIBLE" default="true"/>
            <visualProperty name="NODE_CUSTOMGRAPHICS_9" default="org.cytoscape.ding.customgraphics.NullCustomGraphics,0,[ Remove Graphics ],"/>
            <visualProperty name="NODE_CUSTOMGRAPHICS_POSITION_9" default="C,C,c,0.00,0.00"/>
            <visualProperty name="NODE_CUSTOMGRAPHICS_POSITION_8" default="C,C,c,0.00,0.00"/>
            <visualProperty name="NODE_CUSTOMGRAPHICS_SIZE_2" default="0.0"/>
            <visualProperty name="NODE_SELECTED" default="false"/>
            <visualProperty name="NODE_BORDER_WIDTH" default="1.0"/>
            <visualProperty name="NODE_CUSTOMGRAPHICS_SIZE_3" default="0.0"/>
            <visualProperty name="NODE_HEIGHT" default="30.0"/>
            <visualProperty name="NODE_CUSTOMGRAPHICS_8" default="org.cytoscape.ding.customgraphics.NullCustomGraphics,0,[ Remove Graphics ],"/>
            <visualProperty name="NODE_TRANSPARENCY" default="255">
                <discreteMapping attributeType="boolean" attributeName="linked">
                    <discreteMappingEntry value="100" attributeValue="false"/>
                    <discreteMappingEntry value="255" attributeValue="true"/>
                </discreteMapping>
            </visualProperty>
            <visualProperty name="NODE_LABEL_FONT_FACE" default="Dialog.plain,plain,12"/>
            <visualProperty name="NODE_BORDER_PAINT" default="#000000"/>
            <visualProperty name="NODE_VISIBLE" default="true"/>
            <visualProperty name="NODE_BORDER_TRANSPARENCY" default="255">
                <discreteMapping attributeType="boolean" attributeName="linked">
                    <discreteMappingEntry value="100" attributeValue="false"/>
                    <discreteMappingEntry value="255" attributeValue="true"/>
                </discreteMapping>
            </visualProperty>
            <visualProperty name="NODE_LABEL_POSITION" default="C,C,c,0.00,0.00"/>
            <visualProperty name="NODE_X_LOCATION" default="0.0"/>
            <visualProperty name="NODE_Y_LOCATION" default="0.0"/>
            <visualProperty name="NODE_CUSTOMGRAPHICS_7" default="org.cytoscape.ding.customgraphics.NullCustomGraphics,0,[ Remove Graphics ],"/>
            <visualProperty name="NODE_CUSTOMGRAPHICS_4" default="org.cytoscape.ding.customgraphics.NullCustomGraphics,0,[ Remove Graphics ],"/>
            <visualProperty name="NODE_WIDTH" default="70.0">
                <discreteMapping attributeType="string" attributeName="bel.function">
                    <discreteMappingEntry value="150.0" attributeValue="reaction"/>
                    <discreteMappingEntry value="110.0" attributeValue="degradation"/>
                    <discreteMappingEntry value="110.0" attributeValue="transcriptionalActivity"/>
                    <discreteMappingEntry value="110.0" attributeValue="transportActivity"/>
                    <discreteMappingEntry value="125.0" attributeValue="pathology"/>
                    <discreteMappingEntry value="110.0" attributeValue="cellSurfaceExpression"/>
                    <discreteMappingEntry value="110.0" attributeValue="catalyticActivity"/>
                    <discreteMappingEntry value="110.0" attributeValue="gtpBoundActivity"/>
                    <discreteMappingEntry value="75.0" attributeValue="proteinAbundance"/>
                    <discreteMappingEntry value="110.0" attributeValue="phosphataseActivity"/>
                    <discreteMappingEntry value="110.0" attributeValue="molecularActivity"/>
                    <discreteMappingEntry value="110.0" attributeValue="cellSecretion"/>
                    <discreteMappingEntry value="110.0" attributeValue="chaperoneActivity"/>
                    <discreteMappingEntry value="150.0" attributeValue="compositeAbundance"/>
                    <discreteMappingEntry value="150.0" attributeValue="complexAbundance"/>
                    <discreteMappingEntry value="75.0" attributeValue="microRNAAbundance"/>
                    <discreteMappingEntry value="125.0" attributeValue="biologicalProcess"/>
                    <discreteMappingEntry value="110.0" attributeValue="peptidaseActivity"/>
                    <discreteMappingEntry value="75.0" attributeValue="geneAbundance"/>
                    <discreteMappingEntry value="110.0" attributeValue="translocation"/>
                    <discreteMappingEntry value="110.0" attributeValue="ribosylationActivity"/>
                    <discreteMappingEntry value="75.0" attributeValue="rnaAbundance"/>
                    <discreteMappingEntry value="110.0" attributeValue="kinaseActivity"/>
                    <discreteMappingEntry value="75.0" attributeValue="abundance"/>
                </discreteMapping>
            </visualProperty>
            <visualProperty name="NODE_CUSTOMGRAPHICS_SIZE_8" default="0.0"/>
            <visualProperty name="NODE_CUSTOMGRAPHICS_6" default="org.cytoscape.ding.customgraphics.NullCustomGraphics,0,[ Remove Graphics ],"/>
            <visualProperty name="NODE_CUSTOMGRAPHICS_POSITION_5" default="C,C,c,0.00,0.00"/>
            <visualProperty name="NODE_CUSTOMGRAPHICS_2" default="org.cytoscape.ding.customgraphics.NullCustomGraphics,0,[ Remove Graphics ],"/>
            <visualProperty name="NODE_SIZE" default="35.0">
                <discreteMapping attributeType="string" attributeName="bel.function">
                    <discreteMappingEntry value="100.0" attributeValue="transcriptionalActivity"/>
                </discreteMapping>
            </visualProperty>
            <visualProperty name="NODE_CUSTOMGRAPHICS_1" default="org.cytoscape.ding.customgraphics.NullCustomGraphics,0,[ Remove Graphics ],"/>
            <visualProperty name="NODE_FILL_COLOR" default="#ffffff">
                <discreteMapping attributeType="string" attributeName="bel.function"/>
            </visualProperty>
            <visualProperty name="NODE_CUSTOMGRAPHICS_SIZE_7" default="0.0"/>
            <visualProperty name="NODE_DEPTH" default="0.0"/>
            <visualProperty name="NODE_CUSTOMGRAPHICS_SIZE_5" default="0.0"/>
            <visualProperty name="NODE_TOOLTIP" default=""/>
            <visualProperty name="NODE_LABEL_FONT_SIZE" default="12"/>
            <visualProperty name="NODE_CUSTOMGRAPHICS_POSITION_4" default="C,C,c,0.00,0.00"/>
            <visualProperty name="NODE_LABEL" default="">
                <passthroughMapping attributeType="string" attributeName="name"/>
            </visualProperty>
            <visualProperty name="NODE_CUSTOMGRAPHICS_SIZE_9" default="0.0"/>
            <visualProperty name="NODE_CUSTOMGRAPHICS_SIZE_4" default="0.0"/>
            <visualProperty name="NODE_CUSTOMGRAPHICS_5" default="org.cytoscape.ding.customgraphics.NullCustomGraphics,0,[ Remove Graphics ],"/>
            <visualProperty name="NODE_CUSTOMGRAPHICS_3" default="org.cytoscape.ding.customgraphics.NullCustomGraphics,0,[ Remove Graphics ],"/>
        </node>
        <edge>
            <dependency name="arrowColorMatchesEdge" value="true"/>
            <visualProperty name="EDGE_SOURCE_ARROW_UNSELECTED_PAINT" default="#000000"/>
            <visualProperty name="EDGE_TARGET_ARROW_SELECTED_PAINT" default="#ffff00"/>
            <visualProperty name="EDGE_BEND"/>
            <visualProperty name="EDGE_LABEL_FONT_SIZE" default="10"/>
            <visualProperty name="EDGE_SELECTED" default="false"/>
            <visualProperty name="EDGE_SOURCE_ARROW_SELECTED_PAINT" default="#ffff00"/>
            <visualProperty name="EDGE_STROKE_UNSELECTED_PAINT" default="#000000">
                <discreteMapping attributeType="string" attributeName="interaction">
                    <discreteMappingEntry value="#999999" attributeValue="translatedTo"/>
                    <discreteMappingEntry value="#999999" attributeValue="hasModification"/>
                    <discreteMappingEntry value="#999999" attributeValue="hasProduct"/>
                    <discreteMappingEntry value="#999999" attributeValue="reactantIn"/>
                    <discreteMappingEntry value="#999999" attributeValue="includes"/>
                    <discreteMappingEntry value="#999999" attributeValue="hasVariant"/>
                    <discreteMappingEntry value="#999999" attributeValue="subProcessOf"/>
                    <discreteMappingEntry value="#999999" attributeValue="actsIn"/>
                    <discreteMappingEntry value="#999999" attributeValue="hasMember"/>
                    <discreteMappingEntry value="#999999" attributeValue="translocates"/>
                    <discreteMappingEntry value="#999999" attributeValue="isA"/>
                    <discreteMappingEntry value="#999999" attributeValue="subProcess_OF"/>
                    <discreteMappingEntry value="#999999" attributeValue="hasComponent"/>
                    <discreteMappingEntry value="#999999" attributeValue="orthologous"/>
                    <discreteMappingEntry value="#999999" attributeValue="transcribedTo"/>
                </discreteMapping>
            </visualProperty>
            <visualProperty name="EDGE_LINE_TYPE" default="SOLID">
                <discreteMapping attributeType="string" attributeName="interaction">
                    <discreteMappingEntry value="LONG_DASH" attributeValue="translatedTo"/>
                    <discreteMappingEntry value="EQUAL_DASH" attributeValue="hasModification"/>
                    <discreteMappingEntry value="EQUAL_DASH" attributeValue="hasProduct"/>
                    <discreteMappingEntry value="DOT" attributeValue="association"/>
                    <discreteMappingEntry value="DOT" attributeValue="prognosticBiomarkerFor"/>
                    <discreteMappingEntry value="SOLID" attributeValue="directlyIncreases"/>
                    <discreteMappingEntry value="EQUAL_DASH" attributeValue="reactantIn"/>
                    <discreteMappingEntry value="EQUAL_DASH" attributeValue="includes"/>
                    <discreteMappingEntry value="DOT" attributeValue="negativeCorrelation"/>
                    <discreteMappingEntry value="EQUAL_DASH" attributeValue="hasVariant"/>
                    <discreteMappingEntry value="EQUAL_DASH" attributeValue="subProcessOf"/>
                    <discreteMappingEntry value="EQUAL_DASH" attributeValue="rateLimitingStepOf"/>
                    <discreteMappingEntry value="LONG_DASH" attributeValue="actsIn"/>
                    <discreteMappingEntry value="EQUAL_DASH" attributeValue="hasMember"/>
                    <discreteMappingEntry value="EQUAL_DASH" attributeValue="translocates"/>
                    <discreteMappingEntry value="EQUAL_DASH" attributeValue="subProcess_OF"/>
                    <discreteMappingEntry value="EQUAL_DASH" attributeValue="isA"/>
                    <discreteMappingEntry value="BACKWARD_SLASH" attributeValue="causesNoChange"/>
                    <discreteMappingEntry value="EQUAL_DASH" attributeValue="hasComponent"/>
                    <discreteMappingEntry value="SOLID" attributeValue="directlyDecreases"/>
                    <discreteMappingEntry value="DOT" attributeValue="positiveCorrelation"/>
                    <discreteMappingEntry value="DOT" attributeValue="biomarkerFor"/>
                    <discreteMappingEntry value="LONG_DASH" attributeValue="transcribedTo"/>
                    <discreteMappingEntry value="EQUAL_DASH" attributeValue="orthologous"/>
                </discreteMapping>
            </visualProperty>
            <visualProperty name="EDGE_SOURCE_ARROW_SHAPE" default="NONE">
                <discreteMapping attributeType="string" attributeName="interaction">
                    <discreteMappingEntry value="NONE" attributeValue="association"/>
                    <discreteMappingEntry value="NONE" attributeValue="hasMember"/>
                    <discreteMappingEntry value="ARROW" attributeValue="positiveCorrelation"/>
                    <discreteMappingEntry value="CIRCLE" attributeValue="negativeCorrelation"/>
                    <discreteMappingEntry value="NONE" attributeValue="orthologous"/>
                </discreteMapping>
            </visualProperty>
            <visualProperty name="EDGE_TOOLTIP" default=""/>
            <visualProperty name="EDGE_LABEL" default=""/>
            <visualProperty name="EDGE_UNSELECTED_PAINT" default="#000000">
                <discreteMapping attributeType="string" attributeName="interaction">
                    <discreteMappingEntry value="#999999" attributeValue="translatedTo"/>
                    <discreteMappingEntry value="#999999" attributeValue="hasModification"/>
                    <discreteMappingEntry value="#999999" attributeValue="hasProduct"/>
                    <discreteMappingEntry value="#999999" attributeValue="reactantIn"/>
                    <discreteMappingEntry value="#999999" attributeValue="includes"/>
                    <discreteMappingEntry value="#999999" attributeValue="hasVariant"/>
                    <discreteMappingEntry value="#999999" attributeValue="subProcessOf"/>
                    <discreteMappingEntry value="#999999" attributeValue="actsIn"/>
                    <discreteMappingEntry value="#999999" attributeValue="hasMember"/>
                    <discreteMappingEntry value="#999999" attributeValue="translocates"/>
                    <discreteMappingEntry value="#999999" attributeValue="isA"/>
                    <discreteMappingEntry value="#999999" attributeValue="subProcess_OF"/>
                    <discreteMappingEntry value="#999999" attributeValue="hasComponent"/>
                    <discreteMappingEntry value="#999999" attributeValue="orthologous"/>
                    <discreteMappingEntry value="#999999" attributeValue="transcribedTo"/>
                </discreteMapping>
            </visualProperty>
            <visualProperty name="EDGE_LABEL_COLOR" default="#000000"/>
            <visualProperty name="EDGE_TARGET_ARROW_UNSELECTED_PAINT" default="#000000"/>
            <visualProperty name="EDGE_CURVED" default="true"/>
            <visualProperty name="EDGE_LABEL_FONT_FACE" default="Dialog.plain,plain,10"/>
            <visualProperty name="EDGE_TRANSPARENCY" default="255">
                <discreteMapping attributeType="boolean" attributeName="linked">
                    <discreteMappingEntry value="100" attributeValue="false"/>
                    <discreteMappingEntry value="255" attributeValue="true"/>
                </discreteMapping>
            </visualProperty>
            <visualProperty name="EDGE_WIDTH" default="1.0">
                <discreteMapping attributeType="string" attributeName="interaction">
                    <discreteMappingEntry value="3.0" attributeValue="hasModification"/>
                    <discreteMappingEntry value="3.0" attributeValue="directlyIncreases"/>
                    <discreteMappingEntry value="3.0" attributeValue="includes"/>
                    <discreteMappingEntry value="3.0" attributeValue="subProcessOf"/>
                    <discreteMappingEntry value="3.0" attributeValue="rateLimitingStepOf"/>
                    <discreteMappingEntry value="3.0" attributeValue="actsIn"/>
                    <discreteMappingEntry value="1.0" attributeValue="increases"/>
                    <discreteMappingEntry value="3.0" attributeValue="causesNoChange"/>
                    <discreteMappingEntry value="3.0" attributeValue="subProcess_OF"/>
                    <discreteMappingEntry value="1.0" attributeValue="positiveCorrelation"/>
                    <discreteMappingEntry value="1.0" attributeValue="biomarkerFor"/>
                    <discreteMappingEntry value="3.0" attributeValue="transcribedTo"/>
                    <discreteMappingEntry value="3.0" attributeValue="translatedTo"/>
                    <discreteMappingEntry value="3.0" attributeValue="hasProduct"/>
                    <discreteMappingEntry value="1.0" attributeValue="association"/>
                    <discreteMappingEntry value="1.0" attributeValue="prognosticBiomarkerFor"/>
                    <discreteMappingEntry value="3.0" attributeValue="reactantIn"/>
                    <discreteMappingEntry value="3.0" attributeValue="hasVariant"/>
                    <discreteMappingEntry value="1.0" attributeValue="negativeCorrelation"/>
                    <discreteMappingEntry value="1.0" attributeValue="decreases"/>
                    <discreteMappingEntry value="3.0" attributeValue="hasMember"/>
                    <discreteMappingEntry value="3.0" attributeValue="translocates"/>
                    <discreteMappingEntry value="3.0" attributeValue="isA"/>
                    <discreteMappingEntry value="3.0" attributeValue="hasComponent"/>
                    <discreteMappingEntry value="3.0" attributeValue="directlyDecreases"/>
                    <discreteMappingEntry value="3.0" attributeValue="orthologous"/>
                </discreteMapping>
            </visualProperty>
            <visualProperty name="EDGE_LABEL_TRANSPARENCY" default="255"/>
            <visualProperty name="EDGE_VISIBLE" default="true"/>
            <visualProperty name="EDGE_TARGET_ARROW_SHAPE" default="NONE">
                <discreteMapping attributeType="string" attributeName="interaction">
                    <discreteMappingEntry value="DIAMOND" attributeValue="hasModification"/>
                    <discreteMappingEntry value="ARROW" attributeValue="directlyIncreases"/>
                    <discreteMappingEntry value="DIAMOND" attributeValue="includes"/>
                    <discreteMappingEntry value="DIAMOND" attributeValue="subProcessOf"/>
                    <discreteMappingEntry value="ARROW" attributeValue="analogous"/>
                    <discreteMappingEntry value="ARROW" attributeValue="rateLimitingStepOf"/>
                    <discreteMappingEntry value="DIAMOND" attributeValue="actsIn"/>
                    <discreteMappingEntry value="ARROW" attributeValue="increases"/>
                    <discreteMappingEntry value="DIAMOND" attributeValue="subProcess_OF"/>
                    <discreteMappingEntry value="ARROW" attributeValue="positiveCorrelation"/>
                    <discreteMappingEntry value="ARROW" attributeValue="biomarkerFor"/>
                    <discreteMappingEntry value="DIAMOND" attributeValue="transcribedTo"/>
                    <discreteMappingEntry value="DIAMOND" attributeValue="translatedTo"/>
                    <discreteMappingEntry value="DIAMOND" attributeValue="hasProduct"/>
                    <discreteMappingEntry value="NONE" attributeValue="association"/>
                    <discreteMappingEntry value="ARROW" attributeValue="prognosticBiomarkerFor"/>
                    <discreteMappingEntry value="ARROW" attributeValue="unknown"/>
                    <discreteMappingEntry value="DIAMOND" attributeValue="reactantIn"/>
                    <discreteMappingEntry value="CIRCLE" attributeValue="negativeCorrelation"/>
                    <discreteMappingEntry value="DIAMOND" attributeValue="hasVariant"/>
                    <discreteMappingEntry value="CIRCLE" attributeValue="decreases"/>
                    <discreteMappingEntry value="DIAMOND" attributeValue="hasMember"/>
                    <discreteMappingEntry value="DIAMOND" attributeValue="translocates"/>
                    <discreteMappingEntry value="DIAMOND" attributeValue="isA"/>
                    <discreteMappingEntry value="DIAMOND" attributeValue="hasComponent"/>
                    <discreteMappingEntry value="CIRCLE" attributeValue="directlyDecreases"/>
                    <discreteMappingEntry value="NONE" attributeValue="orthologous"/>
                </discreteMapping>
            </visualProperty>
            <visualProperty name="EDGE_STROKE_SELECTED_PAINT" default="#ff0000"/>
        </edge>
    </visualStyle>
</vizmap>


text:
/*
 * Platform data for the chipidea USB dual role controller
 */

#ifndef __LINUX_USB_CHIPIDEA_H
#define __LINUX_USB_CHIPIDEA_H

#include <linux/usb/otg.h>

struct ci_hdrc;
struct ci_hdrc_platform_data {
	const char	*name;
	/* offset of the capability registers */
	uintptr_t	 capoffset;
	unsigned	 power_budget;
	struct usb_phy	*phy;
	enum usb_phy_interface phy_mode;
	unsigned long	 flags;
#define CI_HDRC_REGS_SHARED		BIT(0)
#define CI_HDRC_REQUIRE_TRANSCEIVER	BIT(1)
#define CI_HDRC_DISABLE_STREAMING	BIT(3)
	/*
	 * Only set it when DCCPARAMS.DC==1 and DCCPARAMS.HC==1,
	 * but otg is not supported (no register otgsc).
	 */
#define CI_HDRC_DUAL_ROLE_NOT_OTG	BIT(4)
#define CI_HDRC_IMX28_WRITE_FIX		BIT(5)
	enum usb_dr_mode	dr_mode;
#define CI_HDRC_CONTROLLER_RESET_EVENT		0
#define CI_HDRC_CONTROLLER_STOPPED_EVENT	1
	void	(*notify_event) (struct ci_hdrc *ci, unsigned event);
	struct regulator	*reg_vbus;
};

/* Default offset of capability registers */
#define DEF_CAPOFFSET		0x100

/* Add ci hdrc device */
struct platform_device *ci_hdrc_add_device(struct device *dev,
			struct resource *res, int nres,
			struct ci_hdrc_platform_data *platdata);
/* Remove ci hdrc device */
void ci_hdrc_remove_device(struct platform_device *pdev);

#endif


text:
using UnityEngine;
using UnityEngine.UI;

public class TapToPlace : MonoBehaviour
{
    public GameObject[] m_objects = new GameObject[6];
    public Vector3 scale;
    public Text message;
    public RectTransform m_prefabTouchEffect;
    public Canvas m_canvas;
    private TangoPointCloud m_pointCloud;

    //int m_pointsCount;

    void Start()
    {
        m_pointCloud = FindObjectOfType<TangoPointCloud>();
    }

    void Update()
    {
        if (Input.touchCount == 1)
        {
            // Trigger place object function when single touch ended.
            Touch t = Input.GetTouch(0);
            if (t.phase == TouchPhase.Ended)
            {
                RectTransform touchEffectRectTransform = Instantiate(m_prefabTouchEffect) as RectTransform;
                touchEffectRectTransform.transform.SetParent(m_canvas.transform, false);
                Vector2 normalizedPosition = t.position;
                normalizedPosition.x /= Screen.width;
                normalizedPosition.y /= Screen.height;
                touchEffectRectTransform.anchorMin = touchEffectRectTransform.anchorMax = normalizedPosition;
                PlaceObject(t.position);
            }
        }
    }

    void PlaceObject(Vector2 touchPosition)
    {

        message.text = "";
        // Find the plane.
        Camera cam = Camera.main;
        Vector3 planeCenter;
        Plane plane;
        if (!m_pointCloud.FindPlane(cam, touchPosition, out planeCenter, out plane))
        {
            message.text = "cannot find plane.";
            Debug.Log("cannot find plane.");
            return;
        }

        Vector3 up = plane.normal;

        int rotation = Random.Range(0, 360);

        // Place object on the surface with random rotation.
        if (Vector3.Angle(plane.normal, Vector3.up) < 5.0f)
        {
            instantiateObject(m_objects.Length, planeCenter, rotation);
        }
        else if (Vector3.Angle(plane.normal, Vector3.up) < 10.0f)
        {
            instantiateObject(m_objects.Length - 1, planeCenter, rotation);
        }
        else if (Vector3.Angle(plane.normal, Vector3.up) < 50.0f)
        {
            instantiateObject(5, planeCenter, rotation);
        }
        else
        {
            message.text = "surface is too steep for object to stand on.";
            Debug.Log("surface is too steep for object to stand on.");
        }
    }

    void instantiateObject(int range, Vector3 coords, int angle)
    {
        var instantiatedObject = Instantiate(m_objects[Random.Range(0, range)], coords, Quaternion.Euler(0, angle, 0)) as GameObject;
        instantiatedObject.transform.localScale = scale;
        ARMarker markerScript = instantiatedObject.GetComponent<ARMarker>();
    }
}


text:
UPDATE "Accounts".Accounts SET val = val + :delta WHERE _key = :aid;

SELECT val FROM "Accounts".Accounts WHERE _key = :aid;

UPDATE "Tellers".Tellers SET val = val + :delta WHERE _key = :tid;

UPDATE "Branches".Branches SET val = val + :delta WHERE _key = :bid;

INSERT INTO "History".History (_key, tid, bid, aid, delta) VALUES (?, ?, ?, ? ,?);


text:
package piglatin

// Source: exercism/problem-specifications
// Commit: d77de78 pig-latin: Apply new "input" policy
// Problem Specifications Version: 1.2.0

var testCases = []struct {
	description string
	input       string
	expected    string
}{
	{
		description: "word beginning with a",
		input:       "apple",
		expected:    "appleay",
	},
	{
		description: "word beginning with e",
		input:       "ear",
		expected:    "earay",
	},
	{
		description: "word beginning with i",
		input:       "igloo",
		expected:    "iglooay",
	},
	{
		description: "word beginning with o",
		input:       "object",
		expected:    "objectay",
	},
	{
		description: "word beginning with u",
		input:       "under",
		expected:    "underay",
	},
	{
		description: "word beginning with a vowel and followed by a qu",
		input:       "equal",
		expected:    "equalay",
	},
	{
		description: "word beginning with p",
		input:       "pig",
		expected:    "igpay",
	},
	{
		description: "word beginning with k",
		input:       "koala",
		expected:    "oalakay",
	},
	{
		description: "word beginning with x",
		input:       "xenon",
		expected:    "enonxay",
	},
	{
		description: "word beginning with q without a following u",
		input:       "qat",
		expected:    "atqay",
	},
	{
		description: "word beginning with ch",
		input:       "chair",
		expected:    "airchay",
	},
	{
		description: "word beginning with qu",
		input:       "queen",
		expected:    "eenquay",
	},
	{
		description: "word beginning with qu and a preceding consonant",
		input:       "square",
		expected:    "aresquay",
	},
	{
		description: "word beginning with th",
		input:       "therapy",
		expected:    "erapythay",
	},
	{
		description: "word beginning with thr",
		input:       "thrush",
		expected:    "ushthray",
	},
	{
		description: "word beginning with sch",
		input:       "school",
		expected:    "oolschay",
	},
	{
		description: "word beginning with yt",
		input:       "yttria",
		expected:    "yttriaay",
	},
	{
		description: "word beginning with xr",
		input:       "xray",
		expected:    "xrayay",
	},
	{
		description: "y is treated like a consonant at the beginning of a word",
		input:       "yellow",
		expected:    "ellowyay",
	},
	{
		description: "y is treated like a vowel at the end of a consonant cluster",
		input:       "rhythm",
		expected:    "ythmrhay",
	},
	{
		description: "y as second letter in two letter word",
		input:       "my",
		expected:    "ymay",
	},
	{
		description: "a whole phrase",
		input:       "quick fast run",
		expected:    "ickquay astfay unray",
	},
}


text:
    <java-class-file name="D:\Experiments\Analisi di Sopravvivenza\Progetto16715\ProgettiDaAnalizzare\jhotdraw\JHotDraw 7.4.1\JHotDraw 7.4.1\Source\jhotdraw7\src\main\java\org\jhotdraw\samples\svg\figures\SVGPathFigure.java">
        <package-decl name="org.jhotdraw.samples.svg.figures"/>
        <class name="SVGPathFigure" visibility="public">
            <constructor visibility="public" name="SVGPathFigure">
            </constructor>
            <constructor visibility="public" name="SVGPathFigure">
            </constructor>
            <method name="draw" visibility="public">
            </method>
            <method name="drawFigure" visibility="public">
            </method>
            <method name="drawChildren" visibility="protected">
            </method>
            <method name="drawFill" visibility="public">
            </method>
            <method name="drawStroke" visibility="public">
            </method>
            <method name="invalidate" visibility="protected">
            </method>
            <method name="getPath" visibility="protected">
            </method>
            <method name="getHitShape" visibility="protected">
            </method>
            <method name="getDrawingArea" visibility="public">
            </method>
            <method name="write" visibility="public" final="true">
            </method>
            <method name="read" visibility="public" final="true">
            </method>
            <method name="contains" visibility="public">
            </method>
            <method name="setBounds" visibility="public">
            </method>
            <method name="transform" visibility="public">
            </method>
            <method name="restoreTransformTo" visibility="public">
            </method>
            <method name="getTransformRestoreData" visibility="public">
            </method>
            <method name="set" visibility="public">
            </method>
            <method name="isEmpty" visibility="public">
            </method>
            <method name="createHandles" visibility="public">
            </method>
            <method name="getActions" visibility="public">
                                                <method name="actionPerformed" visibility="public">
                                                </method>
                                                <method name="actionPerformed" visibility="public">
                                                                    <method name="getPresentationName" visibility="public">
                                                                    </method>
                                                                    <method name="undo" visibility="public">
                                                                    </method>
                                                                    <method name="redo" visibility="public">
                                                                    </method>
                                                </method>
                                                <method name="actionPerformed" visibility="public">
                                                </method>
                                                <method name="actionPerformed" visibility="public">
                                                </method>
                                                <method name="actionPerformed" visibility="public">
                                                </method>
                                                <method name="actionPerformed" visibility="public">
                                                </method>
            </method>
            <method name="handleMouseClick" visibility="public">
            </method>
            <method name="add" visibility="public">
            </method>
            <method name="getChild" visibility="public">
            </method>
            <method name="clone" visibility="public">
            </method>
            <method name="flattenTransform" visibility="public">
            </method>
        </class>
    </java-class-file>


text:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:id="@+id/first_image_layout"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:background="@drawable/bg_welcome">

    <com.graduation.yinhua.maleambry.view.widgets.RoundProgressBar
        android:id="@+id/roundProgressBar"
        android:layout_width="50dp"
        android:layout_height="50dp"
        android:layout_alignParentEnd="true"
        android:layout_alignParentTop="true"
        android:layout_marginEnd="10dp"
        android:layout_marginTop="30dp"
        app:roundColor="#22000000"
        app:roundProgressColor="#00ccff"
        app:roundWidth="2dp"
        app:textColor="#FFFFFF"
        app:textSize="12dp" />

    <ImageView
        android:layout_width="124dp"
        android:layout_height="114dp"
        android:layout_centerInParent="true"
        android:src="@mipmap/male_ambry_icon" />

</RelativeLayout>


text:
package oss.marunowskia.datamining.transactionalcausalinference.utilities.transactions;

import java.util.Hashtable;

import oss.marunowskia.datamining.transactionalcausalinference.models.TransactionBoundary;
import oss.marunowskia.datamining.transactionalcausalinference.models.TransactionBoundary.EventType;
import oss.marunowskia.datamining.transactionalcausalinference.utilities.sequences.SequenceAnalyzer;

public class TransactionSequenceAnalyzer extends SequenceAnalyzer  {

	private OutlierDetector outlierDetector = new OutlierDetector();

	public TransactionSequenceAnalyzer(Hashtable<String, String> config) {
		super(config);
	}

	public void analalyzeTransactionBoundary(TransactionBoundary event) {
		super.recordEvent(event, event.getTypeId());

		if(event.getEventType()==EventType.TRANSACTION_END) {
			boolean eventIsOutlier = outlierDetector.recordObservation(event.getTypeId(), event.getTransaction().getDuration());
			super.analyzeEvent(event, eventIsOutlier);

			// Since we only have the duration of the transaction once the transaction finishes,
			// we have to perform our analysis of the transaction's start event after the transaction has ended.
			super.analyzeEvent(event.getTransaction().getStartBoundary(), eventIsOutlier);
		}
	}
}


text:
import json
import requests
from django.shortcuts import render
from django.core.urlresolvers import reverse

# view imports
from django.views.generic import DetailView
from django.views.generic import RedirectView
from django.views.generic import UpdateView
from django.views.generic import ListView
from django.http import HttpResponseRedirect, HttpResponse

from django.utils.decorators import method_decorator
from django.contrib.admin.views.decorators import staff_member_required

from braces.views import LoginRequiredMixin

from .forms import UserForm, InstagramUserForm, InstagramUserIDForm
from .models import User, Follow
from .tasks import get_paginated_followers
from post_web.celery import app

from allauth.socialaccount.models import SocialAccount, SocialApp, SocialToken
from django.views.generic.base import TemplateView
from instagram.client import InstagramAPI

class GraphView(LoginRequiredMixin, TemplateView):

    template_name = "core/graph.html"

    def get_context_data(self, **kwargs):
        context = super(GraphView, self).get_context_data(**kwargs)
        context['graph_username'] = kwargs['username']
        return context

class UserDetailView(LoginRequiredMixin, DetailView):
    model = User
    # These next two lines tell the view to index lookups by username
    slug_field = "username"
    slug_url_kwarg = "username"

    def get_context_data(self, **kwargs):
        context = super(UserDetailView, self).get_context_data(**kwargs)
        context['form'] = InstagramUserForm()
        return context

class UserRedirectView(LoginRequiredMixin, RedirectView):
    permanent = False

    def get_redirect_url(self):
        return reverse("users:detail",
            kwargs={"username": self.request.user.username})

class UserUpdateView(LoginRequiredMixin, UpdateView):

    form_class = UserForm

    # we already imported User in the view code above, remember?
    model = User

    # send the user back to their own page after a successful update
    def get_success_url(self):
        return reverse("users:detail",
                    kwargs={"username": self.request.user.username})

    def get_object(self):
        # Only get the User record for the user making the request
        return User.objects.get(username=self.request.user.username)

class UserListView(LoginRequiredMixin, ListView):
    model = User
    # These next two lines tell the view to index lookups by username
    slug_field = "username"
    slug_url_kwarg = "username"

    @method_decorator(staff_member_required)
    def dispatch(self, *args, **kwargs):
        return super(UserListView, self).dispatch(*args, **kwargs)

def get_insta(request, username=None):
    '''
    Takes a user and fetches all its followers
    '''
    try:
        account = SocialAccount.objects.get(user__username=username)
        social_app = SocialApp.objects.get(name='Instagram')
        token = SocialToken.objects.get(account=account, app=social_app)
        api = InstagramAPI(access_token=token)
        url = 'https://api.instagram.com/v1/users/{id}/followed-by?access_token={token}'.format(id=account.uid, token=token.token)
        response = requests.get(url)
        store_followers.delay(account.user, token, response)
    except SocialAccount.DoesNotExist:
        pass
    return HttpResponseRedirect('/users/graph/{0}'.format(username))

@app.task(name='store-followers')
def store_followers(user, token, response):
    '''
    Stores all the followers
    '''
    data = json.loads(response.content)
    user_list = data['data']
    for folllower in user_list:
        username = folllower['username']
        uid = folllower['id']
        try:
            followee = User.objects.get(username=username)
            followee.uid = uid
            followee.save()
        except User.DoesNotExist:
            followee = User.objects.create(username=username, uid=uid)

        try:
            Follow.objects.get(user=user, follower=followee)
        except Follow.DoesNotExist:
            Follow.objects.create(user=user, follower=followee)
        set_timestamp(token, uid)

def set_timestamp(token, uid):
    print 'set_timestamp'
    '''
    Gets the latest timestamp for a uid
    '''
    url = 'https://api.instagram.com/v1/users/{id}/media/recent/?access_token={token}'.format(id=uid, token=token.token)
    response = requests.get(url)
    data = json.loads(response.content)
    timestamp = None
    try:
        data = data['data']
        if data:
            timestamp = data[0]['created_time']
    except KeyError:
        pass
    user = User.objects.get(uid=uid)
    user.timestamp = timestamp
    user.save()

def day_graph(request, username):
    '''
    Ajax function, used to draw graph
    '''
    user = User.objects.get(username=username)
    _dict = user.day_time_dict()
    arr = []
    for i in range(25):
        try:
            arr.append(_dict[i])
        except KeyError:
            arr.append(0)
    del arr[0]
    context = {'data': arr,
                'timepost': user.day_timepost()}
    return HttpResponse(json.dumps(context), content_type="application/json")

def search_user(request):
    print 'search_user'
    if request.method == 'POST':
        form = InstagramUserForm(request.POST)
        if form.is_valid():
            review_id = request.POST['username']
            account = SocialAccount.objects.get(user__username=request.user.username)
            social_app = SocialApp.objects.get(name='Instagram')
            token = SocialToken.objects.get(account=account, app=social_app)
            api = InstagramAPI(access_token=token)

            context = {'users':[], 'form': InstagramUserForm(), 'id_form': InstagramUserIDForm()}

            results = api.user_search(q=review_id)
            for result in results:
                context['users'].append({'username': result.username, 'id': result.id})

            # url = 'https://api.instagram.com/v1/users/search?q={id}&access_token={token}'.format(id=review_id, token=token.token)
            # try:
            #     response = requests.get(url)
            #     data = json.loads(response.content)
            #     if data['meta']['code'] == 200:
            #         for d in data['data']:
            #             context['users'].append({'username': d['username'], 'id': d['id']})
            # except ValueError:
            #     pass
    return render(request, 'core/user_search.html', context)

def timepost_on_id(request):
    print 'timepost_on_id'
    if request.method == 'POST':
        form = InstagramUserIDForm(request.POST)
        if form.is_valid():
            user_id = request.POST['pk']

            account = SocialAccount.objects.get(user__username=request.user.username)
            social_app = SocialApp.objects.get(name='Instagram')
            token = SocialToken.objects.get(account=account, app=social_app)
            api = InstagramAPI(access_token=token)

            id_user = api.user(user_id)
            # url = 'https://api.instagram.com/v1/users/{id}?access_token={token}'.format(id=user_id, token=token.token)
            # response  = requests.get(url)

            try:
                user = User.objects.get(username=id_user.username)
                user.uid = user_id
                user.save()
            except User.DoesNotExist:
                user = User()
                user.uid = user_id
                user.username = id_user.username
                user.save()
            get_paginated_followers.delay(user, api)

    return HttpResponseRedirect('/users/graph/{0}'.format(user.username))

            #     url = 'https://api.instagram.com/v1/users/{id}?access_token={token}'.format(id=user_id, token=token.token)
            # response  = requests.get(url)
            # try:
            #     data = json.loads(response.content)
            #     if data['meta']['code'] == 200:
            #         try:
            #             user = User.objects.get(username=data['data']['username'])
            #             user.uid = user_id
            #             user.save()
            #         except User.DoesNotExist:
            #             user = User()
            #             user.uid = user_id
            #             user.username = data['data']['username']
            #             user.save()

            #         url = 'https://api.instagram.com/v1/users/{id}/followed-by?access_token={token}'.format(id=user.uid, token=token.token)
            #         # resp = requests.get(url)
            #         # store_followers(user, token, resp)

            #         get_timepost_on_id.delay(token, user.uid)

            #         return HttpResponseRedirect('/users/graph/{0}'.format(user.username))
            # except ValueError:
            #     pass


text:
package com.cloud.utils.security;

import com.cloud.legacymodel.exceptions.CloudRuntimeException;
import com.cloud.legacymodel.utils.Ternary;

import java.io.BufferedInputStream;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.StringReader;
import java.security.Key;
import java.security.KeyFactory;
import java.security.KeyStore;
import java.security.KeyStoreException;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.security.cert.Certificate;
import java.security.cert.CertificateEncodingException;
import java.security.cert.CertificateException;
import java.security.cert.CertificateFactory;
import java.security.cert.X509Certificate;
import java.security.spec.InvalidKeySpecException;
import java.security.spec.PKCS8EncodedKeySpec;
import java.util.ArrayList;
import java.util.List;

import org.apache.commons.codec.binary.Base64;
import org.bouncycastle.openssl.PEMReader;

public class CertificateHelper {
    public static byte[] buildAndSaveKeystore(final String alias, final String cert, final String privateKey, final String storePassword) throws KeyStoreException,
            CertificateException,
            NoSuchAlgorithmException, InvalidKeySpecException, IOException {
        final KeyStore ks = buildKeystore(alias, cert, privateKey, storePassword);

        final ByteArrayOutputStream os = new ByteArrayOutputStream();
        ks.store(os, storePassword != null ? storePassword.toCharArray() : null);
        os.close();
        return os.toByteArray();
    }

    public static KeyStore buildKeystore(final String alias, final String cert, final String privateKey, final String storePassword) throws KeyStoreException, CertificateException,
            NoSuchAlgorithmException, InvalidKeySpecException, IOException {

        final KeyStore ks = KeyStore.getInstance("JKS");
        ks.load(null, storePassword != null ? storePassword.toCharArray() : null);
        final Certificate[] certs = new Certificate[1];
        certs[0] = buildCertificate(cert);
        ks.setKeyEntry(alias, buildPrivateKey(privateKey), storePassword != null ? storePassword.toCharArray() : null, certs);
        return ks;
    }

    public static Certificate buildCertificate(final String content) throws CertificateException {
        assert (content != null);

        final BufferedInputStream bis = new BufferedInputStream(new ByteArrayInputStream(content.getBytes()));
        final CertificateFactory cf = CertificateFactory.getInstance("X.509");
        return cf.generateCertificate(bis);
    }

    public static Key buildPrivateKey(final String base64EncodedKeyContent) throws NoSuchAlgorithmException, InvalidKeySpecException, IOException {
        final KeyFactory kf = KeyFactory.getInstance("RSA");
        final PKCS8EncodedKeySpec keysp = new PKCS8EncodedKeySpec(Base64.decodeBase64(base64EncodedKeyContent));
        return kf.generatePrivate(keysp);
    }

    public static byte[] buildAndSaveKeystore(final List<Ternary<String, String, String>> certs, final String storePassword) throws KeyStoreException, NoSuchAlgorithmException,
            CertificateException, IOException, InvalidKeySpecException {
        final KeyStore ks = KeyStore.getInstance("JKS");
        ks.load(null, storePassword != null ? storePassword.toCharArray() : null);

        //name,cert,key
        for (final Ternary<String, String, String> cert : certs) {
            if (cert.third() == null) {
                final Certificate c = buildCertificate(cert.second());
                ks.setCertificateEntry(cert.first(), c);
            } else {
                final Certificate[] c = new Certificate[certs.size()];
                int i = certs.size();
                for (final Ternary<String, String, String> ct : certs) {
                    c[i - 1] = buildCertificate(ct.second());
                    i--;
                }
                ks.setKeyEntry(cert.first(), buildPrivateKey(cert.third()), storePassword != null ? storePassword.toCharArray() : null, c);
            }
        }

        final ByteArrayOutputStream os = new ByteArrayOutputStream();
        ks.store(os, storePassword != null ? storePassword.toCharArray() : null);
        os.close();
        return os.toByteArray();
    }

    public static KeyStore loadKeystore(final byte[] ksData, final String storePassword) throws KeyStoreException, CertificateException, NoSuchAlgorithmException, IOException {
        assert (ksData != null);
        final KeyStore ks = KeyStore.getInstance("JKS");
        ks.load(new ByteArrayInputStream(ksData), storePassword != null ? storePassword.toCharArray() : null);

        return ks;
    }

    public static List<Certificate> parseChain(final String chain) throws IOException {

        final List<Certificate> certs = new ArrayList<>();
        final PEMReader reader = new PEMReader(new StringReader(chain));

        Certificate crt = null;

        while ((crt = (Certificate) reader.readObject()) != null) {
            if (crt instanceof X509Certificate) {
                certs.add(crt);
            }
        }
        if (certs.size() == 0) {
            throw new IllegalArgumentException("Unable to decode certificate chain");
        }

        return certs;
    }

    public static String generateFingerPrint(final Certificate cert) {

        final char[] HEX = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F'};

        final StringBuilder buffer = new StringBuilder(60);
        try {

            final MessageDigest md = MessageDigest.getInstance("SHA-1");
            final byte[] data = md.digest(cert.getEncoded());

            for (int i = 0; i < data.length; i++) {
                if (buffer.length() > 0) {
                    buffer.append(":");
                }

                buffer.append(HEX[(0xF0 & data[i]) >>> 4]);
                buffer.append(HEX[0x0F & data[i]]);
            }
        } catch (final CertificateEncodingException e) {
            throw new CloudRuntimeException("Bad certificate encoding");
        } catch (final NoSuchAlgorithmException e) {
            throw new CloudRuntimeException("Bad certificate algorithm");
        }

        return buffer.toString();
    }
}


text:
Get Matrix Svd Value on Android or Java

## How To Use
Get `Svd.java` , you can use it.

## Note
In your Gradle:
```
compile group: 'org.ejml', name: 'all', version: '0.28'
```

## Reference
[Efficient Java Matrix Library (EJML)](http://ejml.org/wiki/index.php?title=Main_Page)

EJML Github: [ejml](https://github.com/lessthanoptimal/ejml)


text:
package couch25k.utils;

import java.io.IOException;
import java.io.InputStreamReader;

public class IOUtils {
    /** Reads a line from a reader. */
    public static String readLine(InputStreamReader reader) throws IOException {
        int c = reader.read();
        if (c == -1) {
            return null;
        }
        StringBuffer line = new StringBuffer();
        while (c != -1 && c != '\n') {
            if (c != '\r') {
                line.append((char)c);
            }
            c = reader.read();
        }
        return line.toString();
    }
}