text:
html {
  background-image: url('../images/ballotizebackground.png');
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment:fixed;
  background-size: cover;
}
.browsehappy {
  margin: 0.2em 0;
  background: #ccc;
  color: #000;
  padding: 0.2em 0;
}
body {
  background-color: transparent;
  padding: 0;
}
.addround {
background: #40b1e2;
border:none;
box-shadow:inset 0px -100px 100px #329dcc;
color:#fff;
}
/* Everything but the jumbotron gets side spacing for mobile first views */
.header,
.marketing,
.footer {
  padding-left: 15px;
  padding-right: 15px;
}

/* Custom page header */
.header {
  border-bottom: 1px solid #e5e5e5;
  margin-bottom: 10px;
}
/* Make the masthead heading the same height as the navigation */
.header h3 {
  margin-top: 0;
  margin-bottom: 0;
  line-height: 40px;
  padding-bottom: 19px;
}
.panel > .panel-heading {
    background-image: none;
    background-color: white;
    color: white;
}
/* Custom page footer */
.footer {
  padding-top: 19px;
  color: #777;
  border-top: 1px solid #e5e5e5;
}
.container-narrow > hr {
  margin: 30px 0;
}
/* Main marketing message and sign up button */
.jumbotron {
  text-align: center;
  border-bottom: 1px solid #e5e5e5;
}
.jumbotron .btn {
  font-size: 21px;
  padding: 14px 24px;
}

/* Supporting marketing content */
.marketing {
  margin: 40px 0;
}
.marketing p + h4 {
  margin-top: 28px;
}

/* Responsive: Portrait tablets and up */
@media screen and (min-width: 768px) {
  .container {
    max-width: 730px;
  }
  /* Remove the padding we set earlier */
  .header,
  .marketing,
  .footer {
    padding-left: 0;
    padding-right: 0;
  }
  /* Space out the masthead */
  .header {
    margin-bottom: 30px;
  }
  /* Remove the bottom border on the jumbotron for visual effect */
  .jumbotron {
    border-bottom: 0;
  }
}


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

<TITLE>
Uses of Class org.springframework.beans.factory.annotation.InjectionMetadata.InjectedElement (Spring Framework API 2.5)
</TITLE>

<META NAME="date" CONTENT="2007-11-19">

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

      Overview
      Package
      Class
    Use
      Tree
      Deprecated
      Index
      Help

The Spring Framework

 PREV
 NEXT

  FRAMES
 NO FRAMES

  All Classes

Uses of Class
org.springframework.beans.factory.annotation.InjectionMetadata.InjectedElement

Packages that use InjectionMetadata.InjectedElement

org.springframework.beans.factory.annotation
Support package for annotation-driven bean configuration.

Uses of InjectionMetadata.InjectedElement in org.springframework.beans.factory.annotation

Methods in org.springframework.beans.factory.annotation with parameters of type InjectionMetadata.InjectedElement

 void
InjectionMetadata.addInjectedField(InjectionMetadata.InjectedElement element)

 void
InjectionMetadata.addInjectedMethod(InjectionMetadata.InjectedElement element)

      Overview
      Package
      Class
    Use
      Tree
      Deprecated
      Index
      Help

The Spring Framework

 PREV
 NEXT

  FRAMES
 NO FRAMES

  All Classes

Copyright © 2002-2007 The Spring Framework.

redpajama_set_name: RedPajamaGithub


text:
use system::syscall::{sys_alloc, sys_unalloc, sys_realloc, sys_realloc_inplace};

#[allocator]
#[allow(unused_variables)]
#[no_mangle]
pub extern "C" fn __rust_allocate(size: usize, align: usize) -> *mut u8 {
    unsafe { sys_alloc(size).unwrap() as *mut u8 }
}

#[allow(unused_variables)]
#[no_mangle]
pub extern "C" fn __rust_deallocate(ptr: *mut u8, old_size: usize, align: usize) {
    unsafe { sys_unalloc(ptr as usize).unwrap() };
}

#[allow(unused_variables)]
#[no_mangle]
pub extern "C" fn __rust_reallocate(ptr: *mut u8,
                                    old_size: usize,
                                    size: usize,
                                    align: usize)
                                    -> *mut u8 {
    unsafe { sys_realloc(ptr as usize, size).unwrap() as *mut u8 }
}

#[allow(unused_variables)]
#[no_mangle]
pub extern "C" fn __rust_reallocate_inplace(ptr: *mut u8,
                                            old_size: usize,
                                            size: usize,
                                            align: usize)
                                            -> usize {
    unsafe { sys_realloc_inplace(ptr as usize, size).unwrap() }
}

#[allow(unused_variables)]
#[no_mangle]
pub extern "C" fn __rust_usable_size(size: usize, align: usize) -> usize {
    size
}


text:
using System.Windows;

namespace ASB_Updater
{
    public partial class App : Application
    {
    }
}


text:
import  React, {Component} from  'react'
import {connect} from "react-redux";
import {Header,Footer} from '../../components'

@connect(state => state)

class App extends Component {
    constructor(props) {
        super(props);
    }

    render() {
        return (

                        {this.props.children}

        )
    }
}

export default App


text:
'use strict';

var architect = require('architect');
var path = require('path');
var Config = require('./Common/Config');

var CodeExecutionServer = function () {
};

CodeExecutionServer.prototype = {
    start: function () {
        var configPath = path.join(__dirname, "ModulesConfig.js");
        var config = architect.loadConfig(configPath);
        architect.createApp(config, function createArchitectAppDlg(err, app) {
            if (err) {
                console.log(err);
            } else {
                app.services.HttpServer.start(Config.Http.port);
            }
        });
    }
};

module.exports = CodeExecutionServer;


text:
I'm the first content slide

I'm the second content slide

I'm the third content slide

I'm the fourth content slide

    one
    two
    three
    four


text:
package com.asakusafw.runtime.io.text.driver;

/**
 * An abstract super interface of converts field contents and properties each other.
 * @param <T> the property type
 * @since 0.9.1
 */
public interface FieldAdapter<T> {

    /**
     * Clears the given property.
     * @param property the property
     */
    void clear(T property);

    /**
     * Extracts the given field content into the destination property.
     * @param contents the field content
     * @param property the destination property
     * @throws MalformedFieldException if the field content is malformed
     */
    void parse(CharSequence contents, T property);

    /**
     * Extracts the given property value into the destination field.
     * @param property the property value
     * @param output the destination field output
     */
    void emit(T property, FieldOutput output);
}


text:
@interface ComGoogleCommonBasePlatform ()

- (instancetype)init;

+ (id<ComGoogleCommonBasePatternCompiler>)loadPatternCompiler;

+ (void)logPatternCompilerErrorWithJavaUtilServiceConfigurationError:(JavaUtilServiceConfigurationError *)e;

@end

inline JavaUtilLoggingLogger *ComGoogleCommonBasePlatform_get_logger();
static JavaUtilLoggingLogger *ComGoogleCommonBasePlatform_logger;
J2OBJC_STATIC_FIELD_OBJ_FINAL(ComGoogleCommonBasePlatform, logger, JavaUtilLoggingLogger *)

inline id<ComGoogleCommonBasePatternCompiler> ComGoogleCommonBasePlatform_get_patternCompiler();
static id<ComGoogleCommonBasePatternCompiler> ComGoogleCommonBasePlatform_patternCompiler;
J2OBJC_STATIC_FIELD_OBJ_FINAL(ComGoogleCommonBasePlatform, patternCompiler, id<ComGoogleCommonBasePatternCompiler>)

__attribute__((unused)) static void ComGoogleCommonBasePlatform_init(ComGoogleCommonBasePlatform *self);

__attribute__((unused)) static ComGoogleCommonBasePlatform *new_ComGoogleCommonBasePlatform_init() NS_RETURNS_RETAINED;

__attribute__((unused)) static ComGoogleCommonBasePlatform *create_ComGoogleCommonBasePlatform_init();

__attribute__((unused)) static id<ComGoogleCommonBasePatternCompiler> ComGoogleCommonBasePlatform_loadPatternCompiler();

__attribute__((unused)) static void ComGoogleCommonBasePlatform_logPatternCompilerErrorWithJavaUtilServiceConfigurationError_(JavaUtilServiceConfigurationError *e);

__attribute__((unused)) static IOSObjectArray *ComGoogleCommonBasePlatform__Annotations$0();

@interface ComGoogleCommonBasePlatform_JdkPatternCompiler : NSObject < ComGoogleCommonBasePatternCompiler >

- (instancetype)init;

- (ComGoogleCommonBaseCommonPattern *)compileWithNSString:(NSString *)pattern;

@end

J2OBJC_EMPTY_STATIC_INIT(ComGoogleCommonBasePlatform_JdkPatternCompiler)

__attribute__((unused)) static void ComGoogleCommonBasePlatform_JdkPatternCompiler_init(ComGoogleCommonBasePlatform_JdkPatternCompiler *self);

__attribute__((unused)) static ComGoogleCommonBasePlatform_JdkPatternCompiler *new_ComGoogleCommonBasePlatform_JdkPatternCompiler_init() NS_RETURNS_RETAINED;

__attribute__((unused)) static ComGoogleCommonBasePlatform_JdkPatternCompiler *create_ComGoogleCommonBasePlatform_JdkPatternCompiler_init();

J2OBJC_TYPE_LITERAL_HEADER(ComGoogleCommonBasePlatform_JdkPatternCompiler)

J2OBJC_INITIALIZED_DEFN(ComGoogleCommonBasePlatform)

@implementation ComGoogleCommonBasePlatform

J2OBJC_IGNORE_DESIGNATED_BEGIN
- (instancetype)init {
  ComGoogleCommonBasePlatform_init(self);
  return self;
}
J2OBJC_IGNORE_DESIGNATED_END

+ (jlong)systemNanoTime {
  return ComGoogleCommonBasePlatform_systemNanoTime();
}

+ (ComGoogleCommonBaseCharMatcher *)precomputeCharMatcherWithComGoogleCommonBaseCharMatcher:(ComGoogleCommonBaseCharMatcher *)matcher {
  return ComGoogleCommonBasePlatform_precomputeCharMatcherWithComGoogleCommonBaseCharMatcher_(matcher);
}

+ (ComGoogleCommonBaseOptional *)getEnumIfPresentWithIOSClass:(IOSClass *)enumClass
                                                 withNSString:(NSString *)value {
  return ComGoogleCommonBasePlatform_getEnumIfPresentWithIOSClass_withNSString_(enumClass, value);
}

+ (NSString *)formatCompact4DigitsWithDouble:(jdouble)value {
  return ComGoogleCommonBasePlatform_formatCompact4DigitsWithDouble_(value);
}

+ (jboolean)stringIsNullOrEmptyWithNSString:(NSString *)string {
  return ComGoogleCommonBasePlatform_stringIsNullOrEmptyWithNSString_(string);
}

+ (ComGoogleCommonBaseCommonPattern *)compilePatternWithNSString:(NSString *)pattern {
  return ComGoogleCommonBasePlatform_compilePatternWithNSString_(pattern);
}

+ (jboolean)usingJdkPatternCompiler {
  return ComGoogleCommonBasePlatform_usingJdkPatternCompiler();
}

+ (id<ComGoogleCommonBasePatternCompiler>)loadPatternCompiler {
  return ComGoogleCommonBasePlatform_loadPatternCompiler();
}

