text:
package org.apache.syncope.core.persistence.dao;

import java.util.List;

import org.apache.syncope.core.persistence.beans.Entitlement;
import org.apache.syncope.core.persistence.beans.role.SyncopeRole;
import org.apache.syncope.core.persistence.validation.entity.InvalidEntityException;

public interface EntitlementDAO extends DAO {

    Entitlement find(String name);

    List<Entitlement> findAll();

    Entitlement save(Entitlement entitlement) throws InvalidEntityException;

    Entitlement saveEntitlementRole(SyncopeRole role);

    void delete(String name);

    void delete(Entitlement entitlement);
}


text:
"""
@version: 0.1
@author: wenzhiquan
@contact: wenzhiquanr@163.com
@site: http://github.wenzhiquan.com
@software: PyCharm
@file: UHCF.py
@time: 15/12/7 15:16
@description: null
"""
from datetime import datetime
from config import config
from math import sqrt, log, e
from lib import stdLib

class UHCF(object):
    def __init__(self):
        self.userDict = dict()  # 用于存放用户及其偏好的dictionary
        self.userPreferRateDict = dict()  # 用于存放用户及其各个标签偏好比率的dictionary
        self.timeIntervalDict = dict()
        self.ratingTimesDict = dict()
        self.now = datetime(2016, 5, 17)  # datetime.utcnow()
        self.userQualityDict = stdLib.loadData(config.userQualityDict)
        # self.timeInterval()
        # self.ratingTimes()

    # 生成用户偏好的函数
    def generaUserPrefer(self):
        print 'UHCF starting...'
        ratings = open(config.ratingWithLabelFile)
        data = ratings.readlines()
        length = len(data)
        ratings.close()

        count = 0.0
        for i in data:
            count += 1
            # self.labelPreferCalRatingTimes(i)  # 根据打分次数进行惩罚
            self.labelPreferCal(i)  # 根据打分时间进行惩罚
            if count % int(length * config.percentage) == 0:
                print '%f%%' % (count * 100 / (length))
        # self.labelPreferRate()
        # self.userDict = dict()
        # for i in data:
        #     count += 1
        #     self.labelPreferCal(i, False)
        #     if count % int(length * config.percentage) == 0:
        #         print '%f%%' % (count * 100 / (length * 2))
        # 对用户标签偏好进行归一化
        for i in self.userDict:
            maxV = minV = self.userDict[i][0]
            for j in range(1, config.labelLength):
                if self.userDict[i][j] > maxV:
                    maxV = self.userDict[i][j]
                if self.userDict[i][j] < minV:
                    minV = self.userDict[i][j]
            for j in range(config.labelLength):
                self.userDict[i][j] = (self.userDict[i][j] - minV) / (maxV - minV)

        outfile = config.userPreferFile
        out = open(outfile, 'w')
        for i in self.userDict:
            result = ""
            for j in range(config.labelLength):
                if j in self.userDict[i]:
                    result += str(self.userDict[i][j]) + config.subSeparator
                else:
                    result += '0|'
            out.write(i + config.separator + result[:-1] + '\n')
        out.close()

        print 'finished...'
        return 0

    def labelPreferCal(self, line, isFirst = True):
        tmp = line[:-1].split(config.separator)
        userId = tmp[0]
        # movieId = tmp[1]
        grade = float(tmp[2])
        rateTime = datetime.utcfromtimestamp(float(tmp[3]))
        T = (self.now - rateTime).days  # 不进行时间窗口的移动
        # T = (self.now - rateTime - self.timeIntervalDict[userId]).days + 1  # 将打分时间距今的时间转换为天数
        labels = tmp[4]
        labelArr = labels.split(config.subSeparator)
        labelLen = 0  # 电影所含的标签数量
        for i in labelArr:
            if i == '1':
                labelLen += 1

        if isFirst is True:  # 是否为第一次进行训练,是否需要基于偏好进行在训练
            aGrade = grade / labelLen  # 每个标签的平均得分 TODO:按照用户以前生成的偏好对不同标签进行偏置

        self.userDict.setdefault(userId, {})

        # 对每个标签进行time hot算法的计算,得出每个标签的得分
        for j in range(config.labelLength):
            self.userDict[userId].setdefault(j, 0)
            if labelArr[j] == '1':
                if isFirst is False:
                    aGrade = grade * self.userPreferRateDict[userId][j]
                if self.userQualityDict[userId] == 0:
                    self.userDict[userId][j] += aGrade
                else:
                    self.userDict[userId][j] += aGrade  # / pow(T + config.delta, config.G)

    def labelPreferCalRatingTimes(self, line):
        tmp = line[:-1].split(config.separator)
        userId = tmp[0]
        grade = float(tmp[2])
        T = self.ratingTimesDict[userId]
        labels = tmp[4]
        labelArr = labels.split(config.subSeparator)
        labelLen = 0  # 电影所含的标签数量
        for i in labelArr:
            if i == '1':
                labelLen += 1

        aGrade = grade / labelLen  # 每个标签的平均得分

        self.userDict.setdefault(userId, {})

        for j in range(config.labelLength):
            self.userDict[userId].setdefault(j, 0)
            if labelArr[j] == '1':
                self.userDict[userId][j] += aGrade / pow(T + config.delta, config.G)
        self.ratingTimesDict[userId] -= 1

    # 在训练时为每个标签计算评分
    def labelPreferRate(self):
        allRate = 0.0
        for user in self.userDict:
            for j in range(config.labelLength):
                    allRate += self.userDict[user][j]
            for j in range(config.labelLength):
                self.userPreferRateDict.setdefault(user, {})
                self.userPreferRateDict[user].setdefault(j, 0.0)
                self.userPreferRateDict[user][j] = self.userDict[user][j] / allRate

    def simCalculate(self):
        read = open(config.userPreferFile, 'r')
        data = read.readlines()
        length = len(data)
        print 'user amount %d' % length
        userMatrix = {}
        print 'similarity calculating......'
        count = 0.0
        # 根据用户偏好计算用户之间的相似度
        for i in data:
            count += 1
            tmp_i = i[:-1].split(config.separator)
            userIID = tmp_i[0]
            iLabelArr = tmp_i[1].split(config.subSeparator)
            userMatrix.setdefault(userIID, [])
            calculateDict = {}  # 存放计算出的相似度结果的dictionary
            for j in data:
                tmp_j = j[:-1].split(config.separator)
                userJID = tmp_j[0]
                if userJID == userIID:
                    continue
                else:
                    jLabelArr = tmp_j[1].split(config.subSeparator)
                    average_i = 0  # 存放用户i的评分均值
                    average_j = 0  # 存放用户j的评分均值
                    for m in range(config.labelLength):
                        average_i += float(iLabelArr[m])
                        average_j += float(jLabelArr[m])
                    average_i /= config.labelLength
                    average_j /= config.labelLength
                    fractions = 0
                    numerator_x = 0
                    numerator_y = 0
                    # 根据皮尔森算法公式进行相似度计算
                    for m in range(config.labelLength):
                        x = float(iLabelArr[m])
                        y = float(jLabelArr[m])
                        fractions += (x - average_i) * (y - average_j)
                        numerator_x += (x - average_i) ** 2
                        numerator_y += (y - average_j) ** 2
                    result = fractions / sqrt(numerator_x * numerator_y)
                    calculateDict.setdefault(userJID, result)
            # 将所有的相似度进行降序排列
            sortedSimGrade = sorted(calculateDict.iteritems(), key=lambda d: d[1], reverse=True)
            for m in range(config.n):
                userMatrix[userIID].append(sortedSimGrade[m])
            if count % int(length * config.percentage) == 0:
                print '%.3f%%' % (count * 100 / length)
        outfile = config.userSimMatrix
        stdLib.dumpData(userMatrix, outfile)

        print 'finished......'

    def timeInterval(self):
        print 'calculating time interval......'
        filename = config.ratingWithLabelFile
        read = open(filename, 'r')
        data = read.readlines()
        read.close()

        initTime = datetime.utcfromtimestamp(0)

        for i in data:
            tmp = i[:-1].split(config.separator)
            userId = tmp[0]
            time = datetime.utcfromtimestamp(float(tmp[3]))
            self.timeIntervalDict.setdefault(userId, initTime)
            if time > self.timeIntervalDict[userId]:
                self.timeIntervalDict[userId] = time

        for userId in self.timeIntervalDict:
            self.timeIntervalDict[userId] = self.now - self.timeIntervalDict[userId]

    def ratingTimes(self):
        filename = config.ratingWithLabelFile
        read = open(filename, 'r')
        data = read.readlines()
        read.close()

        for i in data:
            tmp = i[:-1].split(config.separator)
            userId = tmp[0]
            self.ratingTimesDict.setdefault(userId, 0)
            self.ratingTimesDict[userId] += 1

redpajama_set_name: RedPajamaGithub


text:
ACCEPTED

#### According to
The Catalogue of Life, 3rd January 2011

#### Published in
null

#### Original name
Alloplectus zamorensis Linden & André

### Remarks
null


text:
The Bashscript-Postfix-Dovecot-Autoinstall script automagically configures a remote Ubuntu or Debian linux Server.

##Usage
Please read this before executing the script.
TODO Make a guide for using this script


text:
package org.amc.game.chessserver;

import static org.junit.Assert.*;
import static org.mockito.Mockito.*;

import org.amc.dao.SCGDAOInterface;
import org.amc.game.chess.ChessGamePlayer;
import org.amc.game.chess.Colour;
import org.amc.game.chess.HumanPlayer;
import org.amc.game.chess.RealChessGamePlayer;
import org.junit.Before;
import org.junit.Test;
import org.mockito.Mock;
import org.mockito.MockitoAnnotations;
import org.springframework.mock.web.MockHttpSession;
import org.springframework.test.web.ModelAndViewAssert;
import org.springframework.web.HttpSessionRequiredException;
import org.springframework.web.servlet.ModelAndView;

public class NewNetworkChessGameControllerChessAppPageTest {
    private MockHttpSession session;
    private NewNetworkChessGameController controller;
    private ChessGamePlayer whitePlayer;

    @Mock
    private SCGDAOInterface sCGDAO;

    @Before
    public void setUp() throws Exception {
        MockitoAnnotations.initMocks(this);
        ServerChessGameFactory scgFactory = new ServerChessGameFactory();
        session = new MockHttpSession();
        controller = new NewNetworkChessGameController();
        controller.setServerChessGameDAO(sCGDAO);

        controller.setServerChessGameFactory(scgFactory);
        whitePlayer = new RealChessGamePlayer(new HumanPlayer("Ted"), Colour.WHITE);
    }

    @Test
    public void testPlayerAvailable() {
        session.setAttribute(ServerConstants.PLAYER.toString(), whitePlayer);
        ModelAndView mav = controller.chessGameApplication(session, whitePlayer);
        assertNotNull(session.getAttribute(ServerConstants.PLAYER.toString()));
        ModelAndViewAssert.assertModelAttributeAvailable(mav, ServerConstants.GAMEMAP.toString());
        ModelAndViewAssert.assertViewName(mav,
        		GameControllerHelper.CHESS_APPLICATION_PAGE);
    }

    @Test
    public void handleMissingSessionAttributesTest() {
        HttpSessionRequiredException hsre = mock(HttpSessionRequiredException.class);
        when(hsre.getMessage()).thenReturn("Mock Exception");
        String view = controller.handleMissingSessionAttributes(hsre);
        assertEquals(GameControllerHelper.TWOVIEW_REDIRECT_PAGE, view);
    }
}


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

<!-- Copyright (c) 2015 University of Szeged.
     Copyright (c) 2015 The Chromium Authors.
     All rights reserved.
     Use of this source code is governed by a BSD-style license that can be
     found in the LICENSE file.
 -->

<clip xmlns:android="http://schemas.android.com/apk/res/android">
    <shape>
        <solid android:color="@android:color/holo_blue_light" />
    </shape>
