text:
package com.haulmont.cuba.desktop.gui.components;

import com.haulmont.cuba.gui.components.LinkButton;
import org.jdesktop.swingx.JXHyperlink;

import javax.swing.*;

public class DesktopLinkButton extends DesktopButton implements LinkButton {
    @Override
    protected JButton createImplementation() {
        final JXHyperlink link = new JXHyperlink();
        return link;
    }
}

redpajama_set_name: RedPajamaGithub


text:
<?php
namespace Shopvel\Component\Theme;

use Illuminate\Filesystem\Filesystem;
use Illuminate\View\FileViewFinder;

class ThemeViewFinder extends FileViewFinder
{
    protected $engine;

    /**
     * ThemeViewFinder constructor.
     * @param Filesystem $files
     * @param array $paths
     * @param array|null $extensions
     * @param $engine
     */
    public function __construct(Filesystem $files, array $paths, array $extensions = null, $engine)
    {
        $this->engine = $engine;
        parent::__construct($files, $paths, $extensions);
    }

    /**
     * @param $paths
     */
    public function setPaths($paths){
        $this->paths = $paths;
    }
}


text:
/**
 * Takes a component and provides the correct name
 * @param {String} C
 * @returns {String}
 */
export function getDisplayName(C) {
  return C.displayName || C.name || 'C';
}

export default {};


text:
//
//  ========================================================================
//  Copyright (c) 1995-2014 Mort Bay Consulting Pty. Ltd.
//  ------------------------------------------------------------------------
//  All rights reserved. This program and the accompanying materials
//  are made available under the terms of the Eclipse Public License v1.0
//  and Apache License v2.0 which accompanies this distribution.
//
//      The Eclipse Public License is available at
//      http://www.eclipse.org/legal/epl-v10.html
//
//      The Apache License v2.0 is available at
//      http://www.opensource.org/licenses/apache2.0.php
//
//  You may elect to redistribute this code under either of these licenses.
//  ========================================================================
//

package org.eclipse.jetty.annotations;

import org.eclipse.jetty.annotations.AnnotationParser.ClassInfo;
import org.eclipse.jetty.annotations.AnnotationParser.FieldInfo;
import org.eclipse.jetty.annotations.AnnotationParser.MethodInfo;
import org.eclipse.jetty.util.log.Log;
import org.eclipse.jetty.util.log.Logger;
import org.eclipse.jetty.webapp.WebAppContext;

public class WebListenerAnnotationHandler extends AbstractDiscoverableAnnotationHandler
{
    private static final Logger LOG = Log.getLogger(WebListenerAnnotationHandler.class);

    public WebListenerAnnotationHandler (WebAppContext context)
    {
       super(context);
    }

    /**
     * @see org.eclipse.jetty.annotations.AnnotationParser.Handler#handle(ClassInfo, String)
     */
    public void handle(ClassInfo info, String annotationName)
    {
        if (annotationName == null || !"javax.servlet.annotation.WebListener".equals(annotationName))
            return;

        WebListenerAnnotation wlAnnotation = new WebListenerAnnotation(_context, info.getClassName(), info.getContainingResource());
        addAnnotation(wlAnnotation);
    }

    public void handle(FieldInfo info, String annotationName)
    {
        if (annotationName == null || !"javax.servlet.annotation.WebListener".equals(annotationName))
            return;
        LOG.warn ("@WebListener is not applicable to fields: "+info.getClassInfo().getClassName()+"."+info.getFieldName());
    }

    public void handle(MethodInfo info, String annotationName)
    {
        if (annotationName == null || !"javax.servlet.annotation.WebListener".equals(annotationName))
            return;
        LOG.warn ("@WebListener is not applicable to methods: "+info.getClassInfo().getClassName()+"."+info.getMethodName()+" "+info.getSignature());
    }
}


text:
<beans xmlns="http://www.springframework.org/schema/beans"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:aop="http://www.springframework.org/schema/aop"
	xmlns:context="http://www.springframework.org/schema/context" xmlns:tx="http://www.springframework.org/schema/tx"
	xmlns:mvc="http://www.springframework.org/schema/mvc" xmlns:websocket="http://www.springframework.org/schema/websocket"
	xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.1.xsd
		http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.1.xsd
		http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-4.1.xsd
		http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-4.1.xsd
		http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-4.1.xsd
		http://www.springframework.org/schema/websocket http://www.springframework.org/schema/websocket/spring-websocket-4.1.xsd
		">

	<context:annotation-config />
	<context:property-placeholder
		location="classpath:config.properties" />

	<context:component-scan base-package="fate.webapp.blog">
	</context:component-scan>

	<aop:aspectj-autoproxy />
	<mvc:annotation-driven />

	<bean
		class="org.springframework.web.servlet.view.InternalResourceViewResolver">
		<property name="prefix" value="/WEB-INF/jsp/" />
		<property name="suffix" value=".jsp"></property>
	</bean>

	<bean
		class="org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter">
		<property name="messageConverters">
			<list>
				<ref bean="mappingJacksonHttpMessageConverter" /><!-- json转换器 -->
			</list>
		</property>
	</bean>

	<bean id="mappingJacksonHttpMessageConverter"
		class="org.springframework.http.converter.json.MappingJackson2HttpMessageConverter" />

	<!-- <bean id="businessLogMongoblog" class="org.springframework.data.mongodb.core.Mongoblog">
		<constructor-arg name="mongoDbFactory" ref="mongoDbFactory" /> </bean> -->

	<!-- 注册静态资源 -->
	<mvc:default-servlet-handler />

	<bean id="multipartResolver" class="org.springframework.web.multipart.commons.CommonsMultipartResolver">
		<!-- 10GB -->
		<property name="maxUploadSize" value="10737418240" />
		<property name="uploadTempDir" value="/temp/upload" />
	</bean>

	<mvc:interceptors>
		<mvc:interceptor>
			<mvc:mapping path="/**" />
			<bean class="fate.webapp.blog.interceptor.SpiderInterceptor" />
		</mvc:interceptor>
	</mvc:interceptors>

	<!-- 登录检测 -->
	<mvc:interceptors>
		<mvc:interceptor>
			<mvc:mapping path="/admin/**" />
			<mvc:mapping path="/profile/**" />
			<mvc:mapping path="/theme/**" />
			<mvc:mapping path="/myTheme**" />
			<bean class="fate.webapp.blog.interceptor.LoginInterceptor" />
		</mvc:interceptor>
	</mvc:interceptors>
	<!-- 加载全局设置 -->
	<mvc:interceptors>
		<mvc:interceptor>
			<mvc:mapping path="/**" />
			<bean class="fate.webapp.blog.interceptor.GlobalInterceptor" />
		</mvc:interceptor>
	</mvc:interceptors>
	<!--
	<mvc:interceptors>
		<mvc:interceptor>
			<mvc:mapping path="/**" />
			<bean class="fate.webapp.blog.interceptor.ApiLogInterceptor" />
		</mvc:interceptor>
	</mvc:interceptors>
	 -->
	<bean id="jPushService" class="fate.webapp.blog.service.impl.JPushServiceImpl" init-method="init" />

	<!-- 邮件发送器
	<bean id="mailSender" class="org.springframework.mail.javamail.JavaMailSenderImpl">
		<property name="host" value="${mail.host}" />
		<property name="username" value="${mail.username}" />
		<property name="password" value="${mail.password}" />
		<property name="defaultEncoding" value="UTF-8"></property>
		<property name="javaMailProperties">
			<props>
				<prop key="mail.smtp.auth">${mail.smtp.auth}</prop>
				<prop key="mail.smtp.timeout">${mail.smtp.timeout}</prop>
			</props>
		</property>
	</bean>
 -->
</beans>


text:
package com.google.api.ads.dfp.jaxws.v201602;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.bind.annotation.XmlType;

/**
 *
 *             Represents a string variable defined in a creative template.
 *

 *             Use {@link StringCreativeTemplateVariableValue} to specify the value
 *             for this variable when creating {@link TemplateCreative} from the {@link TemplateCreative}.
 *
 *
 *
Java class for StringCreativeTemplateVariable complex type.
 *
 *
The following schema fragment specifies the expected content contained within this class.
 *
 *

 * <complexType name="StringCreativeTemplateVariable">
 *   <complexContent>
 *     <extension base="{https://www.google.com/apis/ads/publisher/v201602}CreativeTemplateVariable">
 *       <sequence>
 *         <element name="defaultValue" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *       </sequence>
 *     </extension>
 *   </complexContent>
 * </complexType>
 *

 *
 *
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "StringCreativeTemplateVariable", propOrder = {
    "defaultValue"
})
@XmlSeeAlso({
    ListStringCreativeTemplateVariable.class
})
public class StringCreativeTemplateVariable
    extends CreativeTemplateVariable
{

    protected String defaultValue;

    /**
     * Gets the value of the defaultValue property.
     *
     * @return
     *     possible object is
     *     {@link String }
     *
     */
    public String getDefaultValue() {
        return defaultValue;
    }

    /**
     * Sets the value of the defaultValue property.
     *
     * @param value
     *     allowed object is
     *     {@link String }
     *
     */
    public void setDefaultValue(String value) {
        this.defaultValue = value;
    }

}


text:
name: OpenSSH Backdoor
when: 02/2014–03/2014
role: Hacker
keywords: C, OpenSSH, hacker skillz

layout: col-1
category: university
---