+ (void)logPatternCompilerErrorWithJavaUtilServiceConfigurationError:(JavaUtilServiceConfigurationError *)e {
  ComGoogleCommonBasePlatform_logPatternCompilerErrorWithJavaUtilServiceConfigurationError_(e);
}

+ (const J2ObjcClassInfo *)__metadata {
  static J2ObjcMethodInfo methods[] = {
    { NULL, NULL, 0x2, -1, -1, -1, -1, -1, -1 },
    { NULL, "J", 0x8, -1, -1, -1, -1, -1, -1 },
    { NULL, "LComGoogleCommonBaseCharMatcher;", 0x8, 0, 1, -1, -1, -1, -1 },
    { NULL, "LComGoogleCommonBaseOptional;", 0x8, 2, 3, -1, 4, -1, -1 },
    { NULL, "LNSString;", 0x8, 5, 6, -1, -1, -1, -1 },
    { NULL, "Z", 0x8, 7, 8, -1, -1, -1, 9 },
    { NULL, "LComGoogleCommonBaseCommonPattern;", 0x8, 10, 8, -1, -1, -1, -1 },
    { NULL, "Z", 0x8, -1, -1, -1, -1, -1, -1 },
    { NULL, "LComGoogleCommonBasePatternCompiler;", 0xa, -1, -1, -1, -1, -1, -1 },
    { NULL, "V", 0xa, 11, 12, -1, -1, -1, -1 },
  };
  #pragma clang diagnostic push
  #pragma clang diagnostic ignored "-Wobjc-multiple-method-names"
  methods[0].selector = @selector(init);
  methods[1].selector = @selector(systemNanoTime);
  methods[2].selector = @selector(precomputeCharMatcherWithComGoogleCommonBaseCharMatcher:);
  methods[3].selector = @selector(getEnumIfPresentWithIOSClass:withNSString:);
  methods[4].selector = @selector(formatCompact4DigitsWithDouble:);
  methods[5].selector = @selector(stringIsNullOrEmptyWithNSString:);
  methods[6].selector = @selector(compilePatternWithNSString:);
  methods[7].selector = @selector(usingJdkPatternCompiler);
  methods[8].selector = @selector(loadPatternCompiler);
  methods[9].selector = @selector(logPatternCompilerErrorWithJavaUtilServiceConfigurationError:);
  #pragma clang diagnostic pop
  static const J2ObjcFieldInfo fields[] = {
    { "logger", "LJavaUtilLoggingLogger;", .constantValue.asLong = 0, 0x1a, -1, 13, -1, -1 },
    { "patternCompiler", "LComGoogleCommonBasePatternCompiler;", .constantValue.asLong = 0, 0x1a, -1, 14, -1, -1 },
  };
  static const void *ptrTable[] = { "precomputeCharMatcher", "LComGoogleCommonBaseCharMatcher;", "getEnumIfPresent", "LIOSClass;LNSString;", "<T:Ljava/lang/Enum<TT;>;>(Ljava/lang/Class<TT;>;Ljava/lang/String;)Lcom/google/common/base/Optional<TT;>;", "formatCompact4Digits", "D", "stringIsNullOrEmpty", "LNSString;", (void *)&ComGoogleCommonBasePlatform__Annotations$0, "compilePattern", "logPatternCompilerError", "LJavaUtilServiceConfigurationError;", &ComGoogleCommonBasePlatform_logger, &ComGoogleCommonBasePlatform_patternCompiler, "LComGoogleCommonBasePlatform_JdkPatternCompiler;" };
  static const J2ObjcClassInfo _ComGoogleCommonBasePlatform = { "Platform", "com.google.common.base", ptrTable, methods, fields, 7, 0x10, 10, 2, -1, 15, -1, -1, -1 };
  return &_ComGoogleCommonBasePlatform;
}

+ (void)initialize {
  if (self == [ComGoogleCommonBasePlatform class]) {
    ComGoogleCommonBasePlatform_logger = JavaUtilLoggingLogger_getLoggerWithNSString_([ComGoogleCommonBasePlatform_class_() getName]);
    ComGoogleCommonBasePlatform_patternCompiler = ComGoogleCommonBasePlatform_loadPatternCompiler();
    J2OBJC_SET_INITIALIZED(ComGoogleCommonBasePlatform)
  }
}

@end

void ComGoogleCommonBasePlatform_init(ComGoogleCommonBasePlatform *self) {
  NSObject_init(self);
}

ComGoogleCommonBasePlatform *new_ComGoogleCommonBasePlatform_init() {
  J2OBJC_NEW_IMPL(ComGoogleCommonBasePlatform, init)
}

ComGoogleCommonBasePlatform *create_ComGoogleCommonBasePlatform_init() {
  J2OBJC_CREATE_IMPL(ComGoogleCommonBasePlatform, init)
}

jlong ComGoogleCommonBasePlatform_systemNanoTime() {
  ComGoogleCommonBasePlatform_initialize();
  return JavaLangSystem_nanoTime();
}

ComGoogleCommonBaseCharMatcher *ComGoogleCommonBasePlatform_precomputeCharMatcherWithComGoogleCommonBaseCharMatcher_(ComGoogleCommonBaseCharMatcher *matcher) {
  ComGoogleCommonBasePlatform_initialize();
  return [((ComGoogleCommonBaseCharMatcher *) nil_chk(matcher)) precomputedInternal];
}

ComGoogleCommonBaseOptional *ComGoogleCommonBasePlatform_getEnumIfPresentWithIOSClass_withNSString_(IOSClass *enumClass, NSString *value) {
  ComGoogleCommonBasePlatform_initialize();
  JavaLangRefWeakReference *ref = [((id<JavaUtilMap>) nil_chk(ComGoogleCommonBaseEnums_getEnumConstantsWithIOSClass_(enumClass))) getWithId:value];
  return ref == nil ? ComGoogleCommonBaseOptional_absent() : ComGoogleCommonBaseOptional_ofWithId_([((IOSClass *) nil_chk(enumClass)) cast:[ref get]]);
}

NSString *ComGoogleCommonBasePlatform_formatCompact4DigitsWithDouble_(jdouble value) {
  ComGoogleCommonBasePlatform_initialize();
  return NSString_java_formatWithJavaUtilLocale_withNSString_withNSObjectArray_(JreLoadStatic(JavaUtilLocale, ROOT), @"%.4g", [IOSObjectArray newArrayWithObjects:(id[]){ JavaLangDouble_valueOfWithDouble_(value) } count:1 type:NSObject_class_()]);
}

jboolean ComGoogleCommonBasePlatform_stringIsNullOrEmptyWithNSString_(NSString *string) {
  ComGoogleCommonBasePlatform_initialize();
  return string == nil || [string java_isEmpty];
}

ComGoogleCommonBaseCommonPattern *ComGoogleCommonBasePlatform_compilePatternWithNSString_(NSString *pattern) {
  ComGoogleCommonBasePlatform_initialize();
  (void) ComGoogleCommonBasePreconditions_checkNotNullWithId_(pattern);
  return [((id<ComGoogleCommonBasePatternCompiler>) nil_chk(ComGoogleCommonBasePlatform_patternCompiler)) compileWithNSString:pattern];
}

jboolean ComGoogleCommonBasePlatform_usingJdkPatternCompiler() {
  ComGoogleCommonBasePlatform_initialize();
  return [ComGoogleCommonBasePlatform_patternCompiler isKindOfClass:[ComGoogleCommonBasePlatform_JdkPatternCompiler class]];
}

id<ComGoogleCommonBasePatternCompiler> ComGoogleCommonBasePlatform_loadPatternCompiler() {
  ComGoogleCommonBasePlatform_initialize();
  JavaUtilServiceLoader *loader = JavaUtilServiceLoader_load__WithIOSClass_(ComGoogleCommonBasePatternCompiler_class_());
  @try {
    for (id<JavaUtilIterator> it = [((JavaUtilServiceLoader *) nil_chk(loader)) iterator]; [((id<JavaUtilIterator>) nil_chk(it)) hasNext]; ) {
      @try {
        return [it next];
      }
      @catch (JavaUtilServiceConfigurationError *e) {
        ComGoogleCommonBasePlatform_logPatternCompilerErrorWithJavaUtilServiceConfigurationError_(e);
      }
    }
  }
  @catch (JavaUtilServiceConfigurationError *e) {
    ComGoogleCommonBasePlatform_logPatternCompilerErrorWithJavaUtilServiceConfigurationError_(e);
  }
  return new_ComGoogleCommonBasePlatform_JdkPatternCompiler_init();
}

void ComGoogleCommonBasePlatform_logPatternCompilerErrorWithJavaUtilServiceConfigurationError_(JavaUtilServiceConfigurationError *e) {
  ComGoogleCommonBasePlatform_initialize();
  [((JavaUtilLoggingLogger *) nil_chk(ComGoogleCommonBasePlatform_logger)) logWithJavaUtilLoggingLevel:JreLoadStatic(JavaUtilLoggingLevel, WARNING) withNSString:@"Error loading regex compiler, falling back to next option" withNSException:e];
}

IOSObjectArray *ComGoogleCommonBasePlatform__Annotations$0() {
  return [IOSObjectArray newArrayWithObjects:(id[]){ [IOSObjectArray newArrayWithObjects:(id[]){ create_JavaxAnnotationNullable() } count:1 type:JavaLangAnnotationAnnotation_class_()] } count:1 type:IOSClass_arrayType(JavaLangAnnotationAnnotation_class_(), 1)];
}

J2OBJC_CLASS_TYPE_LITERAL_SOURCE(ComGoogleCommonBasePlatform)

@implementation ComGoogleCommonBasePlatform_JdkPatternCompiler

J2OBJC_IGNORE_DESIGNATED_BEGIN
- (instancetype)init {
  ComGoogleCommonBasePlatform_JdkPatternCompiler_init(self);
  return self;
}
J2OBJC_IGNORE_DESIGNATED_END

- (ComGoogleCommonBaseCommonPattern *)compileWithNSString:(NSString *)pattern {
  return new_ComGoogleCommonBaseJdkPattern_initWithJavaUtilRegexPattern_(JavaUtilRegexPattern_compileWithNSString_(pattern));
}

+ (const J2ObjcClassInfo *)__metadata {
  static J2ObjcMethodInfo methods[] = {
    { NULL, NULL, 0x2, -1, -1, -1, -1, -1, -1 },
    { NULL, "LComGoogleCommonBaseCommonPattern;", 0x1, 0, 1, -1, -1, -1, -1 },
  };
  #pragma clang diagnostic push
  #pragma clang diagnostic ignored "-Wobjc-multiple-method-names"
  methods[0].selector = @selector(init);
  methods[1].selector = @selector(compileWithNSString:);
  #pragma clang diagnostic pop
  static const void *ptrTable[] = { "compile", "LNSString;", "LComGoogleCommonBasePlatform;" };
  static const J2ObjcClassInfo _ComGoogleCommonBasePlatform_JdkPatternCompiler = { "JdkPatternCompiler", "com.google.common.base", ptrTable, methods, NULL, 7, 0x1a, 2, 0, 2, -1, -1, -1, -1 };
  return &_ComGoogleCommonBasePlatform_JdkPatternCompiler;
}

@end

void ComGoogleCommonBasePlatform_JdkPatternCompiler_init(ComGoogleCommonBasePlatform_JdkPatternCompiler *self) {
  NSObject_init(self);
}