</clip>


text: module.exports = window.ReactRouter;


text:
soco.data_structures module
===========================

.. automodule:: soco.data_structures
    :member-order: bysource
    :members:


text:
<!DOCTYPE HTML>
<html>
	<head>
		<meta charset="utf-8">
		<title>Leukippos SynBio App-pedia</title>
		<link rel="stylesheet" href="css/main.css">
	</head>

	<body style="text-align: center;">
		<div id="page">
			Leukippos SynBio App Selector
			<canvas id="stage" ></canvas>
			<script src="js/tabletop.js" type="text/javascript"></script>
			<script src="js/preloader.js" type="text/javascript"></script>
			<script src="js/input.js" type="text/javascript"></script>
			<script src="js/renderer.js" type="text/javascript"></script>
			<script src="js/methods.js" type="text/javascript"></script>
			<script src="js/main.js" type="text/javascript"></script>
		</div>
	</body>
</html>


text:
unsigned long crc32(unsigned char const *data, int length);

#endif // __CRC_H


text:
title: j
layout: dict_litera
morse: • ‒ ‒ ‒
pho: Juliet
---
> Mam pożar i niebezpieczny ładunek na statku, trzymajcie się z dala.


text:
<page-title title="Combat Report Detail" message="Welcome to the combat reports detail view."></page-title>

{{name}} - Turn {{entry.turn}}

{{info.fleet.name}} - {{info.fleet.combat.loseCount}} of {{info.fleet.combat.unitCount}}

{{name}}

{{line}}

Name	Type	Shield	Hull

{{unit.general.name}}	{{unit.general.type}}	{{unit.shield.current}}/{{unit.shield.max}}	{{unit.hull.current}}/{{unit.hull.max}}


text:
package com.project.mobilesafe.activities;

import android.app.Activity;
import android.content.ContentResolver;
import android.content.Context;
import android.content.Intent;
import android.database.Cursor;
import android.net.Uri;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.view.View;
import android.widget.AdapterView;
import android.widget.LinearLayout;
import android.widget.ListView;

import com.project.mobilesafe.R;
import com.project.mobilesafe.activities.adapter.ContactAdapter;
import com.project.mobilesafe.beans.ContactInfo;

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

import butterknife.Bind;
import butterknife.ButterKnife;

/**
 * 功能:显示安全号码界面
 * Created by danke on 2017/4/21.
 */

public class ContactActivity extends Activity {

    @Bind(R.id.lv_contact)
    ListView mListView;
    @Bind(R.id.ll_loading)
    LinearLayout llLoading;
    @Bind(R.id.ll_no_data)
    LinearLayout llNoData;
    private List<ContactInfo> mContactList;
    private static final int READ_SUCCEED = 1;
    private static final int READ_EMPTY = 2;

    private ContactAdapter mAdapter;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_contact);
        ButterKnife.bind(this);

        mContactList = new ArrayList<>();
        mAdapter = new ContactAdapter(this);
        mListView.setAdapter(mAdapter);
        mListView.setOnItemClickListener(new AdapterView.OnItemClickListener() {
            @Override
            public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
                if (mContactList != null && mContactList.size() > 0) {
                    Intent intent = new Intent();
                    intent.putExtra("phone", mContactList.get(position).getPhone());
                    setResult(RESULT_OK, intent);
                    finish();
                }
            }
        });
        getContacts();
    }

    private Handler mHandler = new Handler() {
        @Override
        public void handleMessage(Message msg) {
            llLoading.setVisibility(View.GONE);
            switch (msg.what) {
                case READ_SUCCEED:
                    mAdapter.setList(mContactList);
                    break;
                case READ_EMPTY:
                    llNoData.setVisibility(View.VISIBLE);
                    break;
            }
            super.handleMessage(msg);
        }
    };

    /**
     * 获取联系人列表
     */
    private void getContacts() {
        new Thread(new Runnable() {
            @Override
            public void run() {
                Message message = Message.obtain();
                ContentResolver resolver = getContentResolver();
                Uri rawContactsUri = Uri.parse("content://com.android.contacts/raw_contacts");
                Uri dataUri = Uri.parse("content://com.android.contacts/data");
                // 查找出有多少个联系人
                Cursor rcCursor = resolver.query(rawContactsUri, new String[]{"contact_id"}, null, null, null);
                if (rcCursor != null) {
                    while (rcCursor.moveToNext()) {
                        // 获取联系人的id
                        String contact_id = rcCursor.getString(0);
                        // 根据联系人的id,查找联系人的数据
                        Cursor dataCursor = resolver.query(dataUri, new String[]{"mimetype", "data1"}, "raw_contact_id=?", new String[]{contact_id}, null);
                        if (dataCursor != null) {
                            ContactInfo contactInfo = new ContactInfo();
                            while (dataCursor.moveToNext()) {
                                String mimetype = dataCursor.getString(0);
                                String data1 = dataCursor.getString(1);
                                if ("vnd.android.cursor.item/name".equals(mimetype)) {
                                    contactInfo.setName(data1);
                                } else if ("vnd.android.cursor.item/phone_v2".equals(mimetype)) {
                                    contactInfo.setPhone(data1);
                                }
                            }
                            dataCursor.close();

                            mContactList.add(contactInfo);
                            message.what = READ_SUCCEED;
                        } else {
                            message.what = READ_EMPTY;
                        }
                    }
                    rcCursor.close();
                } else {
                    message.what = READ_EMPTY;
                }

                mHandler.sendMessage(message);
            }
        }).start();
    }

    public static void startForResult(Context context, int requestCode) {
        ((Activity)context).startActivityForResult(new Intent(context, ContactActivity.class), requestCode);
    }
}


text:
namespace LldbApi
{
    // Interface mirrors the SBBreakpointLocation API as closely as possible.
    public interface SbBreakpointLocation
    {
        // Enable / disable the breakpoint.
        void SetEnabled(bool enabled);

        // Get the parent breakpoint.
        SbBreakpoint GetBreakpoint();

        // Get the breakpoint location's ID.
        int GetId();

        // Get the SbAddress of the breakpoint location.
        SbAddress GetAddress();

        // Get the address in memory of the breakpoint location.
        ulong GetLoadAddress();

        // Set or change the condition associated to this breakpoint location.
        void SetCondition(string condition);

        // Set the breakpoint location to ignore the next |ignoreCount| hits.
        void SetIgnoreCount(uint ignoreCount);

        // Get number of times the breakpoint location was already hit.
        uint GetHitCount();
    }
}


text:
<!DOCTYPE refentry [ <!ENTITY % mathent SYSTEM "math.ent"> %mathent; ]>

<!-- Converted by db4-upgrade version 1.1 -->

<refentry xmlns="http://docbook.org/ns/docbook" version="5.0" xml:id="glCompileShader">
    <info>
        <copyright>
            <year>2003-2005</year>
            <holder>3Dlabs Inc. Ltd.</holder>
        </copyright>
        <copyright>
            <year>2010-2014</year>
            <holder>Khronos Group</holder>
        </copyright>
    </info>
    <refmeta>
        <refentrytitle>glCompileShader</refentrytitle>
        <manvolnum>3G</manvolnum>
    </refmeta>
    <refnamediv>
        <refname>glCompileShader</refname>
        <refpurpose>Compiles a shader object</refpurpose>
    </refnamediv>
    <refsynopsisdiv><title>C Specification</title>
    <funcsynopsis>
        <funcprototype>
        <funcdef>void <function>glCompileShader</function></funcdef>
        <paramdef>GLuint <parameter>shader</parameter></paramdef>
        </funcprototype>
    </funcsynopsis>
    </refsynopsisdiv>
    <refsect1 xml:id="parameters"><title>Parameters</title>
    <variablelist>
        <varlistentry>
        <term><parameter>shader</parameter></term>
        <listitem>
            <para>Specifies the shader object to be
            compiled.</para>
        </listitem>
        </varlistentry>
    </variablelist>
    </refsect1>
    <refsect1 xml:id="description"><title>Description</title>
    <para><function>glCompileShader</function> compiles the source
    code strings that have been stored in the shader object
    specified by <parameter>shader</parameter>.</para>

    <para>The compilation status will be stored as part of the
    shader object's state. This value will be set to
    <constant>GL_TRUE</constant> if the shader was compiled without
    errors and is ready for use, and <constant>GL_FALSE</constant>
    otherwise. It can be queried by calling
    <citerefentry><refentrytitle>glGetShader</refentrytitle></citerefentry>
    with arguments <parameter>shader</parameter> and
    <constant>GL_COMPILE_STATUS</constant>.</para>

    <para>Compilation of a shader can fail for a number of reasons
    as specified by the OpenGL Shading Language Specification.
    Whether or not the compilation was successful, information about
    the compilation can be obtained from the shader object's
    information log by calling
    <citerefentry><refentrytitle>glGetShaderInfoLog</refentrytitle></citerefentry>.</para>
    </refsect1>
    <refsect1 xml:id="errors"><title>Errors</title>
    <para><constant>GL_INVALID_VALUE</constant> is generated if
    <parameter>shader</parameter> is not a value generated by
    OpenGL.</para>

    <para><constant>GL_INVALID_OPERATION</constant> is generated if
    <parameter>shader</parameter> is not a shader object.</para>

    </refsect1>
    <refsect1 xml:id="associatedgets"><title>Associated Gets</title>
    <para><citerefentry><refentrytitle>glGetShaderInfoLog</refentrytitle></citerefentry>
    with argument <parameter>shader</parameter></para>

    <para><citerefentry><refentrytitle>glGetShader</refentrytitle></citerefentry>
    with arguments <parameter>shader</parameter> and
    <constant>GL_COMPILE_STATUS</constant></para>
    <para><citerefentry><refentrytitle>glIsShader</refentrytitle></citerefentry></para>
    </refsect1>
    <refsect1 xml:id="versions"><title>Version Support</title>
        <informaltable>
            <tgroup cols="13" align="left">
                <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="apifunchead.xml" xpointer="xpointer(/*/*)"/>
                <tbody>
                    <row>
                        <entry><function>glCompileShader</function></entry>
                        <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="apiversion.xml" xpointer="xpointer(/*/*[@role='20']/*)"/>
                    </row>
                </tbody>
            </tgroup>
        </informaltable>
    </refsect1>
    <refsect1 xml:id="seealso"><title>See Also</title>
    <para><citerefentry><refentrytitle>glCreateShader</refentrytitle></citerefentry>,
    <citerefentry><refentrytitle>glLinkProgram</refentrytitle></citerefentry>,
    <citerefentry><refentrytitle>glShaderSource</refentrytitle></citerefentry></para>
    </refsect1>
    <refsect1 xml:id="Copyright"><title>Copyright</title>
        <para>
            Copyright <trademark class="copyright"/> 2003-2005 3Dlabs Inc. Ltd.
            Copyright <trademark class="copyright"/> 2010-2014 Khronos Group.
            This material may be distributed subject to the terms and conditions set forth in
            the Open Publication License, v 1.0, 8 June 1999.
            <link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://opencontent.org/openpub/">http://opencontent.org/openpub/</link>.
        </para>
    </refsect1>
</refentry>


text:
#ifndef STAN_MATH_PRIM_ERR_IS_SQUARE_HPP
#define STAN_MATH_PRIM_ERR_IS_SQUARE_HPP

#include <stan/math/prim/fun/Eigen.hpp>
#include <stan/math/prim/meta.hpp>
#include <stan/math/prim/err/is_size_match.hpp>

namespace stan {
namespace math {

/**
 * Return true if the matrix is square. This check allows 0x0
 * matrices.
 * @tparam EigMat A type derived from `EigenBase`
 * @param y Matrix to test
 * @return true if matrix is square
 */
template <typename EigMat, require_eigen_t<EigMat>* = nullptr>
inline bool is_square(const EigMat& y) {
  return is_size_match(y.rows(), y.cols());
}

}  // namespace math
}  // namespace stan
#endif


