text:
<md-content class="md-padding" layout-xs="column" layout="row" layout-align='center center'>

        <md-card layout-gt-xs='row' layout-xs='column' ng-cloak>

                <md-card-title>
                    <md-card-title-text layout='row'>
                        {{movie.Title}} ({{movie.Year}})
                        <md-button class="md-icon-button" aria-label="Favorite" flex='none' ng-click='loveit(movie)'>
                            <md-icon style="color:{{isfav(movie)>=0 ? 'red' : ''}}">favorite</md-icon>
                        </md-button>
                    </md-card-title-text>
                </md-card-title>
                <md-card-actions layout="column" layout-align="start">

Released: {{movie.Released}}

Runtime: {{movie.Runtime}}

Genre: {{movie.Genre}}

Rated: {{movie.Rated}}

Director: {{movie.Director}}

Language: {{movie.Language}}

Country: {{movie.Country}}

Production: {{movie.Production}}

                </md-card-actions>
                <md-card-content>

Ratings

                            "{{rating.Source}}"
                            {{rating.Value}}

                    Cast: {{movie.Actors}}

                </md-card-content>

        </md-card>

</md-content>


text:
package org.apache.camel.component.aws2.eventbridge.localstack;

import org.apache.camel.CamelContext;
import org.apache.camel.component.aws2.eventbridge.EventbridgeComponent;
import org.apache.camel.test.infra.aws.common.services.AWSService;
import org.apache.camel.test.infra.aws2.clients.AWSSDKClientUtils;
import org.apache.camel.test.infra.aws2.services.AWSServiceFactory;
import org.apache.camel.test.junit5.CamelTestSupport;
import org.junit.jupiter.api.TestInstance;
import org.junit.jupiter.api.extension.RegisterExtension;

@TestInstance(TestInstance.Lifecycle.PER_CLASS)
public class Aws2EventbridgeBaseTest extends CamelTestSupport {

    @RegisterExtension
    public static AWSService service = AWSServiceFactory.createEventBridgeService();

    @Override
    protected CamelContext createCamelContext() throws Exception {
        CamelContext context = super.createCamelContext();
        EventbridgeComponent eventbridgeComponent = context.getComponent("aws2-eventbridge", EventbridgeComponent.class);
        eventbridgeComponent.getConfiguration().setEventbridgeClient(AWSSDKClientUtils.newEventBridgeClient());
        return context;
    }
}

redpajama_set_name: RedPajamaGithub


text:
package com.github.kpavlov.parlare.sample.calculator;

 class Calculator {

    public double add(double a, double b) {
        return a + b;
    }

    public double multiply(double a, double b) {
        return a * b;
    }

    public double divide(double a, double b) {
        return a / b;
    }
}


text:
subreddit = 'FreeGameFindings'
t_channel = '@g4m3savisos'

def send_post(submission, r2t):
    return r2t.send_simple(submission)


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

goog.require('axs.AuditRules');
goog.require('axs.constants.Severity');
goog.require('axs.utils');

/**
 * Meaningful images should not be used in element backgrounds.
 */
axs.AuditRules.addRule({
    name: 'elementsWithMeaningfulBackgroundImage',
    severity: axs.constants.Severity.WARNING,
    relevantElementMatcher: function(element) {
        return !axs.utils.isElementOrAncestorHidden(element);
    },
    heading: 'Meaningful images should not be used in element backgrounds',
    url: 'https://github.com/GoogleChrome/accessibility-developer-tools/wiki/Audit-Rules#ax_image_01',
    test: function(el) {
        if (el.textContent && el.textContent.length > 0) {
          return false;
        }
        var style = window.getComputedStyle(el, null);
        var bgImage = style.backgroundImage;
        if (!bgImage || bgImage === 'undefined' || bgImage === 'none' ||
            bgImage.indexOf('url') != 0) {
          return false;
        }
        var width = parseInt(style.width, 10);
        var height = parseInt(style.height, 10);
        // TODO(bobbrose): could also check for background repeat and position.
        return width < 150 && height < 150;
    },
    code: 'AX_IMAGE_01'
});


text:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Aula2205_EFDF.DAL;
namespace Aula2205_EFDF.Views.Categoria
{
    public partial class ListaCategorias : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            // Contexto (Referência para o banco)

            strConnLojaEntities contexto = new strConnLojaEntities();

            gvwCategorias.DataSource = contexto.Categorias.ToList();
            gvwCategorias.DataBind();
        }
    }
}


text:
// source:

package nl.esciencecenter.vlet.gui.table;

import nl.esciencecenter.vbrowser.vrs.vrl.VRL;
import nl.esciencecenter.vlet.gui.MasterBrowser;
import nl.esciencecenter.vlet.gui.data.ResourceRef;
import nl.esciencecenter.vlet.gui.view.VComponent;
import nl.esciencecenter.vlet.gui.view.VContainer;

/**
 * Current VComponent compatible Row Object.
 * Needed for GUI actions directly on a single Row
 */

public class VDummyRowObject implements VComponent
{
	MasterBrowser mb;
	private TablePanel tablePanel;
	ResourceRef resourceRef=null;

	public VDummyRowObject(TablePanel panel,MasterBrowser master,ResourceRef ref)
	{
		this.mb=master;
		this.tablePanel=panel;
		this.resourceRef=ref;
	}

	public MasterBrowser getMasterBrowser()
	{
		return mb;
	}

	public VRL getVRL()
	{
		return this.resourceRef.getVRL();
	}

	public VContainer getVContainer()
	{
		return this.tablePanel;
	}

	public String getResourceType()
	{
		return this.resourceRef.getResourceType();
	}

	public ResourceRef getResourceRef()
	{
		return this.resourceRef;
	}

}


text:
var widget = require('./widget.directive');

module.exports = angular
  .module('component.widget', [])
  .directive(widget.name, widget)
  .name;


text:
<?php

namespace TransformCore\PHE\HayApi\NarrativeBundle\Specification\Drinking;

use TransformCore\PHE\HayApi\NarrativeBundle\Specification\NarrativeSpecification;
use TransformCore\PHE\HayApi\PersistenceBundle\Entity\Questionnaire;

/**
 * Class DrinkingDaysGTE3AndLTE5Specification
 * @package TransformCore\PHE\HayApi\NarrativeBundle\Specification\Drinking
 */
class DrinkingDaysGTE3AndLTE5Specification implements NarrativeSpecification
{
    /**
     * @inheritDoc
     */
    public static function isSatisfiedBy(Questionnaire $questionnaire)
    {
        $days = explode(',', $questionnaire->getDrinking()->getWhichDaysDoYouDrink());

        return (count($days) >= 3 && count($days) <= 5);
    }
}


text:
package com.ysheng.auth.core;

import com.ysheng.auth.backend.Database;
import com.ysheng.auth.core.generator.AuthValueGeneratorFactory;
import com.ysheng.auth.model.configuration.core.CoreConfiguration;

/**
 * Defines the service factory that produces client service.
 */
public class ClientServiceFactory {

  /**
   * Produces a client service object.
   *
   * @param database The database object.
   * @param configuration The core configuration.
   * @return A client service object.
   */
  public ClientService produce(
      Database database,
      CoreConfiguration configuration) {
    return new ClientServiceImpl(
        database,
        new AuthValueGeneratorFactory().produce(configuration.getAuthValueGeneratorConfiguration()));
  }
}


text:
package org.apache.beehive.netui.pageflow.internal;

import org.apache.beehive.netui.pageflow.PageFlowException;
import org.apache.beehive.netui.pageflow.Forward;
import org.apache.beehive.netui.pageflow.FlowController;

public abstract class ReturnToException extends PageFlowException
{
    private String _returnToType;

    public ReturnToException( String actionName, Forward fwd, FlowController fc )
    {
        super( actionName, fc );
        _returnToType = fwd.getReturnToTypeAsString();
    }

    public String getReturnToType()
    {
        return _returnToType;
    }

    protected Object[] getMessageArgs()
    {
        return new Object[]{ _returnToType, getActionName(), getFlowControllerURI() };
    }

    protected abstract String[] getMessageParts();

    /**
     * Tell whether the root cause may be session expiration in cases where the requested session ID is different than
     * the actual session ID.  In this case, the answer is true.
     */
    public boolean causeMayBeSessionExpiration()
    {
        return true;
    }
}


text:
<?xml version="1.0" encoding="utf-8"?>
<Deployment xmlns="http://schemas.microsoft.com/windowsphone/2012/deployment" AppPlatformVersion="8.0">
  <DefaultLanguage xmlns="" code="en-US" />
  <Languages xmlns="">
    <Language code="sr" />
    <Language code="nb" />
    <Language code="pl" />
    <Language code="de" />
    <Language code="fr" />
    <Language code="pt" />
    <Language code="es" />
    <Language code="it" />
  </Languages>
  <App xmlns="" ProductID="{0250d539-7c6a-48f2-a443-b73182623572}" Title="TrekMe" RuntimeType="Silverlight" Version="1.4.6.2" Genre="apps.normal" Author="Zlatko Babic" Description="Tracks position when walking, running or driving. Line is drawn on Offline/online maps to show traversed path. Run can be paused. Current speed, average speed, time, calories spent and GPS position are shown." Publisher="TrekMe" PublisherID="{5ffc7c1a-b665-4191-b217-a2be813a39af}">
    <IconPath IsRelative="true" IsResource="false">Assets\running-icon300.png</IconPath>
    <Capabilities>
      <Capability Name="ID_CAP_NETWORKING" />
      <Capability Name="ID_CAP_SENSORS" />
      <Capability Name="ID_CAP_MAP" />
      <Capability Name="ID_CAP_LOCATION" />
    </Capabilities>
    <Tasks>
      <DefaultTask Name="_default" NavigationPage="MainPage.xaml">
        <BackgroundExecution>
          <ExecutionType Name="LocationTracking" />
        </BackgroundExecution>
      </DefaultTask>
    </Tasks>
    <Tokens>
      <PrimaryToken TokenID="TrekMeToken" TaskName="_default">
        <TemplateIconic>
          <SmallImageURI IsRelative="true" IsResource="false">Assets\ApplicationIcon110x110.png</SmallImageURI>
          <Count>0</Count>
          <IconImageURI IsRelative="true" IsResource="false">Assets\ApplicationIcon202x202.png</IconImageURI>
          <Title>TrekMe</Title>
          <Message>
          </Message>
          <BackgroundColor>
          </BackgroundColor>
          <HasLarge>True</HasLarge>
          <LargeContent1>
          </LargeContent1>
          <LargeContent2>
          </LargeContent2>
          <LargeContent3>
          </LargeContent3>
          <DeviceLockImageURI IsRelative="true" IsResource="false">
          </DeviceLockImageURI>
        </TemplateIconic>
      </PrimaryToken>
    </Tokens>
    <Extensions>
      <Extension ExtensionName="LockScreen_Notification_IconCount" ConsumerID="{111DFF24-AA15-4A96-8006-2BFF8122084F}" TaskID="_default" />
      <Extension ExtensionName="LockScreen_Notification_TextField" ConsumerID="{111DFF24-AA15-4A96-8006-2BFF8122084F}" TaskID="_default" />
    </Extensions>
    <ScreenResolutions>
      <ScreenResolution Name="ID_RESOLUTION_WVGA" />
      <ScreenResolution Name="ID_RESOLUTION_WXGA" />
      <ScreenResolution Name="ID_RESOLUTION_HD720P" />
    </ScreenResolutions>
  </App>