ComGoogleCommonBasePlatform_JdkPatternCompiler *new_ComGoogleCommonBasePlatform_JdkPatternCompiler_init() {
  J2OBJC_NEW_IMPL(ComGoogleCommonBasePlatform_JdkPatternCompiler, init)
}

ComGoogleCommonBasePlatform_JdkPatternCompiler *create_ComGoogleCommonBasePlatform_JdkPatternCompiler_init() {
  J2OBJC_CREATE_IMPL(ComGoogleCommonBasePlatform_JdkPatternCompiler, init)
}

J2OBJC_CLASS_TYPE_LITERAL_SOURCE(ComGoogleCommonBasePlatform_JdkPatternCompiler)


text:
package static

import (
	"bytes"
	"encoding/json"
	"io/ioutil"
	"testing"

	"github.com/GoogleCloudPlatform/esp-v2/src/go/configmanager/flags"
	"github.com/GoogleCloudPlatform/esp-v2/src/go/options"
	"github.com/GoogleCloudPlatform/esp-v2/src/go/util"
	"github.com/GoogleCloudPlatform/esp-v2/tests/env/platform"
	"github.com/golang/protobuf/jsonpb"
	confpb "google.golang.org/genproto/googleapis/api/serviceconfig"

	bootstrappb "github.com/envoyproxy/go-control-plane/envoy/config/bootstrap/v3"
)

var (
	FakeConfigID = "2019-12-16r0"
)

func TestServiceToBootstrapConfig(t *testing.T) {
	testData := []struct {
		desc              string
		opt_mod           func(opt *options.ConfigGeneratorOptions)
		serviceConfigPath string
		envoyConfigPath   string
		want              *bootstrappb.Admin
	}{
		{
			desc: "envoy config with service control, no tracing",
			opt_mod: func(opt *options.ConfigGeneratorOptions) {
				opt.AdminPort = 0
				opt.BackendAddress = "http://127.0.0.1:8082"
				opt.DisableTracing = true
			},
			serviceConfigPath: platform.GetFilePath(platform.ScServiceConfig),
			envoyConfigPath:   platform.GetFilePath(platform.ScEnvoyConfig),
		},
		{
			desc: "envoy config for auth",
			opt_mod: func(opt *options.ConfigGeneratorOptions) {
				opt.AdminPort = 0
				opt.BackendAddress = "http://127.0.0.1:8082"
				opt.DisableTracing = true
				opt.SkipServiceControlFilter = true
			},
			serviceConfigPath: platform.GetFilePath(platform.AuthServiceConfig),
			envoyConfigPath:   platform.GetFilePath(platform.AuthEnvoyConfig),
		},
		{
			desc: "envoy config with dynamic routing",
			opt_mod: func(opt *options.ConfigGeneratorOptions) {
				opt.AdminPort = 0
				opt.BackendAddress = "http://127.0.0.1:8082"
				opt.DisableTracing = true
				opt.SkipServiceControlFilter = true
			},
			serviceConfigPath: platform.GetFilePath(platform.DrServiceConfig),
			envoyConfigPath:   platform.GetFilePath(platform.DrEnvoyConfig),
		},
		{
			desc: "envoy config for route match",
			opt_mod: func(opt *options.ConfigGeneratorOptions) {
				opt.AdminPort = 0
				opt.BackendAddress = "http://127.0.0.1:8082"
				opt.DisableTracing = true
				opt.SkipServiceControlFilter = true
			},
			serviceConfigPath: platform.GetFilePath(platform.RmServiceConfig),
			envoyConfigPath:   platform.GetFilePath(platform.RmEnvoyConfig),
		},
		{
			desc: "grpc dynamic routing",
			opt_mod: func(opt *options.ConfigGeneratorOptions) {
				opt.AdminPort = 0
				opt.BackendAddress = "grpc://127.0.0.1:8082"
				opt.DisableTracing = true
				opt.EnableResponseCompression = true
			},
			serviceConfigPath: platform.GetFilePath(platform.GrpcEchoServiceConfig),
			envoyConfigPath:   platform.GetFilePath(platform.GrpcEchoEnvoyConfig),
		},
		{
			desc: "envoy config for sidecar with x-google-backend",
			opt_mod: func(opt *options.ConfigGeneratorOptions) {
				opt.AdminPort = 0
				opt.BackendAddress = "http://127.0.0.1:8082"
				opt.DisableTracing = true
				opt.SkipServiceControlFilter = true
			},
			serviceConfigPath: platform.GetFilePath(platform.SbServiceConfig),
			envoyConfigPath:   platform.GetFilePath(platform.SbEnvoyConfig),
		},
	}

	for _, tc := range testData {
		t.Run(tc.desc, func(t *testing.T) {
			configBytes, err := ioutil.ReadFile(tc.serviceConfigPath)
			if err != nil {
				t.Fatalf("ReadFile failed, got %v", err)
			}

			unmarshaler := &jsonpb.Unmarshaler{
				AnyResolver:        util.Resolver,
				AllowUnknownFields: false,
			}

			var s confpb.Service
			if err := unmarshaler.Unmarshal(bytes.NewBuffer(configBytes), &s); err != nil {
				t.Fatalf("Unmarshal() returned error %v, want nil", err)
			}

			opts := flags.EnvoyConfigOptionsFromFlags()
			tc.opt_mod(&opts)

			// Function under test
			gotBootstrap, err := ServiceToBootstrapConfig(&s, FakeConfigID, opts)
			if err != nil {
				t.Fatal(err)
			}

			envoyConfig, err := ioutil.ReadFile(tc.envoyConfigPath)
			if err != nil {
				t.Fatalf("ReadFile failed, got %v", err)
			}

			var expectedBootstrap bootstrappb.Bootstrap
			if err := unmarshaler.Unmarshal(bytes.NewBuffer(envoyConfig), &expectedBootstrap); err != nil {
				t.Fatalf("Unmarshal() returned error %v, want nil", err)
			}

			gotString, err := bootstrapToJson(gotBootstrap)
			if err != nil {
				t.Fatal(err)
			}
			wantString, err := bootstrapToJson(&expectedBootstrap)
			if err != nil {
				t.Fatal(err)
			}
			if err := util.JsonEqual(wantString, gotString); err != nil {
				t.Fatalf("got err: %v", err)
			}
		})
	}
}

func bootstrapToJson(protoMsg *bootstrappb.Bootstrap) (string, error) {
	// Marshal both protos back to json-strings to pretty print them
	marshaler := &jsonpb.Marshaler{
		AnyResolver: util.Resolver,
	}
	gotString, err := marshaler.MarshalToString(protoMsg)
	if err != nil {
		return "", err
	}
	var jsonObject map[string]interface{}
	err = json.Unmarshal([]byte(gotString), &jsonObject)
	if err != nil {
		return "", err
	}
	outputString, err := json.Marshal(jsonObject)
	return string(outputString), err
}


text:
import sys
import argparse
from itertools import ifilter

class ReaderException(Exception):
    '''
    Exception class for this script
    '''
    def __init__(self, value):
        self.value = value
    def __str__(self):
        return repr(self.value)

class StatsReader(object):
    '''
    Reader class to read in output from bamutil --stats
    '''
    def __init__(self, handle):
        self.handle = handle
        self.num_lines = 0

    def __iter__(self):
        '''
        Read first three lines
        '''
        header = [ self.handle.next() for i in xrange(3) ]
        return self

    def _validate_header(self, header):
        '''
        Validate that the header is as expected
        '''
        self._validate_first_line(header[0])
        self._validate_second_line(header[1])
        self._validate_header_line(header[2])

    @staticmethod
    def _validate_first_line(line):
        '''
        Validate the first line is as expected
        '''
        if not line.startswith('Number of records read = '):
            raise ReaderException('Invalid first line: {0}'.format(line.rstrip()))

    @staticmethod
    def _validate_second_line(line):
        '''
        Validate the second line is blank
        '''
        if not line.startswith('\n'):
            raise ReaderException('Non-blank second line: {0}'.format(line.rstrip()))

    @staticmethod
    def _validate_header_line(line):
        '''
        Validate the header line is as expected
        '''
        if not line == 'Phred	Count\n':
            raise ReaderException('Invalid header line: {0}'.format(line.rstrip()))

    def next(self):
        '''
        returns the next line of Phred score, count as a tuple
        '''
        try:
            line = self.handle.next()
        except StopIteration as e:
            if self.num_lines != 94:
                raise ReaderException('Invalid number of lines.')
            else:
                raise
        self.num_lines += 1
        try:
            phred, count = line.rstrip().split('\t')
        except ValueError as e:
            raise ReaderException('Invalid number of columns.')
        return int(phred), int(count)

class BaseCountAccumulator(object):
    '''
    Calculate the total number of bases above a minimum base quality
    '''
    def __init__(self, min_base_quality=0):
        self.min_base_quality = min_base_quality

    def __call__(self, iterable):
        return sum(map(lambda x: x[1], ifilter( lambda x: x[0] >= self.min_base_quality, iterable)))

if __name__ == '__main__':
    parser = argparse.ArgumentParser(description="Total up the output of bamUtil's summary output (expected to be run with ONLY the --phred option and not --basic or --qual)")
    parser.add_argument('-b','--min-base-quality', default=0, type=int)
    args = parser.parse_args()

    try:
        reader = StatsReader(sys.stdin)
        accumulator = BaseCountAccumulator(args.min_base_quality)
        sys.stdout.write(str(accumulator(reader)))
        sys.stdout.write('\n')
    except ReaderException as e:
        sys.stderr.write(str(e).strip("'"))
        sys.stderr.write('\n')
        sys.exit(1)


text:
package lib.jebt.parser;

/**
 * Reads next token (text or expression)
 */
public interface JebtTokenizer {
    Token readNext();
}


text:
{% extends "base.html" %}

{% block content %}
  {% for article in articles_page.object_list %}

{{ article.title }}

posted on<time datetime="{{ article.date.isoformat() }}"> {{ article.locale_date }}</time>