text:
/****************************************************************************
 * Address Environment Interfaces
 *
 * Low-level interfaces used in binfmt/ to instantiate tasks with address
 * environments.  These interfaces all operate on type group_addrenv_t which
 * is an abstract representation of a task group's address environment and
 * must be defined in arch/arch.h if CONFIG_ARCH_ADDRENV is defined.
 *
 *   up_addrenv_create   - Create an address environment
 *   up_addrenv_destroy  - Destroy an address environment.
 *   up_addrenv_vtext    - Returns the virtual base address of the .text
 *                         address environment
 *   up_addrenv_vdata    - Returns the virtual base address of the .bss/.data
 *                         address environment
 *   up_addrenv_heapsize - Returns the size of the initial heap allocation.
 *   up_addrenv_select   - Instantiate an address environment
 *   up_addrenv_restore  - Restore an address environment
 *   up_addrenv_clone    - Copy an address environment from one location to
 *                         another.
 *
 * Higher-level interfaces used by the tasking logic.  These interfaces are
 * used by the functions in sched/ and all operate on the thread which whose
 * group been assigned an address environment by up_addrenv_clone().
 *
 *   up_addrenv_attach   - Clone the address environment assigned to one TCB
 *                         to another.  This operation is done when a pthread
 *                         is created that share's the same group address
 *                         environment.
 *   up_addrenv_detach   - Release the thread's reference to an address
 *                         environment when a task/thread exits.
 *
 * CONFIG_ARCH_STACK_DYNAMIC=y indicates that the user process stack resides
 * in its own address space.  This options is also *required* if
 * CONFIG_BUILD_KERNEL and CONFIG_LIBC_EXECFUNCS are selected.  Why?
 * Because the caller's stack must be preserved in its own address space
 * when we instantiate the environment of the new process in order to
 * initialize it.
 *
 * NOTE: The naming of the CONFIG_ARCH_STACK_DYNAMIC selection implies that
 * dynamic stack allocation is supported.  Certainly this option must be set
 * if dynamic stack allocation is supported by a platform.  But the more
 * general meaning of this configuration environment is simply that the
 * stack has its own address space.
 *
 * If CONFIG_ARCH_STACK_DYNAMIC=y is selected then the platform specific
 * code must export these additional interfaces:
 *
 *   up_addrenv_ustackalloc  - Create a stack address environment
 *   up_addrenv_ustackfree   - Destroy a stack address environment.
 *   up_addrenv_vustack      - Returns the virtual base address of the stack
 *   up_addrenv_ustackselect - Instantiate a stack address environment
 *
 * If CONFIG_ARCH_KERNEL_STACK is selected, then each user process will have
 * two stacks:  (1) a large (and possibly dynamic) user stack and (2) a
 * smaller kernel stack.  However, this option is *required* if both
 * CONFIG_BUILD_KERNEL and CONFIG_LIBC_EXECFUNCS are selected.  Why?  Because
 * when we instantiate and initialize the address environment of the new
 * user process, we will temporarily lose the address environment of the old
 * user process, including its stack contents.  The kernel C logic will crash
 * immediately with no valid stack in place.
 *
 * If CONFIG_ARCH_KERNEL_STACK=y is selected then the platform specific
 * code must export these additional interfaces:
 *
 *   up_addrenv_kstackalloc  - Create a stack in the kernel address environment
 *   up_addrenv_kstackfree   - Destroy the kernel stack.
 *   up_addrenv_vkstack      - Return the base address of the kernel stack
 *
 ****************************************************************************/

/****************************************************************************
 * Included Files
 ****************************************************************************/

#include <nuttx/config.h>

#include <errno.h>
#include <assert.h>
#include <debug.h>

#include <nuttx/sched.h>
#include <nuttx/kmalloc.h>
#include <nuttx/addrenv.h>
#include <nuttx/arch.h>

#include "addrenv.h"

#if defined(CONFIG_ARCH_ADDRENV) && defined(CONFIG_ARCH_KERNEL_STACK)

/****************************************************************************
 * Pre-processor Definitions
 ****************************************************************************/

/****************************************************************************
 * Private Data
 ****************************************************************************/

/****************************************************************************
 * Private Functions
 ****************************************************************************/

/****************************************************************************
 * Public Functions
 ****************************************************************************/

/****************************************************************************
 * Name: up_addrenv_kstackalloc
 *
 * Description:
 *   This function is called when a new thread is created to allocate
 *   the new thread's kernel stack.   This function may be called for certain
 *   terminating threads which have no kernel stack.  It must be tolerant of
 *   that case.
 *
 * Input Parameters:
 *   tcb - The TCB of the thread that requires the kernel stack.
 *
 * Returned Value:
 *   Zero (OK) on success; a negated errno value on failure.
 *
 ****************************************************************************/

int up_addrenv_kstackalloc(FAR struct tcb_s *tcb)
{
  bvdbg("tcb=%p stacksize=%u\n", tcb, ARCH_KERNEL_STACKSIZE);

  DEBUGASSERT(tcb && tcb->xcp.kstack == 0);

  /* Allocate the kernel stack */

  tcb->xcp.kstack = (FAR uint32_t *)kmm_memalign(8, ARCH_KERNEL_STACKSIZE);
  if (!tcb->xcp.kstack)
    {
      bdbg("ERROR: Failed to allocate the kernel stack\n");
      return -ENOMEM;
    }

  return OK;
}

/****************************************************************************
 * Name: up_addrenv_kstackfree
 *
 * Description:
 *   This function is called when any thread exits.  This function frees
 *   the kernel stack.
 *
 * Input Parameters:
 *   tcb - The TCB of the thread that no longer requires the kernel stack.
 *
 * Returned Value:
 *   Zero (OK) on success; a negated errno value on failure.
 *
 ****************************************************************************/

int up_addrenv_kstackfree(FAR struct tcb_s *tcb)
{
  bvdbg("tcb=%p\n", tcb);
  DEBUGASSERT(tcb);

  /* Does the exiting thread have a kernel stack? */

  if (tcb->xcp.kstack)
    {
      /* Yes.. Free the kernel stack */

      kmm_free(tcb->xcp.kstack);
      tcb->xcp.kstack = NULL;
    }

  return OK;
}

#endif /* CONFIG_ARCH_ADDRENV && CONFIG_ARCH_KERNEL_STACK */