The aim was to implement a backdoor for OpenSSH server.
The report for this assignment can be found on my <strong>[Github](https://github.com/severi/TUWien/blob/master/soft_sec_reports/as1_ssh_backdoor/assignment1_1327768.pdf)</strong>.


text:
describe('angular-locker', function () {

    beforeEach(module('angular-locker', function ($provide) {
        $provide.value('$window', {
            localStorage: storageMock(),
            sessionStorage: storageMock()
        });
    }));

    describe('lockerProvider', function () {

        it('should be defined', function () {
            module(function(lockerProvider) {
                expect(lockerProvider).toBeDefined();
            });
        });

        it('should set a default storage driver', function () {
            module(function(lockerProvider) {
                expect(lockerProvider.defaults.driver).toEqual('local');

                lockerProvider.defaults({ driver: 'session'});

                expect(lockerProvider.defaults.driver).toEqual('session');
                expect(lockerProvider.defaults.namespace).toEqual('locker');
            });
        });

        it('should set a default storage driver via function', function () {
            module(function(lockerProvider) {
                expect( lockerProvider.defaults.driver ).toEqual('local');

                lockerProvider.defaults({ driver: function () {
                    var shouldUseSession = true;
                    if (shouldUseSession) return 'session';
                }});

                expect(lockerProvider.defaults.driver).toEqual('session');
            });
        });

        it('should throw an error if storage driver that does not exist is used', function () {
            module(function(lockerProvider) {
                expect(function () {
                    locker.driver('somethingNotExpected');
                }).toThrowError();

                expect( locker._driver ).toEqual($window.localStorage);
            });
        });

        it('should set a default namespace', function () {
            module(function(lockerProvider) {
                expect( lockerProvider.defaults.namespace ).toEqual('locker');

                lockerProvider.defaults.namespace = 'myApp.foo';
                expect( lockerProvider.defaults.namespace ).toEqual('myApp');

                lockerProvider.defaults.namespace = '';
                expect( lockerProvider.defaults.namespace ).toEqual('');

                lockerProvider.defaults.namespace = false;
                expect( lockerProvider.defaults.namespace ).toEqual(false);
            });
        });

        it('should set a default namespace via function', function () {
            module(function(lockerProvider) {
                expect( lockerProvider.defaults.namespace ).toEqual('locker');
                lockerProvider.defaults.namespace = function () {
                    var arr = ['myApp', 'coolApp', 'somethingElse'];
                    return arr[1];
                };
                expect( lockerProvider.defaults.namespace ).toEqual('coolApp');
            });
        });

        it('should set a default separator', function () {
            module(function(lockerProvider) {
                expect( lockerProvider.defaults.separator ).toEqual('.');
                lockerProvider.defaults.separator = '-';
                expect( lockerProvider.defaults.separator ).toEqual('-');
                lockerProvider.defaults.separator = '';
                expect( lockerProvider.defaults.separator ).toEqual('');

                lockerProvider.defaults.separator = false;
                expect( lockerProvider.defaults.separator ).toEqual(false);
            });
        });

        it('should set a default separator via function', function () {
            module(function(lockerProvider) {
                expect( lockerProvider.defaults.separator ).toEqual('.');
                lockerProvider.defaults.separator = function () {
                    var arr = ['.', '-', '!'];
                    return arr[1];
                };
                expect( lockerProvider.defaults.separator ).toEqual('-');
            });
        });

        it('should throw an error when setting a driver that is not registered', inject(function (locker) {
            expect(function () {
                locker.driver('foo');
            }).toThrowError();
        }));
    });

    describe('lockerService', function () {

        describe('adding items to locker', function () {

            it('should put a string into the locker', inject(function (locker) {
                var str = 'someVal';
                locker.put('someKey', str);

                expect( locker.get('someKey') ).toEqual(str);

                locker.driver('session').put('sessionKey1', 1);
                locker.driver('session').put('sessionKey2', 2);
                locker.driver('local').put('localKey1', 1);
                locker.driver('local').put('localKey2', 2);

                expect(locker.driver('session').get('sessionKey2')).toEqual(2);

            }));

            it('should put a boolean into the locker', inject(function (locker) {
                locker.put('someKey', false);
                locker.put('someKey1', true);

                expect( locker.get('someKey') ).toEqual(false);
                expect( locker.get('someKey1') ).toEqual(true);
            }));

            it('should put an object into the locker', inject(function (locker) {
                var obj = {
                    foo: 'bar',
                    bar: 'baz',
                    baz: {
                        foo: true,
                        bar: false,
                        baz: 12.34
                    }
                };

                locker.put('objectKey', obj);

                var result = locker.get('objectKey');

                expect( result ).toEqual(obj);
                expect( result.baz.bar ).toBeFalsy();
            }));

            it('should put an array into the locker', inject(function (locker) {
                var arr1 = ['foo', 123.456, true, { foo: 'bar' }];
                var arr2 = ['foo', 'bar', 'baz'];

                locker.put('arrayKey1', arr1);
                locker.put('arrayKey2', arr2);

                var result1 = locker.get('arrayKey1');
                var result2 = locker.get('arrayKey2');

                expect( result1 ).toEqual(arr1);
                expect( result2 ).toEqual(arr2);

                expect( result1[3].foo ).toEqual('bar');
                expect( result2[0] ).toEqual('foo');
            }));

            it('should put a key value object into the locker via first param', inject(function (locker) {
                var obj = {
                    foo: 'bar',
                    bar: 'baz',
                    baz: {
                        foo: 'baz'
                    },
                    bob: {
                        lorem: true
                    }
                };

                locker.put(obj);

                expect( locker.get('foo') ).toEqual('bar');
                expect( locker.get('baz') ).toEqual({ foo: 'baz' });
                expect( locker.get('bob').lorem ).toBeTruthy();
            }));

            describe('when passing a function as the second param', function () {

                it('should put an item into the locker', inject(function (locker) {

                    locker.put('fnKey', function () {
                        return 12 * 12;
                    });

                    expect( locker.get('fnKey') ).toEqual(144);
                }));

                it('should pass the current value of the item to the function', inject(function (locker) {

                    locker.put('fnKey', ['foo', 'bar']);

                    locker.put('fnKey', function (param) {
                        param.push('baz');
                        return param;
                    });

                    expect( locker.get('fnKey') ).toEqual(['foo', 'bar', 'baz']);
                }));

                it('should pass undefined to the function if the current item value does not exist', inject(function (locker) {
                        var value = null;

                        expect(locker.get('fnKey')).not.toBeDefined();

                        locker.put('fnKey', function (param) {
                            value = param;
                            return 2;
                        });

                        expect(locker.get('fnKey')).toEqual(2);
                        expect(value).not.toBeDefined();
                    }));
                });

            it('should pass the default value to the function if the current item value does not exist and a default was specified', inject(function (locker) {
                var value = null;

                expect(locker.get('fnKey')).not.toBeDefined();

                locker.put('fnKey', function (param) {
                  value = param;
                  return 2;
                }, 1);

                expect(locker.get('fnKey')).toEqual(2);
                expect(value).toBe(1);
            }));

            it('should put an item into the locker when passing a function as first param', inject(function (locker) {

                locker.put(function () {
                    return {
                        someKey: ['some', 'array'],
                        anotherKey: { foo: 'bar', baz: true }
                    };
                });

                expect( locker.get('someKey') ).toBeDefined();
                expect( locker.get('anotherKey') ).toBeDefined();

                expect( angular.isArray(locker.get('someKey')) ).toBeTruthy();
                expect( angular.isObject(locker.get('anotherKey')) ).toBeTruthy();
            }));

            it('should put an item into the locker if it doesn\'t already exist', inject(function (locker) {

                locker.put('foo', 'loremipsumdolorsitamet');
                var added = locker.add('foo', ['foo', 'bar', 'baz']);

                locker.put('bar', 'foobarbazbob');
                var added2 = locker.add('bar1', 'foobazbob');

                expect( added ).toBeFalsy();
                expect( added2 ).toBeTruthy();

                expect( locker.get('foo') ).toEqual('loremipsumdolorsitamet');
                expect( locker.get('bar1') ).toEqual('foobazbob');
            }));

            it('should put an item into the locker in a different namespace', inject(function (locker) {
                locker.put('foo', 'defaultNamespace');
                locker.namespace('someOtherNamespace').put('foo', 'newNamespace');
                locker.namespace(false).put('noNamespace', [true]);

                expect( locker.get('foo') ).toEqual('defaultNamespace');
                expect( locker.namespace('someOtherNamespace').get('foo') ).toEqual('newNamespace');
                expect( locker.namespace(false).get('noNamespace') ).toEqual([true]);
            }));

            it('should return false if key/value params are missing', inject(function (locker) {

                var result1 = locker.put('aKey');
                var result2 = locker.put(null, 'aVal');

                expect( result1 && result2 ).toBeFalsy();
            }));

            it('should fail silently if value cannot be serialized and unserialized', inject(function (locker) {

                spyOn(angular, 'toJson').and.throwError(new Error());
                spyOn(angular, 'fromJson').and.throwError(new Error());

                var result = locker.put('foo', ['bar', 'baz']).get('foo');

                expect( result ).toBeDefined();
            }));

            it('should catch the error when the browser reports storage is full', inject(function ($window, locker) {

                spyOn(locker, '_checkSupport').and.returnValue(true);

                var error = new Error();
                error.name = 'QUOTA_EXCEEDED_ERR';

                spyOn($window.localStorage, 'setItem').and.throwError(error);

                expect(function () {
                    locker.put('someKey', ['foo']);
                }).toThrowError();
            }));

            it('should catch the error when an item couldn\'t be added for some other reason', inject(function ($window, locker) {

                spyOn(locker, '_checkSupport').and.returnValue(true);
                spyOn($window.localStorage, 'setItem').and.throwError(new Error());

                expect(function () {
                    locker.put('someKey', ['foo']);
                }).toThrowError();
            }));

            it('should throw an error when adding item and no browser support detected', inject(function ($window, locker) {

                spyOn(locker, '_checkSupport').and.returnValue(false);

                expect(function () {
                    locker.put('someKey', ['foo']);
                }).toThrowError();
            }));

            it('should trigger added event when adding item to locker for the first time', function () {

                module(function(lockerProvider) {
                    lockerProvider.defaults({ driver: 'session' });
                });

                inject(function (locker, $rootScope) {
                    spyOn($rootScope, '$emit');
                    spyOn(locker, '_exists').and.returnValue(false);

                    locker.put('foo', 'bar');

                    expect($rootScope.$emit).toHaveBeenCalledWith('locker.item.added', {
                        key: 'foo',
                        value: 'bar',
                        driver: 'session',
                        namespace: 'locker'
                    });
                });
            });

            it('should not trigger events when events are disabled', function () {
                module(function(lockerProvider) {
                    lockerProvider.defaults({ eventsEnabled: false });
                });

                inject(function (locker, $rootScope) {
                    spyOn($rootScope, '$emit');
                    locker.put('foo', 'bar');

                    expect($rootScope.$emit).not.toHaveBeenCalled();
                });
            });

            it('should trigger updated event when updating item already in locker', inject(function (locker, $rootScope) {
                spyOn($rootScope, '$emit');

                locker.put('foo', 'bar');
                locker.put('foo', 'baz');

                expect($rootScope.$emit).toHaveBeenCalledWith('locker.item.updated', {
                    key: 'foo',
                    oldValue: 'bar',
                    newValue: 'baz',
                    driver: 'local',
                    namespace: 'locker'
                });
            }));
        });

        describe('switching drivers/namespaces', function () {

            it('should switch drivers when chained', function () {
                module(function(lockerProvider) {
                    lockerProvider.defaults().driver = 'local';
                });

                inject(function (locker) {
                    locker.driver('session').put('foo', 'bar');
                    expect( locker.get('foo') ).not.toBeDefined();
                });
            });

            it('should switch namespaces when chained', inject(function (locker) {

                locker.namespace('fooBar').put('foo', 'bar');

                expect( locker.get('foo') ).not.toBeDefined();
            }));

        });

        describe('retrieving items from locker', function () {

            it('should return specified default value if item not in locker', inject(function (locker) {
                var obj = { foo: 'bar', bar: 123, baz: true };

                locker.put('somethingThatDoesExist', 'exists');

                var result = locker.get('somethingThatDoesExist', 'defaultValue');
                var result2 = locker.get('somethingElseThatDoesntExist', { foo: 'bar', bar: 123, baz: true });

                var result3 = locker.get('somethingElseThatDoesntExist', false);
                var result4 = locker.get('somethingElseThatDoesntExist', '');
                var result5 = locker.get('somethingElseThatDoesntExist', 'NaN');
                var result6 = locker.get('somethingElseThatDoesntExist', null);
                var result7 = locker.get('somethingElseThatDoesntExist', 0);

                expect( result3 ).toEqual(false);
                expect( result4 ).toEqual('');
                expect( result5 ).toEqual('NaN');
                expect( result6 ).toEqual(null);
                expect( result7 ).toEqual(0);

                expect( result ).not.toEqual('defaultValue');
                expect( result2 ).toEqual(obj);
            }));

            it('should return an object containing the key/value pairs passed in via array', inject(function (locker) {

                locker.put(function () {
                    return {
                        something: 'some value',
                        anotherThing: ['foo', 'bar'],
                        lorem: true,
                        foo: null
                    };
                });

                var result = locker.get(['something', 'anotherThing']);

                expect( angular.isObject(result) ).toBeTruthy();
                expect( result.something ).toEqual('some value');
                expect( result ).not.toEqual( jasmine.objectContaining({ lorem: true }) );

            }));

            it('should return a value and then delete the item', inject(function (locker) {
                var str = 'someVal456';
                locker.put('someKey123', str);

                var value = locker.pull('someKey123');

                expect( value ).toEqual(str);
                expect( locker.get('someKey123') ).not.toBeDefined();
            }));

            it('should return all items within current namespace', inject(function (locker) {

                for (var i=0; i<20; i++) {
                    locker.namespace('foo.bar').put('aKey' + i, 'aVal' + i);
                }

                locker.namespace('foo.bar').put('something.foo.bar', ['someValue']);

                var all = locker.namespace('foo.bar').all();
                var none = locker.namespace('something').all();

                expect( angular.isObject(all) && angular.isObject(none) ).toBeTruthy();
                expect( Object.keys(none).length ).toEqual(0);

                expect( all ).toEqual(jasmine.objectContaining({ 'aKey12': 'aVal12' }));

                expect( Object.keys(all) ).toContain('aKey12');
                expect( Object.keys(all) ).toContain('something.foo.bar');
                expect( Object.keys(all).length ).toEqual(21);
            }));

            it('should count the items within current namespace', inject(function (locker) {
                for (var i=0; i<20; i++) {
                    locker.put('aKey' + i, 'aVal' + i);
                }

                locker.put('something.foo.bar', ['someValue']);

                expect( locker.count() ).toEqual(21);
                expect(locker.namespace('something').count()).toEqual(0);
            }));

            it('should throw an error when getting item and no browser support detected', inject(function ($window, locker) {

                spyOn(locker, '_checkSupport').and.returnValue(false);
                spyOn(locker, 'has').and.returnValue(true);

                expect(function () {
                    locker.get('someKey');
                }).toThrowError();
            }));

        });

        describe('removing items from locker', function () {

            it('should remove an item from locker', inject(function (locker) {
                locker.put('someKey', 'someVal');

                locker.forget('someKey');

                expect( locker.get('someKey') ).not.toBeDefined();
            }));

            it('should remove an item from locker when passing a function', inject(function (locker) {
                locker.put('someKey', 'someVal');

                locker.forget(function () {
                    return 'someKey';
                });

                expect( locker.get('someKey') ).not.toBeDefined();
            }));

            it('should remove multiple items from locker when passing a function', inject(function (locker) {
                locker.put(function () {
                    return {
                        'something': 'some value',
                        'anotherThing': ['foo', 'bar'],
                        'lorem': true
                    };
                });

                locker.forget(function () {
                    return ['something', 'anotherThing'];
                });

                expect( locker.get('something') ).not.toBeDefined();
                expect( locker.get('anotherThing') ).not.toBeDefined();
                expect( locker.get('lorem') ).toBeTruthy();
            }));

            it('should remove multiple items from locker by passing an array', inject(function (locker) {

                locker.put('objectKey', {foo: 'bar'});
                locker.put('arrayKey', ['foo', 'bar']);
                locker.put('foo', 'bar');

                locker.forget(['objectKey', 'arrayKey1', 'foo']);

                expect( locker.get('objectKey') ).not.toBeDefined();
                expect( locker.get('arrayKey1') ).not.toBeDefined();
                expect( locker.get('foo') ).not.toBeDefined();
            }));

            it('should remove all items within a namespace', inject(function (locker) {

                locker.put('foo', 'bar');

                locker.namespace('otherNamespace').put('fooOther', 'barOther');

                locker.clean();

                expect( locker.namespace('otherNamespace').get('fooOther') ).toEqual('barOther');
                expect( locker.get('foo') ).not.toBeDefined();
            }));

            it('should empty the locker', inject(function (locker) {

                locker.put('anotherKey', { someObj: true, foo: 'barbaz' });

                locker.empty();

                expect( locker.get('anotherKey') ).not.toBeDefined();

            }));

            it('should throw an error when removing item and no browser support detected', inject(function ($window, locker) {

                spyOn(locker, '_checkSupport').and.returnValue(false);

                expect(function () {
                    locker.forget('someKey');
                }).toThrowError();
            }));

            it('should trigger forgotten event when removing item from locker', inject(function (locker, $rootScope) {
                spyOn($rootScope, '$emit');

                locker.put('foo', 'bar');

                locker.forget('foo');

                expect($rootScope.$emit).toHaveBeenCalledWith('locker.item.forgotten', {
                    key: 'foo',
                    driver: 'local',
                    namespace: 'locker'
                });
            }));

        });

        describe('checking existence in locker', function () {

            it('should determine whether an item exists in locker', inject(function (locker) {
                locker.put('randKey', Math.random());

                expect( locker.has('randKey') ).toBeTruthy();
                expect( locker.has('loremipsumdolorsitamet') ).toBeFalsy();
            }));

            it('should determine whether an item exists in locker when passing a function', inject(function (locker) {
                locker.put('randKey', Math.random());

                var result = locker.has(function () {
                    return 'randKey';
                });

                expect(result).toBeTruthy();
                expect( locker.has('loremipsumdolorsitamet') ).toBeFalsy();
            }));

            it('should determine whether an item exists in locker within another namespace', inject(function (locker) {
                locker.namespace('differentNs').put('randKeyNs', Math.random());

                expect( locker.namespace('differentNs').has('randKeyNs') ).toBeTruthy();
                expect( locker.namespace('loremipsumdolorsitamet').has('randKeyNs') ).toBeFalsy();
            }));

            it('should throw an error when checking has item and no browser support detected', inject(function ($window, locker) {

                spyOn(locker, '_checkSupport').and.returnValue(false);

                expect(function () {
                    locker.has('someKey');
                }).toThrowError();
            }));

        });

        describe('checking browser support', function () {

            it('should bind a variable to the scope', inject(function (locker, $rootScope) {
                locker.bind($rootScope, 'foo');

                $rootScope.foo = ['bar', 'baz'];
                $rootScope.$apply();

                expect(locker.get('foo')).toEqual(['bar', 'baz']);

                $rootScope.foo = 123;
                $rootScope.$apply();

                expect(locker.get('foo')).toEqual(123);
                expect(Object.keys(locker._watchers).length).toEqual(1);
            }));

            it('should bind a variable to the scope with a default', inject(function (locker, $rootScope) {
                locker.bind($rootScope, 'foo', 'defaultVal');

                expect($rootScope.foo).toEqual('defaultVal');
                expect(locker.get('foo')).toEqual('defaultVal');
            }));

            it('should unbind a variable from the scope', inject(function (locker, $rootScope) {
                locker.bind($rootScope, 'foo');
                locker.bind($rootScope, 'bar');

                $rootScope.foo = ['bar', 'baz'];
                $rootScope.$apply();

                expect(locker.get('foo')).toEqual(['bar', 'baz']);

                locker.unbind($rootScope, 'foo');

                expect($rootScope.foo).toBeUndefined();
                expect(Object.keys(locker._watchers).length).toEqual(1);
            }));

        });

        describe('checking browser support', function () {

            it('should return true if storage is supported', inject(function ($window, locker) {

                expect( locker.supported() ).toBeTruthy();

            }));

            it('should return false if storage is not supported', inject(function ($window, locker) {

                spyOn($window.localStorage, 'setItem').and.throwError(new Error());

                expect( locker.supported() ).toBeFalsy();

            }));

        });

        describe('misc', function () {

            it('should get the currently set namespace', inject(function (locker) {
                expect( locker.getNamespace() ).toEqual('locker');
                expect( locker.namespace('foo').getNamespace() ).toEqual('foo');
            }));

            it('should get the currently set driver', inject(function ($window, locker) {
                expect( locker.getDriver() ).toEqual($window.localStorage);
                expect( locker.driver('session').getDriver() ).toEqual($window.sessionStorage);
            }));

        });

    });
});


text:
import Vue from 'vue'
import VueRouter from 'vue-router'
import { routes } from '@/conf'

Vue.use(VueRouter)

const router = new VueRouter({
  routes
})

export default router


text:
<?php
/**
 * The following variables are available in this template:
 * - $this: the CrudCode object
 */
?>
<?php echo "<?php\n"; ?>
/* @var $this <?php echo $this->getControllerClass(); ?> */
/* @var $model <?php echo $this->getModelClass(); ?> */

<?php
$label=$this->pluralize($this->class2name($this->modelClass));
echo "\$this->breadcrumbs=array(
	'$label'=>array('index'),
	'Create',
);\n";
?>