{{ article.summary }}

  {% endfor %}
  {% if articles_page.has_other_pages() %}

      {% if articles_page.has_next() %}
        « Older entries
      {% endif %}

      {#
Page {{ articles_page.number }} / {{ articles_paginator.num_pages }}
 #}

      {% if articles_page.has_previous() %}
        Newer entries »
      {% endif %}

  {% endif %}
{% endblock %}


text:
const getDisplaySameSlide = (props, nextProps) => {
  let displaySameSlide = false;

  if (props.children.length && nextProps.children.length) {
    const oldChildren = props.children[props.index];
    const oldKey = oldChildren ? oldChildren.key : 'empty';

    if (oldKey !== null) {
      const newChildren = nextProps.children[nextProps.index];
      const newKey = newChildren ? newChildren.key : 'empty';

      if (oldKey === newKey) {
        displaySameSlide = true;
      }
    }
  }

  return displaySameSlide;
};

export default getDisplaySameSlide;


text:
#import <Foundation/Foundation.h>
#import "S3Request.h"
#import "S3MultipartUpload.h"

/** Contains the parameters used for the completeMultipartUpload operation.
 *
 * \ingroup S3
 */
@interface S3CompleteMultipartUploadRequest:S3Request {
    NSMutableDictionary *parts;
    NSString            *uploadId;
}

@property (nonatomic, retain) NSString *uploadId;

/** Initialize the instance with the bucket, key, and uploadId from an S3MultipartUpload instance. */
-(id)initWithMultipartUpload:(S3MultipartUpload *)multipartUpload;

/** Add a part by part number and the ETag that was returned by uploadPart. */
-(void)addPartWithPartNumber:(int)partNumber withETag:(NSString *)etag;

/** Build the request body for the request */
-(NSData *)requestBody;

@end


text:
using System.Threading.Tasks;
using Acquaintance.Logging;
using Acquaintance.Utility;

namespace Acquaintance.Threading
{
    // Adaptor class from IActionDispatcher to Task.Factory.StartNew
    public class ThreadPoolDispatcher : IActionDispatcher
    {
        private readonly ILogger _log;

        public ThreadPoolDispatcher(ILogger log)
        {
            _log = log;
        }

        public void DispatchAction(IThreadAction action)
        {
            Task.Factory
                .StartNew(() => ErrorHandling.IgnoreExceptions(action.Execute, _log))
                .ConfigureAwait(false);
        }
    }
}


text:
#ifndef LULLABY_MODULES_JNI_REGISTRY_JNI_H_
#define LULLABY_MODULES_JNI_REGISTRY_JNI_H_

#ifdef __ANDROID__

#include <memory>

#include "lullaby/modules/jni/jni_util.h"
#include "lullaby/util/registry.h"

namespace lull {

/// Turns the long from Java Registry.getNativeHandle() into a
/// std::shared_ptr<Registry>.
std::shared_ptr<Registry> GetRegistryFromJni(jlong native_registry_handle);

}  // namespace lull

/// Native classes can use this macro to call simple static methods from
/// their corresponding Java class. The Java class should declare a method
/// like this, which receives the long from Registry.getNativeHandle():
///
///   class FunctionBinder {
///     private static native void nativeCreate(long registry);
///   }
///
/// The native class should declare a static method like this, which receives a
/// Registry pointer:
///
///   class FunctionBinder {
///    public:
///     static FunctionBinder* Create(Registry* registry);
///   };
///
/// Then, the jni.cc file can define something like one of these:
///
///   LULLABY_JNI_CALL_WITH_REGISTRY(FunctionBinder, nativeCreate, Create)
///   LULLABY_JNI_CALL_CLASS_WITH_REGISTRY(Dispatcher, nativeCreateQueued,
///                                        QueuedDispatcher, Create)
///
/// A similar convenience macro is provided in entity_factory_jni.h for Systems.
#define LULLABY_JNI_CALL_CLASS_WITH_REGISTRY(Class_, Method_, NativeClass_, \
                                             NativeName_)                   \
  extern "C" {                                                              \
  LULLABY_JNI_FN(void, Class_, Method_)                                     \
  (JNIEnv * env, jobject obj, jlong native_registry_handle) {               \
    if (auto registry = lull::GetRegistryFromJni(native_registry_handle)) { \
      lull::NativeClass_::NativeName_(registry.get());                      \
    }                                                                       \
  }                                                                         \
  }  // extern "C"

#else  // __ANDROID__

#define LULLABY_JNI_CALL_CLASS_WITH_REGISTRY(Class_, Method_, NativeClass_, \
                                             NativeName_)

#endif  // __ANDROID__

/// Convenience macro if the Java and native class have the same name.
#define LULLABY_JNI_CALL_WITH_REGISTRY(Class_, Method_, NativeMethod_) \
  LULLABY_JNI_CALL_CLASS_WITH_REGISTRY(Class_, Method_, Class_, NativeMethod_)

#endif  // LULLABY_MODULES_JNI_REGISTRY_JNI_H_


text:
<?php

namespace SimpleSmtpServer\Interfaces;

use SimpleSmtpServer\Models\Message;

interface MailStoreInterface
{
	public function store(Message $msg);
}


text:
// ReadLockHeld.cs
//
// Copyright 2012 The Minions Project (http:/github.com/Minions).
// All rights reserved. Usage as permitted by the LICENSE.txt file for this project.

using Fools.cs.Utilities;

namespace System.Threading
{
	public class ReadLockHeld : IDisposable
	{
		[NotNull] private readonly ReaderWriterLockSlim _guard;

		public ReadLockHeld([NotNull] ReaderWriterLockSlim guard)
		{
			_guard = guard;
			guard.EnterReadLock();
		}

		public void Dispose()
		{
			_guard.ExitReadLock();
		}
	}

	public class UpgradableLockHeld : IDisposable
	{
		[NotNull] private readonly ReaderWriterLockSlim _guard;

		public UpgradableLockHeld([NotNull] ReaderWriterLockSlim guard)
		{
			_guard = guard;
			guard.EnterUpgradeableReadLock();
		}

		public void Dispose()
		{
			_guard.ExitUpgradeableReadLock();
		}

		public IDisposable allow_writes()
		{
			return new WriteLockHeld(_guard);
		}
	}

	public class WriteLockHeld : IDisposable
	{
		[NotNull] private readonly ReaderWriterLockSlim _guard;

		public WriteLockHeld([NotNull] ReaderWriterLockSlim guard)
		{
			_guard = guard;
			guard.EnterWriteLock();
		}

		public void Dispose()
		{
			_guard.ExitWriteLock();
		}
	}
}


text:
<?php
namespace Documento\Entity;

use Doctrine\ORM\Mapping as ORM;
use Zend\Form\Annotation as Form;
use LosBase\Entity\AbstractEntity;

/**
 * @ORM\Entity
 * @ORM\Table(name="tipo_documento")
 */
class TipoDocumento extends AbstractEntity
{
	/**
	 * @var int|null
	 *
	 * @ORM\Id
	 * @ORM\Column(type="integer")
	 * @ORM\GeneratedValue(strategy="AUTO")
	 * @Form\Exclude()
	 */

	protected $id;

	/**
	 * @var string|null
	 *
	 * @ORM\Column(type="string", length=30)
	 */

	protected $nome_tipo;

	/**
	 * @var string|null
	 *
	 * @ORM\Column(type="string", length=200)
	 */

	protected $descricao_tipo;

	/**
	 * @var string|null
	 *
	 * @ORM\Column(type="string", length=500)
	 */

	protected $cabecalho;

	/**
	 * @var string|null
	 *
	 * @ORM\Column(type="string", length=500)
	 */

	protected $rodape;

	/**
	 * @var int|null
	 *
	 * @ORM\Column(type="integer")
	 */

	protected $tipo_dest;

	public function __toString()
	{
		return $this->nome_tipo;
	}

}


text:
package backupcontroller

import (
	"testing"
)

// TestGetPoolResource checks if volume replica resource created
// is successfully got.
// TODO: Add test case
func TestGetVolumeReplicaResource(t *testing.T) {
}


text:
#include <stdio.h>

#include <tests/tap/basic.h>

/*
 * The test function to call during cleanup.
 */
static void
test(int success, int primary)
{
    printf("Called cleanup with %d %d\n", success, primary);
}

int
main(void)
{
    test_cleanup_register(test);
    plan(1);
    ok(1, "some test");
    return 0;
}


text:
package org.assertj.core.api;

import static java.lang.Boolean.TRUE;
import static org.assertj.core.api.Assertions.assertThat;

import org.junit.jupiter.api.Test;

/**
 * Tests for <code>{@link Assertions#assertThat(Boolean)}</code>.
 *
 * @author Alex Ruiz
 */
class Assertions_assertThat_with_Boolean_Test {

  @Test
  void should_create_Assert() {
    AbstractBooleanAssert<?> assertions = Assertions.assertThat(TRUE);
    assertThat(assertions).isNotNull();
  }

  @Test
  void should_pass_actual() {
    AbstractBooleanAssert<?> assertions = Assertions.assertThat(TRUE);
    assertThat(assertions.actual).isSameAs(TRUE);
  }
}


text:
package br.ufsc.myfood.application;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;

import com.fasterxml.jackson.annotation.JsonProperty;

import io.dropwizard.Configuration;
import io.dropwizard.db.DataSourceFactory;

public class MyFoodConfiguration extends Configuration {

	@Valid
	@NotNull
	@JsonProperty("database")
	private DataSourceFactory database = new DataSourceFactory();

	public DataSourceFactory getDataSourceFactory() {
		return database;
	}
}


text:
package com.daemon.pas.presenter;

/**
 * Activity给Fragment提供的接口
 * Created by Daemon on 2015/11/26.
 */
public interface MainAFInterface {

    /**
     * 给Fragment调用Activity的Show Hiden  Loading
     */
    void showLoading();
    void hiheLoading();

}


text:
<?php

function Dwoo_Plugin_string_format_compile(Dwoo_Compiler $compiler, $value, $format)
{
    return 'sprintf('.$format.','.$value.')';
}


text:
using Microsoft.SolverFoundation.Services;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Bodegas
{
    class Program
    {
        static void Main(string[] args)
        {
            try
            {
                /*CREACIÓN DEL PROBLEMA*/
                Console.WriteLine("CREACIÓN DEL PROBLEMA");

                //Crea una instancia de SolverContext bajo el patron de diseño Singleton
                SolverContext contexto = SolverContext.GetContext();

                //Esta variable almacena todo el modelo mátematico del problema
                Model model = contexto.CreateModel();

                /*VARIABLES DEL PROBLEMA*/
                Console.WriteLine("VARIABLES DEL PROBLEMA");

                //Se define el dominio de las variables del problema y su nombre
                Decision x1a = new Decision(Domain.IntegerNonnegative, "x1a");
                Decision x1b = new Decision(Domain.IntegerNonnegative, "x1b");
                Decision x1c = new Decision(Domain.IntegerNonnegative, "x1c");
                Decision x2a = new Decision(Domain.IntegerNonnegative, "x2a");
                Decision x2b = new Decision(Domain.IntegerNonnegative, "x2b");
                Decision x2c = new Decision(Domain.IntegerNonnegative, "x2c");
                Decision x3a = new Decision(Domain.IntegerNonnegative, "x3a");
                Decision x3b = new Decision(Domain.IntegerNonnegative, "x3b");
                Decision x3c = new Decision(Domain.IntegerNonnegative, "x3c");

                //Las variables creadas son adicionadas al modelo del problema
                model.AddDecisions(new Decision[] { x1a, x1b, x1c, x2a, x2b, x2c, x3a, x3b, x3c });

                /*RESTRICCIONES DEL PROBLEMA*/
                Console.WriteLine("RESTRICCIONES DEL PROBLEMA");

                //Restricciones de capacidad en toneladas de las bodegas
                //X1A + X1B + X1C ≤ 2000
                model.AddConstraint("rCapacidadToneladasX1", x1a + x1b + x1c <= 100);
                //X2A + X2B + X2C ≤ 1500
                model.AddConstraint("rCapacidadToneladasX2", x2a + x2b + x2c <= 110);
                //X3A + X3B + X3C ≤ 3000
                model.AddConstraint("rCapacidadToneladasX3", x3a + x3b + x3c <= 120);

                //Restricciones de capacidad en volumen de las bodegas
                //60X1A + 50X1B + 25X1C ≤ 100000
                model.AddConstraint("rCapacidadVolumenX1", 60 * x1a + 50 * x1b + 25 * x1c <= 1600);
                //60X2A + 50X2B + 25X2C ≤ 300000
                model.AddConstraint("rCapacidadVolumenX2", 60 * x2a + 50 * x2b + 25 * x2c <= 1700);
                //60X3A + 50X3B + 25X3C ≤ 135000
                model.AddConstraint("rCapacidadVolumenX3", 60 * x3a + 50 * x3b + 25 * x3c <= 5000);

                //Restricciones de oferta en toneladas de cada tipo de carga
                //X1A + X2A + X3A ≤ 6000
                model.AddConstraint("rToneladasTipoCarga1", x1a + x2a + x3a <= 50);
                //X1B + X2B + X3B ≤ 4000
                model.AddConstraint("rToneladasTipoCarga2", x1b + x2b + x3b <= 120);
                //X1C + X2C + X3C ≤ 2000
                model.AddConstraint("rToneladasTipoCarga3", x1c + x2c + x3c <= 100);

                //Restricciones de porcentaje igual
                //3X1A + 3X1B + 3X1C - 4X2A - 4X2B - 4X2C = 0
                model.AddConstraint("Porcentaje1", 11 * (x1a + x1b + x1c) - 10 * (x2a + x2b + x2c) == 0);
                //3X1A + 3X1B + 3X1C - 2X3A - 2X3B - 2X3C = 0
                model.AddConstraint("Porcentaje2", 6 * (x1a + x1b + x1c) - 5 * (x3a + x3b + x3c) == 0);

                /*OPTIMIZACIÓN DEL PROBLEMA*/

                model.AddGoal("Maximo", GoalKind.Maximize, 6 * (x1a + x1b + x1c) + 8 * (x2a + x2b + x2c) + 5 * (x3a + x3b + x3c));

                /*SOLUCIÓN*/
                Console.WriteLine("SOLUCIÓN");

                var solucion = contexto.Solve();

                /*PRESENTACIÓN DE VALORES*/
                Console.WriteLine("PRESENTACIÓN DE VALORES");

                Console.WriteLine("La solución hallada tiene una consideración : " + solucion.Quality.ToString());
                foreach(var i in solucion.Goals)
                    Console.WriteLine("MÁXIMO= " + i.ToDouble());

                Console.WriteLine("VARIABLES");
                foreach (var i in model.Decisions)
                    Console.WriteLine(i.Name + "=" + i.ToDouble());

                Console.WriteLine("RESTRICCIONES");
                foreach (var i in model.Constraints)
                    Console.WriteLine(i.Name + ":\t\t" + i.Expression);

                Console.ReadLine();

            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
                Console.WriteLine(ex.StackTrace);
                Console.ReadLine();
            }
        }
    }
}