text:
<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:tools="http://schemas.android.com/tools">
    <!-- basics -->
    <string name="detail">Upplýsingar</string>
    <string name="search">Leit</string>
    <string name="helpers">Hjálparöpp</string>
    <string name="about">Um c:geo</string>
    <string name="latitude">Breiddargráða</string>
    <string name="longitude">Lengdargráða</string>
    <!-- actionbar -->
    <string name="settings_titlebar">Stillingar fyrir c:geo</string>
    <!-- caches -->
    <string name="all_types">Allar cache týpur</string>
    <string name="traditional">Hefðbundið cache</string>
    <string name="multi">Halarófu-cache</string>
    <string name="mystery">Ráðgátucache</string>
    <string name="letterbox">Letterbox blendingur</string>
    <string name="event">Viðburðar-cache</string>
    <string name="mega">Stórviðburðar-cache</string>
    <string name="cito">Staðsetja cache, fjarlægja rusl - viðburður</string>
    <string name="webcam">Vefmyndavélar cache</string>
    <string name="virtual">Sýndarfjársjóður</string>
    <string name="wherigo">Wherigo fjársjóður</string>
    <string name="ape">Fjársjóður APE verkefnisins</string>
    <string name="unknown">Tegund ókunn</string>
    <!-- cache sizes -->
    <string name="cache_size_micro">Örsmátt</string>
    <string name="cache_size_small">Lítið</string>
    <string name="cache_size_regular">Meðalstórt</string>
    <string name="cache_size_large">Stórt</string>
    <string name="cache_size_other">Annað</string>
    <string name="cache_size_virtual">Sýndar</string>
    <string name="cache_size_notchosen">Ekki valið</string>
    <string name="cache_size_unknown">Óþekkt</string>
    <string name="cache_size_very_large">Risastórt</string>
    <!-- waypoints -->
    <string name="wp_final">Áfangastaður</string>
    <string name="wp_puzzle">Spurningar</string>
    <string name="wp_pkg">Bílastæði</string>
    <string name="wp_trailhead">Byrjun slóða</string>
    <string name="wp_waypoint">Viðmiðunarpunktur</string>
    <string name="wp_original">Upprunanleg hnit</string>
    <!-- waypoints short names for new waypoints -->
    <!-- logs -->
    <string name="log_found">Fundið</string>
    <string name="log_dnf">Fannst ekki</string>
    <string name="log_note">Skrifa orðsendingu</string>
    <string name="log_published">Opinberað</string>
    <string name="log_enabled">Virkt</string>
    <string name="log_disabled">Óvirkt</string>
    <string name="log_attend">Tek þátt</string>
    <string name="log_attended">Tók þátt</string>
    <string name="log_retrieved">Fjarlægt</string>
    <string name="log_placed">Komið fyrir</string>
    <string name="log_grabbed">Tekinn einhversstaðar</string>
    <string name="log_movecollection">Færa í safn</string>
    <string name="log_moveinventory">Taka í vörslu</string>
    <string name="log_maintained">Viðhald hefur farið fram</string>
    <string name="log_maintenance_needed">Þarfnast viðhalds</string>
    <string name="log_update">Uppfærð staðsetningarhnit</string>
    <string name="log_archived">Í geymslu</string>
    <string name="log_unarchived">Úr geymslu</string>
    <string name="log_needs_archived">Þarfnast geymslu</string>
    <string name="log_discovered">Uppgötvað</string>
    <string name="log_submit_for_review">Setja í skoðun</string>
    <string name="log_marked_missing">Vantar merki</string>
    <string name="log_tb_nothing">Sleppa aðgerð</string>
    <string name="log_tb_visit">Heimsótt</string>
    <string name="log_tb_drop">Skilið eftir</string>
    <string name="log_tb_changeall">Breyta öllu</string>
    <string name="log_tb_note">Athugasemd</string>
    <string name="log_tb_archived">Í geymslu</string>
    <string name="log_saving">Færsla í innsendingu…</string>
    <string name="log_posting_log">Set færslu inn…</string>
    <string name="log_posting_twitter">Set tíst inn…</string>
    <string name="log_posting_generic_trackable">Set inn %1$s %2$d/%3$d</string>
    <string name="log_clear">Hreinsa</string>
    <string name="log_post_not_possible">Niðurhal gagna er í gangi…\nVinsamlegast reyndu aftur eftir nokkrar sekúndur eða skoðaðu internet tenginguna þína.</string>
    <string name="log_date_future_not_allowed">Dagsetningar í framtíðinni eru ekki leyfðar.</string>
    <string name="log_add">Bæta við</string>
    <string name="log_repeat">Endurtaka síðustu færslu</string>
    <string name="log_no_rating">Engin einkunn gefin</string>
    <string name="log_stars_1_description">Óspennandi</string>
    <string name="log_stars_15_description">Frekar óspennandi</string>
    <string name="log_stars_2_description">Undir meðallagi</string>
    <string name="log_stars_25_description">Allt í lagi</string>
    <string name="log_stars_3_description">Í meðallagi</string>
    <string name="log_stars_35_description">Ágætt</string>
    <string name="log_stars_4_description">Yfir meðallagi</string>
    <string name="log_stars_45_description">Mjög spennandi</string>
    <string name="log_stars_5_description">Frábært</string>
    <string name="log_webcam">Mynd tekin með vefmyndavél</string>
    <string name="log_new_log">Skrá færslu</string>
    <string name="log_new_log_text">Settu inn færslu</string>
    <string name="log_announcement">Tilkynning</string>
    <string name="log_today">Í dag</string>
    <string name="log_yesterday">Í gær</string>
    <string name="log_smilies">Broskarlar</string>
    <string name="log_image">Mynd</string>
    <string name="log_image_attach">Festa mynd við</string>
    <string name="log_image_stored">úr safni</string>
    <string name="log_image_camera">Ný</string>
    <string name="log_image_caption">Fyrirsögn</string>
    <string name="log_image_description">Lýsing</string>
    <string name="log_image_scale">Breyta stærð</string>
    <string name="log_password_title">Lykilorð fyrir skráningu:</string>
    <string name="log_hint_log_password">Sláðu inn lykilorð fyrir skráningu</string>
    <string name="log_your_saved_log">Vistaða færslan þín</string>
    <string name="log_empty_logbook">Dagbók þessa kassa er tóm.</string>
    <string name="log_problem_needs_maintenance_label">Þarfnast viðhalds</string>
    <string name="log_problem_other_label">Annað</string>
    <!-- translation -->
    <string name="translate_to_sys_lang">Þýtt að %s</string>
    <string name="translate_to_english">Þýða yfir á ensku</string>
    <string name="translate_length_warning">Þýðing getur mistekist ef textinn er langur.</string>
    <!-- errors, warnings, info toasts -->
    <string name="err_server">Næ ekki sambandi við Geocaching.com. Síðan gæti legið niðri eða tækið ekki nettengt.</string>
    <string name="err_server_ec">Næ ekki sambandi við Extremcaching.com. Síðan gæti legið niðri eða tækið ekki nettengt.</string>
    <string name="err_server_gk">Gat ekki náð sambandi við GeoKrety.org. Vefsíðan gæti legið niðri eða internet tengingin þín virkar ekki.</string>
    <string name="err_login">Engar innskráningarupplýsingar vistaðar</string>
    <string name="err_login_failed_toast">c:geo getur ekki tengs. Vistuð cache virka í c:geo án netsambands. Athugaðu innskráningarstillingu eða opnaðu fyrir netsamband.</string>
    <string name="err_missing_auth">Ekkert notandanafn og/eða lykilorð skráð</string>
    <string name="err_wrong">Rangt notandanafn og/eða lykilorð</string>
    <string name="err_maintenance">Geocaching.com liggur niðri vegna viðhalds. Vistuð cache virka í c:geo án netsambands.</string>
    <string name="err_license">Þú hefur ekki samþykkt skilmála Geocaching.com svo c:geo getur ekki sýnt staðsetningarhnit cache-ins.</string>
    <string name="err_unvalidated_account">Þú verður fyrst að staðfesta aðgang þinn á Geocaching.com.</string>
    <string name="err_unpublished">Umbeðinn kassi hefur ekki verið birtur.</string>
    <string name="err_cache_not_found">Umbeðni kassinn fannst ekki.</string>
    <string name="err_premium_only">Þetta cache er eingöngu í boði fyrir Premium áskrifendur Geocaching.com.</string>
    <string name="err_detail_open">c:geo getur ekki opnað geocatch upplýsingar.</string>
    <string name="err_detail_cache">c:geo getur ekki sýnt geokassann sem þú vilt. Er þetta í alvörunni geokassi?</string>
    <string name="err_detail_cache_find">c:geo finnur ekki geocatch</string>
    <string name="err_detail_cache_find_some">c:geo finnur ekki þetta geocatch.</string>
    <string name="err_detail_cache_find_any">c:geo finnur ekki nein geocatch.</string>
    <string name="err_detail_still_working">Er enn að vinna í öðru verki.</string>
    <string name="err_application_no">c:geo finnur ekki forrit við hæfi.</string>
    <string name="err_auth_initialize">c:geo gat ekki upphafsstillt heimildarveitingarferlið.</string>
    <string name="err_download_fail">c:geo gat ekki náð í kassa.</string>
    <string name="err_load_descr_failed">c:geo getur ekki náð í lýsingu.</string>
    <string name="err_location_unknown">c:geo veit ekki staðsetningu kassans.</string>
    <string name="err_acquire_image_failed">Gat ekki náð í mynd.</string>
    <string name="err_tb_details_open">c:geo getur ekki opnað upplýsingar um ferðalang.</string>
    <string name="err_tb_not_loggable">Ekki er hægt að skrá færslu fyrir þennan ferðalang.</string>
    <string name="err_tb_find_that">c:geo getur ekki fundið þennan ferðalang.</string>
    <string name="err_point_bear_and_dist_title">Þarftu aðstoð?</string>
    <string name="err_point_bear_and_dist">Skráðu inn bæði legu og vegalengd. Lega er horn frá 0 til 360 gráðum frá norðri. Vegalengd þarfnast ekki mælieiningar.</string>
    <string name="err_log_load_data">c:geo gat ekki náð í nauðsynleg gögn til að skrá heimsókn þína.</string>
    <string name="err_log_post_missing_coordinates">Hnit vantar.</string>
    <string name="err_parse_lat">c:geo getur ekki þáttað lengdargráðu.</string>
    <string name="err_parse_lon">c:geo getur ekki þáttað breiddargráðu.</string>
    <string name="err_parse_dist">c:geo getur ekki þáttað vegalengd.</string>
    <string name="err_parse_lat_lon">c:geo getur hvorki þáttað lengdargráðu né breiddargráðu.</string>
    <string name="warn_save_nothing">Það er ekkert sem þarf að vista.</string>
    <string name="warn_no_coordinates">Engin hnit gefin.</string>
    <string name="warn_no_keyword">Lykilorð vantar.</string>
    <string name="warn_no_username">Notandanafn vantar.</string>
    <string name="warn_no_connector">Engin virk geocaching þjónusta býður upp á þessa leit.</string>
    <string name="warn_search_help_title">Þarftu aðstoð?</string>
    <string name="warn_log_text_fill">Settu inn einhvern texta í færsluna þína.</string>
    <string name="warn_load_images">c:geo gat ekki náð í myndir.</string>
    <string name="err_read_pocket_query_list">Villa kom upp við að lesa vasafyrirspurnarlista.</string>
    <string name="info_log_posted">c:geo hefur tekist að setja færsluna inn.</string>
    <string name="info_log_saved">c:geo hefur tekist að vista færsluna.</string>
    <string name="info_log_post_failed">Gat ekki sett færslu inn.</string>
    <string name="info_log_post_failed_reason">Ástæða: %s</string>
    <string name="info_log_post_retry">Reyna aftur</string>
    <string name="info_log_post_save">Vista utan netsambands</string>
    <string name="info_log_cleared">Færsla var hreinsuð.</string>
    <string name="confirm_unsaved_changes_title">Óvistaðar breytingar</string>
    <string name="confirm_discard_wp_changes">Henda óvistuðum breytingum á vörðum?</string>
    <!-- location service -->
    <string name="loc_last">Síðasta staðsetning</string>
    <string name="loc_net">Netkerfi</string>
    <string name="loc_fused">Sameinað</string>
    <string name="loc_low_power">Lítil orka</string>
    <string name="loc_home">Heimahnit</string>
    <string name="loc_sat">Gervitungl</string>
    <string name="loc_trying">Staðsetning í gangi</string>
    <string name="loc_no_addr">Óþekkt heimilisfang</string>
    <string name="loc_gps_disabled">GPS óvirkt</string>
    <!-- standard menu -->
    <string name="menu_about">Um c:geo</string>
    <string name="menu_settings">Stillingar</string>
    <string name="menu_history">Saga</string>
    <string name="menu_filter">Sía</string>
    <string name="menu_scan_geo">Skanna geokóða</string>
    <!-- main screen -->
    <string name="live_map_button">Virkt kort</string>
    <string name="caches_nearby_button">Í nánd</string>
    <string name="advanced_search_button">Leit</string>
    <string name="stored_caches_button">Vistað</string>
    <string name="any_button">Fara til</string>
    <!-- caches -->
    <string name="caches_no_cache">Engir kassar hér</string>
    <string name="caches_more_caches">Hlaða fleiri kössum</string>
    <string name="caches_more_caches_no">Ekki fleiri fjársjóðir</string>
    <string name="caches_more_caches_loading">Hleður inn fjársjóðum…</string>
    <string name="caches_more_caches_currently">nú</string>
    <string name="caches_downloading">Hleð niður kössum…\nTími eftir: </string>
    <string name="caches_eta_ltm">Minna en mínúta</string>
    <plurals name="caches_eta_mins">
        <item quantity="one">%d mínúta</item>
        <item quantity="other">%d mínútur</item>
    </plurals>
    <string name="caches_store_offline">Vista án nettengingar</string>
    <string name="caches_store_all">Geyma alla</string>
    <string name="caches_store_unsaved">Geyma óvistaða</string>
    <string name="caches_store_selected">Vista valið</string>
    <string name="caches_history">Ferill</string>
    <string name="caches_on_map">Sýna á korti</string>
    <string name="caches_sort">Flokka niður</string>
    <string name="caches_sort_distance">Fjarlægð</string>
    <string name="caches_sort_difficulty">Erfiðleikastig</string>
    <string name="caches_sort_terrain">Landslag</string>
    <string name="caches_sort_size">Stærð</string>
    <string name="caches_sort_favorites">Uppáhalds</string>
    <string name="caches_sort_favorites_ratio">Uppáhalds [%]</string>
    <string name="caches_sort_name">Nafn</string>
    <string name="caches_sort_geocode">Geokóði</string>
    <string name="caches_sort_rating">Einkunnagjöf</string>
    <string name="caches_sort_vote">Gefa einkunn</string>
    <string name="caches_sort_date_hidden">Hvenær komið fyrir</string>
    <string name="caches_sort_date_logged">Hvenær skráð</string>
    <string name="caches_sort_finds">Fundir</string>
    <string name="caches_sort_state">Staða</string>
    <string name="caches_sort_storage">Hvenær vistað í tæki</string>
    <string name="caches_sort_eventdate">Dagur viðburðar</string>
    <string name="caches_select_mode">Valstilling</string>
    <string name="caches_select_mode_exit">Fara úr valstillingu</string>
    <string name="caches_select_invert">Snúa vali við</string>
    <string name="caches_nearby">Í nánd</string>
    <string name="caches_delete_events">Eyða fyrri viðburðum</string>
    <string name="caches_refresh_selected">Uppfæra það sem er valið</string>
    <string name="caches_refresh_all">Uppfæra allt</string>
    <string name="caches_move_selected">Færa valið</string>
    <string name="caches_move_all">Færa allt</string>
    <string name="caches_copy_selected">Afrita valda</string>
    <string name="caches_copy_all">Afrita alla</string>
    <string name="caches_map_locus_export">Flytja út í Locus</string>
    <string name="caches_filter">Sía frá</string>
    <string name="caches_filter_title">Sía eftir</string>
    <string name="caches_filter_size">Stærð</string>
    <string name="caches_filter_type">Tegund</string>
    <string name="caches_filter_track">Með ferðagripum</string>
    <string name="caches_filter_clear">Hreinsa síanir</string>
    <string name="caches_filter_modified">Hefur breytt hnit</string>
    <string name="caches_filter_distance">Fjarlægð</string>
    <string name="caches_filter_popularity">Eftirlæti</string>
    <string name="caches_filter_popularity_ratio">Eftirlæti [%]</string>
    <string name="caches_filter_personal_data">Hefur persónuleg gögn</string>
    <string name="caches_removing_from_history">Fjarlægi af ferli…</string>
    <string name="caches_clear_offlinelogs">Hreinsa "án nets" færslur</string>
    <string name="caches_clear_offlinelogs_message">Viltu hreinsa "án nets" færslurnar?</string>
    <string name="caches_clear_offlinelogs_progress">Hreinsa "án nets" færslur</string>
    <!-- caches lists -->
    <string name="list_menu_create">Búa til nýjan lista</string>
    <string name="list_menu_drop">Fjarlægja núverandi lista</string>
    <string name="list_menu_rename">Endurnefna núverandi lista</string>
    <string name="list_menu_import">Innflytja</string>
    <string name="list_title">Veldu lista</string>
    <string name="list_inbox">Vistað</string>
    <string name="list_all_lists">Allir kassar</string>
    <string name="list_dialog_create_title">Nýr listi</string>
    <string name="list_dialog_create">Búa til</string>
    <string name="list_dialog_create_err">c:geo gat ekki búið til nýja listann</string>
    <string name="list_dialog_remove_title">Fjarlægja lista</string>
    <string name="list_dialog_remove_description">Viltu eyða þessum lista? Öll cache sem hann inniheldur verða færð í \"geymslu\".</string>
    <string name="list_dialog_remove_nowempty">Listinn er tómur. Viltu fjarlægja þennan lista?</string>
    <string name="list_dialog_remove">Eyða</string>
    <string name="list_dialog_rename_title">Endurnefna lista</string>
    <string name="list_dialog_rename">Endurnefna</string>
    <string name="list_not_available">Listi ekki lengur til, skipti í staðlaðan lista</string>
    <!-- caches lists filter -->
    <!-- about -->
    <string name="about_version">Útgáfa</string>
    <string name="about_changelog">Breytingaskrá</string>
    <string name="about_system">Kerfi</string>
    <string name="about_contributors">Þátttakendur</string>
    <string name="about_license">Leyfi</string>
    <string name="about_help">Hjálp</string>
    <string name="about_system_info_send_button">Senda með tölvupósti…</string>
    <string name="about_system_info">Kerfisupplýsingar c:geo</string>
    <string name="about_system_info_send_chooser">Senda kerfisupplýsingar</string>
    <string name="changelog_github">Listi af öllum breytingum</string>
    <!-- settings -->
    <string name="settings_title_open_settings">Opna stillingar?</string>
    <string name="settings_title_services">Þjónustur</string>
    <string name="settings_title_appearance">Útlit</string>
    <string name="settings_summary_appearance">Stilla mælieiningar, tungumál og liti á appi.</string>
    <string name="settings_title_cachedetails">Upplýsingar kassa</string>
    <string name="settings_title_map">kort</string>
    <string name="settings_title_map_data">Kortaupplýsingar</string>
    <string name="settings_title_map_content">Innihald korts</string>
    <string name="confirm_data_dir_move">Færsla geocache gagna gæti tekið mjög langan tíma, en það fer eftir tækinu þínu og magni gagna.</string>
    <string name="settings_title_system">Kerfi</string>
    <string name="settings_category_browser">Vafri</string>
    <string name="settings_category_social">Samfélagsmiðlar</string>
    <string name="settings_goto_url_button">meira …</string>
    <string name="settings_activate_gc">Virkja</string>
    <string name="settings_activate_ec">Virkja</string>
    <string name="settings_gc_legal_note">Með því að nota þjónustu geocaching.com, samþykkir þú notkunarskilmála Groundspeak.</string>
    <string name="settings_authorize">Veita c:geo umboð</string>
    <string name="settings_gc_description">Veita c:geo aðgang að geocaching.com til að leita að kössum.</string>
    <string name="settings_ec_description">Veita c:geo aðgang að extremcaching.com til að leita að kössum og skoða/sía þá kassa sem þú hefur fundið.</string>
    <string name="settings_su_description">Veita c:geo aðgang að geocaching.su til að leita að kössum.</string>
    <string name="settings_activate_oc">Virkja</string>
    <string name="init_summary_oc_de">Hlaða niður kössum frá opencaching.de</string>
    <string name="settings_activate_oc_pl">Virkja</string>
    <string name="init_summary_oc_pl">Hlaða niður kössum frá opencaching.pl</string>
    <string name="settings_activate_oc_nl">Virkja</string>
    <string name="init_summary_oc_nl">Hlaða niður kössum frá opencaching.nl</string>
    <string name="settings_activate_oc_us">Virkja</string>
    <string name="init_summary_oc_us">Hlaða niður kössum frá opencaching.us</string>
    <string name="settings_activate_oc_ro">Virkja</string>
    <string name="init_summary_oc_ro">Hlaða niður kössum frá opencaching.ro</string>
    <string name="settings_activate_oc_uk">Virkja</string>
    <string name="init_summary_oc_uk">Hlaða niður kössum frá opencache.uk</string>
    <string name="init_oc_uk_description">Veita c:geo aðgang að opencache.uk til að leita að kössum og skoða/sía þá kassa sem þú hefur fundið.</string>
    <string name="init_summary_su">Hlaða niður kössum frá Geocaching.su</string>
    <string name="settings_activate_su">Virkja</string>
    <string name="settings_activate_twitter">Virkja</string>
    <string name="init_login_popup">Skrá inn</string>
    <string name="init_login_popup_working">Innskráning í gangi…</string>
    <string name="init_login_popup_ok">Innskráning tókst</string>
    <string name="init_login_popup_failed">Innskráning mistókst</string>
    <string name="init_login_popup_failed_reason">Innskráning mistókst: %s</string>
    <string name="init_authorization_credential_username">Notandanafn</string>
    <string name="init_authorization_credential_password">Lykilorð</string>
    <string name="settings_navigation_disabled">Það lítur út fyrir að þetta app sé ekki uppsett</string>
    <string name="init_signature">Undirskrift</string>
    <string name="init_signature_template_button">Setja inn sniðmát</string>
    <string name="init_signature_template_date">Dagsetning</string>
    <string name="init_signature_template_time">Tími</string>
    <string name="init_signature_template_datetime">Dagsetning og tími</string>
    <string name="init_signature_template_user">Nafn þitt</string>
    <string name="init_signature_template_number">Númer</string>
    <string name="init_signature_template_owner">Eigandi</string>
    <string name="init_signature_template_name">Nafn</string>
    <string name="init_signature_template_log">Færslutexti</string>
    <string name="init_ratingwanted">GCvote mat</string>
    <string name="init_summary_ratingwanted">Sjá dóma um cache frá GCvote.com</string>
    <string name="init_skin">Ljós hamur</string>
    <string name="init_summary_skin">Nota ljósan ham (þarfnast endurræsingar)</string>
    <string name="init_address">Sýna heimilisfang</string>
    <string name="init_exclude">Útiloka eigin og fundin</string>
    <string name="init_summary_exclude">Útiloka cache sem þú átt eða hefur fundið</string>
    <string name="init_disabled">Útiloka óvirk</string>
    <string name="init_summary_disabled">Útiloka óvirk cache</string>
    <string name="init_save_log_img">Vista myndir</string>
    <string name="init_summary_save_log_img">Vista myndir úr færslum</string>
    <string name="init_units">Nota breskar mælieiningar</string>
    <string name="init_summary_units">Nota breskar mælieiningar í staðinn fyrir metrakerfið</string>
    <string name="init_log_offline">Skráning án netsambands</string>
    <string name="init_livelist">Sýna átt</string>
    <!-- backup / restore -->
    <string name="init_backup_backup">Öryggisafrit</string>
    <string name="init_backup_running">Bý til öryggisafrit af gagnagrunninum…</string>
    <string name="init_backup_restore">Endurheimta</string>
    <string name="init_backup_failed">Það mistókst að taka afrit af gagnagrunni c:geo.</string>
    <string name="init_backup_unnecessary">Gagnagrunnurinn er tómur, óþarfi að taka öryggisafrit.</string>
    <string name="init_backup_no_backup_available">Það er engin öryggisafritsskrá tiltæk.</string>
    <string name="init_restore_success">Endurheimt lokið.</string>
    <string name="settings_info_offline_maps_title">Upplýsingar um kort án nettengingar</string>
    <string name="settings_info_themes_title">Upplýsingar um kortaþemu</string>
    <string name="init_sigautoinsert">Setja inn sjálfkrafa</string>
    <string name="init_default_navigation_tool_select">Velja tól</string>
    <string name="init_debug_title">Aflúsunarupplýsingar</string>
    <string name="init_debug">Virkja aflúsunarskráningu</string>
    <string name="init_dbmove_dbmove">Færi gagnagrunn</string>
    <string name="init_dbmove_running">Færi gagnagrunn</string>
    <string name="init_dbmove_success">Flutningur gagnagrunns tókst.</string>
    <string name="init_dbmove_failed">Flutningur gagnagrunns mistókst</string>
    <string name="init_use_native_ua">Android vafri</string>
    <string name="init_maintenance">Viðhald</string>
    <string name="settings_open_website">Opna heimasíðu</string>
    <string name="settings_settings">Stillingar</string>
    <string name="settings_information">Upplýsingar</string>
    <string name="settings_advanced">Ítarlegar stillingar</string>
    <string name="init_ec_icons">Kortatákn</string>
    <string name="settings_features">Studdir eiginleikar</string>
    <string name="feature_watch_list">Vaktlisti</string>
    <string name="feature_search_keyword">Leita eftir aðalatriðum</string>
    <string name="feature_search_live_map">Virkt kort</string>
    <string name="feature_search_center">Leita eftir staðsetningu</string>
    <string name="feature_search_geocode">Leita eftir geokóða</string>
    <string name="feature_search_owner">Leita eftir eiganda</string>
    <string name="feature_search_finder">Leita eftir þátttakanda</string>
    <!-- proximity notification -->
    <!-- map sources -->
    <string name="map_source_google_map">Google: Kort</string>
    <string name="map_source_google_satellite">Google: Loftmynd</string>
    <string name="map_source_osm_offline">Utan netsambands</string>
    <string name="init_sendToCgeo">Senda til c:geo</string>
    <string name="settings_info_send2cgeo_title">Upplýsingar um að senda til c:geo</string>
    <string name="init_sendToCgeo_name">Nafn tækisins þíns</string>
    <string name="init_sendToCgeo_register">Óska eftir skráningu</string>
    <!-- Content Storage -->
    <!-- Persistable Folders and Uris -->
    <!-- FolderUtils: async processing -->
    <!-- FolderUtils: copy/move -->
    <!-- auth generic -->
    <string name="auth_authorize">Samþykkja c:geo</string>
    <string name="auth_again">Byrja upp á nýtt</string>
    <string name="auth_register">Búa til reikning</string>
    <string name="auth_connected">Tengdur</string>
    <string name="auth_dialog_waiting">Bíð eftir %s…</string>
    <!-- auth credentials -->
    <!-- auth token -->
    <!-- auth Twitter -->
    <string name="auth_dialog_completed_twitter">c:geo má núna setja inn á Twitter.</string>
    <!-- auth opencaching -->
    <string name="auth_dialog_completed_oc">c:geo má núna eiga samskipti við %s.</string>
    <!-- auth geokrety -->
    <string name="auth_dialog_completed_geokrety">c:geo má núna eiga samskipti við %s.</string>
    <!-- cache -->
    <plurals name="cache_counts">
        <item quantity="one">%1$d kassi</item>
        <item quantity="other">%1$d kassar</item>
    </plurals>
    <!-- days remaining -->
    <plurals name="days_remaining">
        <item quantity="one">%1$d dagur eftir</item>
        <item quantity="other">%1$d dagar eftir</item>
    </plurals>
    <string name="last_day_available">fáanlegt í síðasta lagi í dag</string>
    <string name="cache_offline_refresh">Endurhlaða</string>
    <string name="cache_offline_store">Vista</string>
    <string name="cache_offline_stored">Vistað í tæki</string>
    <string name="cache_offline_not_ready">Ekki í boði án netsambands</string>
    <string name="cache_offline_time_mins_few">Fyrir nokkrum mínútum</string>
    <plurals name="cache_offline_about_time_mins">
        <item quantity="one">fyrir um %d mínútu síðan</item>
        <item quantity="other">fyrir um %d mínútum síðan</item>
    </plurals>
    <plurals name="cache_offline_about_time_hours">
        <item quantity="one">fyrir um %d klukkutíma síðan</item>
        <item quantity="other">fyrir um %d klukkutímum síðan</item>
    </plurals>
    <plurals name="cache_offline_about_time_days">
        <item quantity="one">fyrir um %d degi síðan</item>
        <item quantity="other">fyrir um %d dögum síðan</item>
    </plurals>
    <string name="cache_log_image_default_title">Mynd</string>
    <string name="cache_personal_note_edit">Breyta</string>
    <string name="cache_personal_note_upload">Senda inn</string>
    <string name="cache_description">Lýsing</string>
    <string name="cache_watchlist_on">Þessi kassi er á vaktlistanum þínum.</string>
    <string name="cache_watchlist_on_extra">Þessi kassi er á vaktlistanum þínum (Vaktarar: %1d).</string>
    <string name="cache_watchlist_not_on">Þessi kassi er ekki á vaktlistanum þínum.</string>
    <string name="cache_watchlist_not_on_extra">Þessi kassi er ekki á vaktlistanum þínum (Vaktarar: %1d).</string>
    <string name="cache_favpoint_on">Þessi kassi er einn af þínum uppáhalds.</string>
    <string name="cache_favpoint_not_on">Þessi kassi er ekki einn af þínum uppáhalds.</string>
    <string name="cache_list_select_last">Síðasta val</string>
    <string name="cache_images">Myndir</string>
    <string name="cache_waypoints_add">Bæta við vegpunkti</string>
    <string name="cache_hint">Vísbending</string>
    <string name="cache_hint_not_available">Engin vísbending í boði</string>
    <string name="cache_logs">Færslubók</string>
    <string name="cache_dialog_offline_drop_message">Fjarlægja cache úr minni tækis…</string>
    <string name="cache_menu_navigation_drive">Leiðsögn (keyrandi)</string>
    <string name="cache_menu_navigation_walk">Leiðsögn (gangandi)</string>
    <string name="cache_menu_navigation_transit">Leiðsögn (almenningssamgöngur)</string>
    <string name="cache_menu_navigation_bike">Leiðsögn (hjólandi)</string>
    <string name="cache_menu_sygic_walk">Sygic (gangandi)</string>
    <string name="cache_menu_sygic_drive">Sygic (keyrandi)</string>
    <string name="cache_menu_map">Kort</string>
    <string name="cache_menu_visit">Skrá heimsókn</string>
    <string name="cache_menu_around">Kassar í kring</string>
    <string name="around">Í kring um %s</string>
    <string name="cache_menu_event">Bæta við á dagatalið</string>
    <string name="cache_menu_extract_waypoints">Draga út vegpunkta</string>
    <string name="cache_menu_details">Upplýsingar</string>
    <string name="cache_menu_refresh">Endurhlaða</string>
    <string name="cache_menu_share">Deila kassa</string>
    <string name="cache_menu_move_list">Færa í annan lista</string>
    <string name="cache_menu_oruxmaps_online">OruxMaps (með neti)</string>
    <string name="cache_menu_oruxmaps_offline">OruxMaps (án nets)</string>
    <string name="cache_menu_vote">Kjósa</string>
    <string name="cache_menu_checker">Opna Geochecker</string>
    <string name="cache_menu_ignore">Hunsa kassa</string>
    <string name="ignore_confirm_title">Varaðu þig</string>
    <string name="cache_status_offline_log">Vistuð skráning</string>
    <string name="cache_status_found">Fundið</string>
    <string name="cache_not_status_found">Ekki fundinn</string>
    <string name="cache_never_found">Aldrei fundinn</string>
    <string name="cache_found_last_30_days">Fundinn síðustu 30 daga</string>
    <string name="cache_status_archived">Vistað</string>
    <string name="cache_status_disabled">Óvirkt</string>
    <string name="cache_status_premium">Aðeins fyrir Premium Members</string>
    <string name="cache_status_not_premium">Aðgangur fyrir alla meðlimi</string>
    <string name="cache_status_stored">Vistað</string>
    <string name="cache_status_not_stored">Ekki vistað</string>
    <string name="cache_geocode">Geokóði</string>
    <string name="cache_name">Nafn</string>
    <string name="cache_type">Tegund</string>
    <string name="cache_size">Stærð</string>
    <string name="cache_distance">Vegalengd</string>
    <string name="cache_difficulty">Erfiðleikastig</string>
    <string name="cache_terrain">Landslag</string>
    <string name="cache_rating">Dómar</string>
    <string name="cache_own_rating">Þinn dómur</string>
    <string name="cache_favorite">Eftirlætis</string>
    <string name="cache_owner">Eigandi</string>
    <string name="cache_hidden">Komið fyrir</string>
    <string name="cache_event">Dags</string>
    <string name="cache_location">Staðsetning</string>
    <string name="cache_coordinates">Staðsetningarhnit</string>
    <string name="cache_coordinates_original">Upphafleg staðsetningarhnit</string>
    <string name="cache_spoiler_images_title">Spillandi myndir</string>
    <string name="cache_log_types">Færslutegundir</string>
    <string name="cache_coordinates_no">Þetta cache hefur engin staðsetningarhnit.</string>
    <string name="cache_clear_history">Hreinsa sögu</string>
    <string name="cache_remove_from_history">Fjarlægja úr sögu</string>
    <string name="cache_license">Leyfi</string>
    <string name="cache_image">Mynd</string>
    <string name="cache_image_open_file">Opna sem skrá</string>
    <string name="cache_image_open_browser">Opna í vafra</string>
    <string name="cache_share_field">Deila</string>
    <!-- coordinate calculator hints -->
    <!-- gpx -->
    <string name="gpx_import_loading_caches_with_filename">Hleð kössum úr %1$s</string>
    <string name="gpx_import_loading_waypoints_with_filename">Hleð vegpunktum úr %1$s</string>
    <string name="gpx_import_title_reading_file">Les skrá</string>
    <string name="gpx_import_title">Flytja inn GPX</string>
    <string name="gpx_import_title_caches_imported">Niðurstaða</string>
    <string name="gpx_import_title_caches_import_failed">Innflutningur tókst ekki</string>
    <string name="gpx_import_error_io">Get ekki lesið skrá</string>
    <string name="gpx_import_error_unexpected">Óvænt villa</string>
    <!-- import -->
    <string name="web_downloading">Hleð niður</string>
    <!-- popup -->
    <string name="popup_more">Fleiri upplýsingar</string>
    <!-- waypoint -->
    <string name="waypoint">Vegpunktur</string>
    <string name="waypoint_custom">Sérsniðinn</string>
    <string name="waypoint_my_coordinates">Hnitin mín</string>
    <string name="waypoint_bearing">Lega í °</string>
    <string name="waypoint_distance">Fjarlægð</string>
    <string name="waypoint_name">Nafn</string>
    <string name="waypoint_edit">Breyta</string>
    <string name="waypoint_copy_coordinates">Afrita hnit</string>
    <string name="waypoint_delete">Eyða</string>
    <string name="waypoint_edit_title">Breyta vegpunkti</string>
    <string name="waypoint_add_title">Bæta við vegpunkti</string>
    <string name="waypoint_note">Athugasemd</string>
    <string name="waypoint_visited">Heimsótt</string>
    <string name="waypoint_save">Vista</string>
    <string name="waypoint_cancel_edit">Hætta við</string>
    <string name="waypoint_set_as_cache_coords">Setja sem hnit kassa í c:geo</string>
    <string name="waypoint_save_and_modify_on_website">Setja sem hnit kassa í c:geo og á vefsíðunni</string>
    <string name="waypoint_reset">Endurstilla</string>
    <string name="waypoint_localy_reset_cache_coords">Endurstilla í c:geo</string>
    <string name="waypoint_reset_local_and_remote_cache_coords">Endurstilla í c:geo og á heimasíðu</string>
    <string name="waypoint_done">Lokið</string>
    <string name="waypoint_copy_of">Afrit af</string>
    <!-- visit -->
    <string name="visit_tweet">Tilkynna fundinn á Twitter</string>
    <!-- map -->
    <string name="map_map">Kort</string>
    <string name="map_theme_select">Velja kortaþema</string>
    <string name="map_select_multiple_items">Velja atriði</string>
    <!-- search -->
    <string name="search_bar_desc">Kassar (geokóði, leitarorð), Ferðalangar (TB kóði)</string>
    <string name="search_coordinates_button">Leita eftir hnitum</string>
    <string name="search_address">Heimilisfang</string>
    <string name="search_address_button">Leita eftir heimilisfangi</string>
    <string name="search_geo">Geokóði</string>
    <string name="search_geo_button">Leita eftir geokóða</string>
    <string name="search_kw">Leitarorð</string>
    <string name="search_kw_prefill">Leitarorð</string>
    <string name="search_kw_button">Leita eftir leitarorðum</string>
    <string name="search_fbu_prefill">Notandanafn</string>
    <string name="search_fbu_button">Leita eftir notandanafni</string>
    <string name="search_hbu_prefill">Eigandi</string>
    <string name="search_hbu_button">Leita eftir nafni eiganda</string>
    <string name="search_tb_button">Leita að ferðalangi</string>
    <!-- trackable -->
    <string name="trackable_details_loading">Sæki upplýsingar um ferðalang…</string>
    <string name="trackable_browser_open">Opna í vafra</string>
    <string name="trackable_refresh">Endurhlaða</string>
    <string name="trackable_goal">Markmið</string>
    <string name="trackable_details">Upplýsingar</string>
    <string name="trackable_image">Mynd</string>
    <string name="trackable_name">Nafn</string>
    <string name="trackable_type">Tegund</string>
    <string name="trackable_owner">Eigandi</string>
    <string name="trackable_spotted">Sást síðast</string>
    <string name="trackable_spotted_in_cache">Í</string>
    <string name="trackable_spotted_at_user">Í höndum</string>
    <string name="trackable_spotted_unknown_location">Staðsetning ókunn</string>
    <string name="trackable_spotted_owner">Í höndum eiganda</string>
    <string name="trackable_released">Sleppt</string>
    <string name="trackable_distance">Ferðast</string>
    <string name="trackable_not_activated">Ferðalangur ekki virkur</string>
    <!-- user -->
    <string name="user_menu_title">Um</string>
    <string name="user_menu_open_browser">Opna prófíl í vafra</string>
    <string name="user_menu_send_message">Senda skilaboð</string>
    <string name="user_unknown">Óþekktur notandi</string>
    <!-- navigation -->
    <string name="compass_title">Áttaviti</string>
    <string name="use_gps">Aðeins nota GPS</string>
    <string name="destination_select">Velja áfangastað</string>
    <!-- device orientation types -->
    <!-- license -->
    <string name="license">Leyfi</string>
    <string name="license_show">Sýna leyfi</string>
    <string name="license_dismiss">Loka</string>
    <!-- helpers -->
    <string name="helper_calendar_pastevent_question">Dagsetning viðburðar er í fortíðinni. Viltu samt bæta honum við?</string>
    <string name="helper_sendtocgeo_title">Senda í c:geo</string>
    <string name="helper_sendtocgeo_description">Senda í c:geo er viðbót í vafra <strong>fyrir tölvuna þína</strong>. Þegar þú ert að skoða geocaching.com, getur þú sent kassa í snjallsímann þinn beint úr netvafranum þínum.</string>
    <string name="helper_gpsstatus_description">Þú getur notað radarinn í þessu forriti samhliða c:geo. Forritið bíður einnig upp á mikið af öðrum GPS tengdum upplýsingum.</string>
    <string name="helper_bluetoothgps_description">Leyfir þér að nota utanáliggjandi GPS móttakara til þess að fá nákvæmari staðsetningarupplýsingar, og getur sparað rafhlöðuna í tækinu þínu.</string>
    <string name="helper_brouter_title">BRouter leiðarlýsing án nets</string>
    <!-- export -->
    <string name="export">Flytja út</string>
    <string name="export_failed">Útflutningur tókst ekki</string>
    <string name="export_fieldnotes_uploading">Hleð upp…</string>
    <string name="export_fieldnotes_onlynew">Aðeins að síðasta útflutningi</string>
    <string name="export_confirm_title">Flyt út %1$s</string>
    <string name="export_persnotes">Mínir minnispunktar</string>
    <string name="export_persnotes_uploading">Hleð upp þínum minnispunktum %1$d</string>
    <!-- GC attributes -->
    <string name="attribute_dogs_yes">Hundar leyfðir</string>
    <string name="attribute_dogs_no">Hundar ekki leyfðir</string>
    <string name="attribute_bicycles_yes">Reiðhjól leyfð</string>
    <string name="attribute_bicycles_no">Reiðhjól ekki leyfð</string>
    <string name="attribute_motorcycles_yes">Mótorhjól leyfð</string>
    <string name="attribute_motorcycles_no">Mótorhjól ekki leyfð</string>
    <string name="attribute_quads_yes">Fjórhjól leyfð</string>
    <string name="attribute_quads_no">Fjórhjól ekki leyfð</string>
    <string name="attribute_jeeps_yes">Torfærutæki leyfð</string>
    <string name="attribute_jeeps_no">Torfærutæki ekki leyfð</string>
    <string name="attribute_snowmobiles_yes">Vélsleðar leyfðir</string>
    <string name="attribute_snowmobiles_no">Vélsleðar ekki leyfðir</string>
    <string name="attribute_horses_yes">Hestar leyfðir</string>
    <string name="attribute_horses_no">Hestar ekki leyfðir</string>
    <string name="attribute_campfires_yes">Varðeldar leyfðir</string>
    <string name="attribute_campfires_no">Varðeldar bannaðir</string>
    <string name="attribute_winter_yes">Í boði yfir veturinn</string>
    <string name="attribute_winter_no">Ekki í boði yfir veturinn</string>
    <string name="attribute_firstaid_yes">Þarfnast viðhalds</string>
    <string name="attribute_firstaid_no">Þarfnast ekki viðhalds</string>
    <string name="attribute_cow_yes">Fylgist með búfé</string>
    <string name="attribute_cow_no">Ekkert búfé</string>
    <string name="attribute_nightcache_yes">Næturkassi</string>
    <string name="attribute_nightcache_no">Ekki næturkassi</string>
    <string name="attribute_parkngrab_yes">Leggja og grípa</string>
    <string name="attribute_abandonedbuilding_yes">Yfirgefið mannvirki</string>
    <string name="attribute_abandonedbuilding_no">Ekki yfirgefið mannvirki</string>
    <string name="attribute_hike_short_yes">Stutt gönguferð (innan við 1 km)</string>
    <string name="attribute_hike_short_no">Ekki stutt gönguferð</string>
    <string name="attribute_hike_med_yes">Miðlungs gönguferð (1 km til 10 km)</string>
    <string name="attribute_hike_med_no">Ekki miðlungs gönguferð</string>
    <string name="attribute_hike_long_yes">Löng gönguferð (meira en 10 km)</string>
    <string name="attribute_hike_long_no">Ekki löng gönguferð</string>
    <string name="attribute_seasonal_yes">Árstíðabundinn aðgangur</string>
    <string name="attribute_seasonal_no">Ekki árstíðabundinn aðgangur</string>
    <string name="attribute_touristok_yes">Ferðamannavænn</string>
    <string name="attribute_touristok_no">Ekki ferðamannavænn</string>
    <string name="attribute_teamwork_yes">Krefst teymisvinnu</string>
    <string name="attribute_teamwork_no">Krefst ekki teymisvinnu</string>
    <string name="attribute_fee_yes">Aðgangs- eða bílastæðagjald</string>
    <string name="attribute_fee_no">Aðgangs- eða bílastæðagjalds ekki krafist</string>
    <string name="attribute_rappelling_yes">Krefst klifurbúnaðar</string>
    <string name="attribute_rappelling_no">Krefst ekki klifurbúnaðar</string>
    <string name="attribute_boat_yes">Krefst báts</string>
    <string name="attribute_boat_no">Báts ekki krafist</string>
    <string name="attribute_flashlight_yes">Krefst vasaljóss</string>
    <string name="attribute_flashlight_no">Krefst ekki vasaljóss</string>
    <string name="attribute_uv_yes">Krefst útfjólublás ljóss</string>
    <string name="attribute_uv_no">Krefst ekki útfjólublás ljóss</string>
    <string name="attribute_ticks_yes">Mítlar</string>
    <string name="attribute_ticks_no">Engir mítlar</string>
    <string name="attribute_danger_yes">Hættulegt svæði</string>
    <string name="attribute_stroller_yes">Aðgengilegt barnavögnum</string>
    <string name="attribute_stroller_no">Ekki aðgengilegt barnavögnum</string>
    <string name="attribute_fuel_yes">Eldsneyti nálægt</string>
    <string name="attribute_fuel_no">Ekkert eldsneyti nálægt</string>
    <string name="attribute_food_yes">Matur nálægt</string>
    <string name="attribute_food_no">Enginn matur nálægt</string>
    <string name="attribute_no_gps_no">Með GPS</string>
    <!-- next things -->
    <!-- Note: Links here are just for appearance. See AboutActivity to make changes -->
    <string name="support_title">Aðstoð</string>
    <string name="website_title">Vefsíða</string>
    <string name="market_link"><a href="">c:geo á Google Play</a></string>
    <string name="about_twitter">Á <b>c:geo</b> að setja inn nýja færslu á Twitter í hvert skipti sem þú skráir heimsókn þína?</string>
    <string name="faq_title">Algengar spurningar</string>
    <!-- status (used via string based resource loading) -->
    <!-- text-to-speech for compass view -->
    <string name="tts_service">Talandi áttaviti</string>
    <string name="tts_one_kilometer">einn kílómeter</string>
    <plurals name="tts_kilometers">
        <item quantity="one">%s kílómeter</item>
        <item quantity="other">%s kílómetrar</item>
    </plurals>
    <string name="tts_one_meter">einn metri</string>
    <plurals name="tts_meters">
        <item quantity="one">%s metri</item>
        <item quantity="other">%s metrar</item>
    </plurals>
    <string name="tts_one_mile">ein míla</string>
    <plurals name="tts_miles">
        <item quantity="one">%s míla</item>
        <item quantity="other">%s mílur</item>
    </plurals>
    <!-- various -->
    <string name="clipboard_copy_ok">Afritað á klemmuspjaldið</string>
    <plurals name="favorite_points">
        <item quantity="one">%s uppáhalds</item>
        <item quantity="other">%s uppáhalds</item>
    </plurals>
    <!-- shortcuts -->
    <string name="cgeo_shortcut">c:geo flýtileið</string>
    <string name="create_shortcut">Búa til flýtileið</string>
    <string name="send">Senda</string>
    <!-- Geokrety -->
    <string name="init_geokrety_description">Heimila c:geo með GeoKrety.org að skrá GeoKrety ferðalanga.</string>
    <string name="init_geokrety_userid">Notandaauðkenni: %s</string>
    <string name="trackable_title_log_without_geocode">Geokóði ekki skilgreindur</string>
    <string name="do_not_ask_me_again">Ekki spyrja mig aftur</string>
    <string name="geokrety_parsing_failed">Gat ekki þáttað svarið frá GeoKrety.</string>
    <string name="command_move_caches_progress">Færi kassa í listann %1s</string>
    <plurals name="command_move_caches_result">
        <item quantity="one">Færði %d kassa</item>
        <item quantity="other">Færði %d kassa</item>
    </plurals>
    <plurals name="command_copy_caches_result">
        <item quantity="one">Afritaði %d kassa</item>
        <item quantity="other">Afritaði %d kassa</item>
    </plurals>
    <string name="command_delete_caches_progress">Eyði kössum</string>
    <plurals name="command_delete_caches_result">
        <item quantity="one">Eyddi %d kassa</item>
        <item quantity="other">Eyddi %d kössum</item>
    </plurals>
    <string name="command_rename_list_result">Endurnefndur listi</string>
    <string name="command_delete_list_result">Eyddur listi</string>
    <string name="caches_refresh_all_warning">Þessi aðgerð getur leitt til mikillar netnotkunar. Ertu viss um að þú viljir endurhlaða alla kassa?</string>
    <string name="list_list_headline">Listar:</string>
    <plurals name="extract_waypoints_result">
        <item quantity="one">%d vegpunktur dreginn út</item>
        <item quantity="other">%d vegpunktar dregnir út</item>
    </plurals>
    <!-- calendar adder -->
    <string name="event_fail">Gat ekki bætt viðburðarkassa á dagatalið</string>
    <!-- permission handling -->
    <!-- colors -->
    <!-- number input -->
    <!-- text notification channel infos & proximity notification title -->
    <!-- individual routes -->
    <!-- individual track -->
    <!-- distance units -->
    <string name="unit_ft">fet</string>
    <string name="unit_mi">mílur</string>
    <!-- switch settings -->
    <!-- view settings -->
    <!-- HandleLocalFilesActivity -->
    <!-- ReceiveDownloadActivity -->
    <!-- Download map preference and menu entry -->
    <!-- history track -->
    <!-- history track export -->
    <!-- individual route export -->
    <!-- install wizard -->
    <!-- Map Theme helper -->
    <!-- default actions in dialogs -->
