text:
<?xml version="1.0"?>

<!DOCTYPE document [
  <!ENTITY project SYSTEM "project.xml">
]>
<document url="apr.html">

    &project;

  <properties>
    <title>Apache Portable Runtime (APR) based Native library for Tomcat</title>
    <author>Remy Maucherat</author>
  </properties>

<toc/>

      Tomcat can use the Apache Portable Runtime to
      provide superior scalability, performance, and better integration with native server
      technologies. The Apache Portable Runtime is a highly portable library that is at
      the heart of Apache HTTP Server 2.x. APR has many uses, including access to advanced IO
      functionality (such as sendfile, epoll and OpenSSL), OS level functionality (random number
      generation, system status, etc), and native process handling (shared memory, NT
      pipes and Unix sockets).

      These features allows making Tomcat a general purpose webserver, will enable much better
      integration with other native web technologies, and overall make Java much more viable as
      a full fledged webserver platform rather than simply a backend focused technology.

      APR support requires three main native components to be installed:

APR library

JNI wrappers for APR used by Tomcat (libtcnative)

OpenSSL libraries

    <subsection name="Windows">

      Windows binaries are provided for tcnative-1, which is a statically compiled .dll which includes
      OpenSSL and APR. It can be downloaded from here
      as 32bit or AMD x86-64 binaries.
      In security conscious production environments, it is recommended to use separate shared dlls
      for OpenSSL, APR, and libtcnative-1, and update them as needed according to security bulletins.
      Windows OpenSSL binaries are linked from the Official OpenSSL
      website (see related/binaries).

    </subsection>

    <subsection name="Linux">

      Most Linux distributions will ship packages for APR and OpenSSL. The JNI wrapper (libtcnative) will
      then have to be compiled. It depends on APR, OpenSSL, and the Java headers.

      Requirements:

APR 1.2+ development headers (libapr1-dev package)

OpenSSL 0.9.7+ development headers (libssl-dev package)

JNI headers from Java compatible JDK 1.4+

GNU development environment (gcc, make)

      The wrapper library sources are located in the Tomcat binary bundle, in the
      bin/tomcat-native.tar.gz archive.
      Once the build environment is installed and the source archive is extracted, the wrapper library
      can be compiled using (from the folder containing the configure script):
      <source>./configure && make && make install</source>

    </subsection>

    Once the libraries are properly installed and available to Java (if loading fails, the library path
    will be displayed), the Tomcat connectors will automatically use APR. Configuration of the connectors
    is similar to the regular connectors, but have a few extra attributes which are used to configure
    APR components. Note that the defaults should be well tuned for most use cases, and additional
    tweaking shouldn't be required.

    When APR is enabled, the following features are also enabled in Tomcat:

Secure session ID generation by default on all platforms (platforms other than Linux required
          random number generation using a configured entropy)

OS level statistics on memory usage and CPU usage by the Tomcat process are displayed by
          the status servlet

    <subsection name="AprLifecycleListener">
    <attributes>
    <attribute name="SSLEngine" required="false">

      Name of the SSLEngine to use. off: Do not use SSL, on: Use SSL but no specific ENGINE.
      The default value is on.
      This initializes the native SSL engine, then enable the use of this engine in the connector
      using the SSLEnabled attribute. Example:
      <source>
<Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" />
      </source>

See the Official OpenSSL
       website for more details on SSL hardware engines and manufacturers.

    </attribute>
    </attributes>
    </subsection>

    <subsection name="HTTP">

      When APR is enabled, the HTTP connector will use sendfile for handling large static files (all such
      files will be sent asynchronously using high performance kernel level calls), and will use
      a socket poller for keepalive, increasing scalability of the server.

      The following attributes are supported in the HTTP APR connector in addition to the ones supported
      in the regular HTTP connector:

    <attributes>

    <attribute name="keepAliveTimeout" required="false">

The number of milliseconds this Connector will wait for
       another HTTP request before closing the connection.
       The default value is to use the value that has been set for the
       connectionTimeout attribute. This value also controls the timeout interval which
       is used for Comet connections.

    </attribute>

    <attribute name="pollTime" required="false">

Duration of a poll call. Lowering this value will slightly decrease latency of connections
      being kept alive in some cases, but will use more CPU as more poll calls are being made. The
      default value is 2000 (5ms).

    </attribute>

    <attribute name="pollerSize" required="false">

Amount of sockets that the poller responsible for polling kept alive connections can hold at a
      given time. Extra connections will be closed right away. The default value is 8192, corresponding to
      8192 keepalive connections.

    </attribute>

    <attribute name="pollerThreadCount" required="false">

Number of threads used to poll kept alive connections. On Windows the
      default is chosen so that the sockets managed by each thread is
      less than 1024. For Linux the default is 1. Changing the default on
      Windows is likely to have a negative performance impact.

    </attribute>

    <attribute name="useSendfile" required="false">

Use kernel level sendfile for certain static files. The default value is true.

    </attribute>

    <attribute name="sendfileSize" required="false">

Amount of sockets that the poller responsible for sending static files asynchronously can hold
      at a given time. Extra connections will be closed right away without any data being sent
      (resulting in a zero length file on the client side). Note that in most cases, sendfile is a call
      that will return right away (being taken care of "synchronously" by the kernel), and the sendfile
      poller will not be used, so the amount of static files which can be sent concurrently is much larger
      than the specified amount. The default value is 1024.

    </attribute>

    <attribute name="sendFileThreadCount" required="false">

Number of threads used service sendfile sockets. On Windows the
      default is chosen so that the sockets managed by each thread is
      less than 1024. For Linux the default is 1. Changing the default on
      Windows is likely to have a negative performance impact.

    </attribute>

    </attributes>

    </subsection>

    <subsection name="HTTPS">

      When APR is enabled, the HTTPS connector will use a socket poller for keepalive, increasing
      scalability of the server. It also uses OpenSSL, which may be more optimized than JSSE depending
      on the processor being used, and can be complemented with many commercial accelerator components.
      Unlike the HTTP connector, the HTTPS connector cannot use sendfile to optimize static file
      processing.

      The HTTPS APR connector has the same basic attributes than the HTTP APR connector, but adds
      OpenSSL specific ones. For the full details on using OpenSSL, please refer to OpenSSL documentations
      and the many books available for it (see the Official OpenSSL
      website). The SSL specific attributes for the connector are:

    <attributes>

    <attribute name="SSLEnabled" required="false">

      Enable SSL on the socket, default value is false. Set this value to true
      to enable SSL handshake/encryption/decryption in the APR connector.

    </attribute>
    <attribute name="SSLProtocol" required="false">

      Protocol which may be used for communicating with clients. The default
      value is all, which is equivalent to TLSv1
      with other acceptable values being SSLv2,
      SSLv3, TLSv1, TLSv1.1*,
      and TLSv1.2*.
      Starting with version 1.1.21 of the Tomcat native
      library any combination of these protocols concatenated with a
      plus sign is be supported. Note that both protocols SSLv2
      and SSLv3 are inherently unsafe.

      * The use of TLSv1.1 and TLSv1.2 require Tomcat native v1.1.32
      or higher.

    </attribute>
    <attribute name="SSLCipherSuite" required="false">

      Ciphers which may be used for communicating with clients. The default is
      "HIGH:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!kRSA". See the OpenSSL
      documentation for details of the cipher configuration options.

    </attribute>
    <attribute name="SSLCertificateFile" required="true">

      Name of the file that contains the server certificate. The format is PEM-encoded.

    </attribute>
    <attribute name="SSLCertificateKeyFile" required="false">

      Name of the file that contains the server private key. The format is PEM-encoded.
      The default value is the value of "SSLCertificateFile" and in this case both certificate
      and private key have to be in this file (NOT RECOMMENDED).

    </attribute>
    <attribute name="SSLDisableCompression" required="false">

Disables compression if set to true and OpenSSL supports
      disabling compression. Default is false which inherits the
      default compression setting in OpenSSL.

    </attribute>
    <attribute name="SSLHonorCipherOrder" required="false">

