text:
namespace chrome_cleaner {

extern const wchar_t kQuarantineFolder[];
extern const char kQuarantinePassword[];
extern const int64_t kQuarantineSourceSizeLimit;

}  // namespace chrome_cleaner

#endif  // CHROME_CHROME_CLEANER_CONSTANTS_QUARANTINE_CONSTANTS_H_


text:
#pragma once
#include <aws/drs/Drs_EXPORTS.h>
#include <aws/drs/model/FailbackReplicationError.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>

namespace Aws
{
namespace Utils
{
namespace Json
{
  class JsonValue;
  class JsonView;
} // namespace Json
} // namespace Utils
namespace drs
{
namespace Model
{

  /**
   *
Error in data replication.

See Also:
   AWS
   * API Reference

   */
  class AWS_DRS_API RecoveryInstanceDataReplicationError
  {
  public:
    RecoveryInstanceDataReplicationError();
    RecoveryInstanceDataReplicationError(Aws::Utils::Json::JsonView jsonValue);
    RecoveryInstanceDataReplicationError& operator=(Aws::Utils::Json::JsonView jsonValue);
    Aws::Utils::Json::JsonValue Jsonize() const;

    /**
     *
Error in data replication.

     */
    inline const FailbackReplicationError& GetError() const{ return m_error; }

    /**
     *
Error in data replication.

     */
    inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }

    /**
     *
Error in data replication.

     */
    inline void SetError(const FailbackReplicationError& value) { m_errorHasBeenSet = true; m_error = value; }

    /**
     *
Error in data replication.

     */
    inline void SetError(FailbackReplicationError&& value) { m_errorHasBeenSet = true; m_error = std::move(value); }

    /**
     *
Error in data replication.

     */
    inline RecoveryInstanceDataReplicationError& WithError(const FailbackReplicationError& value) { SetError(value); return *this;}

    /**
     *
Error in data replication.

     */
    inline RecoveryInstanceDataReplicationError& WithError(FailbackReplicationError&& value) { SetError(std::move(value)); return *this;}

    /**
     *
Error in data replication.

     */
    inline const Aws::String& GetRawError() const{ return m_rawError; }

    /**
     *
Error in data replication.

     */
    inline bool RawErrorHasBeenSet() const { return m_rawErrorHasBeenSet; }

    /**
     *
Error in data replication.

     */
    inline void SetRawError(const Aws::String& value) { m_rawErrorHasBeenSet = true; m_rawError = value; }

    /**
     *
Error in data replication.

     */
    inline void SetRawError(Aws::String&& value) { m_rawErrorHasBeenSet = true; m_rawError = std::move(value); }

    /**
     *
Error in data replication.

     */
    inline void SetRawError(const char* value) { m_rawErrorHasBeenSet = true; m_rawError.assign(value); }

    /**
     *
Error in data replication.

     */
    inline RecoveryInstanceDataReplicationError& WithRawError(const Aws::String& value) { SetRawError(value); return *this;}

    /**
     *
Error in data replication.

     */
    inline RecoveryInstanceDataReplicationError& WithRawError(Aws::String&& value) { SetRawError(std::move(value)); return *this;}

    /**
     *
Error in data replication.

     */
    inline RecoveryInstanceDataReplicationError& WithRawError(const char* value) { SetRawError(value); return *this;}

  private:

    FailbackReplicationError m_error;
    bool m_errorHasBeenSet = false;

    Aws::String m_rawError;
    bool m_rawErrorHasBeenSet = false;
  };

} // namespace Model
} // namespace drs
} // namespace Aws

redpajama_set_name: RedPajamaGithub


text:
using FunWithCastles.Settings.Adapters;
using FunWithCastles.Settings.Loaders;
using FunWithCastles.Settings.Utils;
using NUnit.Framework;
using System;
using System.Collections.Generic;

namespace FunWithCastles.Settings.Tests
{
    [TestFixture]
    public class SettingsBuilderTests
    {
        [Test]
        public void AddDefault_InstanceSuppliedForDefault_CanReadDefault()
        {
            // Assemble
            var defaultValues = new DefaultTestSettings
            {
                Name = "Adams",
            };

            var settings = SettingsBuilder.Create()
                                          .LoadFromObject(defaultValues)
                                          .Build<ITestSettings>();
            // Act
            var name = settings.Name;
            var answer = settings.TheAnswer;

            // Assert
            Assert.AreEqual("Adams", name);
            Assert.AreEqual(42, answer);
        }

        [Test]
        public void AddDefault_NonDefaultDoesNotHaveAValue_ReturnsValueFromDefault()
        {
            // Assemble
            var settings = SettingsBuilder.Create()
                                          .StartMapping<IAppSettings>()
                                          .Map(s => s.Name, "Adams")
                                          .Build<IAppSettings>();
            // Act
            var name = settings.Name;

            // Assert
            Assert.AreEqual("Adams", name);
        }

        [Test]
        public void Build_OneAdapter_CreatesSettingsObject()
        {
            // Assemble
            var builder = SettingsBuilder.Create()
                                         .AddMemoryAdapter();

            // Act
            var settings = builder.Build<IAppSettings>();

            // Assert
            settings.Name = "Douglas";
            Assert.AreEqual("Douglas", settings.Name);
        }

        [Test]
        public void Load_DefaultConverter_ConvertsDateTime()
        {
            // Assemble
            var args = new[] { "--TotalTime", "7:1:20:33.4" };
            var settings = SettingsBuilder.Create()
                                          .LoadFromCommandLine(args)
                                          .Build<ITestSettings>();
            var expected = new TimeSpan(
                days: 7,
                hours: 1,
                minutes: 20,
                seconds: 33,
                milliseconds: 400);

            // Act
            var date = settings.TotalTime;

            // Assert
            Assert.AreEqual(expected, date);
        }

        [Test]
        public void Load_DefaultConverter_ConvertsInts()
        {
            // Assemble
            var args = new[] { "--TheAnswer", "42" };
            var settings = SettingsBuilder.Create()
                                          .LoadFromCommandLine(args)
                                          .Build<ITestSettings>();
            // Act
            var answer = settings.TheAnswer;

            // Assert
            Assert.AreEqual(42, answer);
        }

        [Test]
        public void Load_DefaultConverter_ConvertsTimeSpan()
        {
            // Assemble
            var args = new[] { "--Date", "2012-3-4" };
            var settings = SettingsBuilder.Create()
                                          .LoadFromCommandLine(args)
                                          .Build<ITestSettings>();
            // Act
            var date = settings.Date;

            // Assert
            Assert.AreEqual(new DateTime(2012, 3, 4), date);
        }

        [Test]
        public void Read_EnvAndMemoryAdapters_ReadsFromEnv()
        {
            var memData = new Dictionary<string, object>
            {
                ["Name"] = "Adams",
            };
            using (Env.SetVariable("Test.Name", "Douglas"))
            {
                var settings = SettingsBuilder.Create()
                                              .AddMemoryAdapter(memData)
                                              .AddEnvironmentVariableAdapter("Test.")
                                              .Build<IAppSettings>();
                // Act
                var name = settings.Name;

                // Assert
                Assert.AreEqual("Adams", name);
            }
        }

        [Test]
        public void Read_MemoryAndEnvAdapters_ReadsFromMemory()
        {
            using (Env.SetVariable("Test.Name", "Douglas"))
            {
                var memData = new Dictionary<string, object>
                {
                    ["Name"] = "Adams",
                };
                var settings = SettingsBuilder.Create()
                                              .AddMemoryAdapter(memData)
                                              .AddEnvironmentVariableAdapter("Test.")
                                              .Build<IAppSettings>();
                // Act
                var name = settings.Name;

                // Assert
                Assert.AreEqual("Adams", name);
            }
        }

        [Test]
        public void Read_ValueInFirstAndSecondAdapters_ReadsValueFromFirstAdapter()
        {
            // Assemble
            var mem1 = new MemoryAdapter();
            var mem2 = new MemoryAdapter();

            var settings = SettingsBuilder.Create()
                                          .Add(mem1)
                                          .Add(mem2)
                                          .Build<IAppSettings>();
            mem1.Data["Name"] = "Douglas";
            mem2.Data["Name"] = "Adams";

            // Act
            var name = settings.Name;

            // Assert
            Assert.AreEqual("Douglas", name);
        }

        [Test]
        public void Read_ValueOnlyInSecondAdapter_ReadsValueFromSecondAdapter()
        {
            // Assemble
            var mem1 = new MemoryAdapter();
            var mem2 = new MemoryAdapter();

            var builder = SettingsBuilder.Create()
                                         .Add(mem1)
                                         .Add(mem2);

            var settings = builder.Build<IAppSettings>();

            mem2.Data["Name"] = "Adams";

            // Act
            var name = settings.Name;

            // Assert
            Assert.AreEqual("Adams", name);
        }

        [Test]
        public void Write_FirstAdapterIsReadOnly_WritesToSecondAdapter()
        {
            // Assemble
            var mem1 = new MemoryAdapter();
            var mem2 = new MemoryAdapter();

            var settings = SettingsBuilder.Create()
                                          .AddReadOnly(mem1)
                                          .Add(mem2)
                                          .Build<IAppSettings>();
            mem1.Data["Name"] = "Unset";
            mem2.Data["Name"] = "Unset";

            // Act
            settings.Name = "Adams";

            // Assert
            Assert.AreEqual("Unset", mem1.Data["Name"]);
            Assert.AreEqual("Adams", mem2.Data["Name"]);
        }

        [Test]
        public void Write_MultipleAdapters_WritesToFirstAdapter()
        {
            // Assemble
            var mem1 = new MemoryAdapter();
            var mem2 = new MemoryAdapter();

            var builder = SettingsBuilder.Create()
                                         .Add(mem1)
                                         .Add(mem2);

            var settings = builder.Build<IAppSettings>();

            // Act
            settings.Name = "Douglas";

            // Assert
            object neverSet;
            Assert.AreEqual("Douglas", mem1.Data["Name"]);
            Assert.IsFalse(mem2.TryRead("Name", out neverSet));
        }

        [Test]
        public void Write_MultipleAdaptersAddedAtOnce_WritesToFirstAdapter()
        {
            // Assemble
            var mem1 = new MemoryAdapter();
            var mem2 = new MemoryAdapter();

            var builder = SettingsBuilder.Create()
                                         .Add(mem1)
                                         .Add(mem2);
            var settings = builder.Build<IAppSettings>();

            // Act
            settings.Name = "Douglas";

            // Assert
            object neverSet;
            Assert.AreEqual("Douglas", mem1.Data["Name"]);
            Assert.IsFalse(mem2.TryRead("Name", out neverSet));
        }
    }
}


text:
package com.oskopek.studyguide.model.courses;

import com.fasterxml.jackson.annotation.JsonProperty;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;

import javax.inject.Singleton;
import java.util.Collection;
import java.util.HashMap;
import java.util.Map;

/**
 * Serves as a cache and/or database for/of {@link Course}s.
 */