text:
layout: inner
title: "Why would you want to work at JetThoughts?"
description: "JetThoughts is a successful consistently growing company. That's why we are constantly looking for talented and industrious developers with great problem-solving skills and readiness to learn new approaches and technologies."
menu_title: Career
group: "navigation"
menu_position: 3
slug: career
---

  {% include sections/career_slider.html %}

We're Hiring

tools

Senior Backend Engineer

Lorem ipsum dolor sit amet, consectetur adipisicing elit. Assumenda atque culpa

                                             eius eligendi enim error, esse expedita

Position Description

Lorem ipsum dolor sit amet, consectetur adipisicing elit. Cum ducimus eum, hic in
                                         laborum libero nisi, odit, praesentium quasi sed sunt voluptatibus. Adipisci blanditiis explicabo
                                         numquam odio quibusdam saepe vero?

Lorem ipsum dolor sit amet, consectetur adipisicing elit. A adipisci aliquid
                                         blanditiis culpa debitis eos expedita fugit ipsa laboriosam libero minima optio perferendis quidem
                                         quo,
                                         similique soluta ullam veritatis vitae.Lorem ipsum dolor sit amet, consectetur adipisicing elit.
                                         Aliquid
                                         debitis doloribus ea expedita fuga illo incidunt, magnam modi molestiae neque nesciunt provident,
                                         quidem
                                         quis quisquam reiciendis repellat, sunt. Aspernatur, tempore?

Position Details

                      Hire date
                      immidiately

                      Skills
                      HTML/CSS WORDPRESS

                      Expirience
                      3-5 Years

Projects similar to what you'll be working on:

                <form method="post" name="apply_form" action="?">

Apply

Name:

<input class="form_input" type="text" name="name" id="name" />

E-mail:

                        <input class="form_input error" type="email" name="email" id="email" />
                        Check Email

                      <textarea class="textarea" name="message" id="message" cols="30" rows="10">
                        Lorem ipsum dolor sit amet, consectetur adipisicing elit. Adipisci at dolor dolores dolorum eius
                        error explicabo iure laboriosam praesentium, quaerat quasi qui tenetur totam vel voluptatem.
                        Facilis
                        impedit quos similique.
                      </textarea>

                      <button class="button button_ordinary left large-2 medium-3 small-12" type="submit">Send</button>
                      <button class="button button_primary right large-2 medium-3 small-12">
                         + Attach a CV
                      </button>

                </form>

Junior Backend Engineer

Lorem ipsum dolor sit amet, consectetur adipisicing elit. Assumenda atque culpa

                                             eius eligendi enim error, esse expedita

Position Description

Lorem ipsum dolor sit amet, consectetur adipisicing elit. Cum ducimus eum, hic in
                                         laborum libero nisi, odit, praesentium quasi sed sunt voluptatibus. Adipisci blanditiis explicabo
                                         numquam odio quibusdam saepe vero?

Lorem ipsum dolor sit amet, consectetur adipisicing elit. A adipisci aliquid
                                         blanditiis culpa debitis eos expedita fugit ipsa laboriosam libero minima optio perferendis quidem
                                         quo,
                                         similique soluta ullam veritatis vitae.Lorem ipsum dolor sit amet, consectetur adipisicing elit.
                                         Aliquid
                                         debitis doloribus ea expedita fuga illo incidunt, magnam modi molestiae neque nesciunt provident,
                                         quidem
                                         quis quisquam reiciendis repellat, sunt. Aspernatur, tempore?

Position Details

                      Hire date
                      immidiately

                      Skills
                      HTML/CSS WORDPRESS

                      Expirience
                      3-5 Years

Projects similar to what you'll be working on:

                <form method="post" name="apply_form" action="?">

Apply

Name:

<input class="form_input" type="text" name="name" id="name" />

E-mail:

                        <input class="form_input error" type="email" name="email" id="email" />
                        Check Email

                      <textarea class="textarea" name="message" id="message" cols="30" rows="10">
                        Lorem ipsum dolor sit amet, consectetur adipisicing elit. Adipisci at dolor dolores dolorum eius
                        error explicabo iure laboriosam praesentium, quaerat quasi qui tenetur totam vel voluptatem.
                        Facilis
                        impedit quos similique.
                      </textarea>

                      <button class="button button_ordinary left large-2 medium-3 small-12" type="submit">Send</button>
                      <button class="button button_primary right large-2 medium-3 small-12">
                         + Attach a CV
                      </button>

                </form>

Voiceover Engineer

Lorem ipsum dolor sit amet, consectetur adipisicing elit. Assumenda atque culpa
                                             eius eligendi enim error, esse expedita
                                             eius eligendi enim error, esse expedita

Position Description

Lorem ipsum dolor sit amet, consectetur adipisicing elit. Cum ducimus eum, hic in
                                         laborum libero nisi, odit, praesentium quasi sed sunt voluptatibus. Adipisci blanditiis explicabo
                                         numquam odio quibusdam saepe vero?

Lorem ipsum dolor sit amet, consectetur adipisicing elit. A adipisci aliquid
                                         blanditiis culpa debitis eos expedita fugit ipsa laboriosam libero minima optio perferendis quidem
                                         quo,
                                         similique soluta ullam veritatis vitae.Lorem ipsum dolor sit amet, consectetur adipisicing elit.
                                         Aliquid
                                         debitis doloribus ea expedita fuga illo incidunt, magnam modi molestiae neque nesciunt provident,
                                         quidem
                                         quis quisquam reiciendis repellat, sunt. Aspernatur, tempore?

Position Details

                      Hire date
                      immidiately

                      Skills
                      HTML/CSS WORDPRESS

                      Expirience
                      3-5 Years

Projects similar to what you'll be working on:

                <form method="post" name="apply_form" action="?">

Apply

Name:

<input class="form_input" type="text" name="name" id="name" />

E-mail:

                        <input class="form_input error" type="email" name="email" id="email" />
                        Check Email

                      <textarea class="textarea" name="message" id="message" cols="30" rows="10">
                        Lorem ipsum dolor sit amet, consectetur adipisicing elit. Adipisci at dolor dolores dolorum eius
                        error explicabo iure laboriosam praesentium, quaerat quasi qui tenetur totam vel voluptatem.
                        Facilis
                        impedit quos similique.
                      </textarea>

                      <button class="button button_ordinary left large-2 medium-3 small-12" type="submit">Send</button>
                      <button class="button button_primary right large-2 medium-3 small-12">
                         + Attach a CV
                      </button>

                </form>


text:
package fromjava.innerclass.server;

import java.rmi.Remote;
import java.rmi.RemoteException;

import jakarta.jws.WebService;

/**
 * @author JAX-RPC Development Team
 */
@WebService(targetNamespace="portypeNamespace")
public interface EchoIF extends Remote {
    public Bar echoBar(Bar bar) throws RemoteException;
    public String echoString(String str) throws RemoteException;
}


text:
Ti.include("tacodatabase.js");
var tacoWin = Titanium.UI.createWindow({
    backgroundColor:'#fff',
    backgroundImage:'images/paper.png',
    });

var back_button = Titanium.UI.createButton({
	top: 10,
	right: '75%',
	width: 25,
	height: 20,
	backgroundImage:'/images/back.png'
});

back_button.addEventListener('click', function()
	{
		tacoWin.close()
	});

var b4 = Titanium.UI.createButton({
	title:'Edit Locations',
	width:200,
	height:40,
	top:350,
	left: 80
});
b4.addEventListener('click', function()
{
	initialize_database("test");
	var subwin = Ti.UI.createWindow({
		backgroundImage:'images/paper.png'
	});

		subwin.orientationModes = [
		Titanium.UI.PORTRAIT,
		Titanium.UI.UPSIDE_PORTRAIT,
		Titanium.UI.LANDSCAPE_LEFT,
		Titanium.UI.LANDSCAPE_RIGHT,
		Titanium.UI.FACE_UP,
		Titanium.UI.FACE_DOWN
	];

	var close = Titanium.UI.createButton({
		title:'Close',
		width:200,
	    height:40,
	    top:350,
	    left: 80
	});
	var tableview = Titanium.UI.createTableView({
	top:110,
	left:20,
	right:20,
	height:230,
	width:220,
	borderWidth:3,
	borderRadius:10,
	borderColor:'#214792'
});
		subwin.add(tableview);
		subwin.add(close);
	close.addEventListener('click', function()
	{
		if (Titanium.Platform.osname == 'android')
		{
			// reset the orientation modes on the parent to ensure the orientation gets reset on the previous window
			win.orientationModes = win.orientationModes;
		}
		subwin.close();
	});
	subwin.open();

//add table view to the window
Titanium.UI.currentWindow.add(tableview);

var win = Ti.UI.currentWindow;
var scrollview = Ti.UI.createScrollView({
    contentWidth:'auto',
	contentHeight:'auto',
	top:0,
	showVerticalScrollIndicator:true,
	showHorizontalScrollIndicator:false
});
var v1 = Ti.UI.createView({
	top:10,
	left:10,
	width:300,
	height:30
});

});
var win = Titanium.UI.currentWindow;