</resources>


text:
"use strict";

module Affecto.Base
{
    export class Exception implements Error
    {
        public stack: string;

        constructor(public message: string)
        {
            this.stack = (<any>new Error()).stack;
        }

        public get name(): string
        {
            return this.getExceptionName();
        }

        public toString(): string
        {
            return this.name + ": " + this.message;
        }

        protected getExceptionName(): string
        {
            throw new Error("Exception name not implemented.");
        }
    }
}


text:
<?php
$api_version = 'ltb-v2';//Not used at the moment
$api_scripts_version = '0.7.2';//The version of the software (should change on every release)
//$api_db_version = '0.7.2.0';//first version numbers linked to major of software version.
//Every update gets its own revision number. So we will have 0.7.2.0 to 0.7.2.12
//for the 12 updates that are performed to get from software version 0.7.1 to 0.7.2
include "instance.php";
include('derived.settings.php');
return ($derived_settings);


text:
function printSolver(fid, expInfo)
%PRINTSOLVER   Print commands for solving problems.
%
% Calling sequence:
%   PRINTPOSTSOLVER(FID, EXPINFO)
% where
%   FID:        ID of a file-writing stream.
%   EXPINFO:    Struct containing information for printing the problem.

% Copyright 2016 by The University of Oxford and The Chebfun Developers.
% See http://www.chebfun.org/ for Chebfun information.