@Singleton
public class CourseRegistry {

    @JsonProperty("courses")
    private final Map<String, Course> courseIdMap;

    /**
     * Create a new empty registry.
     */
    public CourseRegistry() {
        this.courseIdMap = new HashMap<>();
    }

    /**
     * Put (add or replace) a course and all it's dependencies into the registry.
     *
     * @param course non-null
     * @throws IllegalArgumentException if course is null
     * @see Course#equals(Object)
     */
    public void putCourse(Course course) throws IllegalArgumentException {
        if (course == null) {
            throw new IllegalArgumentException("Cannot add null Course to registry.");
        }
        courseIdMap.put(course.getId(), course);
        putAllCourses(course.getPrerequisites());
        putAllCourses(course.getCorequisites());
    }

    /**
     * Put (add or replace) a course and without it's dependencies into the registry.
     *
     * @param course non-null
     * @throws IllegalArgumentException if course is null
     * @see Course#equals(Object)
     */
    public void putCourseSimple(Course course) throws IllegalArgumentException {
        if (course == null) {
            throw new IllegalArgumentException("Cannot add null Course to registry.");
        }
        courseIdMap.put(course.getId(), course);
    }

    /**
     * Copies (with overwriting) all courses from the registry into this registry.
     *
     * @param registry the registry to copy courses from
     */
    public void putAllCourses(CourseRegistry registry) {
        putAllCourses(registry.courseMapValues());
    }

    /**
     * Copies (with overwriting) all courses from the iterable into this registry.
     *
     * @param courses the iterable to copy courses from
     */
    public void putAllCourses(Iterable<Course> courses) {
        for (Course course : courses) {
            putCourse(course);
        }
    }

    /**
     * Remove a course from the registry and return it. If there is no such course, null is returned happens.
     *
     * @param toRemove course to remove
     * @return null if no course was removed
     */
    public Course removeCourse(Course toRemove) {
        courseMapValues().forEach(c -> {
            c.getCorequisites().remove(toRemove);
            c.getPrerequisites().remove(toRemove);
        });
        return courseIdMap.remove(toRemove.getId());
    }

    /**
     * Get a course from the registry.
     *
     * @param id non-null
     * @return null if such a course doesn't exist
     * @throws IllegalArgumentException if id is null
     */
    public Course getCourse(String id) throws IllegalArgumentException {
        if (id == null) {
            throw new IllegalArgumentException("Cannot get course with null id from registry.");
        }
        return courseIdMap.get(id);
    }

    /**
     * Get all the {@link Course}s in the registry.
     *
     * @return a non-null (may be empty) collection of courses
     */
    public Collection<Course> courseMapValues() {
        return courseIdMap.values();
    }

    @Override
    public int hashCode() {
        return new HashCodeBuilder(17, 37).append(courseIdMap).toHashCode();
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (!(o instanceof CourseRegistry)) {
            return false;
        }
        CourseRegistry that = (CourseRegistry) o;
        return new EqualsBuilder().append(courseIdMap, that.courseIdMap).isEquals();
    }

    @Override
    public String toString() {
        return "CourseRegistry[" + courseIdMap.size() + ']';
    }
}


text:
package org.spoofax.jsglr2.tokens.treeshaped;

import static org.spoofax.jsglr2.imploder.StrategoTermTokenizer.configureStatic;
import static org.spoofax.jsglr2.imploder.treefactory.TokenizedTermTreeFactory.configureInjection;

import java.util.Collection;
import java.util.Collections;
import java.util.List;
import java.util.stream.Collectors;

import org.spoofax.interpreter.terms.IStrategoTerm;
import org.spoofax.jsglr.client.imploder.IToken;
import org.spoofax.jsglr2.imploder.TreeImploder;
import org.spoofax.jsglr2.parser.Position;

public class TokenTree {

    final IStrategoTerm tree;
    final TreeToken token; // null for internal nodes
    TokenTree parent;
    final List<TokenTree> children;
    final List<TokenTree> nonNullChildren;
    final Position positionRange;
    /** The number of tokens in this tree */
    final int size;
    final TreeToken leftToken;
    final TreeToken rightToken;
    final Collection<IToken> leftTokens;
    final Collection<IToken> rightTokens;
    final boolean isAmbiguous;

    // The parameter `treeToken` can be null only when the width of the token is 0
    protected TokenTree(TreeImploder.SubTree<IStrategoTerm> tree, TreeToken treeToken) {
        this.tree = tree == null ? null : tree.tree;
        this.leftToken = this.rightToken = this.token = treeToken;
        if(treeToken == null)
            this.leftTokens = this.rightTokens = null;
        else
            this.leftTokens = this.rightTokens = Collections.singleton(treeToken);
        this.children = this.nonNullChildren = Collections.emptyList();
        this.positionRange = treeToken == null ? TreeTokens.EMPTY_RANGE : treeToken.positionRange;
        this.size = treeToken == null ? 0 : 1;
        this.isAmbiguous = false;

        if(treeToken != null)
            treeToken.tree = this;

        configure(tree);
    }

    protected TokenTree(TreeImploder.SubTree<IStrategoTerm> tree, List<TokenTree> children, TreeToken leftToken,
        TreeToken rightToken, Position positionRange) {
        this.tree = tree == null ? null : tree.tree;
        this.token = null;
        this.children = children;
        this.nonNullChildren = children.stream().filter(c -> c.leftToken != null).collect(Collectors.toList());
        this.leftToken = leftToken;
        this.rightToken = rightToken;
        this.positionRange = positionRange;
        this.isAmbiguous = tree != null && tree.isAmbiguous;

        int size = 0;
        for(TokenTree child : children) {
            size += child.size;
        }
        this.size = size;

        if(this.isAmbiguous) {
            this.leftTokens = nonNullChildren.stream().flatMap(c -> c.leftTokens.stream()).collect(Collectors.toList());
            this.rightTokens =
                nonNullChildren.stream().flatMap(c -> c.rightTokens.stream()).collect(Collectors.toList());
        } else {
            Collection<IToken> leftTokens = null;
            Collection<IToken> rightTokens = null;
            for(TokenTree child : children) {
                // The left-most token of this tree is the first non-null leftToken of a subTree
                if(leftTokens == null)
                    leftTokens = child.leftTokens;

                // The right-most token of this tree is the last non-null rightToken of a subTree
                if(child.rightTokens != null)
                    rightTokens = child.rightTokens;
            }
            this.leftTokens = leftTokens;
            this.rightTokens = rightTokens;
        }

        configure(tree);
    }

    private void configure(TreeImploder.SubTree<IStrategoTerm> tree) {
        assert leftToken != null ^ rightToken == null : "Both tokens should be either null, or not null";
        if(tree != null && tree.tree != null) {
            assert leftToken != null && rightToken != null : "All AST nodes should have tokens, even if it's empty";
            if(tree.isInjection) {
                configureInjection(tree.production.lhs(), tree.tree, tree.production.isBracket());
            } else {
                String sort = tree.production == null ? null : tree.production.sort();
                configureStatic(tree.tree, sort, leftToken, rightToken);
            }
        }
    }

}


text:
<?php

class accountsController extends Controller
{
	/**
	 * Construct
	 */
	public function __construct() {
		parent::__construct(__CLASS__);
		$this->no_cache();
	}

	/**
	 * Default method of the Controller
	 */
	public function index() {
		$this->auth();
	}

	/**
	 * Method that initiates the view to authenticate the login
	 *
	 * @return void
	 */
	public function auth( $ambit = NULL) {
		$this->view->assign( 'ambit', $ambit == BACKEND ? BACKEND : FRONTEND );

		$this->view->theme( BACKEND );
		$this->view->template( 'auth' );
		$this->view->render( __FUNCTION__ );
	}

	public function myprofile() {
		$this->view->template = 'template.back';

		$user_id = Session::get( BACKEND )['id'];

		$this->model_module = $this->load_model( 'users' );
		$this->model_module->id = $user_id;
		$data = $this->model_module->find( array(
			"status_text" =>
				"CASE
					WHEN status = 0 THEN 'Inactiva'
					WHEN status = 1 THEN 'Activa'
				END",
			"status_class" =>
				"CASE
					WHEN status = 0 THEN 'danger'
					WHEN status = 1 THEN 'success'
				END",
			"status_info" =>
				"CASE
					WHEN status = 0 THEN 'Carrera inactiva'
					WHEN status = 1 THEN 'Carrera activa'
				END",
			)
		);
		$this->view->assign('data'	, $data);

		$this->view->render( __FUNCTION__, 'index' );
	}

	/**
	*
	*
	* @return
	*/
	public function signout(  ){
		Session::destroy(BACKEND);
		$this->location( '/accounts/');
	}

	/**
	*
	*
	* @return
	*/
	public function reset_password() {
		$this->view->template = 'template.login.back';
		$this->view->render( __FUNCTION__, 'index' );
	}

}


text:
package htest

import (
	"io"
	"net/http"
	"testing"
)

// HTTPTester is an interface that represents the main entry point of HTest
type HTTPTester interface {
	Get(path string) Requester
	Head(path string) Requester
	Post(path string) Requester
	Put(path string) Requester
	Delete(path string) Requester
	Trace(path string) Requester
	Options(path string) Requester
	Connect(path string) Requester
	Patch(path string) Requester

	// Request allows to create a Requester object with the passed HTTP method and path
	Request(method, path string) Requester

	// Request allows to create a Requester object with the passed HTTP method, path and body.
	RequestWithBody(method, path string, body io.Reader) Requester

	// SetHandler changes the underlying http.Handler
	SetHandler(handler http.Handler) HTTPTester
}

type htest struct {
	handler http.Handler
	t       testing.TB
}

// New returns a new HTTPTester instance
func New(t testing.TB, handler http.Handler) HTTPTester {
	return &htest{
		handler: handler,
		t:       t,
	}
}

func (h *htest) SetHandler(handler http.Handler) HTTPTester {
	h.handler = handler
	return h
}

func (h *htest) Get(path string) Requester {
	return h.Request("GET", path)
}
func (h *htest) Head(path string) Requester {
	return h.Request("HEAD", path)
}
func (h *htest) Post(path string) Requester {
	return h.Request("POST", path)
}
func (h *htest) Put(path string) Requester {
	return h.Request("PUT", path)
}
func (h *htest) Delete(path string) Requester {
	return h.Request("DELETE", path)
}
func (h *htest) Trace(path string) Requester {
	return h.Request("TRACE", path)
}
func (h *htest) Options(path string) Requester {
	return h.Request("OPTIONS", path)
}
func (h *htest) Connect(path string) Requester {
	return h.Request("CONNECT", path)
}
func (h *htest) Patch(path string) Requester {
	return h.Request("PATCH", path)
}

func (h *htest) Request(method, path string) Requester {
	return h.RequestWithBody(method, path, nil)
}