$menu=array();
require(dirname(__FILE__).DIRECTORY_SEPARATOR.'_menu.php');
$this->menu=array(
	array('label'=>'<?php echo $this->modelClass; ?>','url'=>array('index'),'icon'=>'fa fa-list-alt', 'items' => $menu)
);
?>

<?php
echo "<?php \$box = \$this->beginWidget(
    'bootstrap.widgets.TbBox',
    array(
        'title' => 'Create ".$label."' ,
        'headerIcon' => 'icon- fa fa-plus-circle',
        'headerButtons' => array(
        	array(
            	'class' => 'bootstrap.widgets.TbButtonGroup',
            	'type' => 'success',
            	// '', 'primary', 'info', 'success', 'warning', 'danger' or 'inverse'
            	'buttons' => \$this->menu
            )
        )
    )
);?>";
?>

		<?php echo"<?php \$this->widget('bootstrap.widgets.TbAlert', array(
		    'block'=>false, // display a larger alert block?
		    'fade'=>true, // use transitions?
		    'closeText'=>'×', // close link text - if set to false, no close link is displayed
		    'alerts'=>array( // configurations per alert type
		        'success'=>array('block'=>true, 'fade'=>true, 'closeText'=>'×'), //success, info, warning, error or danger
		        'info'=>array('block'=>true, 'fade'=>true, 'closeText'=>'×'), //success, info, warning, error or danger
		        'warning'=>array('block'=>true, 'fade'=>true, 'closeText'=>'×'), //success, info, warning, error or danger
		        'error'=>array('block'=>true, 'fade'=>true, 'closeText'=>'×'), //success, info, warning, error or danger
		        'danger'=>array('block'=>true, 'fade'=>true, 'closeText'=>'×'), //success, info, warning, error or danger
		    ),
		));
		?>"; ?>

<?php echo "<?php echo \$this->renderPartial('_form', array('model'=>\$model)); ?>"; ?>

<?php echo"<?php \$this->endWidget(); ?>"; ?>