</Deployment>


text:
<?php

namespace PommProject\Foundation\Test\Unit;

use PommProject\Foundation\Session\Session;
use PommProject\Foundation\Tester\VanillaSessionAtoum;

class ResultIterator extends VanillaSessionAtoum
{
    protected function initializeSession(Session $session)
    {
    }

    protected function getPikaSql()
    {
        return <<<SQL
select
    p.id,
    p.pika
from
  (values
    (1::int4, 'a'::text),
    (2, 'b'),
    (3, 'c'),
    (4, 'd')
  ) p (id, pika)
SQL;
    }

    protected function getResultResource($sql, array $params = [])
    {
        return $this->buildSession()->getConnection()->sendQueryWithParameters($sql, $params);
    }

    public function testConstructor()
    {
        $iterator = $this->newTestedInstance(
            $this->getResultResource("select true::boolean")
        );

        $this
            ->object($iterator)
            ->isInstanceOf('\PommProject\Foundation\ResultIterator')
            ->isInstanceOf('\Countable')
            ->isInstanceOf('\PommProject\Foundation\ResultIteratorInterface')
            ;
    }

    public function testGet()
    {
        $sql = $this->getPikaSql();
        $iterator = $this->newTestedInstance(
            $this->getResultResource($sql)
        );

        $this
            ->array($iterator->get(0))
            ->isIdenticalTo(['id' => '1', 'pika' => 'a'])
            ->array($iterator->get(2))
            ->isIdenticalTo(['id' => '3', 'pika' => 'c'])
            ->array($iterator->get(1))
            ->isIdenticalTo(['id' => '2', 'pika' => 'b'])
            ->exception(function () use ($iterator) {
                return $iterator->get(5);
            })
            ->isInstanceOf('\OutOfBoundsException')
            ->message->contains('Cannot jump to non existing row')
            ;
    }

    public function testGetOnEmptyResult()
    {
        $iterator = $this->newTestedInstance(
            $this->getResultResource('select true where false')
        );
        $this
            ->integer($iterator->count())
            ->isEqualTo(0)
            ->boolean($iterator->isEmpty())
            ->isTrue()
            ->variable($iterator->current())
            ->isNull()
            ->variable($iterator->isLast())
            ->isNull()
            ->variable($iterator->isFirst())
            ->isNull()
            ;
    }

    public function testHasAndCount()
    {
        $sql = $this->getPikaSql();
        $iterator = $this->newTestedInstance(
            $this->getResultResource($sql)
        );

        $this
            ->integer($iterator->count())
            ->isEqualTo(4)
            ->boolean($iterator->has(1))
            ->isTrue()
            ->boolean($iterator->has(4))
            ->isFalse()
            ;
    }

    public function testIterator()
    {
        $sql = $this->getPikaSql();
        $iterator = $this->newTestedInstance(
            $this->getResultResource($sql)
        );

        foreach ($iterator as $index => $element) {
            if ($index === 0) {
                $this
                    ->boolean($iterator->isFirst())
                    ->isTrue();
            } elseif ($index === $iterator->count() - 1) {
                $this
                    ->boolean($iterator->isLast())
                    ->isTrue();
            } else {
                $this
                    ->boolean($iterator->isFirst())
                    ->isFalse()
                    ->boolean($iterator->isLast())
                    ->isFalse()
                    ;
            }
            $this
                ->string($element['id'])
                ->isEqualTo($index + 1)
                ;
        }
    }

    public function testSlice()
    {
        $sql = $this->getPikaSql();
        $iterator = $this->newTestedInstance(
            $this->getResultResource($sql)
        );

        $this
            ->array($iterator->slice('pika'))
            ->isIdenticalTo(['a', 'b', 'c', 'd'])
            ->array($iterator->slice('id'))
            ->isIdenticalTo(['1', '2', '3', '4'])
            ->exception(function () use ($iterator) {
                return $iterator->slice('no_such_key');
            })
            ->isInstanceOf('\InvalidArgumentException')
            ->message->contains('Could not find field')
            ;
    }

    public function testExtract()
    {
        $iterator = $this->newTestedInstance(
            $this->getResultResource($this->getPikaSql())
        );

        $this
            ->array($iterator->extract())
            ->isIdenticalTo(
                [
                    ['id' => '1', 'pika' => 'a'],
                    ['id' => '2', 'pika' => 'b'],
                    ['id' => '3', 'pika' => 'c'],
                    ['id' => '4', 'pika' => 'd'],
                ]
            );

        $iterator = $this->newTestedInstance(
            $this->getResultResource('select true where false')
        );

        $this
            ->array($iterator->extract())
            ->isEmpty()
            ;
    }

    public function testJsonSerializable()
    {
        $iterator = $this->newTestedInstance(
            $this->getResultResource($this->getPikaSql())
        );

        $json = json_encode($iterator);
        $this
            ->string($json)
            ->isIdenticalTo(
                '[{"id":"1","pika":"a"},{"id":"2","pika":"b"},{"id":"3","pika":"c"},{"id":"4","pika":"d"}]'
            );
    }
}


text:
package org.apache.commons.vfs2.provider.http.test;

import java.io.File;
import java.io.IOException;
import java.util.concurrent.TimeUnit;

import org.apache.commons.vfs2.FileNotFolderException;
import org.apache.commons.vfs2.FileObject;
import org.apache.commons.vfs2.FileSystemException;
import org.apache.commons.vfs2.FileSystemManager;
import org.apache.commons.vfs2.FileSystemOptions;
import org.apache.commons.vfs2.VFS;
import org.apache.commons.vfs2.impl.DefaultFileSystemManager;
import org.apache.commons.vfs2.provider.http.HttpFileProvider;
import org.apache.commons.vfs2.provider.http.HttpFileSystemConfigBuilder;
import org.apache.commons.vfs2.test.AbstractProviderTestConfig;
import org.apache.commons.vfs2.test.ProviderTestSuite;
import org.apache.commons.vfs2.util.FreeSocketPortUtil;
import org.apache.commons.vfs2.util.NHttpFileServer;
import org.junit.Assert;

import junit.framework.Test;

/**
 * Test cases for the HTTP provider.
 *
 */
public class HttpProviderTestCase extends AbstractProviderTestConfig {
    private static NHttpFileServer Server;

    private static int SocketPort;

    private static final String TEST_URI = "test.http.uri";

    /**
     * Use %40 for @ in URLs
     */
    private static String ConnectionUri;

    private static String getSystemTestUriOverride() {
        return System.getProperty(TEST_URI);
    }

    /**
     * Creates and starts an embedded Apache HTTP Server (HttpComponents).
     *
     * @throws Exception
     */
    private static void setUpClass() throws Exception {
        Server = NHttpFileServer.start(SocketPort, new File(getTestDirectory()), 5000);
    }

    /**
     * Creates a new test suite.
     *
     * @return a new test suite.
     * @throws Exception Thrown when the suite cannot be constructed.
     */
    public static Test suite() throws Exception {
        return new ProviderTestSuite(new HttpProviderTestCase()) {
            /**
             * Adds base tests - excludes the nested test cases.
             */
            @Override
            protected void addBaseTests() throws Exception {
                super.addBaseTests();
                addTests(HttpProviderTestCase.class);
            }

            @Override
            protected void setUp() throws Exception {
                if (getSystemTestUriOverride() == null) {
                    setUpClass();
                }
                super.setUp();
            }

            @Override
            protected void tearDown() throws Exception {
                tearDownClass();
                super.tearDown();
            }
        };
    }

    /**
     * Stops the embedded Apache HTTP Server.
     *
     * @throws IOException
     */
    private static void tearDownClass() throws IOException {
        if (Server != null) {
            Server.shutdown(5000, TimeUnit.SECONDS);
        }
    }

    /**
     * Builds a new test case.
     *
     * @throws IOException Thrown if a free local socket port cannot be found.
     */
    public HttpProviderTestCase() throws IOException {
        SocketPort = FreeSocketPortUtil.findFreeLocalPort();
        // Use %40 for @ in a URL
        ConnectionUri = "http://localhost:" + SocketPort;
    }

    private void checkReadTestsFolder(final FileObject file) throws FileSystemException {
        Assert.assertNotNull(file.getChildren());
        Assert.assertTrue(file.getChildren().length > 0);
    }

    /**
     * Returns the base folder for tests.
     */
    @Override
    public FileObject getBaseTestFolder(final FileSystemManager manager) throws Exception {
        String uri = getSystemTestUriOverride();
        if (uri == null) {
            uri = ConnectionUri;
        }
        return manager.resolveFile(uri);
    }

    /**
     * Prepares the file system manager.
     */
    @Override
    public void prepare(final DefaultFileSystemManager manager) throws Exception {
        manager.addProvider("http", new HttpFileProvider());
    }