var l = Titanium.UI.createLabel({
	text:'Shake to find lunch location',
	top: 10,
	color:'#999',
	height: 835,
	width:'auto',
	left: 80
});

//scrollview.add(v1);
//tacoWin.add(scrollview);

tacoWin.add(l);
tacoWin.add(back_button);
tacoWin.add(b4);


text:
<?php

/**
 * Tabela que associa produtos a suas categorias.
 *
 * @category   SimpleShoppingCart
 * @package    Order_Model
 * @subpackage Order_Model_DbTable
 * @author     Saulo Soares de Toledo <saulotoledo@gmail.com>
 * @copyright  Copyright (c) 2014, Saulo S. Toledo
 * @license    BSD 3-Clause license
 */
class Order_Model_DbTable_ProductCategoriesAssoc extends STLib_Model_DbTable_PrefixedDbTable
{
    /**
     * O nome da tabela (padrão do Zend Framework).
     *
     * @var string
     */
    protected $_name = 'product_categories_assoc';

    /**
     * O mapa que associa esta tabela às outras
     * (padrão do Zend Framework).
     *
     * @var array
     */
    protected $_referenceMap = array(
        'Product' => array(
            'columns'       => array('product_id'),
            'refTableClass' => 'Order_Model_DbTable_Products',
            'refColumns'    => array('id'),
            'onDelete'      => self::RESTRICT,
            'onUpdate'      => self::RESTRICT
        ),
        'Category' => array(
            'columns'       => 'category_id',
            'refTableClass' => 'Order_Model_DbTable_ProductCategories',
            'refColumns'    => 'id',
            'onDelete'      => self::RESTRICT,
            'onUpdate'      => self::RESTRICT
        )
    );

    /**
     * O campo primário da tabela (padrão do Zend
     * Framework).
     *
     * @var string
     */
    protected $_primary = 'id';
}


text:
%% Run yesbot here

:- initialization(run).

:- use_module(core).
:- use_module(config).
:- use_module(utilities).
:- use_module(dispatch).
:- use_module(operator).
:- use_module(library(lambda)).
:- use_module(library(func)).
:- use_module(library(mavis)).

% TBD: Currently extensions that are independent of message lines relayed by the
% server are possible, but must be done by building them as regular extensions
% that spawn detached threads independent of server messages. It is up to the user
% how to further handle the life cycle of the extension. For example, one can
% remove it from the extension list after execution and keep it persistently
% running in the background or even run it as a one-shot extension. Nonetheless
% this is a bit of a hack and could benefit from a convenient interface or some
% more intuitive abstractions. Some extra documentation would also help.

%% run is det.

run :-
  desired_extensions(Es),
  catch(check_valid_extensions(Es), _Error, safety),
  thread_create(connect, Connect, [alias(ct)]),
  thread_signal(Connect, attach_console).