Set to true to enforce the server's cipher order
      (from the SSLCipherSuite setting) instead of allowing
      the client to choose the cipher (which is the default).

    </attribute>
    <attribute name="SSLPassword" required="false">

      Pass phrase for the encrypted private key. If "SSLPassword" is not provided, the callback function
      should prompt for the pass phrase.

    </attribute>
    <attribute name="SSLVerifyClient" required="false">

      Ask client for certificate. The default is "none", meaning the client will not have the opportunity
      to submit a certificate. Other acceptable values include "optional", "require" and "optionalNoCA".

    </attribute>
    <attribute name="SSLVerifyDepth" required="false">

      Maximum verification depth for client certificates. The default is "10".

    </attribute>
    <attribute name="SSLCACertificateFile" required="false">

      See the mod_ssl documentation.

    </attribute>
    <attribute name="SSLCACertificatePath" required="false">

      See the mod_ssl documentation.

    </attribute>
    <attribute name="SSLCertificateChainFile" required="false">

      See the mod_ssl documentation.

    </attribute>
    <attribute name="SSLCARevocationFile" required="false">

      See the mod_ssl documentation.

    </attribute>
    <attribute name="SSLCARevocationPath" required="false">

      See the mod_ssl documentation.

    </attribute>

    </attributes>

    An example SSL Connector declaration can be:
    <source>
    <Connector port="443" maxHttpHeaderSize="8192"
               maxThreads="150"
               enableLookups="false" disableUploadTimeout="true"
               acceptCount="100" scheme="https" secure="true"
               SSLEnabled="true"
               SSLCertificateFile="${catalina.base}/conf/localhost.crt"
               SSLCertificateKeyFile="${catalina.base}/conf/localhost.key" /></source>

    </subsection>

    <subsection name="AJP">

      When APR is enabled, the AJP connector will use a socket poller for keepalive, increasing
      scalability of the server. As AJP is designed around a pool of persistent (or almost
      persistent) connections, this will reduce significantly the amount of processing threads
      needed by Tomcat. Unlike the HTTP connector, the AJP connector cannot use sendfile to optimize
      static file processing.

      The following attributes are supported in the AJP APR connector in addition to the ones supported
      in the regular AJP connector:

    <attributes>

    <attribute name="pollTime" required="false">

Duration of a poll call. Lowering this value will slightly decrease latency of connections
      being kept alive in some cases, but will use more CPU as more poll calls are being made. The
      default value is 2000 (5ms).

    </attribute>

    <attribute name="pollerSize" required="false">

Amount of sockets that the poller responsible for polling kept alive connections can hold at a
      given time. Extra connections will be closed right away. The default value is 8192, corresponding to
      8192 keepalive connections.

    </attribute>

    </attributes>

    </subsection>

</document>


text:
<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;