    private void testResloveFolderSlash(final String uri, final boolean followRedirect) throws FileSystemException {
        VFS.getManager().getFilesCache().close();
        final FileSystemOptions opts = new FileSystemOptions();
        HttpFileSystemConfigBuilder.getInstance().setFollowRedirect(opts, followRedirect);
        try (final FileObject file = VFS.getManager().resolveFile(uri, opts)) {
            checkReadTestsFolder(file);
        } catch (final FileNotFolderException e) {
            // Expected: VFS HTTP does not support listing children yet.
        }
    }

    public void testResloveFolderSlashNoRedirectOff() throws FileSystemException {
        testResloveFolderSlash(ConnectionUri + "/read-tests", false);
    }

    public void testResloveFolderSlashNoRedirectOn() throws FileSystemException {
        testResloveFolderSlash(ConnectionUri + "/read-tests", true);
    }

    public void testResloveFolderSlashYesRedirectOff() throws FileSystemException {
        testResloveFolderSlash(ConnectionUri + "/read-tests/", false);
    }

    public void testResloveFolderSlashYesRedirectOn() throws FileSystemException {
        testResloveFolderSlash(ConnectionUri + "/read-tests/", true);
    }

    // Test no longer passing 2016/04/28
    public void ignoreTestHttp405() throws FileSystemException {
        try (final FileObject fileObject = VFS.getManager()
                .resolveFile("http://www.w3schools.com/webservices/tempconvert.asmx?action=WSDL")) {
            assert fileObject.getContent().getSize() > 0;
            assert !fileObject.getContent().isEmpty();

        }
    }

    /** Ensure VFS-453 options are present. */
    public void testHttpTimeoutConfig() throws FileSystemException {
        final FileSystemOptions opts = new FileSystemOptions();
        final HttpFileSystemConfigBuilder builder = HttpFileSystemConfigBuilder.getInstance();

        // ensure defaults are 0
        assertEquals(0, builder.getConnectionTimeout(opts));
        assertEquals(0, builder.getSoTimeout(opts));
        assertEquals("Jakarta-Commons-VFS", builder.getUserAgent(opts));

        builder.setConnectionTimeout(opts, 60000);
        builder.setSoTimeout(opts, 60000);
        builder.setUserAgent(opts, "foo/bar");

        // ensure changes are visible
        assertEquals(60000, builder.getConnectionTimeout(opts));
        assertEquals(60000, builder.getSoTimeout(opts));
        assertEquals("foo/bar", builder.getUserAgent(opts));

        // TODO: should also check the created HTTPClient
    }
}


text:
// Copyright (c) Mohamed Hassan & Contributors. All rights reserved. See License.md in the project root for license information.

using Microsoft.OData.Edm;

namespace OData2Poco.V4;

//----------------------------------------convertor v4
internal partial class Poco
{
    internal readonly Dictionary<EdmPrimitiveTypeKind, string> ClrDictionary =
        new()
        {
            { EdmPrimitiveTypeKind.Int32, "int" },
            { EdmPrimitiveTypeKind.String, "string" },
            { EdmPrimitiveTypeKind.Binary, "byte[]" },
            { EdmPrimitiveTypeKind.Decimal, "decimal" },
            { EdmPrimitiveTypeKind.Int16, "short" },
            { EdmPrimitiveTypeKind.Single, "float" },
            { EdmPrimitiveTypeKind.Boolean, "bool" },
            { EdmPrimitiveTypeKind.Double, "double" },
            { EdmPrimitiveTypeKind.Guid, "Guid" },
            { EdmPrimitiveTypeKind.Byte, "byte" },
            { EdmPrimitiveTypeKind.Int64, "long" },
            { EdmPrimitiveTypeKind.SByte, "sbyte" },
            { EdmPrimitiveTypeKind.Stream, "Stream" },
            { EdmPrimitiveTypeKind.Geography, "Geography" },
            { EdmPrimitiveTypeKind.GeographyPoint, "GeographyPoint" },
            { EdmPrimitiveTypeKind.GeographyLineString, "GeographyLineString" },
            { EdmPrimitiveTypeKind.GeographyPolygon, "GeographyMultiPolygon" },
            { EdmPrimitiveTypeKind.GeographyCollection, "GeographyCollection" },
            { EdmPrimitiveTypeKind.GeographyMultiPolygon, "GeographyMultiPolygon" },
            { EdmPrimitiveTypeKind.GeographyMultiLineString, "GeographyMultiLineString" },
            { EdmPrimitiveTypeKind.GeographyMultiPoint, "GeographyMultiPoint" },
            { EdmPrimitiveTypeKind.Geometry, "Geometry" },
            { EdmPrimitiveTypeKind.GeometryPoint, "GeometryPoint" },
            { EdmPrimitiveTypeKind.GeometryLineString, "GeometryLineString" },
            { EdmPrimitiveTypeKind.GeometryPolygon, "GeometryPolygon" },
            { EdmPrimitiveTypeKind.GeometryCollection, "GeometryCollection" },
            { EdmPrimitiveTypeKind.GeometryMultiPolygon, "GeometryMultiPolygon" },
            { EdmPrimitiveTypeKind.GeometryMultiLineString, "GeometryMultiLineString" },
            { EdmPrimitiveTypeKind.GeometryMultiPoint, "GeometryMultiPoint" },
            { EdmPrimitiveTypeKind.DateTimeOffset, "DateTimeOffset" },
            { EdmPrimitiveTypeKind.Duration, "TimeSpan" },
            { EdmPrimitiveTypeKind.Date, "Microsoft.OData.Edm.Date" }, //DateTime not supported
            { EdmPrimitiveTypeKind.TimeOfDay, "Microsoft.OData.Edm.TimeOfDay" }
        };
}


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

<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>JMessage PC SDK: 类成员</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>

<link href="navtree.css" rel="stylesheet" type="text/css"/>

<link href="search/search.css" rel="stylesheet" type="text/css"/>

<link href="doxygen.css" rel="stylesheet" type="text/css" />

JMessage PC SDK
    1.2.3

JMessage PC SDK

这里列出了所有类成员,并附带类的详细说明:

- m -

maxMemberCount
: Jmcpp::GroupInfo
, Jmcpp::RoomInfo

mediaId
: Jmcpp::AddedToGroupEvent
, Jmcpp::FileContent
, Jmcpp::GroupCreatedEvent
, Jmcpp::ImageContent
, Jmcpp::LeavedGroupEvent
, Jmcpp::MultiFriendAddedEvent
, Jmcpp::MultiFriendRemarkUpdatedEvent
, Jmcpp::MultiFriendRemovedEvent
, Jmcpp::RemovedFromGroupEvent
, Jmcpp::VoiceContent

Message()
: Jmcpp::Message

message
: Jmcpp::RequestAddFriendEvent

msgId
: Jmcpp::Message

msgIds
: Jmcpp::MessageRetractedEvent
, Jmcpp::MultiReceiptChangedEvent

mtime
: Jmcpp::GroupInfo
, Jmcpp::ReceiptsUpdatedEvent::MessageReceiptInfo
, Jmcpp::UserInfo

制作者

     1.8.13


text:
package com.fasterxml.jackson.databind.deser;

import java.util.*;

import com.fasterxml.jackson.annotation.*;

import com.fasterxml.jackson.databind.*;
import com.fasterxml.jackson.databind.exc.MismatchedInputException;

/**
 * Unit tests for verifying that feature requested
 * via [JACKSON-88] ("setterless collections") work as
 * expected, similar to how Collections and Maps work
 * with JAXB.
 */
public class TestSetterlessProperties
    extends BaseMapTest
{
    static class CollectionBean
    {
        List<String> _values = new ArrayList<String>();

        public List<String> getValues() { return _values; }
    }

    static class MapBean
    {
        Map<String,Integer> _values = new HashMap<String,Integer>();

        public Map<String,Integer> getValues() { return _values; }
    }

    // testing to verify that field has precedence over getter, for lists
    static class Dual
    {
        @JsonProperty("list") protected List<Integer> values = new ArrayList<Integer>();

        public Dual() { }

        public List<Integer> getList() {
            throw new IllegalStateException("Should not get called");
        }
    }

    /*
    /**********************************************************
    /* Unit tests
    /**********************************************************
     */

    public void testSimpleSetterlessCollectionOk()
        throws Exception
    {
        CollectionBean result = new ObjectMapper().readValue
            ("{\"values\":[ \"abc\", \"def\" ]}", CollectionBean.class);
        List<String> l = result._values;
        assertEquals(2, l.size());
        assertEquals("abc", l.get(0));
        assertEquals("def", l.get(1));
    }

    /**
     * Let's also verify that disabling the feature makes
     * deserialization fail for setterless bean
     */
    public void testSimpleSetterlessCollectionFailure()
        throws Exception
    {
        ObjectMapper m = new ObjectMapper();
        // by default, it should be enabled
        assertTrue(m.isEnabled(MapperFeature.USE_GETTERS_AS_SETTERS));
        m = jsonMapperBuilder()
                .configure(MapperFeature.USE_GETTERS_AS_SETTERS, false)
                .build();
        assertFalse(m.isEnabled(MapperFeature.USE_GETTERS_AS_SETTERS));

        // and now this should fail
        try {
            m.readValue
                ("{\"values\":[ \"abc\", \"def\" ]}", CollectionBean.class);
            fail("Expected an exception");
        } catch (MismatchedInputException e) {
            // Not a good exception, ideally could suggest a need for
            // a setter...?
            verifyException(e, "Unrecognized field");
        }
    }

    public void testSimpleSetterlessMapOk()
        throws Exception
    {
        MapBean result = new ObjectMapper().readValue
            ("{\"values\":{ \"a\": 15, \"b\" : -3 }}", MapBean.class);
        Map<String,Integer> m = result._values;
        assertEquals(2, m.size());
        assertEquals(Integer.valueOf(15), m.get("a"));
        assertEquals(Integer.valueOf(-3), m.get("b"));
    }

    public void testSimpleSetterlessMapFailure()
        throws Exception
    {
        ObjectMapper m = jsonMapperBuilder()
                .configure(MapperFeature.USE_GETTERS_AS_SETTERS, false)
                .build();
        // so this should fail now without a setter
        try {
            m.readValue
                ("{\"values\":{ \"a\":3 }}", MapBean.class);
            fail("Expected an exception");
        } catch (MismatchedInputException e) {
            verifyException(e, "Unrecognized field");
        }
    }

    /* Test precedence of "getter-as-setter" (for Lists) versus
     * field for same property.
     */
    public void testSetterlessPrecedence() throws Exception
    {
        ObjectMapper m = jsonMapperBuilder()
                .configure(MapperFeature.USE_GETTERS_AS_SETTERS, true)
                .build();
        Dual value = m.readValue("{\"list\":[1,2,3]}, valueType)", Dual.class);
        assertNotNull(value);
        assertEquals(3, value.values.size());
    }
}


