text:
<?php

/**
 * @since Class available since Release 4.0.0
 */
class PHPUnit_Runner_Filter_Test extends RecursiveFilterIterator
{
    /**
     * @var string
     */
    protected $filter = null;

    /**
     * @var int
     */
    protected $filterMin;
    /**
     * @var int
     */
    protected $filterMax;

    /**
     * @param RecursiveIterator $iterator
     * @param string            $filter
     */
    public function __construct(RecursiveIterator $iterator, $filter)
    {
        parent::__construct($iterator);
        $this->setFilter($filter);
    }

    /**
     * @param string $filter
     */
    protected function setFilter($filter)
    {
        if (PHPUnit_Util_Regex::pregMatchSafe($filter, '') === false) {
            // Handles:
            //  * testAssertEqualsSucceeds#4
            //  * testAssertEqualsSucceeds#4-8
            if (preg_match('/^(.*?)#(\d+)(?:-(\d+))?$/', $filter, $matches)) {
                if (isset($matches[3]) && $matches[2] < $matches[3]) {
                    $filter = sprintf(
                        '%s.*with data set #(\d+)$',
                        $matches[1]
                    );

                    $this->filterMin = $matches[2];
                    $this->filterMax = $matches[3];
                } else {
                    $filter = sprintf(
                        '%s.*with data set #%s$',
                        $matches[1],
                        $matches[2]
                    );
                }
            } // Handles:
            //  * testDetermineJsonError@JSON_ERROR_NONE
            //  * testDetermineJsonError@JSON.*
            elseif (preg_match('/^(.*?)@(.+)$/', $filter, $matches)) {
                $filter = sprintf(
                    '%s.*with data set "%s"$',
                    $matches[1],
                    $matches[2]
                );
            }

            // Escape delimiters in regular expression. Do NOT use preg_quote,
            // to keep magic characters.
            $filter = sprintf('/%s/', str_replace(
                '/',
                '\\/',
                $filter
            ));
        }

        $this->filter = $filter;
    }

    /**
     * @return bool
     */
    public function accept()
    {
        $test = $this->getInnerIterator()->current();

        if ($test instanceof PHPUnit_Framework_TestSuite) {
            return true;
        }

        $tmp = PHPUnit_Util_Test::describe($test, false);

        if ($tmp[0] != '') {
            $name = implode('::', $tmp);
        } else {
            $name = $tmp[1];
        }

        $accepted = preg_match($this->filter, $name, $matches);

        if ($accepted && isset($this->filterMax)) {
            $set      = end($matches);
            $accepted = $set >= $this->filterMin && $set <= $this->filterMax;
        }

        return $accepted;
    }
}