/* @var $this yii\web\View */
/* @var $model common\models\AdMain */
/* @var $form yii\widgets\ActiveForm */
?>

    <?php $form = ActiveForm::begin(); ?>

    <?= $form->field($model, 'user_id')->textInput() ?>

    <?= $form->field($model, 'place_city_id')->textInput() ?>

    <?= $form->field($model, 'category_id')->textInput() ?>

    <?= $form->field($model, 'ad_style_id')->textInput() ?>

        <?= Html::submitButton($model->isNewRecord ? Yii::t('app', 'Create') : Yii::t('app', 'Update'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>

    <?php ActiveForm::end(); ?>

redpajama_set_name: RedPajamaGithub


text:
<menu xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    tools:context="tn.esprit.autoidsys.smartshop.activities.ScannerActivity">
    <item android:id="@+id/action_settings" android:title="@string/action_settings"
        android:orderInCategory="100" app:showAsAction="never" />
</menu>


text:
using UnityEngine;
using UnityEditor;

namespace Stratus
{
  namespace Editor
  {
    public abstract partial class Node
    {
      /// <summary>
      /// One of the items inside the node
      /// </summary>
      public class ContentElement
      {
        private static GUIStyle TitleStyle;
        private static GUIStyle DescriptionStyle;
        private static bool IsStaticInitialized { get; set; }

        //--------------------------------------------------------------------/
        // Properties
        //--------------------------------------------------------------------/
        public string Title { get; private set; }
        public string Description { get; private set; }
        public Texture2D Icon { get; private set; }
        public System.Action OnClick { get; private set; }

        public Rect Position { get; private set; }
        public Vector2 Size { get; private set; }
        public float Width { get { return Size.x; } }
        public float Height { get { return Size.y; } }

        const int IconSize = 32;
        const int TitleFontSize = 24;
        const int DescriptionFontSize = 12;

        //--------------------------------------------------------------------/
        // Methods
        //--------------------------------------------------------------------/
        public ContentElement(string title, string description, Texture2D icon, System.Action onClick)
        {
          this.Initialize(title, description, icon, onClick);
        }

        private void Initialize(string title, string description, Texture2D icon, System.Action onClick)
        {
          this.Title = title;
          this.Description = description;
          this.Icon = icon;
          //this.Icon.Resize(IconSize, IconSize);
          this.OnClick = onClick;

          if (!IsStaticInitialized)
            InitializeStatics();

          // Now calculate the size of this element
          this.CalculateAndSetSize();
        }

        private void InitializeStatics()
        {
          TitleStyle = new GUIStyle(EditorStyles.boldLabel);
          TitleStyle.fontSize = TitleFontSize;
          DescriptionStyle = new GUIStyle(EditorStyles.label);
          DescriptionStyle.fontSize = DescriptionFontSize;

          IsStaticInitialized = true;
        }

        private void CalculateAndSetSize()
        {
          var titleSize = TitleStyle.CalcSize(new GUIContent(Title));

          // The header size depends on the icon + title
          var headerSize = new Vector2(Icon != null ? Icon.width + titleSize.x : titleSize.x,
                                       Icon != null ? Icon.height : titleSize.y);
          headerSize.y += TitleStyle.margin.vertical;
          headerSize.x += TitleStyle.margin.horizontal;

          var descriptionSize = DescriptionStyle.CalcSize(new GUIContent(Description));
          descriptionSize.y += DescriptionStyle.margin.vertical;
          descriptionSize.x += DescriptionStyle.margin.horizontal;

          // Now calculate the width and height
          var width = headerSize.x > descriptionSize.x ? headerSize.x : descriptionSize.x;
          width *= 1.05f;
          var height = headerSize.y + (descriptionSize.y);

          Size = new Vector2(width, height);
        }

        /// <summary>
        /// Draws the content element within the node. It will draw a provided icon,
        /// a title and a description.
        /// </summary>
        /// <param name="position"></param>
        public void Draw(Rect position)
        {
          Position = position;
          GUI.Label(position, position.ToString());
          GUILayout.BeginArea(position, GUI.skin.button);
          {
            // Header
            GUILayout.BeginHorizontal();
            if (Icon != null) GUILayout.Box(Icon);
            GUILayout.Label(Title, TitleStyle);
            GUILayout.EndHorizontal();

            // Description
            GUILayout.Label(Description, DescriptionStyle);
          }
          GUILayout.EndArea();
        }

        public void Select()
        {

        }

        public void Deselect()
        {

        }

      }
    }
  }

}


text:
TAboutBox *AboutBox;
//---------------------------------------------------------------------
__fastcall TAboutBox::TAboutBox(TComponent* AOwner)
	: TForm(AOwner)
{
}
//---------------------------------------------------------------------


text:
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Avalonia.LogicalTree;
using Avalonia.Utilities;

namespace Avalonia.Controls
{
    /// <summary>
    /// Implements a name scope.
    /// </summary>
    public class NameScope : INameScope
    {
        /// <summary>
        /// Defines the NameScope attached property.
        /// </summary>
        public static readonly AttachedProperty<INameScope> NameScopeProperty =
            AvaloniaProperty.RegisterAttached<NameScope, StyledElement, INameScope>("NameScope");

        /// <inheritdoc/>
        public bool IsCompleted { get; private set; }

        private readonly Dictionary<string, object> _inner = new Dictionary<string, object>();

        private readonly Dictionary<string, SynchronousCompletionAsyncResultSource<object?>> _pendingSearches =
            new Dictionary<string, SynchronousCompletionAsyncResultSource<object?>>();

        /// <summary>
        /// Gets the value of the attached <see cref="NameScopeProperty"/> on a styled element.
        /// </summary>
        /// <param name="styled">The styled element.</param>
        /// <returns>The value of the NameScope attached property.</returns>
        public static INameScope GetNameScope(StyledElement styled)
        {
            _ = styled ?? throw new ArgumentNullException(nameof(styled));

            return styled.GetValue(NameScopeProperty);
        }

        /// <summary>
        /// Sets the value of the attached <see cref="NameScopeProperty"/> on a styled element.
        /// </summary>
        /// <param name="styled">The styled element.</param>
        /// <param name="value">The value to set.</param>
        public static void SetNameScope(StyledElement styled, INameScope value)
        {
            _ = styled ?? throw new ArgumentNullException(nameof(styled));

            styled.SetValue(NameScopeProperty, value);
        }

        /// <inheritdoc />
        public void Register(string name, object element)
        {
            if (IsCompleted)
                throw new InvalidOperationException("NameScope is completed, no further registrations are allowed");

            _ = name ?? throw new ArgumentNullException(nameof(name));
            _ = element ?? throw new ArgumentNullException(nameof(element));

            if (_inner.TryGetValue(name, out var existing))
            {
                if (existing != element)
                {
                    throw new ArgumentException($"Control with the name '{name}' already registered.");
                }
            }
            else
            {
                _inner.Add(name, element);
                if (_pendingSearches.TryGetValue(name, out var tcs))
                {
                    _pendingSearches.Remove(name);
                    tcs.SetResult(element);
                }
            }
        }

        public SynchronousCompletionAsyncResult<object?> FindAsync(string name)
        {
            var found = Find(name);
            if (found != null)
                return new SynchronousCompletionAsyncResult<object?>(found);
            if (IsCompleted)
                return new SynchronousCompletionAsyncResult<object?>((object?)null);
            if (!_pendingSearches.TryGetValue(name, out var tcs))
                // We are intentionally running continuations synchronously here
                _pendingSearches[name] = tcs = new SynchronousCompletionAsyncResultSource<object?>();

            return tcs.AsyncResult;
        }

        /// <inheritdoc />
        public object? Find(string name)
        {
            _ = name ?? throw new ArgumentNullException(nameof(name));

            _inner.TryGetValue(name, out var result);
            return result;
        }

        public void Complete()
        {
            IsCompleted = true;
            foreach (var kp in _pendingSearches)
                kp.Value.TrySetResult(null);
            _pendingSearches.Clear();
        }

    }
}


text:
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xmlns:context="http://www.springframework.org/schema/context"
	xmlns:mvc="http://www.springframework.org/schema/mvc"
	xsi:schemaLocation="http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.1.xsd
		http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
		http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.1.xsd">

	<!-- 自动扫描且只扫描@Controller -->
	<context:component-scan base-package="com.sap.dm.agent" use-default-filters="false">
		<context:include-filter type="annotation" expression="org.springframework.stereotype.Controller"/>
	</context:component-scan>

	<mvc:annotation-driven />

	<mvc:default-servlet-handler/>

	<!-- 定义首页 -->
	<mvc:view-controller path="/" view-name="redirect:/agent/manage"/>

	<!-- 定义JSP -->
	<bean class="org.springframework.web.servlet.view.InternalResourceViewResolver">
		<property name="prefix" value="/WEB-INF/views/"/>
		<property name="suffix" value=".jsp"/>
	</bean>
	<!-- end -->

</beans>


text:
require 'spec_helper'

RSpec.describe ShipFosdick do
  it 'has a version number' do
    expect(ShipFosdick::VERSION).not_to be nil
  end
end


text:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Management.Automation;
using Microsoft.SharePoint.Client;
using OfficeDevPnP.Core.Utilities;
using SharePointPnP.PowerShell.CmdletHelpAttributes;
using File = Microsoft.SharePoint.Client.File;

namespace SharePointPnP.PowerShell.Commands.Files
{
    [Cmdlet(VerbsCommon.Get, "PnPFolderItem")]
    [CmdletHelp("List content in folder", Category = CmdletHelpCategory.Files)]
    [CmdletExample(
        Code = @"PS:> Get-PnPFolderItem -FolderSiteRelativeUrl ""SitePages""",
        Remarks = "Returns the contents of the folder SitePages which is located in the root of the current web",
        SortOrder = 1
        )]
    [CmdletExample(
        Code = @"PS:> Get-PnPFolderItem -FolderSiteRelativeUrl ""SitePages"" -ItemName ""Default.aspx""",
        Remarks = "Returns the file 'Default.aspx' which is located in the folder SitePages which is located in the root of the current web",
        SortOrder = 2
        )]
    [CmdletExample(
        Code = @"PS:> Get-PnPFolderItem -FolderSiteRelativeUrl ""SitePages"" -ItemType Folder",
        Remarks = "Returns all folders in the folder SitePages which is located in the root of the current web",
        SortOrder = 3
        )]
    [CmdletExample(
        Code = @"PS:> Get-PnPFolderItem -FolderSiteRelativeUrl ""SitePages"" -ItemType File",
        Remarks = "Returns all files in the folder SitePages which is located in the root of the current web",
        SortOrder = 4
        )]
    public class GetFolderItem : PnPWebCmdlet
    {
        [Parameter(Mandatory = false, Position = 0, ValueFromPipeline = true, HelpMessage ="The site relative folder to retrieve")]
        public string FolderSiteRelativeUrl;

        [Parameter(Mandatory = false, HelpMessage = "The type of contents to retrieve, either File, Folder or All (default)")]
        [ValidateSet("Folder", "File", "All")]
        public string ItemType = "All";

        [Parameter(Mandatory = false, HelpMessage = "Optional name of the item to retrieve")]
        public string ItemName = string.Empty;

        protected override void ExecuteCmdlet()
        {
            string serverRelativeUrl = null;
            if (!string.IsNullOrEmpty(FolderSiteRelativeUrl))
            {
                var webUrl = SelectedWeb.EnsureProperty(w => w.ServerRelativeUrl);
                serverRelativeUrl = UrlUtility.Combine(webUrl, FolderSiteRelativeUrl);
            }

            var targetFolder = (string.IsNullOrEmpty(FolderSiteRelativeUrl)) ? SelectedWeb.RootFolder : SelectedWeb.GetFolderByServerRelativeUrl(serverRelativeUrl);
            IEnumerable<File> files = null;
            IEnumerable<Folder> folders = null;

            if (ItemType == "File" || ItemType == "All")
            {
                files = ClientContext.LoadQuery(targetFolder.Files).OrderBy(f => f.Name);
                if (!string.IsNullOrEmpty(ItemName))
                {
                    files = files.Where(f=>f.Name.Equals(ItemName, StringComparison.InvariantCultureIgnoreCase));
                }
            }
            if (ItemType == "Folder" || ItemType == "All")
            {
                folders = ClientContext.LoadQuery(targetFolder.Folders).OrderBy(f => f.Name);
                if (!string.IsNullOrEmpty(ItemName))
                {
                    folders = folders.Where(f => f.Name.Equals(ItemName, StringComparison.InvariantCultureIgnoreCase));
                }
            }
            ClientContext.ExecuteQueryRetry();

            switch (ItemType)
            {
                case "All":
                    var foldersAndFiles = folders.Concat<object>(files);
                    WriteObject(foldersAndFiles, true);
                    break;
                case "Folder":
                    WriteObject(folders, true);
                    break;
                default:
                    WriteObject(files, true);
                    break;
            }
        }
    }
}


text:
package org.elasticsearch.xpack.analytics;

import java.io.IOException;

import org.apache.lucene.document.BinaryDocValuesField;
import org.elasticsearch.common.io.stream.BytesStreamOutput;
import org.elasticsearch.search.aggregations.metrics.TDigestState;

import com.tdunning.math.stats.Centroid;
import com.tdunning.math.stats.TDigest;

public final class AnalyticsTestsUtils {

    /**
     * Generates an index fields for histogram fields. Used in tests of aggregations that work on histogram fields.
     */
    public static BinaryDocValuesField histogramFieldDocValues(String fieldName, double[] values) throws IOException {
        TDigest histogram = new TDigestState(100.0); //default
        for (double value : values) {
            histogram.add(value);
        }
        BytesStreamOutput streamOutput = new BytesStreamOutput();
        histogram.compress();
        for (Centroid centroid : histogram.centroids()) {
            streamOutput.writeVInt(centroid.count());
            streamOutput.writeDouble(centroid.mean());
        }
        return new BinaryDocValuesField(fieldName, streamOutput.bytes().toBytesRef());
    }

}


text:
package ru.otus.java_2017_04.golovnin.hw16.DbService;

import ru.otus.java_2017_04.golovnin.hw16.Cache.CacheEngine;

import javax.sql.DataSource;
import java.util.List;

public class MySqlDbService implements DbService {
    private DataSource dataSource = (new HikariDataSourceFactory()).getDataSource();
    private UserDataSetDAO userDAO = new UserDataSetDAO(dataSource);
    private int accessCounter = 0;

    private CacheEngine<Long, UserDataSet> cache;

    public MySqlDbService(CacheEngine cache){
        this.cache = cache;
    }

    @Override
    public void saveUser(UserDataSet user) {
        userDAO.save(user);
    }

    @Override
    public UserDataSet loadUser(long id) {
        accessCounter++;
        UserDataSet loadedUser = null;
        if((loadedUser = cache.get(id)) == null){
            loadedUser = userDAO.load(id);
            if(loadedUser != null){
                cache.put(id, loadedUser);
            }
        }
        return loadedUser;
    }

    @Override
    public List<UserDataSet> getAllUsers() {
        return userDAO.getAll();
    }

    @Override
    public void removeUser(long id) {
        userDAO.delete(id);
        cache.remove(id);
    }

    @Override
    public void shutdown() {
        cache.dispose();
    }

    @Override
    public int getAccessCount(){
        return accessCounter;
    }
}


text:
<!doctype html>

    <title>Expander Overview</title>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta name="description" content="%description%" />
    <meta name="keywords" content="" />
    <meta name="author" content="ComponentOne" />
    <link href="../base-reset.css" rel="stylesheet" type="text/css" />
    <link href="../../themes/aristo/jquery-ui-1.8.4.custom.css" rel="stylesheet"
        type="text/css" />
    <link href="../demos-single.css" rel="stylesheet" type="text/css" />

    <link type="text/css" href="../../themes/wijmo/jquery.ui.wijutil.css" rel="stylesheet" />
    <link type="text/css" href="../../themes/wijmo/jquery.ui.wijexpander.css" rel="stylesheet" />

                Overview

                    Header

                    Vestibulum ut eros non enim commodo hendrerit. Donec porttitor tellus non magna.
                    Nam ligula elit, pretium et, rutrum non, hendrerit id, ante. Nunc mauris sapien,
                    cursus in.


text:
#ifndef ASYNC_H
#define ASYNC_H

#include <signal.h>

#include "fmgr.h"

/*
 * The number of SLRU page buffers we use for the notification queue.
 */
#define NUM_ASYNC_BUFFERS	8

extern bool Trace_notify;
extern volatile sig_atomic_t notifyInterruptPending;

extern Size AsyncShmemSize(void);
extern void AsyncShmemInit(void);

/* notify-related SQL statements */
extern void Async_Notify(const char *channel, const char *payload);
extern void Async_Listen(const char *channel);
extern void Async_Unlisten(const char *channel);
extern void Async_UnlistenAll(void);

/* notify-related SQL functions */
extern Datum pg_listening_channels(PG_FUNCTION_ARGS);
extern Datum pg_notify(PG_FUNCTION_ARGS);

/* perform (or cancel) outbound notify processing at transaction commit */
extern void PreCommit_Notify(void);
extern void AtCommit_Notify(void);
extern void AtAbort_Notify(void);
extern void AtSubStart_Notify(void);
extern void AtSubCommit_Notify(void);
extern void AtSubAbort_Notify(void);
extern void AtPrepare_Notify(void);
extern void ProcessCompletedNotifies(void);

/* signal handler for inbound notifies (PROCSIG_NOTIFY_INTERRUPT) */
extern void HandleNotifyInterrupt(void);

/* process interrupts */
extern void ProcessNotifyInterrupt(void);

#endif   /* ASYNC_H */


text:
class BeginLayer : public cocos2d::CCLayer
{
public:
	//所属Scene
	cocos2d::CCScene *scene;
	//背景精灵
	cocos2d::CCSprite *backSprite;
	cocos2d::CCMenu* pMenu;//
	//所属管理者
	BanQiuSceneManager *tsm;
	NewGameLayer *ng;
	int guanka;
	bool isDialog;
	//初始化的方法
    virtual bool init();
    virtual void keyBackClicked();//返回键监听函数
    void newSence(CCObject* pSender);
    void continueSence(CCObject* pSender);
    void achievementsSence(CCObject* pSender);
    void rulesSence(CCObject* pSender);
    void aboutSence(CCObject* pSender);
    void setSence(CCObject* pSender);
    void setMoveFinish(CCNode* node,void* param);

    //CCPlatformMacros.h文件中定义的一个宏,创建指定类型的对象
    //并做好相应的初始化与释放工作
    CREATE_FUNC(BeginLayer);
//    CCPoint origin;
//    CCSize visibleSize;
};

#endif


text:
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Browserify testing</title>
</head>
<body>

	<script src="bundle.js"></script>

</body>
</html>


text:
import 'jest-styled-components';
import React from 'react';
import { screen } from '@testing-library/react';
import { renderWithTheme } from '@looker/components-test-utils';
import { Divider } from './Divider';
describe('Divider', () => {
  test('Default', () => {
    renderWithTheme(React.createElement(Divider, null));
    const divider = screen.getByRole('separator');
    expect(divider).toBeInTheDocument();
    expect(divider).toHaveAttribute('aria-orientation', 'horizontal');
  });
  test('appearance', () => {
    renderWithTheme(React.createElement(Divider, {
      appearance: "onDark"
    }));
    expect(screen.getByRole('separator')).toHaveStyle('background-color: rgb(112, 119, 129)');
  });
  test('custom', () => {
    renderWithTheme(React.createElement(Divider, {
      size: "20px",
      customColor: "turquoise"
    }));
    expect(screen.getByRole('separator')).toHaveStyle('height: 20px');
    expect(screen.getByRole('separator')).toHaveStyle('background-color: turquoise');
  });
});
//# sourceMappingURL=Divider.spec.js.map


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

    <string name="shows">Serije</string>
    <string name="lists">Popisi</string>
    <string name="movies">Filmovi</string>
    <string name="statistics">Statistike</string>
    <string name="navigation_more">Više</string>
    <string name="search">Traži</string>
    <string name="preferences">Postavke</string>
    <string name="help">Pomoć</string>
    <string name="no_more_updates">SeriesGuide neće dobivati više ažuriranja za ovu verziju Andriod-a</string>

    <string name="show_details">Detalji</string>
    <string name="episode">Epizoda</string>
    <string name="episode_number">Epizoda %d</string>
    <string name="episodes">Epizode</string>
    <string name="season">Sezona</string>
    <string name="season_number">Sezona %d</string>
    <string name="specialseason">Posebne epizode</string>
    <string name="ratings">Ocjene</string>

    <string name="description_overview">Pregled</string>
    <string name="description_poster">Pokaži poster</string>
    <string name="description_image">Slika epizode</string>
    <string name="description_menu_overflow">Više opcija</string>

    <string name="clear">Izbriši</string>
    <string name="discard">Odbaci</string>
    <string name="save_selection">Pohrani odabrano</string>
    <string name="action_display_all">Prikaži sve</string>
    <string name="web_search">Pretraži web</string>
    <string name="add_to_homescreen">Dodaj na početni zaslon</string>
    <string name="action_open">Otvori</string>
    <string name="sync_manually">Ručno sinkroniziraj</string>
    <string name="sync_and_update">Sinkroniziranje i ažuriranje</string>
    <string name="sync_and_download_all">Sinkroniziraj i sve preuzmi</string>
    <string name="action_stream">Strujaj ili kupi</string>
    <string name="action_stream_info">Stream or purchase info</string>
    <string name="action_select_region">Select region</string>
    <string name="action_include_any_watch_provider">Include any</string>

    <string name="clear_search_history">Očisti povijest pretraživanja</string>
    <string name="search_hint">Pretraži epizode</string>

    <string name="updated">Ažurirano u najnoviju verziju.</string>
    <string name="updated_details">Detalji</string>
    <string name="norating">nedostupno</string>
    <string name="unknown">nepoznato</string>
    <string name="offline">Spojite se na mrežu i probajte ponovno.</string>
    <string name="app_not_available">Ne postoji aplikacija koja može ovo otvoriti</string>
    <string name="people_empty">Ima li koga? Dodirnite kako bi pokušali ponovno.</string>
    <string name="database_error">Nije moguće izmijeniti podatke.</string>
    <string name="reinstall_info">Pokušajte sigurnosno kopirati postavke, ponovno instalirajte i vratite sig. kopiju.</string>
    <string name="api_error_generic">%s nedostupan. Pokušajte kasnije.</string>
    <string name="api_failed">Nije uspjelo: %s</string>
    <string name="copy_to_clipboard">Kopirano u međuspremnik</string>
    <string name="not_migrated">Show not migrated to TMDB data. Some actions incl. Trakt and Cloud sync might not work. Maybe search for a replacement and remove this show. Tap to view details.</string>

    <string name="share">Podijeli</string>
    <string name="share_show">Podijeli seriju</string>
    <string name="share_episode">Podijeli epizodu</string>
    <string name="share_movie">Podijelite film</string>
    <string name="addtocalendar">Dodaj u kalendar</string>
    <string name="addtocalendar_failed">Ne mogu stvoriti događaj u kalendaru.</string>
    <string name="links">Poveznice</string>

    <string name="comments">Komentari</string>
    <string name="shout_hint">Upišite komentar (engleski, 5 + riječi)</string>
    <string name="shout_invalid">Vaš komentar ne slijedi pravila!</string>
    <string name="action_post">Objava</string>
    <string name="isspoiler">Pažnja! Spojler!</string>
    <string name="no_shouts">Budi prvi koji će povikati!</string>
    <string name="refresh">Osvježi</string>
    <plurals name="replies_plural">
        <item quantity="one">%d odgovor</item>
        <item quantity="few">%d odgovora</item>
        <item quantity="other">%d odgovora</item>
    </plurals>

    <string name="episode_number_disk">DVD</string>
    <string name="episode_firstaired">Datum emitiranja</string>
    <string name="episode_firstaired_unknown">Datum emitiranja nepoznat</string>
    <string name="episode_dvdnumber">DVD epizoda</string>
    <string name="original_release">Originalno izdanje</string>
    <string name="show_genres">Žanrovi</string>
    <string name="show_contentrating">Ocjena sadržaja</string>
    <string name="show_release_times">Vrijeme emitiranja</string>
    <string name="episode_directors">Režiseri</string>
    <string name="episode_gueststars">Gostujući glumci</string>
    <string name="episode_writers">Scenaristi</string>
    <string name="show_isalive">Nastavlja se</string>
    <string name="show_isnotalive">Završilo</string>
    <string name="show_isUpcoming">Nadolazeće</string>
    <string name="show_status_in_production">In Production</string>
    <string name="show_status_pilot">Pilot</string>
    <string name="show_status_canceled">Canceled</string>
    <string name="no_translation">Nema prevedenog opisa za %1$s dostupnoh na %2$s.</string>
    <string name="no_translation_title">Nije prevedeno</string>
    <string name="no_spoilers">Neki detalji su skriveni kako bi se spriječili spojleri. Ovo možete isključiti u postavkama.</string>
    <string name="format_source">Izvor: %s</string>
    <string name="last_updated">Last updated</string>

    <string name="today">danas</string>
    <string name="now">sada</string>
    <string name="daily">Dnevno</string>
    <string name="runtime_minutes">%s min</string>

    <string name="mark_all">Sve pogledano</string>
    <string name="unmark_all">Ništa nije pogledano</string>
    <string name="action_watched_up_to">Pogledano do ovdje</string>
    <string name="confirmation_watched_up_to">Postavi sve epizode do ove kao pogledane?</string>
    <string name="collect_all">Sve prikupljeno</string>
    <string name="uncollect_all">Ništa prikupljeno</string>
    <string name="action_skip">Preskoči</string>
    <string name="action_dont_skip">Nemoj preskočiti</string>
    <string name="action_collection_add">Dodaj u kolekciju</string>
    <string name="action_collection_remove">Ukloni iz kolekcije</string>
    <string name="action_watched">Pogledano</string>
    <string name="action_unwatched">Nije pogledano</string>
    <string name="state_watched">Pogledano</string>
    <string name="state_watched_multiple_format">Watched (%d)</string>
    <string name="state_skipped">Skipped</string>
    <string name="state_in_collection">In collection</string>
    <string name="state_on_watchlist">On watchlist</string>
    <string name="state_favorite">Favorite</string>

    <string name="confirm_delete">Zaista želite ukloniti %s?</string>
    <string name="delete_error">Nemoguće ukloniti seriju. Pokušajte kasnije.</string>
    <string name="delete_show">Izbriši</string>
    <string name="no_nextepisode">nije pronađena sljedeća epizoda</string>
    <string name="context_favorite">Dodaj u favorite</string>
    <string name="context_unfavorite">Ukloni iz favorita</string>
    <string name="favorited">Dodano u favorite</string>
    <string name="unfavorited">Uklonjeno iz favorita</string>
    <string name="action_episode_notifications_on">Uključi obavijesti za epizode</string>
    <string name="action_episode_notifications_off">Isključi obavijesti za epizode</string>
    <string name="context_hide">Sakrij</string>
    <string name="context_unhide">Otkrij</string>
    <string name="hidden">Sakrivena serija</string>
    <string name="unhidden">Prikazana serija</string>
    <string name="action_shows_add">Dodaj seriju</string>
    <string name="action_shows_filter">Filtriraj serije</string>
    <string name="empty_filter">Ukloni sve filtere</string>
    <string name="action_shows_filter_favorites">Favoriti</string>
    <string name="action_shows_filter_unwatched">Nije pogledano</string>
    <string name="action_shows_filter_upcoming">Nadolazeće</string>
    <string name="action_shows_filter_hidden">Skriveno</string>
    <string name="state_shows_filter_disabled">Disabled</string>
    <string name="state_shows_filter_included">Included</string>
    <string name="state_shows_filter_excluded">Excluded</string>
    <string name="action_shows_make_all_visible">Postavi sve skrivene kao vidljive</string>
    <string name="description_make_all_visible_format">Prikaži ponovno sve (%s) skrivene serije?</string>
    <string name="action_shows_sort">Sortiraj serije</string>
    <string name="action_shows_sort_title">Naslov</string>
    <string name="action_shows_sort_latest_episode">Zadnja epizoda</string>
    <string name="action_shows_sort_oldest_episode">Najstarija epizoda</string>
    <string name="action_shows_sort_last_watched">Zadnje pogledano</string>
    <string name="action_shows_sort_remaining">Preostalo epizoda</string>
    <string name="action_shows_sort_status">Status</string>
    <string name="action_shows_sort_favorites">Lista favorita</string>
    <string name="context_updateshow">Ažuriraj</string>
    <string name="context_marknext">Pogledana sljedeća epizoda</string>
    <string name="action_episodes_switch_view">Promijeni pogled</string>
    <string name="next_to_watch">Next to watch</string>

    <string name="user_stream">Povijest</string>
    <string name="recently_watched">Nedavno pogledano</string>
    <string name="friends_recently">Vaši trakt prijatelji</string>
    <string name="now_empty">Ništa se ne događa. Pogledajte neke serije!</string>
    <string name="now_movies_empty">Ništa se ne događa. Pogledajte neke filmove!</string>

    <string name="upcoming">Nadolazeće</string>
    <string name="recent">Nedavno</string>
    <string name="released_today">Danas objavljeno</string>
    <string name="noupcoming">Nema nadolazećih epizoda.</string>
    <string name="norecent">Nema nedavnih epizoda.</string>
    <string name="calendar_settings">Postavke kalendara</string>
    <string name="only_favorites">Samo favoriti</string>
    <string name="calendar_only_collected">Samo prikupljene epizode</string>
    <string name="calendar_only_premieres">Samo premijere</string>
    <string name="pref_infinite_scrolling">Beskonačni kalendar</string>

    <string name="update_scheduled">Ažuriranje…</string>
    <string name="update_no_connection">Poveži se na internet za ažuriranje.</string>
    <string name="update_inprogress">Ažuriranje u tijeku, pokušajte kasnije.</string>

    <string name="season_allwatched">Sve epizode su pogledane</string>
    <plurals name="other_episodes_plural">
        <item quantity="one">%d epizoda je ostala</item>
        <item quantity="few">%d epizoda je ostalo</item>
        <item quantity="other">%d epizode su ostale</item>
    </plurals>
    <plurals name="not_released_episodes_plural">
        <item quantity="one">%d će biti objavljena</item>
        <item quantity="few">%d će biti objavljeno</item>
        <item quantity="other">%d će biti objavljene</item>
    </plurals>
    <plurals name="remaining_episodes_plural">
        <item quantity="one">%d preostalo</item>
        <item quantity="few">%d preostalo</item>
        <item quantity="other">%d preostalo</item>
    </plurals>

    <string name="checkin_searchhint">Upiši naziv serije</string>
    <string name="add_empty">Ovdje ne postoje serije.</string>
    <string name="no_results">Nema rezultata, pokušajte cijele riječi.</string>
    <string name="empty_show_search">Nije pronađeno u vašem popisu serija</string>
    <string name="action_try_again">Pokušaj ponovno</string>
    <string name="tvdb_error_does_not_exist">The show does not exist (yet) on TMDB. Try again later.</string>
    <string name="add_all">Dodaj sve</string>
    <string name="add_multiple">Sve serije uskoro će se pojaviti na tvom popisu serija.</string>
    <string name="add_started">%s će se ubrzo pojaviti na vašem popisu serija.</string>
    <string name="add_error">Neuspješno dodavanje %s.</string>
    <string name="add_already_exists">%s je već u vašoj listi serija.</string>
    <string name="title_new_episodes">Nove epizode</string>
    <string name="watched_shows">Pogledano</string>
    <string name="shows_collection">Zbirka</string>
    <string name="watchlist">Popis gledanja</string>

    <string name="empty_no_results">Nema rezultata</string>
    <string name="title_similar_shows">Slične serije</string>

    <string name="first_list">Prvi popis</string>
    <string name="list_add">Dodaj popis</string>
    <string name="list_title_hint">Nazovi svoj popis</string>
    <string name="list_remove">Ukloni popis</string>
    <string name="list_manage">Uredi popis</string>
    <string name="list_item_manage">Uredi popise</string>
    <string name="list_item_remove">Ukloni s popisa</string>
    <string name="list_empty">You can add shows to this list</string>
    <string name="action_lists_sort">Sortiraj popise</string>
    <string name="action_lists_reorder">Promijeni redoslijed popisa</string>
    <string name="error_name_already_exists">Popis sa ovim nazivom već postoji</string>

    <string name="title_discover">Otkrij</string>
    <string name="title_popular">Popularno</string>
    <string name="title_digital_releases">Digitalna izdanja</string>
    <string name="title_disc_releases">Disk izdanja</string>
    <string name="movies_in_theatres">U kinima</string>
    <string name="movies_collection">Zbirka</string>
    <string name="movies_watchlist">Popis gledanja</string>
    <string name="movies_watched">Pogledano</string>
    <string name="watchlist_add">Dodaj na popis gledanja</string>
    <string name="watchlist_remove">Ukloni s popisa gledanja</string>
    <string name="watchlist_added">Dodano na popis gledanja</string>
    <string name="watchlist_removed">Uklonjeno s popisa gledanja</string>
    <string name="movies_search_hint">Upiši naslov filma</string>
    <string name="movies_collection_empty">Niste dodali filmove u svoju kolekciju.</string>
    <string name="movies_watchlist_empty">Niste dodali filmove u svoj popis filmova.</string>
    <string name="trailer">Trailer</string>
    <string name="movie_cast">Uloge</string>
    <string name="movie_crew">Ekipa</string>
    <string name="action_movies_sort">Kratki filmovi</string>
    <string name="action_movies_sort_title">Naslov</string>
    <string name="action_movies_sort_release">Datum emitiranja</string>
    <string name="action_movies_filter">Filter movies</string>

    <string name="statistics_failed">Nije moguće izračunati statistike.</string>
    <string name="shows_finished">%s finished watching</string>
    <string name="shows_with_next">%s sa sljedećim epizodama</string>
    <string name="shows_continuing">%s se nastavlja</string>
    <string name="episodes_watched">%s pogledano</string>
    <string name="movies_on_watchlist">%s na popisu gledanja</string>
    <string name="stats_in_collection_format">%d in collection</string>
    <string name="movies_watched_format">%s pogledano</string>
    <plurals name="days_plural">
        <item quantity="one">%d dan</item>
        <item quantity="few">%d dana</item>
        <item quantity="other">%d dana</item>
    </plurals>
    <plurals name="hours_plural">
        <item quantity="one">%d sat</item>
        <item quantity="few">%d sati</item>
        <item quantity="other">%d sati</item>
    </plurals>
    <plurals name="minutes_plural">
        <item quantity="one">%d minuta</item>
        <item quantity="few">%d minuta</item>
        <item quantity="other">%d minuta</item>
    </plurals>

    <string name="feature_supported">Podržano</string>
    <string name="feature_not_supported">Nije podržano</string>
    <string name="feature_history">Osobna povijest i povijest prijatelja</string>
    <string name="feature_comments">Komentari objava</string>
    <string name="feature_sync">Sinkronizacija</string>

    <string name="hexagon_warning">Eksperimentalno</string>
    <string name="hexagon_description">SeriesGuide Oblak vam pomaže sigurnosno kopirati i sinkronizirati vaše serije, popise i filmove.</string>
    <string name="hexagon_warning_trakt">Dok ste prijavljeni na SeriesGuide Oblak neke trakt značajke nisu dostupne.</string>
    <string name="hexagon_signin">Prijava</string>
    <string name="hexagon_signout">Odjava</string>
    <string name="hexagon_setup_incomplete">Postavljanje SeriesGuide oblaka nije dovršena.</string>
    <string name="hexagon_setup_fail_auth">Your account does not have an email address</string>
    <string name="hexagon_remove_account">Ukloni račun</string>
    <string name="hexagon_remove_account_success">Račun je izbrisan.</string>
    <string name="hexagon_remove_account_failure">Nije moguće izbrisati račun.</string>
    <string name="hexagon_remove_account_confirmation">Uklanjanjem svog računa će te izbrisati sve serije i filmove sa SeriesGuide Oblaka. Ne zaboravite ih ukloniti i sa ostalih povezanih uređaja.</string>
    <string name="hexagon_api_queued">Slanje na SeriesGuide oblak.</string>
    <string name="hexagon_signed_out">Odjavljeni ste sa SeriesGuide oblaka.</string>
    <string name="hexagon_signin_fail_format">Error with sign-in (%s)</string>
    <string name="hexagon_signin_google_only">Email address requires Google Sign-In</string>

    <string name="trakt_submitqueued">Poslano na trakt.</string>
    <string name="checkin_success_trakt">Prijavljen u %s na traktu.</string>
    <string name="checkin_canceled_success_trakt">Otkazana prijava na trakt.</string>
    <string name="traktcheckin_cancel">Zamijeni</string>
    <string name="traktcheckin_inprogress">Već si prijavljen u drugu epizodu ili film. Ili zamijeni prošlu prijavu ili pričekaj %s i pokušaj ponovno.</string>
    <string name="traktcheckin_wait">Pričekat ću</string>
    <string name="trakt_success">Poslano na trakt.</string>
    <string name="trakt_error_account_locked">Your Trakt account is locked. Contact Trakt support.</string>
    <string name="trakt_error_credentials">Nešto je pošlo po zlu. Provjerite svoje podatke i pokušajte ponovno.</string>
    <string name="trakt_error_not_exists">Nije dostupno na trakt (još). Pokušajte ponovno kasnije.</string>
    <string name="trakt_notice_not_exists">Nije moguće povezivanje sa trakt-om (još).</string>

    <string name="connect_trakt">Poveži trakt</string>
    <string name="trakt_reconnect">Poveži SeriesGuide sa trakt-om</string>
    <string name="trakt_reconnect_details">Provjerite svoje trakt podatke</string>
    <string name="waitplease">Trenutak, molim…</string>
    <string name="connect">Poveži</string>
    <string name="disconnect">Odspoji</string>
    <string name="use_integrated_browser">Koristi ugrađeni preglednik</string>
    <string name="show_library">Add shows from Trakt</string>
    <string name="about_trakt">trakt vam pomaže pratiti koje serije i filmove gledate. Saznajte više</string>

    <string name="action_rate">Ocijeni</string>
    <string name="your_rating">Tvoja ocjena</string>
    <string name="love">Zakon!</string>
    <string name="hate">Jadno :(</string>
    <string name="rating2">Grozno</string>
    <string name="rating3">Loše</string>
    <string name="rating4">Slabo</string>
    <string name="rating5">Bezveze</string>
    <string name="rating6">U redu</string>
    <string name="rating7">Dobro</string>
    <string name="rating8">Odlično</string>
    <string name="rating9">Sjajno</string>
    <plurals name="votes">
        <item quantity="one">%d glas</item>
        <item quantity="few">%d glasova</item>
        <item quantity="other">%d glasa</item>
    </plurals>

    <string name="checkin">Prijavi se</string>
    <string name="checkin_hint">Napiši poruku (neobavezno)</string>
    <string name="paste_title">Zalijepi naziv</string>
    <string name="pref_quick_checkin">Brza provjera</string>
    <string name="pref_quick_checkin_summary">Ne pitaj za provjeru u poruci</string>

    <string name="feedback">Pošalji povratne informacije</string>
    <string name="action_open_in_browser">Otvori u pregledniku</string>

    <string name="action_translate">Translate this app</string>
    <string name="action_contribute_content">Translate or improve content</string>
    <string name="prefs_category_advanced">Napredno</string>
    <string name="prefs_category_about">O aplikaciji</string>
    <string name="pref_onlyfuture">Nema emitiranih epizoda</string>
    <string name="pref_onlyfuturesummary">Nikada ne prikazuj već pogledane epizode</string>
    <string name="pref_onlyseasoneps">Sakrij posebne epizode</string>
    <string name="pref_onlyseasonepssummary">Posebne epizode nestaju svugdje osim na popisu sezona</string>
    <string name="pref_exactdates">Prikaži točne datume</string>
    <string name="pref_exactdates_summary">\"31 listopad\" umjesto \"za 3 dana\"</string>
    <string name="pref_nospoilers">Spriječi spojlere</string>
    <string name="pref_nospoilers_summary">Sakrij detalje dok epizoda nije pogledana</string>
    <string name="pref_seasonsorting">Poredaj sezone prema…</string>
    <string name="pref_episodesorting">Poredaj epizode prema…</string>
    <string name="pref_language">Preferirani jezik sadržaja</string>
    <string name="pref_language_fallback">Alternativni jezik</string>
    <string name="pref_updatewifionly">Slike samo putem Wi-Fi mreže</string>
    <string name="pref_updatewifionlysummary">Kako bi smanjili potrošnju podataka, nemojte preuzimati preko mobilnih mreža</string>
    <string name="pref_error_reports">Report errors to app developer</string>
    <plurals name="days_before_plural">
        <item quantity="one">%d dan prije</item>
        <item quantity="few">%d dana prije</item>
        <item quantity="other">%d dana prije</item>
    </plurals>
    <plurals name="hours_before_plural">
        <item quantity="one">%d sat prije</item>
        <item quantity="few">%d sati prije</item>
        <item quantity="other">%d sati prije</item>
    </plurals>
    <plurals name="minutes_before_plural">
        <item quantity="one">%d minuta prije</item>
        <item quantity="few">%d minuta prije</item>
        <item quantity="other">%d minuta prije</item>
    </plurals>

    <string name="privacy_policy">Pravila privatnosti</string>
    <string name="licence_themoviedb">Ovaj proizvod koristi TMDb API, ali nije odobrenio ili ovjeren od strane TMDb.</string>
    <string name="licence_trakt">Ova aplikacija koristi podatke i slike sa trakt-a.</string>
    <string name="about_open_source">SeriesGuide je izgrađen korištenjem softvera otvorenog koda.</string>
    <string name="licences_and_credits">Licence i zahvale</string>

    <string name="sort">Sortiraj po</string>
    <string name="action_sort_ignore_articles">Ignoriraj članke</string>

    <string name="sort_order_latest_first">Prvo zadnje</string>
    <string name="sort_order_oldest_first">Prvo najstarije</string>
    <string name="sort_order_unwatched_first">Nepogledane prve</string>
    <string name="sort_order_alphabetical">A-Z</string>
    <string name="sort_order_top_rated_first">Najbolje ocijenjene</string>
    <string name="sort_order_latest_first_dvd">Prvo zadnje (DVD)</string>
    <string name="sort_order_oldest_first_dvd">Prvo najstarije (DVD)</string>

    <string name="pref_upcominglimit">Nadolazeći raspon</string>
    <string name="upcoming_upto_now">sada</string>
    <string name="upcoming_upto_one_day">1 dana</string>
    <string name="upcoming_upto_three_days">3 dana</string>
    <string name="upcoming_upto_one_week">tjedna</string>
    <string name="upcoming_upto_two_weeks">2 tjedna</string>
    <string name="upcoming_upto_one_month">1 mjeseca</string>
    <string name="upcoming_all">all</string>

    <string name="pref_appearance">Izgled</string>
    <string name="pref_theme">Tema</string>
    <string name="pref_dynamic_colors">Use system colors</string>

    <string name="theme_app_follow_system">Koristi sustavski zadano</string>
    <string name="theme_app_auto_battery">Postavi s Štednjom Baterije</string>
    <string name="theme_app_dark">Tamna</string>
    <string name="theme_app_light">Svijetla</string>

    <string name="pref_other">Ostalo</string>
    <string name="pref_autoupdatesummary">Automatski sinkronizirajte i ažurirajte SeriesGuide podatke</string>
    <string name="backup">Sigurnosno kopiranje/vraćanje</string>
    <string name="backup_summary">Napravi sigurnosnu kopiju ili obnovi svoje serije</string>
    <string name="pref_number">Format broja</string>
    <string name="pref_offset">Ručno podešavanje vremenske razlike</string>
    <string name="pref_offsetsummary">Razlika u emitiranju %d sati</string>
    <string name="clear_cache">Očisti predmemoriju slika</string>
    <string name="clear_cache_summary">Uklonite sve slike iz predmemorije vašeg uređaja</string>

    <string name="backup_full_dump">Uključi opise, detalje i ocjene</string>
    <string name="backup_failed_file_access">Nije moguće stvoriti sigur. kopiju. Datoteka sigur. kopije nije pronađena ili je nedostupna.</string>
    <string name="backup_success">Sigurnosna kopija uspjela.</string>
    <string name="backup_failed">Sigurnosna kopija nije uspjela.</string>
    <string name="import_failed_nosd">Nije moguće vratiti sigur. kopiju. Mapa sigurnosne kopije nije dostupna.</string>
    <string name="import_failed_nofile">Nema učitljive sigurnosne kopije.</string>
    <string name="import_success">Sigurnosna kopija uspješno vraćena.</string>
    <string name="import_failed">Vraćanje sigurnosne kopije nije uspjelo.</string>
    <string name="backup_button">Stvori sigurnosnu kopiju</string>
    <string name="import_button">Obnovi</string>
    <string name="import_warning">Razumijem da će moje trenutačne serije i popisi biti zamijenjeni!</string>
    <string name="no_file_selected">Nije odabrana niti jedna datoteka</string>
    <string name="action_select_file">Odaberi datoteku</string>

    <string name="pref_autobackup">Automatska sigurnosna kopija</string>
    <string name="pref_autobackupsummary">Tjedno sigurnosno kopiranje vaših serija, popisa i filmova</string>
    <string name="autobackup_details">Ove sigurnosne kopije su nedostupne ako se aplikacija ponovo instalira, osim ako je sigurnosna kopija aplikacije uključena za ovaj uređaj (Android 6+). Uprotivnom napravite kopije kako bi ste ih sačuvali.</string>
    <string name="last_auto_backup">Posljednja automatska Sigurnosna kopija: %s</string>
    <string name="restore_auto_backup">Vrati automatsku sigurnosnu kopiju</string>
    <string name="autobackup_failed">Zadnja automatska sigurnosna kopija je neuspješna.</string>
    <string name="autobackup_files_missing">Kako bi koristili automatsko sigur. kopiranje, odaberite valjane datoteke sigur. kopije.</string>
    <string name="autobackup_create_user_copy">Napravi kopiju poslije svake sigurnosne kopije</string>
    <string name="autobackup_restore_available">Možda je dostupna automatska sigurnosna kopija iz koje se može vratit</string>

    <string name="get_started">Prvi koraci</string>
    <string name="dismiss">Odbaci</string>

    <string name="upcoming_episodes_number">%s novih epizoda</string>
    <string name="more">%d više</string>
    <string name="upcoming_display">Odaberite za prikaz nadolazećih emisija</string>
    <string name="pref_notifications">Obavijesti</string>
    <string name="pref_notificationssummary">Obavijesti o novim epizodama</string>
    <string name="pref_ringtone">Zvuk obavijesti</string>
    <string name="pref_vibrate">Vibriraj</string>
    <string name="pref_vibratesummary">Također vibriraj pri prikazu obavijesti</string>
    <string name="pref_notifications_treshold">Kada obavijestiti</string>
    <string name="pref_notifications_select_shows">Odaberi serije</string>
    <string name="pref_notifications_select_shows_summary">Serije za koje su obavijesti omogućene (%d)</string>
    <string name="pref_notifications_hidden">Ignoriraj skrivene shows</string>
    <string name="pref_notifications_hidden_summary">Nemoj obaviještavati o skrivenim shows čak i ako su obavijesti omogućene</string>
    <string name="pref_notification_channel_errors">Pogreške</string>
    <string name="pref_notifications_next_episodes_only">Samo za episodes koje se slijedće gledaju</string>
    <string name="pref_notifications_next_episodes_only_summary">Obavijesti samo ako je nova episode sljedeća za gledanje</string>
    <string name="pref_notifications_battery_settings">Battery settings</string>
    <string name="pref_notifications_battery_settings_summary">Go to Battery settings to disable battery optimizations for reliable notifications</string>

    <string name="hide_watched">Sakrij pogledane epizode</string>
    <string name="pref_widget_opacity">Pozadina widgeta</string>
    <string name="pref_widget_type">Tip widgeta</string>
    <string name="pref_large_font">Koristi veliki font</string>
    <string name="pref_hide_watch_button">Hide watch button</string>

    <string name="widget_background_transparent">Prozirno</string>
    <string name="widget_background_25">25%</string>
    <string name="widget_background_50">50%</string>
    <string name="widget_background_75">75%</string>
    <string name="widget_background_opaque">Neprozirna</string>

    <string name="onlyx">Samo za podršku</string>
    <string name="action_upgrade">Otključaj sve značajke</string>
    <string name="billing_action_subscribe">Pretplati se</string>
    <string name="billing_action_manage_subscriptions">Upravljanje pretplatama</string>
    <string name="billing_action_pass">Nabavi X Pass App</string>
    <string name="billing_duration_format">%1$s/godišnje</string>
    <string name="billing_sub_description">Try for 30 days, cancel any time.</string>
    <string name="billing_price_pass">Jednokratna kupnja</string>
    <string name="upgrade_description">Every subscription unlocks all features and supports future updates. A subscription is not required to use this app.</string>
    <string name="upgrade_success">Hvala vam što podržavate SeriesGuide! Sada imate pristup svim značajkama.</string>
    <string name="billing_unlock_detected">X Pass app detected. You may still subscribe to support future updates.</string>
    <string name="billing_learn_more">More info and help</string>
    <string name="subscription_expired">Pretplata istekla</string>
    <string name="subscription_expired_details">Tvoja pretplata na X mogućnosti je istekla.</string>

    <string name="subscription_not_signed_in">Prijavite se na svoj Amazon račun!</string>
    <string name="subscription_unavailable">Pretplata trenutno nije dostupna.</string>
    <string name="subscription_failed">Kupnja nije dovršena.</string>
    <string name="pass_unavailable">X Pass trenutno nije dostupan.</string>

    <string name="action_extensions_configure">Prilagodi proširenja</string>
    <string name="action_extensions_add">Dodavanje proširenja</string>
    <string name="action_extensions_search">Nabavi više proširenja</string>
    <string name="action_extension_remove">Izbriši</string>
    <string name="extension_amazon">Amazon pretraživanje</string>
    <string name="description_extension_amazon">Pretraži lokalnu Amazon stranicu</string>
    <string name="pref_amazon_domain">Amazon stranica</string>
    <string name="extension_google_play">Google Play pretraživanje</string>
    <string name="description_extension_google_play">Pretraži Google Play Trgovinu</string>
    <string name="extension_youtube">Pretraži YouTube</string>
    <string name="description_extension_youtube">Pretraga YouTube videa</string>
    <string name="description_extension_web_search">Traži za web stranice i slike</string>

    <string name="person_biography">Životopis</string>

    <string name="feedback_question_enjoy">Sviđa li vam se SeriesGuide?</string>
    <string name="feedback_action_yes">Da!</string>
    <string name="feedback_action_notreally">Ne baš</string>
    <string name="feedback_question_rate_google">Ocijeniti na Google Playu?</string>
    <string name="feedback_question_rate_amazon">Ocijeniti na Amazonu?</string>
    <string name="feedback_question_feedback">Recite mi kako poboljšati?</string>
    <string name="feedback_action_ok">U redu, naravno</string>
    <string name="feedback_action_nothanks">Ne, hvala</string>

    <string name="support_the_dev">Support the developer?</string>
</resources>


text:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<TITLE>
gr.forth.ics.jbenchy.impl.derby (Aggregator Reference)
</TITLE>

<META NAME="date" CONTENT="2010-11-15">

<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../../stylesheet.css" TITLE="Style">

gr.forth.ics.jbenchy.impl.derby

Classes

ConnectionString

ConnectionString.EmbeddedConnectionString

ConnectionString.RemoteConnectionString

DerbyFactory


text:
package com.webfirmframework.wffweb.tag.core;

/**
 * @author WFF
 *
 */
public abstract class AbstractTagBase implements TagBase {

    private static final long serialVersionUID = 1_0_0L;

    private volatile boolean rebuild = true;

    private volatile boolean modified;

    private volatile Object data;

    /**
     * @return the rebuild
     * @since 1.0.0
     * @author WFF
     */
    public boolean isRebuild() {
        return rebuild;
    }

    /**
     * @param rebuild the rebuild to set
     * @since 1.0.0
     * @author WFF
     */
    public void setRebuild(final boolean rebuild) {
        this.rebuild = rebuild;
    }

    @Override
    public int hashCode() {
        return super.hashCode();
    }

    @Override
    public boolean equals(final Object obj) {
        return super.equals(obj);
    }

    /**
     * @return the modified true if the current objects state is modified
     * @since 1.0.0
     * @author WFF
     */
    public boolean isModified() {
        return modified;
    }

    /**
     * set true whenever this object's state is modified.
     *
     * @param modified the modified to set
     * @since 1.0.0
     * @author WFF
     */
    public void setModified(final boolean modified) {
        this.modified = modified;
    }

    /**
     * Gets the given data set by {@code setData}. This is merely a getter-setter
     * methods of data property. The developer can set and get any data using these
     * methods.
     *
     * @return the data set by {@code setCode} method.
     * @since 2.1.4
     * @author WFF
     */
    public Object getData() {
        return data;
    }

    /**
     * Sets the given data. This is merely a getter-setter methods of data property.
     * The developer can set and get any data using these methods.
     *
     * @param data
     * @since 2.1.4
     * @author WFF
     */
    public void setData(final Object data) {
        this.data = data;
    }

}


text:
<?php namespace Email;

use Presenter;
use Response;
use Session;

class Controller_Login extends \Fuel\Core\Controller
{
    function before()
    {
        \SabcSession::force_https_on_production();

        parent::before();
    }

	function action_index()
	{
		return Presenter::forge('login');
	}

	function action_bad_login()
	{
		return Presenter::forge('login','login_error');
	}

	function action_logout()
	{
		Auth::logout();
		Response::redirect('/email/');
	}

	function action_test()
	{
		session_start();
		return '<pre>'.print_r(Session::get(),true)."\n\nSession: ".print_r($_SESSION,true);
	}

}


text:
require "#{File.dirname(__FILE__)}/spec_setup"
require 'rack/cache/storage'

describe 'Rack::Cache::Storage' do
  before do
    @storage = Rack::Cache::Storage.new
  end

  it "fails when an unknown URI scheme is provided" do
    lambda { @storage.resolve_metastore_uri('foo:/') }.should.raise
  end
  it "creates a new MetaStore for URI if none exists" do
    @storage.resolve_metastore_uri('heap:/').
      should.be.kind_of Rack::Cache::MetaStore
  end
  it "returns an existing MetaStore instance for URI that exists" do
    store = @storage.resolve_metastore_uri('heap:/')
    @storage.resolve_metastore_uri('heap:/').should.be.same_as store
  end
  it "creates a new EntityStore for URI if none exists" do
    @storage.resolve_entitystore_uri('heap:/').
      should.be.kind_of Rack::Cache::EntityStore
  end
  it "returns an existing EntityStore instance for URI that exists" do
    store = @storage.resolve_entitystore_uri('heap:/')
    @storage.resolve_entitystore_uri('heap:/').should.be.same_as store
  end
  it "clears all URI -> store mappings with #clear" do
    meta = @storage.resolve_metastore_uri('heap:/')
    entity = @storage.resolve_entitystore_uri('heap:/')
    @storage.clear
    @storage.resolve_metastore_uri('heap:/').should.not.be.same_as meta
    @storage.resolve_entitystore_uri('heap:/').should.not.be.same_as entity
  end

  describe 'Heap Store URIs' do
    %w[heap:/ mem:/].each do |uri|
      it "resolves #{uri} meta store URIs" do
        @storage.resolve_metastore_uri(uri).
          should.be.kind_of Rack::Cache::MetaStore
      end
      it "resolves #{uri} entity store URIs" do
        @storage.resolve_entitystore_uri(uri).
          should.be.kind_of Rack::Cache::EntityStore
      end
    end
  end

  describe 'Disk Store URIs' do
    before do
      @temp_dir = create_temp_directory
    end
    after do
      remove_entry_secure @temp_dir
      @temp_dir = nil
    end

    %w[file: disk:].each do |uri|
      it "resolves #{uri} meta store URIs" do
        @storage.resolve_metastore_uri(uri + @temp_dir).
          should.be.kind_of Rack::Cache::MetaStore
      end
      it "resolves #{uri} entity store URIs" do
        @storage.resolve_entitystore_uri(uri + @temp_dir).
          should.be.kind_of Rack::Cache::EntityStore
      end
    end
  end

  if have_memcached?

    describe 'MemCache Store URIs' do
      %w[memcache: memcached:].each do |scheme|
        it "resolves #{scheme} meta store URIs" do
          uri = scheme + '//' + ENV['MEMCACHED']
          @storage.resolve_metastore_uri(uri).
            should.be.kind_of Rack::Cache::MetaStore
        end
        it "resolves #{scheme} entity store URIs" do
          uri = scheme + '//' + ENV['MEMCACHED']
          @storage.resolve_entitystore_uri(uri).
            should.be.kind_of Rack::Cache::EntityStore
        end
      end
      it 'supports namespaces in memcached: URIs' do
        uri = "memcached://" + ENV['MEMCACHED'] + "/namespace"
        @storage.resolve_metastore_uri(uri).
           should.be.kind_of Rack::Cache::MetaStore
      end
    end

  end

end


text:
<?php

namespace Drupal\layout_builder\Controller;

use Drupal\Core\Block\BlockManagerInterface;
use Drupal\Core\DependencyInjection\ContainerInjectionInterface;
use Drupal\Core\Url;
use Drupal\layout_builder\Context\LayoutBuilderContextTrait;
use Drupal\layout_builder\SectionStorageInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;

/**
 * Defines a controller to choose a new block.
 *
 * @internal
 */
class ChooseBlockController implements ContainerInjectionInterface {

  use AjaxHelperTrait;
  use LayoutBuilderContextTrait;

  /**
   * The block manager.
   *
   * @var \Drupal\Core\Block\BlockManagerInterface
   */
  protected $blockManager;

  /**
   * ChooseBlockController constructor.
   *
   * @param \Drupal\Core\Block\BlockManagerInterface $block_manager
   *   The block manager.
   */
  public function __construct(BlockManagerInterface $block_manager) {
    $this->blockManager = $block_manager;
  }

  /**
   * {@inheritdoc}
   */
  public static function create(ContainerInterface $container) {
    return new static(
      $container->get('plugin.manager.block')
    );
  }

  /**
   * Provides the UI for choosing a new block.
   *
   * @param \Drupal\layout_builder\SectionStorageInterface $section_storage
   *   The section storage.
   * @param int $delta
   *   The delta of the section to splice.
   * @param string $region
   *   The region the block is going in.
   *
   * @return array
   *   A render array.
   */
  public function build(SectionStorageInterface $section_storage, $delta, $region) {
    $build['#type'] = 'container';
    $build['#attributes']['class'][] = 'block-categories';

    $definitions = $this->blockManager->getDefinitionsForContexts($this->getAvailableContexts($section_storage));
    foreach ($this->blockManager->getGroupedDefinitions($definitions) as $category => $blocks) {
      $build[$category]['#type'] = 'details';
      $build[$category]['#open'] = TRUE;
      $build[$category]['#title'] = $category;
      $build[$category]['links'] = [
        '#theme' => 'links',
      ];
      foreach ($blocks as $block_id => $block) {
        $link = [
          'title' => $block['admin_label'],
          'url' => Url::fromRoute('layout_builder.add_block',
            [
              'section_storage_type' => $section_storage->getStorageType(),
              'section_storage' => $section_storage->getStorageId(),
              'delta' => $delta,
              'region' => $region,
              'plugin_id' => $block_id,
            ]
          ),
        ];
        if ($this->isAjax()) {
          $link['attributes']['class'][] = 'use-ajax';
          $link['attributes']['data-dialog-type'][] = 'dialog';
          $link['attributes']['data-dialog-renderer'][] = 'off_canvas';
        }
        $build[$category]['links']['#links'][] = $link;
      }
    }
    return $build;
  }

}