text:
Simple (inefficient) bignum implementation in C.

## Why?

To better understand how arbitrary precision maths works on
computers, in a way which is free from special tricks and
optimisations which reduce readability.

The algorithms used for the various operators here are
extremely inefficient purposely. This is not meant to be
used for any serious purpose.

## Available Functionality

Most numeric operations require a result to be specified.
This result must not be the same as the other operands.

Construction/Destruction:
* New bignum via `BN_new`
* New bignum from hexadecimal string via `BN_new_from_hex`
* Free bignum via `BN_free`

Integer operations:
* Addition via `BN_add`
* Subtraction via `BN_sub`
* Multiplication via `BN_mul`
* Division with remainder via `BN_div`
* Increment by one via `BN_inc`
* Decrement by one via `BN_dec`
* Bitwise left shift via `BN_shl`
* Bitwise right shift via `BN_shr`

Conversion functions:
* From hexadecimal via `BN_from_hex`
* To string via `BN_to_string`

Other functionality:
* Comparison via `BN_cmp`
* Maximum via `BN_max`
* Minimum via `BN_min`

## Building

```
make
```

## Testing

```
# run simple C test
./test

# run randomized Ruby test
cd ruby
bundle install
bundle exec rake spec
```


text:
import argparse
import json
import os
import random
import scipy.io
import codecs
import numpy as np
import cPickle as pickle
from collections import defaultdict
from nltk.tokenize import word_tokenize
import re

def gatherCandidates(params,nSamples=-1,skipSet = set()):
  eval_names = {}
  n_evals = params['n_evals']
  eval_idx = 0
  getSents = lambda x:re.split('\(|\)',x)[0]
  getProb = lambda x:float(re.split('\(|\)',x)[1])
  featMatrixGlobal = np.empty((n_evals,0))
  imgBlobs = []
  rootdir = params['resdir']
  icnt = 0
  lS = len(skipSet)
  for r in os.walk(rootdir):
      if len(r[1]) == 0:
          fcnt = 0
          if lS:
            iid = int(r[0].rsplit('/')[-1].split('.')[0])
            if iid in skipSet:
                continue
          for fl in r[2]:
              if 'eval' in fl:
                 fparts = fl.split('-')
                 mod_name = fparts[-1].split('.')[0]
                 if mod_name not in eval_names.keys():
                     eval_names[mod_name] = eval_idx
                     eval_idx += 1

                 mod_idx = eval_names[mod_name]
                 cands = open(os.path.join(r[0],fl),'r').read().split('#')

                 if fcnt == 0:
                    imgid = fparts[0]
                    nLclCands = len(cands)
                    candSentsLcl = map(getSents,cands)
                    featMatrixLcl = np.empty((n_evals,nLclCands))
                 fcnt += 1
                 featMatrixLcl[mod_idx,:] = map(getProb,cands)
          imgBlobs.append({'imgid':imgid,'cands':candSentsLcl})
          featMatrixGlobal = np.concatenate([featMatrixGlobal,featMatrixLcl],axis=1)
          if (icnt % 1000 == 1):
            print('%d'%icnt)
          icnt += 1
          if nSamples !=-1 and icnt >= nSamples:
            break

  finalDataset = {}
  finalDataset['imgblobs'] = imgBlobs
  finalDataset['feats'] = featMatrixGlobal
  finalDataset['evaluaters'] = eval_names

  params['cand_dB'] = 'allCands_dB_%s.p' % (params['fappend'])
  pickle.dump(finalDataset,open(params['cand_dB'],'w'))
  return finalDataset

def gatherCandSrc(params,nSamples=-1,skipSet = set()):
  src_mod_names = {}
  n_evals = params['n_evals']
  finalDataset = pickle.load(open(params['cand_dB'],'r'))
  eval_idx = 0
  getSents = lambda x:re.split('\(|\)',x)[0]
  getProb = lambda x:float(re.split('\(|\)',x)[1])
  featIdx = 0

  imgBlobs = finalDataset['imgblobs']

  rootdir = params['resdir']
  icnt = 0
  lS = len(skipSet)
  for r in os.walk(rootdir):
      if len(r[1]) == 0:
          if lS:
            iid = int(r[0].rsplit('/')[-1].split('.')[0])
            if iid in skipSet:
                continue
          imgBlobs[featIdx]['src_mods'] = defaultdict(list)
          imgBlobs[featIdx]['beam_sz'] = defaultdict(list)
          currBlobDict = {}
          for i,s in enumerate(imgBlobs[featIdx]['cands']):
            currBlobDict[s.lstrip(' ').rstrip(' ')] = i

          for fl in r[2]:
              if 'gene' in fl:
                 fparts = fl.split('-')
                 mod_name = fparts[-1].split('+')[0]
                 beam_size = fparts[-1].split('+')[1].split('.')[0]
                 if mod_name not in src_mod_names:
                     src_mod_names[mod_name] = eval_idx
                     eval_idx += 1

                 mod_idx = src_mod_names[mod_name]
                 cands = open(os.path.join(r[0],fl),'r').read().split('#')

                 imgid = int(fparts[0])
                 if imgid != int(imgBlobs[featIdx]['imgid']):
                    print 'ERROR ids dont match!!'
                    break
                #    return imgBlobs
                 nLclCands = len(cands)
                 candSentsLcl = map(getSents,cands)

                 for s in candSentsLcl:
                    sm = s.lstrip(' ').rstrip(' ')
                    if sm in currBlobDict:
                        matchIdx = currBlobDict[sm]
                        imgBlobs[featIdx]['src_mods'][matchIdx].append(mod_idx)
                        imgBlobs[featIdx]['beam_sz'][matchIdx].append(beam_size)

          featIdx += 1
          if (icnt % 1000 == 1):
            print('%d'%icnt)
          icnt += 1
          if nSamples !=-1 and icnt >= nSamples:
            break

  finalDataset['imgblobs'] = imgBlobs
  finalDataset['src_mod_names'] = src_mod_names

  pickle.dump(finalDataset,open(params['cand_dB'],'w'))
  #return finalDataset

if __name__ == "__main__":

  parser = argparse.ArgumentParser()
  parser.add_argument('--resdir', type=str,  default='', help='The root directory from which to gather candidate captions from')
  parser.add_argument('--fappend', type=str, default='', help='str to append to routput files')
  parser.add_argument('--cand_dB', type=str, default='', help='filename of the result struct to save')
  parser.add_argument('--mertDir', type=str, default='./nlpUtils/zmert_v1.50/zmert_ex_coco/', help='filename of the result struct to save')

  args = parser.parse_args()
  params = vars(args) # convert to ordinary dict

  print 'parsed parameters:'
  print json.dumps(params, indent = 2)
  if params['cand_dB'] == '':
    finalDataset =  gatherCandidates(params)

  feats = finalDataset['feats']
  zrs = np.zeros((1,feats.shape[1]))
  feats = np.concatenate([zrs, feats])

  fcnt  = 0
  for img in finalDataset['imgblobs']:
    for c in img['cands']:
       feats[0,fcnt] = len(word_tokenize(c))
       fcnt += 1

  finalDataset['feats'] = feats
  pickle.dump(finalDataset,open(params['cand_dB'],'w'))

  #evaluate_decision(params, com_dataset, eval_array)
  n_ref_objects = []
  for img in finalDataset['imgblob']:
    for c in img['cands']:
       obj_list = set()
       for w in word_tokenize(c):
         if w in visWordsDict:
            obj_list |= visWordsDict[w]
       n_ref_objects.append(len(obj_list))

  iblob =  finalDataset['imgblob']
  fcnt = 0
  for i,img in enumerate(iblob):
    nC = iblob[i]['feats'].shape[1]
    n_ref_objects_bmp = np.zeros((8,nC))
    n_ref_objects_bmp[n_ref_objects[fcnt:fcnt+nC],np.arange(nC)] = 1
    iblob[i]['feats'] = np.concatenate([iblob[i]['feats'],n_ref_objects_bmp],axis=0)
    fcnt += nC

  finalDataset['imgblob'] = iblob


text:
import { ContractMeta } from '../version-resolver';

import v0_8_7 from './v0.8.7';
import v0_9_0 from './v0.9.0';

// add more versions as we go, but also please do drop version that we don't
// want to maintain simultaneously
export type LayerTwoOracle = v0_9_0;

export const layerTwoOracleMeta = {
  apiVersions: { v0_8_7, v0_9_0 },
  contractName: 'revenuePool',
} as ContractMeta;


text:
package org.apache.flink.runtime.dispatcher;

import org.apache.flink.configuration.Configuration;
import org.apache.flink.configuration.JobManagerOptions;
import org.apache.flink.runtime.scheduler.DefaultSchedulerFactory;
import org.apache.flink.runtime.scheduler.SchedulerNGFactory;
import org.apache.flink.util.TestLogger;

import org.junit.Test;

import static org.hamcrest.Matchers.containsString;
import static org.hamcrest.Matchers.instanceOf;
import static org.hamcrest.Matchers.is;
import static org.junit.Assert.assertThat;

/** Tests for {@link SchedulerNGFactory}. */
public class SchedulerNGFactoryFactoryTest extends TestLogger {

    @Test
    public void createDefaultSchedulerFactoryByDefault() {
        final SchedulerNGFactory schedulerNGFactory = createSchedulerNGFactory(new Configuration());
        assertThat(schedulerNGFactory, is(instanceOf(DefaultSchedulerFactory.class)));
    }