func (h *htest) RequestWithBody(method, path string, body io.Reader) Requester {
	req, err := http.NewRequest(method, path, body)
	if err != nil {
		h.t.Error(err)
		h.t.FailNow()
	}
	return &requester{
		method:  method,
		path:    path,
		body:    body,
		t:       h.t,
		handler: h.handler,
		request: req,
	}
}


text:
package cdb.applicationcli.pages;

import cdb.applicationcli.Application;

import java.util.Scanner;

public abstract class Page {

    protected Application app;
    protected Scanner input;

    /**
     * Constructor.
     * @param app belonging to
     */
    public Page(Application app) {
        super();
        this.app = app;
        this.input = new Scanner(System.in);
    }

    /**
     * Info displayed in the page.
     */
    public abstract void printPageInfos();

    /**
     * React to user input.
     * @param command input
     */
    public abstract void computeCommand(String command);

    /**
     * Event triggered when the page is in background and its upper page get's popped.
     */
    public void onFirstGroundEvent() {

    }

}


text:
/*
 * Generator for RDDs for testing with ScalaCheck
 */
package com.holdenkarau.spark.testing

import scala.reflect.{ClassTag, classTag}

import org.apache.spark.rdd.RDD
import org.apache.spark.SparkContext
import org.apache.spark.annotation.Experimental
import org.scalacheck._

@Experimental
object RDDGenerator {
  // Generate an RDD of the desired type. Attempt to try different number of partitions
  // so as to catch problems with empty partitions, etc.
  def genRDD[T: ClassTag](sc: SparkContext)(implicit a: Arbitrary[T]): Gen[RDD[T]] = {
    arbitraryRDD(sc).arbitrary
  }
  def arbitraryRDD[T: ClassTag](sc: SparkContext)(implicit a: Arbitrary[T]): Arbitrary[RDD[T]] = {
    Arbitrary {
      val genElem = for(e <- Arbitrary.arbitrary[T]) yield e
      def generateRDDOfSize(size: Int) = {
        val special = List(size, (size/2).toInt, 2, 3)
        val myGen = for {
          n <- Gen.chooseNum(1, 2*size, special:_*)
          m <- Gen.listOfN(n, genElem)
        } yield (n,m)
        myGen.map{case (numPartitions, data) => sc.parallelize(data, numPartitions)}
      }
      def generateEmptyRDDOfType() = {
        sc.emptyRDD[T]
      }
      Gen.sized(sz =>
        sz match {
          case 0 => generateEmptyRDDOfType()
          case _ => generateRDDOfSize(sz)
        })
    }
  }
}


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