text:
<?xml version="1.0" encoding="UTF-8"?>
<izpack:langpack version="5.0"
                 xmlns:izpack="http://izpack.org/schema/langpack"
                 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                 xsi:schemaLocation="http://izpack.org/schema/langpack http://izpack.org/schema/5.0/izpack-langpack-5.0.xsd">

    <str id="AutomatedInstaller.permissionError" txt="Administrative privileges required. Please re-run the installer with administrative privileges."/>

    <str id="CheckedHelloPanel.infoOverUninstallKey" txt="La chiave di disinstallazione sarà: "/>
    <str id="CheckedHelloPanel.productAlreadyExist0" txt="Questo programma è già installato in questo computer nella cartella "/>
    <str id="CheckedHelloPanel.productAlreadyExist1" txt=" . Sicuri di voler installare nuovamente il programma?"/>

    <str id="CompilePanel.additional_arguments" txt="Parametri aggiuntivi per il compilatore:"/>
    <str id="CompilePanel.browse" txt="Sfoglia..."/>
    <str id="CompilePanel.browse.approve" txt="Utilizzare come compilatore"/>
    <str id="CompilePanel.choose_compiler" txt="Compilatore da utilizzare:"/>
    <str id="CompilePanel.error" txt="La compilazione è fallita"/>
    <str id="CompilePanel.error.abort" txt="Annulla"/>
    <str id="CompilePanel.error.compilernotfound" txt="Impossibile avviare il compilatore."/>
    <str id="CompilePanel.error.ignore" txt="Ignora"/>
    <str id="CompilePanel.error.invalidarguments" txt="Parametri non validi"/>
    <str id="CompilePanel.error.noclassfile" txt="Il compilatore non ha prodotto un file class per il file sorgente "/>
    <str id="CompilePanel.error.nofiles" txt="Errore durante la ricerca dei file per la compilazione."/>
    <str id="CompilePanel.error.reconfigure" txt="Configurare di nuovo"/>
    <str id="CompilePanel.error.seebelow" txt="Controllate il comando che è fallito ed il suo output."/>
    <str id="CompilePanel.heading" txt="Compilazione"/>
    <str id="CompilePanel.start" txt="Inizio"/>
    <str id="CompilePanel.tip" txt="Progresso della compilazione:"/>
    <str id="CompilePanel.progress.finished" txt="[Completato]"/>
    <str id="CompilePanel.progress.initial" txt="[Selezionare 'Inizio']"/>
    <str id="CompilePanel.progress.overall" txt="Progresso totale della compilazione:"/>

    <str id="ConsoleInstaller.aborted.LicenseRejected" txt="License rejected"/>
    <str id="ConsoleInstaller.aborted.PressedCTRL-C" txt="CTRL-C pressed"/>
    <str id="ConsoleInstaller.aborted.PressedQuit" txt="Quit pressed"/>
    <str id="ConsoleInstaller.acceptRejectRedisplay" txt="Press 1 to accept, 2 to reject, 3 to redisplay"/>
    <str id="ConsoleInstaller.continueQuitRedisplay" txt="Press 1 to continue, 2 to quit, 3 to redisplay"/>
    <str id="ConsoleInstaller.inputSelection" txt="Input selection: "/>
    <str id="ConsoleInstaller.pagingMore" txt="More"/>
    <str id="ConsoleInstaller.permissionError" txt="Administrative privileges required. Please re-run the installer with administrative privileges."/>
    <str id="ConsoleInstaller.redisplayQuit" txt="Press 1 to redisplay, 2 to quit"/>
    <str id="ConsoleInstaller.shutdown.aborted" txt="Console installation ABORTED by the user!"/>
    <str id="ConsoleInstaller.shutdown.done" txt="Console installation done"/>
    <str id="ConsoleInstaller.shutdown.failed" txt="Console installation FAILED!"/>
    <str id="ConsoleInstaller.shutdown.pendingFileOperations" txt="There are file operations pending after reboot"/>
    <str id="ConsoleInstaller.shutdown.rebootingNow" txt="Rebooting now automatically"/>

    <str id="ConsolePrompt.cancel" txt="C"/>
    <str id="ConsolePrompt.ok" txt="O"/>
    <str id="ConsolePrompt.okCancel" txt="Enter O for OK, C to Cancel: "/>
    <str id="ConsolePrompt.no" txt="N"/>
    <str id="ConsolePrompt.yes" txt="Y"/>
    <str id="ConsolePrompt.yesNo" txt="Enter Y for Yes, N for No: "/>
    <str id="ConsolePrompt.yesNoCancel" txt="Enter Y for Yes, N for No, or C to Cancel: "/>

    <str id="FinishPanel.auto" txt="Genera uno script d'installazione automatica"/>
    <str id="FinishPanel.auto.dialog.filterdesc" txt="File XML"/>
    <str id="FinishPanel.auto.tip" txt="Usa questo script per ripetere l'installazione in altri computer."/>
    <str id="FinishPanel.done" txt="OK"/>
    <str id="FinishPanel.fail" txt="L'installazione è fallita!"/>
    <str id="FinishPanel.success" txt="L'installazione è stata completata con successo."/>
    <str id="FinishPanel.uninst.info" txt="È stato creato un programma di disinstallazione in:"/>

    <str id="installer.cancel" txt="Annulla"/>
    <str id="installer.cancelled" txt="Installation cancelled"/>
    <str id="installer.close" txt="Close"/>
    <str id="installer.continueQuestion" txt="Continue anyway?"/>
    <str id="installer.copy" txt="Copy"/>
    <str id="installer.error" txt="Errore"/>
    <str id="installer.errorMessage" txt="An error occurred"/>
    <str id="installer.finished" txt="Installation finished"/>
    <str id="installer.help" txt="Guida"/>
    <str id="installer.help.close" txt="Chiudi"/>
    <str id="installer.hideDetails" txt="Hide Details"/>
    <str id="installer.madewith" txt="(Creato con IzPack - http://izpack.org/)"/>
    <str id="installer.Message" txt="Messaggio"/>
    <str id="installer.next" txt="Avanti"/>
    <str id="installer.no" txt="No"/>
    <str id="installer.of" txt="di"/>
    <str id="installer.platform" txt="Platform: {0}"/>
    <str id="installer.prev" txt="Indietro"/>
    <str id="installer.quit" txt="Esci"/>
    <str id="installer.quit.message" txt="Verrà interrotta l'installazione!"/>
    <str id="installer.quit.title" txt="Sicuri di voler uscire?"/>
    <str id="installer.reboot.ask.message" txt="Reboot required to apply some changes. Do want to reboot now?"/>
    <str id="installer.reboot.ask.title" txt="Reboot required"/>
    <str id="installer.reboot.notice.message" txt="It is recommended to reboot to apply some changes."/>
    <str id="installer.reboot.notice.title" txt="Reboot recommended"/>
    <str id="installer.sendReport" txt="Send Report"/>
    <str id="installer.showDetails" txt="Show Details"/>
    <str id="installer.started" txt="Installation started"/>
    <str id="installer.step" txt="Step"/>
    <str id="installer.title" txt="IzPack - Installazione di"/>
    <str id="installer.uninstall.writefailed" txt="Failed to write uninstallation information."/>
    <str id="installer.version" txt="Framework: {0}"/>
    <str id="installer.warning" txt="Avvertimento!"/>
    <str id="installer.yes" txt="Sì"/>

    <str id="CheckedHelloPanel.headline" txt="Benvenuto"/>
    <str id="CompilePanel.headline" txt="Compila sorgenti Java"/>
    <str id="ConditionalUserInputPanel.headline" txt="Dati utente"/>
    <str id="FinishPanel.headline" txt="Installazione completata"/>
    <str id="HelloPanel.headline" txt="Benvenuto"/>
    <str id="HTMLInfoPanel.headline" txt="Informazioni"/>
    <str id="HTMLLicencePanel.headline" txt="Accordo di licenza"/>
    <str id="ImgPacksPanel.headline" txt="Selezionare i moduli da installare"/>
    <str id="InfoPanel.headline" txt="Informazioni"/>
    <str id="InstallationTypePanel.headline" txt="Tipo installazione"/>
    <str id="InstallPanel.headline" txt="Installazione"/>
    <str id="JDKPathPanel.headline" txt="Percorso JDK"/>
    <str id="LicencePanel.headline" txt="Accordo di licenza"/>
    <str id="PacksPanel.headline" txt="Selezionare i moduli da installare"/>
    <str id="PDFLicencePanel.headline" txt="Accordo di licenza"/>
    <str id="ProcessPanel.headline" txt="Eseguire processo esterno"/>
    <str id="ShortcutPanel.headline" txt="Collegamenti"/>
    <str id="SimpleFinishPanel.headline" txt="Installazione completata"/>
    <str id="SummaryPanel.headline" txt="Riepilogo dati configurazione"/>
    <str id="TargetPanel.headline" txt="Percorso destinazione"/>
    <str id="TreePacksPanel.headline" txt="Selezionare i moduli da installare"/>
    <str id="UserInputPanel.headline" txt="Dati utente"/>
    <str id="UserPathPanel.headline" txt="Selezionare percorso"/>

    <str id="HelloPanel.authors" txt="Gli autori di questo software sono: "/>
    <str id="HelloPanel.url" txt="La homepage di questo software è: "/>
    <str id="HelloPanel.welcome1" txt="Benvenuto nell'installazione di "/>
    <str id="HelloPanel.welcome2" txt="!"/>

    <str id="HTMLInfoPanel.info" txt="Please read the following information:"/>

    <str id="HTMLLicencePanel.info" txt="Please read the following license agreement carefully:"/>

    <str id="ImgPacksPanel.checkbox" txt=" Installa questo componente"/>
    <str id="ImgPacksPanel.dependencyList" txt="Dipedenze e/o esclusioni"/>
    <str id="ImgPacksPanel.packs" txt="Sono disponibili questi componenti:"/>
    <str id="ImgPacksPanel.snap" txt="Elenco componenti: "/>

    <str id="InfoPanel.info" txt="Leggere attentamente le seguenti informazioni: "/>

    <str id="InstallPanel.begin" txt=" "/>
    <str id="InstallPanel.finished" txt="[Completato]"/>
    <str id="InstallPanel.info" txt="Selezionare 'Installa' per iniziare il processo di installazione"/>
    <str id="InstallPanel.install" txt="Installa"/>
    <str id="InstallPanel.overwrite.question" txt="Questo file esiste già. Sovrascriverlo?"/>
    <str id="InstallPanel.overwrite.title" txt="Il file esiste già"/>
    <str id="InstallPanel.progress" txt="Progresso totale dell'installazione:"/>
    <str id="InstallPanel.tip" txt="Progresso dell'installazione:"/>

    <str id="InstallationGroupPanel.colNameInstallType" txt="Tipo installazione"/>
    <str id="InstallationGroupPanel.colNameSelected" txt="Selezionati"/>
    <str id="InstallationGroupPanel.colNameSize" txt="Dimensione"/>

    <str id="InstallationTypePanel.info" txt="Selezionare il tipo di installazione:"/>
    <str id="InstallationTypePanel.modify" txt="Modifica installazione"/>
    <str id="InstallationTypePanel.normal" txt="Nuova installazione"/>

    <str id="JDKPathPanel.badVersion1" txt="La versione della JDK selezionata non è corretta (disponibili: "/>
    <str id="JDKPathPanel.badVersion2" txt=" richiesta: "/>
    <str id="JDKPathPanel.badVersion3" txt=") usare comunquesta questa JDK?"/>
    <str id="JDKPathPanel.badVersion4" txt="Continuare comunque? [y/n] [n]"/>
    <str id="JDKPathPanel.extendedIntro" txt="Il programma installato richiede una JDK di versione compresa tra ${JDKPathPanel.minVersion} e ${JDKPathPanel.maxVersion}. Una Java Runtime Environment (JRE) non è sufficiente."/>
    <str id="JDKPathPanel.info" txt="Selezionare il percorso del JDK:"/>
    <str id="JDKPathPanel.intro" txt="L'applicazione necessita della JDK. La Java Runtime Environment (JRE) non è sufficente."/>
    <str id="JDKPathPanel.jdkDownload" txt="