    @Test
    public void createSchedulerNGFactoryIfConfigured() {
        final Configuration configuration = new Configuration();
        configuration.setString(JobManagerOptions.SCHEDULER, "ng");

        final SchedulerNGFactory schedulerNGFactory = createSchedulerNGFactory(configuration);

        assertThat(schedulerNGFactory, is(instanceOf(DefaultSchedulerFactory.class)));
    }

    @Test
    public void throwsExceptionIfSchedulerNameIsInvalid() {
        final Configuration configuration = new Configuration();
        configuration.setString(JobManagerOptions.SCHEDULER, "invalid-scheduler-name");

        try {
            createSchedulerNGFactory(configuration);
        } catch (IllegalArgumentException e) {
            assertThat(e.getMessage(), containsString("Illegal value [invalid-scheduler-name]"));
        }
    }

    private static SchedulerNGFactory createSchedulerNGFactory(final Configuration configuration) {
        return SchedulerNGFactoryFactory.createSchedulerNGFactory(configuration);
    }
}


text:
<?php

// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );

$script = '';
$document =& JFactory::getDocument();
$document->addScriptDeclaration($script);

?>

<?php if(isset($this->error)) : ?>
	<?php echo $this->error; ?>
<?php endif; ?>

<form action="<?php echo JRoute::_( 'index.php' );?>" method="post" name="emailForm" id="emailForm">
<fieldset>
		<legend><?php echo JText::_('E-Mail'); ?></legend>

				 <?php echo JText::_( 'Enter your name' );?>:

			<input type="text" name="name" id="contact_name" size="30" class="inputbox" value="" />

				 <?php echo JText::_( 'Email address' );?>:

			<input type="text" id="contact_email" name="email" size="30" value="" class="inputbox required validate-email" maxlength="100" />

				 <?php echo JText::_( 'Message subject' );?>:

			<input type="text" name="subject" id="contact_subject" size="30" class="inputbox" value="" />

				 <?php echo JText::_( 'Enter your message' );?>:

			<textarea cols="50" rows="10" name="text" id="contact_text" class="inputbox required"></textarea>

		<?php if ($this->contact->params->get( 'show_email_copy' )) : ?>

			<input type="checkbox" name="email_copy" id="contact_email_copy" value="1"  />

				<?php echo JText::_( 'EMAIL_A_COPY' ); ?>

		<?php endif; ?>

			<button class="button validate" type="submit"><?php echo JText::_('Send'); ?></button>

</fieldset>

<input type="hidden" name="option" value="com_contact" />
<input type="hidden" name="view" value="contact" />
<input type="hidden" name="id" value="<?php echo $this->contact->id; ?>" />
<input type="hidden" name="task" value="submit" />
<?php echo JHTML::_( 'form.token' ); ?>
</form>


text:
"""Add reference_url column

Revision ID: 37c5ca51ad36
Revises: 5c38e7a65cc
Create Date: 2013-11-13 04:52:11.031221

"""

# revision identifiers, used by Alembic.
revision = '37c5ca51ad36'
down_revision = '5c38e7a65cc'

from alembic import op
import sqlalchemy as sa

tables_with_reference_url_column = [
    'audits',
    'controls',
    'data_assets',
    'directives',
    'facilities',
    'markets',
    'objectives',
    'org_groups',
    'products',
    'programs',
    'projects',
    'responses',
    'risks',
    'risky_attributes',
    'sections',
    'systems',
    ]

def upgrade():
    for table_name in tables_with_reference_url_column:
      op.add_column(
          table_name,
          sa.Column('reference_url', sa.String(length=250), nullable=True))

def downgrade():
    for table_name in tables_with_reference_url_column:
      op.drop_column(table_name, 'reference_url')


text:
Take what you need!

### This repository has some Sass-Mixins for you:

* [animation](partials/_animation.scss)
* [appearance](partials/_appearance.scss)
* [background-size](partials/_background-size.scss)
* [border-radius](partials/_border-radius.scss)
* [box-shadow](partials/_box-shadow.scss)
* [box-sizing](partials/_box-sizing.scss)
* [calc](partials/_calc.scss)
* [flexbox](partials/_flexbox.scss)
* [linear-gradient](partials/_linear-gradient.scss)
* [multiple-backgrounds](partials/_multiple-backgrounds.scss)
* [multiple-colored-gradient](partials/_multiple-colored-gradient.scss)
* [opacity](partials/_opacity.scss)
* [placeholder](partials/_placeholder.scss)
* [rem](partials/_rem.scss)
* [transform](partials/_transform.scss)
* [transition](partials/_transition.scss)
* [tab-size](partials/_tab-size.scss)
* [user-select](partials/_user-select.scss)

Documentation on how to use each of these can be found in the partials.

### General Usage

In general you should include the file `mixins.scss` in `build` into your
project and use the mixins as suggested in the docs for each mixin.

#### Install with Bower