<resources>
  <plurals name="uploads_pending_notification_indicator">
    <item quantity="one">s\'està carregant %1$d fitxer</item>
    <item quantity="other">s\'estan carregant %1$d fitxers</item>
  </plurals>
  <plurals name="contributions_subtitle">
    <item quantity="one">(%1$d)</item>
    <item quantity="other">(%1$d)</item>
  </plurals>
  <plurals name="starting_multiple_uploads">
    <item quantity="one">S\'està iniciant %1$d càrrega</item>
    <item quantity="other">S\'estan iniciant %1$d càrregues</item>
  </plurals>
  <plurals name="multiple_uploads_title">
    <item quantity="one">%1$d càrrega</item>
    <item quantity="other">%1$d càrregues</item>
  </plurals>
  <plurals name="share_license_summary">
    <item quantity="one">Aquesta imatge quedarà sota llicència %1$s</item>
    <item quantity="other">Aquestes imatges quedaran sota llicència %1$s</item>
  </plurals>
  <plurals name="upload_count_title">
    <item quantity="one">%1$d pujada</item>
    <item quantity="other">%1$d pujades</item>
  </plurals>
  <string name="title_activity_explore">Explora</string>
  <string name="navigation_item_explore">Explora</string>
  <string name="preference_category_appearance">Aparença</string>
  <string name="preference_category_general">General</string>
  <string name="preference_category_feedback">Comentaris</string>
  <string name="preference_category_privacy">Privadesa</string>
  <string name="preference_category_location">Ubicació</string>
  <string name="app_name">Commons</string>
  <string name="menu_settings">Configuració</string>
  <string name="intent_share_upload_label">Carrega a Commons</string>
  <string name="username">Nom d\'usuari</string>
  <string name="password">Contrasenya</string>
  <string name="login_credential">Inicieu una sessió al vostre compte beta de Commons</string>
  <string name="login">Inicia una sessió</string>
  <string name="forgot_password">Heu oblidat la contrasenya?</string>
  <string name="signup">Registre</string>
  <string name="logging_in_title">S'està iniciant la sessió</string>
  <string name="logging_in_message">Espereu…</string>
  <string name="login_success">S\'ha iniciat sessió correctament!</string>
  <string name="login_failed">Error en iniciar la sessió!</string>
  <string name="upload_failed">No s\'ha trobat el fitxer. Proveu-ho amb un altre fitxer.</string>
  <string name="authentication_failed">L'autenticació ha fallat. Torneu a provar d'iniciar una sessió.</string>
  <string name="uploading_started">Ha començat la càrrega!</string>
  <string name="upload_completed_notification_title">S'ha pujat %1$s.</string>
  <string name="upload_completed_notification_text">Prem per veure la teva càrrega</string>
  <string name="upload_progress_notification_title_start">Començant la càrrega al servidor de  %1$s</string>
  <string name="upload_progress_notification_title_in_progress">Carregant %1$s</string>
  <string name="upload_progress_notification_title_finishing">Acabant la càrrega al servidor de %1$s</string>
  <string name="upload_failed_notification_title">Error al carregar %1$s</string>
  <string name="upload_failed_notification_subtitle">Prem per veure-ho</string>
  <string name="title_activity_contributions">Les meves càrregues recents</string>
  <string name="contribution_state_queued">En cua</string>
  <string name="contribution_state_failed">Ha fallat</string>
  <string name="contribution_state_in_progress">%1$d%% completat</string>
  <string name="contribution_state_starting">Càrrega en curs</string>
  <string name="menu_from_gallery">De la galeria</string>
  <string name="menu_from_camera">Fes una foto</string>
  <string name="menu_nearby">A prop</string>
  <string name="provider_contributions">Les meves càrregues</string>
  <string name="menu_share">Comparteix</string>
  <string name="menu_open_in_browser">Mostra al navegador</string>
  <string name="share_title_hint">Llegenda (obligatori)</string>
  <string name="share_description_hint">Descripció</string>
  <string name="login_failed_network">No s\'ha pogut iniciar la sessió – error de xarxa</string>
  <string name="login_failed_wrong_credentials">No es pot iniciar la sessió - comproveu el nom d\'usuari i la contrasenya</string>
  <string name="login_failed_throttled">Massa intents erronis – Proveu-ho de nou d\'aquí uns minuts.</string>
  <string name="login_failed_blocked">Ho sentim, aquest usuari ha estat blocat a Commons</string>
  <string name="login_failed_2fa_needed">Heu de proporcionar el vostre codi d\'autenticació de dos factors.</string>
  <string name="login_failed_generic">Ha fallat l\'inici de sessió</string>
  <string name="share_upload_button">Carrega</string>
  <string name="multiple_share_base_title">Anomena aquest conjunt</string>
  <string name="add_set_name_toast">Proporcioneu un nom per al conjunt</string>
  <string name="provider_modifications">Modificacions</string>
  <string name="menu_upload_single">Carrega</string>
  <string name="categories_search_text_hint">Categories de cerca</string>
  <string name="menu_save_categories">Desa</string>
  <string name="refresh_button">Refresca</string>
  <string name="display_list_button">Llista</string>
  <string name="gps_disabled">El vostre dispositiu no té el GPS habilitat. El voleu habilitar?</string>
  <string name="enable_gps">Habilita el GPS</string>
  <string name="contributions_subtitle_zero">Encara no hi ha cap càrrega</string>
  <string name="categories_not_found">No s\'ha trobat cap categoria que coincideixi amb %1$s</string>
  <string name="categories_skip_explanation">Afegiu categories per fer que les vostres imatges siguin més fàcils de trobar a Wikimedia Commons.</string>
  <string name="categories_activity_title">Categories</string>
  <string name="title_activity_settings">Paràmetres</string>
  <string name="title_activity_signup">Registre</string>
  <string name="title_activity_featured_images">Imatges destacades</string>
  <string name="title_activity_category_details">Categoria</string>
  <string name="title_activity_review">Revisió per parells</string>
  <string name="menu_about">Quant a</string>
  <string name="about_license">L'aplicació de codi obert Wikimedia Commons fou creada per, i rep manteniment de, cessionaris i voluntaris de la comunitat de Wikimedia. La Fundació Wikimedia no està involucrada en la creació, el desenvolupament ni el manteniment de l'aplicació.</string>
  <string name="about_improve">Crea una incidència de GitHub nova per a informes d\'error i suggeriments.</string>
  <string name="about_privacy_policy">Política de privadesa</string>
  <string name="about_credits">Crèdits</string>
  <string name="title_activity_about">Quant a</string>
  <string name="menu_feedback">Envia comentaris (per correu)</string>
  <string name="no_email_client">No hi ha cap client de correu instal·lat</string>
  <string name="provider_categories">Categories usades recentment</string>
  <string name="waiting_first_sync">S'està esperant la primera sincronització…</string>
  <string name="no_uploads_yet">Encara no heu carregat cap foto.</string>
  <string name="menu_retry_upload">Reintenta</string>
  <string name="menu_cancel_upload">Cancel·la</string>
  <string name="media_upload_policy">En trametre aquesta imatge declaro que és fruit del meu treball, que no conté material amb drets d\'autor o amb autofotos, i que s\'adhereix a les polítiques de Wikimedia Commons.</string>
  <string name="menu_download">Baixa</string>
  <string name="preference_license">Llicència per defecte</string>
  <string name="use_previous">Utilitzar títol i descripció anteriors</string>
  <string name="allow_gps">Obté la ubicació actual automàticament</string>
  <string name="allow_gps_summary">Recupera la ubicació actual si la imatge no està geoetiquetada, i n\'etiqueta la imatge geogràficament. Avís: això revelarà la vostra ubicació actual.</string>
  <string name="preference_theme">Tema</string>
  <string name="license_name_cc_by_sa_four">Reconeixement-CompartirIgual 4.0</string>
  <string name="license_name_cc_by_four">Reconeixement 4.0</string>
  <string name="license_name_cc_by_sa">Reconeixement-CompartirIgual 3.0</string>
  <string name="license_name_cc_by">Reconeixement 3.0</string>
  <string name="license_name_cc0">CC0</string>
  <string name="license_name_cc_by_sa_3_0">CC BY-SA 3.0</string>
  <string name="license_name_cc_by_sa_3_0_at">CC BY-SA 3.0 (Àustria)</string>
  <string name="license_name_cc_by_sa_3_0_de">CC BY-SA 3.0 (Alemanya)</string>
  <string name="license_name_cc_by_sa_3_0_ee">CC BY-SA 3.0 (Estònia)</string>
  <string name="license_name_cc_by_sa_3_0_es">CC BY-SA 3.0 (Espanya)</string>
  <string name="license_name_cc_by_sa_3_0_hr">CC BY-SA 3.0 (Croàcia)</string>
  <string name="license_name_cc_by_sa_3_0_lu">CC BY-SA 3.0 (Luxemburg)</string>
  <string name="license_name_cc_by_sa_3_0_nl">CC BY-SA 3.0 (Països Baixos)</string>
  <string name="license_name_cc_by_sa_3_0_no">CC BY-SA 3.0 (Noruega)</string>
  <string name="license_name_cc_by_sa_3_0_pl">CC BY-SA 3.0 (Polònia)</string>
  <string name="license_name_cc_by_sa_3_0_ro">CC BY-SA 3.0 (Romania)</string>
  <string name="license_name_cc_by_3_0">CC BY 3.0</string>
  <string name="license_name_cc_by_sa_4_0">CC BY-SA 4.0</string>
  <string name="license_name_cc_by_4_0">CC BY 4.0</string>
  <string name="license_name_cc_zero">CC Zero</string>
  <string name="tutorial_1_text">Wikimedia Commons hostatja la majoria d\'imatges que s\'utilitzen a la Viquipèdia.</string>
  <string name="tutorial_1_subtext">Les vostres imatges ajuden a educar gent d\'arreu del món!</string>
  <string name="tutorial_2_text">Carregueu només imatges que hàgiu pres o creat:</string>
  <string name="tutorial_2_subtext_1">Objectes naturals (flors, animals, muntanyes)</string>
  <string name="tutorial_2_subtext_2">Objectes útils (bicicletes, estacions de tren)</string>
  <string name="tutorial_2_subtext_3">Gent famosa (el vostre batlle, atletes olímpiques que hàgiu conegut)</string>
  <string name="tutorial_3_text">NO carregueu:</string>
  <string name="tutorial_3_subtext_1">Autofotos o fotos de les amistats</string>
  <string name="tutorial_3_subtext_2">Imatges baixades des de la Internet</string>
  <string name="tutorial_3_subtext_3">Captures de pantalla d\'aplicacions privatives</string>
  <string name="tutorial_4_text">Exemple de càrrega:</string>
  <string name="tutorial_4_subtext_1">Títol: Òpera de Sydney</string>
  <string name="tutorial_4_subtext_2">Descripció: Òpera de Sydney vista des de l\'altre costat de la badia</string>
  <string name="welcome_wikipedia_text">Doneu les vostres imatges. Ajudeu a donar vida als articles de la Viquipèdia!</string>
  <string name="welcome_wikipedia_subtext">Les imatges de la Viquipèdia vénen de la Wikimedia Commons.</string>
  <string name="welcome_copyright_text">Les vostres imatges ajuden a educar gent d\'arreu del món.</string>
  <string name="welcome_copyright_subtext">No utilitzis material amb copyright que puguis trobar a Internet, ni tampoc imatges de pòsters, portades de llibres, etc.</string>
  <string name="welcome_final_text">Creieu que ho heu entès?</string>
  <string name="welcome_final_button_text">Sí!</string>
  <string name="welcome_help_button_text">Més informació</string>
  <string name="detail_panel_cats_label">Categories</string>
  <string name="detail_panel_cats_loading">Carregant…</string>
  <string name="detail_panel_cats_none">No se n\'ha seleccionat cap</string>
  <string name="detail_description_empty">Sense descripció</string>
  <string name="detail_discussion_empty">Cap discussió</string>
  <string name="detail_license_empty">Llicència desconeguda</string>
  <string name="menu_refresh">Refresca</string>
  <string name="storage_permission_title">S\'estan sol·licitant permisos d\'emmagatzematge</string>
  <string name="location_permission_title">Sol·licitud de permisos d\'ubicació</string>
  <string name="location_permission_rationale">Permís opcional: obtén la ubicació actual per al suggeriment de categories</string>
  <string name="ok">D\'acord</string>
  <string name="title_activity_nearby">Llocs propers</string>
  <string name="no_nearby">No s\'han trobat llocs propers</string>
  <string name="warning">Avís</string>
  <string name="upload_image_duplicate">El fitxer ja existeix a Commons. Esteu segur que voleu procedir?</string>
  <string name="yes">Sí</string>
  <string name="no">No</string>
  <string name="media_detail_title">Títol</string>
  <string name="media_detail_description">Descripció</string>
  <string name="media_detail_discussion">Discussió</string>
  <string name="media_detail_author">Autor</string>
  <string name="media_detail_uploaded_date">Data de càrrega</string>
  <string name="media_detail_license">Llicència</string>
  <string name="media_detail_coordinates">Coordenades</string>
  <string name="media_detail_coordinates_empty">No s\'ha proporcionat cap</string>
  <string name="become_a_tester_title">Proveu la versió beta</string>
  <string name="_2fa_code">Codi 2FA</string>
  <string name="number_of_uploads">El meu límit de càrrega recent</string>
  <string name="maximum_limit">Límit màxim</string>
  <string name="invalid_zero">El zero no és vàlid</string>
  <string name="invalid_input">Entrada no vàlida</string>
  <string name="maximum_limit_alert">No es poden mostrar més de 500</string>
  <string name="enter_valid">Introduïu un nombre vàlid</string>
  <string name="cannot_be_zero">El límit de càrrega no pot ser 0</string>
  <string name="set_limit">Límit de càrrega recent</string>
  <string name="login_failed_2fa_not_supported">Actualment no es permet l\'autenticació de dos factors.</string>
  <string name="logout_verification">Realment voleu finalitzar la sessió?</string>
  <string name="commons_logo">Logo de Commons</string>
  <string name="commons_website">Lloc web del Commons</string>
  <string name="commons_facebook">Pàgina del Facebook del Commons</string>
  <string name="commons_github">Codi font del Commons a GitHub</string>
  <string name="background_image">Imatge de fons</string>
  <string name="mediaimage_failed">Ha fallat la imatge multimèdia</string>
  <string name="no_image_found">No s'ha trobat cap imatge</string>
  <string name="no_subcategory_found">No s\'han trobat subcategories</string>
  <string name="no_parentcategory_found">No s\'ha trobat cap categoria pare</string>
  <string name="upload_image">Carrega la imatge</string>
  <string name="welcome_image_mount_zao">Mont Zao</string>
  <string name="welcome_image_llamas">Llames</string>
  <string name="welcome_image_rainbow_bridge">Pont Rainbow</string>
  <string name="welcome_image_tulip">Tulipa</string>
  <string name="welcome_image_no_selfies">No autofotos</string>
  <string name="welcome_image_proprietary">Imatge privativa</string>
  <string name="welcome_image_welcome_wikipedia">Benvinguts a la Viquipèdia</string>
  <string name="welcome_image_welcome_copyright">Drets d\'autor de benvinguda</string>
  <string name="welcome_image_sydney_opera_house">Casa d\'Òpera de Sydney</string>
  <string name="cancel">Cancel·la</string>
  <string name="navigation_drawer_open">Obre</string>
  <string name="navigation_drawer_close">Tanca</string>
  <string name="navigation_item_home">Inici</string>
  <string name="navigation_item_upload">Carrega</string>
  <string name="navigation_item_nearby">A prop</string>
  <string name="navigation_item_about">Quant a</string>
  <string name="navigation_item_settings">Paràmetres</string>
  <string name="navigation_item_feedback">Comentaris</string>
  <string name="navigation_item_logout">Finalitza la sessió</string>
  <string name="navigation_item_info">Tutorial</string>
  <string name="navigation_item_notification">Notificacions</string>
  <string name="navigation_item_featured_images">Destacat</string>
  <string name="navigation_item_review">Revisa</string>
  <string name="nearby_needs_permissions">No poden mostrar-se els llocs propers sense permisos d\'ubicació</string>
  <string name="no_description_found">no s\'ha trobat cap descripció</string>
  <string name="nearby_info_menu_commons_article">Article del fitxer a Commons</string>
  <string name="nearby_info_menu_wikidata_article">Element del Wikidata</string>
  <string name="nearby_info_menu_wikipedia_article">Article de Viquipèdia</string>
  <string name="error_while_cache">Error mentre es carregaven les fotografies</string>
  <string name="upload_problem_exist">Problemes potencials d\'aquesta imatge:</string>
  <string name="upload_problem_image_dark">La imatge és massa fosca.</string>
  <string name="upload_problem_image_blurry">La imatge és borrosa.</string>
  <string name="upload_problem_image_duplicate">La imatge ja és a Commons.</string>
  <string name="upload_problem_different_geolocation">Aquesta imatge s\'ha pres a una altra ubicació.</string>
  <string name="upload_problem_do_you_continue">Encara voleu carregar la imatge?</string>
  <string name="give_permission">Dóna permís</string>
  <string name="use_external_storage">Utilitza l'emmagatzematge extern</string>
  <string name="use_external_storage_summary">Desa les fotos fetes amb la càmera integrada del dispositiu</string>
  <string name="login_to_your_account">Entreu en el vostre compte</string>
  <string name="send_log_file">Envia el fitxer de registre</string>
  <string name="send_log_file_description">Envia el fitxer de registre a l\'equip de desenvolupament per correu per ajudar a depurar problemes amb l\'aplicació. Nota: els registres poden incorporar informació identificadora</string>
  <string name="no_web_browser">No s\'ha trobat cap navegador web per obrir l\'URL</string>
  <string name="null_url">Error! No s\'ha trobat l\'URL</string>
  <string name="nominate_deletion">Nomina per a supressió</string>
  <string name="nominated_for_deletion">S\'ha nominat la imatge per a supressió.</string>
  <string name="nominated_see_more">Vegeu la pàgina web per a més detalls</string>
  <string name="nominating_file_for_deletion">S\'està nominant %1$s per a ser eliminada.</string>
  <string name="nominating_for_deletion_status">S\'està nominant per a ser eliminat el fitxer: %1$s</string>
  <string name="view_browser">Mostra en el navegador</string>
  <string name="skip_login">Omet</string>
  <string name="navigation_item_login">Inicia una sessió</string>
  <string name="skip_login_title">Realment voleu ometre l\'inici de sessió?</string>
  <string name="skip_login_message">Caldrà que inicieu una sessió per carregar imatges en un futur.</string>
  <string name="login_alert_message">Inicieu una sessió per utilitzar aquesta característica</string>
  <string name="copy_wikicode">Copia el wikitext al portaretalls</string>
  <string name="wikicode_copied">S\'ha copiat el wikitext al portaretalls</string>
  <string name="nearby_location_has_not_changed">La ubicació no ha canviat.</string>
  <string name="nearby_location_not_available">\"Pels voltants\" podria no funcionar correctament, la ubicació no està disponible.</string>
  <string name="location_permission_rationale_nearby">Permís necessari per a mostrar una llista de llocs propers</string>
  <string name="get_directions">Com anar-hi</string>
  <string name="read_article">Llegeix l'article</string>
  <string name="notifications_welcome">Us donem la benvinguda a Wikimedia Commons, %1$s! Ens alegra que hàgiu vingut.</string>
  <string name="notifications_talk_page_message">%1$s us ha deixat un missatge a la vostra pàgina de discussió</string>
  <string name="notifications_thank_you_edit">Gràcies per fer una modificació</string>
  <string name="notifications_mention">%1$s us ha mencionat a %2$s.</string>
  <string name="toggle_view_button">Commuta la vista</string>
  <string name="nearby_directions">Direccions</string>
  <string name="nearby_wikidata">Wikidata</string>
  <string name="nearby_wikipedia">Viquipèdia</string>
  <string name="nearby_commons">Commons</string>
  <string name="about_rate_us">Valoreu-nos</string>
  <string name="about_faq">Preguntes freqüents</string>
  <string name="welcome_skip_button">Omet la guia</string>
  <string name="no_internet">Internet no disponible</string>
  <string name="internet_established">Internet disponible</string>
  <string name="error_notifications">S\'ha produït un error en recuperar notificacions</string>
  <string name="no_notifications">No s\'ha trobat cap notificació</string>
  <string name="about_translate">Traduir</string>
  <string name="about_translate_title">Llengües</string>
  <string name="about_translate_message">Seleccioneu la llengua en què voleu enviar traduccions</string>
  <string name="about_translate_proceed">Procedeix</string>
  <string name="about_translate_cancel">Cancel·la</string>
  <string name="retry">Torna-ho a provar</string>
  <string name="showcase_view_got_it_button">Entesos</string>
  <string name="showcase_view_list_icon">En tocar el botó es desplegarà una llista d\'aquests llocs</string>
  <string name="showcase_view_plus_fab">Podeu pujar una foto des de qualsevol lloc de la vostra galeria o càmera</string>
  <string name="no_images_found">No s'ha trobat cap imatge.</string>
  <string name="error_loading_images">S\'ha produït un error en carregar les imatges.</string>
  <string name="image_uploaded_by">Carregada per: %1$s</string>
  <string name="block_notification_title">Blocat</string>
  <string name="block_notification">Esteu blocat d\'editar a Commons</string>
  <string name="appwidget_img">Imatge del dia</string>
  <string name="app_widget_heading">Imatge del dia</string>
  <string name="menu_search_button">Cerca</string>
  <string name="search_commons">Cerca a Commons</string>
  <string name="images_not_found">No s\'ha trobat cap imatge que coincideixi amb %1$s</string>
  <string name="title_activity_search">Cerca</string>
  <string name="search_recent_header">Cerques recents:</string>
  <string name="provider_searches">Consultes de cerca recents</string>
  <string name="error_loading_categories">S\'ha produït un error en carregar les categories.</string>
  <string name="search_tab_title_media">Multimèdia</string>
  <string name="search_tab_title_categories">Categories</string>
  <string name="explore_tab_title_featured">Destacats</string>
  <string name="explore_tab_title_mobile">Penjats mitjançant el mòbil</string>
  <string name="successful_wikidata_edit">S\'ha afegit la imatge a %1$s en Wikidata!</string>
  <string name="wikidata_edit_failure">Ha fallat l\'actualització de l\'entitat de Wikidata corresponent!</string>
  <string name="menu_set_wallpaper">Defineix com a fons d\'escriptori</string>
  <string name="quiz">Qüestionari</string>
  <string name="quiz_question_string">Esteu d\'acord en carregar la imatge?</string>
  <string name="question">Pregunta</string>
  <string name="result">Resultat</string>
  <string name="selfie_answer">Les autofotos no tenen molt valor enciclopèdic. No carregueu una foto vostra a menys que ja tingueu un article vostre a la Viquipèdia.</string>
  <string name="warning_for_no_answer">Seleccioneu una de les dues opcions per a respondre la pregunta</string>
  <string name="user_not_logged_in">La sessió ha expirat. Torneu a iniciar la sessió.</string>
  <string name="quiz_result_share_message">Compartiu el vostre qüestionari amb els amics!</string>
  <string name="continue_message">Continua</string>
  <string name="correct">Resposta correcta</string>
  <string name="wrong">Resposta incorrecta</string>
  <string name="quiz_screenshot_question">Esteu d\'acord en carregar la captura de pantalla?</string>
  <string name="share_app_title">Comparteix l\'aplicació</string>
  <string name="share_coordinates_not_present">No s\'han especificat les coordenades durant la selecció d\'imatge</string>
  <string name="error_fetching_nearby_places">S\'ha produït un error en recuperar els llocs propers.</string>
  <string name="add_description">+ Afegeix una descripció</string>
  <string name="no_recent_searches">No hi ha cap cerca recent</string>
  <string name="delete_recent_searches_dialog">Esteu segur que voleu esborrar el vostre historial de cerca?</string>
  <string name="delete_search_dialog">Voleu suprimir aquesta cerca?</string>
  <string name="search_history_deleted">S\'ha eliminat l\'historial de cerca</string>
  <string name="nominate_delete">Nomina per a supressió</string>
  <string name="delete">Suprimeix</string>
  <string name="Achievements">Assoliments</string>
  <string name="statistics">Estadístiques</string>
  <string name="statistics_thanks">Agraïments rebuts</string>
  <string name="statistics_featured">Imatges destacades</string>
  <string name="statistics_wikidata_edits">Imatges per proximitat</string>
  <string name="level">Nivell</string>
  <string name="images_uploaded">Imatges carregades</string>
  <string name="image_reverts">Imatges no revertides</string>
  <string name="images_used_by_wiki">Imatges utilitzades</string>
  <string name="achievements_share_message">Compartiu els vostres assoliments amb els amics!</string>
  <string name="achievements_revert_limit_message">mínim necessari:</string>
  <string name="error_occurred">S\'ha produït un error!</string>
  <string name="notifications_channel_name_all">Notificació de Commons</string>
  <string name="preference_author_name_toggle">Utilitza un nom d\'autor personalitzat</string>
  <string name="preference_author_name_toggle_summary">Utilitza un nom d\'autor personalitzat en comptes del vostre nom d\'usuari a l\'hora de pujar fotos</string>
  <string name="preference_author_name">Nom de l\'autor personalitzat</string>
  <string name="contributions_fragment">Contribucions</string>
  <string name="nearby_fragment">A prop</string>
  <string name="notifications">Notificacions</string>
  <string name="read_notifications">Notificacions (llegides)</string>
  <string name="display_nearby_notification">Mostra notificacions properes</string>
  <string name="display_nearby_notification_summary">Feu un toc aquí per a veure el lloc més proper que necessiti fotos</string>
  <string name="no_close_nearby">No s\'han trobat llocs propers prop vostre</string>
  <string name="list_sheet">Llista</string>
  <string name="storage_permission">Permissos d\'emmagatzematge</string>
  <string name="write_storage_permission_rationale_for_image_share">Ens calen permisos per a accedir a l\'emmagatzematge extern del vostre dispositiu per tal de pujar imatges.</string>
  <string name="step_count">Pas %1$d de %2$d</string>
  <string name="image_in_set_label">Imatge %1$s en el conjunt</string>
  <string name="next">Següent</string>
  <string name="previous">Anterior</string>
  <string name="submit">Envia</string>
  <string name="upload_title_duplicate">Ja existeix un fitxer amb el nom %1$s. Segur que voleu procedir?</string>
  <string name="navigation_item_bookmarks">Adreces d\'interès</string>
  <string name="title_activity_bookmarks">Adreces d\'interès</string>
  <string name="title_page_bookmarks_pictures">Imatges</string>
  <string name="title_page_bookmarks_locations">Ubicacions</string>
  <string name="menu_bookmark">Afegeix/suprimeix de les adreces d\'interès</string>
  <string name="provider_bookmarks">Adreces d\'interès</string>
  <string name="bookmark_empty">No heu afegit cap adreça d\'interès</string>
  <string name="provider_bookmarks_location">Adreces d\'interès</string>
  <string name="deletion_reason_uploaded_by_mistake">Ho he carregat per error</string>
  <string name="deletion_reason_publicly_visible">No sabia que seria visible públicament</string>
  <string name="deletion_reason_bad_for_my_privacy">Me n\'he adonat que no era bo per a la meva privadesa</string>
  <string name="deletion_reason_no_longer_want_public">He canviat d\'opinió i no vull que continuï sent visible públicament</string>
  <string name="deletion_reason_not_interesting">Ho sentim, la imatge no sembla interessant per a una enciclopèdia</string>
  <string name="no_uploads">Us donem la benvinguda a Commons!\n\nPugeu el vostre primer fitxer multimèdia fent un toc al botó Afegeix.</string>
  <string name="desc_language_Worldwide">Arreu del món</string>
  <string name="desc_language_America">Amèrica</string>
  <string name="desc_language_Europe">Europa</string>
  <string name="desc_language_Middle_East">Orient mitjà</string>
  <string name="desc_language_Africa">Àfrica</string>
  <string name="desc_language_Asia">Àsia</string>
  <string name="desc_language_Pacific">Pacífic</string>
  <string name="no_categories_selected">No s\'ha seleccionat cap categoria</string>
  <string name="no_categories_selected_warning_desc">Les imatges sense categories rarament fan cap servei. Esteu segur que voleu continuar sense seleccionar cap categoria?</string>
  <string name="upload_flow_all_images_in_set">(Per a totes les imatges en el conjunt)</string>
  <string name="search_this_area">Cerca en aquesta àrea</string>
  <string name="nearby_card_permission_title">Sol·licitud de permisos</string>
  <string name="nearby_card_permission_explanation">Voldríeu fer servir la vostra ubicació actual per a mostrar el lloc més proper que necessiti fotos?</string>
  <string name="unable_to_display_nearest_place">No es pot mostrar el lloc més proper que necessita fotos sense permisos d\'ubicació</string>
  <string name="never_ask_again">No ho tornis a demanar</string>
  <string name="display_location_permission_title">Mostra el permís d\'ubicació</string>
  <string name="ends_on">Finalitza el:</string>
  <string name="display_campaigns">Mostra les campanyes</string>
  <string name="display_campaigns_explanation">Consulta les campanyes en curs</string>
  <string name="error_processing_image">S\'ha produït un error en processar la imatge. Torneu-ho a provar!</string>
  <string name="nominate_for_deletion_done">Fet</string>
  <string name="notsure">No n\'estic segur</string>
  <string name="send_thank_success_title">Enviament d\'agraïments: Èxit</string>
  <string name="send_thank_failure_title">Enviament d\'agraïments: Fallada</string>
  <string name="send_thank_send">S\'estan enviant els agraïments</string>
  <string name="send_thank_notification_title">S\'estan enviant agraïments</string>
  <string name="send_thank_toast">S\'estan enviant agraïments per %1$s</string>
  <string name="review_copyright">Això segueix les regles de drets d\'autor?</string>
  <string name="review_category">Té categorizació correcta?</string>
  <string name="review_spam">S\'adiu al tema?</string>
  <string name="review_thanks">Voleu agrair al col·laborador?</string>
  <string name="review_spam_explanation">Feu clic a NO si voleu nominar la imatge per a ser eliminada si no té cap servei.</string>
  <string name="review_no_category">Oh, no està ni tan sols categoritzat!</string>
  <string name="review_category_explanation">Aquesta imatge està sota les categories %1$s.</string>
  <string name="review_spam_report_question">És fora d\'abast perquè és</string>
  <string name="review_c_violation_report_question">És una violació de drets d\'autor perquè és</string>
  <string name="review_category_yes_button_text">No, mala categorització</string>
  <string name="review_category_no_button_text">Sembla bé</string>
  <string name="review_spam_yes_button_text">No, fora d\'abast</string>
  <string name="review_spam_no_button_text">Sembla bé</string>
  <string name="review_copyright_yes_button_text">No, vulneració de drets d\'autor</string>
  <string name="review_copyright_no_button_text">Sembla bé</string>
  <string name="review_thanks_yes_button_text">I tant</string>
  <string name="review_thanks_no_button_text">Imatge següent</string>
  <string name="no_image">No s\'ha utilitzat cap imatge</string>
  <string name="no_image_reverted">No s\'ha revertit cap imatge</string>
  <string name="no_image_uploaded">No s\'ha carregat cap imatge</string>
  <string name="no_notification">No teniu cap notificació sense llegir</string>
  <string name="no_read_notification">No teniu cap notificació llegida</string>
  <string name="share_logs_using">Comparteix els registres utilitzant</string>
  <string name="menu_option_read">Mostra els llegits</string>
  <string name="menu_option_unread">Mostra aquelles per llegir</string>
  <string name="error_occurred_in_picking_images">S\'ha produït un error en escollir les imatges</string>
  <string name="image_chooser_title">Trieu les imatges per carregar</string>
  <string name="please_wait">Espereu…</string>
  <string name="welcome_do_upload_content_description">Exemples d'imatges adequades per a Commons</string>
  <string name="welcome_dont_upload_content_description">Exemples d'imatges que no s'han de pujar</string>
  <string name="skip_image">Omet aquesta imatge</string>
  <string name="manage_exif_tags">Gestiona les etiquetes EXIF</string>
  <string name="manage_exif_tags_summary">Seleccioneu quines etiquetes EXIF voleu conservar en les càrregues</string>
  <string name="exif_tag_name_author">Autor</string>
  <string name="exif_tag_name_copyright">Drets d'autor</string>
  <string name="exif_tag_name_location">Ubicació</string>
  <string name="exif_tag_name_cameraModel">Model de la càmera</string>
  <string name="exif_tag_name_lensModel">Model de lent</string>
  <string name="exif_tag_name_serialNumbers">Números de sèrie</string>
  <string name="exif_tag_name_software">Programari</string>
  <string name="share_via">Comparteix l\'aplicació a través de...</string>
  <string name="image_info">Informació de la imatge</string>
  <string name="no_categories_found">No s'ha trobat cap categoria</string>
  <string name="upload_cancelled">S'ha cancel·lat la pujada</string>
  <string name="previous_image_title_description_not_found">No hi ha dades del títol o de la descripció anteriors de la imatge</string>
  <string name="dialog_box_text_nomination">Per què s\'hauria de suprimir %1$s?</string>
  <string name="review_is_uploaded_by">%1$s és pujada per: %2$s</string>
  <string name="default_description_language">Llengua per defecte de la descripció</string>
  <string name="delete_helper_make_deletion_toast">S\'està provant de nominar %1$s per a eliminar</string>
  <string name="delete_helper_show_deletion_title">Nomina per a supressió</string>
  <string name="delete_helper_show_deletion_title_success">Èxit</string>
  <string name="delete_helper_show_deletion_message_if">S\'ha nominat %1$s per a eliminar.</string>
  <string name="delete_helper_show_deletion_title_failed">Ha fallat</string>
  <string name="delete_helper_show_deletion_message_else">No s\'ha pogut sol·licitar l\'eliminació.</string>
  <string name="delete_helper_ask_spam_selfie">Una autofoto</string>
  <string name="delete_helper_ask_spam_blurry">Borrosa</string>
  <string name="delete_helper_ask_spam_nonsense">Sense sentit</string>
  <string name="delete_helper_ask_spam_other">Altre</string>
  <string name="delete_helper_ask_reason_copyright_press_photo">Foto de premsa</string>
  <string name="delete_helper_ask_reason_copyright_internet_photo">Foto aleatòria d\'Internet</string>
  <string name="delete_helper_ask_reason_copyright_logo">Logotip</string>
  <string name="delete_helper_ask_reason_copyright_other">Altra</string>
  <string name="delete_helper_ask_alert_set_positive_button_reason">Perquè sí</string>
  <string name="share_image_via">Comparteix la imatge via</string>
  <string name="no_achievements_yet">No hi heu fet cap contribució encara</string>
  <string name="account_created">S\'ha creat el compte</string>
  <string name="text_copy">S\'ha copiat el text al porta-retalls</string>
  <string name="notification_mark_read">La notificació s\'ha marcat com llegida</string>
  <string name="some_error">S\'ha produït un error!</string>
  <string name="place_state">Estat del lloc:</string>
  <string name="place_state_exists">Existeix</string>
  <string name="place_state_needs_photo">Cal una foto</string>
  <string name="place_type">Tipus de lloc:</string>
  <string name="nearby_search_hint">Pont, museu, hotel, etc.</string>
  <string name="you_must_reset_your_passsword">Quelcom ha fallat amb la vostra sessió. Reinicieu la vostra contrasenya!!</string>
  <string name="theme_default_name">Seguir el sistema</string>
  <string name="theme_dark_name">Fosc</string>
  <string name="theme_light_name">Clar</string>
  <string name="achievements_tab_title">Assoliments</string>