Questo software richiede una versione minima ${JDKPathPanel.minVersion} di Java Development Kit (JDK).
          Qualora non sia installata, si prega di visitare http://java.sun.com/javase/downloads,          per ottenerla e installarla."/>
    <str id="JDKPathPanel.nonValidPathInReg" txt="Il registro di Windows contiene un percorso non valido per questa JDK. Volete usare comunque questa JDK?"/>

    <str id="LicencePanel.agree" txt="Accetto i termini di questo accordo di licenza."/>
    <str id="LicencePanel.info" txt="Leggere attentamente l'accordo di licenza:"/>
    <str id="LicencePanel.no" txt="No"/>
    <str id="LicencePanel.notagree" txt="Non accetto i termini di questo accordo di licenza."/>
    <str id="LicencePanel.yes" txt="Sì"/>

    <str id="LockFile.exists.message" txt="The "$APP_NAME" installer you are attempting to run seems to have a copy already running. This could be from a previous failed installation attempt or you may have accidentally launched the installer twice. The recommended action is to wait for the other copy of the installer to start. If you are sure there is no other copy of the installer running, you can delete the lock file "$LOCK_FILE" and restart the installer."/>
    <str id="LockFile.exists.prompt" txt="The "$APP_NAME" installer you are attempting to run seems to have a copy already running.

This could be from a previous failed installation attempt or you may have accidentally launched
the installer twice. The recommended action is to select 'No' and wait for the other copy of
the installer to start. If you are sure there is no other copy of the installer running, click
the 'Yes' button to allow this installer to run.

Are you sure you want to continue with this installation?"/>

    <str id="nextmedia.browsebtn" txt="Sfoglia"/>
    <str id="nextmedia.cancelbtn" txt="Annulla"/>
    <str id="nextmedia.choosertitle" txt="Selezionare il supporto per l'installazione"/>
    <str id="nextmedia.filedesc" txt="Componenti da installare (.pak*)"/>
    <str id="nextmedia.msg" txt="Selezionare il supporto successivo per l'installazione."/>
    <str id="nextmedia.okbtn" txt="Applica"/>
    <str id="nextmedia.title" txt="Supporto di installazione successivo"/>

    <str id="PacksPanel.dependencies" txt="Dipendenze: "/>
    <str id="PacksPanel.dependencyList" txt="Il componente selezionato ha le seguenti dipendenze e/o esclusioni"/>
    <str id="PacksPanel.description" txt="Descrizione"/>
    <str id="PacksPanel.excludes" txt="Esclusioni: "/>
    <str id="PacksPanel.freespace" txt="Spazio disponibile: "/>
    <str id="PacksPanel.info" txt="Scegliere i componenti da installare:"/>
    <str id="PacksPanel.notAscertainable" txt="Non prevedibile"/>
    <str id="PacksPanel.notEnoughSpace" txt="Lo spazio disponibile non è sufficiente"/>
    <str id="PacksPanel.space" txt="Spazio totale necessario: "/>
    <str id="PacksPanel.tip" txt="Nota: i componenti in grigio sono obbligatori."/>

    <str id="PathInputPanel.isfile" txt="You have entered a path to a file. Please select a path to a new or existing directory."/>
    <str id="PathInputPanel.notValid" txt="La cartella selezionata non contiene il prodotto richiesto."/>
    <str id="PathInputPanel.required" txt="La cartella selezionata deve esistere."/>
    <str id="PathInputPanel.required.forModificationInstallation" txt="La cartella selezionata deve esistere."/>

    <str id="PDFLicencePanel.info" txt="Please read the following license agreement carefully:"/>

    <str id="PrinterSelectPanel.select_printer" txt="Selezionare la stampante da usare per la configurazione iniziale e le prove."/>

    <str id="ProcessPanel.heading" txt="In corso..."/>

    <str id="functionFailed.RegOpenKeyEx" txt="Impossibile aprire la chiave di registro {0}\\{1}."/>

    <str id="SudoPanel.info" txt="Per effettuare l'installazione sono necessari privilegi di amministratore"/>
    <str id="SudoPanel.invalidPassword" txt="Password errata o privilegi non sufficienti"/>
    <str id="SudoPanel.specifyAdminPassword" txt="Per favore inserisca la propria password di amministratore:"/>
    <str id="SudoPanel.tip" txt="Si prega di notare che le password fanno distinzione fra maiuscolo e minuscolo"/>

    <str id="TargetPanel.browse" txt="Sfoglia..."/>
    <str id="TargetPanel.createdir" txt="Verrà creata la cartella: "/>
    <str id="TargetPanel.empty_target" txt="Non è stato specificato il percorso di destinazione! Continuare?"/>
    <str id="TargetPanel.incompatibleInstallation" txt="Incompatible installation detected. Uninstall it first, or choose another directory to install to."/>
    <str id="TargetPanel.info" txt="Scegliere il percorso d'installazione: "/>
    <str id="TargetPanel.nodir" txt="Questa non è una cartella! Selezionare una cartella!"/>
    <str id="TargetPanel.notwritable" txt="Quasta cartella non è scrivibile! Selezionare un'altra cartella!"/>
    <str id="TargetPanel.syntax.error" txt="Invalid directory path. Please enter a directory path that meets the operating system's requirements."/>
    <str id="TargetPanel.warn" txt="Questa cartella esiste già! Siete sicuri di usare questa cartella ed eventualmente sostituire i file esistenti?"/>

    <str id="TreePacksPanel.children" txt="Children"/>
    <str id="TreePacksPanel.confirm" txt="Press 0 to confirm your selections."/>
    <str id="TreePacksPanel.dependent" txt="Dependencies"/>
    <str id="TreePacksPanel.done" txt="Done!"/>
    <str id="TreePacksPanel.invalid" txt="Invalid pack selected"/>
    <str id="TreePacksPanel.no.number" txt="Please enter a number from the selection above."/>
    <str id="TreePacksPanel.no.packs" txt="You have not selected any packs!\nAre you sure you want to continue?"/>
    <str id="TreePacksPanel.prompt" txt="Please select which packs you want to install."/>
    <str id="TreePacksPanel.required" txt="Required"/>
    <str id="TreePacksPanel.space.required" txt="Total space required:"/>
    <str id="TreePacksPanel.unselectable" txt="Unselectable"/>

    <str id="uninstaller.destroytarget" txt=" Forza la disinstallazione di "/>
    <str id="uninstaller.uninstall" txt="Disinstalla"/>
    <str id="uninstaller.warning" txt="Verranno disinstallate la(e) applicazione(i) selezionate!"/>

    <str id="XInfoPanel.info" txt="Please read the following information:"/>

    <str id="ShortcutPanel.alternate.apology" txt="IzPack non supporta la creazione di collegamenti in questo sistema operativo. Per crearli manualmente consultare la guida in linea del sistema operativo."/>
    <str id="ShortcutPanel.alternate.saveButton" txt="Salvare in un file di testo"/>
    <str id="ShortcutPanel.alternate.targetsLabel" txt="Questa è una lista di 'destinazioni' che il produttore del programma voleva mettere a disposizione."/>
    <str id="ShortcutPanel.alternate.textFileExplanation" txt="È possibile salvare le informazioni dettagliate sulla destinazione dell'applicazione in un file di testo per un futuro riferimento."/>
    <str id="ShortcutPanel.group.error" txt="Invalid program group. Please enter an alphnumeric string."/>
    <str id="ShortcutPanel.location.applications" txt="Menu Applicazioni"/>
    <str id="ShortcutPanel.location.desktop" txt="Desktop"/>
    <str id="ShortcutPanel.location.startMenu" txt="Menu Start"/>
    <str id="ShortcutPanel.location.startup" txt="Gruppo di Avvio"/>
    <str id="ShortcutPanel.regular.allUsers" txt="Tutti gli utenti"/>
    <str id="ShortcutPanel.regular.create" txt="Crea collegamenti nel menu Start"/>
    <str id="ShortcutPanel.regular.currentUser" txt="Utente corrente"/>
    <str id="ShortcutPanel.regular.default" txt="Predefinito"/>
    <str id="ShortcutPanel.regular.desktop" txt="Crea un collegamento sul desktop"/>
    <str id="ShortcutPanel.regular.list" txt="Selezionare un gruppo di programmi per il collegamento:"/>
    <str id="ShortcutPanel.regular.StartMenu:K-Menu" txt="Menu XDG"/>
    <str id="ShortcutPanel.regular.StartMenu:Start-Menu" txt="Menu Start"/>
    <str id="ShortcutPanel.regular.startup" txt="Launch on startup"/>
    <str id="ShortcutPanel.regular.userIntro" txt="Crea collegamenti per:"/>
    <str id="ShortcutPanel.textFile.command" txt="Riga di comando           : "/>
    <str id="ShortcutPanel.textFile.description" txt="Descrizione               : "/>
    <str id="ShortcutPanel.textFile.header" txt="Informazioni Scorciatoie\n====================\n\nQuesta è la lista di tutte le informazioni sulle scorciatoie originalmente\nselezionate. Con quest'informazione è possibile crearle manualmente.\n"/>
    <str id="ShortcutPanel.textFile.iconIndex" txt="Indice icone              : "/>
    <str id="ShortcutPanel.textFile.iconName" txt="File delle icone          : "/>
    <str id="ShortcutPanel.textFile.location" txt="Percorso                  : "/>
    <str id="ShortcutPanel.textFile.name" txt="Collegamento              : "/>
    <str id="ShortcutPanel.textFile.target" txt="Collegamento destinazione : "/>
    <str id="ShortcutPanel.textFile.work" txt="Cartella di lavoro        : "/>

    <str id="DefaultTargetPanel.summaryCaption" txt="Installation Path"/>
    <str id="ImgPacksPanel.summaryCaption" txt="Componenti selezionati per l'installazione"/>
    <str id="InstallationGroupPanel.summaryCaption" txt="Chosen Installation Feature"/>
    <str id="JDKPathPanel.summaryCaption" txt="Percorso JDK"/>
    <str id="PacksPanel.summaryCaption" txt="Componenti selezionati per l'installazione"/>
    <str id="SummaryPanel.info" txt="L'installazione proseguirà con le impostazioni indicate qui sotto. Selezionare "Avanti" per iniziare l'installazione."/>
    <str id="SummaryPanel.next" txt="Avanti"/>
    <str id="TargetPanel.summaryCaption" txt="Percorso installazione"/>
    <str id="TreePacksPanel.summaryCaption" txt="Componenti selezionati per l'installazione"/>
    <str id="UserPathPanel.summaryCaption" txt="Selezionare il percorso"/>

    <str id="UserInputPanel.custom.swing.buttonlabel.add" txt="Add"/>
    <str id="UserInputPanel.custom.swing.buttonlabel.remove" txt="Remove"/>
    <str id="UserInputPanel.dir.nodirectory.caption" txt="Nessuna cartella selezionata"/>
    <str id="UserInputPanel.dir.nodirectory.message" txt="Selezionare una cartella valida."/>
    <str id="UserInputPanel.dir.notdirectory.caption" txt="Cartella non valida"/>
    <str id="UserInputPanel.dir.notdirectory.message" txt="La cartella selezionata o non è esiste o non è valida."/>
    <str id="UserInputPanel.error.caption" txt="Errore"/>
    <str id="UserInputPanel.file.nofile.caption" txt="Nessun file selezionato"/>
    <str id="UserInputPanel.file.nofile.message" txt="Selezionare un file valido."/>
    <str id="UserInputPanel.file.notfile.caption" txt="File non valido"/>
    <str id="UserInputPanel.file.notfile.message" txt="Il file selezionato o non esiste o non è valido."/>
    <str id="UserInputPanel.search.autodetect" txt="Autorilevazione"/>
    <str id="UserInputPanel.search.autodetect.failed.caption" txt="Autorilevazione fallita."/>
    <str id="UserInputPanel.search.autodetect.failed.message" txt="Autorilevazione fallita."/>
    <str id="UserInputPanel.search.autodetect.tooltip" txt="Verificare il file o la cartella nel percorso sopra specificato."/>
    <str id="UserInputPanel.search.browse" txt="Sfoglia..."/>
    <str id="UserInputPanel.search.delete" txt="Delete..."/>
    <str id="UserInputPanel.search.location" txt="Inserire il percorso di {0}."/>
    <str id="UserInputPanel.search.location.checkedfile" txt="È stata verificata l'esistenza di {0}."/>
    <str id="UserInputPanel.search.wrongselection.caption" txt="Selezione non valida."/>
    <str id="UserInputPanel.search.wrongselection.message" txt="Il file o la cartella selezionati non esistono o non sono appropriati."/>

    <str id="UserPathPanel.browse" txt="Sfoglia"/>
    <str id="UserPathPanel.createdir" txt="Verrà creata la cartella: "/>
    <str id="UserPathPanel.empty_target" txt="Non è stata specificata una destinazione! È corretto?"/>
    <str id="UserPathPanel.exists_warn" txt="La cartella esiste già! Sicuri di voler installare qui il programma e sovrscrivere i file esistenti?"/>
    <str id="UserPathPanel.info" txt="Selezionare il percorso: "/>
    <str id="UserPathPanel.nodir" txt="Questo file non è una cartella! Scegliere una cartella!"/>
    <str id="UserPathPanel.notwritable" txt="Questa cartella non è scrivibile! Scegliere un'altra cartella!"/>
    <str id="UserPathPanel.required" txt="La cartella selezionata deve esistere."/>

    <str id="log.timeStamp" txt="dd-MM-yyyy [HH:mm:ss] zzzz"/>

    <str id="log.application" txt="Report installazione per: {0} versione {1}"/>
    <str id="log.errorHeading" txt="                                --- Errori ---"/>
    <str id="log.errorPrefix" txt="Errore [{0}] - "/>
    <str id="log.exceptionPrefix" txt="                    Eccezioni: {0}"/>
    <str id="log.informUserFail" txt="L'installazione non è stata completata correttamente!