% Extract information from the EXPINFO struct:
sigma = expInfo.sigma;
generalized = expInfo.generalized;

% Print commands for solving the problem:
fprintf(fid, '\n%%%% Solve the eigenvalue problem.\n');

% Need to deal with generalized problems separately.
if ( ~generalized )
    if ( ~isempty(sigma) )
        fprintf(fid, '[V, D] = eigs(N, k, ''%s'', options);\n', sigma);
    else
        fprintf(fid, '[V, D] = eigs(N, k, options);\n');
    end
else
    if ( ~isempty(sigma) )
        fprintf(fid, '[V, D] = eigs(N, B, k, ''%s'', options);\n', sigma);
    else
        fprintf(fid, '[V, D] = eigs(N, B, k, options);\n');
    end
end

end


text:
virtualenv --no-site-packages --distribute ~/.venv/coco
source ~/.venv/coco/bin/activate
pip install -r pip-requirements.txt


text:
package com.ultratechnica.mongodb;

import com.mongodb.*;
import org.apache.commons.cli.*;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.net.UnknownHostException;
import java.util.Date;

/**
 * Created with IntelliJ IDEA.
 * User: keithbishop
 * Date: 06/09/2013
 * Time: 13:01
 */
public class Main {

    private static final Logger log = LoggerFactory.getLogger(Main.class);