</resources>


text:
Adjustments

  Deductions:

      <input type="checkbox" name="{{ deduction }}" id="{{ deduction }}"
       ng-model="data.deductions.federal.ordinaryIncome[deduction]">
      {{ deduction | splitCamelCase }}

      <input type="checkbox" name="tradRetirement" id="tradRetirement" ng-model="data.deductions.federal.ordinaryIncome.hasTradRetirement">
      Traditional 401k + IRA

      <input type="checkbox" name="dependents" id="dependents"
        ng-model="data.deductions.federal.ordinaryIncome.dependents">
      Dependents

  Itemized
Deduction:
  <input type="text" id="itemized" name="itemized" convert-to-number ng-model="data.deductions.federal.ordinaryIncome.itemizedDeduction">

  t401k + tIRA
Contribution:
  <input type="text" id="tradRetirementContribution" name="tradRetirementContribution" convert-to-number ng-model="data.deductions.federal.ordinaryIncome.tradRetirementContribution">

  Dependents:
  <select id="dependents" name="dependents" ng-model="data.deductions.federal.ordinaryIncome.numDependents"
   ng-options="num as num for num in [0, 1, 2, 3, 4, 5]">
  </select>

  Credits:

      <input type="checkbox" name="{{ credit }}" id="{{ credit }}"
       ng-model="data.credits.federal.ordinaryIncome[credit]">
      {{ credit | splitCamelCase }}

  Retirement
 Contribution:
  <input type="text" id="retirement-contribution" name="retirement-contribution" ng-model="data.credits.federal.ordinaryIncome.retirementContribution" convert-to-number>

  Employment:

    <input type="checkbox" name="self-employed" id="self-employed"
     ng-model="data.selfEmployed">
    Self Employed