You can install the package using [Bower](http://bower.io/). Please run

	$ bower install --save-dev sass-mixins

in your project's root directory to install the mixins repository. After that
you can require the mixins file within your project.

## Contribute

Please [file an issue](https://github.com/drublic/Sass-Mixins/issues) if you
think something could be improved. Please submit Pull Requests when ever
possible.

## Up the road

* radial-gradient
* Mixin that generates grids

## Thanks

Thanks to @Schepp for starting [a similar repo](https://github.com/Schepp/SASS-Mixins).

## License

[The MIT License](LICENSE.md)


text:
//
//  MDViewController.m
//  SearchBox
//
//  Created by Inozemtsev Vladimir on 24/06/14.
//  Copyright (c) 2014 Inozemtsev Vladimir. All rights reserved.
//

#import "MDViewController.h"

@interface MDViewController ()

@end

@implementation MDViewController

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

-(void)changeSizeFromDouble
{
    NSLog(@"sadasd");
}

-(IBAction)sliderValueChanged:(id)sender

{
    UISlider *slider=sender;
    self.SearchBox.progress=slider.value;
    self.CustomView.placeholderText=[NSString stringWithFormat:@"%f", slider.value];
     self.CustomView.progress= slider.value;
}
-(id)initWithCoder:(NSCoder *)aDecoder
{
    self=[super initWithCoder:aDecoder];
    return  self;
}

-(IBAction)tap:(id)sender
{
    self.CustomView.isHTTPS=true;
}
-(IBAction)setSearchMode:(id)sender
{
    self.CustomView.mode=MDSearchBoxViewSearchMode;
}

-(IBAction)setBrowserState:(id)sender
{
    if (self.CustomView.mode==MDSearchBoxViewBrowserIdleMode||self.CustomView.mode==MDSearchBoxViewBrowserLoadingMode) {
        self.CustomView.mode=MDSearchBoxViewSearchMode;
    }
    else self.CustomView.mode=MDSearchBoxViewBrowserIdleMode;
}
-(IBAction)setIdleBrowserMode:(id)sender
{
    self.CustomView.mode=MDSearchBoxViewBrowserIdleMode;
}

-(IBAction)setLoadingBrowserMode:(id)sender
{
    self.CustomView.mode=MDSearchBoxViewBrowserLoadingMode;
}
- (void)viewDidLoad
{
    [super viewDidLoad];
 //Do any additional setup after loading the view.

    self.CustomView.delegate=self;
    self.SearchBox.progress=1.0f;
    self.CustomView.progress= 1.0f;
    self.view.backgroundColor=[UIColor redColor];
}

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

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
{
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end


text:
<?php

namespace Sonata\BlockBundle\Profiler\DataCollector;

use Sonata\BlockBundle\Templating\Helper\BlockHelper;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpKernel\DataCollector\DataCollectorInterface;

/**
 * Block data collector for the symfony web profiling.
 *
 * @author Olivier Paradis <paradis.olivier@gmail.com>
 */
class BlockDataCollector implements DataCollectorInterface, \Serializable
{
    /**
     * @var BlockHelper
     */
    protected $blocksHelper;

    /**
     * @var array
     */
    protected $blocks = array();

    /**
     * @var array
     */
    protected $containers = array();

    /**
     * @var array
     */
    protected $realBlocks = array();

    /**
     * @var array
     */
    protected $containerTypes = array();

    /**
     * @var array
     */
    protected $events = array();

    /**
     * Constructor.
     *
     * @param BlockHelper $blockHelper    Block renderer
     * @param array       $containerTypes array of container types
     */
    public function __construct(BlockHelper $blockHelper, array $containerTypes)
    {
        $this->blocksHelper = $blockHelper;
        $this->containerTypes = $containerTypes;
    }

    /**
     * {@inheritdoc}
     */
    public function collect(Request $request, Response $response, \Exception $exception = null)
    {
        $this->blocks = $this->blocksHelper->getTraces();

        // split into containers & real blocks
        foreach ($this->blocks as $id => $block) {
            if (!is_array($block)) {
                return; // something went wrong while collecting information
            }

            if ($id == '_events') {
                foreach ($block as $uniqid => $event) {
                    $this->events[$uniqid] = $event;
                }

                continue;
            }

            if (in_array($block['type'], $this->containerTypes)) {
                $this->containers[$id] = $block;
            } else {
                $this->realBlocks[$id] = $block;
            }
        }
    }

    /**
     * Returns the number of block used.
     *
     * @return int
     */
    public function getTotalBlock()
    {
        return count($this->realBlocks) + count($this->containers);
    }

    /**
     * Return the events used on the current page.
     *
     * @return array
     */
    public function getEvents()
    {
        return $this->events;
    }

    /**
     * Returns the block rendering history.
     *
     * @return array
     */
    public function getBlocks()
    {
        return $this->blocks;
    }

    /**
     * Returns the container blocks.
     *
     * @return array
     */
    public function getContainers()
    {
        return $this->containers;
    }

    /**
     * Returns the real blocks (non-container).
     *
     * @return array
     */
    public function getRealBlocks()
    {
        return $this->realBlocks;
    }

    /**
     * {@inheritdoc}
     */
    public function serialize()
    {
        $data = array(
            'blocks'     => $this->blocks,
            'containers' => $this->containers,
            'realBlocks' => $this->realBlocks,
            'events'     => $this->events,
        );

        return serialize($data);
    }

    /**
     * {@inheritdoc}
     */
    public function unserialize($data)
    {
        $merged = unserialize($data);

        $this->blocks     = $merged['blocks'];
        $this->containers = $merged['containers'];
        $this->realBlocks = $merged['realBlocks'];
        $this->events     = $merged['events'];
    }

    /**
     * {@inheritdoc}
     */
    public function getName()
    {
        return 'block';
    }
}


text:
namespace cn.bmob.io
{
    internal class RemoveRelation<T> : Operate where T : BmobTable
    {
        public BmobRelation<T> objects { get; set; }

        public override void write(BmobOutput output, bool all)
        {
            base.write(output, all);

            output.Put(OP_NAME, "RemoveRelation");
            output.Put("objects", this.objects);
        }
    }
}


text:
package ezvcard.property;

/**
 * Represents a property whose value is a list of textual values.
 * @author Michael Angstadt
 */
public class TextListProperty extends ListProperty<String> {
	//empty
}


text:
package Lev12;
/*
Создаем человека
Есть public интерфейсы Fly(летать), Run(бежать/ездить), Swim(плавать).
Добавь эти интерфейсы классам Human(человек), Duck(утка), Penguin(пингвин), Airplane(самолет).

Требования:
1. Класс Solution должен содержать интерфейс Fly с одним методом fly().
2. Класс Solution должен содержать интерфейс Run с одним методом run().
3. Класс Solution должен содержать интерфейс Swim с одним методом swim().
4. Человек должен уметь бегать и плавать.
5. Утка должна уметь летать, плавать и бегать.
6. Пингвин должен уметь плавать и бегать.
7. Самолет должен уметь летать и ездить.
 */
public class Task1219done {
  public static void main(String[] args) {

  }

  public interface Fly {
    public void fly();
  }

  public interface Run {
    public void run();
  }

  public interface Swim {
    public void swim();
  }

  public class Human implements Run, Swim {

    public void run() {

    }

    public void swim() {

    }
  }

  public class Duck implements Fly, Run, Swim {

    public void fly() {

    }

    public void run() {

    }

    public void swim() {

    }
  }

  public class Penguin implements Swim, Run {

    public void run() {

    }

    public void swim() {

    }
  }

  public class Airplane implements Fly, Run {

    public void fly() {

    }

    public void run() {

    }
  }
}


text:
\footnotesize
~\\
\textbf{\laType\ \laAssignment: \laTitle \tab }
Homework projects should be worked on by each individual student.
Brainstorming and sketching out problems on paper or on a whiteboard
together are permitted, but \underline{do not} copy code from someone else
or allow your code to be copied. Students who commit or aid in plagiarism will
receive a 0\% on the assignment and be reported.

\hrulefill
\normalsize

    \subsection*{Information}

        \paragraph{Topics:} \laTopics

        \paragraph{Turn in:}
            Turn in all source files - .cpp, .hpp, and/or .h files.
            \textbf{Do not turn in Visual Studio files}.

        \paragraph{Starter files:} \laStarterFiles

        \paragraph{Building and running:} If you are using Visual Studio,
            make sure to run \underline{with} debugging. (Don't run without debugging!)
            Using the debugger will help you find errors. \\
            To prevent a program exit, use this before \texttt{return 0;}
\begin{verbatim}
cin.ignore();
cin.get();
\end{verbatim}

        \paragraph{Tips:}
            \begin{itemize}
                \item   \underline{Always make sure it builds.}
                        Only add a few lines of code at a time and build
                        after each small change to ensure your program still builds.

                \item   \underline{One feature at a time.}
                        Only implement one feature (or one function) at a time.
                        Make sure it builds, runs, and works as intended before
                        moving on to the next feature.

                \item   \underline{Search for build errors.}
                        Chances are someone else has had the same build error before.
                        Copy the message into a search engine and look for information
                        on \textit{why} it occurs, and \textit{how} to resolve it.

                \item   \underline{Use debug tools,} such as breakpoints,
                        stack trace, and variable watch.

                \item   \underline{Don't implement everything in one go.}
                        Don't just try typing out all the code in one go
                        without building, running, and testing. It will be
                        much harder to debug if you've tried to program everything all at once.
            \end{itemize}

        \tableofcontents

    \newpage


text:
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.

using System;
using System.Collections.Generic;
using System.IO;
using Microsoft.AspNetCore.Html;

namespace Microsoft.AspNetCore.Razor.TagHelpers.Testing;

internal sealed class CaseSensitiveTagHelperAttributeComparer : IEqualityComparer<TagHelperAttribute>
{
    public static readonly CaseSensitiveTagHelperAttributeComparer Default =
        new CaseSensitiveTagHelperAttributeComparer();

    private CaseSensitiveTagHelperAttributeComparer()
    {
    }

    public bool Equals(TagHelperAttribute attributeX, TagHelperAttribute attributeY)
    {
        if (attributeX == attributeY)
        {
            return true;
        }

        // Normal comparer (TagHelperAttribute.Equals()) doesn't care about the Name case, in tests we do.
        return attributeX != null &&
            string.Equals(attributeX.Name, attributeY.Name, StringComparison.Ordinal) &&
            attributeX.ValueStyle == attributeY.ValueStyle &&
            (attributeX.ValueStyle == HtmlAttributeValueStyle.Minimized ||
             string.Equals(GetString(attributeX.Value), GetString(attributeY.Value)));
    }

    public int GetHashCode(TagHelperAttribute attribute)
    {
        return attribute.GetHashCode();
    }

    private static string GetString(object value)
    {
        var htmlContent = value as IHtmlContent;
        if (htmlContent != null)
        {
            using (var writer = new StringWriter())
            {
                htmlContent.WriteTo(writer, NullHtmlEncoder.Default);
                return writer.ToString();
            }
        }

        return value?.ToString() ?? string.Empty;
    }
}


text:
enum class ParamCheck : int {
    not_defined,
    not_used,
    OK,
};

template <class Tpsys, class Ttree>
void checkIntraForceParam(const Tpsys &test_atom, Ttree &tree){
    std::unordered_map<MODEL::KeyBond,    ParamCheck, hash_tuple::hash_func<MODEL::KeyBond>>    bond_param_check;
    std::unordered_map<MODEL::KeyAngle,   ParamCheck, hash_tuple::hash_func<MODEL::KeyAngle>>   angle_param_check;
    std::unordered_map<MODEL::KeyTorsion, ParamCheck, hash_tuple::hash_func<MODEL::KeyTorsion>> torsion_param_check;

    //--- initialize check flag
    for(auto &bond_param : MODEL::coef_table.bond){
        MODEL::KeyBond key_bond = bond_param.first;
        bond_param_check[key_bond] = ParamCheck::not_used;
    }
    for(auto &angle_param : MODEL::coef_table.angle){
        MODEL::KeyAngle key_angle = angle_param.first;
        angle_param_check[key_angle] = ParamCheck::not_used;
    }
    for(auto &torsion_param : MODEL::coef_table.torsion){
        MODEL::KeyTorsion key_torsion = torsion_param.first;
        torsion_param_check[key_torsion] = ParamCheck::not_used;
    }

    //--- check existance of parameters.
    for(PS::S32 i=0; i<test_atom.getNumberOfParticleLocal(); ++i){
        const auto  ep_i          = test_atom[i];
        const auto& bond_list     = ep_i.bond;
        const auto& angle_list    = ep_i.angle_list();
        const auto& dihedral_list = ep_i.dihedral_list();
        const auto& improper_list = ep_i.improper_list();

        //--- check bond parameters
        for(size_t i=0; i<bond_list.size(); ++i){
            MD_DEFS::ID_type id_j  = bond_list.at(i);
            EP_intra*        ptr_j = tree.getEpjFromId(id_j);
            if(ptr_j == nullptr) throw std::invalid_argument("EPJ is not found.");
            const auto       ep_j = *ptr_j;

            MODEL::KeyBond  key_bond = std::make_tuple(ep_i.getMolType(),
                                                       ep_i.getAtomType(),
                                                       ep_j.getAtomType());

            if(MODEL::coef_table.bond.count(key_bond) == 0){
                //--- param was not found
                bond_param_check[key_bond] = ParamCheck::not_defined;
            } else {
                //--- param was found
                bond_param_check[key_bond] = ParamCheck::OK;
            }
        }

        //--- check angle parameters
        for(size_t i=0; i<angle_list.size(); ++i){
            MD_DEFS::ID_type id_i = std::get<0>( angle_list.at(i) );
            MD_DEFS::ID_type id_j = std::get<1>( angle_list.at(i) );
            MD_DEFS::ID_type id_k = std::get<2>( angle_list.at(i) );

            EP_intra* ptr_i = tree.getEpjFromId(id_i);
            EP_intra* ptr_j = tree.getEpjFromId(id_j);
            EP_intra* ptr_k = tree.getEpjFromId(id_k);

            if(ptr_i == nullptr) throw std::invalid_argument("EPI is not found.");
            if(ptr_j == nullptr) throw std::invalid_argument("EPJ is not found.");
            if(ptr_k == nullptr) throw std::invalid_argument("EPK is not found.");

            const auto ep_i = *ptr_i;
            const auto ep_j = *ptr_j;
            const auto ep_k = *ptr_k;

            MODEL::KeyAngle  key_angle = std::make_tuple(ep_i.getMolType(),
                                                         ep_i.getAtomType(),
                                                         ep_j.getAtomType(),
                                                         ep_k.getAtomType() );

            if(MODEL::coef_table.angle.count(key_angle) == 0){
                //--- param was not found
                angle_param_check[key_angle] = ParamCheck::not_defined;
            } else {
                //--- param was found
                angle_param_check[key_angle] = ParamCheck::OK;
            }
        }

        //--- check torsion parameters
        //------ dihedral torsion potential
        for(size_t i=0; i<dihedral_list.size(); ++i){
            MD_DEFS::ID_type id_i = std::get<0>( dihedral_list.at(i) );
            MD_DEFS::ID_type id_j = std::get<1>( dihedral_list.at(i) );
            MD_DEFS::ID_type id_k = std::get<2>( dihedral_list.at(i) );
            MD_DEFS::ID_type id_l = std::get<3>( dihedral_list.at(i) );

            EP_intra* ptr_i = tree.getEpjFromId(id_i);
            EP_intra* ptr_j = tree.getEpjFromId(id_j);
            EP_intra* ptr_k = tree.getEpjFromId(id_k);
            EP_intra* ptr_l = tree.getEpjFromId(id_l);

            if(ptr_i == nullptr) throw std::invalid_argument("EPI is not found.");
            if(ptr_j == nullptr) throw std::invalid_argument("EPJ is not found.");
            if(ptr_k == nullptr) throw std::invalid_argument("EPK is not found.");
            if(ptr_l == nullptr) throw std::invalid_argument("EPL is not found.");

            const auto ep_i = *ptr_i;
            const auto ep_j = *ptr_j;
            const auto ep_K = *ptr_k;
            const auto ep_l = *ptr_l;

            MODEL::KeyTorsion  key_torsion = std::make_tuple(ep_i.getMolType(),
                                                             TorsionShape::dihedral,
                                                             ep_i.getAtomType(),
                                                             ep_j.getAtomType(),
                                                             ep_K.getAtomType(),
                                                             ep_l.getAtomType() );

            if(MODEL::coef_table.torsion.count(key_torsion) == 0){
                //--- param was not found
                torsion_param_check[key_torsion] = ParamCheck::not_defined;
            } else {
                //--- param was found
                torsion_param_check[key_torsion] = ParamCheck::OK;
            }
        }
        //------ improper torsion potential
        for(size_t i=0; i<improper_list.size(); ++i){
            MD_DEFS::ID_type id_i = std::get<0>( improper_list.at(i) );
            MD_DEFS::ID_type id_j = std::get<1>( improper_list.at(i) );
            MD_DEFS::ID_type id_k = std::get<2>( improper_list.at(i) );
            MD_DEFS::ID_type id_l = std::get<3>( improper_list.at(i) );

            EP_intra* ptr_i = tree.getEpjFromId(id_i);
            EP_intra* ptr_j = tree.getEpjFromId(id_j);
            EP_intra* ptr_k = tree.getEpjFromId(id_k);
            EP_intra* ptr_l = tree.getEpjFromId(id_l);

            if(ptr_i == nullptr) throw std::invalid_argument("EPI is not found.");
            if(ptr_j == nullptr) throw std::invalid_argument("EPJ is not found.");
            if(ptr_k == nullptr) throw std::invalid_argument("EPK is not found.");
            if(ptr_l == nullptr) throw std::invalid_argument("EPL is not found.");

            const auto ep_i = *ptr_i;
            const auto ep_j = *ptr_j;
            const auto ep_K = *ptr_k;
            const auto ep_l = *ptr_l;

            MODEL::KeyTorsion  key_torsion = std::make_tuple(ep_i.getMolType(),
                                                             TorsionShape::improper,
                                                             ep_i.getAtomType(),
                                                             ep_j.getAtomType(),
                                                             ep_K.getAtomType(),
                                                             ep_l.getAtomType() );

            if(MODEL::coef_table.torsion.count(key_torsion) == 0){
                //--- param was not found
                torsion_param_check[key_torsion] = ParamCheck::not_defined;
            } else {
                //--- param was found
                torsion_param_check[key_torsion] = ParamCheck::OK;
            }
        }
    }

    //--- report results
    //------ bond parameters
    std::cout << "\n"
              << "  " << MODEL::coef_table.bond.size() << " parameters for bond." << std::endl;
    for(const auto &bond : bond_param_check){
        if(         bond.second == ParamCheck::not_defined){
            std::cout << "    ERROR: bond parameter of " << ENUM::what(bond.first) << " was not defined." << std::endl;
        } else if ( bond.second == ParamCheck::not_used){
            //--- must be used by both side
            std::cout << "    WARNING: bond parameter of " << ENUM::what(bond.first) << " was not used." << std::endl;
        }
    }
    //------ angle parameters
    std::cout << "  " << MODEL::coef_table.angle.size() << " parameters for angle." << std::endl;
    for(const auto &angle : angle_param_check){
        if(         angle.second == ParamCheck::not_defined){
            std::cout << "    ERROR: angle parameter of " << ENUM::what(angle.first) << " was not defined." << std::endl;
        } else if ( angle.second == ParamCheck::not_used){
            //--- check opposite side is used or not
            auto opposite_key = angle.first;
            std::get<1>(opposite_key) = std::get<3>(angle.first);
            std::get<3>(opposite_key) = std::get<1>(angle.first);
            if( angle_param_check.count(opposite_key) == 0 ){
                std::cout << "    WARNING: angle parameter of " << ENUM::what(angle.first) << " was not defined. (opposite side)" << std::endl;
            } else if( angle_param_check[opposite_key] == ParamCheck::not_used ){
                std::cout << "    WARNING: angle parameter of " << ENUM::what(angle.first) << " was not used." << std::endl;
            }
        }
    }
    //------ torsion parameters
    std::cout << "  " << MODEL::coef_table.torsion.size() << " parameters for torsion." << std::endl;
    for(const auto &torsion : torsion_param_check){
        if(         torsion.second == ParamCheck::not_defined ){
            std::cout << "    ERROR: torsion parameter of " << ENUM::what(torsion.first) << " was not defined." << std::endl;
        } else if ( torsion.second == ParamCheck::not_used ){
            //--- check opposite side is used or not
            auto opposite_key = torsion.first;
            std::get<2>(opposite_key) = std::get<5>(torsion.first);
            std::get<5>(opposite_key) = std::get<2>(torsion.first);
            if( torsion_param_check.count(opposite_key) == 0 ){
                std::cout << "    WARNING: torsion parameter of " << ENUM::what(torsion.first) << " was not defined. (opposite side)" << std::endl;
            } else if( torsion_param_check[opposite_key] == ParamCheck::not_used ){
                std::cout << "    WARNING: torsion parameter of " << ENUM::what(torsion.first) << " was not used." << std::endl;
            }
        }
    }

}

void test_init(){
    if(PS::Comm::getRank() != 0) return;

    //--- system parameters
    System::profile.coef_ema      = 0.3;
    System::profile.theta         = 0.5;
    System::profile.n_leaf_limit  = 8;
    System::profile.n_group_limit = 64;
    System::profile.cycle_dinfo   = 1;

    //--- set loop condition
    System::profile.dt       = 1.0;
    System::profile.istep    = 0;
    System::profile.nstep_st = 0;
    System::profile.nstep_ed = 1;

    //--- for cut_off radius
    System::profile.cut_off_LJ    = 12.0;
    System::profile.cut_off_intra = 12.0;

    //--- for installing molecule at initialize
    System::profile.ex_radius = 3.5;
    System::profile.try_limit = 100;

    //--- set domain size
    Normalize::setBoxSize( PS::F32vec{ 100.0,
                                       100.0,
                                       100.0 } );

}

int main(int argc, char *argv[]) {

    PS::Initialize(argc, argv);

    PS::DomainInfo              dinfo;
    PS::ParticleSystem<Atom_FP> test_atom;

    test_atom.initialize();
    test_atom.setNumberOfParticleLocal(0);

    test_init();
    System::InitDinfo(dinfo);

    if(PS::Comm::getRank() == 0) {
        //--- molecular model loading test
        std::cout << "TEST: check consistensy between ***.mol2 file and ***.param file..." << std::endl;

        if(argc <= 1){
            std::cout << "    no input." << std::endl
                      << "    usage:  $ ./test_model.x [model_file_name]";
        }

        System::model_list.clear();
        for(int i=1; i<argc; ++i){
            MolName model = ENUM::which_MolName(argv[i]);
            System::model_list.push_back( std::make_pair(model, 0) );
        }
        System::model_template.resize(System::model_list.size());

        for(size_t i=0; i<System::model_list.size(); ++i){

            //--- clear model data
            System::model_template.at(i).clear();
            MODEL::coef_table.clear();

            //--- load test model
            MolName     model      = System::model_list.at(i).first;
            std::string model_name = ENUM::what(model);
            std::cout << "\n"
                      << "  checking model file: " << model_name << "\n" << std::endl;

            MODEL::loading_model_parameter(model_name,
                                           System::model_template.at(i),
                                           MODEL::coef_table            );

            //--- insert test model
            test_atom.setNumberOfParticleLocal(0);
            for(size_t j=0; j<System::model_list.size(); ++j){
                size_t n = 0;
                if(j == i){
                    n = 1;
                }
                System::model_list.at(j).second = n;
            }
            Initialize::InitParticle(test_atom,
                                     System::model_list,
                                     System::model_template,
                                     System::get_ex_radius(),
                                     System::get_try_limit(),
                                     0.0);
            test_atom.adjustPositionIntoRootDomain(dinfo);

            //--- tree data for use as temporary
            EP_intra::setRcut( Normalize::normCutOff(9.0) );
            PS::TreeForForceShort<ForceIntra<PS::F32>,
                                  EP_intra,
                                  EP_intra>::Scatter test_tree;
            test_tree.initialize(System::model_template.at(i).size(), 0.5, 8, 64);
            test_tree.calcForceAll( IntraPair::dummy_func{},
                                    test_atom,
                                    dinfo );

            //--- make intra pair list
            struct GetBond {
                MD_EXT::basic_connect<MD_DEFS::ID_type,
                                      MD_DEFS::max_bond> operator () (const AtomConnect &atom){
                    return atom.bond;
                }
            };
            IntraPair::IntraMaskMaker<  MD_DEFS::ID_type, GetBond> intra_mask_maker;
            IntraPair::AngleListMaker<  MD_DEFS::ID_type, GetBond> angle_list_maker;
            IntraPair::TorsionListMaker<MD_DEFS::ID_type, GetBond> torsion_list_maker;
            for(PS::S64 i=0; i<test_atom.getNumberOfParticleLocal(); ++i){
                test_atom[i].clear_intra_list();
                intra_mask_maker(  test_atom[i], test_tree, MODEL::coef_table.mask_scaling.at(model), test_atom[i].mask_list());
                angle_list_maker(  test_atom[i], test_tree, test_atom[i].angle_list());
                torsion_list_maker(test_atom[i], test_tree, test_atom[i].dihedral_list(), test_atom[i].improper_list());
            }

            //--- check intraforce coef table.
            checkIntraForceParam(test_atom, test_tree);
        }

        std::cout << "\n  the test finished." << std::endl;
    }

    PS::Finalize();
    return 0;
}


text:
<?xml version="1.0" encoding="UTF-8"?>
<Configuration status="OFF">
  <Appenders>
    <RollingRandomAccessFile name="RollingRandomAccessFile" fileName="target/RollingRandomAccessFileAppenderHeaderFooterTest.log"
                 filePattern="target/RollingRandomAccessFileAppenderHeaderFooterTest/rolled%i.log" append="false"
                 immediateFlush="true">
      <HTMLLayout></HTMLLayout>
      <Policies>
      <!--
        <TimeBasedTriggeringPolicy />
      -->
        <SizeBasedTriggeringPolicy size="1024" />
      </Policies>
    </RollingRandomAccessFile>
  </Appenders>

  <Loggers>
    <Root level="trace" includeLocation="false">
      <AppenderRef ref="RollingRandomAccessFile"/>
    </Root>
  </Loggers>
</Configuration>


text:
import { Component } from '@angular/core';

@Component({
  selector: 'wd-accommodations-page',
  template: `Accommodations page`
})
export class AccommodationsPageComponent {

  constructor() {
  }
}


text:
/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package de.knoobie.project.tomoya.utils;

import de.knoobie.project.clannadutils.common.FileUtils;
import de.knoobie.project.clannadutils.common.ListUtils;
import de.knoobie.project.clannadutils.common.StringUtils;
import de.knoobie.project.fuko.database.domain.embeddable.Link;
import de.knoobie.project.fuko.database.domain.embeddable.Picture;
import de.knoobie.project.ryou.filesystem.domain.RyouPath;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.Base64;
import java.util.List;

/**
 *
 * @author cKnoobie
 */
public class TomoyaUtils {

    public static String DEFAULT_PATH_TO_ROOT = "#!";

    public static String generateHTML(List<? extends Link> links, String urlPathToRoot) {
        String htmlContent = StringUtils.EMPTY;

        if (ListUtils.isEmpty(links)) {
            return htmlContent;
        }

        for (Link link : links) {
            if (StringUtils.isEmpty(link.getLink())) {
                htmlContent = htmlContent.concat(StringUtils.trim(link.getPrimaryName().getName())).concat(", ");
            } else {
                htmlContent = htmlContent.concat("").
                        concat(StringUtils.trim(link.getPrimaryName().getName())).concat(", ");
            }
        }

        return StringUtils.removeLastCharacters(htmlContent, 2);
    }

    public static String generatePicturebase64Encoded(Path path, Picture picture, String sizeValues) {

        RyouPath coverPath = null;
        String encodedBytes = "";
        if (!StringUtils.isEmpty(picture.getPictureLocation())) {
            if (picture.isCover()) {
                coverPath = RyouPath.create(path.toAbsolutePath().toString()
                        + FileUtils.getFileSystem().getSeparator(), picture.getPictureLocation());
            } else {
                coverPath = RyouPath.create(path.toAbsolutePath().toString()
                        + FileUtils.getFileSystem().getSeparator(), "Scans", picture.getPictureLocation());
            }
            try {
                encodedBytes = Base64.getEncoder().encodeToString(Files.readAllBytes(coverPath.getPath()));
            } catch (IOException ex) {
                ex.printStackTrace();
            }
        }

        if (picture.isCover()) {
            return "";
        } else {
            return "" + picture.getPictureLocation() + "";
        }

    }
}


text:
<?php

namespace Phalcon\Logger\Formatter {

	/**
	 * Phalcon\Logger\Formatter\Line
	 *
	 * Formats messages using an one-line string
	 */

	class Line extends \Phalcon\Logger\Formatter implements \Phalcon\Logger\FormatterInterface {

		protected $_dateFormat;

		protected $_format;

		/**
		 * Default date format
		 *
		 * @var string
		 */
		public function getDateFormat(){ }

		/**
		 * Default date format
		 *
		 * @var string
		 */
		public function setDateFormat($dateFormat){ }

		/**
		 * Format applied to each message
		 *
		 * @var string
		 */
		public function getFormat(){ }

		/**
		 * Format applied to each message
		 *
		 * @var string
		 */
		public function setFormat($format){ }

		/**
		 * \Phalcon\Logger\Formatter\Line construct
		 *
		 * @param string format
		 * @param string dateFormat
		 */
		public function __construct($format=null, $dateFormat=null){ }

		/**
		 * Applies a format to a message before sent it to the internal log
		 *
		 * @param string message
		 * @param int type
		 * @param int timestamp
		 * @param array $context
		 * @return string
		 */
		public function format($message, $type, $timestamp, $context=null){ }

	}
}


text:
/**
 * Copyright (c) 2004-2006 Regents of the University of California.
 * See "LICENSE.txt" for licensing terms.
 */
package prefux.util.display;

import prefux.Display;

/**
 * Listener interface for monitoring changes to the space occupied by
 * VisualItems within the space of a Display.
 *
 * @author jeffrey heer
 */
public interface ItemBoundsListener {

    /**
     * Signals a change in the total bounds occupied by VisualItems in
     * a particular Display.
     * @param d the Display whose item bounds has changed
     */
    public void itemBoundsChanged(Display d);

} // end of interface ItemBoundsListener


text:
'use strict';

const models = require('./index');

/**
 * Creates combinations of tokens as a single token. This token filter is
 * implemented using Apache Lucene.
 *
 * @extends models['TokenFilter']
 */
class ShingleTokenFilter extends models['TokenFilter'] {
  /**
   * Create a ShingleTokenFilter.
   * @member {number} [maxShingleSize] The maximum shingle size. Default and
   * minimum value is 2. Default value: 2 .
   * @member {number} [minShingleSize] The minimum shingle size. Default and
   * minimum value is 2. Must be less than the value of maxShingleSize. Default
   * value: 2 .
   * @member {boolean} [outputUnigrams] A value indicating whether the output
   * stream will contain the input tokens (unigrams) as well as shingles.
   * Default is true. Default value: true .
   * @member {boolean} [outputUnigramsIfNoShingles] A value indicating whether
   * to output unigrams for those times when no shingles are available. This
   * property takes precedence when outputUnigrams is set to false. Default is
   * false. Default value: false .
   * @member {string} [tokenSeparator] The string to use when joining adjacent
   * tokens to form a shingle. Default is a single space (" "). Default value:
   * '' .
   * @member {string} [filterToken] The string to insert for each position at
   * which there is no token. Default is an underscore ("_"). Default value:
   * '_' .
   */
  constructor() {
    super();
  }

  /**
   * Defines the metadata of ShingleTokenFilter
   *
   * @returns {object} metadata of ShingleTokenFilter
   *
   */
  mapper() {
    return {
      required: false,
      serializedName: '#Microsoft.Azure.Search.ShingleTokenFilter',
      type: {
        name: 'Composite',
        className: 'ShingleTokenFilter',
        modelProperties: {
          name: {
            required: true,
            serializedName: 'name',
            type: {
              name: 'String'
            }
          },
          odatatype: {
            required: true,
            serializedName: '@odata\\.type',
            type: {
              name: 'String'
            }
          },
          maxShingleSize: {
            required: false,
            serializedName: 'maxShingleSize',
            defaultValue: 2,
            constraints: {
              InclusiveMinimum: 2
            },
            type: {
              name: 'Number'
            }
          },
          minShingleSize: {
            required: false,
            serializedName: 'minShingleSize',
            defaultValue: 2,
            constraints: {
              InclusiveMinimum: 2
            },
            type: {
              name: 'Number'
            }
          },
          outputUnigrams: {
            required: false,
            serializedName: 'outputUnigrams',
            defaultValue: true,
            type: {
              name: 'Boolean'
            }
          },
          outputUnigramsIfNoShingles: {
            required: false,
            serializedName: 'outputUnigramsIfNoShingles',
            defaultValue: false,
            type: {
              name: 'Boolean'
            }
          },
          tokenSeparator: {
            required: false,
            serializedName: 'tokenSeparator',
            defaultValue: '',
            type: {
              name: 'String'
            }
          },
          filterToken: {
            required: false,
            serializedName: 'filterToken',
            defaultValue: '_',
            type: {
              name: 'String'
            }
          }
        }
      }
    };
  }
}

module.exports = ShingleTokenFilter;


text:
#ifndef _ASM_X86_PTRACE_H
#define _ASM_X86_PTRACE_H

#include <linux/compiler.h>
#include <asm/ptrace-abi.h>

#ifndef __ASSEMBLY__

#ifdef __i386__

struct pt_regs {
 long ebx;
 long ecx;
 long edx;
 long esi;
 long edi;
 long ebp;
 long eax;
 int xds;
 int xes;
 int xfs;

 long orig_eax;
 long eip;
 int xcs;
 long eflags;
 long esp;
 int xss;
};

#else

struct pt_regs {
 unsigned long r15;
 unsigned long r14;
 unsigned long r13;
 unsigned long r12;
 unsigned long rbp;
 unsigned long rbx;

 unsigned long r11;
 unsigned long r10;
 unsigned long r9;
 unsigned long r8;
 unsigned long rax;
 unsigned long rcx;
 unsigned long rdx;
 unsigned long rsi;
 unsigned long rdi;
 unsigned long orig_rax;

 unsigned long rip;
 unsigned long cs;
 unsigned long eflags;
 unsigned long rsp;
 unsigned long ss;

};

#endif
#endif

#endif


text:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="takeanote.takeanote" >

    <application
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:supportsRtl="true"
        android:theme="@style/AppTheme" >
        <meta-data android:name="DATABASE" android:value="take_a_note.db" />
        <meta-data android:name="VERSION" android:value="3" />
        <meta-data android:name="QUERY_LOG" android:value="true" />
        <activity android:name=".activity.LoginActivity" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <activity
            android:name=".activity.MainActivity"
            android:label="@string/title_activity_main"
            android:theme="@style/AppTheme" >
        </activity>
        <activity android:name=".activity.DocActivity" >
        </activity>
        <activity android:name=".activity.ColorPickerActivity" >
        </activity>
    </application>

</manifest>