Registrare un file di log?"/>
    <str id="log.informUserPartial" txt="L'installazione potrebbe non essere stata completata correttamente!
Registrare un file di log?"/>
    <str id="log.informUserTitle" txt="Problemi nell'installazione"/>
    <str id="log.installFailed" txt="ATTENZIONE!!! L'installazione non è stata completata correttamente!"/>
    <str id="log.LogFileName" txt="installLog.txt"/>
    <str id="log.messageCount" txt="Questo report contiene {0} messaggio(i) generali, {1} avviso(i) e {2} errore(i)"/>
    <str id="log.messageHeading" txt="                         --- Messaggi installazione ---"/>
    <str id="log.messagePrefix" txt="Messaggio [{0}] - "/>
    <str id="log.partialInstall" txt="ATTENZIONE!!! L'installazione potrebbe non essere stata completata correttamente!"/>
    <str id="log.pathPrefix" txt="Cartella installazione  : {0}"/>
    <str id="log.reportHeading" txt="                           IzPack - Report installazione"/>
    <str id="log.reportWriteError" txt="Impossibile creare il report dell'installazione in ''{0}''"/>
    <str id="log.reportWriteErrorTitle" txt="Errore nella creazione del report"/>
    <str id="log.saveLogTitle" txt="Salva il file del log"/>
    <str id="log.timePrefix" txt="Ora installazione       : {0}"/>
    <str id="log.warningHeading" txt="                               --- Avvisi ---"/>
    <str id="log.warningPrefix" txt="Avviso [{0}] - "/>

    <str id="debug.changevariable" txt="modifica valore"/>
    <str id="log.error_0" txt="Impossibile registare ''{0}''"/>
    <str id="log.message_" txt=""/>
    <str id="log.warning_" txt=""/>

    <str id="data.validation.error.title" txt="Validatione fallita"/>
    <str id="data.validation.warning.title" txt="Avviso"/>

</izpack:langpack>


text:
package bookshop2.seller.incoming.orderBooks;

import static javax.ejb.TransactionAttributeType.REQUIRED;

import javax.annotation.Resource;
import javax.ejb.Remote;
import javax.ejb.Stateless;
import javax.ejb.TransactionAttribute;
import javax.inject.Inject;
import javax.jws.HandlerChain;
import javax.jws.Oneway;
import javax.jws.WebMethod;
import javax.jws.WebService;
import javax.transaction.TransactionSynchronizationRegistry;
import javax.xml.ws.WebServiceContext;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.aries.tx.module.Bootstrapper;
import org.aries.util.ExceptionUtil;

import bookshop2.OrderRequestMessage;
import bookshop2.seller.SellerContext;

@Remote(OrderBooks.class)
@Stateless(name = "OrderBooks")
@WebService(name = "orderBooks", serviceName = "orderBooksService", portName = "orderBooks", targetNamespace = "http://bookshop2/seller")
@HandlerChain(file = "/jaxws-handlers-service-oneway.xml")
public class OrderBooksListenerForJAXWS implements OrderBooks {

	private static final Log log = LogFactory.getLog(OrderBooksListenerForJAXWS.class);

	@Inject
	private SellerContext sellerContext;

	@Inject
	private OrderBooksHandler orderBooksHandler;

	@Resource
	private WebServiceContext webServiceContext;

	@Resource
	private TransactionSynchronizationRegistry transactionSynchronizationRegistry;

	@Oneway
	@Override
	@WebMethod
	@TransactionAttribute(REQUIRED)
	public void orderBooks(OrderRequestMessage orderRequestMessage) {
		if (!Bootstrapper.isInitialized("bookshop2-seller-service"))
			return;

		try {
			sellerContext.validate(orderRequestMessage);
			orderBooksHandler.orderBooks(orderRequestMessage);

		} catch (Throwable e) {
			log.error(e);
			throw ExceptionUtil.rewrap(e);
		}
	}

}


text:
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements.  See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership.  The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this file except in compliance
// with the License.  You may obtain a copy of the License at
//
//   http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing,
// software distributed under the License is distributed on an
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied.  See the License for the
// specific language governing permissions and limitations
// under the License.

using System;
using Org.Apache.REEF.Utilities.Logging;

namespace Org.Apache.REEF.Utilities
{
    [Serializable]
    public sealed class Optional<T>
    {
        private readonly T _value;

        private Optional(T value)
        {
            _value = value;
        }

        private Optional()
        {
            _value = default(T);
        }

        public T Value
        {
            get { return _value; }
        }

        public static Optional<T> Of(T value)
        {
            if (value == null)
            {
                Diagnostics.Exceptions.Throw(new ArgumentNullException("value", "Passed a null value. Use OfNullable() instead"), Logger.GetLogger(typeof(Optional<T>)));
            }
            return new Optional<T>(value);
        }

        public static Optional<T> Empty()
        {
            return new Optional<T>();
        }

        public static Optional<T> OfNullable(T value)
        {
            if (value == null)
            {
                return Empty();
            }
            else
            {
                return Of(value);
            }
        }

        public T OrElse(T other)
        {
            if (IsPresent())
            {
                return Value;
            }
            else
            {
                return other;
            }
        }

        public bool IsPresent()
        {
            return _value != null;
        }

        public override bool Equals(object obj)
        {
            if (this == obj)
            {
                return true;
            }
            if (obj == null || obj.GetType() != this.GetType())
            {
                return false;
            }
            Optional<T> optional = (Optional<T>)obj;
            if (_value != null ? !_value.Equals(optional.Value) : optional.Value != null)
            {
                return false;
            }
            return true;
        }

        public override int GetHashCode()
        {
            return _value != null ? _value.GetHashCode() : 0;
        }

        public override string ToString()
        {
            return "Optional{value=" + _value + "}";
        }
    }
}