safety :-
  writeln('WARNING: The set of extensions you have provided \c
    has been determined to be invalid. Your extension list \c
    has been emptied and will be running nothing if you do \c
    not take action. Please update this setting to a valid \c
    one.'),
  retractall(info:extensions(_,_)),
  retractall(info:sync_extensions(_,_)),
  set_setting(config:extensions, []),
  save_settings.


text:
package de.javakaffee.web.msm.integration;

import java.io.IOException;
import java.io.PrintWriter;
import java.util.Arrays;
import java.util.Enumeration;

import javax.servlet.ServletConfig;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import org.apache.catalina.servlets.DefaultServlet;
import org.apache.juli.logging.Log;
import org.apache.juli.logging.LogFactory;

/**
 * The servlet used for integration testing.
 *
 * @author Martin Grotzke
 * @version $Id$
 */
public class TestServlet extends HttpServlet {

    /**
     * The key of the id in the response body.
     */
    public static final String ID = "id";
    public static final String PATH_WAIT = "/sleep";
    public static final String PARAM_WAIT = "sleep";
    public static final String PARAM_MILLIS = "millies";
    public static final String PARAM_REMOVE = "remove";
    public static final String PATH_GET_REQUESTED_SESSION_INFO = "/requestedSessionInfo";
    public static final String KEY_REQUESTED_SESSION_ID = "requestedSessionId";
    public static final String KEY_IS_REQUESTED_SESSION_ID_VALID = "isRequestedSessionIdValid";
    public static final String PATH_NO_SESSION_ACCESS = "/noSessionAccess";
    public static final String PATH_INVALIDATE = "/invalidate";

    private static final long serialVersionUID = 7954803132860358448L;

    private static final Log LOG = LogFactory.getLog( TestServlet.class );
    private DefaultServlet defaultServlet;

    @Override
    public void init(final ServletConfig config) throws ServletException {
        super.init(config);
        defaultServlet = new DefaultServlet();
        defaultServlet.init(config);
    }

    /* (non-Javadoc)
     * @see javax.servlet.http.HttpServlet#doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
     */
    @Override
    protected void doGet( final HttpServletRequest request, final HttpServletResponse response )
            throws ServletException, IOException {

        final String pathInfo = request.getPathInfo();
        LOG.info( " + starting "+ pathInfo +"..." );

        if ("/pixel.gif".equals(pathInfo)) {
            defaultServlet.service(request, response);
            return;
        }
        else if ( PATH_GET_REQUESTED_SESSION_INFO.equals( pathInfo ) ) {
            LOG.info( "getRequestedSessionId: " + request.getRequestedSessionId() );
            LOG.info( "isRequestedSessionIdValid: " + request.isRequestedSessionIdValid() );
            final PrintWriter out = response.getWriter();
            out.println( KEY_REQUESTED_SESSION_ID + "=" + request.getRequestedSessionId() );
            out.println( KEY_IS_REQUESTED_SESSION_ID_VALID + "=" + request.isRequestedSessionIdValid() );
        }
        else if ( PATH_NO_SESSION_ACCESS.equals( pathInfo ) ) {
            LOG.info( "skipping session access" );
            response.getWriter().println( "Skipped session access" );
        }
        else if ( PATH_INVALIDATE.equals( pathInfo ) ) {
            final HttpSession session = request.getSession(false);
            LOG.info( "Invalidating session " + session.getId() );
            session.invalidate();
            response.getWriter().println( "Invalidated session " + session.getId() );
        }
        else {

            final HttpSession session = request.getSession();

            waitIfRequested( request );

            final String removeKey = request.getParameter(PARAM_REMOVE);
            if (removeKey != null && !"".equals(removeKey)) {
                final String[] keys = removeKey.split(",");
                LOG.info("Removing " + (keys.length > 1 ? "keys " : "key ") + Arrays.asList(keys));
                for (final String key : keys) {
                    session.removeAttribute(key);
                }
            }

            final PrintWriter out = response.getWriter();
            out.println( ID + "=" + session.getId() );

            // final HttpSession session = request.getSession( false );
            final Enumeration<?> attributeNames = session.getAttributeNames();
            while ( attributeNames.hasMoreElements() ) {
                final String name = attributeNames.nextElement().toString();
                final Object value = session.getAttribute( name );
                out.println( name + "=" + value );
            }
        }

        LOG.info( " - finished." );

    }

    /**
     * {@inheritDoc}
     */
    @Override
    protected void doPost( final HttpServletRequest request, final HttpServletResponse response ) throws ServletException, IOException {

        LOG.info( "invoked" );

        final HttpSession session = request.getSession();

        waitIfRequested( request );

        final PrintWriter out = response.getWriter();

        out.println( "OK: " + session.getId() );

        @SuppressWarnings( "unchecked" )
        final Enumeration<String> names = request.getParameterNames();
        while ( names.hasMoreElements() ) {
            final String name = names.nextElement();
            final String value = request.getParameter( name );
            session.setAttribute( name, value );
        }

    }

    private void waitIfRequested( final HttpServletRequest request ) throws ServletException {
        final String pathInfo = request.getPathInfo();
        if ( PATH_WAIT.equals( pathInfo ) || request.getParameter( PARAM_WAIT ) != null ) {
            try {
                Thread.sleep( Long.parseLong( request.getParameter( PARAM_MILLIS ) ) );
            } catch ( final Exception e ) {
                throw new ServletException( "Could not sleep.", e );
            }
        }
    }

}


text:
ACCEPTED

#### According to
Index Fungorum

#### Published in
null

#### Original name
Macrophoma helicina Magnaghi

### Remarks
null


text:
<?php

namespace AppBundle\Entity\Repositories;

use Doctrine\ORM\EntityRepository;

class TestRepository extends EntityRepository
{
    /**
     * get test for project
     *
     * @param $requisiteHistorical
     * @return array
     */
    public function getTestForRequisiteHistorical($requisiteHistorical)
    {
        $query = $this->createQueryBuilder('p')
            ->where('p.requisiteHistorical = :requisiteHistorical')
            ->setParameter('requisiteHistorical', $requisiteHistorical)
            ->orderBy('p.requisiteHistorical', 'ASC')
            ->getQuery();

        return $query->getResult();
    }
}


text:
<!doctype html>

        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>Vertical Centering | Traditional Method</title>

        <meta name="author" content="Jigar Jain">

        <link href="/css/style.css" rel="stylesheet" />

Vertical Centering using 'transform'

                I am vertically centered


text:
define([
  'expect',
  'jquery',
  'sinon',
  'pat-registry',
  'mockup-patterns-modal'
], function(expect, $, sinon, registry, Modal) {
  'use strict';

  window.mocha.setup('bdd');
  $.fx.off = true;

  /* ==========================
   TEST: Modal
  ========================== */

  describe('Modal', function() {
    beforeEach(function() {
      this.server = sinon.fakeServer.create();
      this.server.autoRespond = true;
      this.server.respondWith(/patterns-modal-load-via-ajax/, function (xhr, id) {
        xhr.respond(200, { 'Content-Type': 'text/html' }, '' +
          '' +
          '
Exampel
' +
          ''
        );
      });

      this.server.respondWith('GET', /modal-form\.html/, function (xhr, id) {
        xhr.respond(200, { 'Content-Type': 'text/html' },
          '' +
          '' +
          '' +
          '
' +
          '
Modal with Form
' +
          '
This modal contains a form.
' +
          '<form method="POST" action="/modal-submit.html">' +
          '  Name:<input type="text" name="name" />' +
          '
 ' +
          '    <input type="submit" class="btn btn-primary" value="Submit" name="save" />' +
          '
' +
          '</form>' +
          '' +
          ''
        );
      });

      this.server.respondWith('POST', /modal-submit\.html/, function(xhr, id) {
        xhr.respond(200, {'content-Type': 'text/html'},
          ' ' +
          '  ' +
          '   ' +
          '
' +
          '
Form submitted
' +
          '
Thanks!
' +
          '   ' +
          ''
        );
      });
    });

    afterEach(function() {
      $('body').empty();
      this.server.restore();
    });

    it('default behaviour', function() {
      var $el = $('' +
        '
' +
        ' Open' +
        '
Target
' +
        '
').appendTo('body');

      registry.scan($el);

      expect($('.plone-modal-wrapper', $el).size()).to.be.equal(0);
      expect($el.hasClass('plone-backdrop-active')).to.be.equal(false);
      expect($('.plone-modal-backdrop', $el).size()).to.be.equal(0);
      expect($('.plone-modal', $el).size()).to.equal(0);

      $('a.pat-plone-modal', $el).click();

      expect($('.plone-modal-backdrop', $el).is(':visible')).to.be.equal(true);
      expect($el.hasClass('plone-backdrop-active')).to.be.equal(true);
      expect($('.plone-modal-wrapper', $el).is(':visible')).to.be.equal(true);
      expect($('.plone-modal', $el).size()).to.equal(1);
      expect($('.plone-modal', $el).hasClass('in')).to.be.equal(true);
      expect($('.plone-modal .plone-modal-header', $el).size()).to.equal(1);
      expect($('.plone-modal .plone-modal-body', $el).size()).to.equal(1);
      expect($('.plone-modal .plone-modal-footer', $el).size()).to.equal(1);

      var keydown = $.Event('keydown');
      keydown.keyCode = 27;
      $(document).trigger(keydown);
      expect($el.hasClass('plone-backdrop-active')).to.be.equal(false);
      expect($('.plone-modal', $el).size()).to.equal(0);

      $el.remove();
    });

    it('customize modal on show event', function() {
      var $el = $('' +
        '
' +
        ' Open' +
        '
Target
' +
        '
').appendTo('body');

      $('a', $el)
        .patPloneModal()
        .on('show.plone-modal.patterns', function(e) {
          var modal = $(this).data('pattern-plone-modal');
          $('.plone-modal-header', modal.$modal).prepend($('
New Title
'));
        })
        .click();
      expect($('.plone-modal .plone-modal-header h3', $el).text()).to.equal('New Title');

      $el.remove();
    });

    it('load modal content via ajax', function(done) {
      $('')
        .patPloneModal()
        .on('show.plone-modal.patterns', function(e) {
          expect(true).to.be.equal(true);
          done();
        })
        .click();
    });

    it('redirects to base urls', function(done) {
      $('')
        .patPloneModal()
        .on('show.plone-modal.patterns', function(e) {
          var modal = $(this).data('pattern-plone-modal');
          expect(modal.defaults.actionOptions.redirectToUrl(
            'ignore',
            '<base href="testurl1"></base>'
          )).to.equal('testurl1');
          expect(modal.defaults.actionOptions.redirectToUrl(
            'ignore',
            '<base href="testurl2" />'
          )).to.equal('testurl2');
          expect(modal.defaults.actionOptions.redirectToUrl(
            'ignore',
            ''
          )).to.equal('testurl3');
          expect(modal.defaults.actionOptions.redirectToUrl(
            'ignore',
            ''
          )).to.equal('testurl4');
          done();
        })
        .click();
    });

    it('handles forms and form submits', function(done) {
      var server = this.server;
      $('Foo')
        .appendTo('body')
        .patPloneModal()
        .on('show.plone-modal.patterns', function(e) {
          var $input = $('.pattern-modal-buttons').find('input');
          expect($input.size()).to.equal(1);
          $input.click();
          server.respond(); // XXX could not get autorespond to work
        })
        .on('formActionSuccess.plone-modal.patterns', function() {
          expect($('.plone-modal').hasClass('in')).to.be.equal(true);
          var title = $('.plone-modal-header').find('h2').text();
          expect(title).to.equal('Form submitted');
          done();
        })
      .click();
      server.respond(); // XXX could not get autorespond to work
    });

    it('handles form submits with enter key', function(done) {
      var server = this.server;
      $('Foo')
        .appendTo('body')
        .patPloneModal()
        .on('show.plone-modal.patterns', function(e) {
          var event = $.Event ('keydown');
          event.which = event.keyCode = 13;
          $('.plone-modal form').trigger (event);
          server.respond();
        })
        .on('formActionSuccess.plone-modal.patterns', function() {
          var title = $('.plone-modal-header').find('h2').text();
          expect(title).to.equal('Form submitted');
          done();
        })
        .click();
      server.respond();
    });

    describe('modal positioning (findPosition) ', function() {
      //
      // -- CHANGE POSITION ONLY ----------------------------------------------
      //
      it('position: center middle, margin: 0, modal: 340x280, wrapper: 400x300', function(done) {
        $('').patPloneModal().on('show.plone-modal.patterns', function(e) {
          var modal = $(this).data('pattern-plone-modal');
          var pos = modal.findPosition('center', 'middle', 0, 340, 280, 400, 300);
          expect(pos).not.to.have.property('bottom');
          expect(pos).to.have.property('top');
          // half wrapper height - half modal height - margin
          // 300/2 - 280/2 - 0 = 150 - 140 = 10
          expect(pos.top).to.equal('10px');

          expect(pos).not.to.have.property('right');
          expect(pos).to.have.property('left');
          // half wrapper width - half modal width - margin
          // 400/2 - 340/2 - 0 = 200 - 170 = 30
          expect(pos.left).to.equal('30px');
          done();
        }).click();
      });
      it('position: left middle, margin: 0, modal: 340x280, wrapper: 400x300', function(done) {
        $('').patPloneModal().on('show.plone-modal.patterns', function(e) {
          var modal = $(this).data('pattern-plone-modal');
          var pos = modal.findPosition('left', 'middle', 0, 340, 280, 400, 300);
          expect(pos).not.to.have.property('bottom');
          expect(pos).to.have.property('top');
          // half wrapper height - half modal height - margin
          // 300/2 - 280/2 - 0 = 150 - 140 = 10
          expect(pos.top).to.equal('10px');

          expect(pos).not.to.have.property('right');
          expect(pos).to.have.property('left');
          expect(pos.left).to.equal('0px');
          done();
        }).click();
      });
      it('position: right middle, margin: 0, modal: 340x280, wrapper: 400x300', function(done) {
        $('').patPloneModal().on('show.plone-modal.patterns', function(e) {
          var modal = $(this).data('pattern-plone-modal');
          var pos = modal.findPosition('right', 'middle', 0, 340, 280, 400, 300);
          expect(pos).not.to.have.property('bottom');
          expect(pos).to.have.property('top');
          // half wrapper height - half modal height - margin
          // 300/2 - 280/2 - 0 = 150 - 140 = 10
          expect(pos.top).to.equal('10px');

          expect(pos).to.have.property('right');
          expect(pos).to.have.property('left');
          expect(pos.right).to.equal('0px');
          expect(pos.left).to.equal('auto');
          done();
        }).click();
      });
      it('position: center top, margin: 0, modal: 340x280, wrapper: 400x300', function(done) {
        $('').patPloneModal().on('show.plone-modal.patterns', function(e) {
          var modal = $(this).data('pattern-plone-modal');
          var pos = modal.findPosition('center', 'top', 0, 340, 280, 400, 300);
          expect(pos).not.to.have.property('bottom');
          expect(pos).to.have.property('top');
          expect(pos.top).to.equal('0px');

          expect(pos).not.to.have.property('right');
          expect(pos).to.have.property('left');
          // half wrapper width - half modal width - margin
          // 400/2 - 340/2 - 0 = 200 - 170 = 30
          expect(pos.left).to.equal('30px');
          done();
        }).click();
      });
      it('position: center bottom, margin: 0, modal: 340x280, wrapper: 400x300', function(done) {
        $('').patPloneModal().on('show.plone-modal.patterns', function(e) {
          var modal = $(this).data('pattern-plone-modal');
          var pos = modal.findPosition('center', 'bottom', 0, 340, 280, 400, 300);
          expect(pos).to.have.property('bottom');
          expect(pos).to.have.property('top');
          expect(pos.bottom).to.equal('0px');
          expect(pos.top).to.equal('auto');

          expect(pos).not.to.have.property('right');
          expect(pos).to.have.property('left');
          // half wrapper width - half modal width - margin
          // 400/2 - 340/2 - 0 = 200 - 170 = 30
          expect(pos.left).to.equal('30px');
          done();
        }).click();
      });
      it('position: left top, margin: 0, modal: 340x280, wrapper: 400x300', function(done) {
        $('').patPloneModal().on('show.plone-modal.patterns', function(e) {
          var modal = $(this).data('pattern-plone-modal');
          var pos = modal.findPosition('left', 'top', 0, 340, 280, 400, 300);
          expect(pos).not.to.have.property('bottom');
          expect(pos).to.have.property('top');
          expect(pos.top).to.equal('0px');

          expect(pos).not.to.have.property('right');
          expect(pos).to.have.property('left');
          expect(pos.left).to.equal('0px');
          done();
        }).click();
      });
      it('position: left bottom, margin: 0, modal: 340x280, wrapper: 400x300', function(done) {
        $('').patPloneModal().on('show.plone-modal.patterns', function(e) {
          var modal = $(this).data('pattern-plone-modal');
          var pos = modal.findPosition('left', 'bottom', 0, 340, 280, 400, 300);
          expect(pos).to.have.property('bottom');
          expect(pos).to.have.property('top');
          expect(pos.bottom).to.equal('0px');
          expect(pos.top).to.equal('auto');

          expect(pos).not.to.have.property('right');
          expect(pos).to.have.property('left');
          expect(pos.left).to.equal('0px');
          done();
        }).click();
      });
      it('position: right top, margin: 0, modal: 340x280, wrapper: 400x300', function(done) {
        $('').patPloneModal().on('show.plone-modal.patterns', function(e) {
          var modal = $(this).data('pattern-plone-modal');
          var pos = modal.findPosition('right', 'top', 0, 340, 280, 400, 300);
          expect(pos).not.to.have.property('bottom');
          expect(pos).to.have.property('top');
          expect(pos.top).to.equal('0px');

          expect(pos).to.have.property('right');
          expect(pos).to.have.property('left');
          expect(pos.right).to.equal('0px');
          expect(pos.left).to.equal('auto');
          done();
        }).click();
      });
      it('position: right bottom, margin: 0, modal: 340x280, wrapper: 400x300', function(done) {
        $('').patPloneModal().on('show.plone-modal.patterns', function(e) {
          var modal = $(this).data('pattern-plone-modal');
          var pos = modal.findPosition('right', 'bottom', 0, 340, 280, 400, 300);
          expect(pos).to.have.property('bottom');
          expect(pos).to.have.property('top');
          expect(pos.bottom).to.equal('0px');
          expect(pos.top).to.equal('auto');

          expect(pos).to.have.property('right');
          expect(pos).to.have.property('left');
          expect(pos.right).to.equal('0px');
          expect(pos.left).to.equal('auto');
          done();
        }).click();
      });

      //
      // -- NON-ZERO MARGIN ---------------------------------------------------
      //
      it('position: center middle, margin: 5, modal: 340x280, wrapper: 400x300', function(done) {
        $('').patPloneModal().on('show.plone-modal.patterns', function(e) {
          var modal = $(this).data('pattern-plone-modal');
          var pos = modal.findPosition('center', 'middle', 5, 340, 280, 400, 300);
          expect(pos).not.to.have.property('bottom');
          expect(pos).to.have.property('top');
          // half wrapper height - half modal height - margin
          // 300/2 - 280/2 - 5 = 150 - 140 - 5 = 5
          expect(pos.top).to.equal('5px');

          expect(pos).not.to.have.property('right');
          expect(pos).to.have.property('left');
          // half wrapper width - half modal width - margin
          // 400/2 - 340/2 - 5 = 200 - 170 - 5 = 25
          expect(pos.left).to.equal('25px');
          done();
        }).click();
      });
      it('position: left middle, margin: 5, modal: 340x280, wrapper: 400x300', function(done) {
        $('').patPloneModal().on('show.plone-modal.patterns', function(e) {
          var modal = $(this).data('pattern-plone-modal');
          var pos = modal.findPosition('left', 'middle', 5, 340, 280, 400, 300);
          expect(pos).not.to.have.property('bottom');
          expect(pos).to.have.property('top');
          // half wrapper height - half modal height - margin
          // 300/2 - 280/2 - 5 = 150 - 140 = 5
          expect(pos.top).to.equal('5px');

          expect(pos).not.to.have.property('right');
          expect(pos).to.have.property('left');
          expect(pos.left).to.equal('5px');
          done();
        }).click();
      });
      it('position: right middle, margin: 5, modal: 340x280, wrapper: 400x300', function(done) {
        $('').patPloneModal().on('show.plone-modal.patterns', function(e) {
          var modal = $(this).data('pattern-plone-modal');
          var pos = modal.findPosition('right', 'middle', 5, 340, 280, 400, 300);
          expect(pos).not.to.have.property('bottom');
          expect(pos).to.have.property('top');
          // half wrapper height - half modal height - margin
          // 300/2 - 280/2 - 5 = 150 - 140 - 5 = 5
          expect(pos.top).to.equal('5px');

          expect(pos).to.have.property('right');
          expect(pos).to.have.property('left');
          expect(pos.right).to.equal('5px');
          expect(pos.left).to.equal('auto');
          done();
        }).click();
      });
      it('position: center top, margin: 5, modal: 340x280, wrapper: 400x300', function(done) {
        $('').patPloneModal().on('show.plone-modal.patterns', function(e) {
          var modal = $(this).data('pattern-plone-modal');
          var pos = modal.findPosition('center', 'top', 5, 340, 280, 400, 300);
          expect(pos).not.to.have.property('bottom');
          expect(pos).to.have.property('top');
          expect(pos.top).to.equal('5px');

          expect(pos).not.to.have.property('right');
          expect(pos).to.have.property('left');
          // half wrapper width - half modal width - margin
          // 400/2 - 340/2 - 5 = 200 - 170 - 5 = 25
          expect(pos.left).to.equal('25px');
          done();
        }).click();
      });
      it('position: center bottom, margin: 5, modal: 340x280, wrapper: 400x300', function(done) {
        $('').patPloneModal().on('show.plone-modal.patterns', function(e) {
          var modal = $(this).data('pattern-plone-modal');
          var pos = modal.findPosition('center', 'bottom', 5, 340, 280, 400, 300);
          expect(pos).to.have.property('bottom');
          expect(pos).to.have.property('top');
          expect(pos.bottom).to.equal('5px');
          expect(pos.top).to.equal('auto');

          expect(pos).not.to.have.property('right');
          expect(pos).to.have.property('left');
          // half wrapper width - half modal width - margin
          // 400/2 - 340/2 - 5 = 200 - 170 - 5 = 25
          expect(pos.left).to.equal('25px');
          done();
        }).click();
      });
      it('position: left top, margin: 5, modal: 340x280, wrapper: 400x300', function(done) {
        $('').patPloneModal().on('show.plone-modal.patterns', function(e) {
          var modal = $(this).data('pattern-plone-modal');
          var pos = modal.findPosition('left', 'top', 5, 340, 280, 400, 300);
          expect(pos).not.to.have.property('bottom');
          expect(pos).to.have.property('top');
          expect(pos.top).to.equal('5px');

          expect(pos).not.to.have.property('right');
          expect(pos).to.have.property('left');
          expect(pos.left).to.equal('5px');
          done();
        }).click();
      });
      it('position: left bottom, margin: 5, modal: 340x280, wrapper: 400x300', function(done) {
        $('').patPloneModal().on('show.plone-modal.patterns', function(e) {
          var modal = $(this).data('pattern-plone-modal');
          var pos = modal.findPosition('left', 'bottom', 5, 340, 280, 400, 300);
          expect(pos).to.have.property('bottom');
          expect(pos).to.have.property('top');
          expect(pos.bottom).to.equal('5px');
          expect(pos.top).to.equal('auto');

          expect(pos).not.to.have.property('right');
          expect(pos).to.have.property('left');
          expect(pos.left).to.equal('5px');
          done();
        }).click();
      });
      it('position: right top, margin: 5, modal: 340x280, wrapper: 400x300', function(done) {
        $('').patPloneModal().on('show.plone-modal.patterns', function(e) {
          var modal = $(this).data('pattern-plone-modal');
          var pos = modal.findPosition('right', 'top', 5, 340, 280, 400, 300);
          expect(pos).not.to.have.property('bottom');
          expect(pos).to.have.property('top');
          expect(pos.top).to.equal('5px');

          expect(pos).to.have.property('right');
          expect(pos).to.have.property('left');
          expect(pos.right).to.equal('5px');
          expect(pos.left).to.equal('auto');
          done();
        }).click();
      });
      it('position: right bottom, margin: 5, modal: 340x280, wrapper: 400x300', function(done) {
        $('').patPloneModal().on('show.plone-modal.patterns', function(e) {
          var modal = $(this).data('pattern-plone-modal');
          var pos = modal.findPosition('right', 'bottom', 5, 340, 280, 400, 300);
          expect(pos).to.have.property('bottom');
          expect(pos).to.have.property('top');
          expect(pos.bottom).to.equal('5px');
          expect(pos.top).to.equal('auto');

          expect(pos).to.have.property('right');
          expect(pos).to.have.property('left');
          expect(pos.right).to.equal('5px');
          expect(pos.left).to.equal('auto');
          done();
        }).click();
      });

      //
      // -- WRAPPER SMALLER THAN MODAL ----------------------------------------
      //
      it('position: center middle, margin: 0, modal: 450x350, wrapper: 400x300', function(done) {
        $('').patPloneModal().on('show.plone-modal.patterns', function(e) {
          var modal = $(this).data('pattern-plone-modal');
          var pos = modal.findPosition('center', 'middle', 0, 450, 350, 400, 300);
          expect(pos).not.to.have.property('bottom');
          expect(pos).to.have.property('top');
          expect(pos.top).to.equal('0px');

          expect(pos).not.to.have.property('right');
          expect(pos).to.have.property('left');
          expect(pos.left).to.equal('0px');
          done();
        }).click();
      });
      it('position: left middle, margin: 0, modal: 450x350, wrapper: 400x300', function(done) {
        $('').patPloneModal().on('show.plone-modal.patterns', function(e) {
          var modal = $(this).data('pattern-plone-modal');
          var pos = modal.findPosition('left', 'middle', 0, 450, 350, 400, 300);
          expect(pos).not.to.have.property('bottom');
          expect(pos).to.have.property('top');
          expect(pos.top).to.equal('0px');

          expect(pos).not.to.have.property('right');
          expect(pos).to.have.property('left');
          expect(pos.left).to.equal('0px');
          done();
        }).click();
      });
      it('position: right middle, margin: 0, modal: 450x350, wrapper: 400x300', function(done) {
        $('').patPloneModal().on('show.plone-modal.patterns', function(e) {
          var modal = $(this).data('pattern-plone-modal');
          var pos = modal.findPosition('right', 'middle', 0, 450, 350, 400, 300);
          expect(pos).not.to.have.property('bottom');
          expect(pos).to.have.property('top');
          expect(pos.top).to.equal('0px');

          expect(pos).to.have.property('right');
          expect(pos).to.have.property('left');
          expect(pos.right).to.equal('0px');
          expect(pos.left).to.equal('auto');
          done();
        }).click();
      });
      it('position: center top, margin: 0, modal: 450x350, wrapper: 400x300', function(done) {
        $('').patPloneModal().on('show.plone-modal.patterns', function(e) {
          var modal = $(this).data('pattern-plone-modal');
          var pos = modal.findPosition('center', 'top', 0, 450, 350, 400, 300);
          expect(pos).not.to.have.property('bottom');
          expect(pos).to.have.property('top');
          expect(pos.top).to.equal('0px');

          expect(pos).not.to.have.property('right');
          expect(pos).to.have.property('left');
          expect(pos.left).to.equal('0px');
          done();
        }).click();
      });
      it('position: center bottom, margin: 0, modal: 450x350, wrapper: 400x300', function(done) {
        $('').patPloneModal().on('show.plone-modal.patterns', function(e) {
          var modal = $(this).data('pattern-plone-modal');
          var pos = modal.findPosition('center', 'bottom', 0, 450, 350, 400, 300);
          expect(pos).to.have.property('bottom');
          expect(pos).to.have.property('top');
          expect(pos.bottom).to.equal('0px');
          expect(pos.top).to.equal('auto');

          expect(pos).not.to.have.property('right');
          expect(pos).to.have.property('left');
          expect(pos.left).to.equal('0px');
          done();
        }).click();
      });
      it('position: left top, margin: 0, modal: 450x350, wrapper: 400x300', function(done) {
        $('').patPloneModal().on('show.plone-modal.patterns', function(e) {
          var modal = $(this).data('pattern-plone-modal');
          var pos = modal.findPosition('left', 'top', 0, 450, 350, 400, 300);
          expect(pos).not.to.have.property('bottom');
          expect(pos).to.have.property('top');
          expect(pos.top).to.equal('0px');

          expect(pos).not.to.have.property('right');
          expect(pos).to.have.property('left');
          expect(pos.left).to.equal('0px');
          done();
        }).click();
      });
      it('position: left bottom, margin: 0, modal: 450x350, wrapper: 400x300', function(done) {
        $('').patPloneModal().on('show.plone-modal.patterns', function(e) {
          var modal = $(this).data('pattern-plone-modal');
          var pos = modal.findPosition('left', 'bottom', 0, 450, 350, 400, 300);
          expect(pos).to.have.property('bottom');
          expect(pos).to.have.property('top');
          expect(pos.bottom).to.equal('0px');
          expect(pos.top).to.equal('auto');

          expect(pos).not.to.have.property('right');
          expect(pos).to.have.property('left');
          expect(pos.left).to.equal('0px');
          done();
        }).click();
      });
      it('position: right top, margin: 0, modal: 450x350, wrapper: 400x300', function(done) {
        $('').patPloneModal().on('show.plone-modal.patterns', function(e) {
          var modal = $(this).data('pattern-plone-modal');
          var pos = modal.findPosition('right', 'top', 0, 450, 350, 400, 300);
          expect(pos).not.to.have.property('bottom');
          expect(pos).to.have.property('top');
          expect(pos.top).to.equal('0px');

          expect(pos).to.have.property('right');
          expect(pos).to.have.property('left');
          expect(pos.right).to.equal('0px');
          expect(pos.left).to.equal('auto');
          done();
        }).click();
      });
      it('position: right bottom, margin: 0, modal: 450x350, wrapper: 400x300', function(done) {
        $('').patPloneModal().on('show.plone-modal.patterns', function(e) {
          var modal = $(this).data('pattern-plone-modal');
          var pos = modal.findPosition('right', 'bottom', 0, 450, 350, 400, 300);
          expect(pos).to.have.property('bottom');
          expect(pos).to.have.property('top');
          expect(pos.bottom).to.equal('0px');
          expect(pos.top).to.equal('auto');

          expect(pos).to.have.property('right');
          expect(pos).to.have.property('left');
          expect(pos.right).to.equal('0px');
          expect(pos.left).to.equal('auto');
          done();
        }).click();
      });
    });
  });

});