text:
<?php

include_once (dirname(dirname(__FILE__)) . '/jigoshop_options_interface.php');

abstract class Jigoshop_Base {

    private static $jigoshop_options;

	/**
	 * Wrapper to WordPress add_action() function
	 * adds the necessary class address on the function passed for WordPress to use
	 *
	 * @param string $tag - the action hook name
	 * @param callback $function_to_add - the function name to add to the action hook
	 * @param int $priority - the priority of the function to add to the action hook
	 * @param int $accepted_args - the number of arguments to pass to the function to add
	 *
	 * @since 0.9.9.2
	 */
	protected function add_action( $tag, $function_to_add, $priority = 10, $accepted_args = 1 ) {
		return add_action( $tag, array( $this, $function_to_add ), $priority, $accepted_args );
	}

	/**
	 * Wrapper to WordPress add_filter() function
	 * adds the necessary class address on the function passed for WordPress to use
	 *
	 * @param string $tag - the filter hook name
	 * @param callback $function_to_add - the function name to add to the filter hook
	 * @param int $priority - the priority of the function to add to the filter hook
	 * @param int $accepted_args - the number of arguments to pass to the filter to add
	 *
	 * @since 0.9.9.2
	 */
	protected function add_filter( $tag, $function_to_add, $priority = 10, $accepted_args = 1 ) {
		return add_filter( $tag, array( $this, $function_to_add ), $priority, $accepted_args );
	}

    /**
     * Allow jigoshop options to be injected into the class. Any implementation of
     * Jigoshop_Options_Interface can be injected
     *
     * @param Jigoshop_Options_Interface $jigoshop_options the options to use on the classes
     */
    protected static function set_options(Jigoshop_Options_Interface $jigoshop_options) {
        self::$jigoshop_options = $jigoshop_options;
    }

    /**
     * helper function for any files that do not inherit jigoshop_base, they can access jigoshop_options
     * @return Jigoshop_Options_Interface the options that have been set, or null if they haven't been set yet
     */
    public static function get_options() {

        // default options to Jigoshop_Options if they haven't been set
        if (self::$jigoshop_options == null) :
            self::$jigoshop_options = new Jigoshop_Options();
        endif;

        return self::$jigoshop_options;

    }

}


text:
import os.path
from django.shortcuts import render
from timeSeries.models import DataType, Series, SatelliteData
from django_countries import countries
from django.conf import settings
import json
import pytz
import timeSeries.satelliteData as satelliteData

from django.contrib.auth.decorators import login_required