    private static final String DEFAULT_COLLECTION_NAME = "test";

    private static final String DEFAULT_HOST = "localhost";

    private static final String DEFAULT_PORT = "27017";

    public static void main(String[] args) {

        log.info("=============================================================================================\n" +
                "                       _   _     _                 \n" +
                " |\\/|  _  ._   _   _  | \\ |_)   |_)  _  ._   _ |_  \n" +
                " |  | (_) | | (_| (_) |_/ |_)   |_) (/_ | | (_ | | \n" +
                "               _|                                  \n" +
                "Copyright 2013 Keith Bishop, Ultratechnica Ltd, http://ultratechnica.com\n" +
                "Licensed to Apache "+
                "=============================================================================================\n");
        Options options = getOptions();

        CommandLine commandLine = parseArgs(args, options);

        MongoClient client = null;

        if (commandLine.hasOption("host") && commandLine.hasOption("port")) {

            String host = commandLine.getOptionValue("host");
            String port = commandLine.getOptionValue("port");

            try {

                client = new MongoClient(host, Integer.parseInt(port));
            } catch (UnknownHostException e) {
                log.error("Unable to connect to host [{}] on port [{}]", host, port);
            }
        } else if (options.hasOption("host")) {

            String host = commandLine.getOptionValue("host");

            try {
                client = new MongoClient(host);
            } catch (UnknownHostException e) {
                log.error("Unable to connect to host [{}] on default port ()", host);
            }
        } else {

            try {
                client = new MongoClient();
            } catch (UnknownHostException e) {
                log.error("Unable to connect default host ({}) on default port ()", DEFAULT_HOST, DEFAULT_PORT);
            }
        }

        if (client == null) {
            System.out.println("Exiting, due to previous connection errors");
            System.exit(1);
        }

        ServerAddress clientAddress = client.getAddress();
        log.info("Connected to MongoDB [{}]", clientAddress);

        MongoClientOptions mongoClientOptions = client.getMongoClientOptions();

        log.info("=============================================================================================\n" +
                "Using Mongo Client options:\n" +
                "\tConnections per host: " + mongoClientOptions.getConnectionsPerHost() + "\n" +
                "\tConect timeout: " + mongoClientOptions.getConnectTimeout() + " \n" +
                "\tSocket timeout: " + mongoClientOptions.getSocketTimeout() + "\n" +
                "\tMax Wait time: " + mongoClientOptions.getMaxWaitTime() + "\n" +
                "\tMax Auto connect retry time: " + mongoClientOptions.getMaxAutoConnectRetryTime() + "\n" +
                "\tMax threads allowed to block for conneciton multipler: " + mongoClientOptions.getThreadsAllowedToBlockForConnectionMultiplier() + "\n" +
                "\tWrite concern: " + mongoClientOptions.getWriteConcern() + "\n" +
                "\tRead Preference: " + mongoClientOptions.getReadPreference() + "\n" +
                "=============================================================================================\n");

        String items = commandLine.getOptionValue("n");

        int numberOfItems = 0;
        try {
            numberOfItems = Integer.parseInt(items);
        } catch (NumberFormatException e) {
            log.error("The parameter provided for -n was not an integer [{}]", items);
            System.exit(1);
        }

        DB local = client.getDB("local");

        DBCollection collection = local.getCollection(DEFAULT_COLLECTION_NAME);

        log.info("Starting benchmark, inserting [{}] items into collection [{}]", numberOfItems, DEFAULT_COLLECTION_NAME);

        long startTime = System.currentTimeMillis();

        for (int i = 0; i < numberOfItems; i++){

            BasicDBObjectBuilder builder = BasicDBObjectBuilder.start()
                    .add("timestamp", new Date())
                    .add("field1", "123456")
                    .add("field2", "2345678")
                    .add("field3", "123123231313131232131231231231123132123123123")
                    .add("field4", true);

            WriteResult result = collection.insert(builder.get());
            if(!result.getLastError().ok()) {
                log.error("An error occurred [{}]", result.getLastError());
            }
        }

        long endTime = System.currentTimeMillis();

        log.info("Finished benchmarking.");
        long timeTakenMillis = endTime - startTime;

        float timeTaken = (float)timeTakenMillis / 1000;

        log.info("Results:\n\n" +
                String.format("%-25s %d", "Number of Items inserted:", numberOfItems) + "\n" +
                String.format("%-25s %.2f", "Time elapsed:", timeTaken) + " seconds\n" +
                String.format("%-25s %.2f", "Throughput:", numberOfItems / timeTaken) + " items/sec\n");

        log.info("Removing test data...");
        collection.remove(new BasicDBObject());
        log.info("Cleared collection [test]");
    }