text:
[![Build Status](https://travis-ci.org/mike-north/ember-parallax.svg?branch=master)](https://travis-ci.org/mike-north/ember-parallax)
[![Greenkeeper badge](https://badges.greenkeeper.io/mike-north/ember-parallax.svg)](https://greenkeeper.io/)

Parallax support for ember.js apps

![ember-parallax](http://i65.tinypic.com/rs4zzs.gif)

## Use

### Installation
Install this addon using ember-cli

```
ember install ember-parallax
```

Wrap whatever content you like in the `{{parallax-content}}` component, specifying a speed and a height

```hbs
{{#parallax-content speed=0.5 height=400 }}
  <img src="./img/stellar-spire-eagle-nebula-1400x900.jpg">
{{/parallax-content}}
```

## Contributing

* `git clone` this repository
* `npm install`
* `bower install`

## Running

* `ember server`
* Visit your app at http://localhost:4200.

## Running Tests

* `npm test` (Runs `ember try:testall` to test your addon against multiple Ember versions)
* `ember test`
* `ember test --server`

## Building

* `ember build`

For more information on using ember-cli, visit [http://ember-cli.com/](http://ember-cli.com/).


text:
use std::net::SocketAddr;

use ::Result;
use packet::*;

mod client_socket;
mod server_socket;

pub use self::client_socket::ClientSocket;
pub use self::server_socket::{ServerSocket, Listener};

pub enum Socket {
    Client(ClientSocket),
    Server(ServerSocket),
}

impl Socket {
    pub fn recv(&mut self) -> Result<Vec<u8>> {
        match *self {
            Socket::Client(ref mut client) => client.recv(),
            Socket::Server(ref mut server) => server.recv(),
        }
    }

    pub fn send(&mut self, msg: &[u8]) -> Result<usize> {
        match *self {
            Socket::Client(ref mut client) => client.send(msg),
            Socket::Server(ref mut server) => server.send(msg),
        }
    }
}

trait PacketProcessor {
    fn process_packet(&mut self, packet: Packet, rem_addr: SocketAddr) -> Result<()>;
}


text:
<?php
/* ************************************************************************ */
/* ************************************************************************ */
/* ************************************************************************ */
/*       Please do not modify this file. You can override settings          */
/*     in a file named 'ownsettings.php' which will be automatically        */
/*                included for every Spotweb installation.                  */
/* ************************************************************************ */
/* ************************************************************************ */
/* ************************************************************************ */

/*
 * Where is Spotweb intalled / accessible for the outside world?
 * We try to automatically create the proper URL to this site, but
 * if this somehow fails please set it yourselve. Spotweb url is used
 * for things like pushing the NZB file to your download manager, and
 * in notifications to users.
 */
if (isset($_SERVER['SERVER_PROTOCOL'])) {
    $settings['spotweburl'] = (@$_SERVER['HTTPS'] == 'on' ? 'https' : 'http') . '://' . @$_SERVER['HTTP_HOST'] . (dirname($_SERVER['PHP_SELF']) != '/' && dirname($_SERVER['PHP_SELF']) != '\\' ? dirname($_SERVER['PHP_SELF']). '/' : '/');
} else {
	$settings['spotweburl'] = 'http://mijnuniekeservernaam/spotweb/';
} # if

/*
 * Where is your 'openssl.cnf' file stored? This file needs to be readable
 * for OpenSSL to function. OpenSSL greatly speeds up the verifying and
 * signing of new keys.
 */
$settings['openssl_cnf_path'] = "lib/openssl/openssl.cnf";

/*
 * Define a cookie host. We try to automtaically set this, but feel
 * free to override this in the correct place.
 *
 * Make sure you set a valid cookie host if you do decide to override
 * this as it will cause issues with logging in etc if you don't.
 */
if (isset($_SERVER['HTTP_HOST'])) {
	// Strip leading periods
	$cookie_domain = ltrim($_SERVER['HTTP_HOST'], '.');

	// Strip www.
	if (strpos($cookie_domain, 'www.') === 0) {
		$cookie_domain = substr($cookie_domain, 4);
	}

	//Strip port numbers
	$cookie_domain = explode(':', $cookie_domain);
	$cookie_domain = '.' . $cookie_domain[0];
} # if

/*
 * Per RFC 2109, cookie domains must contain at least one dot other than the
 * first. For hosts such as 'localhost' or IP Addresses we don't set a cookie domain.
 */
if (isset($cookie_domain) && count(explode('.', $cookie_domain)) > 2 && !filter_var(ltrim($cookie_domain, '.'), FILTER_VALIDATE_IP)) {
	$settings['cookie_host'] = $cookie_domain;
	unset($cookie_domain);
} else {
	$settings['cookie_host'] = '';
} # else

/*
 * translate Spotweb 'categories' to Sabnzbd+ categories. We use a very basic default,
 * but feel free to overide them from within your ownsettings.php
 *
 * Currently these categories are system wide.
 */
$settings['sabnzbd']['categories'] = Array(
		0	=> Array('default' 	=> "movies",				# Default categorie when nothing else matches
					 'a5'		=> "books",
					 'd2'		=> "anime",
					 'd11'		=> "tv",
					 'd29'		=> "anime"),
		1	=> Array('default'	=> 'music'),
		2	=> Array('default'	=> 'games'),
		3	=> Array('default'	=> 'apps',
					 'a3'		=> 'consoles',
					 'a4'		=> 'consoles',
					 'a5'		=> 'consoles',
					 'a6'		=> 'consoles',
					 'a7'		=> 'consoles',
					 'a8'		=> 'consoles',
					 'a9'		=> 'consoles',
					 'a10'		=> 'consoles',
					 'a11'		=> 'consoles',
					 'a12'		=> 'consoles',
					 'a13'		=> 'pda',
					 'a14'		=> 'pda',
					 'a15'		=> 'pda')
	);

/*
 * Include, if any, ownsettings which should also be a valid PHP file.
 * Settings set in this file, will override settings from this file,
 * so please always use the 'ownsettings.php' file.
 *
 */
if (@file_exists('../ownsettings.php')) { include_once('../ownsettings.php'); }
if (file_exists('ownsettings.php')) { include_once('ownsettings.php'); }

/*
 * List of quicklinks. First we test whether those are set within the 'ownsettings.php' file,
 * because if they are we don't want to override or add to them.
 *
 * We cannot create this before ownsetings.php (so an user could add/change existing links),
 * because in earlier versions of Spotweb we tested for 'keep_watchlist' and 'keep_downloads'
 * settings in this file.
 *
 * If we would change it now, it would break compatibility with existing installations, and we
 * don't want to do that until we move this configuration to the settings page in whole.
 */
if (!isset($settings['quicklinks'])) {
	$settings['quicklinks'] = Array();
	$settings['quicklinks'][] = Array('Reset filters', "home", "?search[tree]=&search[unfiltered]=true", "", Array(SpotSecurity::spotsec_view_spots_index, ''), null);
	$settings['quicklinks'][] = Array('New', "today", "?search[tree]=&search[unfiltered]=true&search[value][]=New:0", "", Array(SpotSecurity::spotsec_keep_own_seenlist, ''), 'count_newspots');
	$settings['quicklinks'][] = Array('Watchlist', "fav", "?search[tree]=&search[unfiltered]=true&search[value][]=Watch:0", "", Array(SpotSecurity::spotsec_keep_own_watchlist, ''), 'keep_watchlist');
	$settings['quicklinks'][] = Array('Downloaded', "download", "?search[tree]=&search[unfiltered]=true&search[value][]=Downloaded:0", "", Array(SpotSecurity::spotsec_keep_own_downloadlist, ''), 'keep_downloadlist');
	$settings['quicklinks'][] = Array('Recently viewed', "eye", "?search[tree]=&search[unfiltered]=true&search[value][]=Seen:0", "", Array(SpotSecurity::spotsec_keep_own_seenlist, ''), 'keep_seenlist');
	$settings['quicklinks'][] = Array('My spots', "fav", "?search[tree]=&search[unfiltered]=true&search[value][]=MyPostedSpots:0", "", Array(SpotSecurity::spotsec_post_spot, ''), null);
	$settings['quicklinks'][] = Array('Statistics', "stats", "?page=statistics", "", Array(SpotSecurity::spotsec_view_statistics, ''), null);
	$settings['quicklinks'][] = Array('Documentation', "help", "https://github.com/spotweb/spotweb/wiki", "external", Array(SpotSecurity::spotsec_view_spots_index, ''), null);
} # if isset

/*
 * When the OpenSSL module is loaded, make sure the "openssl_cnf_path"
 * setting variable points to an readable cnf file.
 */
if ((!is_readable($settings['openssl_cnf_path'])) && (extension_loaded("openssl"))) {
	throw new InvalidOwnSettingsSettingException("openssl_cnf_path does not contain a readable OpenSSL configuration filepath");
} # if

/*
 * Add a closing slash to the Spotweb url
 */
if (substr($settings['spotweburl'], -1) != '/') {
	$settings['spotweburl'] .= '/';
} # if

/*
 * In older Spotweb versions, users could set preferences
 * in this file. We don't allow this anymore as they are
 * set per user.
 */
if (isset($settings['prefs'])) {
	throw new InvalidOwnSettingsSettingException("Preferences are set per user, not in your ownsettings.php");
} # if

/*
 * Several settings are deprecated. Don't allow them to be set
 * in this system anymore.
 */
$ownsettingserror = '';
$array = array('blacklist_url', 'cookie_expires', 'deny_robots', 'enable_stacktrace', 'enable_timing', 'external_blacklist', 'nntp_hdr',
	'nntp_nzb', 'nntp_post', 'prefetch_image', 'prefetch_nzb', 'retention', 'retrieve_comments', 'retrieve_full', 'retrieve_full_comments',
	'retrieve_increment', 'retrieve_newer_than', 'retrieve_reports', 'sendwelcomemail', 'spot_moderation', 'allow_user_template',
	'auto_markasread', 'filters', 'index_filter', 'keep_downloadlist', 'keep_watchlist', 'nzb_search_engine', 'nzbhandling', 'show_multinzb',
	'count_newspots', 'keep_seenlist', 'show_nzbbutton', 'show_updatebutton', 'newuser_grouplist', 'nonauthenticated_userid',
	'templates');
foreach ($array as $value) {
	if (isset($settings[$value])) {
		$ownsettingserror .= ' * ' . $value . PHP_EOL;
	} # if
} # foreach

if (!empty($ownsettingserror)) {
	throw new InvalidOwnSettingsSettingException("Please remove " . $ownsettingserror . " from your 'ownsettings.php' file, this setting is set in the settings panel from within Spotweb itself");
} # if

# Controleer op oud type quicklinks (zonder preference link)
foreach($settings['quicklinks'] as $link) {
	if (count($link) < 6) {
		throw new InvalidOwnSettingsSettingException("Quicklinks have to have a preferences check as well. Please modify the quickinks in your ownettings.php or remove them from your ownsetings.php");
	} # if
} # foreach

/*
 * First make sure no database settings are left in the main ownsettings.php anymore, as this is the first
 * part to deprecating the kludge that settings.php has become completely.
 */
if (!empty($settings['db'])) {
		throw new InvalidOwnSettingsSettingException("You need to remove the database settings from your ownsettings.php file and open install.php from your webbrowser. If you are upgrading, please consult https://github.com/spotweb/spotweb/wiki/Frequently-asked-questions/ first");
} # if

if (file_exists('reallymyownsettings.php')) { include_once('reallymyownsettings.php'); }


text:
namespace MobileApp.Android.Binding
{
    using System;

    using Cirrious.MvvmCross.Binding;
    using Cirrious.MvvmCross.Binding.Droid.Target;

    using global::Android.Views;
    using global::Android.Views.Animations;

    internal class HideViewBinding : MvxAndroidTargetBinding
    {
        public HideViewBinding(object target)
            : base(target)
        {
        }

        private ViewGroup Container
        {
            get
            {
                return (ViewGroup)this.Target;
            }
        }

        /// <summary>
        /// Gets the default mode.
        /// </summary>
        public override MvxBindingMode DefaultMode
        {
            get
            {
                return MvxBindingMode.OneWay;
            }
        }

        public override Type TargetType
        {
            get
            {
                return typeof(bool);
            }
        }

        /// <summary>
        /// The dispose.
        /// </summary>
        /// <param name="isDisposing">
        /// The is disposing.
        /// </param>
        protected override void Dispose(bool isDisposing)
        {
            if (isDisposing)
            {
                var button = this.Container;
                if (button != null)
                {
                    button.Dispose();
                }
            }

            base.Dispose(isDisposing);
        }

        /// <summary>
        /// The set value impl.
        /// </summary>
        /// <param name="target">
        /// The target.
        /// </param>
        /// <param name="value">
        /// The value.
        /// </param>
        protected override void SetValueImpl(object target, object value)
        {
            bool isPlaying;

            if (!bool.TryParse(value.ToString(), out isPlaying) || this.Container == null)
            {
                return;
            }

            if (this.Container.Visibility == ViewStates.Gone && !isPlaying)
            {
                this.Container.StartAnimation(new AlphaAnimation(1f, 0f) { Duration = 0, FillAfter = true });
                this.Container.Visibility = ViewStates.Visible;
                return;
            }

            this.Container.StartAnimation(
                !isPlaying
                    ? new AlphaAnimation(1f, 0f) { Duration = 200, FillAfter = true, StartOffset = 200 }
                    : new AlphaAnimation(0f, 1f) { Duration = 300, FillAfter = true });
        }
    }
}


text:
import { ModuleWithProviders }  from '@angular/core';
import { RouterModule, Routes } from '@angular/router';

import { GetQouteComponent }  from '../quote/getquote.comp';
import { CustmrBasicInfoComponent }  from '../customer/customer-basic-info.comp';
import { ProdcutSelectComponent }  from '../product/product-select.comp';

const routes: Routes = [
  { path: '',   component: GetQouteComponent},
  { path: 'getQuote',  component: GetQouteComponent },
  { path: 'customerBasicInfo',  component: CustmrBasicInfoComponent },
  { path: 'productSelect',  component: ProdcutSelectComponent }
];

export const routing: ModuleWithProviders=RouterModule.forRoot(routes);


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

<title>CreditsException (Lightstreamer Interfaces 6.0 a2 API)</title>
<meta name="date" content="2014-03-07">
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">

JavaScript is disabled on your browser.

Overview

Package

Class

Tree

Deprecated

Index

Help

Prev Class

Next Class

Frames

No Frames

All Classes

Summary:

Nested |

Field |

Constr |

Method

Detail:

Field |

Constr |

Method

com.lightstreamer.interfaces.metadata

Class CreditsException

java.lang.Object

java.lang.Throwable

java.lang.Exception

com.lightstreamer.interfaces.metadata.CreditsException

All Implemented Interfaces:

java.io.Serializable

Direct Known Subclasses:

ConflictingSessionException

public class CreditsException
extends java.lang.Exception

Thrown by the notify* methods in MetadataProvider if some functionality
 cannot be allowed to the supplied User. This may occur if the user is not
 granted some resource or if the user would exceed the granted amount.
 Different kinds of problems can be distinguished by an error code. Both
 the error message detail and the error code will be forwarded by
 Lightstreamer Kernel to the Client.

See Also:

Serialized Form

Constructor Summary

Constructors

Constructor and Description

CreditsException(int clientErrorCode,
                java.lang.String msg)

Constructs a CreditsException with supplied error code and message text.

CreditsException(int clientErrorCode,
                java.lang.String msg,
                java.lang.String userMsg)

Constructs a CreditsException with supplied error code and message text
 to be forwarded to the Client.

Method Summary

Methods

Modifier and Type
Method and Description

int
getClientErrorCode()

Returns the error code to be forwarded to the client.

java.lang.String
getClientErrorMsg()

Returns the error detail message to be forwarded to the client.

Methods inherited from class java.lang.Throwable

addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail

CreditsException

public CreditsException(int clientErrorCode,
                java.lang.String msg,
                java.lang.String userMsg)

Constructs a CreditsException with supplied error code and message text
 to be forwarded to the Client.
 An internal error message text can also be specified.

Parameters:

clientErrorCode - Error code that can be used to distinguish the
 kind of problem. It must be a negative integer, or zero to mean an
 unspecified problem.

msg - The detail message.

userMsg - A detail message to be forwarded to the Client. It can
 be null. The message should be in simple ASCII, otherwise it might be
 altered in order to be sent to the client; multiline text is also
 not allowed.

CreditsException

public CreditsException(int clientErrorCode,
                java.lang.String msg)

Constructs a CreditsException with supplied error code and message text.

Parameters:

clientErrorCode - Error code that can be used to distinguish the
 kind of problem. It must be a negative integer, or zero to mean an
 unspecified problem.

msg - The detail message.

Method Detail

getClientErrorCode

public int getClientErrorCode()

Returns the error code to be forwarded to the client.

Returns:

error code or zero to mean an unspecified error.

getClientErrorMsg

public java.lang.String getClientErrorMsg()

Returns the error detail message to be forwarded to the client.
 If the message is not in simple ASCII or is in multiline format,
 the real text sent to the client might be altered.

Returns:

error detail message. It can be null.

Overview

Package

Class

Tree

Deprecated

Index

Help

Prev Class

Next Class

Frames

No Frames

All Classes

Summary:

Nested |

Field |

Constr |

Method

Detail:

Field |

Constr |

Method


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

    Licensed to the Austrian Association for Software Tool Integration (AASTI)
    under one or more contributor license agreements. See the NOTICE file
    distributed with this work for additional information regarding copyright
    ownership. The AASTI licenses this file to you under the Apache License,
    Version 2.0 (the "License"); you may not use this file except in compliance
    with the License. You may obtain a copy of the License at

        http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.

-->

<features name="openengsb-domain-contact-${project.version}" xmlns="http://karaf.apache.org/xmlns/features/v1.0.0"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://karaf.apache.org/xmlns/features/v1.0.0 http://karaf.apache.org/xmlns/features/v1.0.0" >
  <feature name="openengsb-domain-contact" version="${project.version}" >
    <feature version="${openengsb.version.range}">openengsb-framework</feature>
    <bundle>mvn:org.openengsb.domain/org.openengsb.domain.contact/${project.version}</bundle>
  </feature>
</features>


text:
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

#nullable enable

using System.Diagnostics;
using Microsoft.CodeAnalysis.Collections;
using Microsoft.CodeAnalysis.PooledObjects;

namespace Microsoft.CodeAnalysis.CodeGen
{
    /// <summary>
    /// Dispenser of unique ordinals for synthesized variable names that have the same kind and syntax offset.
    /// </summary>
    internal sealed class SynthesizedLocalOrdinalsDispenser
    {
        // The key is (local.SyntaxOffset << 8) | local.SynthesizedKind.
        private PooledDictionary<long, int>? _lazyMap;

        private static long MakeKey(SynthesizedLocalKind localKind, int syntaxOffset)
        {
            return (long)syntaxOffset << 8 | (long)localKind;
        }

        public void Free()
        {
            if (_lazyMap != null)
            {
                _lazyMap.Free();
                _lazyMap = null;
            }
        }

        public int AssignLocalOrdinal(SynthesizedLocalKind localKind, int syntaxOffset)
        {
#if !DEBUG
            // Optimization (avoid growing the dictionary below):
            // User-defined locals have to have a distinct syntax offset, thus ordinal is always 0.
            if (localKind == SynthesizedLocalKind.UserDefined)
            {
                return 0;
            }
#endif
            int ordinal;
            long key = MakeKey(localKind, syntaxOffset);

            // Group by syntax offset and kind.
            // Variables associated with the same syntax and kind will be assigned different ordinals.
            if (_lazyMap == null)
            {
                _lazyMap = PooledDictionary<long, int>.GetInstance();
                ordinal = 0;
            }
            else if (!_lazyMap.TryGetValue(key, out ordinal))
            {
                ordinal = 0;
            }

            _lazyMap[key] = ordinal + 1;
            Debug.Assert(ordinal == 0 || localKind != SynthesizedLocalKind.UserDefined);
            return ordinal;
        }
    }
}


text:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
  "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  <meta name="google-site-verification" content="MxsMq6bdLOx0KSuz1MY6yG9ZTIJ7_7DVRfl5NCAT5Yg"/>
  <title>ImageMagick: Sponsors</title>
  <meta http-equiv="Content-Language" content="en-US"/>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  <meta http-equiv="Reply-to" content="magick-users@imagemagick.org"/>
  <meta name="Application-name" content="ImageMagick"/>
  <meta name="Description" content="Use ImageMagick to convert, edit, or compose bitmap images in a variety of formats.  In addition resize, rotate, shear, distort and transform images automagically."/>
  <meta name="Application-url" content="http://www.imagemagick.org"/>
  <meta name="Generator" content="PHP"/>
  <meta name="Keywords" content="sponsors, ImageMagick, PerlMagick, image processing, OpenMP, software development library, image, photo, software, Magick++, MagickWand"/>
  <meta name="Rating" content="GENERAL"/>
  <meta name="Robots" content="INDEX, FOLLOW"/>
  <meta name="Generator" content="ImageMagick Studio LLC"/>
  <meta name="Author" content="ImageMagick Studio LLC"/>
  <meta name="Revisit-after" content="2 DAYS"/>
  <meta name="Resource-type" content="document"/>
  <meta name="Copyright" content="Copyright (c) 1999-2012 ImageMagick Studio LLC"/>
  <meta name="Distribution" content="Global"/>
  <link rel="icon" href="../images/wand.png"/>
  <link rel="shortcut icon" href="../images/wand.ico"  type="images/x-icon"/>
  <link rel="canonical" href="http://www.imagemagick.org" />
  <link rel="meta" type="application/rdf+xml" title="ICI" href="http://imagemagick.org/ici.rdf"/>

  <link rel="stylesheet" href="http://www.imagemagick.org/fancybox/jquery.fancybox.css?v=2.0.3" type="text/css" media="screen" />

  <link rel="stylesheet" href="http://www.imagemagick.org/fancybox/helpers/jquery.fancybox-buttons.css?v=2.0.3" type="text/css" media="screen" />

  <link rel="stylesheet" href="http://www.imagemagick.org/fancybox/helpers/jquery.fancybox-thumbs.css?v=2.0.3" type="text/css" media="screen" />

  <link rel="stylesheet" href="http://www.google.com/cse/style/look/default.css" type="text/css" />

  About ImageMagick

  Binary Releases

    Unix

    Mac OS X

    iOS

    Windows

  Command-line Tools

    Processing

    Options

    Usage

  Program Interfaces

    MagickWand

    MagickCore

    PerlMagick

    Magick++

   Install from Source

    Unix

    Windows

  Resources

  Architecture

  Download

  Search

  Site Map

  Links

  Sponsors:

  Web Hosting

  VPS

   Premium Quality Stock Photos

  Search engine optimisation

   Druckerei

   Best Local Services

  Managed Server

   Stock Photography

  Autoteile

   Royalty Free Stock Images

  Web Hosting Secret Revealed

  Druckerei

   Got Stripes?

   Brand shopping

ImageMagick Sponsors

[Active ImageMagick Sponsors • Support the ImageMagick Project]

Active ImageMagick Sponsors

We want to thank the sponsors of the ImageMagick project, including:

Autoteile

Best Local Services

Best Web Hosting

Bildbearbeitung

Brand shopping

Computer Wallpaper

Desktop wallpaper

Druckerei

Druckerei

Free Catalogs

Got Stripes?

Hosting Web

Managed Server

Notebook Reparatur

Open Source Hosting

Premium Quality Stock Photos

Photo Sharing Websites

Royalty Free Stock Images

Search engine optimisation

Stock Photography

Turbolader Online kaufen

VPS

Waschmaschinen Reparatur Berlin

Web Hosting

Web Hosting

Web Hosting Reviews

Web Hosting Secret Revealed

Support the ImageMagick Project

ImageMagick has been freely available since the early 1990's. It has consistently been one of the most comprehensive free image processing packages available, but, unlike competing packages, it continues to be supported and enhanced.  Today, ImageMagick is more comprehensive and better supported than ever.

ImageMagick has enjoyed considerable support from commercial users. Since ImageMagick is not restricted from use in commercial or proprietary applications, it is used to support thousands of commercial web sites and is used in professional digital image and movie studios as well as publishing shops. It is also used as a component of a number of commercial applications. Many of these commercial users have made contributions to ImageMagick, large and small, often anonymous, but always appreciated.

ImageMagick Studio LLC is now looking for sponsorship from individuals and companies which use ImageMagick, or which would like to help support free software. If you or your company depends on ImageMagick, sponsoring ImageMagick is a way to express your gratitude and to contribute back to the further development of ImageMagick.

ImageMagick sponsorship can take many forms. The following are some possibilities:

Contribute source code or patches to help improve ImageMagick.

Send us a licensed copy of Microsoft Visual Studio 2010.

Send us a licensed copy of Adobe Photoshop.

Lend us developers to add support for additional image formats or to finish integrating support for the SVG specification.

Provide technical writers to assist with the development of commercial-grade technical documentation.

Donate a quality SWOP or Eurostandard ICC profile to use as a default CMYK to RGB conversion profile.

Donate a workstation with a modern processor and plenty of memory and disk.  We would use it for our primary development environment.

Donate an Apple Macbook Pro or desktop so we can build and test ImageMagick in the Apple Development environment.

Help us produce an error-free ImageMagick run-time environment with the donation of Purify, BoundsChecker, or Insure++.

Produce ImageMagick DVDs for distribution.

Make a monetary contribution:

<fieldset>
<legend>Support the ImageMagick Project</legend>

Sponsorships can be anonymous, or public. We are willing to provide recognition for significant sponsorships, and can provide links to the sponsor's web site. We reserve the right to refuse a sponsorship if we deem the site being sponsored as having inappropriate content. For direct monetary contributions, click on the donate button to contribute thru Paypal or with a credit card:

<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="E4UZGVA6PU7RC">
<input type="image" src="../images/donate.png" border="0" name="submit" alt="Support ImageMagick" width="92" height="26">
</form>

or send a check or money order in US funds to

  ImageMagick Studio LLC
  P.O. Box 40
  Landenberg, PA  19350
  USA

</fieldset>

Donate $25 USD and we acknowledge your gift with a logoed t-shirt (you must request the shirt to receive it).

If you prefer a recurring subscription or if you have any questions about sponsoring ImageMagick, please contact us.

      Discourse Server •
      Studio

    © 1999-2012 ImageMagick Studio LLC
     Contact the Wizards