@login_required
def mainMap(request):
    context = {}

    #search available geojsons (only allows for names without special characters)
    geoJSONDict = {};
    for f0 in os.listdir(os.path.join(os.path.dirname(os.path.abspath(__file__)), 'static/map/shapes/')):
        geoJSONDict[f0] = [];
        for f1 in os.listdir(os.path.join(os.path.dirname(os.path.abspath(__file__)), 'static/map/shapes/' + f0)):
            if f1.endswith('.geojson'):
                geoJSONDict[f0].append(os.path.splitext(f1)[0]);

    #query available series
    seriesDict = {}
    dataTypes = DataType.objects.all()
    for d0 in dataTypes:
        series = Series.objects.filter(type=d0)
        if len(series)>0:
            if str(d0) not in seriesDict.keys():
                seriesDict[str(d0)] = []
            for s0 in series:
                if s0.location.country in dict(countries):
                    tmpCountry = dict(countries)[s0.location.country]
                else:
                    tmpCountry = ''
                tmp = {'id': s0.id,
                       'name': s0.name,
                       'type': s0.type.name,
                       'provider': s0.provider.name,
                       'providerAbbreviation': s0.provider.abbreviation,
                       'providerIcon': '/' + str(s0.provider.icon),
                       'providerWebpage': s0.provider.website,
                       'units': s0.type.units,
                       'typeIcon': '/' + str(s0.type.icon),
                       'lat': float(s0.location.lat),
                       'lon': float(s0.location.lon),
                       'quality': s0.quality,
                       'timeStepUnits': dict(Series.TIME_STEP_PERIOD_CHOICES)[s0.timeStepUnits],
                       'timeStepPeriod': s0.timeStepPeriod,
                       'metaEncrypted': s0.metaEncrypted,
                       'river': s0.location.river,
                       'country': tmpCountry,
                       'catchment': s0.location.catchment,
                       }
                seriesDict[str(d0)].append(tmp)

    #query available raster datasets
    rasterDict = {}
    rasters = SatelliteData.objects.all()
    for r0 in rasters:
        raster = r0.satellite
        dataFolder = r0.dataFolder
        downloadFolder = os.path.join(settings.SATELLITE_DOWNLOAD, raster)
        rasterObj = eval('satelliteData.' + raster + '(dataFolder=dataFolder, downloadFolder=downloadFolder)')
        tmp = []
        for d0 in rasterObj.netCDFDict.keys():
            for d1 in rasterObj.netCDFDict[d0].keys():
                tmp.append((d0, d1))
        tmp.sort(key=lambda x: '%04u-%02u' % x)
        if len(tmp)>0 and r0.lastRecord!=None:
            rasterDict[r0.name]={}
            rasterDict[r0.name]['dates'] = tmp
            rasterDict[r0.name]['raster'] = raster
            rasterDict[r0.name]['description'] = rasterObj.description
            rasterDict[r0.name]['productSite'] = rasterObj.productSite
            rasterDict[r0.name]['name'] = r0.name
            rasterDict[r0.name]['timestep'] = r0.timestep
            rasterDict[r0.name]['units'] = r0.units
            rasterDict[r0.name]['colormap'] = str(r0.colormap.file)
            rasterDict[r0.name]['reference'] = r0.startDate.isoformat() + 'Z'
            rasterDict[r0.name]['lastRecord'] = r0.lastRecord.isoformat() + 'Z'

    context['geoJSONs'] = geoJSONDict
    context['series'] = json.dumps(seriesDict)
    context['rasters'] = json.dumps(rasterDict)
    context.update({'LOCAL_JAVASCIPT': settings.LOCAL_JAVASCIPT,
                    'LOCAL_MAP': settings.LOCAL_MAP,})
    return render(request, 'map/mainMap.html', context)


text:
using System;
using XSocketsClient.Common.Interfaces;

namespace XSocketsClient.Common.Event.Arguments
{
    public class OnClientConnectArgs : EventArgs
    {
        public OnClientConnectArgs(IXSocketController controller)
        {
            Controller = controller;
        }

        #region Properties

        public IXSocketController Controller { get; private set; }

        #endregion Properties
    }
}


text:
/* jshint esversion: 6 */

const ajax = (function ajax() {
    "use strict";

    function postData() {
        // coder ici ...
        // pour poster des données vers le serveur
    }

    function getData(url, clbk) {
        const xhr = new XMLHttpRequest();
        console.log(xhr);
        xhr.open("GET", url);

        xhr.onload = function(evt) {
            // console.log(evt);
            if (this.response) {
                clbk(JSON.parse(this.response));

            }
        };

        xhr.send();
    }

    return {
        postData: postData,
        getData: getData,
    };

}());


text:
//
//  GDataEntryMessage.h
//

#if !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_CALENDAR_SERVICE

#import "GDataEntryBase.h"

#import "GDataRating.h"
#import "GDataWhen.h"
#import "GDataGeoPt.h"
#import "GDataWho.h"

#undef _EXTERN
#undef _INITIALIZE_AS
#ifdef GDATAENTRYMESSAGE_DEFINE_GLOBALS
#define _EXTERN
#define _INITIALIZE_AS(x) =x
#else
#define _EXTERN extern
#define _INITIALIZE_AS(x)
#endif

_EXTERN NSString* const kGDataMessage _INITIALIZE_AS(@"http://schemas.google.com/g/2005#message");

_EXTERN NSString* const kGDataMessageStarred _INITIALIZE_AS(@"http://schemas.google.com/g/2005#message.starred");
_EXTERN NSString* const kGDataMessageUnread _INITIALIZE_AS(@"http://schemas.google.com/g/2005#message.unread");
_EXTERN NSString* const kGDataMessageChat _INITIALIZE_AS(@"http://schemas.google.com/g/2005#message.chat");
_EXTERN NSString* const kGDataMessageSpam _INITIALIZE_AS(@"http://schemas.google.com/g/2005#message.spam");
_EXTERN NSString* const kGDataMessageSent _INITIALIZE_AS(@"http://schemas.google.com/g/2005#message.sent");
_EXTERN NSString* const kGDataMessageInbox _INITIALIZE_AS(@"http://schemas.google.com/g/2005#message.inbox");

@interface GDataEntryMessage : GDataEntryBase {
}

- (GDataRating *)rating;
- (void)setRating:(GDataRating *)obj;

- (GDataWhen *)time;
- (void)setTime:(GDataWhen *)obj;

- (GDataGeoPt *)geoPt;
- (void)setGeoPt:(GDataGeoPt *)obj;

- (NSArray *)participants;
- (void)setParticipants:(NSArray *)array;
- (void)addParticipant:(GDataWho *)obj;

@end

#endif // !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_CALENDAR_SERVICE


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

  <title>Description of pick_ps_point</title>
  <meta name="keywords" content="pick_ps_point">
  <meta name="description" content="">
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  <meta name="generator" content="m2html © 2003 Guillaume Flandin">
  <meta name="robots" content="index, follow">
  <link type="text/css" rel="stylesheet" href="../../m2html.css">

Home >  PS_primal_sketch > misc > pick_ps_point.m

pick_ps_point

PURPOSE

SYNOPSIS

function [res,ind]  = pick_ps_point(input_image,ps_points);

DESCRIPTION

CROSS-REFERENCE INFORMATION

This function calls:

keep_points

show_ellipses_on_image

This function is called by:

SOURCE CODE

0001 function [res,ind]  = pick_ps_point(input_image,ps_points);
0002 if ~isempty(input_image),
0003 end
0004 [x,y,z] = impixel;
0005 dists  = (x - ps_points.c_n).^2  +(y-ps_points.c_m).^2;
0006 [cl,ind]  = min(dists);
0007
0008 res = keep_points(ps_points,ind);
0009 show_ellipses_on_image([],res,[],[],'color_ell','k');

<address>Generated on Sun 30-Sep-2007 20:39:09 by m2html © 2003</address>


text:
set -xe
test -d autotools		|| mkdir autotools
test -f autotools/libtool.m4	|| libtoolize
autoreconf --warnings=all --install --verbose "$@"

### end of file


text:
@interface EmailComposerUnitTests : SenTestCase

@end


text:
/*
 * Generates URLs for Google Authenticator.
 */

#include <sys/types.h>

#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <unistd.h>
#include "errinc.h"
#include "base32.h"

static void urlencode(FILE *fp, const char *s);
static void print_key(FILE *fp, const unsigned char *key, u_int len, int base32);
static void usage(void);

#define PROG_NAME               "genotpurl"

#define DEFAULT_COUNTER         0
#define DEFAULT_KEYLEN          10
#define MIN_KEYLEN              4
#define DEFAULT_NUM_DIGITS      6
#define DEFAULT_PERIOD          30

#define RANDOM_FILE             "/dev/urandom"

int
main(int argc, char **argv)
{
#ifdef DEFAULT_ISSUER
    const char *issuer = DEFAULT_ISSUER;
#else
    const char *issuer = NULL;
#endif
#ifdef DEFAULT_LABEL
    const char *label = DEFAULT_LABEL;
#else
    const char *label = NULL;
#endif
    unsigned int period = DEFAULT_PERIOD;
    unsigned int counter = DEFAULT_COUNTER;
    unsigned int num_digits = 6;
    int time_based = 1;
    unsigned char *key = NULL;
    int keylen = DEFAULT_KEYLEN;
    FILE *fp;
    int i, j;
    unsigned int b;

    // Parse command line
    while ((i = getopt(argc, argv, "c:d:iI:k:K:L:p:")) != -1) {
        switch (i) {
        case 'c':
            counter = atoi(optarg);
            break;
        case 'd':
            num_digits = atoi(optarg);
            break;
        case 'i':
            time_based = 0;
            break;
        case 'I':
            issuer = optarg;
            break;
        case 'k':
            if (strlen(optarg) % 2 != 0)
                errx(1, "invalid hex key `%s': odd number of digits", optarg);
            if ((key = malloc((keylen = strlen(optarg) / 2))) == NULL)
                err(1, "malloc");
            for (j = 0; j < keylen; j++) {
                if (sscanf(optarg + 2 * j, "%2x", &b) != 1)
                    errx(1, "invalid hex key `%s': can't parse", optarg);
                key[j] = b & 0xff;
            }
            break;
        case 'K':
            if (key != NULL)
                break;
            keylen = atoi(optarg);
            if (keylen < MIN_KEYLEN)
                errx(1, "invalid key length `%s'", optarg);
            break;
        case 'L':
            label = optarg;
            break;
        case 'p':
            period = atoi(optarg);
            break;
        case '?':
        default:
            usage();
            exit(1);
        }
    }
    argv += optind;
    argc -= optind;
    switch (argc) {
    case 0:
        break;
    default:
        usage();
        exit(1);
    }

    // Sanity check
    if (time_based && counter != DEFAULT_COUNTER)
        errx(1, "use of `-c' flag is invalid with time-based tokens");
    if (!time_based && period != DEFAULT_PERIOD)
        errx(1, "use of `-p' flag is invalid with time-based tokens");
    if (label == NULL)
        errx(1, "label required; use `-L' flag");
    if (issuer == NULL)
        errx(1, "issuer required; use `-I' flag");
    if (strchr(issuer, ':') != NULL || strchr(label, ':') != NULL)
        errx(1, "issuer and label must not contain the colon character");
    if (time_based && period != DEFAULT_PERIOD)
        errx(1, "google authenticator does not support time periods other than %d seconds", DEFAULT_PERIOD);
    if (num_digits != DEFAULT_NUM_DIGITS)
        errx(1, "google authenticator does not support number digits other than %d", DEFAULT_NUM_DIGITS);

    // Generate key (if not supplied)
    if (key == NULL) {
        if ((key = malloc((keylen))) == NULL)
            err(1, "malloc");
        if ((fp = fopen(RANDOM_FILE, "r")) == NULL)
            err(1, "%s", RANDOM_FILE);
        if (fread(key, 1, keylen, fp) != keylen)
            err(1, "%s", RANDOM_FILE);
        fclose(fp);
        fprintf(stderr, "generated key (hex): ");
        print_key(stderr, key, keylen, 0);
        fprintf(stderr, "\n");
    }

    // Output URL
    printf("otpauth://%s/", time_based ? "totp" : "hotp");
    urlencode(stdout, issuer);
    printf(":");
    urlencode(stdout, label);
    printf("?issuer=");
    urlencode(stdout, issuer);
    printf("&secret=");
    print_key(stdout, key, keylen, 1);
    if (num_digits != DEFAULT_NUM_DIGITS)
        printf("&digits=%u", num_digits);
    if (!time_based)
        printf("&counter=%u", counter);
    else if (period != DEFAULT_PERIOD)
        printf("&period=%u", period);
    printf("\n");

    // Done
    return 0;
}