    private static Options getOptions() {
        return MongdbBenchOptions.getOptions();
    }

    private static CommandLine parseArgs(String[] args, Options options) {
        CommandLineParser parser = new BasicParser();

        try {
            return parser.parse(options, args);
        } catch (ParseException e) {
            System.err.println(e);

            HelpFormatter helpFormatter = new HelpFormatter();
            helpFormatter.printHelp("java -jar mongodb-benchmark-<version>.jar", "header", options , "footer", true);

            System.exit(1);
        }

        return null;
    }

}


text:
package com.ssh.sys.core.thread;

import com.ssh.common.util.Constant;
import com.ssh.sys.api.dto.UserDTO;
import com.ssh.sys.api.service.UserService;
import net.sourceforge.groboutils.junit.v1.MultiThreadedTestRunner;
import net.sourceforge.groboutils.junit.v1.TestRunnable;
import org.junit.FixMethodOrder;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.MethodSorters;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.test.context.ActiveProfiles;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import javax.inject.Inject;

@ActiveProfiles(Constant.ENV_DEV)
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration({
        "classpath:spring-core-context.xml",
        "classpath:sys-core-context.xml"
})
// @TransactionConfiguration(transactionManager = "transactionManager")
// @Transactional(transactionManager = "transactionManager")
@FixMethodOrder(MethodSorters.NAME_ASCENDING)
public class ThreadTest {

    private static final Logger LOGGER = LoggerFactory.getLogger(ThreadTest.class);

    @Inject
    private UserService userService;

    private class ExecuteThread extends TestRunnable {
        @Override
        public void runTest() throws Throwable {
            LOGGER.info("==================== {} ====================", Thread.currentThread().getName());
            UserDTO dto = userService.getByCode("admin");
            LOGGER.info("******************** {} ********************", dto);
            // Thread.sleep(20);
        }
    }

    @Test
    public void testThread() throws Throwable {
        TestRunnable[] testRunnable = new TestRunnable[10];
        for (int i = 0; i < testRunnable.length; i++) {
            testRunnable[i] = new ExecuteThread();
        }
        new MultiThreadedTestRunner(testRunnable).runTestRunnables();
    }

    // private static final int COUNT = 100;
    //
    // private CountDownLatch latch = new CountDownLatch(COUNT);
    //
    // private class ExecuteThread implements Runnable {
    //     @Override
    //     public void run() {
    //         try {
    //             // 使当前线程在锁存器倒计数至零之前一直等待
    //             latch.await();
    //             doWork();
    //         } catch (InterruptedException e) {
    //             LOGGER.error("{}", e);
    //         }
    //     }
    //
    //     private void doWork() {
    //         LOGGER.info("==================== {} ====================", Thread.currentThread().getName());
    //         // TODO
    //         LOGGER.info("******************** {} ********************", Thread.currentThread().getId());
    //     }
    // }
    //
    // @Test
    // public void testThread() throws Exception {
    //     for (int i = 0; i < COUNT; i++) {
    //         new Thread(new ExecuteThread()).start();
    //         // 递减锁存器的计数, 如果计数到达零, 则释放所有等待的线程
    //         latch.countDown();
    //     }
    // }

}


text:
#include <aws/glue/model/CreateDevEndpointResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>

#include <utility>

using namespace Aws::Glue::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;

CreateDevEndpointResult::CreateDevEndpointResult() :
    m_zeppelinRemoteSparkInterpreterPort(0),
    m_numberOfNodes(0),
    m_workerType(WorkerType::NOT_SET),
    m_numberOfWorkers(0)
{
}

CreateDevEndpointResult::CreateDevEndpointResult(const Aws::AmazonWebServiceResult<JsonValue>& result) :
    m_zeppelinRemoteSparkInterpreterPort(0),
    m_numberOfNodes(0),
    m_workerType(WorkerType::NOT_SET),
    m_numberOfWorkers(0)
{
  *this = result;
}

CreateDevEndpointResult& CreateDevEndpointResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
  JsonView jsonValue = result.GetPayload().View();
  if(jsonValue.ValueExists("EndpointName"))
  {
    m_endpointName = jsonValue.GetString("EndpointName");

  }

  if(jsonValue.ValueExists("Status"))
  {
    m_status = jsonValue.GetString("Status");

  }

  if(jsonValue.ValueExists("SecurityGroupIds"))
  {
    Aws::Utils::Array<JsonView> securityGroupIdsJsonList = jsonValue.GetArray("SecurityGroupIds");
    for(unsigned securityGroupIdsIndex = 0; securityGroupIdsIndex < securityGroupIdsJsonList.GetLength(); ++securityGroupIdsIndex)
    {
      m_securityGroupIds.push_back(securityGroupIdsJsonList[securityGroupIdsIndex].AsString());
    }
  }

  if(jsonValue.ValueExists("SubnetId"))
  {
    m_subnetId = jsonValue.GetString("SubnetId");

  }

  if(jsonValue.ValueExists("RoleArn"))
  {
    m_roleArn = jsonValue.GetString("RoleArn");

  }

  if(jsonValue.ValueExists("YarnEndpointAddress"))
  {
    m_yarnEndpointAddress = jsonValue.GetString("YarnEndpointAddress");

  }

  if(jsonValue.ValueExists("ZeppelinRemoteSparkInterpreterPort"))
  {
    m_zeppelinRemoteSparkInterpreterPort = jsonValue.GetInteger("ZeppelinRemoteSparkInterpreterPort");

  }

  if(jsonValue.ValueExists("NumberOfNodes"))
  {
    m_numberOfNodes = jsonValue.GetInteger("NumberOfNodes");

  }

  if(jsonValue.ValueExists("WorkerType"))
  {
    m_workerType = WorkerTypeMapper::GetWorkerTypeForName(jsonValue.GetString("WorkerType"));

  }

  if(jsonValue.ValueExists("GlueVersion"))
  {
    m_glueVersion = jsonValue.GetString("GlueVersion");

  }

  if(jsonValue.ValueExists("NumberOfWorkers"))
  {
    m_numberOfWorkers = jsonValue.GetInteger("NumberOfWorkers");

  }

  if(jsonValue.ValueExists("AvailabilityZone"))
  {
    m_availabilityZone = jsonValue.GetString("AvailabilityZone");

  }

  if(jsonValue.ValueExists("VpcId"))
  {
    m_vpcId = jsonValue.GetString("VpcId");

  }

  if(jsonValue.ValueExists("ExtraPythonLibsS3Path"))
  {
    m_extraPythonLibsS3Path = jsonValue.GetString("ExtraPythonLibsS3Path");

  }

  if(jsonValue.ValueExists("ExtraJarsS3Path"))
  {
    m_extraJarsS3Path = jsonValue.GetString("ExtraJarsS3Path");

  }

  if(jsonValue.ValueExists("FailureReason"))
  {
    m_failureReason = jsonValue.GetString("FailureReason");

  }

  if(jsonValue.ValueExists("SecurityConfiguration"))
  {
    m_securityConfiguration = jsonValue.GetString("SecurityConfiguration");

  }

  if(jsonValue.ValueExists("CreatedTimestamp"))
  {
    m_createdTimestamp = jsonValue.GetDouble("CreatedTimestamp");

  }

  if(jsonValue.ValueExists("Arguments"))
  {
    Aws::Map<Aws::String, JsonView> argumentsJsonMap = jsonValue.GetObject("Arguments").GetAllObjects();
    for(auto& argumentsItem : argumentsJsonMap)
    {
      m_arguments[argumentsItem.first] = argumentsItem.second.AsString();
    }
  }

  return *this;
}