text:
class Vtk < Formula
  desc "Toolkit for 3D computer graphics, image processing, and visualization"
  homepage "https://www.vtk.org/"
  url "https://www.vtk.org/files/release/8.1/VTK-8.1.2.tar.gz"
  sha256 "0995fb36857dd76ccfb8bb07350c214d9f9099e80b1e66b4a8909311f24ff0db"
  revision 2
  head "https://github.com/Kitware/VTK.git"

  bottle do
    sha256 "acd90fab027fe1d8c3fee002e9d6ae53d37cb193867e6760349a95f4cc61c6ed" => :mojave
    sha256 "9e4cd8949c2562df2ead05265f9e192b270d6b5bfa66c58cb2b235ff32ec1a4f" => :high_sierra
    sha256 "73986d08c7dcec7cdb5122352e84b4ca7b7c2eb4f1e69ccd4d1a5624c9d5808b" => :sierra
  end

  depends_on "cmake" => :build
  depends_on "boost"
  depends_on "fontconfig"
  depends_on "hdf5"
  depends_on "jpeg"
  depends_on "libpng"
  depends_on "libtiff"
  depends_on "netcdf"
  depends_on "pyqt"
  depends_on "python"
  depends_on "qt"

  def install
    python_executable = `which python3`.strip
    python_prefix = `#{python_executable} -c 'import sys;print(sys.prefix)'`.chomp
    python_include = `#{python_executable} -c 'from distutils import sysconfig;print(sysconfig.get_python_inc(True))'`.chomp
    python_version = "python" + `#{python_executable} -c 'import sys;print(sys.version[:3])'`.chomp
    py_site_packages = "#{lib}/#{python_version}/site-packages"

    args = std_cmake_args + %W[
      -DBUILD_SHARED_LIBS=ON
      -DBUILD_TESTING=OFF
      -DCMAKE_INSTALL_NAME_DIR:STRING=#{lib}
      -DCMAKE_INSTALL_RPATH:STRING=#{lib}
      -DModule_vtkInfovisBoost=ON
      -DModule_vtkInfovisBoostGraphAlgorithms=ON
      -DModule_vtkRenderingFreeTypeFontConfig=ON
      -DVTK_REQUIRED_OBJCXX_FLAGS=''
      -DVTK_USE_COCOA=ON
      -DVTK_USE_SYSTEM_EXPAT=ON
      -DVTK_USE_SYSTEM_HDF5=ON
      -DVTK_USE_SYSTEM_JPEG=ON
      -DVTK_USE_SYSTEM_LIBXML2=ON
      -DVTK_USE_SYSTEM_NETCDF=ON
      -DVTK_USE_SYSTEM_PNG=ON
      -DVTK_USE_SYSTEM_TIFF=ON
      -DVTK_USE_SYSTEM_ZLIB=ON
      -DVTK_WRAP_PYTHON=ON
      -DPYTHON_EXECUTABLE='#{python_executable}'
      -DPYTHON_INCLUDE_DIR='#{python_include}'
      -DVTK_INSTALL_PYTHON_MODULE_DIR='#{py_site_packages}/'
      -DVTK_QT_VERSION:STRING=5
      -DVTK_Group_Qt=ON
      -DVTK_WRAP_PYTHON_SIP=ON
      -DSIP_PYQT_DIR='#{Formula["pyqt5"].opt_share}/sip'
    ]

    # CMake picks up the system's python dylib, even if we have a brewed one.
    if File.exist? "#{python_prefix}/Python"
      args << "-DPYTHON_LIBRARY='#{python_prefix}/Python'"
    elsif File.exist? "#{python_prefix}/lib/lib#{python_version}.a"
      args << "-DPYTHON_LIBRARY='#{python_prefix}/lib/lib#{python_version}.a'"
    elsif File.exist? "#{python_prefix}/lib/lib#{python_version}.dylib"
      args << "-DPYTHON_LIBRARY='#{python_prefix}/lib/lib#{python_version}.dylib'"
    else
      odie "No libpythonX.Y.{dylib|a} file found!"
    end

    mkdir "build" do
      system "cmake", "..", *args
      system "make"
      system "make", "install"
    end

    # Avoid hard-coding Python's Cellar paths
    inreplace Dir["#{lib}/cmake/**/vtkPython.cmake"].first,
      Formula["python"].prefix.realpath,
      Formula["python"].opt_prefix

    # Avoid hard-coding HDF5's Cellar path
    inreplace Dir["#{lib}/cmake/**/vtkhdf5.cmake"].first,
      Formula["hdf5"].prefix.realpath,
      Formula["hdf5"].opt_prefix
  end

  test do
    vtk_include = Dir[opt_include/"vtk-*"].first
    major, minor = vtk_include.match(/.*-(.*)$/)[1].split(".")

    (testpath/"version.cpp").write <<~EOS
      #include <vtkVersion.h>
      #include <assert.h>
      int main(int, char *[]) {
        assert (vtkVersion::GetVTKMajorVersion()==#{major});
        assert (vtkVersion::GetVTKMinorVersion()==#{minor});
        return EXIT_SUCCESS;
      }
    EOS

    system ENV.cxx, "-std=c++11", "version.cpp", "-I#{vtk_include}"
    system "./a.out"
    system "#{bin}/vtkpython", "-c", "exit()"
  end
end

redpajama_set_name: RedPajamaGithub


text:
package com.github.javafaker;

import com.github.javafaker.service.FakeValuesService;
import com.github.javafaker.service.RandomService;

public class Address {

    private final Name name;
    private final FakeValuesService fakeValuesService;
    private final RandomService randomService;

    public Address(Name name, FakeValuesService fakeValuesService, RandomService randomService) {
        this.name = name;
        this.fakeValuesService = fakeValuesService;
        this.randomService = randomService;
    }

    public String streetName() {
        return fakeValuesService.composite("address.street_name_formats",
                (String) fakeValuesService.fetchObject("address.street_name_joiner"),
                this);
    }

    public String streetAddressNumber() {
        return fakeValuesService.numerify(fakeValuesService.fetchString("address.street_address"));
    }

    public String streetAddress(boolean includeSecondary) {
        String streetAddress = fakeValuesService.composite("address.street_formats", " ", this);
        if (includeSecondary) {
            streetAddress = streetAddress + " " + secondaryAddress();
        }
        return fakeValuesService.numerify(streetAddress);
    }

    public String secondaryAddress() {
        return fakeValuesService.numerify(fakeValuesService.fetchString("address.secondary_address"));
    }

    public String zipCode() {
        return fakeValuesService.bothify(fakeValuesService.fetchString("address.postcode"));
    }

    public String streetSuffix() {
        return fakeValuesService.fetchString("address.street_suffix");
    }

    public String citySuffix() {
        return fakeValuesService.fetchString("address.city_suffix");
    }

    public String cityPrefix() {
        return fakeValuesService.fetchString("address.city_prefix");
    }

    public String stateAbbr() {
        return fakeValuesService.fetchString("address.state_abbr");
    }

    public String country() {
        return fakeValuesService.fetchString("address.country");
    }

    public String firstName() {
        return name.firstName();
    }

    public String lastName() {
        return name.lastName();
    }

    public String latitude() {
        return String.format("%.8g", (randomService.nextDouble() * 180) - 90);
    }

    public String longitude() {
        return String.format("%.8g", (randomService.nextDouble() * 360) - 180);
    }

}


text:
package org.springframework.security.config.annotation.web.reactive;

import static org.assertj.core.api.Assertions.assertThat;
import static org.springframework.security.test.web.reactive.server.SecurityMockServerConfigurers.csrf;
import static org.springframework.web.reactive.function.client.ExchangeFilterFunctions.basicAuthentication;
import static org.springframework.web.reactive.function.client.ExchangeFilterFunctions.Credentials.basicAuthenticationCredentials;

import java.nio.charset.StandardCharsets;
import java.security.Principal;

import org.junit.Rule;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Import;
import org.springframework.core.Ordered;
import org.springframework.core.annotation.Order;
import org.springframework.core.io.buffer.DataBuffer;
import org.springframework.core.io.buffer.DefaultDataBufferFactory;
import org.springframework.http.MediaType;
import org.springframework.security.authentication.TestingAuthenticationToken;
import org.springframework.security.config.test.SpringTestRule;
import org.springframework.security.config.users.ReactiveAuthenticationTestConfiguration;
import org.springframework.security.config.web.server.ServerHttpSecurity;
import org.springframework.security.core.Authentication;
import org.springframework.security.core.annotation.AuthenticationPrincipal;
import org.springframework.security.core.context.ReactiveSecurityContextHolder;
import org.springframework.security.core.context.SecurityContext;
import org.springframework.security.core.context.SecurityContextImpl;
import org.springframework.security.core.userdetails.MapReactiveUserDetailsService;
import org.springframework.security.core.userdetails.ReactiveUserDetailsService;
import org.springframework.security.core.userdetails.User;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.security.crypto.password.PasswordEncoder;
import org.springframework.security.test.context.annotation.SecurityTestExecutionListeners;
import org.springframework.security.test.context.support.WithMockUser;
import org.springframework.security.test.web.reactive.server.WebTestClientBuilder;
import org.springframework.security.web.reactive.result.view.CsrfRequestDataValueProcessor;
import org.springframework.security.web.server.SecurityWebFilterChain;
import org.springframework.security.web.server.WebFilterChainProxy;
import org.springframework.security.web.server.context.WebSessionServerSecurityContextRepository;
import org.springframework.security.web.server.util.matcher.PathPatternParserServerWebExchangeMatcher;
import org.springframework.test.context.junit4.SpringRunner;
import org.springframework.test.web.reactive.server.FluxExchangeResult;
import org.springframework.test.web.reactive.server.WebTestClient;
import org.springframework.util.LinkedMultiValueMap;
import org.springframework.util.MultiValueMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.reactive.config.EnableWebFlux;
import org.springframework.web.reactive.function.BodyInserters;
import org.springframework.web.reactive.result.view.AbstractView;

import reactor.core.publisher.Mono;

/**
 * @author Rob Winch
 * @since 5.0
 */
@RunWith(SpringRunner.class)
@SecurityTestExecutionListeners
public class EnableWebFluxSecurityTests {
	@Rule
	public final SpringTestRule spring = new SpringTestRule();

	@Autowired
	WebFilterChainProxy springSecurityFilterChain;

	@Test
	public void defaultRequiresAuthentication() {
		this.spring.register(Config.class).autowire();

		WebTestClient client = WebTestClientBuilder
			.bindToWebFilters(this.springSecurityFilterChain)
			.build();

		client.get()
			.uri("/")
			.exchange()
			.expectStatus().isUnauthorized()
			.expectBody().isEmpty();
	}

	// gh-4831
	@Test
	public void defaultMediaAllThenUnAuthorized() {
		this.spring.register(Config.class).autowire();

		WebTestClient client = WebTestClientBuilder
			.bindToWebFilters(this.springSecurityFilterChain)
			.build();

		client.get()
			.uri("/")
			.accept(MediaType.ALL)
			.exchange()
			.expectStatus().isUnauthorized()
			.expectBody().isEmpty();
	}

	@Test
	public void authenticateWhenBasicThenNoSession() {
		this.spring.register(Config.class).autowire();

		WebTestClient client = WebTestClientBuilder
			.bindToWebFilters(this.springSecurityFilterChain)
			.filter(basicAuthentication())
			.build();

		FluxExchangeResult<String> result = client.get()
			.attributes(basicAuthenticationCredentials("user", "password"))
			.exchange()
			.expectStatus()
			.isOk()
			.returnResult(String.class);
		result.assertWithDiagnostics(() -> assertThat(result.getResponseCookies().isEmpty()));
	}

	@Test
	public void defaultPopulatesReactorContext() {
		this.spring.register(Config.class).autowire();
		Authentication currentPrincipal = new TestingAuthenticationToken("user", "password", "ROLE_USER");
		WebSessionServerSecurityContextRepository contextRepository = new WebSessionServerSecurityContextRepository();
		SecurityContext context = new SecurityContextImpl(currentPrincipal);
		WebTestClient client = WebTestClientBuilder.bindToWebFilters(
			(exchange, chain) -> contextRepository.save(exchange, context)
				.switchIfEmpty(chain.filter(exchange))
				.flatMap(e -> chain.filter(exchange)),
			this.springSecurityFilterChain,
			(exchange, chain) ->
				ReactiveSecurityContextHolder.getContext()
					.map(SecurityContext::getAuthentication)
					.flatMap( principal -> exchange.getResponse()
						.writeWith(Mono.just(toDataBuffer(principal.getName()))))
		).build();

		client
			.get()
			.uri("/")
			.exchange()
			.expectStatus().isOk()
			.expectBody(String.class).consumeWith( result -> assertThat(result.getResponseBody()).isEqualTo(currentPrincipal.getName()));
	}

	@Test
	public void defaultPopulatesReactorContextWhenAuthenticating() {
		this.spring.register(Config.class).autowire();
		WebTestClient client = WebTestClientBuilder.bindToWebFilters(
			this.springSecurityFilterChain,
			(exchange, chain) ->
				ReactiveSecurityContextHolder.getContext()
					.map(SecurityContext::getAuthentication)
					.flatMap( principal -> exchange.getResponse()
						.writeWith(Mono.just(toDataBuffer(principal.getName()))))
		)
		.filter(basicAuthentication())
		.build();

		client
			.get()
			.uri("/")
			.attributes(basicAuthenticationCredentials("user", "password"))
			.exchange()
			.expectStatus().isOk()
			.expectBody(String.class).consumeWith( result -> assertThat(result.getResponseBody()).isEqualTo("user"));
	}

	@Test
	public void requestDataValueProcessor() {
		this.spring.register(Config.class).autowire();

		ConfigurableApplicationContext context = this.spring.getContext();
		CsrfRequestDataValueProcessor rdvp = context.getBean(AbstractView.REQUEST_DATA_VALUE_PROCESSOR_BEAN_NAME, CsrfRequestDataValueProcessor.class);
		assertThat(rdvp).isNotNull();
	}

	@EnableWebFluxSecurity
	@Import(ReactiveAuthenticationTestConfiguration.class)
	static class Config {
	}

	@Test
	public void passwordEncoderBeanIsUsed() {
		this.spring.register(CustomPasswordEncoderConfig.class).autowire();
		WebTestClient client = WebTestClientBuilder.bindToWebFilters(
			this.springSecurityFilterChain,
			(exchange, chain) ->
				ReactiveSecurityContextHolder.getContext()
					.map(SecurityContext::getAuthentication)
					.flatMap( principal -> exchange.getResponse()
						.writeWith(Mono.just(toDataBuffer(principal.getName()))))
		)
		.filter(basicAuthentication())
		.build();

		client
			.get()
			.uri("/")
			.attributes(basicAuthenticationCredentials("user", "password"))
			.exchange()
			.expectStatus().isOk()
			.expectBody(String.class).consumeWith( result -> assertThat(result.getResponseBody()).isEqualTo("user"));
	}

	@EnableWebFluxSecurity
	static class CustomPasswordEncoderConfig {
		@Bean
		public ReactiveUserDetailsService userDetailsService(PasswordEncoder encoder) {
			return new MapReactiveUserDetailsService(User.withUsername("user")
				.password(encoder.encode("password"))
				.roles("USER")
				.build()
			);
		}

		@Bean
		public static PasswordEncoder passwordEncoder() {
			return new BCryptPasswordEncoder();
		}
	}

	@Test
	public void formLoginWorks() {
		this.spring.register(Config.class).autowire();
		WebTestClient client = WebTestClientBuilder.bindToWebFilters(
			this.springSecurityFilterChain,
			(exchange, chain) ->
				Mono.subscriberContext()
					.flatMap( c -> c.<Mono<Principal>>get(Authentication.class))
					.flatMap( principal -> exchange.getResponse()
						.writeWith(Mono.just(toDataBuffer(principal.getName()))))
		)
		.build();

		MultiValueMap<String, String> data = new LinkedMultiValueMap<>();
		data.add("username", "user");
		data.add("password", "password");
		client
			.mutateWith(csrf())
			.post()
			.uri("/login")
			.body(BodyInserters.fromFormData(data))
			.exchange()
			.expectStatus().is3xxRedirection()
			.expectHeader().valueMatches("Location", "/");
	}

	@Test
	public void multiWorks() {
		this.spring.register(MultiSecurityHttpConfig.class).autowire();
		WebTestClient client = WebTestClientBuilder.bindToWebFilters(this.springSecurityFilterChain).build();

		client.get()
			.uri("/api/test")
			.exchange()
			.expectStatus().isUnauthorized()
			.expectBody().isEmpty();

		client.get()
			.uri("/test")
			.exchange()
			.expectStatus().isOk();
	}

	@EnableWebFluxSecurity
	@Import(ReactiveAuthenticationTestConfiguration.class)
	static class MultiSecurityHttpConfig {
		@Order(Ordered.HIGHEST_PRECEDENCE)
		@Bean
		public SecurityWebFilterChain apiHttpSecurity(
			ServerHttpSecurity http) {
			http.securityMatcher(new PathPatternParserServerWebExchangeMatcher("/api/**"))
				.authorizeExchange().anyExchange().denyAll();
			return http.build();
		}

		@Bean
		public SecurityWebFilterChain httpSecurity(ServerHttpSecurity http) {
			return http.build();
		}
	}

	@Test
	@WithMockUser
	public void authenticationPrincipalArgumentResolverWhenSpelThenWorks() {
		this.spring.register(AuthenticationPrincipalConfig.class).autowire();

		WebTestClient client = WebTestClient.bindToApplicationContext(this.spring.getContext()).build();

		client.get()
			.uri("/spel")
			.exchange()
			.expectStatus().isOk()
			.expectBody(String.class).isEqualTo("user");
	}

	@EnableWebFluxSecurity
	@EnableWebFlux
	@Import(ReactiveAuthenticationTestConfiguration.class)
	static class AuthenticationPrincipalConfig {

		@Bean
		public PrincipalBean principalBean() {
			return new PrincipalBean();
		}

		static class PrincipalBean {
			public String username(UserDetails user) {
				return user.getUsername();
			}
		}

		@RestController
		public static class AuthenticationPrincipalResolver {
			@GetMapping("/spel")
			String username(@AuthenticationPrincipal(expression = "@principalBean.username(#this)") String username) {
				return  username;
			}
		}
	}

	private static DataBuffer toDataBuffer(String body) {
		DataBuffer buffer = new DefaultDataBufferFactory().allocateBuffer();
		buffer.write(body.getBytes(StandardCharsets.UTF_8));
		return buffer;
	}
}


text:
<?xml version="1.0" encoding="UTF-8"?>
<MetaDataObject xmlns="http://v8.1c.ru/8.3/MDClasses" xmlns:app="http://v8.1c.ru/8.2/managed-application/core" xmlns:cfg="http://v8.1c.ru/8.1/data/enterprise/current-config" xmlns:cmi="http://v8.1c.ru/8.2/managed-application/cmi" xmlns:ent="http://v8.1c.ru/8.1/data/enterprise" xmlns:lf="http://v8.1c.ru/8.2/managed-application/logform" xmlns:style="http://v8.1c.ru/8.1/data/ui/style" xmlns:sys="http://v8.1c.ru/8.1/data/ui/fonts/system" xmlns:v8="http://v8.1c.ru/8.1/data/core" xmlns:v8ui="http://v8.1c.ru/8.1/data/ui" xmlns:web="http://v8.1c.ru/8.1/data/ui/colors/web" xmlns:win="http://v8.1c.ru/8.1/data/ui/colors/windows" xmlns:xen="http://v8.1c.ru/8.3/xcf/enums" xmlns:xpr="http://v8.1c.ru/8.3/xcf/predef" xmlns:xr="http://v8.1c.ru/8.3/xcf/readable" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<Document uuid="314259f8-2f66-4787-a60d-e013d3abdbfa">
		<InternalInfo>
			<xr:GeneratedType name="DocumentObject.УстановкаБлокировокЯчеек" category="Object">
				<xr:TypeId>93c799e4-007f-4a2b-be7a-ddc81373be68</xr:TypeId>
				<xr:ValueId>ce058489-f2a2-4eb0-a54b-10556ee3d888</xr:ValueId>
			</xr:GeneratedType>
			<xr:GeneratedType name="DocumentRef.УстановкаБлокировокЯчеек" category="Ref">
				<xr:TypeId>a0df342c-63d3-4529-b3a4-2e0c5a3c6a1e</xr:TypeId>
				<xr:ValueId>5d3f7bcf-7951-4e85-913b-7608823812bf</xr:ValueId>
			</xr:GeneratedType>
			<xr:GeneratedType name="DocumentSelection.УстановкаБлокировокЯчеек" category="Selection">
				<xr:TypeId>b600f7e3-23f8-411e-a2a3-20bd1cb8407f</xr:TypeId>
				<xr:ValueId>3e26eeee-63d2-4043-9b0c-264e948f1d25</xr:ValueId>
			</xr:GeneratedType>
			<xr:GeneratedType name="DocumentList.УстановкаБлокировокЯчеек" category="List">
				<xr:TypeId>67832770-7237-4253-99a3-14f81d9f3915</xr:TypeId>
				<xr:ValueId>eb471d2c-bc3e-49f0-b335-f20f7a5a9dee</xr:ValueId>
			</xr:GeneratedType>
			<xr:GeneratedType name="DocumentManager.УстановкаБлокировокЯчеек" category="Manager">
				<xr:TypeId>dfcf1567-cb55-4634-8906-e6a809b62c6e</xr:TypeId>
				<xr:ValueId>0bbef44b-ab8a-43cd-b9a8-73d1b86704f0</xr:ValueId>
			</xr:GeneratedType>
		</InternalInfo>
		<Properties>
			<Name>УстановкаБлокировокЯчеек</Name>
			<Synonym>
				<v8:item>
					<v8:lang>ru</v8:lang>
					<v8:content>Установка блокировок ячеек</v8:content>
				</v8:item>
			</Synonym>
			<Comment/>
			<UseStandardCommands>true</UseStandardCommands>
			<Numerator/>
			<NumberType>String</NumberType>
			<NumberLength>11</NumberLength>
			<NumberAllowedLength>Variable</NumberAllowedLength>
			<NumberPeriodicity>Year</NumberPeriodicity>
			<CheckUnique>true</CheckUnique>
			<Autonumbering>true</Autonumbering>
			<StandardAttributes>
				<xr:StandardAttribute name="Posted">
					<xr:LinkByType/>
					<xr:FillChecking>DontCheck</xr:FillChecking>
					<xr:MultiLine>false</xr:MultiLine>
					<xr:FillFromFillingValue>false</xr:FillFromFillingValue>
					<xr:CreateOnInput>Auto</xr:CreateOnInput>
					<xr:MaxValue xsi:nil="true"/>
					<xr:ToolTip/>
					<xr:ExtendedEdit>false</xr:ExtendedEdit>
					<xr:Format/>
					<xr:ChoiceForm/>
					<xr:QuickChoice>Auto</xr:QuickChoice>
					<xr:ChoiceHistoryOnInput>Auto</xr:ChoiceHistoryOnInput>
					<xr:EditFormat/>
					<xr:PasswordMode>false</xr:PasswordMode>
					<xr:MarkNegatives>false</xr:MarkNegatives>
					<xr:MinValue xsi:nil="true"/>
					<xr:Synonym/>
					<xr:Comment/>
					<xr:FullTextSearch>Use</xr:FullTextSearch>
					<xr:ChoiceParameterLinks/>
					<xr:FillValue xsi:nil="true"/>
					<xr:Mask/>
					<xr:ChoiceParameters/>
				</xr:StandardAttribute>
				<xr:StandardAttribute name="Ref">
					<xr:LinkByType/>
					<xr:FillChecking>DontCheck</xr:FillChecking>
					<xr:MultiLine>false</xr:MultiLine>
					<xr:FillFromFillingValue>false</xr:FillFromFillingValue>
					<xr:CreateOnInput>Auto</xr:CreateOnInput>
					<xr:MaxValue xsi:nil="true"/>
					<xr:ToolTip/>
					<xr:ExtendedEdit>false</xr:ExtendedEdit>
					<xr:Format/>
					<xr:ChoiceForm/>
					<xr:QuickChoice>Auto</xr:QuickChoice>
					<xr:ChoiceHistoryOnInput>Auto</xr:ChoiceHistoryOnInput>
					<xr:EditFormat/>
					<xr:PasswordMode>false</xr:PasswordMode>
					<xr:MarkNegatives>false</xr:MarkNegatives>
					<xr:MinValue xsi:nil="true"/>
					<xr:Synonym/>
					<xr:Comment/>
					<xr:FullTextSearch>Use</xr:FullTextSearch>
					<xr:ChoiceParameterLinks/>
					<xr:FillValue xsi:nil="true"/>
					<xr:Mask/>
					<xr:ChoiceParameters/>
				</xr:StandardAttribute>
				<xr:StandardAttribute name="DeletionMark">
					<xr:LinkByType/>
					<xr:FillChecking>DontCheck</xr:FillChecking>
					<xr:MultiLine>false</xr:MultiLine>
					<xr:FillFromFillingValue>false</xr:FillFromFillingValue>
					<xr:CreateOnInput>Auto</xr:CreateOnInput>
					<xr:MaxValue xsi:nil="true"/>
					<xr:ToolTip/>
					<xr:ExtendedEdit>false</xr:ExtendedEdit>
					<xr:Format/>
					<xr:ChoiceForm/>
					<xr:QuickChoice>Auto</xr:QuickChoice>
					<xr:ChoiceHistoryOnInput>Auto</xr:ChoiceHistoryOnInput>
					<xr:EditFormat/>
					<xr:PasswordMode>false</xr:PasswordMode>
					<xr:MarkNegatives>false</xr:MarkNegatives>
					<xr:MinValue xsi:nil="true"/>
					<xr:Synonym/>
					<xr:Comment/>
					<xr:FullTextSearch>Use</xr:FullTextSearch>
					<xr:ChoiceParameterLinks/>
					<xr:FillValue xsi:nil="true"/>
					<xr:Mask/>
					<xr:ChoiceParameters/>
				</xr:StandardAttribute>
				<xr:StandardAttribute name="Date">
					<xr:LinkByType/>
					<xr:FillChecking>ShowError</xr:FillChecking>
					<xr:MultiLine>false</xr:MultiLine>
					<xr:FillFromFillingValue>false</xr:FillFromFillingValue>
					<xr:CreateOnInput>Auto</xr:CreateOnInput>
					<xr:MaxValue xsi:nil="true"/>
					<xr:ToolTip/>
					<xr:ExtendedEdit>false</xr:ExtendedEdit>
					<xr:Format/>
					<xr:ChoiceForm/>
					<xr:QuickChoice>Auto</xr:QuickChoice>
					<xr:ChoiceHistoryOnInput>Auto</xr:ChoiceHistoryOnInput>
					<xr:EditFormat/>
					<xr:PasswordMode>false</xr:PasswordMode>
					<xr:MarkNegatives>false</xr:MarkNegatives>
					<xr:MinValue xsi:nil="true"/>
					<xr:Synonym/>
					<xr:Comment/>
					<xr:FullTextSearch>Use</xr:FullTextSearch>
					<xr:ChoiceParameterLinks/>
					<xr:FillValue xsi:nil="true"/>
					<xr:Mask/>
					<xr:ChoiceParameters/>
				</xr:StandardAttribute>
				<xr:StandardAttribute name="Number">
					<xr:LinkByType/>
					<xr:FillChecking>DontCheck</xr:FillChecking>
					<xr:MultiLine>false</xr:MultiLine>
					<xr:FillFromFillingValue>false</xr:FillFromFillingValue>
					<xr:CreateOnInput>Auto</xr:CreateOnInput>
					<xr:MaxValue xsi:nil="true"/>
					<xr:ToolTip/>
					<xr:ExtendedEdit>false</xr:ExtendedEdit>
					<xr:Format/>
					<xr:ChoiceForm/>
					<xr:QuickChoice>Auto</xr:QuickChoice>
					<xr:ChoiceHistoryOnInput>Auto</xr:ChoiceHistoryOnInput>
					<xr:EditFormat/>
					<xr:PasswordMode>false</xr:PasswordMode>
					<xr:MarkNegatives>false</xr:MarkNegatives>
					<xr:MinValue xsi:nil="true"/>
					<xr:Synonym/>
					<xr:Comment/>
					<xr:FullTextSearch>Use</xr:FullTextSearch>
					<xr:ChoiceParameterLinks/>
					<xr:FillValue xsi:nil="true"/>
					<xr:Mask/>
					<xr:ChoiceParameters/>
				</xr:StandardAttribute>
			</StandardAttributes>
			<Characteristics>
				<xr:Characteristic>
					<xr:CharacteristicTypes from="Catalog.НаборыДополнительныхРеквизитовИСведений.TabularSection.ДополнительныеСведения">
						<xr:KeyField>Catalog.НаборыДополнительныхРеквизитовИСведений.TabularSection.ДополнительныеСведения.Attribute.Свойство</xr:KeyField>
						<xr:TypesFilterField>Catalog.НаборыДополнительныхРеквизитовИСведений.TabularSection.ДополнительныеСведения.StandardAttribute.Ref</xr:TypesFilterField>
						<xr:TypesFilterValue xsi:type="xr:DesignTimeRef">Catalog.НаборыДополнительныхРеквизитовИСведений.Документ_УстановкаБлокировокЯчеек</xr:TypesFilterValue>
					</xr:CharacteristicTypes>
					<xr:CharacteristicValues from="InformationRegister.ДополнительныеСведения">
						<xr:ObjectField>InformationRegister.ДополнительныеСведения.Dimension.Объект</xr:ObjectField>
						<xr:TypeField>InformationRegister.ДополнительныеСведения.Dimension.Свойство</xr:TypeField>
						<xr:ValueField>InformationRegister.ДополнительныеСведения.Resource.Значение</xr:ValueField>
					</xr:CharacteristicValues>
				</xr:Characteristic>
			</Characteristics>
			<BasedOn>
				<xr:Item xsi:type="xr:MDObjectRef">Document.ОтборРазмещениеТоваров</xr:Item>
			</BasedOn>
			<InputByString>
				<xr:Field>Document.УстановкаБлокировокЯчеек.StandardAttribute.Number</xr:Field>
			</InputByString>
			<CreateOnInput>Use</CreateOnInput>
			<SearchStringModeOnInputByString>Begin</SearchStringModeOnInputByString>
			<FullTextSearchOnInputByString>DontUse</FullTextSearchOnInputByString>
			<ChoiceDataGetModeOnInputByString>Directly</ChoiceDataGetModeOnInputByString>
			<DefaultObjectForm>Document.УстановкаБлокировокЯчеек.Form.ФормаДокумента</DefaultObjectForm>
			<DefaultListForm>Document.УстановкаБлокировокЯчеек.Form.ФормаСписка</DefaultListForm>
			<DefaultChoiceForm>Document.УстановкаБлокировокЯчеек.Form.ФормаВыбора</DefaultChoiceForm>
			<AuxiliaryObjectForm/>
			<AuxiliaryListForm/>
			<AuxiliaryChoiceForm/>
			<Posting>Allow</Posting>
			<RealTimePosting>Allow</RealTimePosting>
			<RegisterRecordsDeletion>AutoDeleteOff</RegisterRecordsDeletion>
			<RegisterRecordsWritingOnPost>WriteSelected</RegisterRecordsWritingOnPost>
			<SequenceFilling>AutoFill</SequenceFilling>
			<RegisterRecords>
				<xr:Item xsi:type="xr:MDObjectRef">InformationRegister.БлокировкиСкладскихЯчеек</xr:Item>
			</RegisterRecords>
			<PostInPrivilegedMode>true</PostInPrivilegedMode>
			<UnpostInPrivilegedMode>true</UnpostInPrivilegedMode>
			<IncludeHelpInContents>false</IncludeHelpInContents>
			<DataLockFields/>
			<DataLockControlMode>Managed</DataLockControlMode>
			<FullTextSearch>Use</FullTextSearch>
			<ObjectPresentation/>
			<ExtendedObjectPresentation/>
			<ListPresentation>
				<v8:item>
					<v8:lang>ru</v8:lang>
					<v8:content>Установки блокировок ячеек</v8:content>
				</v8:item>
			</ListPresentation>
			<ExtendedListPresentation/>
			<Explanation>
				<v8:item>
					<v8:lang>ru</v8:lang>
					<v8:content>Управление блокировками складских ячеек.</v8:content>
				</v8:item>
			</Explanation>
			<ChoiceHistoryOnInput>Auto</ChoiceHistoryOnInput>
		</Properties>
		<ChildObjects>
			<Attribute uuid="e4ffc969-6895-4c50-8f45-a5b10ed0dd8d">
				<Properties>
					<Name>Ответственный</Name>
					<Synonym>
						<v8:item>
							<v8:lang>ru</v8:lang>
							<v8:content>Ответственный</v8:content>
						</v8:item>
					</Synonym>
					<Comment/>
					<Type>
						<v8:Type>cfg:CatalogRef.Пользователи</v8:Type>
					</Type>
					<PasswordMode>false</PasswordMode>
					<Format/>
					<EditFormat/>
					<ToolTip>
						<v8:item>
							<v8:lang>ru</v8:lang>
							<v8:content>Пользователь, оформивший документ  и ответственный за его обработку.</v8:content>
						</v8:item>
					</ToolTip>
					<MarkNegatives>false</MarkNegatives>
					<Mask/>
					<MultiLine>false</MultiLine>
					<ExtendedEdit>false</ExtendedEdit>
					<MinValue xsi:nil="true"/>
					<MaxValue xsi:nil="true"/>
					<FillFromFillingValue>false</FillFromFillingValue>
					<FillValue xsi:nil="true"/>
					<FillChecking>DontCheck</FillChecking>
					<ChoiceFoldersAndItems>Items</ChoiceFoldersAndItems>
					<ChoiceParameterLinks/>
					<ChoiceParameters/>
					<QuickChoice>Auto</QuickChoice>
					<CreateOnInput>Auto</CreateOnInput>
					<ChoiceForm/>
					<LinkByType/>
					<ChoiceHistoryOnInput>Auto</ChoiceHistoryOnInput>
					<Indexing>DontIndex</Indexing>
					<FullTextSearch>Use</FullTextSearch>
				</Properties>
			</Attribute>
			<Attribute uuid="ef9b8020-2830-4335-80cd-bf57f70b15ed">
				<Properties>
					<Name>Комментарий</Name>
					<Synonym>
						<v8:item>
							<v8:lang>ru</v8:lang>
							<v8:content>Комментарий</v8:content>
						</v8:item>
					</Synonym>
					<Comment/>
					<Type>
						<v8:Type>xs:string</v8:Type>
						<v8:StringQualifiers>
							<v8:Length>0</v8:Length>
							<v8:AllowedLength>Variable</v8:AllowedLength>
						</v8:StringQualifiers>
					</Type>
					<PasswordMode>false</PasswordMode>
					<Format/>
					<EditFormat/>
					<ToolTip>
						<v8:item>
							<v8:lang>ru</v8:lang>
							<v8:content>Произвольный текст.</v8:content>
						</v8:item>
					</ToolTip>
					<MarkNegatives>false</MarkNegatives>
					<Mask/>
					<MultiLine>false</MultiLine>
					<ExtendedEdit>false</ExtendedEdit>
					<MinValue xsi:nil="true"/>
					<MaxValue xsi:nil="true"/>
					<FillFromFillingValue>false</FillFromFillingValue>
					<FillValue xsi:type="xs:string"/>
					<FillChecking>DontCheck</FillChecking>
					<ChoiceFoldersAndItems>Items</ChoiceFoldersAndItems>
					<ChoiceParameterLinks/>
					<ChoiceParameters/>
					<QuickChoice>Auto</QuickChoice>
					<CreateOnInput>Auto</CreateOnInput>
					<ChoiceForm/>
					<LinkByType/>
					<ChoiceHistoryOnInput>Auto</ChoiceHistoryOnInput>
					<Indexing>DontIndex</Indexing>
					<FullTextSearch>Use</FullTextSearch>
				</Properties>
			</Attribute>
			<Attribute uuid="224b6330-4cf7-45e7-b1e1-3d56bf167e19">
				<Properties>
					<Name>Склад</Name>
					<Synonym>
						<v8:item>
							<v8:lang>ru</v8:lang>
							<v8:content>Склад</v8:content>
						</v8:item>
					</Synonym>
					<Comment/>
					<Type>
						<v8:Type>cfg:CatalogRef.Склады</v8:Type>
					</Type>
					<PasswordMode>false</PasswordMode>
					<Format/>
					<EditFormat/>
					<ToolTip>
						<v8:item>
							<v8:lang>ru</v8:lang>
							<v8:content>Склад, по которому блокируются ячейки.</v8:content>
						</v8:item>
					</ToolTip>
					<MarkNegatives>false</MarkNegatives>
					<Mask/>
					<MultiLine>false</MultiLine>
					<ExtendedEdit>false</ExtendedEdit>
					<MinValue xsi:nil="true"/>
					<MaxValue xsi:nil="true"/>
					<FillFromFillingValue>false</FillFromFillingValue>
					<FillValue xsi:nil="true"/>
					<FillChecking>ShowError</FillChecking>
					<ChoiceFoldersAndItems>Items</ChoiceFoldersAndItems>
					<ChoiceParameterLinks/>
					<ChoiceParameters>
						<app:item name="Отбор.НастройкаАдресногоХранения">
							<app:value xsi:type="v8:FixedArray">
								<v8:Value xsi:type="xr:DesignTimeRef">Enum.НастройкиАдресногоХранения.EnumValue.ЯчейкиОстатки</v8:Value>
								<v8:Value xsi:type="xr:DesignTimeRef">Enum.НастройкиАдресногоХранения.EnumValue.ОпределяетсяНастройкамиПомещения</v8:Value>
							</app:value>
						</app:item>
					</ChoiceParameters>
					<QuickChoice>Auto</QuickChoice>
					<CreateOnInput>Auto</CreateOnInput>
					<ChoiceForm/>
					<LinkByType/>
					<ChoiceHistoryOnInput>Auto</ChoiceHistoryOnInput>
					<Indexing>DontIndex</Indexing>
					<FullTextSearch>Use</FullTextSearch>
				</Properties>
			</Attribute>
			<Attribute uuid="093db94e-feb1-403a-965b-b1e13088b4de">
				<Properties>
					<Name>Помещение</Name>
					<Synonym>
						<v8:item>
							<v8:lang>ru</v8:lang>
							<v8:content>Помещение</v8:content>
						</v8:item>
					</Synonym>
					<Comment/>
					<Type>
						<v8:Type>cfg:CatalogRef.СкладскиеПомещения</v8:Type>
					</Type>
					<PasswordMode>false</PasswordMode>
					<Format/>
					<EditFormat/>
					<ToolTip>
						<v8:item>
							<v8:lang>ru</v8:lang>
							<v8:content>Помещение, по которому блокируются ячейки.</v8:content>
						</v8:item>
					</ToolTip>
					<MarkNegatives>false</MarkNegatives>
					<Mask/>
					<MultiLine>false</MultiLine>
					<ExtendedEdit>false</ExtendedEdit>
					<MinValue xsi:nil="true"/>
					<MaxValue xsi:nil="true"/>
					<FillFromFillingValue>false</FillFromFillingValue>
					<FillValue xsi:nil="true"/>
					<FillChecking>ShowError</FillChecking>
					<ChoiceFoldersAndItems>Items</ChoiceFoldersAndItems>
					<ChoiceParameterLinks>
						<xr:Link>
							<xr:Name>Отбор.Владелец</xr:Name>
							<xr:DataPath xsi:type="xs:string">Document.УстановкаБлокировокЯчеек.Attribute.Склад</xr:DataPath>
							<xr:ValueChange>Clear</xr:ValueChange>
						</xr:Link>
					</ChoiceParameterLinks>
					<ChoiceParameters>
						<app:item name="Отбор.НастройкаАдресногоХранения">
							<app:value xsi:type="xr:DesignTimeRef">Enum.НастройкиАдресногоХранения.EnumValue.ЯчейкиОстатки</app:value>
						</app:item>
					</ChoiceParameters>
					<QuickChoice>Auto</QuickChoice>
					<CreateOnInput>Auto</CreateOnInput>
					<ChoiceForm/>
					<LinkByType/>
					<ChoiceHistoryOnInput>Auto</ChoiceHistoryOnInput>
					<Indexing>DontIndex</Indexing>
					<FullTextSearch>Use</FullTextSearch>
				</Properties>
			</Attribute>
			<Form>ФормаДокумента</Form>
			<Form>ФормаСписка</Form>
			<Form>ФормаВыбора</Form>
			<TabularSection uuid="98da95d2-0bbf-464d-ba2f-c14580c76c20">
				<InternalInfo>
					<xr:GeneratedType name="DocumentTabularSection.УстановкаБлокировокЯчеек.СкладскиеЯчейки" category="TabularSection">
						<xr:TypeId>24a67060-3e83-4073-a8e1-b1c555c00512</xr:TypeId>
						<xr:ValueId>e2b9b6c5-9a1a-4ff9-aa4b-a4ee2982bc54</xr:ValueId>
					</xr:GeneratedType>
					<xr:GeneratedType name="DocumentTabularSectionRow.УстановкаБлокировокЯчеек.СкладскиеЯчейки" category="TabularSectionRow">
						<xr:TypeId>b91b579d-f70f-4f9e-90af-e95be0458e60</xr:TypeId>
						<xr:ValueId>b333f7dd-84a5-420f-b2dc-84750fb9d185</xr:ValueId>
					</xr:GeneratedType>
				</InternalInfo>
				<Properties>
					<Name>СкладскиеЯчейки</Name>
					<Synonym>
						<v8:item>
							<v8:lang>ru</v8:lang>
							<v8:content>Складские ячейки</v8:content>
						</v8:item>
					</Synonym>
					<Comment/>
					<ToolTip>
						<v8:item>
							<v8:lang>ru</v8:lang>
							<v8:content>Блокируемые ячейки.</v8:content>
						</v8:item>
					</ToolTip>
					<FillChecking>ShowError</FillChecking>
					<StandardAttributes>
						<xr:StandardAttribute name="LineNumber">
							<xr:LinkByType/>
							<xr:FillChecking>DontCheck</xr:FillChecking>
							<xr:MultiLine>false</xr:MultiLine>
							<xr:FillFromFillingValue>false</xr:FillFromFillingValue>
							<xr:CreateOnInput>Auto</xr:CreateOnInput>
							<xr:MaxValue xsi:nil="true"/>
							<xr:ToolTip/>
							<xr:ExtendedEdit>false</xr:ExtendedEdit>
							<xr:Format/>
							<xr:ChoiceForm/>
							<xr:QuickChoice>Auto</xr:QuickChoice>
							<xr:ChoiceHistoryOnInput>Auto</xr:ChoiceHistoryOnInput>
							<xr:EditFormat/>
							<xr:PasswordMode>false</xr:PasswordMode>
							<xr:MarkNegatives>false</xr:MarkNegatives>
							<xr:MinValue xsi:nil="true"/>
							<xr:Synonym/>
							<xr:Comment/>
							<xr:FullTextSearch>Use</xr:FullTextSearch>
							<xr:ChoiceParameterLinks/>
							<xr:FillValue xsi:nil="true"/>
							<xr:Mask/>
							<xr:ChoiceParameters/>
						</xr:StandardAttribute>
					</StandardAttributes>
				</Properties>
				<ChildObjects>
					<Attribute uuid="3367b145-bbee-4e38-b813-fce9e3b2c420">
						<Properties>
							<Name>Ячейка</Name>
							<Synonym>
								<v8:item>
									<v8:lang>ru</v8:lang>
									<v8:content>Ячейка</v8:content>
								</v8:item>
							</Synonym>
							<Comment/>
							<Type>
								<v8:Type>cfg:CatalogRef.СкладскиеЯчейки</v8:Type>
							</Type>
							<PasswordMode>false</PasswordMode>
							<Format/>
							<EditFormat/>
							<ToolTip>
								<v8:item>
									<v8:lang>ru</v8:lang>
									<v8:content>Блокируемая складская ячейка.</v8:content>
								</v8:item>
							</ToolTip>
							<MarkNegatives>false</MarkNegatives>
							<Mask/>
							<MultiLine>false</MultiLine>
							<ExtendedEdit>false</ExtendedEdit>
							<MinValue xsi:nil="true"/>
							<MaxValue xsi:nil="true"/>
							<FillChecking>ShowError</FillChecking>
							<ChoiceFoldersAndItems>Items</ChoiceFoldersAndItems>
							<ChoiceParameterLinks>
								<xr:Link>
									<xr:Name>Отбор.Помещение</xr:Name>
									<xr:DataPath xsi:type="xs:string">Document.УстановкаБлокировокЯчеек.Attribute.Помещение</xr:DataPath>
									<xr:ValueChange>Clear</xr:ValueChange>
								</xr:Link>
								<xr:Link>
									<xr:Name>Отбор.Владелец</xr:Name>
									<xr:DataPath xsi:type="xs:string">Document.УстановкаБлокировокЯчеек.Attribute.Склад</xr:DataPath>
									<xr:ValueChange>Clear</xr:ValueChange>
								</xr:Link>
							</ChoiceParameterLinks>
							<ChoiceParameters/>
							<QuickChoice>Auto</QuickChoice>
							<CreateOnInput>Auto</CreateOnInput>
							<ChoiceForm/>
							<LinkByType/>
							<ChoiceHistoryOnInput>Auto</ChoiceHistoryOnInput>
							<Indexing>DontIndex</Indexing>
							<FullTextSearch>Use</FullTextSearch>
						</Properties>
					</Attribute>
					<Attribute uuid="3b5812e0-5b5a-46d9-9fe0-18546e967e01">
						<Properties>
							<Name>ТипБлокировки</Name>
							<Synonym>
								<v8:item>
									<v8:lang>ru</v8:lang>
									<v8:content>Тип блокировки</v8:content>
								</v8:item>
							</Synonym>
							<Comment/>
							<Type>
								<v8:Type>cfg:EnumRef.ТипыБлокировокСкладскихЯчеек</v8:Type>
							</Type>
							<PasswordMode>false</PasswordMode>
							<Format/>
							<EditFormat/>
							<ToolTip>
								<v8:item>
									<v8:lang>ru</v8:lang>
									<v8:content>Устанавливаемый тип блокировки ячейки.</v8:content>
								</v8:item>
							</ToolTip>
							<MarkNegatives>false</MarkNegatives>
							<Mask/>
							<MultiLine>false</MultiLine>
							<ExtendedEdit>false</ExtendedEdit>
							<MinValue xsi:nil="true"/>
							<MaxValue xsi:nil="true"/>
							<FillChecking>ShowError</FillChecking>
							<ChoiceFoldersAndItems>Items</ChoiceFoldersAndItems>
							<ChoiceParameterLinks/>
							<ChoiceParameters/>
							<QuickChoice>Auto</QuickChoice>
							<CreateOnInput>Auto</CreateOnInput>
							<ChoiceForm/>
							<LinkByType/>
							<ChoiceHistoryOnInput>Auto</ChoiceHistoryOnInput>
							<Indexing>DontIndex</Indexing>
							<FullTextSearch>Use</FullTextSearch>
						</Properties>
					</Attribute>
					<Attribute uuid="e9e87d6c-69d9-439b-bc36-1e6369f35135">
						<Properties>
							<Name>Отменено</Name>
							<Synonym>
								<v8:item>
									<v8:lang>ru</v8:lang>
									<v8:content>Отменено</v8:content>
								</v8:item>
							</Synonym>
							<Comment/>
							<Type>
								<v8:Type>xs:boolean</v8:Type>
							</Type>
							<PasswordMode>false</PasswordMode>
							<Format/>
							<EditFormat/>
							<ToolTip>
								<v8:item>
									<v8:lang>ru</v8:lang>
									<v8:content>Признак отмены установленной документом блокировки.</v8:content>
								</v8:item>
							</ToolTip>
							<MarkNegatives>false</MarkNegatives>
							<Mask/>
							<MultiLine>false</MultiLine>
							<ExtendedEdit>false</ExtendedEdit>
							<MinValue xsi:nil="true"/>
							<MaxValue xsi:nil="true"/>
							<FillChecking>DontCheck</FillChecking>
							<ChoiceFoldersAndItems>Items</ChoiceFoldersAndItems>
							<ChoiceParameterLinks/>
							<ChoiceParameters/>
							<QuickChoice>Auto</QuickChoice>
							<CreateOnInput>Auto</CreateOnInput>
							<ChoiceForm/>
							<LinkByType/>
							<ChoiceHistoryOnInput>Auto</ChoiceHistoryOnInput>
							<Indexing>DontIndex</Indexing>
							<FullTextSearch>Use</FullTextSearch>
						</Properties>
					</Attribute>
				</ChildObjects>
			</TabularSection>
		</ChildObjects>
	</Document>
</MetaDataObject>


text:
function ConvertTo-Base64 {
    <#
    .SYNOPSIS
    XXX

    .DESCRIPTION
    XXX

    .PARAMETER Data
    XXX

    .EXAMPLE
    XXX
    #>
    [CmdletBinding()]
    [OutputType([string])]
    param(
        [Parameter(Mandatory=$true,ValueFromPipeline=$True,ValueFromPipelinebyPropertyName=$True)]
        [ValidateNotNullOrEmpty()]
        [string[]]
        $Data
    )

    BEGIN {
        Write-Verbose -Message ('[{0}] Converting to Base64 encoding' -f $MyInvocation.MyCommand)
        $MultiLineData = @()
    }

    PROCESS {
        Write-Debug -Message ('[{0}] Adding next line to input array' -f $MyInvocation.MyCommand)
        $MultiLineData += @($Data)
    }

    END {
        Write-Debug -Message ('[{0}] Joining input array using \r\n' -f $MyInvocation.MyCommand)
        $RawData = $MultiLineData -join "`r`n"

        $ByteData = [system.Text.Encoding]::Unicode.GetBytes($RawData)
        Write-Debug -Message ('[{0}] Obtained byte data of type <{1}>' -f $MyInvocation.MyCommand, $ByteData.GetType().BaseType)

        $Base64Data = [System.Convert]::ToBase64String($ByteData)
        Write-Debug -Message ('[{0}] Obtained Base64 encoded data of type <{1}>' -f $MyInvocation.MyCommand, $Base64Data.GetType().BaseType)

        Write-Verbose -Message ('[{0}] Done and returning Base64 encoded data' -f $MyInvocation.MyCommand)
        return $Base64Data
    }
}

function ConvertFrom-Base64 {
    <#
    .SYNOPSIS
    XXX

    .DESCRIPTION
    XXX

    .PARAMETER Data
    XXX

    .EXAMPLE
    XXX
    #>
    [CmdletBinding()]
    [OutputType([string])]
    param(
        [Parameter(Mandatory=$true,ValueFromPipeline=$True,ValueFromPipelinebyPropertyName=$True)]
        [ValidateNotNullOrEmpty()]
        [string]
        $Data
    )

    Write-Verbose -Message ('[{0}] Converting from Base64 encoding' -f $MyInvocation.MyCommand)

    $ByteData = [System.Convert]::FromBase64String($Data)
    Write-Debug -Message ('[{0}] Obtained byte data of type <{1}>' -f $MyInvocation.MyCommand, $ByteData.GetType().BaseType)

    $RawData = [System.Text.Encoding]::Unicode.GetString($ByteData)
    Write-Debug -Message ('[{0}] Obtained data with original encoding of type <{1}>' -f $MyInvocation.MyCommand, $RawData.GetType().BaseType)

    Write-Verbose -Message ('[{0}] Done and returning data' -f $MyInvocation.MyCommand)
    $RawData
}

function ConvertTo-UnattendXmlPassword {
    <#
    .SYNOPSIS
    XXX

    .DESCRIPTION
    XXX

    .PARAMETER Password
    XXX

    .EXAMPLE
    XXX
    #>
    [CmdletBinding()]
    [OutputType([string])]
    param(
        [Parameter(Mandatory,ValueFromPipeline)]
        [ValidateNotNullOrEmpty()]
        [string]
        $Password
    )

    return ConvertTo-Base64 -Data $Password
}

function ConvertFrom-UnattendXmlPassword {
    <#
    .SYNOPSIS
    XXX

    .DESCRIPTION
    XXX

    .PARAMETER Password
    XXX

    .EXAMPLE
    XXX
    #>
    [CmdletBinding()]
    [OutputType([string])]
    param(
        [Parameter(Mandatory,ValueFromPipeline)]
        [ValidateNotNullOrEmpty()]
        [string]
        $Password
    )

    return ConvertFrom-Base64 -Data $Password
}


text:
<!DOCTYPE html>

    <title>Stroop Test</title>
    <link rel="stylesheet" href="stroop.css" />
	<meta name="Title" content="Stroop Test" />
	<meta name="description" content="Research for Student Name" />

    <link rel='stylesheet' type='text/css' media='all' href='css/jquery-ui-custom.css' />
	<link rel='stylesheet' type='text/css' media='all' href='css/template.css' />

					Stroop Test Header

							<button class="submit ui-button ui-widget ui-state-default ui-corner-all ui-button-text-icon-secondary" id="announcement-ok">
								Ok

							</button>

						<button class="submit ui-button ui-widget ui-state-default ui-corner-all ui-button-text-icon-primary" id="back-agreement-button">

							Go back (to re-read the text)
						</button>
						<button class="submit ui-button ui-widget ui-state-default ui-corner-all ui-button-text-icon-primary" id="not-agreement-button">

							I do not agree
						</button>
						<button class="submit ui-button ui-widget ui-state-default ui-corner-all ui-button-text-icon-secondary" id="agreement-button">
							I agree

						</button>

						<button class="submit ui-button ui-widget ui-state-default ui-corner-all ui-button-text-icon-secondary" id="form-choice">
							Continue

						</button>

					<canvas id="c" width="600" height="500"></canvas>


text:
using System.Threading.Tasks;
using Microsoft.CodeAnalysis.Testing;
using Xunit;
using VerifyCS = Test.Utilities.CSharpCodeFixVerifier<
    Microsoft.NetCore.CSharp.Analyzers.Runtime.CSharpUseOrdinalStringComparisonAnalyzer,
    Microsoft.CodeAnalysis.Testing.EmptyCodeFixProvider>;
using VerifyVB = Test.Utilities.VisualBasicCodeFixVerifier<
    Microsoft.NetCore.VisualBasic.Analyzers.Runtime.BasicUseOrdinalStringComparisonAnalyzer,
    Microsoft.CodeAnalysis.Testing.EmptyCodeFixProvider>;

namespace Microsoft.NetCore.Analyzers.Runtime.UnitTests
{
    public class UseOrdinalStringComparisonTests
    {
        #region Helper methods

        private DiagnosticResult CSharpResult(int line, int column)
            => VerifyCS.Diagnostic()
                .WithLocation(line, column);

        private DiagnosticResult BasicResult(int line, int column)
            => VerifyVB.Diagnostic()
                .WithLocation(line, column);

        #endregion

        #region Diagnostic tests

        [Fact]
        public async Task CA1309CompareOverloadTestCSharp()
        {
            await VerifyCS.VerifyAnalyzerAsync(@"
using System;
using System.Globalization;

class C
{
    void Method()
    {
        string a = null, b = null;
        // wrong overload
        string.Compare(a, b);
        string.Compare(a, b, true);
        string.Compare(a, b, true, default(CultureInfo));
        string.Compare(a, b, default(CultureInfo), default(CompareOptions));
        string.Compare(a, 0, b, 0, 0);
        string.Compare(a, 0, b, 0, 0, true);
        string.Compare(a, 0, b, 0, 0, true, default(CultureInfo));
        string.Compare(a, 0, b, 0, 0, default(CultureInfo), default(CompareOptions));
        System.String.Compare(a, b);
        // right overload, wrong value
        string.Compare(a, b, StringComparison.CurrentCulture);
        string.Compare(a, 0, b, 0, 0, StringComparison.CurrentCulture);
        // right overload, right value
        string.Compare(a, b, StringComparison.Ordinal);
        string.Compare(a, b, StringComparison.OrdinalIgnoreCase);
        string.Compare(a, 0, b, 0, 0, StringComparison.Ordinal);
        string.Compare(a, 0, b, 0, 0, StringComparison.OrdinalIgnoreCase);
    }
}
",
                CSharpResult(11, 16),
                CSharpResult(12, 16),
                CSharpResult(13, 16),
                CSharpResult(14, 16),
                CSharpResult(15, 16),
                CSharpResult(16, 16),
                CSharpResult(17, 16),
                CSharpResult(18, 16),
                CSharpResult(19, 23),
                CSharpResult(21, 30),
                CSharpResult(22, 39));
        }

        [Fact]
        public async Task CA1309CompareOverloadTestBasic()
        {
            await VerifyVB.VerifyAnalyzerAsync(@"
Imports System
Imports System.Globalization

Class C
    Sub Method()
        Dim a As String
        Dim b As String
        Dim ci As CultureInfo
        Dim co As CompareOptions
        ' wrong overload
        String.Compare(a, b)
        String.Compare(a, b, True)
        String.Compare(a, b, True, ci)
        String.Compare(a, b, ci, co)
        String.Compare(a, 0, b, 0, 0)
        String.Compare(a, 0, b, 0, 0, True)
        String.Compare(a, 0, b, 0, 0, True, ci)
        String.Compare(a, 0, b, 0, 0, ci, co)
        System.String.Compare(a, b)
        ' right overload, wrong value
        String.Compare(a, b, StringComparison.CurrentCulture)
        String.Compare(a, 0, b, 0, 0, StringComparison.CurrentCulture)
        ' right overload, right value
        String.Compare(a, b, StringComparison.Ordinal)
        String.Compare(a, b, StringComparison.OrdinalIgnoreCase)
        String.Compare(a, 0, b, 0, 0, StringComparison.Ordinal)
        String.Compare(a, 0, b, 0, 0, StringComparison.OrdinalIgnoreCase)
    End Sub
End Class
",
                BasicResult(12, 16),
                BasicResult(13, 16),
                BasicResult(14, 16),
                BasicResult(15, 16),
                BasicResult(16, 16),
                BasicResult(17, 16),
                BasicResult(18, 16),
                BasicResult(19, 16),
                BasicResult(20, 23),
                BasicResult(22, 30),
                BasicResult(23, 39));
        }

        [Fact]
        public async Task CA1309EqualsOverloadTestCSharp()
        {
            await VerifyCS.VerifyAnalyzerAsync(@"
using System;

class C
{
    void Method()
    {
        string a = null, b = null;
        // wrong overload
        string.Equals(a, b); // (string, string) is bad
        // right overload, wrong value
        string.Equals(a, b, StringComparison.CurrentCulture);
        // right overload, right value
        string.Equals(a, b, StringComparison.Ordinal);
        string.Equals(a, b, StringComparison.OrdinalIgnoreCase);
        string.Equals(a, 15); // this is the (object, object) overload
    }
}
",
                CSharpResult(10, 16),
                CSharpResult(12, 29));
        }

        [Fact]
        public async Task CA1309EqualsOverloadTestBasic()
        {
            await VerifyVB.VerifyAnalyzerAsync(@"
Imports System

Class C
    Sub Method()
        Dim a As String, b As String
        ' wrong overload
        String.Equals(a, b) ' (String, String) is bad
        ' right overload, wrong value
        String.Equals(a, b, StringComparison.CurrentCulture)
        ' right overload, right value
        String.Equals(a, b, StringComparison.Ordinal)
        String.Equals(a, b, StringComparison.OrdinalIgnoreCase)
        String.Equals(a, 15) ' this is the (Object, Object) overload
    End Sub
End Class
",
                BasicResult(8, 16),
                BasicResult(10, 29));
        }

        [Fact]
        public async Task CA1309InstanceEqualsTestCSharp()
        {
            await VerifyCS.VerifyAnalyzerAsync(@"
using System;

class C
{
    void Method()
    {
        string a = null, b = null;
        // wrong overload
        a.Equals(b);
        // right overload, wrong value
        a.Equals(b, StringComparison.CurrentCulture);
        // right overload, right value
        a.Equals(b, StringComparison.Ordinal);
        a.Equals(b, StringComparison.OrdinalIgnoreCase);
        a.Equals(15); // this is the (object) overload
    }
}
",
                CSharpResult(10, 11),
                CSharpResult(12, 21));
        }

        [Fact]
        public async Task CA1309InstanceEqualsTestBasic()
        {
            await VerifyVB.VerifyAnalyzerAsync(@"
Imports System

Class C
    Sub Method()
        Dim a As String, b As String
        ' wrong overload
        a.Equals(b)
        ' right overload, wrong value
        a.Equals(b, StringComparison.CurrentCulture)
        ' right overload, right value
        a.Equals(b, StringComparison.Ordinal)
        a.Equals(b, StringComparison.OrdinalIgnoreCase)
        a.Equals(15) ' this is the (Object) overload
    End Sub
End Class
",
                BasicResult(8, 11),
                BasicResult(10, 21));
        }

        [Fact]
        public async Task CA1309OperatorOverloadTestCSharp_NoDiagnostic()
        {
            await VerifyCS.VerifyAnalyzerAsync(@"
using System;

class C
{
    void Method()
    {
        string a = null, b = null;
        if (a == b) { }
        if (a != b) { }
        if (a == null) { }
        if (null == a) { }
    }
}
");
        }

        [Fact]
        public async Task CA1309OperatorOverloadTestBasic_NoDiagnostic()
        {
            await VerifyVB.VerifyAnalyzerAsync(@"
Imports System

Class C
    Sub Method()
        Dim a As String, b As String
        If a = b Then
        End If
        If a <> b Then
        End If
        If a = Nothing Then
        End If
        If a Is Nothing Then
        End If
        If Nothing = a Then
        End If
    End Sub
End Class
");
        }

        [Fact]
        public async Task CA1309NotReallyCompareOrEqualsTestCSharp()
        {
            await VerifyCS.VerifyAnalyzerAsync(@"
class C
{
    void Method()
    {
        string s = null;

        // verify extension methods don't trigger
        if (s.Equals(1, 2, 3)) { }
        if (s.Compare(1, 2, 3)) { }

        // verify other static string methods don't trigger
        string.Format(s);

        // verify other instance string methods don't trigger
        s.EndsWith(s);
    }
}

static class Extensions
{
    public static bool Equals(this string s, int a, int b, int c) { return false; }
    public static bool Compare(this string s, int a, int b, int c) { return false; }
}
");
        }

        [Fact]
        public async Task CA1309NotReallyCompareOrEqualsTestBasic()
        {
            await VerifyVB.VerifyAnalyzerAsync(@"
Imports System.Runtime.CompilerServices

Class C
    Sub Method()
        Dim s As String

        ' verify extension methods don't trigger
        If s.Equals(1, 2, 3) Then
        End If
        If s.Compare(1, 2) Then
        End If

        ' verify other static string methods don't trigger
        String.Format(s)

        ' verify other instance string methods don't trigger
        s.EndsWith(s)
    End Sub
End Class

Module Extensions
    <Extension>
    Public Function Equals(s As String, a As Integer, b As Integer, c As Integer) As Boolean
        Return False
    End Function
    <Extension()>
    Public Function Compare(s As String, a As Integer, b As Integer) As Boolean
        Return False
    End Function
End Module
");
        }

        #endregion
    }
}


text:
title: Matthew's Instagram Feed
permalink: /social/instagram/
excerpt: "Hi. This is Matthew Graybosch's Instagram feed. You can follow him there if you like."
hideExcerpt: true
---

Hi. This is my Instagram feed. I'm pulling it using JavaScript so please be patient while your browser pulls the most recent posts. If you want to comment on a particular image, just click on it once it renders. Thanks for visiting!

{% js instafeed %}
{% raw %}

{% endraw %}

Instagram feed powered by instafeed.js.


text:
return function ()
  local core = require('core')()
  if #args ~= 2 then
    error("Usage: lit claim orgname")
  end
  assert(core.claim(args[2]))
end


text:
<!DOCTYPE html>

  <link href="http://gmpg.org/xfn/11" rel="profile">
  <meta http-equiv="content-type" content="text/html; charset=utf-8">

  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">

  <title>

      Continuous Scrum · Something or other

  </title>

  <link rel="stylesheet" href="/blog/css/poole.css">
  <link rel="stylesheet" href="/blog/css/syntax.css">
  <link rel="stylesheet" href="/blog/css/lanyon.css">
  <link rel="stylesheet" href="/blog/css/custom.css">
  <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
  <link rel="stylesheet" href="http://fonts.googleapis.com/css?family=PT+Serif:400,400italic,700|PT+Sans:400">

  <link rel="apple-touch-icon-precomposed" sizes="144x144" href="/blog/assets/apple-touch-icon-144-precomposed.png">
  <link rel="shortcut icon" href="/blog/assets/favicon.ico">

  <link rel="alternate" type="application/rss+xml" title="RSS" href="/blog/index.xml">

<input type="checkbox" class="sidebar-checkbox" id="sidebar-checkbox">

The musings of a software engineer turned product manager turned software engineering manager.

        Home
        Posts

                About

        RSS feed
        GitHub project

© 2015 Lars de Ridder. All rights reserved.

                Something or other

Continuous Scrum

  Jan 30 2015

Scrum is a honkin' great idea. It takes the ideas of agile and puts them into an easy to apply package. When used right, it improves communication within the team, it will allow you to iteratively develop fairly easily and will continue improving your process.

However, it's not without disadvantages. Let's have a look.

Sprints decrease productivity

Well, in a certain sense at least. When you come from an unpolished cowboy style of developing, it will definitely increase productivity, although most of the gain will come from improving the focus of your team. However, when your team is already working on the right things in a disciplined way, the days towards the end of a sprint are much less productive than the others.

Why is this? I've observed a few reasons.

Too little time for starting the next thing. If you finish all tasks for the current sprint before schedule and have some time left, the temptation is strong to just wait for the next sprint. It's easier to follow the regular process than to try to start something earlier. This is made worse by the fact that the weekend between sprints is seen as a true period of rest, with no work from Friday to be carried over to Monday. That's a comforting thing to keep.

There no motivation for doing more than forecasted. Granted, it's the job of the Scrum master to avoid this, but this can be very hard. It's often very difficult to tell the difference between whether people can't do more or just don't want to.

Your team, whether we want it to or not, is often judged by its capacity to deliver what they said they would deliver. There's only a limited incentive to do more.

Continually working in sprints limits creativity and innovation

A well oiled Scrum process is repeatable and predictable. Everything that is forecasted to happen will happen, and if it doesn't, the exception is communicated timely and properly. If you get to this point, you did a great job. However, you should be aware that you also just killed (or at least strongly reduced) the potential for random innovation. That's what process does; instead of being able to just jump on some promising idea and hack together a prototype, you have to think of the commitment, ask the product owner for permission, and basically jump through some hoops that slowly but surely beat all motivation out of you, one hoop at a time.

Usually the trade-off is worth it, if what you get back is focus and predictability. However, if your business depends on a brilliant insight once in a while from someone within the team, you might be in trouble. There are solutions for this, such as spikes, but that's again trying to formalize something that is hard to formalize.

So what should we do?

That's a good question. You want to allow your team the freedom to think creatively, and you want to maximize productivity, without losing focus. The bad news is that it won't be perfectly possible. However, I feel that the problems are mainly caused by structuring all development work around sprints. While iterating is essential to any decent software process, iterating with your entire team is a bit heavy handed.

Alternative: Continuous Scrum

So the idea I'm playing with is that of a Continuous Scrum. The only thing that this would change compared to the pure Scrum is that it removes the sprint planning. When you are done with a task, you start with the next, and that's it. You do standups every day, you have a retrospective at the end of every second week, and you do all other things that you normally would do, but you just don't plan for a sprint anymore. If you're familiar with Kanban, I see Continuous Scrum as a mix between Kanban and Scrum.

The advantages should be clear. The pressure on work is now evenly distributed as there is no "end of sprint" moment, so productivity should be equal. Furthermore, as there is no need to start and finish your work with the rest of the team, there's more flexibility to tailoring tasks in an ad hoc fashion to individuals, and as such creativity should benefit.

That sounds great! Have you tried it?

Sadly, not yet. The reason we haven't tried it in my company yet is that it does have its downsides. Interestingly enough, they are all related to discipline.

For starters, delivery. With a sprint, you are forced to finish and deliver your work after two weeks. In a Continuous Scrum process, there's no such point. But you should of course iteratively keep delivering. This can be mitigated however using the agile release train concept, but your engineers should still work towards delivering as often as possible.

Furthermore, the step of getting a task from the backlog is suddenly now distributed. This can cause starvation on the hard tasks, if everyone skips them. During sprint planning, peer pressure (and pressure from the product owner) mitigates this, but Continuous Scrum has no such incentive. A possible solution could be to have a central point of contact who hands out tasks, but that doesn't seem ideal. Another idea is to do a weekly planning session, and only those that are running towards the end of their task attend to estimate and take on new tasks. But I haven't worked this one out yet.

Finally, you distribute ownership even more. It's a hard problem to solve in regular teams already, to get the team to own the work, instead of the individuals. This makes it worse. There's no single moment where everyone sits together and decides, as a group, which tasks to tackle in the coming weeks. But you do want the team to take this ownership as a group, at the very least to stimulate collaboration. If you're struggling with this already in your regular Scrum process, you probably shouldn't bother with Continuous Scrum.

If you do have a team however that is disciplined, takes responsibility as a group and is yearning for the chance to be more productive and creative, this just might be the ticket.


text:
from google.cloud import contentwarehouse_v1

def sample_search_documents():
    # Create a client
    client = contentwarehouse_v1.DocumentServiceClient()

    # Initialize request argument(s)
    request = contentwarehouse_v1.SearchDocumentsRequest(
        parent="parent_value",
    )

    # Make the request
    page_result = client.search_documents(request=request)

    # Handle the response
    for response in page_result:
        print(response)

# [END contentwarehouse_v1_generated_DocumentService_SearchDocuments_sync]


text:
"""Tests for ACS/HRC."""

import subprocess
import pytest

from ..helpers import BaseACS

class TestMosaic(BaseACS):
    """
    Process HRC mosaic datasets.
    """
    detector = 'hrc'

    ignore_keywords = ['filename', 'date', 'iraf-tlm', 'fitsdate',
                       'opus_ver', 'cal_ver', 'proctime', 'history',
                       'bitpix', 'naxis', 'extend', 'simple']

    def test_4point_mosaic(self):
        """
        Process an HRC mosaic dataset using the standard HRC-MOSAIC-BOX
        pattern with CR-SPLIT=1 at each of the 4 dither positions.

        .. note:: This was ``hrc_asn1``.

        """
        rootname = 'j6m901020'
        asn_file = rootname + '_asn.fits'

        # Prepare input files.
        self.get_input_file(asn_file)

        # Run CALACS
        subprocess.call(['calacs.e', asn_file, '-v'])

        # Compare results
        outputs = [('j6m901bzq_flt.fits', 'j6m901bzq_flt_ref.fits'),
                   ('j6m901c3q_flt.fits', 'j6m901c3q_flt_ref.fits'),
                   ('j6m901d9q_flt.fits', 'j6m901d9q_flt_ref.fits'),
                   ('j6m901deq_flt.fits', 'j6m901deq_flt_ref.fits')]
        self.compare_outputs(outputs, ignore_keywords_overwrite=TestMosaic.ignore_keywords)

    def test_3point_mosaic(self):
        """
        Process an HRC mosaic dataset using 3 dither positions with
        NUM_EXP=2 (RPT-OBS) at each of the dither positions and only
        DQICORR, BLEVCORR, BIASCORR, DARKCORR, FLATCORR, PHOTCORR,
        RPTCORR, and DITHCORR are set to PERFORM.

        .. note:: This was ``hrc_asn2``.
        """

        rootname = 'j8cd02011'
        asn_file = rootname + '_asn.fits'

        # Prepare input files.
        self.get_input_file(asn_file)

        # Run CALACS
        subprocess.call(['calacs.e', asn_file, '-v'])

        # Compare results
        outputs = [('j8cd02011_crj.fits', 'j8cd02011_sfl_ref.fits'),
                   ('j8cd020a1_crj.fits', 'j8cd020a1_sfl_ref.fits'),
                   ('j8cd020k1_crj.fits', 'j8cd020k1_sfl_ref.fits')]
        self.compare_outputs(outputs, ignore_keywords_overwrite=TestMosaic.ignore_keywords)


text:
package com.github.openwebnet.view.device;

import android.os.Bundle;
import android.util.SparseArray;
import android.view.View;
import android.widget.AdapterView;
import android.widget.EditText;
import android.widget.Spinner;
import android.widget.TextView;

import com.github.niqdev.openwebnet.message.Automation;
import com.github.openwebnet.R;
import com.github.openwebnet.component.Injector;
import com.github.openwebnet.model.AutomationModel;
import com.github.openwebnet.model.RealmModel;
import com.github.openwebnet.service.AutomationService;
import com.google.common.collect.Lists;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.List;

import javax.inject.Inject;

import butterknife.BindString;
import butterknife.BindView;
import butterknife.ButterKnife;
import rx.functions.Action0;
import rx.functions.Action1;

public class AutomationActivity extends AbstractDeviceActivity {

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

    @Inject
    AutomationService automationService;

    @BindView(R.id.editTextAutomationName)
    EditText editTextAutomationName;

    @BindView(R.id.editTextAutomationWhere)
    EditText editTextAutomationWhere;

    @BindView(R.id.editTextAutomationBus)
    EditText editTextAutomationBus;

    @BindView(R.id.textViewAutomationPrefix)
    TextView textViewAutomationPrefix;

    @BindView(R.id.textViewAutomationSuffix)
    TextView textViewAutomationSuffix;

    @BindView(R.id.textViewAutomationPrefixBus)
    TextView textViewAutomationPrefixBus;

    @BindView(R.id.textViewAutomationInfo)
    TextView textViewAutomationInfo;

    @BindView(R.id.textViewAutomationInfoBus)
    TextView textViewAutomationInfoBus;

    @BindView(R.id.spinnerAutomationType)
    Spinner spinnerAutomationType;

    @BindString(R.string.validation_bad_value)
    String validationBadValue;

    private SparseArray<Automation.Type> automationTypeArray;

    private String automationUuid;

    private boolean initAutomationTypeFirstTime = true;
    private boolean initBusFirstTime = true;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_automation);
        getSupportActionBar().setDisplayHomeAsUpEnabled(true);

        Injector.getApplicationComponent().inject(this);
        ButterKnife.bind(this);

        initSpinnerEnvironment();
        initSpinnerGateway();
        initSpinnerAutomationType();
        initEditAutomation();
    }

    private void initSpinnerAutomationType() {
        automationTypeArray = initSparseArray(Lists.newArrayList(
            Automation.Type.GENERAL,
            Automation.Type.GENERAL_BUS,
            Automation.Type.AREA,
            Automation.Type.AREA_BUS,
            Automation.Type.GROUP,
            Automation.Type.GROUP_BUS,
            Automation.Type.POINT_TO_POINT,
            Automation.Type.POINT_TO_POINT_BUS
        ));

        List<String> automationTypeLabels = Lists.newArrayList(
            getString(R.string.device_label_general),
            getString(R.string.device_label_general_bus),
            getString(R.string.device_label_area),
            getString(R.string.device_label_area_bus),
            getString(R.string.device_label_group),
            getString(R.string.device_label_group_bus),
            getString(R.string.automation_label_point_to_point),
            getString(R.string.automation_label_point_to_point_bus)
        );
        initSpinnerAdapter(spinnerAutomationType, automationTypeLabels);

        spinnerAutomationType.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
            @Override
            public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) {
                initAutomationType(automationTypeArray.get(spinnerAutomationType.getSelectedItemPosition()));
            }

            @Override
            public void onNothingSelected(AdapterView<?> adapterView) {}
        });
    }

    private void initAutomationType(Automation.Type type) {
        Action1<Integer> initView = visibility -> {
            editTextAutomationWhere.setVisibility(visibility);
            textViewAutomationSuffix.setVisibility(visibility);
            textViewAutomationInfo.setVisibility(visibility);
        };

        Action1<String> initWhereValue = value -> {
            editTextAutomationWhere.setError(null);

            // initialize all subsequent calls except the first time
            if (!initAutomationTypeFirstTime) {
                editTextAutomationWhere.setText(value);
            }
            // from now on every time reset editTextAutomationWhere
            initAutomationTypeFirstTime = false;
        };

        Action1<Integer> initViewBus = visibility -> {
            editTextAutomationBus.setVisibility(visibility);
            textViewAutomationPrefixBus.setVisibility(visibility);
            textViewAutomationInfoBus.setVisibility(visibility);

            editTextAutomationBus.setError(null);

            // initialize all subsequent calls except the first time
            if (!initBusFirstTime) {
                editTextAutomationBus.setText(Automation.NO_BUS);
            }
            // from now on every time reset editTextAutomationBus
            initBusFirstTime = false;
        };

        Action0 hideBusView = () -> {
            initViewBus.call(View.GONE);
            textViewAutomationInfoBus.setVisibility(View.INVISIBLE);
            editTextAutomationBus.setText(Automation.NO_BUS);
        };

        switch (type) {
            case GENERAL:
                textViewAutomationPrefix.setText(getString(R.string.automation_value_general));
                initView.call(View.GONE);
                textViewAutomationInfo.setVisibility(View.INVISIBLE);
                initWhereValue.call(Automation.WHERE_GENERAL_VALUE);

                hideBusView.call();
                break;
            case GENERAL_BUS:
                textViewAutomationPrefix.setText(getString(R.string.automation_value_general_bus));
                initView.call(View.GONE);
                textViewAutomationInfo.setVisibility(View.INVISIBLE);
                initWhereValue.call(Automation.WHERE_GENERAL_VALUE);
                textViewAutomationSuffix.setVisibility(View.VISIBLE);

                initViewBus.call(View.VISIBLE);
                break;
            case AREA:
                textViewAutomationPrefix.setText(getString(R.string.automation_prefix_default));
                textViewAutomationInfo.setText(getString(R.string.automation_info_area));
                initView.call(View.VISIBLE);
                initWhereValue.call("");

                hideBusView.call();
                break;
            case AREA_BUS:
                textViewAutomationPrefix.setText(getString(R.string.automation_prefix_default));
                textViewAutomationInfo.setText(getString(R.string.automation_info_area));
                initView.call(View.VISIBLE);
                initWhereValue.call("");

                initViewBus.call(View.VISIBLE);
                break;
            case GROUP:
                textViewAutomationPrefix.setText(getString(R.string.automation_prefix_group));
                textViewAutomationInfo.setText(getString(R.string.automation_info_group));
                initView.call(View.VISIBLE);
                initWhereValue.call("");

                hideBusView.call();
                break;
            case GROUP_BUS:
                textViewAutomationPrefix.setText(getString(R.string.automation_prefix_group));
                textViewAutomationInfo.setText(getString(R.string.automation_info_group));
                initView.call(View.VISIBLE);
                initWhereValue.call("");

                initViewBus.call(View.VISIBLE);
                break;
            case POINT_TO_POINT:
                textViewAutomationPrefix.setText(getString(R.string.automation_prefix_default));
                textViewAutomationInfo.setText(getString(R.string.automation_info_point_to_point));
                initView.call(View.VISIBLE);
                initWhereValue.call("");

                hideBusView.call();
                break;
            case POINT_TO_POINT_BUS:
                textViewAutomationPrefix.setText(getString(R.string.automation_prefix_default));
                textViewAutomationInfo.setText(getString(R.string.automation_info_point_to_point));
                initView.call(View.VISIBLE);
                initWhereValue.call("");

                initViewBus.call(View.VISIBLE);
                break;
            default: {
                throw new IllegalArgumentException("invalid automation type");
            }
        }
    }

    private void initEditAutomation() {
        automationUuid = getIntent().getStringExtra(RealmModel.FIELD_UUID);
        log.debug("initEditAutomation: {}", automationUuid);
        if (automationUuid != null) {
            automationService.findById(automationUuid).subscribe(automation -> {
                spinnerAutomationType.setSelection(findSelectedItem(automationTypeArray).apply(automation.getAutomationType()));

                editTextAutomationName.setText(String.valueOf(automation.getName()));
                editTextAutomationWhere.setText(String.valueOf(automation.getWhere()));
                editTextAutomationBus.setText(String.valueOf(automation.getBus()));

                selectEnvironment(automation.getEnvironmentId());
                selectGateway(automation.getGatewayUuid());
                setFavourite(automation.isFavourite());
            });
        } else {
            // default must be "Point to Point"
            spinnerAutomationType.setSelection(6);
        }
    }

    protected Automation.Type getSelectedAutomationType() {
        return automationTypeArray.get(spinnerAutomationType.getSelectedItemPosition());
    }

    @Override
    protected void onMenuSave() {
        log.info("name: {}", editTextAutomationName.getText());
        log.info("where: {}", editTextAutomationWhere.getText());
        log.info("type: {}", getSelectedAutomationType());
        log.info("bus: {}", editTextAutomationBus.getText());
        log.info("environment: {}", getSelectedEnvironment());
        log.info("gateway: {}", getSelectedGateway());
        log.info("favourite: {}", isFavourite());

        if (isValidAutomation()) {
            if (automationUuid == null) {
                automationService.add(parseAutomation()).subscribe(uuid -> finish());
            } else {
                automationService.update(parseAutomation())
                    .doOnCompleted(this::finish)
                    .subscribe();
            }
        }
    }

    private boolean isValidAutomation() {
        return isValidRequired(editTextAutomationName) &&
            isValidRequired(editTextAutomationWhere) &&
            isValidAutomationType() &&
            isValidWhereRange() &&
            isValidDeviceEnvironment() &&
            isValidDeviceGateway();
    }

    protected boolean isValidAutomationType() {
        return isValidRequired((TextView) spinnerAutomationType.getSelectedView());
    }

    private boolean isValidWhereRange() {
        boolean isValid = Automation.isValidRangeType(
            utilityService.sanitizedText(editTextAutomationWhere),
            getSelectedAutomationType(),
            utilityService.sanitizedText(editTextAutomationBus)
        );
        if (!isValid) {
            editTextAutomationWhere.setError(validationBadValue);
            editTextAutomationBus.setError(validationBadValue);
            editTextAutomationWhere.requestFocus();
            editTextAutomationBus.requestFocus();
        }
        return isValid;
    }

    private AutomationModel parseAutomation() {
        return (automationUuid == null ? AutomationModel.addBuilder() : AutomationModel.updateBuilder(automationUuid))
            .name(utilityService.sanitizedText(editTextAutomationName))
            .where(editTextAutomationWhere.getText().toString())
            .type(getSelectedAutomationType())
            .bus(editTextAutomationBus.getText().toString())
            .environment(getSelectedEnvironment().getId())
            .gateway(getSelectedGateway().getUuid())
            .favourite(isFavourite())
            .build();
    }

}


text:
package org.sleuthkit.autopsy.timeline.zooming;

import org.openide.util.NbBundle;

/**
 *
 */
public enum DescriptionLOD {

    SHORT(NbBundle.getMessage(DescriptionLOD.class, "DescriptionLOD.short")),
    MEDIUM(NbBundle.getMessage(DescriptionLOD.class, "DescriptionLOD.medium")),
    FULL(NbBundle.getMessage(DescriptionLOD.class, "DescriptionLOD.full"));

    private final String displayName;

    public String getDisplayName() {
        return displayName;
    }

    private DescriptionLOD(String displayName) {
        this.displayName = displayName;
    }

    public DescriptionLOD next() {
        try {
            return values()[ordinal() + 1];
        } catch (ArrayIndexOutOfBoundsException e) {
            return null;
        }
    }

    public DescriptionLOD previous() {
        try {
            return values()[ordinal() - 1];
        } catch (ArrayIndexOutOfBoundsException e) {
            return null;
        }
    }
}


text:
package com.connect_group.test.genericbean;

import org.junit.runner.RunWith;
import org.junit.runners.Suite;

@RunWith(Suite.class)
@Suite.SuiteClasses({GenericBeanGetterShouldReturnSetterTests.class, GenericBeanIsSerializableTests.class})
public class GenericBeanTestSuite {}


text: select c_date, c_integer, avg(c_integer) over() from j1 order by 1, 2, 3;


text:
package ambex

import (
	v2cache "github.com/datawire/ambassador/pkg/envoy-control-plane/cache/v2"
)

// FastpathSnapshot holds envoy configuration that bypasses python.
type FastpathSnapshot struct {
	Snapshot  *v2cache.Snapshot
	Endpoints *Endpoints
}


text:
using System;
using System.Linq;
using System.Runtime.Serialization;
using Rainbow.Storage.Sc.Deserialization;

namespace Unicorn
{
	[Serializable]
	public class DeserializationAggregateException : Exception
	{
		public DeserializationAggregateException()
		{
			InnerExceptions = new DeserializationException[0];
		}

		public DeserializationAggregateException(string message) : base(message)
		{
			InnerExceptions = new DeserializationException[0];
		}

		public DeserializationAggregateException(string message, Exception inner) : base(message, inner)
		{
			InnerExceptions = new DeserializationException[0];
		}

		public DeserializationException[] InnerExceptions { get; set; }

		public override string Message
		{
			get { return base.Message + " (" + InnerExceptions.Length + " inner failures)\r\n" + string.Join("\r\n\r\n", InnerExceptions.Select(x => x.Message)); }
		}

		protected DeserializationAggregateException(
			SerializationInfo info,
			StreamingContext context) : base(info, context)
		{
		}
	}
}


text:
ACCEPTED

#### According to
Index Fungorum

#### Published in
Ceské Houby 3: 533 (1921)

#### Original name
Naucoria straminea Velen.

### Remarks
null


text:
package geo_test

import (
	"testing"

	"github.com/interuss/dss/pkg/geo"
	"github.com/interuss/dss/pkg/geo/testdata"

	"github.com/stretchr/testify/require"
)

func TestParseAreaSuccessForOddNumberOfPoints(t *testing.T) {
	cells, err := geo.AreaToCellIDs(`37.4047,-122.1474,37.4037,-122.1485,37.4035,-122.1466`)
	require.NoError(t, err)
	require.NotNil(t, cells)
}

func TestParseAreaSuccessForOppositeWindingOrder(t *testing.T) {
	cells, err := geo.AreaToCellIDs(`0.000,0.000, 0.000,0.005, -0.005,0.0025`)
	require.NoError(t, err)
	require.NotNil(t, cells)
}

func TestParseAreaSuccessForEvenNumberOfPoints(t *testing.T) {
	cells, err := geo.AreaToCellIDs(`37.4047,-122.1474,37.4037,-122.1485,37.4035,-122.1466,37.4043,-122.146`)
	require.NoError(t, err)
	require.NotNil(t, cells)
}

func TestParseAreaSucceedsForValidLoop(t *testing.T) {
	cells, err := geo.AreaToCellIDs(testdata.Loop)
	require.NoError(t, err)
	require.NotNil(t, cells)
}

func TestParseAreaFailsForEmptyString(t *testing.T) {
	cells, err := geo.AreaToCellIDs("")
	require.Error(t, err)
	require.Nil(t, cells)
}

func TestParseAreaFailsForLoopWithOnlyTwoPoints(t *testing.T) {
	cells, err := geo.AreaToCellIDs(testdata.LoopWithOnlyTwoPoints)
	require.Error(t, err)
	require.Nil(t, cells)
}

func TestParseAreaFailsForLoopWithOddNumberOfCoordinates(t *testing.T) {
	cells, err := geo.AreaToCellIDs(testdata.LoopWithOddNumberOfCoordinates)
	require.Error(t, err)
	require.Nil(t, cells)
}


text:
$(function()
{
	var surfer = new BIMSURFER.Viewer('viewport');

	var layerListContainer = $('div#layer_list');
	var layerList = new BIMSURFER.Control.LayerList($(layerListContainer).find('.data'));
	surfer.addControl(layerList);
	layerList.events.register('activated', function() {
			$(layerListContainer).addClass('open');

			var screenHeight = $('div#viewer_container').height();

			$(layerListContainer).find('h2').animate({'font-size': 20});
			$(layerListContainer.find('.data').slideDown());
			$(layerListContainer).css('max-height', screenHeight - 50);
	});
	layerList.events.register('deactivated', function() {
			$(layerListContainer).removeClass('open');
	});

	$(layerListContainer).find('a.openCloseButton').click(function(e) {
		e.preventDefault();
		if($(layerListContainer).is('.open')) {
			$(layerListContainer).find('h2').animate({'font-size': 12});
			$(layerListContainer.find('.data').slideUp('normal', function() {
				layerList.deactivate();
			}));
		} else {
			layerList.activate();
		}
	});

	$('div.viewer').find('a.load_button').click(function(e) {
		e.preventDefault();

		var dialog = $('
').attr('class', 'form').attr('title', 'Connect to a server');
  		var form = $('<form />').attr('action', './').attr('method', 'post').appendTo(dialog);
		$('
').append($('').append($('').text('BIMserver: ')).append($('<input />').attr('type', 'text').attr('name', 'server').val('http://127.0.0.1:8080/'))).appendTo(form);
		$('
').append($('').append($('').text('Email: ')).append($('<input />').attr('type', 'text').attr('name', 'email').val('admin@bimserver.org'))).appendTo(form);
		$('
').append($('').append($('').text('Password: ')).append($('<input />').attr('type', 'password').attr('name', 'password').val('admin'))).appendTo(form);

		$(form).find('input').keydown(function(e) {
			var keycode = (event.keyCode ? event.keyCode : (event.which ? event.which : event.charCode));
			if(keycode == 13) {
				$(form).submit();
			}
		});

		$(dialog).dialog({
			autoOpen: true,
			width: 450,
			modal: true,
			buttons: {
				"Connect": function() {
					$(form).submit();
				}
			},
			close: function() { $(dialog).remove(); }
	  		});

		$(form).submit(function(e) {
			e.preventDefault();

			$(dialog).find('div.state').remove();

			var server = $.trim($(dialog).find('input[name="server"]').val());
			var email = $.trim($(dialog).find('input[name="email"]').val());
			var password = $.trim($(dialog).find('input[name="password"]').val());

			var ok = true;

			if(server == '') {
				ok = false;
				$(dialog).find('input[name="server"]').addClass('ui-state-error');
			} else {
				$(dialog).find('input[name="server"]').removeClass('ui-state-error')
			}

			if(email == '') {
				ok = false;
				$(dialog).find('input[name="email"]').addClass('ui-state-error');
			} else {
				$(dialog).find('input[name="email"]').removeClass('ui-state-error')
			}

			if(password == '') {
				ok = false;
				$(dialog).find('input[name="password"]').addClass('ui-state-error');
			} else {
				$(dialog).find('input[name="password"]').removeClass('ui-state-error')
			}

			if(ok) {
				$(dialog).closest('div.ui-dialog').find('.ui-dialog-buttonpane').find('button:contains("Connect")').attr('disabled', 'disabled').addClass('disabled');

				var server = new BIMSURFER.Server(surfer, server, email, password);

				function connected()
				{

					$(this.window).resize(function(e) {
						surfer.resize($(surfer.div).width(), $(surfer.div).height());
					});

					var dialog = $('
').attr('title', 'Open a project');
					var projectList = $('
').attr('id', 'projects').appendTo(dialog);

					var progressBar = $('
').attr('id', 'progress_bar_' + $(surfer.div).attr('id'));
					$(surfer.div).closest('.container').append(progressBar);

					progressBar = new BIMSURFER.Control.ProgressBar(progressBar);
					surfer.addControl(progressBar);
					progressBar.activate();

					for(var i = 0; i < server.projects.length; i++)
					{
						var project = server.projects[i];

						if(project.lastRevisionId != -1)
						{
							var link = $('')
											.attr('href', '#')
											.attr('title', 'Load the project ' + project.name)
											.click(function(e)
													{
														e.preventDefault();
														var project = $(this).parent().data('project');
														if(project == null) return;
													   	loadProject(project);
														timeline.apply(project)
														$(dialog).dialog('close');
													})
											.text(project.name)
							$(projectList).append($('
').data('project', project).append(link));
						}
					}

					$(projectList).menu();

					$(dialog).dialog({
						autoOpen: true,
						width: 450,
						modal: true,
						closeOnEscape: false,
						open: function(event, ui) { $(".ui-dialog .ui-dialog-titlebar-close").hide(); },
						close: function() { $(dialog).remove(); }
					});
				}

				function connectCallback(e) {
					server.events.unregister("serverLogin", connectCallback);

					if(server.connectionStatus == 'connected' && server.loginStatus == 'loggedin') {
							$(dialog).dialog('close');
							connected();
					} else {
						var connectionStatus = (server.connectionStatus != 'connected' ? server.connectionStatus : server.loginStatus);
						var icon = $('').addClass('ui-icon').addClass('ui-icon-alert').css({'float': 'left', 'margin-right': '.3em'});
						$(dialog).find('.state').remove();
						$(dialog).prepend($('
').addClass('state').addClass('ui-state-error').text(connectionStatus).prepend(icon));
						$(dialog).closest('div.ui-dialog').find('.ui-dialog-buttonpane').find('button:contains("Connect")').removeAttr('disabled').removeClass('disabled');
					}
				}

				server.events.register("loggedin", connectCallback);
				server.events.register("loginError", connectCallback);
				server.events.register("connectionError", connectCallback);
				if(server.connectionStatus != null) {
					if(server.connectionStatus == 'connected' ) {
						server.events.trigger('connected');
					} else {
						server.events.trigger('connectionError');
						return;
					}
				}
				if(server.loginStatus != null) {
					if(server.loginStatus == 'loggedin' ) {
						server.events.trigger('loggedin');
					} else {
						server.events.trigger('loginError');
					}
				}

			}
		});
	});

	function loadProject(project)
	{

		var revisionSceneLoaded = function() {
			project.events.unregister('revisionSceneLoaded', revisionSceneLoaded);
			var scene = this.scene;
			if(scene == null) {
				console.error('Could not load project revision scene');
				return;
			};

			for(var i = 0; i < this.ifcTypes.length; i++) {
				if(BIMSURFER.Constants.defaultTypes.indexOf(this.ifcTypes[i]) != -1) {
					surfer.loadQueue.push({revision: this, type: this.ifcTypes[i]});
				}
			}

			if(surfer.loadScene(this) != null)
			{
				var clickSelect = new BIMSURFER.Control.ClickSelect();
				surfer.addControl(clickSelect);
				clickSelect.activate();

		   		surfer.loadGeometry();

				var objectTreeView = new BIMSURFER.Control.ObjectTreeView('object_tree_view');
				surfer.addControl(objectTreeView);
				objectTreeView.activate();
			}
		};
		project.events.register('revisionSceneLoaded', revisionSceneLoaded);
		var scene = project.loadScene();
	}

	function timeline() {
		/*

				#2
				ID: 39476

Revisie_bestand_iets_met_dak1.ifc

8 Jan 2013 16:16

		*/

		for(var i in this.revisions) {
			var li = $('
');
			if(this.revisions[i].oid == this.lastRevisionId) {
				$(li).addClass('selected');
			}
			$(li).data('revision', this.revisions[i]);

			$('
').addClass('IDs').append(
				$('').addClass('number').text('#' + (i/1+1))
			).append(
				$('').addClass('ID').text('ID: ' + this.revisions[i].oid)
			).appendTo(li);

			$('
').addClass('description').append(
				$('').attr('href', '#').attr('title', 'Show the revision: ' + this.revisions[i].comment).text(this.revisions[i].comment).click(revisionClick).appendTo(li)
			).appendTo(li);

			var date = new Date(this.revisions[i].date);
			var month = date.getMonth();
			switch(month) {
				case 0: month = 'Jan'; break;
				case 1: month = 'Feb'; break;
				case 2: month = 'Mar'; break;
				case 3: month = 'Apr'; break;
				case 4: month = 'May'; break;
				case 5: month = 'Jun'; break;
				case 6: month = 'Jul'; break;
				case 7: month = 'Aug'; break;
				case 8: month = 'Sep'; break;
				case 9: month = 'Oct'; break;
				case 10: month = 'Nov'; break;
				case 11: month = 'Dec'; break;
			}
			$('
').addClass('date').text(date.getDate() + ' ' + month + ' ' + date.getFullYear() + ' ' + date.getHours() + ':' + date.getMinutes()).appendTo(li);
			$(li).appendTo($('#timeline').find('ul'));
		}
	}

	function revisionClick(e) {
		e.preventDefault();
		var li = $(this).closest('li');
		var revision = $(li).data('revision');

		if($(li).is('.selected')) {
			return;
		}
		$(li).closest('ul').find('li.selected').removeClass('selected');
		$(li).addClass('selected');

		revision.SYSTEM.loadQueue = new Array();

		for(var i = 0; i < revision.project.revisions.length; i++) {
			if(!revision.project.revisions[i].sceneLoaded) {
				continue;
			}
			revision.project.revisions[i].hide();
		}

		revision.show();
	}
});


text:
package org.cqframework.cql.cql2elm.model;

import org.hl7.elm.r1.VersionedIdentifier;

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

public class OperatorResolution {
    public OperatorResolution() {

    }

    public OperatorResolution(Operator operator) {
        this.operator = operator;
    }

    private Operator operator;
    public Operator getOperator() {
        return operator;
    }
    public void setOperator(Operator operator) {
        this.operator = operator;
    }

    private boolean allowFluent = false;
    public boolean getAllowFluent() {
        return allowFluent;
    }
    public void setAllowFluent(boolean allowFluent) {
        this.allowFluent = allowFluent;
    }

    /*
    The versioned identifier (fully qualified, versioned, library identifier of the library in which the resolved operator
    is defined. This is set by the library resolution to allow the calling context to understand the defined location
    of the resolved operator.
     */
    private VersionedIdentifier libraryIdentifier;
    public VersionedIdentifier getLibraryIdentifier() {
        return libraryIdentifier;
    }
    public void setLibraryIdentifier(VersionedIdentifier libraryIdentifier) {
        this.libraryIdentifier = libraryIdentifier;
    }

    /*
    The local alias for the resolved library. This is set by the libraryBuilder to allow the invocation
    to set the library alias if necessary.
     */
    private String libraryName;
    public String getLibraryName() {
        return libraryName;
    }
    public void setLibraryName(String libraryName) {
        this.libraryName = libraryName;
    }

    private void ensureConversions() {
        if (this.conversions == null) {
            this.conversions = new ArrayList<>();
        }
        else {
            this.conversions.clear();
        }
    }

    private List<Conversion> conversions;
    public Iterable<Conversion> getConversions() {
        return conversions;
    }
    public void setConversions(Iterable<Conversion> conversions) {
        ensureConversions();
        for (Conversion conversion : conversions) {
            this.conversions.add(conversion);
        }
    }

    public void setConversions(Conversion[] conversions) {
        ensureConversions();
        for (int i = 0; i < conversions.length; i++) {
            this.conversions.add(conversions[i]);
        }
    }

    public boolean hasConversions() {
        return this.conversions != null;
    }

    private boolean operatorHasOverloads = false;
    public boolean getOperatorHasOverloads() {
        return operatorHasOverloads;
    }

    public void setOperatorHasOverloads() {
        operatorHasOverloads = true;
    }

    private int score;
    public int getScore() {
        return score;
    }

    public void setScore(int score) {
        this.score = score;
    }
}


text:
.class Lcom/samsung/android/settings/ResetSettingsConfirm$1$1;
.super Ljava/util/TimerTask;
.source "ResetSettingsConfirm.java"

# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/samsung/android/settings/ResetSettingsConfirm$1;->handleMessage(Landroid/os/Message;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation

# instance fields
.field final synthetic this$1:Lcom/samsung/android/settings/ResetSettingsConfirm$1;

.field final synthetic val$finalContext:Landroid/content/Context;

# direct methods
.method constructor <init>(Lcom/samsung/android/settings/ResetSettingsConfirm$1;Landroid/content/Context;)V
    .locals 0

    iput-object p1, p0, Lcom/samsung/android/settings/ResetSettingsConfirm$1$1;->this$1:Lcom/samsung/android/settings/ResetSettingsConfirm$1;

    iput-object p2, p0, Lcom/samsung/android/settings/ResetSettingsConfirm$1$1;->val$finalContext:Landroid/content/Context;

    invoke-direct {p0}, Ljava/util/TimerTask;-><init>()V

    return-void
.end method

# virtual methods
.method public run()V
    .locals 3

    iget-object v1, p0, Lcom/samsung/android/settings/ResetSettingsConfirm$1$1;->val$finalContext:Landroid/content/Context;

    const-string/jumbo v2, "power"

    invoke-virtual {v1, v2}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/os/PowerManager;

    const-string/jumbo v1, "reset settings"

    invoke-virtual {v0, v1}, Landroid/os/PowerManager;->reboot(Ljava/lang/String;)V

    return-void
.end method