static void
urlencode(FILE *fp, const char *s)
{
    while (*s != '\0') {
        if (isalnum(*s))
            fprintf(fp, "%c", *s);
        else
            fprintf(fp, "%%%02x", *s & 0xff);
        s++;
    }
}

static void
print_key(FILE *fp, const unsigned char *key, u_int len, int base32)
{
    unsigned char *buf;
    u_int buflen;
    int i;

    if (base32) {
        buflen = ((len + 4) / 5) * 8;
        if ((buf = malloc(buflen + 1)) == NULL)
            err(1, "malloc");
        buf[buflen] = 0;
        base32_encode(key, len, buf);
        assert(buf[buflen] == 0 && (buflen == 0 || buf[buflen - 1] != 0));
        for (i = 0; i < buflen; i++)
            fputc(buf[i], fp);
        free(buf);
    } else {
        for (i = 0; i < len; i++)
            fprintf(fp, "%02x", key[i] & 0xff);
    }
}

static void
usage(void)
{
    fprintf(stderr, "Usage: genotpurl [-i]");
#ifdef DEFAULT_ISSUER
    fprintf(stderr, " [-I issuer]");
#else
    fprintf(stderr, " -I issuer");
#endif
#ifdef DEFAULT_LABEL
    fprintf(stderr, " [-L label]");
#else
    fprintf(stderr, " -L label");
#endif
    fprintf(stderr, " [-c counter] [-d num-digits] [-p period] [-k key | -K keylength]\n");
    fprintf(stderr, "Options:\n");
    fprintf(stderr, "  -c\tInitial counter value (default %d)\n", DEFAULT_COUNTER);
    fprintf(stderr, "  -d\tNumber of digits (default %d)\n", DEFAULT_NUM_DIGITS);
    fprintf(stderr, "  -i\tInterval-based instead of time-based\n");
#ifdef DEFAULT_ISSUER
    fprintf(stderr, "  -I\tSpecify issuer (default \"%s\")\n", DEFAULT_ISSUER);
#else
    fprintf(stderr, "  -I\tSpecify issuer (REQUIRED)\n");
#endif
    fprintf(stderr, "  -p\tTime period in seconds (default %d)\n", DEFAULT_PERIOD);
    fprintf(stderr, "  -k\tSpecify hex key (default auto-generate and report)\n");
    fprintf(stderr, "  -K\tSpecify a key length if key is to be generated (default: %d)\n", DEFAULT_KEYLEN);
#ifdef DEFAULT_LABEL
    fprintf(stderr, "  -L\tSpecify label (default \"%s\")\n", DEFAULT_LABEL);
#else
    fprintf(stderr, "  -L\tSpecify label (REQUIRED)\n");
#endif
}


text:
package com.whisk.finagle.mysql.test

import com.twitter.finagle.mysql.Client
import com.whisk.finagle.mysql.testing.MysqlTestkit
import org.scalatest.Suite

trait MysqlTestBase extends MysqlTestkit with MysqlTestHelpers { self: Suite =>

  override val mysqlInitSchemaPaths = Seq("/schema/tables.ddl")

  protected lazy val client: Client = mysqlClient.get()
}


text:
package authzserver.web;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.web.ErrorAttributes;
import org.springframework.core.annotation.AnnotationUtils;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.util.Assert;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseStatus;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.context.request.RequestAttributes;
import org.springframework.web.context.request.ServletRequestAttributes;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

import static org.springframework.http.HttpStatus.INTERNAL_SERVER_ERROR;

@RestController
@RequestMapping("/error")
public class ErrorController implements org.springframework.boot.autoconfigure.web.ErrorController {

  private final ErrorAttributes errorAttributes;

  @Autowired
  public ErrorController(ErrorAttributes errorAttributes) {
    Assert.notNull(errorAttributes, "ErrorAttributes must not be null");
    this.errorAttributes = errorAttributes;
  }

  @Override
  public String getErrorPath() {
    return "/error";
  }

  @RequestMapping
  public ResponseEntity<Map<String, Object>> error(HttpServletRequest aRequest) {
    RequestAttributes requestAttributes = new ServletRequestAttributes(aRequest);
    Map<String, Object> result = this.errorAttributes.getErrorAttributes(requestAttributes, false);

    HttpStatus statusCode = INTERNAL_SERVER_ERROR;
    Object status = result.get("status");
    if (status != null && status instanceof Integer) {
      statusCode = HttpStatus.valueOf(((Integer) status).intValue());
    }
    return new ResponseEntity<>(result, statusCode);

  }

}


text:
//
// Selector.hh for mognetwork in
//
// Made by mognetworkhrabi Alexandre
// Login   <alexmog@epitech.net>
//
// Started on  Wed Jun 11 15:43:12 2014 mognetworkhrabi Alexandre
// Last update Tue Apr 21 10:20:40 2015 Moghrabi Alexandre
//

/*!
 * \file Selector.hh
 * \brief Select encapsulation
 * \author AlexMog
 * \version 0.1
 * \depreciated Untested
 */

#ifndef MOGNETWORK_SELECTOR_HH
# define MOGNETWORK_SELECTOR_HH

#ifndef OS_WINDOWS
#include <sys/select.h>
#include <sys/time.h>
#include <unistd.h>
#else
#include <windows.h>
#endif // !OS_WINDOWS
#include <sys/types.h>
#include <list>
#include "SocketFD.hh"

typedef timeval Time; /*!< Time val typedef (yup, i like it) */

namespace mognetwork
{
  /*!
   * \class Selector
   * \brief Select encapsulation
   */
  class Selector
  {
  public:
    /*!
     * \enum State
     * \brief Defines the states of the select
     */
    enum State
      {
	Waiting,
	Error
      };
    /*!
     * \brief Default constructor
     */
    Selector();
    virtual ~Selector();

  public:
    /*!
     * \brief Wait for a new update of the Selector
     */
    void waitForTrigger();

  public:
    /*!
     * \brief Get the timeout value
     * \return The timeout value
     */
    Time* getTimeout() const {return m_timeout;}
    /*!
     * \brief Get the actual state of the Selector
     * \return State of the Selector
     */
    State getState() const {return m_state;}
    /*!
     * \brief Get the socket list that are ready to be edited in writing mode
     * \return The list of the SocketFD
     */
    const std::list<SocketFD>& getWritingTriggeredSockets() const {return m_writeUpdated;}
    /*!
     * \brief Get the socket list that are ready to be readed
     * \return List of the SocketFD
     */
    const std::list<SocketFD>& getReadingTriggeredSockets() const {return m_readUpdated;}

  public:
    /*!
     * \brief Defines a value for the timeout
     * \param timeout the timeout value
     */
    void setTimeout(Time* timeout) {m_timeout = timeout;}
    /*!
     * \brief Add a fd to the writing trigger
     * \param fd the SocketFD to add
     */
    void addFdToWrite(SocketFD fd);
    /*!
     * \brief Add a fd to the reading trigger
     * \param fd the SocketFD to add
     */
    void addFdToRead(SocketFD fd);
    /*!
     * \brief Delete a fd from the writing trigger
     * \param fd the SocketFD to remove
     */
    void remFdToWrite(SocketFD fd) {m_writeSockets.remove(fd);}
    /*!
     * \brief Delete a fd from the reading trigger
     * \param fd the SocketFD to remove
     */
    void remFdToRead(SocketFD fd) {m_readSockets.remove(fd);}
    void clearFdToWrite() {m_writeSockets.clear();}
    void clearFdToRead() {m_readSockets.clear();}

  private:
    /*!
     * \brief Initialize the state Fds
     */
    void setFds();
    /*!
     * \brief Update the Fds
     */
    void updateFds();

  private:
    Time* m_timeout; /*!< Select Timeout */
    std::list<SocketFD> m_readSockets; /*!< Fd list to be monitored on reading */
    std::list<SocketFD> m_writeSockets; /*!< Fd list to be monitored on writing */
    std::list<SocketFD> m_readUpdated; /*!< Fd list of the triggered reading sockets */
    std::list<SocketFD> m_writeUpdated; /*!< Fd list of the triggered writing sockets */
    State m_state; /*!< Selector state */
    fd_set m_rdfs; /*!< Fd reading set */
    fd_set m_wdfs; /*!< Fd writing set */
    SocketFD m_maxFds; /*!< FD max for the select */
  };
} // namespace mognetwork

#endif // !MOGNETWORK_SELECTOR_HH


text:
layout: post
title: Unterstützen Sie Gespräche? Wie kann ich Konversationen deaktivieren / aktivieren?
date: 2014-12-03 10:09:07.000000000 +02:00
type: post
published: true
status: publish
categories:
- Eigenschaften und Benutzerfreundlichkeit
tags: []
lang: de
meta: /blue-mail-conversations-support/
---

BlueMail unterstützt vollständig Konversationen und aggregiert alle Ihre E-Mails, die gesendet und empfangen werden, in der gleichen Konversation und fügt sie in eine Konversation für Ihre Bequemlichkeit. Sie können Bulk-Operationen auch auf die gesamte Konversation durchführen.

In der Mail-Listenansicht wird eine Konversation durch die Details und die Zeit des eingehenden Absenders sowie die Anzahl der ausgetauschten E-Mails in dieser Konversation angezeigt. Das Tippen auf den Avatar zeigt alle E-Mails in diesem Gespräch. Bitte beachten Sie, dass *Done* / *Snooze* Operationen in einer Konversation deaktiviert sind.

Um "Konversationen" zu aktivieren / deaktivieren, tippen Sie bitte auf *Mehr* (o o o) \| *Globale Einstellungen* \| *Konversationen / Cluster* \| **Gespräche aktivieren**

Beim Betrachten der Konversation können Sie die Reihenfolge der Konversationselemente sortieren, indem Sie das 3-Punkt-Menü auswählen und dann "*Change Conversation Sort*" drücken.


text:
dotnet restore --source /service/nugets --source https://api.nuget.org/v3/index.json
# Compile before the tests so that the CI reports the build as failed if the tests compilation fails
dotnet build -c Release

dotnet run --server.urls http://*:5000