blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 7 410 | content_id stringlengths 40 40 | detected_licenses listlengths 0 51 | license_type stringclasses 2
values | repo_name stringlengths 5 132 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 80 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 5.85k 684M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 132
values | src_encoding stringclasses 34
values | language stringclasses 1
value | is_vendor bool 1
class | is_generated bool 2
classes | length_bytes int64 3 9.45M | extension stringclasses 28
values | content stringlengths 3 9.45M | authors listlengths 1 1 | author_id stringlengths 0 352 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a3c3ed09225db586a406b8d843ed23c67577f9c1 | 3a8cb9ce341fbc583d7850391b2e5c0f2793858d | /engine/src/main/java/by/mkwt/engine/ecs/component/graphic/TiledComponent.java | 8bc0ae3223add7f83c105212557159981268b9b9 | [] | no_license | MakovWait/smth | 7c1d2bf648ae2125d3d561c55f040b82982f65f7 | 266f6d8eae162672a5bc3521160816959509be7d | refs/heads/master | 2020-06-10T03:46:38.580486 | 2019-07-11T14:25:17 | 2019-07-11T14:25:17 | 193,570,788 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,140 | java | package by.mkwt.engine.ecs.component.graphic;
import com.badlogic.ashley.core.Component;
import com.badlogic.gdx.graphics.g2d.TextureRegion;
public class TiledComponent implements Component {
public int gid = 0;
public int id = 0;
public float width = 0;
public String name = "";
public String type = "";
public float height = 0;
public float x = 0;
public float y = 0;
public float scaleX = 1;
public float scaleY = 1;
public float z = 0;
public float rotation = 0;
public TextureRegion region = null;
@Override
public String toString() {
return "TiledComponent{" +
"gid=" + gid +
", id=" + id +
", width=" + width +
", name='" + name + '\'' +
", type='" + type + '\'' +
", height=" + height +
", x=" + x +
", y=" + y +
", scaleX=" + scaleX +
", scaleY=" + scaleY +
", z=" + z +
", rotation=" + rotation +
", region=" + region +
'}';
}
}
| [
"maxkv258@gmail.com"
] | maxkv258@gmail.com |
8fd945837187eac8fa55d01bbd312dd3a543a434 | 3920d17adf2315b60bd106818f437a96ac902a08 | /src/sandesh/OWN_Practice_Sandesh_1/ReverseUsingStringBuffer.java | 05be7b9393598d6dcead33b452fbcba9f49b644b | [] | no_license | gaurav-4uk/JAVATechnoMar2021 | 882f4925f2a27f11698ef8a5a8c7b9b5e01a792b | 6bb08f38a6212bed883a746be8290c171b40e717 | refs/heads/main | 2023-05-16T22:32:43.176457 | 2021-06-05T17:16:49 | 2021-06-05T17:16:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,174 | java | package sandesh.OWN_Practice_Sandesh_1;
public class ReverseUsingStringBuffer {
public static void main(String[] args) {
String str = "NAMANT";
StringBuffer sb = new StringBuffer(str); // Created StringBuffer and passed str to it.
sb.reverse(); // StringBuffer is mutable, so reversed the string using .reverse() method of StringBuffer.
if(sb.toString().equals(str)) // .equals() method of StringBuffer compares the memory address. So converting the SB back to string and then using .equals() method of String class which overrides .equals() of Object class. It simply compares the content.
System.out.println(str + " is a Palindrome");
else
System.out.println(str + " is NOT a Palindrome");
StringBuffer sb1 = new StringBuffer(str);
if(sb1.equals(sb1))
System.out.println("sb1's memory address is indeed same as sb1's memory address");
if(sb.equals(sb1))
System.out.println("sb and sb1 have same memory address");
else
System.out.println("Hence Proved. sb and sb1 have different memory address coz .equals() method in case of SB is not overridden. It uses .equals() of Object class which compares memory addresses.");
}
}
| [
"sandeshmolane@yahoo.com"
] | sandeshmolane@yahoo.com |
0a3cfc7af20f74c6cbff1e401c47a359ba7c07e0 | f6c46616f670357e7d348a85bfaab70f7f994e6e | /src/main/java/com/wass/hr/entity/RewardsPunishment.java | b8d8cd22f40e40773482cd5d4bd5848b8ed950f5 | [] | no_license | wass4035/vhr | 227a9fedcdb9197da79e366390f58b9ca4bc163c | 7a291f2fdf64bf559efdcd2d7a6aa94ef7c1cada | refs/heads/master | 2020-09-26T14:00:31.212857 | 2019-12-06T06:23:58 | 2019-12-06T06:23:58 | 226,246,664 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,387 | java | package com.wass.hr.entity;
import java.io.Serializable;
import java.util.Date;
/**
* 奖惩制度实体类
*
* @author wass
*/
public class RewardsPunishment implements Serializable {
private Long rpsmtId;//奖惩表ID
private Date rpsmtDate;//奖惩日期
private String rpsmtReason;//奖惩原因
private String rpsmtPoint;///奖惩分数
private String rpsmtType;//奖惩类型
private String remark;//备注
public Long getRpsmtId() {
return rpsmtId;
}
public void setRpsmtId(Long rpsmtId) {
this.rpsmtId = rpsmtId;
}
public Date getRpsmtDate() {
return rpsmtDate;
}
public void setRpsmtDate(Date rpsmtDate) {
this.rpsmtDate = rpsmtDate;
}
public String getRpsmtReason() {
return rpsmtReason;
}
public void setRpsmtReason(String rpsmtReason) {
this.rpsmtReason = rpsmtReason;
}
public String getRpsmtPoint() {
return rpsmtPoint;
}
public void setRpsmtPoint(String rpsmtPoint) {
this.rpsmtPoint = rpsmtPoint;
}
public String getRpsmtType() {
return rpsmtType;
}
public void setRpsmtType(String rpsmtType) {
this.rpsmtType = rpsmtType;
}
public String getRemark() {
return remark;
}
public void setRemark(String remark) {
this.remark = remark;
}
}
| [
"lzwwass@163.com"
] | lzwwass@163.com |
b810bb6ce60bbd4c72b4315164a036495c78cb9f | 77e1b0b3f87d317736329c69d0bffe349167edd4 | /spring-framework-5.1.x/spring-context/src/test/java/org/springframework/context/event/AnnotationDrivenEventListenerTests.java | 9ec745d6a6a30ee6bafd05cbe92726baca1e925b | [
"Apache-2.0"
] | permissive | MayZhou/Java-Learn | 2da5bfc0b4211949cb4e1ba3acd1a31bc1b1352e | 485eccffe15e41cbd5356fd73d1d2ede12431c8e | refs/heads/master | 2021-07-05T13:54:02.731321 | 2019-07-31T10:54:48 | 2019-07-31T10:54:48 | 193,471,320 | 0 | 0 | Apache-2.0 | 2020-10-13T14:10:28 | 2019-06-24T09:05:01 | Java | UTF-8 | Java | false | false | 31,170 | java | /*
* Copyright 2002-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.context.event;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Set;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.TimeUnit;
import javax.annotation.PostConstruct;
import org.junit.After;
import org.junit.Ignore;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
import org.springframework.aop.framework.Advised;
import org.springframework.aop.support.AopUtils;
import org.springframework.beans.factory.BeanCreationException;
import org.springframework.beans.factory.BeanInitializationException;
import org.springframework.beans.factory.ObjectFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationEventPublisher;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.PayloadApplicationEvent;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.context.annotation.Scope;
import org.springframework.context.annotation.ScopedProxyMode;
import org.springframework.context.event.test.AbstractIdentifiable;
import org.springframework.context.event.test.AnotherTestEvent;
import org.springframework.context.event.test.EventCollector;
import org.springframework.context.event.test.GenericEventPojo;
import org.springframework.context.event.test.Identifiable;
import org.springframework.context.event.test.TestEvent;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.core.annotation.AliasFor;
import org.springframework.core.annotation.Order;
import org.springframework.scheduling.annotation.Async;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.stereotype.Component;
import org.springframework.util.Assert;
import org.springframework.validation.annotation.Validated;
import org.springframework.validation.beanvalidation.MethodValidationPostProcessor;
import static org.hamcrest.Matchers.*;
import static org.junit.Assert.*;
/**
* @author Stephane Nicoll
* @author Juergen Hoeller
*/
public class AnnotationDrivenEventListenerTests {
@Rule
public final ExpectedException thrown = ExpectedException.none();
private ConfigurableApplicationContext context;
private EventCollector eventCollector;
private CountDownLatch countDownLatch; // 1 call by default
@After
public void closeContext() {
if (this.context != null) {
this.context.close();
}
}
@Test
public void simpleEventJavaConfig() {
load(TestEventListener.class);
TestEvent event = new TestEvent(this, "test");
TestEventListener listener = this.context.getBean(TestEventListener.class);
this.eventCollector.assertNoEventReceived(listener);
this.context.publishEvent(event);
this.eventCollector.assertEvent(listener, event);
this.eventCollector.assertTotalEventsCount(1);
this.eventCollector.clear();
this.context.publishEvent(event);
this.eventCollector.assertEvent(listener, event);
this.eventCollector.assertTotalEventsCount(1);
}
@Test
public void simpleEventXmlConfig() {
this.context = new ClassPathXmlApplicationContext(
"org/springframework/context/event/simple-event-configuration.xml");
TestEvent event = new TestEvent(this, "test");
TestEventListener listener = this.context.getBean(TestEventListener.class);
this.eventCollector = getEventCollector(this.context);
this.eventCollector.assertNoEventReceived(listener);
this.context.publishEvent(event);
this.eventCollector.assertEvent(listener, event);
this.eventCollector.assertTotalEventsCount(1);
}
@Test
public void metaAnnotationIsDiscovered() {
load(MetaAnnotationListenerTestBean.class);
MetaAnnotationListenerTestBean bean = this.context.getBean(MetaAnnotationListenerTestBean.class);
this.eventCollector.assertNoEventReceived(bean);
TestEvent event = new TestEvent();
this.context.publishEvent(event);
this.eventCollector.assertEvent(bean, event);
this.eventCollector.assertTotalEventsCount(1);
}
@Test
public void contextEventsAreReceived() {
load(ContextEventListener.class);
ContextEventListener listener = this.context.getBean(ContextEventListener.class);
List<Object> events = this.eventCollector.getEvents(listener);
assertEquals("Wrong number of initial context events", 1, events.size());
assertEquals(ContextRefreshedEvent.class, events.get(0).getClass());
this.context.stop();
List<Object> eventsAfterStop = this.eventCollector.getEvents(listener);
assertEquals("Wrong number of context events on shutdown", 2, eventsAfterStop.size());
assertEquals(ContextStoppedEvent.class, eventsAfterStop.get(1).getClass());
this.eventCollector.assertTotalEventsCount(2);
}
@Test
public void methodSignatureNoEvent() {
AnnotationConfigApplicationContext failingContext =
new AnnotationConfigApplicationContext();
failingContext.register(BasicConfiguration.class,
InvalidMethodSignatureEventListener.class);
this.thrown.expect(BeanInitializationException.class);
this.thrown.expectMessage(InvalidMethodSignatureEventListener.class.getName());
this.thrown.expectMessage("cannotBeCalled");
failingContext.refresh();
}
@Test
public void simpleReply() {
load(TestEventListener.class, ReplyEventListener.class);
AnotherTestEvent event = new AnotherTestEvent(this, "dummy");
ReplyEventListener replyEventListener = this.context.getBean(ReplyEventListener.class);
TestEventListener listener = this.context.getBean(TestEventListener.class);
this.eventCollector.assertNoEventReceived(listener);
this.eventCollector.assertNoEventReceived(replyEventListener);
this.context.publishEvent(event);
this.eventCollector.assertEvent(replyEventListener, event);
this.eventCollector.assertEvent(listener, new TestEvent(replyEventListener, event.getId(), "dummy")); // reply
this.eventCollector.assertTotalEventsCount(2);
}
@Test
public void nullReplyIgnored() {
load(TestEventListener.class, ReplyEventListener.class);
AnotherTestEvent event = new AnotherTestEvent(this, null); // No response
ReplyEventListener replyEventListener = this.context.getBean(ReplyEventListener.class);
TestEventListener listener = this.context.getBean(TestEventListener.class);
this.eventCollector.assertNoEventReceived(listener);
this.eventCollector.assertNoEventReceived(replyEventListener);
this.context.publishEvent(event);
this.eventCollector.assertEvent(replyEventListener, event);
this.eventCollector.assertNoEventReceived(listener);
this.eventCollector.assertTotalEventsCount(1);
}
@Test
public void arrayReply() {
load(TestEventListener.class, ReplyEventListener.class);
AnotherTestEvent event = new AnotherTestEvent(this, new String[]{"first", "second"});
ReplyEventListener replyEventListener = this.context.getBean(ReplyEventListener.class);
TestEventListener listener = this.context.getBean(TestEventListener.class);
this.eventCollector.assertNoEventReceived(listener);
this.eventCollector.assertNoEventReceived(replyEventListener);
this.context.publishEvent(event);
this.eventCollector.assertEvent(replyEventListener, event);
this.eventCollector.assertEvent(listener, "first", "second"); // reply
this.eventCollector.assertTotalEventsCount(3);
}
@Test
public void collectionReply() {
load(TestEventListener.class, ReplyEventListener.class);
Set<Object> replies = new LinkedHashSet<>();
replies.add("first");
replies.add(4L);
replies.add("third");
AnotherTestEvent event = new AnotherTestEvent(this, replies);
ReplyEventListener replyEventListener = this.context.getBean(ReplyEventListener.class);
TestEventListener listener = this.context.getBean(TestEventListener.class);
this.eventCollector.assertNoEventReceived(listener);
this.eventCollector.assertNoEventReceived(replyEventListener);
this.context.publishEvent(event);
this.eventCollector.assertEvent(replyEventListener, event);
this.eventCollector.assertEvent(listener, "first", "third"); // reply (no listener for 4L)
this.eventCollector.assertTotalEventsCount(3);
}
@Test
public void collectionReplyNullValue() {
load(TestEventListener.class, ReplyEventListener.class);
AnotherTestEvent event = new AnotherTestEvent(this, Arrays.asList(null, "test"));
ReplyEventListener replyEventListener = this.context.getBean(ReplyEventListener.class);
TestEventListener listener = this.context.getBean(TestEventListener.class);
this.eventCollector.assertNoEventReceived(listener);
this.eventCollector.assertNoEventReceived(replyEventListener);
this.context.publishEvent(event);
this.eventCollector.assertEvent(replyEventListener, event);
this.eventCollector.assertEvent(listener, "test");
this.eventCollector.assertTotalEventsCount(2);
}
@Test
public void eventListenerWorksWithSimpleInterfaceProxy() throws Exception {
load(ScopedProxyTestBean.class);
SimpleService proxy = this.context.getBean(SimpleService.class);
assertTrue("bean should be a proxy", proxy instanceof Advised);
this.eventCollector.assertNoEventReceived(proxy.getId());
this.context.publishEvent(new ContextRefreshedEvent(this.context));
this.eventCollector.assertNoEventReceived(proxy.getId());
TestEvent event = new TestEvent();
this.context.publishEvent(event);
this.eventCollector.assertEvent(proxy.getId(), event);
this.eventCollector.assertTotalEventsCount(1);
}
@Test
public void eventListenerWorksWithAnnotatedInterfaceProxy() throws Exception {
load(AnnotatedProxyTestBean.class);
AnnotatedSimpleService proxy = this.context.getBean(AnnotatedSimpleService.class);
assertTrue("bean should be a proxy", proxy instanceof Advised);
this.eventCollector.assertNoEventReceived(proxy.getId());
this.context.publishEvent(new ContextRefreshedEvent(this.context));
this.eventCollector.assertNoEventReceived(proxy.getId());
TestEvent event = new TestEvent();
this.context.publishEvent(event);
this.eventCollector.assertEvent(proxy.getId(), event);
this.eventCollector.assertTotalEventsCount(1);
}
@Test
public void eventListenerWorksWithCglibProxy() throws Exception {
load(CglibProxyTestBean.class);
CglibProxyTestBean proxy = this.context.getBean(CglibProxyTestBean.class);
assertTrue("bean should be a cglib proxy", AopUtils.isCglibProxy(proxy));
this.eventCollector.assertNoEventReceived(proxy.getId());
this.context.publishEvent(new ContextRefreshedEvent(this.context));
this.eventCollector.assertNoEventReceived(proxy.getId());
TestEvent event = new TestEvent();
this.context.publishEvent(event);
this.eventCollector.assertEvent(proxy.getId(), event);
this.eventCollector.assertTotalEventsCount(1);
}
@Test
public void privateMethodOnCglibProxyFails() throws Exception {
try {
load(CglibProxyWithPrivateMethod.class);
fail("Should have thrown BeanInitializationException");
}
catch (BeanInitializationException ex) {
assertTrue(ex.getCause() instanceof IllegalStateException);
}
}
@Test
public void eventListenerWorksWithCustomScope() throws Exception {
load(CustomScopeTestBean.class);
CustomScope customScope = new CustomScope();
this.context.getBeanFactory().registerScope("custom", customScope);
CustomScopeTestBean proxy = this.context.getBean(CustomScopeTestBean.class);
assertTrue("bean should be a cglib proxy", AopUtils.isCglibProxy(proxy));
this.eventCollector.assertNoEventReceived(proxy.getId());
this.context.publishEvent(new ContextRefreshedEvent(this.context));
this.eventCollector.assertNoEventReceived(proxy.getId());
customScope.active = false;
this.context.publishEvent(new ContextRefreshedEvent(this.context));
customScope.active = true;
this.eventCollector.assertNoEventReceived(proxy.getId());
TestEvent event = new TestEvent();
this.context.publishEvent(event);
this.eventCollector.assertEvent(proxy.getId(), event);
this.eventCollector.assertTotalEventsCount(1);
try {
customScope.active = false;
this.context.publishEvent(new TestEvent());
fail("Should have thrown IllegalStateException");
}
catch (BeanCreationException ex) {
// expected
assertTrue(ex.getCause() instanceof IllegalStateException);
}
}
@Test
public void asyncProcessingApplied() throws InterruptedException {
loadAsync(AsyncEventListener.class);
String threadName = Thread.currentThread().getName();
AnotherTestEvent event = new AnotherTestEvent(this, threadName);
AsyncEventListener listener = this.context.getBean(AsyncEventListener.class);
this.eventCollector.assertNoEventReceived(listener);
this.context.publishEvent(event);
this.countDownLatch.await(2, TimeUnit.SECONDS);
this.eventCollector.assertEvent(listener, event);
this.eventCollector.assertTotalEventsCount(1);
}
@Test
public void asyncProcessingAppliedWithInterfaceProxy() throws InterruptedException {
doLoad(AsyncConfigurationWithInterfaces.class, SimpleProxyTestBean.class);
String threadName = Thread.currentThread().getName();
AnotherTestEvent event = new AnotherTestEvent(this, threadName);
SimpleService listener = this.context.getBean(SimpleService.class);
this.eventCollector.assertNoEventReceived(listener);
this.context.publishEvent(event);
this.countDownLatch.await(2, TimeUnit.SECONDS);
this.eventCollector.assertEvent(listener, event);
this.eventCollector.assertTotalEventsCount(1);
}
@Test
public void asyncProcessingAppliedWithScopedProxy() throws InterruptedException {
doLoad(AsyncConfigurationWithInterfaces.class, ScopedProxyTestBean.class);
String threadName = Thread.currentThread().getName();
AnotherTestEvent event = new AnotherTestEvent(this, threadName);
SimpleService listener = this.context.getBean(SimpleService.class);
this.eventCollector.assertNoEventReceived(listener);
this.context.publishEvent(event);
this.countDownLatch.await(2, TimeUnit.SECONDS);
this.eventCollector.assertEvent(listener, event);
this.eventCollector.assertTotalEventsCount(1);
}
@Test
public void exceptionPropagated() {
load(ExceptionEventListener.class);
TestEvent event = new TestEvent(this, "fail");
ExceptionEventListener listener = this.context.getBean(ExceptionEventListener.class);
this.eventCollector.assertNoEventReceived(listener);
try {
this.context.publishEvent(event);
fail("An exception should have thrown");
}
catch (IllegalStateException e) {
assertEquals("Wrong exception", "Test exception", e.getMessage());
this.eventCollector.assertEvent(listener, event);
this.eventCollector.assertTotalEventsCount(1);
}
}
@Test
public void exceptionNotPropagatedWithAsync() throws InterruptedException {
loadAsync(ExceptionEventListener.class);
AnotherTestEvent event = new AnotherTestEvent(this, "fail");
ExceptionEventListener listener = this.context.getBean(ExceptionEventListener.class);
this.eventCollector.assertNoEventReceived(listener);
this.context.publishEvent(event);
this.countDownLatch.await(2, TimeUnit.SECONDS);
this.eventCollector.assertEvent(listener, event);
this.eventCollector.assertTotalEventsCount(1);
}
@Test
public void listenerWithSimplePayload() {
load(TestEventListener.class);
TestEventListener listener = this.context.getBean(TestEventListener.class);
this.eventCollector.assertNoEventReceived(listener);
this.context.publishEvent("test");
this.eventCollector.assertEvent(listener, "test");
this.eventCollector.assertTotalEventsCount(1);
}
@Test
public void listenerWithNonMatchingPayload() {
load(TestEventListener.class);
TestEventListener listener = this.context.getBean(TestEventListener.class);
this.eventCollector.assertNoEventReceived(listener);
this.context.publishEvent(123L);
this.eventCollector.assertNoEventReceived(listener);
this.eventCollector.assertTotalEventsCount(0);
}
@Test
public void replyWithPayload() {
load(TestEventListener.class, ReplyEventListener.class);
AnotherTestEvent event = new AnotherTestEvent(this, "String");
ReplyEventListener replyEventListener = this.context.getBean(ReplyEventListener.class);
TestEventListener listener = this.context.getBean(TestEventListener.class);
this.eventCollector.assertNoEventReceived(listener);
this.eventCollector.assertNoEventReceived(replyEventListener);
this.context.publishEvent(event);
this.eventCollector.assertEvent(replyEventListener, event);
this.eventCollector.assertEvent(listener, "String"); // reply
this.eventCollector.assertTotalEventsCount(2);
}
@Test
public void listenerWithGenericApplicationEvent() {
load(GenericEventListener.class);
GenericEventListener listener = this.context.getBean(GenericEventListener.class);
this.eventCollector.assertNoEventReceived(listener);
this.context.publishEvent("TEST");
this.eventCollector.assertEvent(listener, "TEST");
this.eventCollector.assertTotalEventsCount(1);
}
@Test
public void listenerWithResolvableTypeEvent() {
load(ResolvableTypeEventListener.class);
ResolvableTypeEventListener listener = this.context.getBean(ResolvableTypeEventListener.class);
this.eventCollector.assertNoEventReceived(listener);
GenericEventPojo<String> event = new GenericEventPojo<>("TEST");
this.context.publishEvent(event);
this.eventCollector.assertEvent(listener, event);
this.eventCollector.assertTotalEventsCount(1);
}
@Test
public void listenerWithResolvableTypeEventWrongGeneric() {
load(ResolvableTypeEventListener.class);
ResolvableTypeEventListener listener = this.context.getBean(ResolvableTypeEventListener.class);
this.eventCollector.assertNoEventReceived(listener);
GenericEventPojo<Long> event = new GenericEventPojo<>(123L);
this.context.publishEvent(event);
this.eventCollector.assertNoEventReceived(listener);
this.eventCollector.assertTotalEventsCount(0);
}
@Test
public void conditionMatch() {
validateConditionMatch(ConditionalEventListener.class);
}
@Test
public void conditionMatchWithProxy() {
validateConditionMatch(ConditionalEventListener.class, MethodValidationPostProcessor.class);
}
private void validateConditionMatch(Class<?>... classes) {
long timestamp = System.currentTimeMillis();
load(classes);
TestEvent event = new TestEvent(this, "OK");
ConditionalEventInterface listener = this.context.getBean(ConditionalEventInterface.class);
this.eventCollector.assertNoEventReceived(listener);
this.context.publishEvent(event);
this.eventCollector.assertEvent(listener, event);
this.eventCollector.assertTotalEventsCount(1);
this.context.publishEvent("OK");
this.eventCollector.assertEvent(listener, event, "OK");
this.eventCollector.assertTotalEventsCount(2);
this.context.publishEvent("NOT OK");
this.eventCollector.assertTotalEventsCount(2);
this.context.publishEvent(timestamp);
this.eventCollector.assertEvent(listener, event, "OK", timestamp);
this.eventCollector.assertTotalEventsCount(3);
this.context.publishEvent(42d);
this.eventCollector.assertEvent(listener, event, "OK", timestamp, 42d);
this.eventCollector.assertTotalEventsCount(4);
}
@Test
public void conditionDoesNotMatch() {
long maxLong = Long.MAX_VALUE;
load(ConditionalEventListener.class);
TestEvent event = new TestEvent(this, "KO");
TestEventListener listener = this.context.getBean(ConditionalEventListener.class);
this.eventCollector.assertNoEventReceived(listener);
this.context.publishEvent(event);
this.eventCollector.assertNoEventReceived(listener);
this.eventCollector.assertTotalEventsCount(0);
this.context.publishEvent("KO");
this.eventCollector.assertNoEventReceived(listener);
this.eventCollector.assertTotalEventsCount(0);
this.context.publishEvent(maxLong);
this.eventCollector.assertNoEventReceived(listener);
this.eventCollector.assertTotalEventsCount(0);
this.context.publishEvent(24d);
this.eventCollector.assertNoEventReceived(listener);
this.eventCollector.assertTotalEventsCount(0);
}
@Test
public void orderedListeners() {
load(OrderedTestListener.class);
OrderedTestListener listener = this.context.getBean(OrderedTestListener.class);
assertTrue(listener.order.isEmpty());
this.context.publishEvent("whatever");
assertThat(listener.order, contains("first", "second", "third"));
}
@Test @Ignore // SPR-15122
public void listenersReceiveEarlyEvents() {
load(EventOnPostConstruct.class, OrderedTestListener.class);
OrderedTestListener listener = this.context.getBean(OrderedTestListener.class);
assertThat(listener.order, contains("first", "second", "third"));
}
private void load(Class<?>... classes) {
List<Class<?>> allClasses = new ArrayList<>();
allClasses.add(BasicConfiguration.class);
allClasses.addAll(Arrays.asList(classes));
doLoad(allClasses.toArray(new Class<?>[allClasses.size()]));
}
private void loadAsync(Class<?>... classes) {
List<Class<?>> allClasses = new ArrayList<>();
allClasses.add(AsyncConfiguration.class);
allClasses.addAll(Arrays.asList(classes));
doLoad(allClasses.toArray(new Class<?>[allClasses.size()]));
}
private void doLoad(Class<?>... classes) {
AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext(classes);
this.eventCollector = ctx.getBean(EventCollector.class);
this.countDownLatch = ctx.getBean(CountDownLatch.class);
this.context = ctx;
}
private EventCollector getEventCollector(ConfigurableApplicationContext context) {
return context.getBean(EventCollector.class);
}
@Configuration
static class BasicConfiguration {
@Bean
public EventCollector eventCollector() {
return new EventCollector();
}
@Bean
public CountDownLatch testCountDownLatch() {
return new CountDownLatch(1);
}
@Bean
public TestConditionEvaluator conditionEvaluator() {
return new TestConditionEvaluator();
}
static class TestConditionEvaluator {
public boolean valid(Double ratio) {
return new Double(42).equals(ratio);
}
}
}
static abstract class AbstractTestEventListener extends AbstractIdentifiable {
@Autowired
private EventCollector eventCollector;
protected void collectEvent(Object content) {
this.eventCollector.addEvent(this, content);
}
}
@Component
static class TestEventListener extends AbstractTestEventListener {
@EventListener
public void handle(TestEvent event) {
collectEvent(event);
}
@EventListener
public void handleString(String content) {
collectEvent(content);
}
}
@EventListener
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
@interface FooListener {
}
@Component
static class MetaAnnotationListenerTestBean extends AbstractTestEventListener {
@FooListener
public void handleIt(TestEvent event) {
collectEvent(event);
}
}
@Component
static class ContextEventListener extends AbstractTestEventListener {
@EventListener
public void handleContextEvent(ApplicationContextEvent event) {
collectEvent(event);
}
}
@Component
static class InvalidMethodSignatureEventListener {
@EventListener
public void cannotBeCalled(String s, Integer what) {
}
}
@Component
static class ReplyEventListener extends AbstractTestEventListener {
@EventListener
public Object handle(AnotherTestEvent event) {
collectEvent(event);
if (event.content == null) {
return null;
}
else if (event.content instanceof String) {
String s = (String) event.content;
if (s.equals("String")) {
return event.content;
}
else {
return new TestEvent(this, event.getId(), s);
}
}
return event.content;
}
}
@Component
static class ExceptionEventListener extends AbstractTestEventListener {
@Autowired
private CountDownLatch countDownLatch;
@EventListener
public void handle(TestEvent event) {
collectEvent(event);
if ("fail".equals(event.msg)) {
throw new IllegalStateException("Test exception");
}
}
@EventListener
@Async
public void handleAsync(AnotherTestEvent event) {
collectEvent(event);
if ("fail".equals(event.content)) {
this.countDownLatch.countDown();
throw new IllegalStateException("Test exception");
}
}
}
@Component
static class AsyncEventListener extends AbstractTestEventListener {
@Autowired
private CountDownLatch countDownLatch;
@EventListener
@Async
public void handleAsync(AnotherTestEvent event) {
assertTrue(!Thread.currentThread().getName().equals(event.content));
collectEvent(event);
this.countDownLatch.countDown();
}
}
@Configuration
@Import(BasicConfiguration.class)
@EnableAsync(proxyTargetClass = true)
static class AsyncConfiguration {
}
@Configuration
@Import(BasicConfiguration.class)
@EnableAsync(proxyTargetClass = false)
static class AsyncConfigurationWithInterfaces {
}
interface SimpleService extends Identifiable {
void handleIt(TestEvent event);
void handleAsync(AnotherTestEvent event);
}
@Component
static class SimpleProxyTestBean extends AbstractIdentifiable implements SimpleService {
@Autowired
private EventCollector eventCollector;
@Autowired
private CountDownLatch countDownLatch;
@EventListener
@Override
public void handleIt(TestEvent event) {
this.eventCollector.addEvent(this, event);
}
@EventListener
@Async
public void handleAsync(AnotherTestEvent event) {
assertTrue(!Thread.currentThread().getName().equals(event.content));
this.eventCollector.addEvent(this, event);
this.countDownLatch.countDown();
}
}
@Component
@Scope(proxyMode = ScopedProxyMode.INTERFACES)
static class ScopedProxyTestBean extends AbstractIdentifiable implements SimpleService {
@Autowired
private EventCollector eventCollector;
@Autowired
private CountDownLatch countDownLatch;
@EventListener
@Override
public void handleIt(TestEvent event) {
this.eventCollector.addEvent(this, event);
}
@EventListener
@Async
public void handleAsync(AnotherTestEvent event) {
assertTrue(!Thread.currentThread().getName().equals(event.content));
this.eventCollector.addEvent(this, event);
this.countDownLatch.countDown();
}
}
interface AnnotatedSimpleService extends Identifiable {
@EventListener
void handleIt(TestEvent event);
}
@Component
@Scope(proxyMode = ScopedProxyMode.INTERFACES)
static class AnnotatedProxyTestBean extends AbstractIdentifiable implements AnnotatedSimpleService {
@Autowired
private EventCollector eventCollector;
@Override
public void handleIt(TestEvent event) {
this.eventCollector.addEvent(this, event);
}
}
@Component
@Scope(proxyMode = ScopedProxyMode.TARGET_CLASS)
static class CglibProxyTestBean extends AbstractTestEventListener {
@EventListener
public void handleIt(TestEvent event) {
collectEvent(event);
}
}
@Component
@Scope(proxyMode = ScopedProxyMode.TARGET_CLASS)
static class CglibProxyWithPrivateMethod extends AbstractTestEventListener {
@EventListener
private void handleIt(TestEvent event) {
collectEvent(event);
}
}
@Component
@Scope(scopeName = "custom", proxyMode = ScopedProxyMode.TARGET_CLASS)
static class CustomScopeTestBean extends AbstractTestEventListener {
@EventListener
public void handleIt(TestEvent event) {
collectEvent(event);
}
}
@Component
static class GenericEventListener extends AbstractTestEventListener {
@EventListener
public void handleString(PayloadApplicationEvent<String> event) {
collectEvent(event.getPayload());
}
}
@Component
static class ResolvableTypeEventListener extends AbstractTestEventListener {
@EventListener
public void handleString(GenericEventPojo<String> value) {
collectEvent(value);
}
}
@EventListener
@Retention(RetentionPolicy.RUNTIME)
public @interface ConditionalEvent {
@AliasFor(annotation = EventListener.class, attribute = "condition")
String value();
}
interface ConditionalEventInterface extends Identifiable {
void handle(TestEvent event);
void handleString(String payload);
void handleTimestamp(Long timestamp);
void handleRatio(Double ratio);
}
@Component
@Validated
static class ConditionalEventListener extends TestEventListener implements ConditionalEventInterface {
@EventListener(condition = "'OK'.equals(#root.event.msg)")
@Override
public void handle(TestEvent event) {
super.handle(event);
}
@Override
@EventListener(condition = "#payload.startsWith('OK')")
public void handleString(String payload) {
super.handleString(payload);
}
@ConditionalEvent("#root.event.timestamp > #p0")
public void handleTimestamp(Long timestamp) {
collectEvent(timestamp);
}
@ConditionalEvent("@conditionEvaluator.valid(#p0)")
public void handleRatio(Double ratio) {
collectEvent(ratio);
}
}
@Configuration
static class OrderedTestListener extends TestEventListener {
public final List<String> order = new ArrayList<>();
@EventListener
@Order(50)
public void handleThird(String payload) {
this.order.add("third");
}
@EventListener
@Order(-50)
public void handleFirst(String payload) {
this.order.add("first");
}
@EventListener
public void handleSecond(String payload) {
this.order.add("second");
}
}
static class EventOnPostConstruct {
@Autowired
ApplicationEventPublisher publisher;
@PostConstruct
public void init() {
this.publisher.publishEvent("earlyEvent");
}
}
private static class CustomScope implements org.springframework.beans.factory.config.Scope {
public boolean active = true;
private Object instance = null;
@Override
public Object get(String name, ObjectFactory<?> objectFactory) {
Assert.state(this.active, "Not active");
if (this.instance == null) {
this.instance = objectFactory.getObject();
}
return this.instance;
}
@Override
public Object remove(String name) {
return null;
}
@Override
public void registerDestructionCallback(String name, Runnable callback) {
}
@Override
public Object resolveContextualObject(String key) {
return null;
}
@Override
public String getConversationId() {
return null;
}
}
}
| [
"1252090579@qq.com"
] | 1252090579@qq.com |
702969f85f0d4e225a453492187b2c39c5161887 | 40f9c667cdee0fcd5790f4798439741178300e90 | /src/test/java/ru/erogov/service/AuditEventServiceIT.java | 03bbb63ae973db89a760b384947ab9c2ec3cec77 | [] | no_license | stas-erogov/simple-crud-pbi | 2f53153eee0e3dc17b933705e116e29435053705 | b98d0b33e97f978b8073622c3789fd55a69650bb | refs/heads/master | 2022-12-23T20:02:03.887727 | 2019-12-25T16:57:13 | 2019-12-25T16:57:13 | 230,123,175 | 0 | 0 | null | 2022-12-16T04:43:01 | 2019-12-25T15:50:50 | Java | UTF-8 | Java | false | false | 2,979 | java | package ru.erogov.service;
import ru.erogov.domain.PersistentAuditEvent;
import ru.erogov.repository.PersistenceAuditEventRepository;
import ru.erogov.SimpleCrudPbiApp;
import io.github.jhipster.config.JHipsterProperties;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.transaction.annotation.Transactional;
import java.time.Instant;
import java.time.temporal.ChronoUnit;
import static org.assertj.core.api.Assertions.assertThat;
/**
* Integration tests for {@link AuditEventService}.
*/
@SpringBootTest(classes = SimpleCrudPbiApp.class)
@Transactional
public class AuditEventServiceIT {
@Autowired
private AuditEventService auditEventService;
@Autowired
private PersistenceAuditEventRepository persistenceAuditEventRepository;
@Autowired
private JHipsterProperties jHipsterProperties;
private PersistentAuditEvent auditEventOld;
private PersistentAuditEvent auditEventWithinRetention;
private PersistentAuditEvent auditEventNew;
@BeforeEach
public void init() {
auditEventOld = new PersistentAuditEvent();
auditEventOld.setAuditEventDate(Instant.now().minus(jHipsterProperties.getAuditEvents().getRetentionPeriod() + 1, ChronoUnit.DAYS));
auditEventOld.setPrincipal("test-user-old");
auditEventOld.setAuditEventType("test-type");
auditEventWithinRetention = new PersistentAuditEvent();
auditEventWithinRetention.setAuditEventDate(Instant.now().minus(jHipsterProperties.getAuditEvents().getRetentionPeriod() - 1, ChronoUnit.DAYS));
auditEventWithinRetention.setPrincipal("test-user-retention");
auditEventWithinRetention.setAuditEventType("test-type");;
auditEventNew = new PersistentAuditEvent();
auditEventNew.setAuditEventDate(Instant.now());
auditEventNew.setPrincipal("test-user-new");
auditEventNew.setAuditEventType("test-type");
}
@Test
@Transactional
public void verifyOldAuditEventsAreDeleted() {
persistenceAuditEventRepository.deleteAll();
persistenceAuditEventRepository.save(auditEventOld);
persistenceAuditEventRepository.save(auditEventWithinRetention);
persistenceAuditEventRepository.save(auditEventNew);
persistenceAuditEventRepository.flush();
auditEventService.removeOldAuditEvents();
persistenceAuditEventRepository.flush();
assertThat(persistenceAuditEventRepository.findAll().size()).isEqualTo(2);
assertThat(persistenceAuditEventRepository.findByPrincipal("test-user-old")).isEmpty();
assertThat(persistenceAuditEventRepository.findByPrincipal("test-user-retention")).isNotEmpty();
assertThat(persistenceAuditEventRepository.findByPrincipal("test-user-new")).isNotEmpty();
}
}
| [
"erogov.syu@gmail.com"
] | erogov.syu@gmail.com |
87f8f000bd59f343d14258fc7d74862fe4853b6d | 2e0979a8b4af06f89edce0b3bfd7ee1490cdd080 | /src/main/java/com/reactor/controller/dto/BookDTO.java | fae39404a173dfaf68677f5c987fd9edf8bf161b | [] | no_license | eceolin/webflux-tips | 3682423f603f9dabb47ec60f00351ca85d4b0df7 | 53be3683775096f5c91e45330917bdd184ebd1b6 | refs/heads/master | 2021-10-11T21:32:37.454520 | 2021-10-05T02:48:29 | 2021-10-05T02:48:29 | 184,442,519 | 2 | 1 | null | null | null | null | UTF-8 | Java | false | false | 697 | java | package com.reactor.controller.dto;
public class BookDTO {
private String id;
private String name;
private Integer pages;
public BookDTO() {
}
public BookDTO(String id, String name, Integer pages) {
this.id = id;
this.name = name;
this.pages = pages;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Integer getPages() {
return pages;
}
public void setPages(Integer pages) {
this.pages = pages;
}
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
}
| [
"eduardo_ceolin@terceiros.sicredi.com.br"
] | eduardo_ceolin@terceiros.sicredi.com.br |
10df3121a12ca9cc011cf1fdf6c496c6ef02b7c7 | 7791973ca350994b734557803f91a3fd47ea1c02 | /Arrays/ProductSubarray.java | 9e42f12382f0c86033339c9350398c1fba8fb4cf | [] | no_license | gupta29470/Practice | 4713ae02a5ab84c6783d711d53df227d9060604a | 81676b21fbf0191f8ded836d19f0c280b4bda1cd | refs/heads/master | 2023-07-03T15:52:49.832892 | 2021-08-17T08:49:05 | 2021-08-17T08:49:05 | 357,317,997 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,130 | java | import java.io.*;
class ProductSubarray {
// Utility functions to get minimum of two integers
static int min(int x, int y) { return x < y ? x : y; }
// Utility functions to get maximum of two integers
static int max(int x, int y) { return x > y ? x : y; }
/* Returns the product of max product subarray.
Assumes that the given array always has a subarray
with product more than 1 */
static int maxSubarrayProduct(int arr[])
{
int n = arr.length;
// max positive product ending at the current position
int max_ending_here = 1;
// min negative product ending at the current position
int min_ending_here = 1;
// Initialize overall max product
int max_so_far = 1;
int flag = 0;
/* Traverse through the array. Following
values are maintained after the ith iteration:
max_ending_here is always 1 or some positive product
ending with arr[i]
min_ending_here is always 1 or some negative product
ending with arr[i] */
for (int i = 0; i < n; i++) {
/* If this element is positive, update max_ending_here.
Update min_ending_here only if min_ending_here is
negative */
if (arr[i] > 0) {
max_ending_here = max_ending_here * arr[i];
min_ending_here = min(min_ending_here * arr[i], 1);
flag = 1;
}
/* If this element is 0, then the maximum product cannot
end here, make both max_ending_here and min_ending
_here 0
Assumption: Output is alway greater than or equal to 1. */
else if (arr[i] == 0) {
max_ending_here = 1;
min_ending_here = 1;
}
/* If element is negative. This is tricky
max_ending_here can either be 1 or positive.
min_ending_here can either be 1 or negative.
next min_ending_here will always be prev.
max_ending_here * arr[i]
next max_ending_here will be 1 if prev
min_ending_here is 1, otherwise
next max_ending_here will be
prev min_ending_here * arr[i] */
else {
int temp = max_ending_here;
max_ending_here = max(min_ending_here * arr[i], 1);
min_ending_here = temp * arr[i];
}
// update max_so_far, if needed
if (max_so_far < max_ending_here)
max_so_far = max_ending_here;
}
if (flag == 0 && max_so_far == 1)
return 0;
return max_so_far;
}
public static void main(String[] args)
{
int arr[] = { 1, -2, -3, 0, 7, -8, -2 };
System.out.println("Maximum Sub array product is "
+ maxSubarrayProduct(arr));
}
} | [
"gupta29470@gmail.com"
] | gupta29470@gmail.com |
6a6832a8a81768256efb72ce602f5cbc5a3ad212 | 83e81c25b1f74f88ed0f723afc5d3f83e7d05da8 | /services/core/java/com/android/server/pm/PackageVerificationResponse.java | a9aef6da6d4de34fe1634a84c15b073ac9239dc5 | [
"Apache-2.0",
"LicenseRef-scancode-unicode"
] | permissive | Ankits-lab/frameworks_base | 8a63f39a79965c87a84e80550926327dcafb40b7 | 150a9240e5a11cd5ebc9bb0832ce30e9c23f376a | refs/heads/main | 2023-02-06T03:57:44.893590 | 2020-11-14T09:13:40 | 2020-11-14T09:13:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 921 | java | /*
* Copyright (C) 2011 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.android.server.pm;
public class PackageVerificationResponse {
public final int code;
public final int callerUid;
public PackageVerificationResponse(int code, int callerUid) {
this.code = code;
this.callerUid = callerUid;
}
}
| [
"keneankit01@gmail.com"
] | keneankit01@gmail.com |
ba0e03b3c810f78d4a78c502c1499dc89df8cbe9 | 0100f50a786e4429f63af6fbd74334600bf5a73c | /StarWars/src/modelagemUniversoStarWars/Aprendiz.java | c5a040ed85932d5341cf8b0ce8c2e6c55abd878f | [] | no_license | GGMatheus/Star-Wars-Game-em-Java | fb8369e30a1dfd588e54cb3892e25cc3b0e23871 | cf7f1b96475ad2eb1689033f2018d3788f6b9675 | refs/heads/master | 2020-03-18T02:57:30.566807 | 2018-05-28T20:35:59 | 2018-05-28T20:35:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 460 | java | package modelagemUniversoStarWars;
public class Aprendiz extends Sith {
public boolean sabeConstruirSabreDeLuz = false;
private Lord treinador;
public Aprendiz(double porcentagem, Lord treinador) {
super(porcentagem);
this.treinador = treinador;
}
public Lord getTreinador() {
return treinador;
}
public void setTreinador(Lord treinador) {
this.treinador = treinador;
}
public void TaSabendo() {
sabeConstruirSabreDeLuz = true;
}
}
| [
"matheusguilhermeg@gmail.com"
] | matheusguilhermeg@gmail.com |
2aee633c4ad0e65d2108ff846cde00bb97572be7 | a894a309b0476c45996df5a2c6017ac1f56b0efc | /app/src/main/java/com/aptitudemaster/Tutorial.java | f16bb51ab1dbaa48dc204a4e32234fdcc906fb55 | [] | no_license | sirilsiju98/Aptitude-Master | a5c4b6b15552125b16ab6e9095093c2cd0b7adb5 | b65068d19e09758e3e09b4731016767c5416b3a8 | refs/heads/master | 2020-12-27T19:27:18.205213 | 2020-03-01T10:36:27 | 2020-03-01T10:36:27 | 238,021,709 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 491 | java | package com.aptitudemaster;
public class Tutorial {
String topic;
String url;
public Tutorial()
{
}
public Tutorial(String topic, String url) {
this.topic = topic;
this.url = url;
}
public String getTopic() {
return topic;
}
public String getUrl() {
return url;
}
public void setTopic(String topic) {
this.topic = topic;
}
public void setUrl(String url) {
this.url = url;
}
}
| [
"sirilsiju98@gmail.com"
] | sirilsiju98@gmail.com |
4202e9f446ba3834d75231217aa2e02b9f0c7a30 | 81707652159ce1c1e5611c95960ee30c5911ad81 | /generala-server/src/main/java/uy/edu/cei/generala/server/services/impl/UserServiceInDBImpl.java | 55d9b26e0c4fe8f5f83d626f8da0a2ff108b66d9 | [] | no_license | jesi-franco/generala | 0a7c9aa2a98600fdf4e1e77430f253708ad1e369 | 86ad8cffc1c866532346d7053a4ad618252f52a6 | refs/heads/master | 2020-04-11T15:58:08.049677 | 2018-12-17T22:19:34 | 2018-12-17T22:19:34 | 161,909,028 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,689 | java | package uy.edu.cei.generala.server.services.impl;
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;
import javax.persistence.TypedQuery;
import uy.edu.cei.generala.domain.UserModel;
import uy.edu.cei.generala.server.services.UserService;
public class UserServiceInDBImpl implements UserService {
private static UserServiceInDBImpl instance;
private EntityManagerFactory emf;
private EntityManager em;
public EntityManagerFactory getEmf() {
return emf;
}
public void setEmf(EntityManagerFactory emf) {
this.emf = emf;
}
public EntityManager getEm() {
return em;
}
public void setEm(EntityManager em) {
this.em = em;
}
public static void setInstance(UserServiceInDBImpl instance) {
UserServiceInDBImpl.instance = instance;
}
static {
UserServiceInDBImpl.instance = new UserServiceInDBImpl();
}
public static UserService getInstance() {
return UserServiceInDBImpl.instance;
}
private UserServiceInDBImpl() {
this.emf = Persistence.createEntityManagerFactory("jpaDS");
this.em = emf.createEntityManager();
}
@Override
public UserModel findUserByUsername(String username, String password) {
UserModel user = null;
em.getTransaction().begin();
TypedQuery<UserModel> query = em.createNamedQuery("UserModel.login", UserModel.class)
.setParameter("username", username)
.setParameter("password", password);
em.getTransaction().commit();
return user;
}
/*@Override
public UserModel findUserByUsername(String username) {
// TODO Auto-generated method stub
return null;
}*/
}
| [
"sofycalvete@gmail.com"
] | sofycalvete@gmail.com |
e678dcd077fd4f4e99c8053dc46d0fe93e3d2411 | afc34d6fed1675887edbdfd1e86591698b9f175e | /140424. Final Project/JES-2.8.2-src/src/test/java/com/ericdaugherty/mail/Utils.java | 7e604620dc8aefbbe009ad0920e9627f4eb462e7 | [] | no_license | RICEMS/COMP529 | 07ed8f1264cd677ac9f65fad860d0ad0cef2c4b1 | 3de55f1565591764b59524ab689d066d5cf2568b | refs/heads/master | 2016-09-05T12:39:51.933848 | 2015-07-24T00:33:20 | 2015-07-24T00:33:20 | 39,601,129 | 1 | 1 | null | null | null | null | UTF-8 | Java | false | false | 8,504 | java | /******************************************************************************
* This program is a 100% Java Email Server.
******************************************************************************
* Copyright (c) 2001-2013, Eric Daugherty (http://www.ericdaugherty.com)
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* * Neither the name of the copyright holder nor the
* names of its contributors may be used to endorse or promote products
* derived from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER ''AS IS'' AND ANY
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
******************************************************************************
* For current versions and more information, please visit:
* http://javaemailserver.sf.net/
*
* or contact the author at:
* andreaskyrmegalos@hotmail.com
*
******************************************************************************
* This program is based on the CSRMail project written by Calvin Smith.
* http://crsemail.sourceforge.net/
******************************************************************************
*
* $Rev$
* $Date$
*
******************************************************************************/
package com.ericdaugherty.mail;
//Java Imports
import java.io.*;
import java.security.GeneralSecurityException;
import java.security.MessageDigest;
import java.util.ArrayList;
import java.util.List;
import javax.net.ssl.SSLContext;
//Local Imports
import com.ericdaugherty.mail.server.configuration.ConfigurationManager;
import com.ericdaugherty.mail.server.utils.FileUtils;
import com.ericdaugherty.mail.server.utils.IOUtils;
import com.xlat4cast.jes.crypto.digest.JESMessageDigest;
/**
*
* @author Andreas Kyrmegalos
*/
public class Utils {
public static String getSupportedCiphers() {
String[] enabledCiphers = {"TLS_DHE_RSA_WITH_AES_256_CBC_SHA","TLS_DHE_DSS_WITH_AES_256_CBC_SHA","TLS_RSA_WITH_AES_256_CBC_SHA",
"TLS_DHE_RSA_WITH_AES_128_CBC_SHA","TLS_DHE_DSS_WITH_AES_128_CBC_SHA","TLS_RSA_WITH_AES_128_CBC_SHA"};
SSLContext ctx;
try {
ctx = SSLContext.getInstance("TLS");
ctx.init(null, null, null);
String [] dcs = ctx.getServerSocketFactory().getDefaultCipherSuites();
List<String> temp = new ArrayList<String>(enabledCiphers.length);
for (String cipher:enabledCiphers) {
for (String dCipher:dcs) {
if (cipher.equals(dCipher)) {
temp.add(dCipher);
break;
}
}
}
enabledCiphers = temp.toArray(new String[temp.size()]);
}
catch (GeneralSecurityException gse) {
List<String> temp = new ArrayList<String>(enabledCiphers.length);
for (String cipher:enabledCiphers) {
if (cipher.indexOf("ECDH")==-1) {
temp.add(cipher);
}
}
enabledCiphers = temp.toArray(new String[temp.size()]);
}
StringBuilder sb = new StringBuilder();
for (String ec:enabledCiphers) {
sb.append(ec).append(" ");
}
sb.deleteCharAt(sb.length()-1);
return sb.toString();
}
public static void copyFiles(File directory, File target) throws IOException{
File[] allTestFiles = directory.listFiles();
boolean dirMade;
for (File allTestFile : allTestFiles) {
if (allTestFile.isDirectory()) {
String newSubDir = allTestFile.getPath();
newSubDir = newSubDir.substring(newSubDir.lastIndexOf(File.separator)+1);
File targetDir = new File(target, newSubDir);
dirMade = targetDir.mkdir();
if (!dirMade) {
throw new IOException("Directory "+targetDir.getName()+" could not be created.");
}
copyFiles(allTestFile, targetDir);
} else {
FileUtils.copyFile(allTestFile, new File(target, allTestFile.getName()));
}
}
}
public static void deleteFiles(File directory) throws IOException{
deleteFiles(directory, false);
}
public static void deleteFiles(File directory, boolean all) throws IOException{
File[] allTestFiles = directory.listFiles();
for (File allTestFile : allTestFiles) {
if (allTestFile.isDirectory()) {
//Don't delete the database folder
if (allTestFile.getName().equals("JES") && ! all) {
continue;
}
deleteFiles(allTestFile);
if (!allTestFile.delete()) {
System.err.println("unable to delete " + allTestFile);
}
} else {
if (allTestFile.getName().toLowerCase().startsWith("derby")) {
continue;
}
if (!allTestFile.delete()) {
System.err.println("unable to delete " + allTestFile);
}
}
}
}
public static void deleteFilesOnExit(File directory) throws IOException{
File[] allTestFiles = directory.listFiles();
for (File allTestFile : allTestFiles) {
if (allTestFile.isDirectory()) {
deleteFilesOnExit(allTestFile);
allTestFile.deleteOnExit();
} else {
allTestFile.deleteOnExit();
}
}
}
public static boolean mkDir(File directory) {
boolean dirMade = false;
if (!directory.exists()) {
dirMade = directory.mkdir();
if (!dirMade) {
throw new RuntimeException("Unable to create a "+directory.getName()+" directory. Aborting...");
}
}
return dirMade;
}
public static byte[] getOriginalMD5(File input) throws IOException {
InputStream is = null;
byte[] result = new byte[16];
int count = 0;
try {
is = new FileInputStream(input);
int nextByte;
for (;count<16;) {
nextByte = is.read();
result[count++] = (byte)(nextByte&0xff);
}
return result;
}
finally {
IOUtils.close(is);
}
}
public static byte[] getDerivedMD5(File input) throws IOException, GeneralSecurityException{
MessageDigest md = JESMessageDigest.getInstance("MD5");
InputStream is = null;
try {
is = new FileInputStream(input);
int nextByte;
outer:
while((nextByte=is.read())!=-1) {
if (nextByte==0x0a||nextByte==0x0d) continue;
for (int i=0;i<initialField.length;i++) {
if (nextByte!=initialField[i]) continue outer;
if ((nextByte=is.read())==-1) {
throw new IOException("Reached end of file before discovering initial field");
}
}
for (int i=0;i<initialField.length;i++) {
md.update((byte)(initialField[i]&0xff));
}
break;
}
while((nextByte=is.read())!=-1) {
if (nextByte==0x0a||nextByte==0x0d) continue;
md.update((byte)(nextByte&0xff));
}
return md.digest();
}
finally {
IOUtils.close(is);
}
}
private static final byte[] initialField = "X-Priority: Normal".getBytes(ConfigurationManager.getUtf8Charset());
}
| [
"Yanda@Yandas-MacBook-Pro.local"
] | Yanda@Yandas-MacBook-Pro.local |
5eed08c004e50ae27c0f663f9eb8aaf6cfdaa3eb | 32bd70b925e2eb16cbc78da03df015b53b80720c | /app/src/androidTest/java/com/nsb/xmatrix/ExampleInstrumentedTest.java | 0be21c67cda009a139cea0c7e8f485b9f305e100 | [
"Apache-2.0"
] | permissive | huangzewen/ConnectingLuguApp | 71e17cfb2b69eda176bb93e2be97144d466b6e54 | 30ff3ceaf429333c290850293d761441f7dc0bc1 | refs/heads/master | 2023-06-27T07:14:22.591823 | 2021-08-02T08:34:57 | 2021-08-02T08:34:57 | 390,217,907 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 735 | java | package com.nsb.xmatrix;
import android.content.Context;
import androidx.test.platform.app.InstrumentationRegistry;
import androidx.test.runner.AndroidJUnit4;
import org.junit.Test;
import org.junit.runner.RunWith;
import static org.junit.Assert.*;
/**
* Instrumented test, which will execute on an Android device.
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
@RunWith(AndroidJUnit4.class)
public class ExampleInstrumentedTest {
@Test
public void useAppContext() {
// Context of the app under test.
Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
assertEquals("com.nsb.xmatrix", appContext.getPackageName());
}
}
| [
"huyq2002@qq.com"
] | huyq2002@qq.com |
a9b3df48ae51760b83e9e90200620345fe20bbd0 | c08c665caf9c5326146d8ed6b51e0b5010049e4c | /BanditGDPSimulator/test/bandit_solver_tests/TestStateGeneration.java | 28d64196c5100351f385fde2e2a551f3ffe6461e | [] | no_license | asestes1/AcrpRepository | b2e8740f7121b8c8c408b0c3c4ae697e93515c7f | eecff0e5cc63a3c2dcb4c84995479e23ecfea4f2 | refs/heads/master | 2021-01-21T13:34:20.702614 | 2018-03-14T22:52:16 | 2018-03-14T22:52:16 | 53,608,698 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,589 | java | package bandit_solver_tests;
import java.security.InvalidAlgorithmParameterException;
import java.util.function.BiFunction;
import org.apache.commons.math3.linear.ArrayRealVector;
import org.apache.commons.math3.linear.RealMatrix;
import org.apache.commons.math3.linear.RealVector;
import org.junit.Test;
import bandit_objects.SimpleTmiAction;
import bandit_simulator.SimilarityBanditInstance;
import bandit_simulator.SimilarityBanditRunner;
import bandit_simulator.UniformStateGenerator;
import bandit_solvers.UniRandomSolver;
import function_util.MatrixHelper;
import function_util.QuadraticFormFunction;
import random_processes.GaussianKernel;
public class TestStateGeneration {
@Test
public void testUniRandomBandit() throws InvalidAlgorithmParameterException{
UniRandomSolver my_random_solver = new UniRandomSolver();
for(int i=0; i < 100;i++){
SimpleTmiAction my_action = my_random_solver.suggestAction(null, 0);
System.out.println(my_action);
}
}
@Test
public void testUniformStateGeneratr(){
UniformStateGenerator myStateGenerator = new UniformStateGenerator(10);
for(int i=0; i < 100;i++){
RealVector state = myStateGenerator.generate();
System.out.println(state);
}
}
@Test
public void testHistoryPregeneration(){
int state_dimension = 2;
UniformStateGenerator myStateGenerator =
new UniformStateGenerator(state_dimension);
SimilarityBanditInstance myInstance =
SimilarityBanditRunner.makeInstance(myStateGenerator, 50);
System.out.println(myInstance);
}
@Test
public void testActionGeneration() throws Exception{
int state_dimension = 5;
RealMatrix myTmiMatrix = MatrixHelper.makeIdentityMatrix(state_dimension+SimpleTmiAction.GDP_DIMENSION);
RealMatrix myNoTmiMatrix = MatrixHelper.makeIdentityMatrix(state_dimension);
RealVector myTmiVector = new ArrayRealVector(new double[]{4,9,1,2,3,5,7,11,13});
RealVector myNoTmiVector = myTmiVector.getSubVector(0, state_dimension);
Double myConstant = 20.0;
BiFunction<RealVector,SimpleTmiAction,Double> myFunction =
new QuadraticFormFunction(myTmiMatrix,myTmiVector,myConstant,myNoTmiMatrix,myNoTmiVector,myConstant);
UniformStateGenerator myStateGenerator =
new UniformStateGenerator(state_dimension);
GaussianKernel myKernel = new GaussianKernel(1.0, 5);
SimilarityBanditInstance myInstance =
SimilarityBanditRunner.makeInstance(myFunction, myStateGenerator,
myKernel, 10, 20, new UniRandomSolver());
System.out.println(myInstance);
}
}
| [
"Alex@10.142.114.45"
] | Alex@10.142.114.45 |
209b63228c8b8e1f27082909174f719873e0ed7c | a62ab57246aea6e99a24a792155aa05bf90f68f0 | /src/com/bjwg/back/model/UserPreorder.java | 23d1b47019663c24fd5d272864a1f7c647808269 | [
"Apache-2.0"
] | permissive | liangjinx/BJWG_BACK | 7220f75769e75f56aacda3bfc23a904ef700e217 | 8057ddb87350cdd1e947f914d02a9a12763a4d03 | refs/heads/master | 2021-01-10T08:43:57.242050 | 2016-02-28T09:08:30 | 2016-02-28T09:08:30 | 52,712,923 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,748 | java | package com.bjwg.back.model;
import java.util.Date;
public class UserPreorder {
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column bjwg_user_preorder.user_id
*
* @mbggenerated
*/
private Long userId;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column bjwg_user_preorder.project_id
*
* @mbggenerated
*/
private Long projectId;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column bjwg_user_preorder.ctime
*
* @mbggenerated
*/
private Date ctime;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column bjwg_user_preorder.num
*
* @mbggenerated
*/
private Integer num;
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column bjwg_user_preorder.user_id
*
* @return the value of bjwg_user_preorder.user_id
*
* @mbggenerated
*/
public Long getUserId() {
return userId;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column bjwg_user_preorder.user_id
*
* @param userId the value for bjwg_user_preorder.user_id
*
* @mbggenerated
*/
public void setUserId(Long userId) {
this.userId = userId;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column bjwg_user_preorder.project_id
*
* @return the value of bjwg_user_preorder.project_id
*
* @mbggenerated
*/
public Long getProjectId() {
return projectId;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column bjwg_user_preorder.project_id
*
* @param projectId the value for bjwg_user_preorder.project_id
*
* @mbggenerated
*/
public void setProjectId(Long projectId) {
this.projectId = projectId;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column bjwg_user_preorder.ctime
*
* @return the value of bjwg_user_preorder.ctime
*
* @mbggenerated
*/
public Date getCtime() {
return ctime;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column bjwg_user_preorder.ctime
*
* @param ctime the value for bjwg_user_preorder.ctime
*
* @mbggenerated
*/
public void setCtime(Date ctime) {
this.ctime = ctime;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column bjwg_user_preorder.num
*
* @return the value of bjwg_user_preorder.num
*
* @mbggenerated
*/
public Integer getNum() {
return num;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column bjwg_user_preorder.num
*
* @param num the value for bjwg_user_preorder.num
*
* @mbggenerated
*/
public void setNum(Integer num) {
this.num = num;
}
private String username;
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
} | [
"liangjinxiwork@sina.com"
] | liangjinxiwork@sina.com |
2f099520c2762e9ce7d22ff0e3a311ad2a937271 | 104928b13942375011ca6582c446d509b8b19bad | /src/main/java/com/garowing/gameexp/game/rts/skill/constants/SkillEventType.java | 7028f35069ad77bcdab7f4da737792920290f50f | [
"MIT"
] | permissive | cool112/game | b1d7a2a3de0da5ae0e59a02e76010c1affc57254 | 61071efa6498825f9cbcc7722420c6cd399bb3ab | refs/heads/master | 2021-06-18T12:54:45.047133 | 2021-01-27T09:46:39 | 2021-01-27T09:46:39 | 152,873,406 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,002 | java | package com.garowing.gameexp.game.rts.skill.constants;
import com.garowing.gameexp.game.rts.skill.handler.SkillEventHandler;
import com.garowing.gameexp.game.rts.skill.handler.eventhandler.AttackSkillEventHandler;
import com.garowing.gameexp.game.rts.skill.handler.eventhandler.ClientNotifySkillEventHandler;
import com.garowing.gameexp.game.rts.skill.handler.eventhandler.EnterSceneSkillEventHandler;
import com.garowing.gameexp.game.rts.skill.handler.eventhandler.InterrupEffectSkillEventHandler;
import com.garowing.gameexp.game.rts.skill.handler.eventhandler.InitControlSkillEventHandler;
import com.garowing.gameexp.game.rts.skill.handler.eventhandler.RefreshEffectSkillEventHandler;
import com.garowing.gameexp.game.rts.skill.handler.eventhandler.RestartEffectSkillEventHandler;
import com.garowing.gameexp.game.rts.skill.handler.eventhandler.SkillHarmSkillEventHandler;
import com.garowing.gameexp.game.rts.skill.handler.eventhandler.TargetChangeSkillEventHandler;
import com.garowing.gameexp.game.rts.skill.handler.eventhandler.TroopDieSkillEventHandler;
import com.garowing.gameexp.game.rts.skill.handler.eventhandler.TroopNumSkillEventHandler;
import com.garowing.gameexp.game.rts.skill.handler.eventhandler.UnitHpChangeSkillEventHandler;
import com.garowing.gameexp.game.rts.skill.handler.eventhandler.UseCardSkillEventHandler;
import com.garowing.gameexp.game.rts.skill.handler.eventhandler.UseStrategosSkillEventHandler;
/**
* 技能事件类型
* @author seg
* 2017年3月24日
*/
public enum SkillEventType
{
/* 技能触发控制 */
/**
* 攻击事件,包含被攻击
*/
ATTACK(new AttackSkillEventHandler()),
/**
* 进入战场,涉及开场技能
*/
ENTER_SCENE(new EnterSceneSkillEventHandler()),
/**
* 初始化控制器,如增加初始粮草的技能
*/
INIT_CONTROL(new InitControlSkillEventHandler()),
/**
* 使用将军技能
*/
USE_GENERAL_SKILL(new UseStrategosSkillEventHandler()),
/**
* 部队数改变
*/
TROOP_COUNT_CHANGE(new TroopNumSkillEventHandler()),
/**
* 部队死亡
*/
TROOP_DIE(new TroopDieSkillEventHandler()),
/**
* 使用卡牌
*/
USE_CARD(new UseCardSkillEventHandler()),
/**
* 目标改变事件
*/
TARGET_CHANGE(new TargetChangeSkillEventHandler()),
/**
* 血量改变
*/
HP_CHANGE(new UnitHpChangeSkillEventHandler()),
/**
* 技能伤害
*/
SKILL_HARM(new SkillHarmSkillEventHandler()),
/* 技能生命周期控制 */
/**
* 客户端通知
*/
CLIENT_NOTIFY(new ClientNotifySkillEventHandler()),
/**
* 技能强制结束
*/
INTERRUPT(new InterrupEffectSkillEventHandler()),
/**
* 重置效果
*/
RESTART_EFFECT(new RestartEffectSkillEventHandler()),
/**
* 刷新效果持续事件
*/
REFRESH_EFFECT(new RefreshEffectSkillEventHandler()),
;
private final SkillEventHandler handler;
SkillEventType(SkillEventHandler handler)
{
this.handler = handler;
}
public SkillEventHandler getHandler()
{
return handler;
}
}
| [
"ice112_cool@163.com"
] | ice112_cool@163.com |
d0caa16fe88843a7ac4995994babe1fc37652516 | 2290a47fbbdef8cb893f8477e3230ec5a0cb225c | /src/test/java/de/javagl/common/ui/closeable/test/CloseablePanelTest.java | 23875be8cd334a14665c248538f81a049330bc10 | [
"MIT"
] | permissive | javagl/CommonUI | 06bf903939eac2beee0a0e2a875c94117c617329 | d19fd1858877b9a6979839e57b82e0d806455553 | refs/heads/master | 2022-11-30T14:08:38.715230 | 2022-11-26T14:33:09 | 2022-11-26T14:33:09 | 46,824,622 | 2 | 1 | null | null | null | null | UTF-8 | Java | false | false | 2,035 | java | package de.javagl.common.ui.closeable.test;
import java.awt.Color;
import java.awt.Component;
import java.awt.GridLayout;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.SwingUtilities;
import de.javagl.common.ui.closeable.CloseCallback;
import de.javagl.common.ui.closeable.CloseablePanel;
/**
* Simple integration test for the {@link CloseablePanel}
*/
@SuppressWarnings("javadoc")
public class CloseablePanelTest
{
public static void main(String[] args)
{
SwingUtilities.invokeLater(new Runnable()
{
@Override
public void run()
{
createAndShowGUI();
}
});
}
private static void createAndShowGUI()
{
JFrame f = new JFrame();
f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
JPanel container = new JPanel(new GridLayout(0,1));
CloseablePanel panel0 = new CloseablePanel(
"Title 0", new JLabel("Panel 0"));
panel0.setBackground(Color.RED);
container.add(panel0);
CloseablePanel panel1 = new CloseablePanel(
new JLabel("Panel 1, without title"));
panel1.setBackground(Color.GREEN);
container.add(panel1);
CloseCallback closeCallback = new CloseCallback()
{
@Override
public boolean mayClose(Component componentInTab)
{
System.out.println("Checking whether panel may be closed...");
return false;
}
};
CloseablePanel panel2 = new CloseablePanel("Title 2",
new JLabel("Panel 2, may not be closed"), closeCallback);
panel2.setBackground(Color.YELLOW);
container.add(panel2);
f.getContentPane().add(container);
f.setSize(400,200);
f.setLocationRelativeTo(null);
f.setVisible(true);
}
}
| [
"javagl@javagl.de"
] | javagl@javagl.de |
17fb77c5603f4aa5ccf830ef1e9b1baff2556ba5 | 4b0bf4787e89bcae7e4759bde6d7f3ab2c81f849 | /aliyun-java-sdk-cloudcallcenter/src/main/java/com/aliyuncs/cloudcallcenter/model/v20170705/QueryNumber400ListResponse.java | a9233b87c10957d413a2b343725e2e02a730b2b9 | [
"Apache-2.0"
] | permissive | aliyun/aliyun-openapi-java-sdk | a263fa08e261f12d45586d1b3ad8a6609bba0e91 | e19239808ad2298d32dda77db29a6d809e4f7add | refs/heads/master | 2023-09-03T12:28:09.765286 | 2023-09-01T09:03:00 | 2023-09-01T09:03:00 | 39,555,898 | 1,542 | 1,317 | NOASSERTION | 2023-09-14T07:27:05 | 2015-07-23T08:41:13 | Java | UTF-8 | Java | false | false | 2,951 | java | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.cloudcallcenter.model.v20170705;
import java.util.List;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.cloudcallcenter.transform.v20170705.QueryNumber400ListResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;
/**
* @author auto create
* @version
*/
public class QueryNumber400ListResponse extends AcsResponse {
private String requestId;
private Boolean success;
private String code;
private String message;
private Integer httpStatusCode;
private Data data;
public String getRequestId() {
return this.requestId;
}
public void setRequestId(String requestId) {
this.requestId = requestId;
}
public Boolean getSuccess() {
return this.success;
}
public void setSuccess(Boolean success) {
this.success = success;
}
public String getCode() {
return this.code;
}
public void setCode(String code) {
this.code = code;
}
public String getMessage() {
return this.message;
}
public void setMessage(String message) {
this.message = message;
}
public Integer getHttpStatusCode() {
return this.httpStatusCode;
}
public void setHttpStatusCode(Integer httpStatusCode) {
this.httpStatusCode = httpStatusCode;
}
public Data getData() {
return this.data;
}
public void setData(Data data) {
this.data = data;
}
public static class Data {
private Integer monthlyPrice;
private List<Number> numbers;
public Integer getMonthlyPrice() {
return this.monthlyPrice;
}
public void setMonthlyPrice(Integer monthlyPrice) {
this.monthlyPrice = monthlyPrice;
}
public List<Number> getNumbers() {
return this.numbers;
}
public void setNumbers(List<Number> numbers) {
this.numbers = numbers;
}
public static class Number {
private String number;
private String signature;
public String getNumber() {
return this.number;
}
public void setNumber(String number) {
this.number = number;
}
public String getSignature() {
return this.signature;
}
public void setSignature(String signature) {
this.signature = signature;
}
}
}
@Override
public QueryNumber400ListResponse getInstance(UnmarshallerContext context) {
return QueryNumber400ListResponseUnmarshaller.unmarshall(this, context);
}
}
| [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
8e399a33832ddb3be0fd6cd41595be0f69853b5f | 8cddc0e08634b945eb52c95d9ca1c0957242793c | /Workspace/Polymorphism/src/Programi/Programi.java | 5b43a6384ad971b45f61ff8969cb062712fb528a | [] | no_license | CiscoCourse/Projects | 3d8f1a648b6bca635f559a148f3ce42cdb3eff83 | 79c24ade2ec52c1184de57397ab06a2116383848 | refs/heads/master | 2021-01-10T18:20:03.946470 | 2016-03-06T17:22:41 | 2016-03-06T17:22:41 | 53,265,368 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 502 | java | package Programi;
import Polymorphism.Internisti;
import Polymorphism.Kardiologu;
import Polymorphism.Mjeku;
public class Programi {
public static void main(String[] args) {
// TODO Auto-generated method stub
Internisti internisti = new Internisti();
Kardiologu kardiologu = new Kardiologu();
internisti.trego();
kardiologu.trego();
Mjeku mjeku = new Kardiologu();
mjeku.trego();
Mjeku mjeku2 = new Internisti();
mjeku2.trego();
}
}
| [
"cisco@Win8-PC6.InfoTech-Kosova.local"
] | cisco@Win8-PC6.InfoTech-Kosova.local |
4c614de65a4ad762764b2a281e20f6636d405548 | 082e26b011e30dc62a62fae95f375e4f87d9e99c | /docs/weixin_7.0.4_source/反编译源码/未反混淆/src/main/java/com/tencent/mm/ui/conversation/a/e.java | 5fd26afb07b5265633c1fdfacffa2f233e38fcbe | [] | no_license | xsren/AndroidReverseNotes | 9631a5aabc031006e795a112b7ac756a8edd4385 | 9202c276fe9f04a978e4e08b08e42645d97ca94b | refs/heads/master | 2021-04-07T22:50:51.072197 | 2019-07-16T02:24:43 | 2019-07-16T02:24:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 6,884 | java | package com.tencent.mm.ui.conversation.a;
import android.content.Context;
import com.facebook.appevents.AppEventsConstants;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.model.a.f;
import com.tencent.mm.model.a.g;
import com.tencent.mm.model.aw;
import com.tencent.mm.model.b.b.b;
import com.tencent.mm.model.bd;
import com.tencent.mm.model.be;
import com.tencent.mm.model.c;
import com.tencent.mm.sdk.platformtools.ab;
import com.tencent.mm.sdk.platformtools.bo;
public final class e {
public enum a {
MAIN_FRAME_BANNER,
CHATTING_RECOMMEND_BANNER,
CHATTING_SECURITY_BANNER,
NET_WARN_BANNER,
OTHER_ONLINE_BANNER,
FORCE_NOTIFY_BANNER,
FACEBOOK_BANNER,
AD_BANNER,
ABTEST_BANNER,
MASS_SEND_SIGHT_BANNER,
TRY_NEW_INIT_BANNER,
MAIN_FRAME_AND_ABTEST_BANNER,
CHATTING_MONITORED_HINT;
static {
AppMethodBeat.o(34648);
}
}
public static com.tencent.mm.pluginsdk.ui.b.a a(Context context, a aVar, Object[] objArr) {
com.tencent.mm.pluginsdk.ui.b.a aVar2 = null;
int i = 0;
AppMethodBeat.i(34649);
String obj;
String obj2;
switch (aVar) {
case CHATTING_RECOMMEND_BANNER:
if (objArr != null && objArr.length == 2) {
obj = objArr[0] != null ? objArr[0].toString() : null;
if (objArr[1] != null) {
obj2 = objArr[1].toString();
} else {
obj2 = null;
}
if (aw.ZK().Yk() == null) {
ab.w("MicroMsg.BannerFactory", "recommend banner stg is null. this may be caused by account async init.");
}
if (aw.ZK().Yk() != null && (aw.ZK().Yk().oV(obj) || aw.ZK().Yk().oV(obj2))) {
aVar2 = new f(context, obj, obj2);
break;
}
}
case CHATTING_SECURITY_BANNER:
if (objArr != null && objArr.length == 3) {
String obj3;
boolean z;
obj2 = objArr[0] != null ? objArr[0].toString() : null;
if (objArr[1] != null) {
obj3 = objArr[1].toString();
} else {
obj3 = null;
}
if (objArr[2] == null || !(objArr[2] instanceof Boolean)) {
z = false;
} else {
z = ((Boolean) objArr[2]).booleanValue();
}
if ((aw.RK() && aw.ZK().Yl() != null && aw.ZK().Yl().oV(obj2)) || aw.ZK().Yl().oV(obj3)) {
aVar2 = new g(context, obj2, obj3, z);
break;
}
}
break;
case NET_WARN_BANNER:
aVar2 = new o(context);
break;
case OTHER_ONLINE_BANNER:
aVar2 = new p(context);
break;
case FORCE_NOTIFY_BANNER:
aVar2 = new i(context);
break;
case FACEBOOK_BANNER:
aVar2 = new h(context);
break;
case AD_BANNER:
aVar2 = new a(context);
break;
case MAIN_FRAME_BANNER:
be.ZV();
bd ZW = be.ZW();
if (ZW != null) {
aVar2 = new l(context, ZW);
break;
}
break;
case ABTEST_BANNER:
com.tencent.mm.model.a.e oP = g.aaK().oP("4");
if (oP != null) {
obj = oP.value;
if (!(bo.isNullOrNil(obj) || obj.equals(AppEventsConstants.EVENT_PARAM_VALUE_NO))) {
Object obj4;
if (!obj.equals("1")) {
if (obj.equals("2")) {
aw.ZK();
obj4 = c.Ry().get(328196, Boolean.FALSE);
if (obj4 instanceof Boolean) {
i = ((Boolean) obj4).booleanValue();
}
if (i != 0) {
ab.i("MicroMsg.BannerFactory", "[cpan] banner type upload contact has clicked.");
break;
}
be.ZV();
if (be.ZY() != com.tencent.mm.model.be.a.SUCC) {
aVar2 = new l(context, new bd(2, 1, ""));
f.oT("4");
break;
}
ab.i("MicroMsg.BannerFactory", "already upload the Mobile");
break;
}
}
aw.ZK();
obj4 = c.Ry().get(328195, Boolean.FALSE);
if (obj4 instanceof Boolean) {
i = ((Boolean) obj4).booleanValue();
}
if (i != 0) {
ab.i("MicroMsg.BannerFactory", "[cpan] banner type bind mobile has clicked.");
break;
}
be.ZV();
com.tencent.mm.model.be.a ZY = be.ZY();
if (ZY != com.tencent.mm.model.be.a.SUCC && ZY != com.tencent.mm.model.be.a.SUCC_UNLOAD) {
aVar2 = new l(context, new bd(1, 1, ""));
f.oT("4");
break;
}
ab.i("MicroMsg.BannerFactory", "already Bind the Mobile");
break;
}
}
break;
case MASS_SEND_SIGHT_BANNER:
aVar2 = new m(context);
break;
case TRY_NEW_INIT_BANNER:
aVar2 = new q(context);
break;
case MAIN_FRAME_AND_ABTEST_BANNER:
aVar2 = new k(context);
break;
case CHATTING_MONITORED_HINT:
b bVar;
if (objArr == null || objArr.length <= 0) {
bVar = b.Main;
} else {
bVar = (b) objArr[0];
}
aVar2 = new com.tencent.mm.ui.d.a(context, bVar);
break;
}
AppMethodBeat.o(34649);
return aVar2;
}
}
| [
"alwangsisi@163.com"
] | alwangsisi@163.com |
1d45bcc8463184874801fe357231514581360d51 | 6da34247e66e886ed339cbf7a6ad913088f4e45c | /uts mobile/kuis android/app/src/main/java/com/fina/kuis/adapter/RecylerAdapter.java | 661af4674e18b35fc413bad334bc35f38c521e5e | [] | no_license | finayuniarti/mobile-programming | 0d3baf23e96645152bfc06ec67b8540a2a206c7e | f76dbde58692843ed70e62bc9cca619b66197e5e | refs/heads/master | 2020-05-19T02:05:10.137567 | 2019-05-04T02:21:58 | 2019-05-04T02:21:58 | 184,772,803 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,604 | java | package com.fina.kuis.adapter;
import android.content.Context;
import android.content.Intent;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import android.widget.Toast;
import com.fina.kuis.MainActivity;
import com.fina.kuis.R;
import com.fina.kuis.model.DataModel;
import java.util.List;
/**
* Created by Server on 13/09/2017.
*/
public class RecylerAdapter extends
RecyclerView.Adapter<RecylerAdapter.MyHolder> {
List<DataModel> mList ;
Context ctx;
public RecylerAdapter(Context ctx, List<DataModel> mList) {
this.mList = mList;
this.ctx = ctx;
}
@Override
public RecylerAdapter.MyHolder onCreateViewHolder(ViewGroup
parent, int viewType) {
View layout =
LayoutInflater.from(parent.getContext()).inflate(R.layout.layoutlist,
parent, false);
MyHolder holder = new MyHolder(layout);
return holder;
}
@Override
public void onBindViewHolder(RecylerAdapter.MyHolder holder,
final int position) {
holder.nama.setText(mList.get(position).getNama());
holder.stok.setText(mList.get(position).getStok());
holder.itemView.setOnClickListener(new View.OnClickListener()
{
@Override
public void onClick(View view) {
Intent goInput = new Intent(ctx,MainActivity.class);
try {
goInput.putExtra("id",
mList.get(position).getId());
goInput.putExtra("nama",
mList.get(position).getNama());
goInput.putExtra("stok",
mList.get(position).getStok());
ctx.startActivity(goInput);
}catch (Exception e){
e.printStackTrace();
Toast.makeText(ctx, "Error data " +e,
Toast.LENGTH_SHORT).show();
}
}
});
}
@Override
public int getItemCount()
{
return mList.size();
}
public class MyHolder extends RecyclerView.ViewHolder {
TextView nama, stok;
DataModel dataModel;
public MyHolder(View v)
{
super(v);
nama = (TextView) v.findViewById(R.id.tvNama);
stok = (TextView) v.findViewById(R.id.tvStok);
}
}
}
| [
"yuniafina4@gmail.com"
] | yuniafina4@gmail.com |
c12ce58fa24888de2b0f91804ad261ebda0db3ef | 79389555a85a09199df423e0c3971e668340ad37 | /src/PasswordGui.java | 9181a771fdae13b91923d477000ba903bb41e5ad | [] | no_license | badgerwild/password-maker | bba8cf3917428fa7d7d71bdf6c24296cd91bfd7d | 702c238f416f93565fc92e704928af47618e3311 | refs/heads/master | 2020-05-21T01:07:24.623254 | 2020-04-28T13:12:00 | 2020-04-28T13:12:00 | 185,848,874 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 6,301 | java |
import javafx.application.Application;
import javafx.beans.value.ChangeListener;
import javafx.beans.value.ObservableValue;
import javafx.event.EventHandler;
import javafx.geometry.Insets;
import javafx.scene.control.*;
import javafx.scene.input.MouseEvent;
import javafx.scene.layout.HBox;
import javafx.scene.layout.VBox;
import javafx.stage.Stage;
import javafx.scene.text.Text;
import javafx.scene.text.Font;
import javafx.scene.*;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.ObjectOutputStream;
import java.io.PrintStream;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Scanner;
public class PasswordGui extends Application {
TextArea output = new TextArea();
public static void main(String[] args) {
launch(args);
}
@Override
public void start(Stage primaryStage) throws Exception {
Scene scene = new Scene(new Group());
primaryStage.setWidth(500);
primaryStage.setHeight(500);
primaryStage.setTitle("Password Generator");
Text t1 = new Text();
t1.setFont(new Font(22));
t1.setX(5);
t1.setY(5);
t1.setText("Welcome to the pass code generator");
Text t2 = new Text("How many dice would you like to use?");
t2.setFont(new Font(14));
Text t3 = new Text("How many words would you like the pass phrase to have?");
t2.setFont(new Font(14));
//first group of radio buttons selects the number of Dice to be used
final ToggleGroup numberOfDice = new ToggleGroup();
//use the long word list
RadioButton r1 = new RadioButton("four");
r1.setToggleGroup(numberOfDice);
r1.setSelected(true);
r1.setUserData(4);
//use the short word list
RadioButton r2 = new RadioButton("five");
r2.setToggleGroup(numberOfDice);
r2.setUserData(5);
//event handler for the first radio button group
numberOfDice.selectedToggleProperty().addListener(new ChangeListener<Toggle>() {
@Override
public void changed(ObservableValue<? extends Toggle> observable, Toggle oldValue, Toggle newValue) {
if(numberOfDice.getSelectedToggle() != null){
// System.out.println(numberOfDice.getSelectedToggle().getUserData().toString());
if(numberOfDice.getSelectedToggle().getUserData().equals(4)){
diceNumber =4;
wordSource = new File("/home/badger/word-lists/eff_short_wordlist.txt");
}
else if(numberOfDice.getSelectedToggle().getUserData().equals(5)){
diceNumber =5;
wordSource = new File("/home/badger/word-lists/eff_large_wordlist.txt");
}
}
}
});
//define a new hbox and vbox
HBox hBox = new HBox();
VBox vbox = new VBox();
//adding in the intial text and radio buttons
vbox.getChildren().add(t1);
vbox.getChildren().add(t2);
vbox.getChildren().add(r1);
vbox.getChildren().add(r2);
vbox.setSpacing(10);
vbox.setPadding(new Insets(20, 10, 50, 20));
hBox.getChildren().add(vbox);
hBox.setSpacing(50);
((Group)scene.getRoot()).getChildren().add(hBox);
//group two of the radion buttons, determines the number of the words used in the pass phrase
final ToggleGroup selectNumberOfWords = new ToggleGroup();
RadioButton w1 = new RadioButton("four");
w1.setToggleGroup(selectNumberOfWords);
w1.setUserData(4);
w1.setSelected(true);
RadioButton w2 = new RadioButton("five");
w2.setToggleGroup(selectNumberOfWords);
w2.setUserData(5);
RadioButton w3 = new RadioButton("six");
w3.setToggleGroup(selectNumberOfWords);
w3.setUserData(6);
//Event handler for the second group of radio buttons. Selects the number of words that will make up the passcode
selectNumberOfWords.selectedToggleProperty().addListener(new ChangeListener<Toggle>() {
@Override
public void changed(ObservableValue<? extends Toggle> observable, Toggle oldValue, Toggle newValue) {
if(selectNumberOfWords.getSelectedToggle().getUserData()!=null){
// System.out.println(selectNumberOfWords.getSelectedToggle().getUserData().toString());
if(selectNumberOfWords.getSelectedToggle().getUserData().equals(4)){
wordNumber=4;
}
else if(selectNumberOfWords.getSelectedToggle().getUserData().equals(5)){
wordNumber =5;
}
else if(selectNumberOfWords.getSelectedToggle().getUserData().equals(6)){
wordNumber =6;
}
}
}
});
vbox.getChildren().add(t3);
vbox.getChildren().add(w1);
vbox.getChildren().add(w2);
vbox.getChildren().add(w3);
vbox.setSpacing(12);
vbox.setPadding(new Insets(20,10,10,20));
//button that completes the first function
Button generate = new Button("Generate");
generate.setOnMouseClicked(new EventHandler<MouseEvent>() {
@Override
public void handle(MouseEvent event) {
System.out.println(thePassword());
}
});
vbox.getChildren().add(generate);
//TextArea output = new TextArea();
System.setOut(new PrintStream(new ObjectOutputStream() {
@Override
public void write(int b) throws IOException {
output.appendText("" + ((char) b));
}
@Override
public void write(byte[] b) throws IOException {
output.appendText(new String(b));
}
@Override
public void write(byte[] b, int off, int len) throws IOException {
output.appendText(new String(b, off, len));
}
}));
output.setMaxSize(400, 100);
vbox.getChildren().add(output);
primaryStage.setScene(scene);
primaryStage.show();
}
}
| [
"jklimock@gmail.com"
] | jklimock@gmail.com |
bfe1962a121e98112735a7d3d18b9e5ad54ecd92 | 31e7b116fcdbb5762f95bfe908ccefac1aa9eaa6 | /src/Sale/SaleServiceImpl.java | 9367808b37f6b1e989fe1a44ad609371793ae587 | [] | no_license | DestinyOwner/OnlineBookStoreClient | f2cce6b495112b649644df9ec1f88b8002d0e53d | bea24299b79782a709f36c9ebfbb36b1f0caddc9 | refs/heads/master | 2020-03-28T19:12:25.437976 | 2012-12-14T08:40:32 | 2012-12-14T08:40:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,324 | java | package Sale;
import java.net.MalformedURLException;
import java.rmi.Naming;
import java.rmi.NotBoundException;
import java.rmi.RemoteException;
import ClientRunner.Const;
import RMI.ResultMessage;
public class SaleServiceImpl implements SaleService {
private SaleService service_stub = null;
public SaleServiceImpl() {
try {
service_stub = (SaleService) Naming.lookup(Const.SERVER
+ "SaleService");
} catch (MalformedURLException e) {
e.printStackTrace();
} catch (RemoteException e) {
e.printStackTrace();
} catch (NotBoundException e) {
e.printStackTrace();
}
}
@Override
public ResultMessage addToCart(ItemPO itemPO, int memberID)
throws RemoteException {
return service_stub.addToCart(itemPO, memberID);
}
@Override
public ResultMessage deleteFromCart(String bookISBN, int memberID)
throws RemoteException {
return service_stub.deleteFromCart(bookISBN, memberID);
}
@Override
public ResultMessage addOrder(OrderPO orderPO) throws RemoteException {
return service_stub.addOrder(orderPO);
}
@Override
public ResultMessage getBooksInCart(int memberID) throws RemoteException {
return service_stub.getBooksInCart(memberID);
}
@Override
public ResultMessage updateCart(CartPO cartPO) throws RemoteException {
return service_stub.updateCart(cartPO);
}
}
| [
"sunshinezxf@hotmail.com"
] | sunshinezxf@hotmail.com |
732750ec4442736743dbdb11d3d801f339cb303a | 0e7dfb99c678e6af489cc9d5be3811f6a90b25da | /src/main/java/net/craftminecraft/bungee/bungeeyaml/bukkitapi/ConfigurationOptions.java | 8f939a8e994faf62d953c100f4df2c0a78d95bcb | [] | no_license | AwesomePowered/BungeeYAML | 240c322b618bec8ccb65040066e3b431bc497f5d | bcbe8fd0f33766dc00bb42c4f359985bd07122b2 | refs/heads/master | 2021-01-16T19:10:31.047966 | 2014-08-08T12:23:17 | 2014-08-08T12:23:17 | 11,221,611 | 0 | 2 | null | null | null | null | UTF-8 | Java | false | false | 2,940 | java | package net.craftminecraft.bungee.bungeeyaml.bukkitapi;
/**
* Various settings for controlling the input and output of a {@link Configuration}
*/
public class ConfigurationOptions {
private char pathSeparator = '.';
private boolean copyDefaults = false;
private final Configuration configuration;
protected ConfigurationOptions(Configuration configuration) {
this.configuration = configuration;
}
/**
* Returns the {@link Configuration} that this object is responsible for.
*
* @return Parent configuration
*/
public Configuration configuration() {
return configuration;
}
/**
* Gets the char that will be used to separate {@link ConfigurationSection}s
* <p />
* This value does not affect how the {@link Configuration} is stored, only in
* how you access the data. The default value is '.'.
*
* @return Path separator
*/
public char pathSeparator() {
return pathSeparator;
}
/**
* Sets the char that will be used to separate {@link ConfigurationSection}s
* <p />
* This value does not affect how the {@link Configuration} is stored, only in
* how you access the data. The default value is '.'.
*
* @param value Path separator
* @return This object, for chaining
*/
public ConfigurationOptions pathSeparator(char value) {
this.pathSeparator = value;
return this;
}
/**
* Checks if the {@link Configuration} should copy values from its default {@link Configuration} directly.
* <p />
* If this is true, all values in the default Configuration will be directly copied,
* making it impossible to distinguish between values that were set and values that
* are provided by default. As a result, {@link ConfigurationSection#contains(java.lang.String)} will always
* return the same value as {@link ConfigurationSection#isSet(java.lang.String)}.
* The default value is false.
*
* @return Whether or not defaults are directly copied
*/
public boolean copyDefaults() {
return copyDefaults;
}
/**
* Sets if the {@link Configuration} should copy values from its default {@link Configuration} directly.
* <p />
* If this is true, all values in the default Configuration will be directly copied,
* making it impossible to distinguish between values that were set and values that
* are provided by default. As a result, {@link ConfigurationSection#contains(java.lang.String)} will always
* return the same value as {@link ConfigurationSection#isSet(java.lang.String)}.
* The default value is false.
*
* @param value Whether or not defaults are directly copied
* @return This object, for chaining
*/
public ConfigurationOptions copyDefaults(boolean value) {
this.copyDefaults = value;
return this;
}
}
| [
"robinlambertz.dev@gmail.com"
] | robinlambertz.dev@gmail.com |
ccc9aecfd19b34d3f1f02d6d538098cdb76977e6 | 7e5846f713e2feeac36bc183d337347e5756f72e | /src/main/java/com/examples/rs/exception/ExceptionConstants.java | ad7a43f384e98021a9a712032b43280765fc3284 | [] | no_license | naggangisetty/Calulator_Terraform | 2125c94863ee93045374668a88c5e4bf579bd357 | 66cc54748b5eead6b5d5876546ac1fd05ac443da | refs/heads/master | 2021-11-26T14:06:50.838559 | 2018-07-24T19:53:31 | 2018-07-24T19:53:31 | 142,179,429 | 0 | 0 | null | 2021-11-12T19:49:37 | 2018-07-24T15:38:54 | Java | UTF-8 | Java | false | false | 510 | java | package com.examples.rs.exception;
public final class ExceptionConstants {
private ExceptionConstants() {
}
public static final String CLIENT_REQUEST_INCORRECT_CODE = "GEN-FAIL-C-001";
public static final String GENERAL_SERVER_FAILURE_CODE = "GEN-FAIL-S-042";
public static final String GENERAL_CLIENT_FAILURE_CODE = "GEN-FAIL-C-042";
public static final String GENERAL_UNKNOWN_TYPE_FAILURE_CODE = "GEN-FAIL-U-042";
public static final String CIRCUIT_OPEN_SERVER_FAILURE_CODE = "GEN-FAIL-S-001-";
}
| [
"Naganjaneyulu.Gangisetty@suntrust.com"
] | Naganjaneyulu.Gangisetty@suntrust.com |
2791f792501c4ab5493f9bb6dd1d2a480cefe84c | c45410519e45995b42dbda7738058b8fa84a1136 | /app/src/test/java/com/df/proyecto_age_of_empiresii/ExampleUnitTest.java | 4dda23e26e25f7568dde2e1409ae1313295bfd54 | [] | no_license | Edisson80/Proyecto_Age_of_EmpiresII | 0e8c15dff542570c9e6c7472cea6b5bd265f2d36 | cbab7f643b30a67b6373b2758ae83b8520167b52 | refs/heads/master | 2023-06-03T03:45:13.743129 | 2021-06-19T03:32:27 | 2021-06-19T03:32:27 | 378,312,627 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 393 | java | package com.df.proyecto_age_of_empiresii;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* Example local unit test, which will execute on the development machine (host).
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
public class ExampleUnitTest {
@Test
public void addition_isCorrect() {
assertEquals(4, 2 + 2);
}
} | [
"Edisson80@github.com"
] | Edisson80@github.com |
a273c4d0a5c146c72f7d6c2ace7b840c21a246e9 | 5b0022f1c0d2e80bce399b07e45a0603a1c36469 | /JavaProject/back-end/src/main/java/top/ender/miniapp/service/impl/VirtualCardServiceImpl.java | 299824834e60364f379dd1d19411a639bb9192a9 | [] | no_license | EnderXiao/GraduationProject | 83d506e9b6113cef06395b7c9388bd811ea310da | 90eb033e16086f6db8090edc006742c3187582e2 | refs/heads/main | 2023-04-06T18:32:19.315120 | 2021-04-05T09:27:29 | 2021-04-05T09:27:29 | 354,781,015 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,346 | java | package top.ender.miniapp.service.impl;
import top.ender.miniapp.dao.VirtualCardDao;
import top.ender.miniapp.entity.VirtualCard;
import top.ender.miniapp.service.VirtualCardService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
/**
* (VirtualCard)表服务实现类
*
* @author makejava
* @since 2021-02-12 10:58:11
*/
@Service("virtualcardService")
public class VirtualCardServiceImpl implements VirtualCardService {
@Resource
private VirtualCardDao virtualcardDao;
/**
* 通过ID查询单条数据
*
* @param vcId 主键
* @return 实例对象
*/
@Override
public VirtualCard queryById(Integer vcId) {
return this.virtualcardDao.queryById(vcId);
}
/**
* 查询多条数据
*
* @param offset 查询起始位置
* @param limit 查询条数
* @return 对象列表
*/
@Override
public List<VirtualCard> queryAllByLimit(int offset, int limit) {
return this.virtualcardDao.queryAllByLimit(offset, limit);
}
/**
* 按用户Id查找
*
* @param uId 用户Id
* @return 实列对象
*/
@Override
public VirtualCard queryByUserId(String uId) {
return this.virtualcardDao.queryByUserId(uId);
}
/**
* 新增数据
*
* @param virtualcard 实例对象
* @return 实例对象
*/
@Override
public VirtualCard insert(VirtualCard virtualcard) {
this.virtualcardDao.insert(virtualcard);
return virtualcard;
}
/**
* 修改数据
*
* @param virtualcard 实例对象
* @return 实例对象
*/
@Override
public VirtualCard update(VirtualCard virtualcard) {
this.virtualcardDao.update(virtualcard);
return this.queryById(virtualcard.getVcId());
}
/**
* 通过主键删除数据
*
* @param vcId 主键
* @return 是否成功
*/
@Override
public boolean deleteById(Integer vcId) {
return this.virtualcardDao.deleteById(vcId) > 0;
}
/**
* 通过用户ID删除数据
*
* @param uId 用户ID
* @return 是否成功
*/
@Override
public boolean deleteByUserId(String uId) {
return this.virtualcardDao.deleteByUserId(uId) > 0;
}
}
| [
"1286554811@qq.com"
] | 1286554811@qq.com |
bc615f6c500a34467c42d7b708b9c00045e6fcef | 5741045375dcbbafcf7288d65a11c44de2e56484 | /reddit-decompilada/com/reddit/frontpage/ui/detail/BaseDetailScreen$$Lambda$17.java | 45df3e1b0b4d2f4c85e8b921c7863530ed65d207 | [] | no_license | miarevalo10/ReporteReddit | 18dd19bcec46c42ff933bb330ba65280615c281c | a0db5538e85e9a081bf268cb1590f0eeb113ed77 | refs/heads/master | 2020-03-16T17:42:34.840154 | 2018-05-11T10:16:04 | 2018-05-11T10:16:04 | 132,843,706 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,095 | java | package com.reddit.frontpage.ui.detail;
import android.support.v7.widget.RecyclerView.ViewHolder;
import android.view.View;
import android.view.View.OnClickListener;
import com.reddit.datalibrary.frontpage.data.provider.CommentsProvider;
import com.reddit.frontpage.ui.detail.comments.ReplyableTreeNode;
final /* synthetic */ class BaseDetailScreen$$Lambda$17 implements OnClickListener {
private final BaseDetailScreen f21142a;
BaseDetailScreen$$Lambda$17(BaseDetailScreen baseDetailScreen) {
this.f21142a = baseDetailScreen;
}
public final void onClick(View view) {
view = this.f21142a;
if (view.f39155H != null) {
View findChildViewUnder = view.detailList.findChildViewUnder(0.0f, (float) (view.f39149B.getMeasuredHeight() + 1));
if (findChildViewUnder != null) {
ReplyableTreeNode a;
ViewHolder findContainingViewHolder = view.detailList.findContainingViewHolder(findChildViewUnder);
if (findContainingViewHolder == null || (findChildViewUnder instanceof DetailListHeader)) {
a = view.f39155H.a(0);
} else {
view.f39155H.a(view.f39154G.m30148d(findContainingViewHolder));
int d = view.f39154G.m30148d(findContainingViewHolder);
CommentsProvider commentsProvider = view.f39155H;
if (d < 0) {
d = 0;
}
ReplyableTreeNode a2 = commentsProvider.a(d);
commentsProvider = view.f39155H;
for (d = commentsProvider.a.m23359a(a2) + 1; d < commentsProvider.a.f21186b.size() - 1; d++) {
a = commentsProvider.a.m23360a(d);
if (a.f21183b == 0) {
break;
}
}
a = null;
}
if (a != null) {
view.m39124a(a.f21182a.b(), true, false);
}
}
}
}
}
| [
"mi.arevalo10@uniandes.edu.co"
] | mi.arevalo10@uniandes.edu.co |
6ce250d8c355f70fd2b46aba8475514ea7b92abc | 5d7565cf8cd813df51ed65afba3e4ed205d538fb | /src/main/java/chs/wechat/spy/websdk/api/model/WeChatMessage.java | 2a3c0770bf292679b8d6c3951f1a4cb080f66729 | [
"MIT"
] | permissive | CSNight/VX-MonitorServices | 0238bd81209939e55a5222f02e4cb16aa098a236 | b46eefb1b7d3a3125508fc8a40e3ebb6b78b8cfd | refs/heads/master | 2022-10-24T08:53:36.616498 | 2022-10-12T15:01:52 | 2022-10-12T15:01:52 | 185,579,731 | 3 | 2 | MIT | 2022-06-17T02:09:05 | 2019-05-08T09:58:13 | Java | UTF-8 | Java | false | false | 2,084 | java | package chs.wechat.spy.websdk.api.model;
import chs.wechat.spy.websdk.api.enums.MsgType;
import chs.wechat.spy.websdk.utils.StringUtils;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
* 微信消息,封装了原始消息
*
* @author biezhi
* @date 2018/1/20
*/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class WeChatMessage {
/**
* 微信原始消息
*/
private Message raw;
/**
* mssage_id
*/
private String id;
/**
* 文本内容
*/
private String text;
/**
* 接收到的图片在本地的路径
*/
private String imagePath;
/**
* 接收到的视频在本地的路径
*/
private String videoPath;
/**
* 接收到的音频在本地的路径
*/
private String voicePath;
/**
* 发送人 username
*/
private String fromUserName;
/**
* 发送人昵称
*/
private String fromNickName;
/**
* 发送人备注
*/
private String fromRemarkName;
/**
* 我的UserName
*/
private String mineUserName;
/**
* 我的微信昵称
*/
private String mineNickName;
/**
* 接收人 username
*/
private String toUserName;
/**
* 个人名片
*/
private Recommend recommend;
/**
* 是否是位置信息
*/
private boolean isLocation;
/**
* 是否是艾特我的消息
*/
private boolean isAtMe;
/**
* 消息类型
*/
private MsgType msgType;
/**
* 获取发送人姓名如果有备注则优先显示备注,否则显示昵称
*
* @return
*/
public String getName() {
return StringUtils.isEmpty(fromRemarkName) ? this.fromNickName : this.fromRemarkName;
}
/**
* 是否是群聊消息
*
* @return 返回是否是群组消息
*/
public boolean isGroup() {
return fromUserName.contains("@@") || toUserName.contains("@@");
}
}
| [
"923739637@qq.com"
] | 923739637@qq.com |
d1a7f2239f79c4f304b98e7910dbfc7620548579 | 93ae5e556ea31cc6d57cf0f19f61cda4902eb959 | /src/main/java/com/fei/netty/springmvc/db/Param.java | 7af95259cc5fd1545b3d9fde85cfd314071cc4f4 | [] | no_license | 1401826426/netty-springmvc | 66e7f58f7b9077b8904388bf7d5135252a12a8ed | ec4e03a3d6717530807aa7cc1b1e7ee104053cf8 | refs/heads/master | 2020-03-23T23:44:19.116772 | 2019-03-02T09:38:12 | 2019-03-02T09:38:12 | 142,252,699 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 376 | java | package com.fei.netty.springmvc.db;
import java.sql.SQLType;
public class Param {
public Object obj ;
public SQLType type ;
public Param(Object obj, SQLType type) {
super();
this.obj = obj;
this.type = type;
}
public Param(Object obj) {
super();
this.obj = obj;
}
public SQLType getSqlType(){
return this.type ;
}
}
| [
"pengfei@yy-js-pengfei1.game-reign.com"
] | pengfei@yy-js-pengfei1.game-reign.com |
840cdb4f8cf787b321da09ac35cc6bca07903fd5 | 56319e53f4155b0f0ae4ab249b1d3249fc8ddd98 | /apache-tomcat-8.0.39/converted/org/apache/tomcat/util/http/MainForTestRequestUtil_testNormalize20.java | 97565507554143c4a0295bd89d0d8ad5d58ed557 | [] | no_license | SnowOnion/J2mConvertedTestcases | 2f904e2f2754f859f6125f248d3672eb1a70abd1 | e74b0e4c08f12e5effeeb8581670156ace42640a | refs/heads/master | 2021-01-11T19:01:42.207334 | 2017-01-19T12:22:22 | 2017-01-19T12:22:22 | 79,295,183 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 409 | java | package org.apache.tomcat.util.http;
import org.apache.tomcat.util.http.TestRequestUtil;
public class MainForTestRequestUtil_testNormalize20 {
public static void main(String[] args) {
try {
TestRequestUtil objTestRequestUtil = new TestRequestUtil();
objTestRequestUtil.testNormalize20();
} catch (Throwable e) {
e.printStackTrace();
}
}
}
| [
"snowonionlee@gmail.com"
] | snowonionlee@gmail.com |
97d49a4962d9bdd6d8e4571fce3364257065245e | f3aec68bc48dc52e76f276fd3b47c3260c01b2a4 | /core/drugstore-tier/src/main/java/org/hl7/v3/COCTMT010000UV01Authorization.java | d4c8262d2447bcfa7ffdcd7ef29d4c28375e22fb | [] | no_license | MarsStirner/core | c9a383799a92e485e2395d81a0bc95d51ada5fa5 | 6fbf37af989aa48fabb9c4c2566195aafd2b16ab | refs/heads/master | 2020-12-03T00:39:51.407573 | 2016-04-29T12:28:32 | 2016-04-29T12:28:32 | 96,041,573 | 0 | 1 | null | null | null | null | UTF-8 | Java | false | false | 5,522 | java |
package org.hl7.v3;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for COCT_MT010000UV01.Authorization complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="COCT_MT010000UV01.Authorization">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="realmCode" type="{urn:hl7-org:v3}CS" maxOccurs="unbounded" minOccurs="0"/>
* <element name="typeId" type="{urn:hl7-org:v3}II" minOccurs="0"/>
* <element name="templateId" type="{urn:hl7-org:v3}II" maxOccurs="unbounded" minOccurs="0"/>
* <element name="consent" type="{urn:hl7-org:v3}COCT_MT470000UV.Consent"/>
* </sequence>
* <attribute name="nullFlavor" type="{urn:hl7-org:v3}NullFlavor" />
* <attribute name="typeCode" use="required" type="{urn:hl7-org:v3}ActRelationshipAuthorizedBy" />
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "COCT_MT010000UV01.Authorization", propOrder = {
"realmCode",
"typeId",
"templateId",
"consent"
})
public class COCTMT010000UV01Authorization {
protected List<CS> realmCode;
protected II typeId;
protected List<II> templateId;
@XmlElement(required = true, nillable = true)
protected COCTMT470000UVConsent consent;
@XmlAttribute(name = "nullFlavor")
protected NullFlavor nullFlavor;
@XmlAttribute(name = "typeCode", required = true)
protected ActRelationshipAuthorizedBy typeCode;
/**
* Gets the value of the realmCode property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the realmCode property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getRealmCode().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link CS }
*
*
*/
public List<CS> getRealmCode() {
if (realmCode == null) {
realmCode = new ArrayList<CS>();
}
return this.realmCode;
}
/**
* Gets the value of the typeId property.
*
* @return
* possible object is
* {@link II }
*
*/
public II getTypeId() {
return typeId;
}
/**
* Sets the value of the typeId property.
*
* @param value
* allowed object is
* {@link II }
*
*/
public void setTypeId(II value) {
this.typeId = value;
}
/**
* Gets the value of the templateId property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the templateId property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getTemplateId().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link II }
*
*
*/
public List<II> getTemplateId() {
if (templateId == null) {
templateId = new ArrayList<II>();
}
return this.templateId;
}
/**
* Gets the value of the consent property.
*
* @return
* possible object is
* {@link COCTMT470000UVConsent }
*
*/
public COCTMT470000UVConsent getConsent() {
return consent;
}
/**
* Sets the value of the consent property.
*
* @param value
* allowed object is
* {@link COCTMT470000UVConsent }
*
*/
public void setConsent(COCTMT470000UVConsent value) {
this.consent = value;
}
/**
* Gets the value of the nullFlavor property.
*
* @return
* possible object is
* {@link NullFlavor }
*
*/
public NullFlavor getNullFlavor() {
return nullFlavor;
}
/**
* Sets the value of the nullFlavor property.
*
* @param value
* allowed object is
* {@link NullFlavor }
*
*/
public void setNullFlavor(NullFlavor value) {
this.nullFlavor = value;
}
/**
* Gets the value of the typeCode property.
*
* @return
* possible object is
* {@link ActRelationshipAuthorizedBy }
*
*/
public ActRelationshipAuthorizedBy getTypeCode() {
return typeCode;
}
/**
* Sets the value of the typeCode property.
*
* @param value
* allowed object is
* {@link ActRelationshipAuthorizedBy }
*
*/
public void setTypeCode(ActRelationshipAuthorizedBy value) {
this.typeCode = value;
}
}
| [
"NosovDE@gmail.com"
] | NosovDE@gmail.com |
2f9c9215c31cac78bb9f9b7fe604327b0e7082bb | b839f0c848657c113ec06ab0111a7f69f67074d9 | /talents/src/main/java/win/yulongsun/talents/ui/stu/StuIndexFragment.java | 15754e057cddc2426598082e0e5e84c8799a76e2 | [] | no_license | yulongsun007/talentsapp2 | 506bf2e7163aba0d80a69007f902cb19e6305e1e | 83196d88a2e64a8dd4998590eca401c798343c9e | refs/heads/master | 2021-01-13T16:03:29.762026 | 2017-05-11T02:39:42 | 2017-05-11T02:39:42 | 76,762,383 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 5,199 | java | package win.yulongsun.talents.ui.stu;
import android.support.v7.widget.GridLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.support.v7.widget.Toolbar;
import android.view.View;
import org.greenrobot.eventbus.EventBus;
import java.util.ArrayList;
import butterknife.Bind;
import win.yulongsun.framework.adapter.OnItemClickListener;
import win.yulongsun.talents.R;
import win.yulongsun.talents.adapter.StuIndexRVAdapter;
import win.yulongsun.talents.base.BaseRootFragment;
import win.yulongsun.talents.entity.ItemIndex;
import win.yulongsun.talents.event.StartBrotherEvent;
import win.yulongsun.talents.ui.stu.feedback.FeedbackListFragment;
import win.yulongsun.talents.ui.stu.job.StuJobTempListFragment;
import win.yulongsun.talents.ui.stu.plan.MyPlanListFragment;
import win.yulongsun.talents.ui.stu.resume.ResumeListFragment;
/**
* @author sunyulong on 2016/12/15.
* 学生端首页
*/
public class StuIndexFragment extends BaseRootFragment {
// @Bind(R.id.vp_stu_index)
// ViewPager mVpStuIndex;
@Bind(R.id.toolbar)
Toolbar mToolbar;
@Bind(R.id.recy_stu_index)
RecyclerView mRecyStuIndex;
@Override
protected int getLayoutResId() {
return R.layout.fragment_stu_index;
}
@Override
protected Toolbar getToolbar() {
return mToolbar;
}
@Override
protected String getToolbarTitle() {
return "首页";
}
public static StuIndexFragment newInstance() {
return new StuIndexFragment();
}
@Override
protected void initView() {
super.initView();
ArrayList<ItemIndex> mDatas = new ArrayList<>();
mDatas.add(new ItemIndex(R.mipmap.ic_index_class, "招聘信息"));
// mDatas.add(new ItemIndex(R.mipmap.ic_index_plan, "培养计划"));
mDatas.add(new ItemIndex(R.mipmap.ic_index_internship, "我的计划"));
mDatas.add(new ItemIndex(R.mipmap.ic_index_feedback, "投递反馈"));
// _mDatas.add(new ItemIndex(R.mipmap.ic_index_hr, "HR邀约"));
// _mDatas.add(new ItemIndex(R.mipmap.ic_index_career_talk, "宣讲会邀约"));
// _mDatas.add(new ItemIndex(R.mipmap.ic_index_talent_pool, "人才库邀约"));
// _mDatas.add(new ItemIndex(R.mipmap.ic_index_faq, "校招邀约"));
mDatas.add(new ItemIndex(R.mipmap.ic_index_other, "我的简历"));
StuIndexRVAdapter mAdapter = new StuIndexRVAdapter(_mActivity, mDatas, R.layout.item_stu_index);
mRecyStuIndex.setAdapter(mAdapter);
GridLayoutManager mManager = new GridLayoutManager(_mActivity, 3);
mRecyStuIndex.setLayoutManager(mManager);
mAdapter.setOnItemClickListener(new OnItemClickListener() {
@Override
public void onItemClick(View itemView, int viewType, int position) {
switch (position) {
case 0:
EventBus.getDefault().post(new StartBrotherEvent(StuJobTempListFragment.newInstance()));
break;
// case 1:
// EventBus.getDefault().post(new StartBrotherEvent(PlanListFragment.newInstance()));
// break;
case 1:
EventBus.getDefault().post(new StartBrotherEvent(MyPlanListFragment.newInstance()));
break;
case 2:
EventBus.getDefault().post(new StartBrotherEvent(FeedbackListFragment.newInstance()));
break;
case 3:
EventBus.getDefault().post(new StartBrotherEvent(ResumeListFragment.newInstance()));
break;
}
}
});
// mRecyStuIndex.addItemDecoration(new MyItemDecoration());
//添加Item点击事件
// mAdapter.setOnItemClickListener(new AdapterView.OnItemClickListener() {
// @Override
// public void onItemClick(View view,int position) {
// Log.d(TAG, "onItemClick: "+position);
// switch (position){
// case 1://
// EventBus.getDefault().post(new StartBrotherEvent(InternshipFragment.newInstance()));
// break;
// case 2:
// break;
// }
//
//
// }
// });
// ArrayList<ImageView> mHeaderDatas = new ArrayList<>();
// ImageView mView = new ImageView(_mActivity);
// ImageView mView2 = new ImageView(_mActivity);
// ImageView mView3 = new ImageView(_mActivity);
// mView.setImageResource(R.mipmap.img_zhaoping1);
// mView2.setImageResource(R.mipmap.img_zhaoping2);
//// mView3.setImageResource(R.mipmap.img_zhaoping3);
// mHeaderDatas.add(mView);
// mHeaderDatas.add(mView2);
//// mHeaderDatas.add(mView3);
//
// mVpStuIndex.setAdapter(new StuIndexVPAdapter(mHeaderDatas));
// ImageView imageView = (ImageView) _mActivity.findViewById(R.id.iv);
// ImageLoadManager.getInstance().with(_mActivity).load(R.mipmap.img_zhaoping1).into(imageView);
}
}
| [
"a87533887"
] | a87533887 |
6af2ab4414e29e6c0db95b660b0ec1ff91fc85f7 | 68534507652bebcb5e1b5e31b11cb38bfc37da99 | /Monosnap_Automation_Tests/src/test/java/Login/LoginTests.java | 4e29082f8f28edb4e76076ce2be00856753467ac | [] | no_license | oluwabernard/Monosnap_Automation_Tests_Task | e01f2c41a27c5abd4b5d8ae7aad03e8cc7bff09e | bd1a5683b8969b2a7175b600ba360c890182aa14 | refs/heads/master | 2022-12-21T20:36:37.310727 | 2020-09-26T12:13:20 | 2020-09-26T12:13:20 | 298,638,249 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,603 | java | package Login;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import java.util.concurrent.TimeUnit;
public class LoginTests {
//import selenium driver
private WebDriver driver;
//import chrome driver
public void setUp()throws InterruptedException{
System.setProperty("webdriver.chrome.driver","resources/chromedriver.exe");
driver = new ChromeDriver();
//Get the project URL
driver.get("https://monosnap.com/");
//Wait to load project page
driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
//maximize Project page
driver.manage().window().maximize();
//Get project Title
System.out.println(driver.getTitle());
//lOCATE SIGN IN BUTTON AND CLICK
driver.findElement(By.xpath("//*[@id=\"root\"]/div[2]/div/div[3]/div[1]/div/div[2]/div[3]/span")).click();
//Locate username field.
driver.findElement(By.xpath("//*[@id=\"root\"]/div[2]/div/div[1]/div[1]/div/div[2]/form/div[4]/input[1]")).sendKeys("mtes7272@gmail.com");
//Locate password field
driver.findElement(By.xpath("//*[@id=\"root\"]/div[2]/div/div[1]/div[1]/div/div[2]/form/div[4]/input[2]")).sendKeys("MOUNTAIN12TEST");
//CLICK ON SIGN IN BUTTON
driver.findElement(By.xpath("//*[@id=\"root\"]/div[2]/div/div[1]/div[1]/div/div[2]/form/button")).click();
Thread.sleep(10000);
//close windows
driver.quit();
}
//Initiate
public static void main(String args[]) throws InterruptedException {
LoginTests tests = new LoginTests();
tests.setUp();
}
}
| [
"oluwasegunbernard@gmail.com"
] | oluwasegunbernard@gmail.com |
34491a1e88c0572cb3d285d9fd1d42871e0c49c8 | 3098dd57aacfded9adc58025301b1a9f833424f7 | /app/src/main/java/com/pharmacy/android/dwa/MainAdapters/ItemAdapter.java | 53b04776686dc3af8e73c57e45bccc816fbecbbb | [] | no_license | AhmedMensh/3amo_hanna | a1a779ced91054d2f7a4df0807bd033390fc9b66 | eb4c600c949b9b29354f9fcd0981cefc63c6cf60 | refs/heads/master | 2022-11-07T21:53:36.605247 | 2020-06-21T09:37:50 | 2020-06-21T09:37:50 | 273,873,082 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 8,963 | java | package com.pharmacy.android.dwa.MainAdapters;
import android.content.Context;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentActivity;
import android.support.v4.app.FragmentTransaction;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import android.widget.Toast;
import com.pharmacy.android.dwa.DataModel.SubCategoerItemModel;
import com.pharmacy.android.dwa.FragmentPages.FragmentDetailItem;
import com.pharmacy.android.dwa.Home.MainHome;
import com.pharmacy.android.dwa.R;
import com.pharmacy.android.dwa.Utilities.Constance;
import com.pharmacy.android.dwa.Utilities.SessionApp;
import java.util.ArrayList;
/**
* Created by Sufyan_Karajeh on 2/20/2018.
*/
public class ItemAdapter extends RecyclerView.Adapter<ItemAdapter.ViewHolder> {
private Context mContext;
private ArrayList<SubCategoerItemModel> fragmentList;
private int IndexParent;
private int isSave;
SessionApp sessionApp;
public ItemAdapter(Context mContext, ArrayList<SubCategoerItemModel> fragmentList,int ind,int isSave) {
this.mContext = mContext;
this.fragmentList = fragmentList;
IndexParent=ind;
this.isSave=isSave;
sessionApp=new SessionApp(mContext);
}
@Override
public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
View v = LayoutInflater.from(parent.getContext())
.inflate(R.layout.content_item, parent, false);
ViewHolder vh = new ViewHolder(v);
return vh;
}
@Override
public void onBindViewHolder(final ViewHolder holder, final int position) {
final SubCategoerItemModel storeCard = fragmentList.get(position);
holder.NameItem.setText(storeCard.getName()+"");
holder.mainLayout.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
loadFragmentWithOutAnim(new FragmentDetailItem(),IndexParent);
}
});
if(isSave==1){
if(IndexParent==1 ){
if(sessionApp.getLang().equals("en")) {
holder.layCorner.setBackground(mContext.getResources().getDrawable(R.drawable.border_corner_brown_right));
}else{
holder.layCorner.setBackground(mContext.getResources().getDrawable(R.drawable.border_corner_brown_left));
}
}else if(IndexParent==2){
if(sessionApp.getLang().equals("en")) {
holder.layCorner.setBackground(mContext.getResources().getDrawable(R.drawable.border_corner_pink_right));
}else{
holder.layCorner.setBackground(mContext.getResources().getDrawable(R.drawable.border_corner_pink_left));
}
}else if(IndexParent==3){
if(sessionApp.getLang().equals("en")) {
holder.layCorner.setBackground(mContext.getResources().getDrawable(R.drawable.border_profile_notif_raight));
}else{
holder.layCorner.setBackground(mContext.getResources().getDrawable(R.drawable.border_profile_notif));
}
}else if(IndexParent==4){
if(sessionApp.getLang().equals("en")) {
holder.layCorner.setBackground(mContext.getResources().getDrawable(R.drawable.border_corner_test_right));
}else{
holder.layCorner.setBackground(mContext.getResources().getDrawable(R.drawable.border_corner_test_left));
}
}else if(IndexParent==5){
if(sessionApp.getLang().equals("en")) {
holder.layCorner.setBackground(mContext.getResources().getDrawable(R.drawable.border_corner_yello_right));
}else{
holder.layCorner.setBackground(mContext.getResources().getDrawable(R.drawable.border_corner_yello_left));
}
}
else if(IndexParent==7){
if(sessionApp.getLang().equals("en")) {
holder.layCorner.setBackground(mContext.getResources().getDrawable(R.drawable.border_check_raight));
}else{
holder.layCorner.setBackground(mContext.getResources().getDrawable(R.drawable.border_check_left));
}
}
holder.layCorner.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
view.setAnimation(MainHome.buttonClick);
setMessageToast( mContext.getString(R.string.saved));
}
});
}else{
if(IndexParent==4){
if(sessionApp.getLang().equals("en")) {
holder.layCorner.setBackground(mContext.getResources().getDrawable(R.drawable.border_corner_test_right));
}else{
holder.layCorner.setBackground(mContext.getResources().getDrawable(R.drawable.border_corner_test_left));
}
}
holder.imgCorener.setImageDrawable(mContext.getResources().getDrawable(R.drawable.removeitem));
holder.layCorner.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
view.setAnimation(MainHome.buttonClick);
setMessageToast( mContext.getString(R.string.remove));
fragmentList.remove(position);
notifyDataSetChanged();
}
});
}
switch (Constance.backColor){
case 1:
holder.itemIamge.setImageDrawable(mContext.getResources().getDrawable(R.drawable.ic_snakes));
holder.buyBtn.setTextColor(mContext.getResources().getColor(R.color.brown));
break;
case 2:
holder.itemIamge.setImageDrawable(mContext.getResources().getDrawable(R.drawable.ic_dairy));
holder.buyBtn.setTextColor(mContext.getResources().getColor(R.color.brown_light));
break;
case 3:
holder.itemIamge.setImageDrawable(mContext.getResources().getDrawable(R.drawable.ic_fruits));
holder.buyBtn.setTextColor(mContext.getResources().getColor(R.color.Red));
break;
case 4:
holder.itemIamge.setImageDrawable(mContext.getResources().getDrawable(R.drawable.ic_beverages));
holder.buyBtn.setTextColor(mContext.getResources().getColor(R.color.test));
break;
case 5:
holder.itemIamge.setImageDrawable(mContext.getResources().getDrawable(R.drawable.ic_bakery));
holder.buyBtn.setTextColor(mContext.getResources().getColor(R.color.yellow));
break;
case 6:
holder.itemIamge.setImageDrawable(mContext.getResources().getDrawable(R.drawable.ic_vegetables));
holder.buyBtn.setTextColor(mContext.getResources().getColor(R.color.green));
break;
case 7:
holder.itemIamge.setImageDrawable(mContext.getResources().getDrawable(R.drawable.ic_personal_care));
holder.buyBtn.setTextColor(mContext.getResources().getColor(R.color.blue));
break;
}
}
@Override
public int getItemCount() {
return fragmentList.size();
}
public class ViewHolder extends RecyclerView.ViewHolder {
private TextView NameItem;
LinearLayout mainLayout;
Button buyBtn;
LinearLayout layCorner;
ImageView imgCorener ,itemIamge;
public ViewHolder(View v) {
super(v);
itemIamge = v.findViewById(R.id.image);
NameItem = v.findViewById(R.id.nameItem);
mainLayout=v.findViewById(R.id.mainLayout);
layCorner=v.findViewById(R.id.layCorner);
imgCorener=v.findViewById(R.id.imgCorener);
buyBtn = v.findViewById(R.id.buy);
}
}
public void loadFragmentWithOutAnim(Fragment fragment,int ind) {
Bundle bundle = new Bundle();
bundle.putInt("Index",ind);
fragment.setArguments(bundle);
FragmentTransaction transaction = ((FragmentActivity) mContext).getSupportFragmentManager().beginTransaction();
transaction.addToBackStack(null);
transaction.add(R.id.frame_container, fragment);
transaction.commit();
}
public void setMessageToast(String mess)
{
Toast.makeText(mContext,mess+"",Toast.LENGTH_SHORT).show();
}
} | [
"ahmedmensh8@gmail.com"
] | ahmedmensh8@gmail.com |
2ef8f9503a1b3229339203664a7a3537a5dd7f7d | 7ef67b2a805d93c8bcabb3d46dc5375ec92d65ec | /lab27/src/lab27/svc/MRegistService.java | 3b735ed99485d5179b478b3820be8ec91ca5ccbb | [] | no_license | kay128/ProjectInEdu | 8a29882f9ea86488532fe69233a8933f652b7dc7 | b2860c6ade7e156fcef32e35cd16e7f109fce446 | refs/heads/master | 2021-09-24T18:53:27.253173 | 2018-10-13T12:24:46 | 2018-10-13T12:24:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 650 | java | package lab27.svc;
import static lab27.db.JdbcUtils.*;
import java.sql.Connection;
import lab27.vo.Lab27_DAO;
import lab27.vo.MemberVO;
public class MRegistService {
public boolean memberRegist(MemberVO member) {
Connection conn = getConnection();
int check = 0;
Lab27_DAO dao = new Lab27_DAO(conn);
check = dao.memberJoin(member);
if(check == 0) {
rollback(conn);
close(conn, null, null);
return false;
} else {
commit(conn);
close(conn, null, null);
return true;
}
}
} | [
"KAY@DESKTOP-6UNUHQG"
] | KAY@DESKTOP-6UNUHQG |
e3c257e052266d9df8ce5f7765ef32aa8b57e3bf | c54bff13e390bcffdcacf93f969f3539f1edb82c | /app/src/main/java/example/foodbuzz/Adapters/CirclePageIndicator.java | 8911a3e71bf5513bf4a8677d69ee4d7af4cb1da7 | [] | no_license | tarook1994/Udacity-Nano-Degree-Capston-Foodbuzz | e68f6e6852a503317d057a20bb1cda57740ec85b | f056fd979647f7715eeec6556539e4af9d0c4f81 | refs/heads/master | 2021-01-13T06:06:47.027542 | 2017-04-25T00:23:50 | 2017-04-25T00:23:50 | 86,526,712 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 19,754 | java | /*
* Copyright (C) 2011 Patrik Akerfeldt
* Copyright (C) 2011 Jake Wharton
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package example.foodbuzz.Adapters;
import android.content.Context;
import android.content.res.Resources;
import android.content.res.TypedArray;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Paint.Style;
import android.graphics.drawable.Drawable;
import android.os.Parcel;
import android.os.Parcelable;
import android.support.v4.view.MotionEventCompat;
import android.support.v4.view.ViewConfigurationCompat;
import android.support.v4.view.ViewPager;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewConfiguration;
import example.foodbuzz.R;
import static android.graphics.Paint.ANTI_ALIAS_FLAG;
import static android.widget.LinearLayout.HORIZONTAL;
import static android.widget.LinearLayout.VERTICAL;
/**
* Draws circles (one for each view). The current view position is filled and
* others are only stroked.
*/
public class CirclePageIndicator extends View implements PageIndicator {
private static final int INVALID_POINTER = -1;
private float mRadius;
private final Paint mPaintPageFill = new Paint(ANTI_ALIAS_FLAG);
private final Paint mPaintStroke = new Paint(ANTI_ALIAS_FLAG);
private final Paint mPaintFill = new Paint(ANTI_ALIAS_FLAG);
private ViewPager mViewPager;
private ViewPager.OnPageChangeListener mListener;
private int mCurrentPage;
private int mSnapPage;
private float mPageOffset;
private int mScrollState;
private int mOrientation;
private boolean mCentered;
private boolean mSnap;
private int mTouchSlop;
private float mLastMotionX = -1;
private int mActivePointerId = INVALID_POINTER;
private boolean mIsDragging;
public CirclePageIndicator(Context context) {
this(context, null);
}
public CirclePageIndicator(Context context, AttributeSet attrs) {
this(context, attrs, R.attr.vpiCirclePageIndicatorStyle);
}
public CirclePageIndicator(Context context, AttributeSet attrs, int defStyle) {
super(context, attrs, defStyle);
if (isInEditMode()) return;
//Load defaults from resources
final Resources res = getResources();
final int defaultPageColor = res.getColor(R.color.default_circle_indicator_page_color);
final int defaultFillColor = res.getColor(R.color.default_circle_indicator_fill_color);
final int defaultOrientation = res.getInteger(R.integer.default_circle_indicator_orientation);
final int defaultStrokeColor = res.getColor(R.color.default_circle_indicator_stroke_color);
final float defaultStrokeWidth = res.getDimension(R.dimen.default_circle_indicator_stroke_width);
final float defaultRadius = 16;
final boolean defaultCentered = res.getBoolean(R.bool.default_circle_indicator_centered);
final boolean defaultSnap = res.getBoolean(R.bool.default_circle_indicator_snap);
//Retrieve styles attributes
TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.CirclePageIndicator, defStyle, 0);
mCentered = a.getBoolean(R.styleable.CirclePageIndicator_centered, defaultCentered);
mOrientation = a.getInt(R.styleable.CirclePageIndicator_android_orientation, defaultOrientation);
mPaintPageFill.setStyle(Style.FILL);
mPaintPageFill.setColor(a.getColor(R.styleable.CirclePageIndicator_pageColor, defaultPageColor));
mPaintStroke.setStyle(Style.STROKE);
mPaintStroke.setColor(a.getColor(R.styleable.CirclePageIndicator_strokeColor, defaultStrokeColor));
mPaintStroke.setStrokeWidth(a.getDimension(R.styleable.CirclePageIndicator_strokeWidth, defaultStrokeWidth));
mPaintFill.setStyle(Style.FILL);
mPaintFill.setColor(a.getColor(R.styleable.CirclePageIndicator_fillColor, defaultFillColor));
mRadius = a.getDimension(R.styleable.CirclePageIndicator_radius, defaultRadius);
mSnap = a.getBoolean(R.styleable.CirclePageIndicator_snap, defaultSnap);
Drawable background = a.getDrawable(R.styleable.CirclePageIndicator_android_background);
if (background != null) {
setBackgroundDrawable(background);
}
a.recycle();
final ViewConfiguration configuration = ViewConfiguration.get(context);
mTouchSlop = ViewConfigurationCompat.getScaledPagingTouchSlop(configuration);
}
public void setCentered(boolean centered) {
mCentered = centered;
invalidate();
}
public boolean isCentered() {
return mCentered;
}
public void setPageColor(int pageColor) {
mPaintPageFill.setColor(pageColor);
invalidate();
}
public int getPageColor() {
return mPaintPageFill.getColor();
}
public void setFillColor(int fillColor) {
mPaintFill.setColor(fillColor);
invalidate();
}
public int getFillColor() {
return mPaintFill.getColor();
}
public void setOrientation(int orientation) {
switch (orientation) {
case HORIZONTAL:
case VERTICAL:
mOrientation = orientation;
requestLayout();
break;
default:
throw new IllegalArgumentException("Orientation must be either HORIZONTAL or VERTICAL.");
}
}
public int getOrientation() {
return mOrientation;
}
public void setStrokeColor(int strokeColor) {
mPaintStroke.setColor(strokeColor);
invalidate();
}
public int getStrokeColor() {
return mPaintStroke.getColor();
}
public void setStrokeWidth(float strokeWidth) {
mPaintStroke.setStrokeWidth(strokeWidth);
invalidate();
}
public float getStrokeWidth() {
return mPaintStroke.getStrokeWidth();
}
public void setRadius(float radius) {
mRadius = radius;
invalidate();
}
public float getRadius() {
return mRadius;
}
public void setSnap(boolean snap) {
mSnap = snap;
invalidate();
}
public boolean isSnap() {
return mSnap;
}
@Override
protected void onDraw(Canvas canvas) {
super.onDraw(canvas);
if (mViewPager == null) {
return;
}
final int count = mViewPager.getAdapter().getCount();
if (count == 0) {
return;
}
if (mCurrentPage >= count) {
setCurrentItem(count - 1);
return;
}
int longSize;
int longPaddingBefore;
int longPaddingAfter;
int shortPaddingBefore;
if (mOrientation == HORIZONTAL) {
longSize = getWidth();
longPaddingBefore = getPaddingLeft();
longPaddingAfter = getPaddingRight();
shortPaddingBefore = getPaddingTop();
} else {
longSize = getHeight();
longPaddingBefore = getPaddingTop();
longPaddingAfter = getPaddingBottom();
shortPaddingBefore = getPaddingLeft();
}
final float threeRadius = mRadius * 3;
final float shortOffset = shortPaddingBefore + mRadius;
float longOffset = longPaddingBefore + mRadius;
if (mCentered) {
longOffset += ((longSize - longPaddingBefore - longPaddingAfter) / 2.0f) - ((count * threeRadius) / 2.0f);
}
float dX;
float dY;
float pageFillRadius = mRadius;
if (mPaintStroke.getStrokeWidth() > 0) {
pageFillRadius -= mPaintStroke.getStrokeWidth() / 2.0f;
}
//Draw stroked circles
for (int iLoop = 0; iLoop < count; iLoop++) {
float drawLong = longOffset + (iLoop * threeRadius);
if (mOrientation == HORIZONTAL) {
dX = drawLong;
dY = shortOffset;
} else {
dX = shortOffset;
dY = drawLong;
}
// Only paint fill if not completely transparent
if (mPaintPageFill.getAlpha() > 0) {
canvas.drawCircle(dX, dY, pageFillRadius, mPaintPageFill);
}
// Only paint stroke if a stroke width was non-zero
if (pageFillRadius != mRadius) {
canvas.drawCircle(dX, dY, mRadius, mPaintStroke);
}
}
//Draw the filled circle according to the current scroll
float cx = (mSnap ? mSnapPage : mCurrentPage) * threeRadius;
if (!mSnap) {
cx += mPageOffset * threeRadius;
}
if (mOrientation == HORIZONTAL) {
dX = longOffset + cx;
dY = shortOffset;
} else {
dX = shortOffset;
dY = longOffset + cx;
}
canvas.drawCircle(dX, dY, mRadius, mPaintFill);
}
public boolean onTouchEvent(MotionEvent ev) {
if (super.onTouchEvent(ev)) {
return true;
}
if ((mViewPager == null) || (mViewPager.getAdapter().getCount() == 0)) {
return false;
}
final int action = ev.getAction() & MotionEventCompat.ACTION_MASK;
switch (action) {
case MotionEvent.ACTION_DOWN:
mActivePointerId = MotionEventCompat.getPointerId(ev, 0);
mLastMotionX = ev.getX();
break;
case MotionEvent.ACTION_MOVE: {
final int activePointerIndex = MotionEventCompat.findPointerIndex(ev, mActivePointerId);
final float x = MotionEventCompat.getX(ev, activePointerIndex);
final float deltaX = x - mLastMotionX;
if (!mIsDragging) {
if (Math.abs(deltaX) > mTouchSlop) {
mIsDragging = true;
}
}
if (mIsDragging) {
mLastMotionX = x;
if (mViewPager.isFakeDragging() || mViewPager.beginFakeDrag()) {
mViewPager.fakeDragBy(deltaX);
}
}
break;
}
case MotionEvent.ACTION_CANCEL:
case MotionEvent.ACTION_UP:
if (!mIsDragging) {
final int count = mViewPager.getAdapter().getCount();
final int width = getWidth();
final float halfWidth = width / 2f;
final float sixthWidth = width / 6f;
if ((mCurrentPage > 0) && (ev.getX() < halfWidth - sixthWidth)) {
if (action != MotionEvent.ACTION_CANCEL) {
mViewPager.setCurrentItem(mCurrentPage - 1);
}
return true;
} else if ((mCurrentPage < count - 1) && (ev.getX() > halfWidth + sixthWidth)) {
if (action != MotionEvent.ACTION_CANCEL) {
mViewPager.setCurrentItem(mCurrentPage + 1);
}
return true;
}
}
mIsDragging = false;
mActivePointerId = INVALID_POINTER;
if (mViewPager.isFakeDragging()) mViewPager.endFakeDrag();
break;
case MotionEventCompat.ACTION_POINTER_DOWN: {
final int index = MotionEventCompat.getActionIndex(ev);
mLastMotionX = MotionEventCompat.getX(ev, index);
mActivePointerId = MotionEventCompat.getPointerId(ev, index);
break;
}
case MotionEventCompat.ACTION_POINTER_UP:
final int pointerIndex = MotionEventCompat.getActionIndex(ev);
final int pointerId = MotionEventCompat.getPointerId(ev, pointerIndex);
if (pointerId == mActivePointerId) {
final int newPointerIndex = pointerIndex == 0 ? 1 : 0;
mActivePointerId = MotionEventCompat.getPointerId(ev, newPointerIndex);
}
mLastMotionX = MotionEventCompat.getX(ev, MotionEventCompat.findPointerIndex(ev, mActivePointerId));
break;
}
return true;
}
@Override
public void setViewPager(ViewPager view) {
if (mViewPager == view) {
return;
}
if (mViewPager != null) {
mViewPager.setOnPageChangeListener(null);
}
if (view.getAdapter() == null) {
throw new IllegalStateException("ViewPager does not have adapter instance.");
}
mViewPager = view;
mViewPager.setOnPageChangeListener(this);
invalidate();
}
@Override
public void setViewPager(ViewPager view, int initialPosition) {
setViewPager(view);
setCurrentItem(initialPosition);
}
@Override
public void setCurrentItem(int item) {
if (mViewPager == null) {
throw new IllegalStateException("ViewPager has not been bound.");
}
mViewPager.setCurrentItem(item);
mCurrentPage = item;
invalidate();
}
@Override
public void notifyDataSetChanged() {
invalidate();
}
@Override
public void onPageScrollStateChanged(int state) {
mScrollState = state;
if (mListener != null) {
mListener.onPageScrollStateChanged(state);
}
}
@Override
public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) {
mCurrentPage = position;
mPageOffset = positionOffset;
invalidate();
if (mListener != null) {
mListener.onPageScrolled(position, positionOffset, positionOffsetPixels);
}
}
@Override
public void onPageSelected(int position) {
if (mSnap || mScrollState == ViewPager.SCROLL_STATE_IDLE) {
mCurrentPage = position;
mSnapPage = position;
invalidate();
}
if (mListener != null) {
mListener.onPageSelected(position);
}
}
@Override
public void setOnPageChangeListener(ViewPager.OnPageChangeListener listener) {
mListener = listener;
}
/*
* (non-Javadoc)
*
* @see android.view.View#onMeasure(int, int)
*/
@Override
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
if (mOrientation == HORIZONTAL) {
setMeasuredDimension(measureLong(widthMeasureSpec), measureShort(heightMeasureSpec));
} else {
setMeasuredDimension(measureShort(widthMeasureSpec), measureLong(heightMeasureSpec));
}
}
/**
* Determines the width of this view
*
* @param measureSpec
* A measureSpec packed into an int
* @return The width of the view, honoring constraints from measureSpec
*/
private int measureLong(int measureSpec) {
int result;
int specMode = MeasureSpec.getMode(measureSpec);
int specSize = MeasureSpec.getSize(measureSpec);
if ((specMode == MeasureSpec.EXACTLY) || (mViewPager == null)) {
//We were told how big to be
result = specSize;
} else {
//Calculate the width according the views count
final int count = mViewPager.getAdapter().getCount();
result = (int)(getPaddingLeft() + getPaddingRight()
+ (count * 2 * mRadius) + (count - 1) * mRadius + 1);
//Respect AT_MOST value if that was what is called for by measureSpec
if (specMode == MeasureSpec.AT_MOST) {
result = Math.min(result, specSize);
}
}
return result;
}
/**
* Determines the height of this view
*
* @param measureSpec
* A measureSpec packed into an int
* @return The height of the view, honoring constraints from measureSpec
*/
private int measureShort(int measureSpec) {
int result;
int specMode = MeasureSpec.getMode(measureSpec);
int specSize = MeasureSpec.getSize(measureSpec);
if (specMode == MeasureSpec.EXACTLY) {
//We were told how big to be
result = specSize;
} else {
//Measure the height
result = (int)(2 * mRadius + getPaddingTop() + getPaddingBottom() + 1);
//Respect AT_MOST value if that was what is called for by measureSpec
if (specMode == MeasureSpec.AT_MOST) {
result = Math.min(result, specSize);
}
}
return result;
}
@Override
public void onRestoreInstanceState(Parcelable state) {
SavedState savedState = (SavedState)state;
super.onRestoreInstanceState(savedState.getSuperState());
mCurrentPage = savedState.currentPage;
mSnapPage = savedState.currentPage;
requestLayout();
}
@Override
public Parcelable onSaveInstanceState() {
Parcelable superState = super.onSaveInstanceState();
SavedState savedState = new SavedState(superState);
savedState.currentPage = mCurrentPage;
return savedState;
}
static class SavedState extends BaseSavedState {
int currentPage;
public SavedState(Parcelable superState) {
super(superState);
}
private SavedState(Parcel in) {
super(in);
currentPage = in.readInt();
}
@Override
public void writeToParcel(Parcel dest, int flags) {
super.writeToParcel(dest, flags);
dest.writeInt(currentPage);
}
@SuppressWarnings("UnusedDeclaration")
public static final Creator<SavedState> CREATOR = new Creator<SavedState>() {
@Override
public SavedState createFromParcel(Parcel in) {
return new SavedState(in);
}
@Override
public SavedState[] newArray(int size) {
return new SavedState[size];
}
};
}
}
interface PageIndicator extends ViewPager.OnPageChangeListener {
/**
* Bind the indicator to a ViewPager.
*
* @param view
*/
void setViewPager(ViewPager view);
/**
* Bind the indicator to a ViewPager.
*
* @param view
* @param initialPosition
*/
void setViewPager(ViewPager view, int initialPosition);
/**
* <p>Set the current page of both the ViewPager and indicator.</p>
*
* <p>This <strong>must</strong> be used if you need to set the page before
* the views are drawn on screen (e.g., default start page).</p>
*
* @param item
*/
void setCurrentItem(int item);
/**
* Set a page change listener which will receive forwarded events.
*
* @param listener
*/
void setOnPageChangeListener(ViewPager.OnPageChangeListener listener);
/**
* Notify the indicator that the fragment list has changed.
*/
void notifyDataSetChanged();
}
| [
"ahmed-tarek94@hotmail.com"
] | ahmed-tarek94@hotmail.com |
c792707e1a4c05952aed4a28aed6f0337d9b50da | b541e4b94cd245ad7b83d1ff5a2afd7e792719e0 | /trunk/de.tu_bs.cs.isf.mbse.cvclipse.resource.cv/src-gen/de/tu_bs/cs/isf/mbse/cvclipse/resource/cv/mopp/CvExpectationConstants.java | 96d10bb85d709298cbe43450a542cf8cea6d4727 | [] | no_license | SeniorSpielbergo/CVclipse | e629c010971f368360eb6b090c67e9f19c670bf6 | cc80da0d86b71084f892b55bd500cd60bcdbaf1e | refs/heads/master | 2021-01-02T23:14:05.290619 | 2014-01-21T10:14:16 | 2014-01-21T10:14:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 162,422 | java | /**
* <copyright>
* </copyright>
*
*
*/
package de.tu_bs.cs.isf.mbse.cvclipse.resource.cv.mopp;
/**
* This class contains some constants that are used during code completion.
*/
public class CvExpectationConstants {
public final static int EXPECTATIONS[][] = new int[1623][];
public static void initialize0() {
EXPECTATIONS[0] = new int[2];
EXPECTATIONS[0][0] = 0;
EXPECTATIONS[0][1] = 0;
EXPECTATIONS[1] = new int[2];
EXPECTATIONS[1][0] = 1;
EXPECTATIONS[1][1] = 1;
EXPECTATIONS[2] = new int[2];
EXPECTATIONS[2][0] = 2;
EXPECTATIONS[2][1] = 2;
EXPECTATIONS[3] = new int[2];
EXPECTATIONS[3][0] = 3;
EXPECTATIONS[3][1] = 3;
EXPECTATIONS[4] = new int[2];
EXPECTATIONS[4][0] = 4;
EXPECTATIONS[4][1] = 4;
EXPECTATIONS[5] = new int[2];
EXPECTATIONS[5][0] = 5;
EXPECTATIONS[5][1] = 4;
EXPECTATIONS[6] = new int[2];
EXPECTATIONS[6][0] = 6;
EXPECTATIONS[6][1] = 4;
EXPECTATIONS[7] = new int[2];
EXPECTATIONS[7][0] = 7;
EXPECTATIONS[7][1] = 4;
EXPECTATIONS[8] = new int[2];
EXPECTATIONS[8][0] = 8;
EXPECTATIONS[8][1] = 4;
EXPECTATIONS[9] = new int[3];
EXPECTATIONS[9][0] = 9;
EXPECTATIONS[9][1] = 4;
EXPECTATIONS[9][2] = 0;
EXPECTATIONS[10] = new int[2];
EXPECTATIONS[10][0] = 10;
EXPECTATIONS[10][1] = 5;
EXPECTATIONS[11] = new int[2];
EXPECTATIONS[11][0] = 4;
EXPECTATIONS[11][1] = 6;
EXPECTATIONS[12] = new int[2];
EXPECTATIONS[12][0] = 5;
EXPECTATIONS[12][1] = 6;
EXPECTATIONS[13] = new int[2];
EXPECTATIONS[13][0] = 6;
EXPECTATIONS[13][1] = 6;
EXPECTATIONS[14] = new int[2];
EXPECTATIONS[14][0] = 7;
EXPECTATIONS[14][1] = 6;
EXPECTATIONS[15] = new int[2];
EXPECTATIONS[15][0] = 8;
EXPECTATIONS[15][1] = 6;
EXPECTATIONS[16] = new int[3];
EXPECTATIONS[16][0] = 9;
EXPECTATIONS[16][1] = 6;
EXPECTATIONS[16][2] = 1;
EXPECTATIONS[17] = new int[2];
EXPECTATIONS[17][0] = 4;
EXPECTATIONS[17][1] = 7;
EXPECTATIONS[18] = new int[2];
EXPECTATIONS[18][0] = 5;
EXPECTATIONS[18][1] = 7;
EXPECTATIONS[19] = new int[2];
EXPECTATIONS[19][0] = 6;
EXPECTATIONS[19][1] = 7;
EXPECTATIONS[20] = new int[2];
EXPECTATIONS[20][0] = 7;
EXPECTATIONS[20][1] = 7;
EXPECTATIONS[21] = new int[2];
EXPECTATIONS[21][0] = 8;
EXPECTATIONS[21][1] = 7;
EXPECTATIONS[22] = new int[3];
EXPECTATIONS[22][0] = 9;
EXPECTATIONS[22][1] = 7;
EXPECTATIONS[22][2] = 2;
EXPECTATIONS[23] = new int[2];
EXPECTATIONS[23][0] = 5;
EXPECTATIONS[23][1] = 8;
EXPECTATIONS[24] = new int[2];
EXPECTATIONS[24][0] = 6;
EXPECTATIONS[24][1] = 8;
EXPECTATIONS[25] = new int[2];
EXPECTATIONS[25][0] = 7;
EXPECTATIONS[25][1] = 8;
EXPECTATIONS[26] = new int[2];
EXPECTATIONS[26][0] = 8;
EXPECTATIONS[26][1] = 8;
EXPECTATIONS[27] = new int[3];
EXPECTATIONS[27][0] = 9;
EXPECTATIONS[27][1] = 8;
EXPECTATIONS[27][2] = 3;
EXPECTATIONS[28] = new int[2];
EXPECTATIONS[28][0] = 11;
EXPECTATIONS[28][1] = 9;
EXPECTATIONS[29] = new int[2];
EXPECTATIONS[29][0] = 12;
EXPECTATIONS[29][1] = 10;
EXPECTATIONS[30] = new int[2];
EXPECTATIONS[30][0] = 6;
EXPECTATIONS[30][1] = 11;
EXPECTATIONS[31] = new int[2];
EXPECTATIONS[31][0] = 7;
EXPECTATIONS[31][1] = 11;
EXPECTATIONS[32] = new int[2];
EXPECTATIONS[32][0] = 8;
EXPECTATIONS[32][1] = 11;
EXPECTATIONS[33] = new int[3];
EXPECTATIONS[33][0] = 9;
EXPECTATIONS[33][1] = 11;
EXPECTATIONS[33][2] = 4;
EXPECTATIONS[34] = new int[2];
EXPECTATIONS[34][0] = 6;
EXPECTATIONS[34][1] = 12;
EXPECTATIONS[35] = new int[2];
EXPECTATIONS[35][0] = 7;
EXPECTATIONS[35][1] = 12;
EXPECTATIONS[36] = new int[2];
EXPECTATIONS[36][0] = 8;
EXPECTATIONS[36][1] = 12;
EXPECTATIONS[37] = new int[3];
EXPECTATIONS[37][0] = 9;
EXPECTATIONS[37][1] = 12;
EXPECTATIONS[37][2] = 5;
EXPECTATIONS[38] = new int[2];
EXPECTATIONS[38][0] = 13;
EXPECTATIONS[38][1] = 13;
EXPECTATIONS[39] = new int[2];
EXPECTATIONS[39][0] = 14;
EXPECTATIONS[39][1] = 14;
EXPECTATIONS[40] = new int[2];
EXPECTATIONS[40][0] = 7;
EXPECTATIONS[40][1] = 15;
EXPECTATIONS[41] = new int[2];
EXPECTATIONS[41][0] = 8;
EXPECTATIONS[41][1] = 15;
EXPECTATIONS[42] = new int[3];
EXPECTATIONS[42][0] = 9;
EXPECTATIONS[42][1] = 15;
EXPECTATIONS[42][2] = 6;
EXPECTATIONS[43] = new int[2];
EXPECTATIONS[43][0] = 7;
EXPECTATIONS[43][1] = 16;
EXPECTATIONS[44] = new int[2];
EXPECTATIONS[44][0] = 8;
EXPECTATIONS[44][1] = 16;
EXPECTATIONS[45] = new int[3];
EXPECTATIONS[45][0] = 9;
EXPECTATIONS[45][1] = 16;
EXPECTATIONS[45][2] = 7;
EXPECTATIONS[46] = new int[2];
EXPECTATIONS[46][0] = 15;
EXPECTATIONS[46][1] = 17;
EXPECTATIONS[47] = new int[2];
EXPECTATIONS[47][0] = 16;
EXPECTATIONS[47][1] = 18;
EXPECTATIONS[48] = new int[2];
EXPECTATIONS[48][0] = 8;
EXPECTATIONS[48][1] = 19;
EXPECTATIONS[49] = new int[3];
EXPECTATIONS[49][0] = 9;
EXPECTATIONS[49][1] = 19;
EXPECTATIONS[49][2] = 8;
EXPECTATIONS[50] = new int[2];
EXPECTATIONS[50][0] = 8;
EXPECTATIONS[50][1] = 20;
EXPECTATIONS[51] = new int[3];
EXPECTATIONS[51][0] = 9;
EXPECTATIONS[51][1] = 20;
EXPECTATIONS[51][2] = 9;
EXPECTATIONS[52] = new int[2];
EXPECTATIONS[52][0] = 17;
EXPECTATIONS[52][1] = 21;
EXPECTATIONS[53] = new int[3];
EXPECTATIONS[53][0] = 18;
EXPECTATIONS[53][1] = 22;
EXPECTATIONS[53][2] = 10;
EXPECTATIONS[54] = new int[3];
EXPECTATIONS[54][0] = 9;
EXPECTATIONS[54][1] = 23;
EXPECTATIONS[54][2] = 11;
EXPECTATIONS[55] = new int[3];
EXPECTATIONS[55][0] = 9;
EXPECTATIONS[55][1] = 24;
EXPECTATIONS[55][2] = 12;
EXPECTATIONS[56] = new int[3];
EXPECTATIONS[56][0] = 19;
EXPECTATIONS[56][1] = 25;
EXPECTATIONS[56][2] = 13;
EXPECTATIONS[57] = new int[3];
EXPECTATIONS[57][0] = 20;
EXPECTATIONS[57][1] = 25;
EXPECTATIONS[57][2] = 14;
EXPECTATIONS[58] = new int[3];
EXPECTATIONS[58][0] = 19;
EXPECTATIONS[58][1] = 26;
EXPECTATIONS[58][2] = 15;
EXPECTATIONS[59] = new int[3];
EXPECTATIONS[59][0] = 20;
EXPECTATIONS[59][1] = 26;
EXPECTATIONS[59][2] = 16;
EXPECTATIONS[60] = new int[3];
EXPECTATIONS[60][0] = 19;
EXPECTATIONS[60][1] = 27;
EXPECTATIONS[60][2] = 17;
EXPECTATIONS[61] = new int[3];
EXPECTATIONS[61][0] = 20;
EXPECTATIONS[61][1] = 27;
EXPECTATIONS[61][2] = 18;
EXPECTATIONS[62] = new int[3];
EXPECTATIONS[62][0] = 19;
EXPECTATIONS[62][1] = 28;
EXPECTATIONS[62][2] = 19;
EXPECTATIONS[63] = new int[3];
EXPECTATIONS[63][0] = 20;
EXPECTATIONS[63][1] = 28;
EXPECTATIONS[63][2] = 20;
EXPECTATIONS[64] = new int[3];
EXPECTATIONS[64][0] = 19;
EXPECTATIONS[64][1] = 29;
EXPECTATIONS[64][2] = 21;
EXPECTATIONS[65] = new int[3];
EXPECTATIONS[65][0] = 20;
EXPECTATIONS[65][1] = 29;
EXPECTATIONS[65][2] = 22;
EXPECTATIONS[66] = new int[2];
EXPECTATIONS[66][0] = 21;
EXPECTATIONS[66][1] = 30;
EXPECTATIONS[67] = new int[2];
EXPECTATIONS[67][0] = 22;
EXPECTATIONS[67][1] = 30;
EXPECTATIONS[68] = new int[2];
EXPECTATIONS[68][0] = 23;
EXPECTATIONS[68][1] = 30;
EXPECTATIONS[69] = new int[2];
EXPECTATIONS[69][0] = 24;
EXPECTATIONS[69][1] = 30;
EXPECTATIONS[70] = new int[2];
EXPECTATIONS[70][0] = 25;
EXPECTATIONS[70][1] = 30;
EXPECTATIONS[71] = new int[2];
EXPECTATIONS[71][0] = 26;
EXPECTATIONS[71][1] = 30;
EXPECTATIONS[72] = new int[2];
EXPECTATIONS[72][0] = 27;
EXPECTATIONS[72][1] = 30;
EXPECTATIONS[73] = new int[2];
EXPECTATIONS[73][0] = 28;
EXPECTATIONS[73][1] = 30;
EXPECTATIONS[74] = new int[2];
EXPECTATIONS[74][0] = 29;
EXPECTATIONS[74][1] = 30;
EXPECTATIONS[75] = new int[2];
EXPECTATIONS[75][0] = 30;
EXPECTATIONS[75][1] = 30;
EXPECTATIONS[76] = new int[2];
EXPECTATIONS[76][0] = 31;
EXPECTATIONS[76][1] = 30;
EXPECTATIONS[77] = new int[2];
EXPECTATIONS[77][0] = 32;
EXPECTATIONS[77][1] = 30;
EXPECTATIONS[78] = new int[2];
EXPECTATIONS[78][0] = 33;
EXPECTATIONS[78][1] = 30;
EXPECTATIONS[79] = new int[2];
EXPECTATIONS[79][0] = 34;
EXPECTATIONS[79][1] = 30;
EXPECTATIONS[80] = new int[2];
EXPECTATIONS[80][0] = 35;
EXPECTATIONS[80][1] = 30;
EXPECTATIONS[81] = new int[2];
EXPECTATIONS[81][0] = 36;
EXPECTATIONS[81][1] = 30;
EXPECTATIONS[82] = new int[2];
EXPECTATIONS[82][0] = 37;
EXPECTATIONS[82][1] = 30;
EXPECTATIONS[83] = new int[2];
EXPECTATIONS[83][0] = 38;
EXPECTATIONS[83][1] = 30;
EXPECTATIONS[84] = new int[3];
EXPECTATIONS[84][0] = 19;
EXPECTATIONS[84][1] = 30;
EXPECTATIONS[84][2] = 23;
EXPECTATIONS[85] = new int[3];
EXPECTATIONS[85][0] = 20;
EXPECTATIONS[85][1] = 30;
EXPECTATIONS[85][2] = 24;
EXPECTATIONS[86] = new int[2];
EXPECTATIONS[86][0] = 39;
EXPECTATIONS[86][1] = 31;
EXPECTATIONS[87] = new int[2];
EXPECTATIONS[87][0] = 40;
EXPECTATIONS[87][1] = 32;
EXPECTATIONS[88] = new int[2];
EXPECTATIONS[88][0] = 21;
EXPECTATIONS[88][1] = 33;
EXPECTATIONS[89] = new int[2];
EXPECTATIONS[89][0] = 22;
EXPECTATIONS[89][1] = 33;
EXPECTATIONS[90] = new int[2];
EXPECTATIONS[90][0] = 23;
EXPECTATIONS[90][1] = 33;
EXPECTATIONS[91] = new int[2];
EXPECTATIONS[91][0] = 24;
EXPECTATIONS[91][1] = 33;
EXPECTATIONS[92] = new int[2];
EXPECTATIONS[92][0] = 25;
EXPECTATIONS[92][1] = 33;
EXPECTATIONS[93] = new int[2];
EXPECTATIONS[93][0] = 26;
EXPECTATIONS[93][1] = 33;
EXPECTATIONS[94] = new int[2];
EXPECTATIONS[94][0] = 27;
EXPECTATIONS[94][1] = 33;
EXPECTATIONS[95] = new int[2];
EXPECTATIONS[95][0] = 28;
EXPECTATIONS[95][1] = 33;
EXPECTATIONS[96] = new int[2];
EXPECTATIONS[96][0] = 29;
EXPECTATIONS[96][1] = 33;
EXPECTATIONS[97] = new int[2];
EXPECTATIONS[97][0] = 30;
EXPECTATIONS[97][1] = 33;
EXPECTATIONS[98] = new int[2];
EXPECTATIONS[98][0] = 31;
EXPECTATIONS[98][1] = 33;
EXPECTATIONS[99] = new int[2];
EXPECTATIONS[99][0] = 32;
EXPECTATIONS[99][1] = 33;
EXPECTATIONS[100] = new int[2];
EXPECTATIONS[100][0] = 33;
EXPECTATIONS[100][1] = 33;
EXPECTATIONS[101] = new int[2];
EXPECTATIONS[101][0] = 34;
EXPECTATIONS[101][1] = 33;
EXPECTATIONS[102] = new int[2];
EXPECTATIONS[102][0] = 35;
EXPECTATIONS[102][1] = 33;
EXPECTATIONS[103] = new int[2];
EXPECTATIONS[103][0] = 36;
EXPECTATIONS[103][1] = 33;
EXPECTATIONS[104] = new int[2];
EXPECTATIONS[104][0] = 37;
EXPECTATIONS[104][1] = 33;
EXPECTATIONS[105] = new int[2];
EXPECTATIONS[105][0] = 38;
EXPECTATIONS[105][1] = 33;
EXPECTATIONS[106] = new int[3];
EXPECTATIONS[106][0] = 19;
EXPECTATIONS[106][1] = 33;
EXPECTATIONS[106][2] = 25;
EXPECTATIONS[107] = new int[3];
EXPECTATIONS[107][0] = 20;
EXPECTATIONS[107][1] = 33;
EXPECTATIONS[107][2] = 26;
EXPECTATIONS[108] = new int[2];
EXPECTATIONS[108][0] = 21;
EXPECTATIONS[108][1] = 34;
EXPECTATIONS[109] = new int[2];
EXPECTATIONS[109][0] = 22;
EXPECTATIONS[109][1] = 34;
EXPECTATIONS[110] = new int[2];
EXPECTATIONS[110][0] = 23;
EXPECTATIONS[110][1] = 34;
EXPECTATIONS[111] = new int[2];
EXPECTATIONS[111][0] = 24;
EXPECTATIONS[111][1] = 34;
EXPECTATIONS[112] = new int[2];
EXPECTATIONS[112][0] = 25;
EXPECTATIONS[112][1] = 34;
EXPECTATIONS[113] = new int[2];
EXPECTATIONS[113][0] = 26;
EXPECTATIONS[113][1] = 34;
EXPECTATIONS[114] = new int[2];
EXPECTATIONS[114][0] = 27;
EXPECTATIONS[114][1] = 34;
EXPECTATIONS[115] = new int[2];
EXPECTATIONS[115][0] = 28;
EXPECTATIONS[115][1] = 34;
EXPECTATIONS[116] = new int[2];
EXPECTATIONS[116][0] = 29;
EXPECTATIONS[116][1] = 34;
EXPECTATIONS[117] = new int[2];
EXPECTATIONS[117][0] = 30;
EXPECTATIONS[117][1] = 34;
EXPECTATIONS[118] = new int[2];
EXPECTATIONS[118][0] = 31;
EXPECTATIONS[118][1] = 34;
EXPECTATIONS[119] = new int[2];
EXPECTATIONS[119][0] = 32;
EXPECTATIONS[119][1] = 34;
EXPECTATIONS[120] = new int[2];
EXPECTATIONS[120][0] = 33;
EXPECTATIONS[120][1] = 34;
EXPECTATIONS[121] = new int[2];
EXPECTATIONS[121][0] = 34;
EXPECTATIONS[121][1] = 34;
EXPECTATIONS[122] = new int[2];
EXPECTATIONS[122][0] = 35;
EXPECTATIONS[122][1] = 34;
EXPECTATIONS[123] = new int[2];
EXPECTATIONS[123][0] = 36;
EXPECTATIONS[123][1] = 34;
EXPECTATIONS[124] = new int[2];
EXPECTATIONS[124][0] = 37;
EXPECTATIONS[124][1] = 34;
EXPECTATIONS[125] = new int[2];
EXPECTATIONS[125][0] = 38;
EXPECTATIONS[125][1] = 34;
EXPECTATIONS[126] = new int[3];
EXPECTATIONS[126][0] = 19;
EXPECTATIONS[126][1] = 34;
EXPECTATIONS[126][2] = 27;
EXPECTATIONS[127] = new int[3];
EXPECTATIONS[127][0] = 20;
EXPECTATIONS[127][1] = 34;
EXPECTATIONS[127][2] = 28;
EXPECTATIONS[128] = new int[2];
EXPECTATIONS[128][0] = 41;
EXPECTATIONS[128][1] = 35;
EXPECTATIONS[129] = new int[2];
EXPECTATIONS[129][0] = 42;
EXPECTATIONS[129][1] = 36;
EXPECTATIONS[130] = new int[2];
EXPECTATIONS[130][0] = 21;
EXPECTATIONS[130][1] = 37;
EXPECTATIONS[131] = new int[2];
EXPECTATIONS[131][0] = 22;
EXPECTATIONS[131][1] = 37;
EXPECTATIONS[132] = new int[2];
EXPECTATIONS[132][0] = 23;
EXPECTATIONS[132][1] = 37;
EXPECTATIONS[133] = new int[2];
EXPECTATIONS[133][0] = 24;
EXPECTATIONS[133][1] = 37;
EXPECTATIONS[134] = new int[2];
EXPECTATIONS[134][0] = 25;
EXPECTATIONS[134][1] = 37;
EXPECTATIONS[135] = new int[2];
EXPECTATIONS[135][0] = 26;
EXPECTATIONS[135][1] = 37;
EXPECTATIONS[136] = new int[2];
EXPECTATIONS[136][0] = 27;
EXPECTATIONS[136][1] = 37;
EXPECTATIONS[137] = new int[2];
EXPECTATIONS[137][0] = 28;
EXPECTATIONS[137][1] = 37;
EXPECTATIONS[138] = new int[2];
EXPECTATIONS[138][0] = 29;
EXPECTATIONS[138][1] = 37;
EXPECTATIONS[139] = new int[2];
EXPECTATIONS[139][0] = 30;
EXPECTATIONS[139][1] = 37;
EXPECTATIONS[140] = new int[2];
EXPECTATIONS[140][0] = 31;
EXPECTATIONS[140][1] = 37;
EXPECTATIONS[141] = new int[2];
EXPECTATIONS[141][0] = 32;
EXPECTATIONS[141][1] = 37;
EXPECTATIONS[142] = new int[2];
EXPECTATIONS[142][0] = 33;
EXPECTATIONS[142][1] = 37;
EXPECTATIONS[143] = new int[2];
EXPECTATIONS[143][0] = 34;
EXPECTATIONS[143][1] = 37;
EXPECTATIONS[144] = new int[2];
EXPECTATIONS[144][0] = 35;
EXPECTATIONS[144][1] = 37;
EXPECTATIONS[145] = new int[2];
EXPECTATIONS[145][0] = 36;
EXPECTATIONS[145][1] = 37;
EXPECTATIONS[146] = new int[2];
EXPECTATIONS[146][0] = 37;
EXPECTATIONS[146][1] = 37;
EXPECTATIONS[147] = new int[2];
EXPECTATIONS[147][0] = 38;
EXPECTATIONS[147][1] = 37;
EXPECTATIONS[148] = new int[3];
EXPECTATIONS[148][0] = 19;
EXPECTATIONS[148][1] = 37;
EXPECTATIONS[148][2] = 29;
EXPECTATIONS[149] = new int[3];
EXPECTATIONS[149][0] = 20;
EXPECTATIONS[149][1] = 37;
EXPECTATIONS[149][2] = 30;
EXPECTATIONS[150] = new int[2];
EXPECTATIONS[150][0] = 21;
EXPECTATIONS[150][1] = 38;
EXPECTATIONS[151] = new int[2];
EXPECTATIONS[151][0] = 22;
EXPECTATIONS[151][1] = 38;
EXPECTATIONS[152] = new int[2];
EXPECTATIONS[152][0] = 23;
EXPECTATIONS[152][1] = 38;
EXPECTATIONS[153] = new int[2];
EXPECTATIONS[153][0] = 24;
EXPECTATIONS[153][1] = 38;
EXPECTATIONS[154] = new int[2];
EXPECTATIONS[154][0] = 25;
EXPECTATIONS[154][1] = 38;
EXPECTATIONS[155] = new int[2];
EXPECTATIONS[155][0] = 26;
EXPECTATIONS[155][1] = 38;
EXPECTATIONS[156] = new int[2];
EXPECTATIONS[156][0] = 27;
EXPECTATIONS[156][1] = 38;
EXPECTATIONS[157] = new int[2];
EXPECTATIONS[157][0] = 28;
EXPECTATIONS[157][1] = 38;
EXPECTATIONS[158] = new int[2];
EXPECTATIONS[158][0] = 29;
EXPECTATIONS[158][1] = 38;
EXPECTATIONS[159] = new int[2];
EXPECTATIONS[159][0] = 30;
EXPECTATIONS[159][1] = 38;
EXPECTATIONS[160] = new int[2];
EXPECTATIONS[160][0] = 31;
EXPECTATIONS[160][1] = 38;
EXPECTATIONS[161] = new int[2];
EXPECTATIONS[161][0] = 32;
EXPECTATIONS[161][1] = 38;
EXPECTATIONS[162] = new int[2];
EXPECTATIONS[162][0] = 33;
EXPECTATIONS[162][1] = 38;
EXPECTATIONS[163] = new int[2];
EXPECTATIONS[163][0] = 34;
EXPECTATIONS[163][1] = 38;
EXPECTATIONS[164] = new int[2];
EXPECTATIONS[164][0] = 35;
EXPECTATIONS[164][1] = 38;
EXPECTATIONS[165] = new int[2];
EXPECTATIONS[165][0] = 36;
EXPECTATIONS[165][1] = 38;
EXPECTATIONS[166] = new int[2];
EXPECTATIONS[166][0] = 37;
EXPECTATIONS[166][1] = 38;
EXPECTATIONS[167] = new int[2];
EXPECTATIONS[167][0] = 38;
EXPECTATIONS[167][1] = 38;
EXPECTATIONS[168] = new int[3];
EXPECTATIONS[168][0] = 19;
EXPECTATIONS[168][1] = 38;
EXPECTATIONS[168][2] = 31;
EXPECTATIONS[169] = new int[3];
EXPECTATIONS[169][0] = 20;
EXPECTATIONS[169][1] = 38;
EXPECTATIONS[169][2] = 32;
EXPECTATIONS[170] = new int[2];
EXPECTATIONS[170][0] = 43;
EXPECTATIONS[170][1] = 39;
EXPECTATIONS[171] = new int[2];
EXPECTATIONS[171][0] = 44;
EXPECTATIONS[171][1] = 40;
EXPECTATIONS[172] = new int[2];
EXPECTATIONS[172][0] = 21;
EXPECTATIONS[172][1] = 41;
EXPECTATIONS[173] = new int[2];
EXPECTATIONS[173][0] = 22;
EXPECTATIONS[173][1] = 41;
EXPECTATIONS[174] = new int[2];
EXPECTATIONS[174][0] = 23;
EXPECTATIONS[174][1] = 41;
EXPECTATIONS[175] = new int[2];
EXPECTATIONS[175][0] = 24;
EXPECTATIONS[175][1] = 41;
EXPECTATIONS[176] = new int[2];
EXPECTATIONS[176][0] = 25;
EXPECTATIONS[176][1] = 41;
EXPECTATIONS[177] = new int[2];
EXPECTATIONS[177][0] = 26;
EXPECTATIONS[177][1] = 41;
EXPECTATIONS[178] = new int[2];
EXPECTATIONS[178][0] = 27;
EXPECTATIONS[178][1] = 41;
EXPECTATIONS[179] = new int[2];
EXPECTATIONS[179][0] = 28;
EXPECTATIONS[179][1] = 41;
EXPECTATIONS[180] = new int[2];
EXPECTATIONS[180][0] = 29;
EXPECTATIONS[180][1] = 41;
EXPECTATIONS[181] = new int[2];
EXPECTATIONS[181][0] = 30;
EXPECTATIONS[181][1] = 41;
EXPECTATIONS[182] = new int[2];
EXPECTATIONS[182][0] = 31;
EXPECTATIONS[182][1] = 41;
EXPECTATIONS[183] = new int[2];
EXPECTATIONS[183][0] = 32;
EXPECTATIONS[183][1] = 41;
EXPECTATIONS[184] = new int[2];
EXPECTATIONS[184][0] = 33;
EXPECTATIONS[184][1] = 41;
EXPECTATIONS[185] = new int[2];
EXPECTATIONS[185][0] = 34;
EXPECTATIONS[185][1] = 41;
EXPECTATIONS[186] = new int[2];
EXPECTATIONS[186][0] = 35;
EXPECTATIONS[186][1] = 41;
EXPECTATIONS[187] = new int[2];
EXPECTATIONS[187][0] = 36;
EXPECTATIONS[187][1] = 41;
EXPECTATIONS[188] = new int[2];
EXPECTATIONS[188][0] = 37;
EXPECTATIONS[188][1] = 41;
EXPECTATIONS[189] = new int[2];
EXPECTATIONS[189][0] = 38;
EXPECTATIONS[189][1] = 41;
EXPECTATIONS[190] = new int[3];
EXPECTATIONS[190][0] = 19;
EXPECTATIONS[190][1] = 41;
EXPECTATIONS[190][2] = 33;
EXPECTATIONS[191] = new int[3];
EXPECTATIONS[191][0] = 20;
EXPECTATIONS[191][1] = 41;
EXPECTATIONS[191][2] = 34;
EXPECTATIONS[192] = new int[2];
EXPECTATIONS[192][0] = 21;
EXPECTATIONS[192][1] = 42;
EXPECTATIONS[193] = new int[2];
EXPECTATIONS[193][0] = 22;
EXPECTATIONS[193][1] = 42;
EXPECTATIONS[194] = new int[2];
EXPECTATIONS[194][0] = 23;
EXPECTATIONS[194][1] = 42;
EXPECTATIONS[195] = new int[2];
EXPECTATIONS[195][0] = 24;
EXPECTATIONS[195][1] = 42;
EXPECTATIONS[196] = new int[2];
EXPECTATIONS[196][0] = 25;
EXPECTATIONS[196][1] = 42;
EXPECTATIONS[197] = new int[2];
EXPECTATIONS[197][0] = 26;
EXPECTATIONS[197][1] = 42;
EXPECTATIONS[198] = new int[2];
EXPECTATIONS[198][0] = 27;
EXPECTATIONS[198][1] = 42;
EXPECTATIONS[199] = new int[2];
EXPECTATIONS[199][0] = 28;
EXPECTATIONS[199][1] = 42;
EXPECTATIONS[200] = new int[2];
EXPECTATIONS[200][0] = 29;
EXPECTATIONS[200][1] = 42;
EXPECTATIONS[201] = new int[2];
EXPECTATIONS[201][0] = 30;
EXPECTATIONS[201][1] = 42;
EXPECTATIONS[202] = new int[2];
EXPECTATIONS[202][0] = 31;
EXPECTATIONS[202][1] = 42;
EXPECTATIONS[203] = new int[2];
EXPECTATIONS[203][0] = 32;
EXPECTATIONS[203][1] = 42;
EXPECTATIONS[204] = new int[2];
EXPECTATIONS[204][0] = 33;
EXPECTATIONS[204][1] = 42;
EXPECTATIONS[205] = new int[2];
EXPECTATIONS[205][0] = 34;
EXPECTATIONS[205][1] = 42;
EXPECTATIONS[206] = new int[2];
EXPECTATIONS[206][0] = 35;
EXPECTATIONS[206][1] = 42;
EXPECTATIONS[207] = new int[2];
EXPECTATIONS[207][0] = 36;
EXPECTATIONS[207][1] = 42;
EXPECTATIONS[208] = new int[2];
EXPECTATIONS[208][0] = 37;
EXPECTATIONS[208][1] = 42;
EXPECTATIONS[209] = new int[2];
EXPECTATIONS[209][0] = 38;
EXPECTATIONS[209][1] = 42;
EXPECTATIONS[210] = new int[3];
EXPECTATIONS[210][0] = 19;
EXPECTATIONS[210][1] = 42;
EXPECTATIONS[210][2] = 35;
EXPECTATIONS[211] = new int[3];
EXPECTATIONS[211][0] = 20;
EXPECTATIONS[211][1] = 42;
EXPECTATIONS[211][2] = 36;
EXPECTATIONS[212] = new int[2];
EXPECTATIONS[212][0] = 45;
EXPECTATIONS[212][1] = 43;
EXPECTATIONS[213] = new int[2];
EXPECTATIONS[213][0] = 46;
EXPECTATIONS[213][1] = 44;
EXPECTATIONS[214] = new int[2];
EXPECTATIONS[214][0] = 21;
EXPECTATIONS[214][1] = 45;
EXPECTATIONS[215] = new int[2];
EXPECTATIONS[215][0] = 22;
EXPECTATIONS[215][1] = 45;
EXPECTATIONS[216] = new int[2];
EXPECTATIONS[216][0] = 23;
EXPECTATIONS[216][1] = 45;
EXPECTATIONS[217] = new int[2];
EXPECTATIONS[217][0] = 24;
EXPECTATIONS[217][1] = 45;
EXPECTATIONS[218] = new int[2];
EXPECTATIONS[218][0] = 25;
EXPECTATIONS[218][1] = 45;
EXPECTATIONS[219] = new int[2];
EXPECTATIONS[219][0] = 26;
EXPECTATIONS[219][1] = 45;
EXPECTATIONS[220] = new int[2];
EXPECTATIONS[220][0] = 27;
EXPECTATIONS[220][1] = 45;
EXPECTATIONS[221] = new int[2];
EXPECTATIONS[221][0] = 28;
EXPECTATIONS[221][1] = 45;
EXPECTATIONS[222] = new int[2];
EXPECTATIONS[222][0] = 29;
EXPECTATIONS[222][1] = 45;
EXPECTATIONS[223] = new int[2];
EXPECTATIONS[223][0] = 30;
EXPECTATIONS[223][1] = 45;
EXPECTATIONS[224] = new int[2];
EXPECTATIONS[224][0] = 31;
EXPECTATIONS[224][1] = 45;
EXPECTATIONS[225] = new int[2];
EXPECTATIONS[225][0] = 32;
EXPECTATIONS[225][1] = 45;
EXPECTATIONS[226] = new int[2];
EXPECTATIONS[226][0] = 33;
EXPECTATIONS[226][1] = 45;
EXPECTATIONS[227] = new int[2];
EXPECTATIONS[227][0] = 34;
EXPECTATIONS[227][1] = 45;
EXPECTATIONS[228] = new int[2];
EXPECTATIONS[228][0] = 35;
EXPECTATIONS[228][1] = 45;
EXPECTATIONS[229] = new int[2];
EXPECTATIONS[229][0] = 36;
EXPECTATIONS[229][1] = 45;
EXPECTATIONS[230] = new int[2];
EXPECTATIONS[230][0] = 37;
EXPECTATIONS[230][1] = 45;
EXPECTATIONS[231] = new int[2];
EXPECTATIONS[231][0] = 38;
EXPECTATIONS[231][1] = 45;
EXPECTATIONS[232] = new int[3];
EXPECTATIONS[232][0] = 19;
EXPECTATIONS[232][1] = 45;
EXPECTATIONS[232][2] = 37;
EXPECTATIONS[233] = new int[3];
EXPECTATIONS[233][0] = 20;
EXPECTATIONS[233][1] = 45;
EXPECTATIONS[233][2] = 38;
EXPECTATIONS[234] = new int[2];
EXPECTATIONS[234][0] = 21;
EXPECTATIONS[234][1] = 46;
EXPECTATIONS[235] = new int[2];
EXPECTATIONS[235][0] = 22;
EXPECTATIONS[235][1] = 46;
EXPECTATIONS[236] = new int[2];
EXPECTATIONS[236][0] = 23;
EXPECTATIONS[236][1] = 46;
EXPECTATIONS[237] = new int[2];
EXPECTATIONS[237][0] = 24;
EXPECTATIONS[237][1] = 46;
EXPECTATIONS[238] = new int[2];
EXPECTATIONS[238][0] = 25;
EXPECTATIONS[238][1] = 46;
EXPECTATIONS[239] = new int[2];
EXPECTATIONS[239][0] = 26;
EXPECTATIONS[239][1] = 46;
EXPECTATIONS[240] = new int[2];
EXPECTATIONS[240][0] = 27;
EXPECTATIONS[240][1] = 46;
EXPECTATIONS[241] = new int[2];
EXPECTATIONS[241][0] = 28;
EXPECTATIONS[241][1] = 46;
EXPECTATIONS[242] = new int[2];
EXPECTATIONS[242][0] = 29;
EXPECTATIONS[242][1] = 46;
EXPECTATIONS[243] = new int[2];
EXPECTATIONS[243][0] = 30;
EXPECTATIONS[243][1] = 46;
EXPECTATIONS[244] = new int[2];
EXPECTATIONS[244][0] = 31;
EXPECTATIONS[244][1] = 46;
EXPECTATIONS[245] = new int[2];
EXPECTATIONS[245][0] = 32;
EXPECTATIONS[245][1] = 46;
EXPECTATIONS[246] = new int[2];
EXPECTATIONS[246][0] = 33;
EXPECTATIONS[246][1] = 46;
EXPECTATIONS[247] = new int[2];
EXPECTATIONS[247][0] = 34;
EXPECTATIONS[247][1] = 46;
EXPECTATIONS[248] = new int[2];
EXPECTATIONS[248][0] = 35;
EXPECTATIONS[248][1] = 46;
EXPECTATIONS[249] = new int[2];
EXPECTATIONS[249][0] = 36;
EXPECTATIONS[249][1] = 46;
EXPECTATIONS[250] = new int[2];
EXPECTATIONS[250][0] = 37;
EXPECTATIONS[250][1] = 46;
EXPECTATIONS[251] = new int[2];
EXPECTATIONS[251][0] = 38;
EXPECTATIONS[251][1] = 46;
EXPECTATIONS[252] = new int[3];
EXPECTATIONS[252][0] = 19;
EXPECTATIONS[252][1] = 46;
EXPECTATIONS[252][2] = 39;
EXPECTATIONS[253] = new int[3];
EXPECTATIONS[253][0] = 20;
EXPECTATIONS[253][1] = 46;
EXPECTATIONS[253][2] = 40;
EXPECTATIONS[254] = new int[2];
EXPECTATIONS[254][0] = 47;
EXPECTATIONS[254][1] = 47;
EXPECTATIONS[255] = new int[3];
EXPECTATIONS[255][0] = 18;
EXPECTATIONS[255][1] = 48;
EXPECTATIONS[255][2] = 41;
EXPECTATIONS[256] = new int[2];
EXPECTATIONS[256][0] = 21;
EXPECTATIONS[256][1] = 49;
EXPECTATIONS[257] = new int[2];
EXPECTATIONS[257][0] = 22;
EXPECTATIONS[257][1] = 49;
EXPECTATIONS[258] = new int[2];
EXPECTATIONS[258][0] = 23;
EXPECTATIONS[258][1] = 49;
EXPECTATIONS[259] = new int[2];
EXPECTATIONS[259][0] = 24;
EXPECTATIONS[259][1] = 49;
EXPECTATIONS[260] = new int[2];
EXPECTATIONS[260][0] = 25;
EXPECTATIONS[260][1] = 49;
EXPECTATIONS[261] = new int[2];
EXPECTATIONS[261][0] = 26;
EXPECTATIONS[261][1] = 49;
EXPECTATIONS[262] = new int[2];
EXPECTATIONS[262][0] = 27;
EXPECTATIONS[262][1] = 49;
EXPECTATIONS[263] = new int[2];
EXPECTATIONS[263][0] = 28;
EXPECTATIONS[263][1] = 49;
EXPECTATIONS[264] = new int[2];
EXPECTATIONS[264][0] = 29;
EXPECTATIONS[264][1] = 49;
EXPECTATIONS[265] = new int[2];
EXPECTATIONS[265][0] = 30;
EXPECTATIONS[265][1] = 49;
EXPECTATIONS[266] = new int[2];
EXPECTATIONS[266][0] = 31;
EXPECTATIONS[266][1] = 49;
EXPECTATIONS[267] = new int[2];
EXPECTATIONS[267][0] = 32;
EXPECTATIONS[267][1] = 49;
EXPECTATIONS[268] = new int[2];
EXPECTATIONS[268][0] = 33;
EXPECTATIONS[268][1] = 49;
EXPECTATIONS[269] = new int[2];
EXPECTATIONS[269][0] = 34;
EXPECTATIONS[269][1] = 49;
EXPECTATIONS[270] = new int[2];
EXPECTATIONS[270][0] = 35;
EXPECTATIONS[270][1] = 49;
EXPECTATIONS[271] = new int[2];
EXPECTATIONS[271][0] = 36;
EXPECTATIONS[271][1] = 49;
EXPECTATIONS[272] = new int[2];
EXPECTATIONS[272][0] = 37;
EXPECTATIONS[272][1] = 49;
EXPECTATIONS[273] = new int[2];
EXPECTATIONS[273][0] = 38;
EXPECTATIONS[273][1] = 49;
EXPECTATIONS[274] = new int[3];
EXPECTATIONS[274][0] = 19;
EXPECTATIONS[274][1] = 49;
EXPECTATIONS[274][2] = 42;
EXPECTATIONS[275] = new int[3];
EXPECTATIONS[275][0] = 20;
EXPECTATIONS[275][1] = 49;
EXPECTATIONS[275][2] = 43;
EXPECTATIONS[276] = new int[2];
EXPECTATIONS[276][0] = 21;
EXPECTATIONS[276][1] = 50;
EXPECTATIONS[277] = new int[2];
EXPECTATIONS[277][0] = 22;
EXPECTATIONS[277][1] = 50;
EXPECTATIONS[278] = new int[2];
EXPECTATIONS[278][0] = 23;
EXPECTATIONS[278][1] = 50;
EXPECTATIONS[279] = new int[2];
EXPECTATIONS[279][0] = 24;
EXPECTATIONS[279][1] = 50;
EXPECTATIONS[280] = new int[2];
EXPECTATIONS[280][0] = 25;
EXPECTATIONS[280][1] = 50;
EXPECTATIONS[281] = new int[2];
EXPECTATIONS[281][0] = 26;
EXPECTATIONS[281][1] = 50;
EXPECTATIONS[282] = new int[2];
EXPECTATIONS[282][0] = 27;
EXPECTATIONS[282][1] = 50;
EXPECTATIONS[283] = new int[2];
EXPECTATIONS[283][0] = 28;
EXPECTATIONS[283][1] = 50;
EXPECTATIONS[284] = new int[2];
EXPECTATIONS[284][0] = 29;
EXPECTATIONS[284][1] = 50;
EXPECTATIONS[285] = new int[2];
EXPECTATIONS[285][0] = 30;
EXPECTATIONS[285][1] = 50;
EXPECTATIONS[286] = new int[2];
EXPECTATIONS[286][0] = 31;
EXPECTATIONS[286][1] = 50;
EXPECTATIONS[287] = new int[2];
EXPECTATIONS[287][0] = 32;
EXPECTATIONS[287][1] = 50;
EXPECTATIONS[288] = new int[2];
EXPECTATIONS[288][0] = 33;
EXPECTATIONS[288][1] = 50;
EXPECTATIONS[289] = new int[2];
EXPECTATIONS[289][0] = 34;
EXPECTATIONS[289][1] = 50;
EXPECTATIONS[290] = new int[2];
EXPECTATIONS[290][0] = 35;
EXPECTATIONS[290][1] = 50;
EXPECTATIONS[291] = new int[2];
EXPECTATIONS[291][0] = 36;
EXPECTATIONS[291][1] = 50;
EXPECTATIONS[292] = new int[2];
EXPECTATIONS[292][0] = 37;
EXPECTATIONS[292][1] = 50;
EXPECTATIONS[293] = new int[2];
EXPECTATIONS[293][0] = 38;
EXPECTATIONS[293][1] = 50;
EXPECTATIONS[294] = new int[3];
EXPECTATIONS[294][0] = 19;
EXPECTATIONS[294][1] = 50;
EXPECTATIONS[294][2] = 44;
EXPECTATIONS[295] = new int[3];
EXPECTATIONS[295][0] = 20;
EXPECTATIONS[295][1] = 50;
EXPECTATIONS[295][2] = 45;
EXPECTATIONS[296] = new int[2];
EXPECTATIONS[296][0] = 48;
EXPECTATIONS[296][1] = 51;
EXPECTATIONS[297] = new int[3];
EXPECTATIONS[297][0] = 49;
EXPECTATIONS[297][1] = 52;
EXPECTATIONS[297][2] = 46;
EXPECTATIONS[298] = new int[2];
EXPECTATIONS[298][0] = 50;
EXPECTATIONS[298][1] = 53;
EXPECTATIONS[299] = new int[2];
EXPECTATIONS[299][0] = 21;
EXPECTATIONS[299][1] = 53;
EXPECTATIONS[300] = new int[2];
EXPECTATIONS[300][0] = 22;
EXPECTATIONS[300][1] = 53;
EXPECTATIONS[301] = new int[2];
EXPECTATIONS[301][0] = 23;
EXPECTATIONS[301][1] = 53;
EXPECTATIONS[302] = new int[2];
EXPECTATIONS[302][0] = 24;
EXPECTATIONS[302][1] = 53;
EXPECTATIONS[303] = new int[2];
EXPECTATIONS[303][0] = 25;
EXPECTATIONS[303][1] = 53;
EXPECTATIONS[304] = new int[2];
EXPECTATIONS[304][0] = 26;
EXPECTATIONS[304][1] = 53;
EXPECTATIONS[305] = new int[2];
EXPECTATIONS[305][0] = 27;
EXPECTATIONS[305][1] = 53;
EXPECTATIONS[306] = new int[2];
EXPECTATIONS[306][0] = 28;
EXPECTATIONS[306][1] = 53;
EXPECTATIONS[307] = new int[2];
EXPECTATIONS[307][0] = 29;
EXPECTATIONS[307][1] = 53;
EXPECTATIONS[308] = new int[2];
EXPECTATIONS[308][0] = 30;
EXPECTATIONS[308][1] = 53;
EXPECTATIONS[309] = new int[2];
EXPECTATIONS[309][0] = 31;
EXPECTATIONS[309][1] = 53;
EXPECTATIONS[310] = new int[2];
EXPECTATIONS[310][0] = 32;
EXPECTATIONS[310][1] = 53;
EXPECTATIONS[311] = new int[2];
EXPECTATIONS[311][0] = 33;
EXPECTATIONS[311][1] = 53;
EXPECTATIONS[312] = new int[2];
EXPECTATIONS[312][0] = 34;
EXPECTATIONS[312][1] = 53;
EXPECTATIONS[313] = new int[2];
EXPECTATIONS[313][0] = 35;
EXPECTATIONS[313][1] = 53;
EXPECTATIONS[314] = new int[2];
EXPECTATIONS[314][0] = 36;
EXPECTATIONS[314][1] = 53;
EXPECTATIONS[315] = new int[2];
EXPECTATIONS[315][0] = 37;
EXPECTATIONS[315][1] = 53;
EXPECTATIONS[316] = new int[2];
EXPECTATIONS[316][0] = 38;
EXPECTATIONS[316][1] = 53;
EXPECTATIONS[317] = new int[3];
EXPECTATIONS[317][0] = 19;
EXPECTATIONS[317][1] = 53;
EXPECTATIONS[317][2] = 47;
EXPECTATIONS[318] = new int[3];
EXPECTATIONS[318][0] = 20;
EXPECTATIONS[318][1] = 53;
EXPECTATIONS[318][2] = 48;
EXPECTATIONS[319] = new int[3];
EXPECTATIONS[319][0] = 49;
EXPECTATIONS[319][1] = 54;
EXPECTATIONS[319][2] = 49;
EXPECTATIONS[320] = new int[2];
EXPECTATIONS[320][0] = 50;
EXPECTATIONS[320][1] = 55;
EXPECTATIONS[321] = new int[2];
EXPECTATIONS[321][0] = 21;
EXPECTATIONS[321][1] = 55;
EXPECTATIONS[322] = new int[2];
EXPECTATIONS[322][0] = 22;
EXPECTATIONS[322][1] = 55;
EXPECTATIONS[323] = new int[2];
EXPECTATIONS[323][0] = 23;
EXPECTATIONS[323][1] = 55;
EXPECTATIONS[324] = new int[2];
EXPECTATIONS[324][0] = 24;
EXPECTATIONS[324][1] = 55;
EXPECTATIONS[325] = new int[2];
EXPECTATIONS[325][0] = 25;
EXPECTATIONS[325][1] = 55;
EXPECTATIONS[326] = new int[2];
EXPECTATIONS[326][0] = 26;
EXPECTATIONS[326][1] = 55;
EXPECTATIONS[327] = new int[2];
EXPECTATIONS[327][0] = 27;
EXPECTATIONS[327][1] = 55;
EXPECTATIONS[328] = new int[2];
EXPECTATIONS[328][0] = 28;
EXPECTATIONS[328][1] = 55;
EXPECTATIONS[329] = new int[2];
EXPECTATIONS[329][0] = 29;
EXPECTATIONS[329][1] = 55;
EXPECTATIONS[330] = new int[2];
EXPECTATIONS[330][0] = 30;
EXPECTATIONS[330][1] = 55;
EXPECTATIONS[331] = new int[2];
EXPECTATIONS[331][0] = 31;
EXPECTATIONS[331][1] = 55;
EXPECTATIONS[332] = new int[2];
EXPECTATIONS[332][0] = 32;
EXPECTATIONS[332][1] = 55;
EXPECTATIONS[333] = new int[2];
EXPECTATIONS[333][0] = 33;
EXPECTATIONS[333][1] = 55;
EXPECTATIONS[334] = new int[2];
EXPECTATIONS[334][0] = 34;
EXPECTATIONS[334][1] = 55;
EXPECTATIONS[335] = new int[2];
EXPECTATIONS[335][0] = 35;
EXPECTATIONS[335][1] = 55;
EXPECTATIONS[336] = new int[2];
EXPECTATIONS[336][0] = 36;
EXPECTATIONS[336][1] = 55;
EXPECTATIONS[337] = new int[2];
EXPECTATIONS[337][0] = 37;
EXPECTATIONS[337][1] = 55;
EXPECTATIONS[338] = new int[2];
EXPECTATIONS[338][0] = 38;
EXPECTATIONS[338][1] = 55;
EXPECTATIONS[339] = new int[3];
EXPECTATIONS[339][0] = 19;
EXPECTATIONS[339][1] = 55;
EXPECTATIONS[339][2] = 50;
EXPECTATIONS[340] = new int[3];
EXPECTATIONS[340][0] = 20;
EXPECTATIONS[340][1] = 55;
EXPECTATIONS[340][2] = 51;
EXPECTATIONS[341] = new int[2];
EXPECTATIONS[341][0] = 50;
EXPECTATIONS[341][1] = 56;
EXPECTATIONS[342] = new int[2];
EXPECTATIONS[342][0] = 21;
EXPECTATIONS[342][1] = 56;
EXPECTATIONS[343] = new int[2];
EXPECTATIONS[343][0] = 22;
EXPECTATIONS[343][1] = 56;
EXPECTATIONS[344] = new int[2];
EXPECTATIONS[344][0] = 23;
EXPECTATIONS[344][1] = 56;
EXPECTATIONS[345] = new int[2];
EXPECTATIONS[345][0] = 24;
EXPECTATIONS[345][1] = 56;
EXPECTATIONS[346] = new int[2];
EXPECTATIONS[346][0] = 25;
EXPECTATIONS[346][1] = 56;
EXPECTATIONS[347] = new int[2];
EXPECTATIONS[347][0] = 26;
EXPECTATIONS[347][1] = 56;
EXPECTATIONS[348] = new int[2];
EXPECTATIONS[348][0] = 27;
EXPECTATIONS[348][1] = 56;
EXPECTATIONS[349] = new int[2];
EXPECTATIONS[349][0] = 28;
EXPECTATIONS[349][1] = 56;
EXPECTATIONS[350] = new int[2];
EXPECTATIONS[350][0] = 29;
EXPECTATIONS[350][1] = 56;
EXPECTATIONS[351] = new int[2];
EXPECTATIONS[351][0] = 30;
EXPECTATIONS[351][1] = 56;
EXPECTATIONS[352] = new int[2];
EXPECTATIONS[352][0] = 31;
EXPECTATIONS[352][1] = 56;
EXPECTATIONS[353] = new int[2];
EXPECTATIONS[353][0] = 32;
EXPECTATIONS[353][1] = 56;
EXPECTATIONS[354] = new int[2];
EXPECTATIONS[354][0] = 33;
EXPECTATIONS[354][1] = 56;
EXPECTATIONS[355] = new int[2];
EXPECTATIONS[355][0] = 34;
EXPECTATIONS[355][1] = 56;
EXPECTATIONS[356] = new int[2];
EXPECTATIONS[356][0] = 35;
EXPECTATIONS[356][1] = 56;
EXPECTATIONS[357] = new int[2];
EXPECTATIONS[357][0] = 36;
EXPECTATIONS[357][1] = 56;
EXPECTATIONS[358] = new int[2];
EXPECTATIONS[358][0] = 37;
EXPECTATIONS[358][1] = 56;
EXPECTATIONS[359] = new int[2];
EXPECTATIONS[359][0] = 38;
EXPECTATIONS[359][1] = 56;
EXPECTATIONS[360] = new int[3];
EXPECTATIONS[360][0] = 19;
EXPECTATIONS[360][1] = 56;
EXPECTATIONS[360][2] = 52;
EXPECTATIONS[361] = new int[3];
EXPECTATIONS[361][0] = 20;
EXPECTATIONS[361][1] = 56;
EXPECTATIONS[361][2] = 53;
EXPECTATIONS[362] = new int[2];
EXPECTATIONS[362][0] = 21;
EXPECTATIONS[362][1] = 57;
EXPECTATIONS[363] = new int[2];
EXPECTATIONS[363][0] = 22;
EXPECTATIONS[363][1] = 57;
EXPECTATIONS[364] = new int[2];
EXPECTATIONS[364][0] = 23;
EXPECTATIONS[364][1] = 57;
EXPECTATIONS[365] = new int[2];
EXPECTATIONS[365][0] = 24;
EXPECTATIONS[365][1] = 57;
EXPECTATIONS[366] = new int[2];
EXPECTATIONS[366][0] = 25;
EXPECTATIONS[366][1] = 57;
EXPECTATIONS[367] = new int[2];
EXPECTATIONS[367][0] = 26;
EXPECTATIONS[367][1] = 57;
EXPECTATIONS[368] = new int[2];
EXPECTATIONS[368][0] = 27;
EXPECTATIONS[368][1] = 57;
EXPECTATIONS[369] = new int[2];
EXPECTATIONS[369][0] = 28;
EXPECTATIONS[369][1] = 57;
EXPECTATIONS[370] = new int[2];
EXPECTATIONS[370][0] = 29;
EXPECTATIONS[370][1] = 57;
EXPECTATIONS[371] = new int[2];
EXPECTATIONS[371][0] = 30;
EXPECTATIONS[371][1] = 57;
EXPECTATIONS[372] = new int[2];
EXPECTATIONS[372][0] = 31;
EXPECTATIONS[372][1] = 57;
EXPECTATIONS[373] = new int[2];
EXPECTATIONS[373][0] = 32;
EXPECTATIONS[373][1] = 57;
EXPECTATIONS[374] = new int[2];
EXPECTATIONS[374][0] = 33;
EXPECTATIONS[374][1] = 57;
EXPECTATIONS[375] = new int[2];
EXPECTATIONS[375][0] = 34;
EXPECTATIONS[375][1] = 57;
EXPECTATIONS[376] = new int[2];
EXPECTATIONS[376][0] = 35;
EXPECTATIONS[376][1] = 57;
EXPECTATIONS[377] = new int[2];
EXPECTATIONS[377][0] = 36;
EXPECTATIONS[377][1] = 57;
EXPECTATIONS[378] = new int[2];
EXPECTATIONS[378][0] = 37;
EXPECTATIONS[378][1] = 57;
EXPECTATIONS[379] = new int[2];
EXPECTATIONS[379][0] = 38;
EXPECTATIONS[379][1] = 57;
EXPECTATIONS[380] = new int[3];
EXPECTATIONS[380][0] = 19;
EXPECTATIONS[380][1] = 57;
EXPECTATIONS[380][2] = 54;
EXPECTATIONS[381] = new int[3];
EXPECTATIONS[381][0] = 20;
EXPECTATIONS[381][1] = 57;
EXPECTATIONS[381][2] = 55;
EXPECTATIONS[382] = new int[2];
EXPECTATIONS[382][0] = 51;
EXPECTATIONS[382][1] = 58;
EXPECTATIONS[383] = new int[3];
EXPECTATIONS[383][0] = 49;
EXPECTATIONS[383][1] = 59;
EXPECTATIONS[383][2] = 56;
EXPECTATIONS[384] = new int[2];
EXPECTATIONS[384][0] = 52;
EXPECTATIONS[384][1] = 60;
EXPECTATIONS[385] = new int[2];
EXPECTATIONS[385][0] = 21;
EXPECTATIONS[385][1] = 60;
EXPECTATIONS[386] = new int[2];
EXPECTATIONS[386][0] = 22;
EXPECTATIONS[386][1] = 60;
EXPECTATIONS[387] = new int[2];
EXPECTATIONS[387][0] = 23;
EXPECTATIONS[387][1] = 60;
EXPECTATIONS[388] = new int[2];
EXPECTATIONS[388][0] = 24;
EXPECTATIONS[388][1] = 60;
EXPECTATIONS[389] = new int[2];
EXPECTATIONS[389][0] = 25;
EXPECTATIONS[389][1] = 60;
EXPECTATIONS[390] = new int[2];
EXPECTATIONS[390][0] = 26;
EXPECTATIONS[390][1] = 60;
EXPECTATIONS[391] = new int[2];
EXPECTATIONS[391][0] = 27;
EXPECTATIONS[391][1] = 60;
EXPECTATIONS[392] = new int[2];
EXPECTATIONS[392][0] = 28;
EXPECTATIONS[392][1] = 60;
EXPECTATIONS[393] = new int[2];
EXPECTATIONS[393][0] = 29;
EXPECTATIONS[393][1] = 60;
EXPECTATIONS[394] = new int[2];
EXPECTATIONS[394][0] = 30;
EXPECTATIONS[394][1] = 60;
EXPECTATIONS[395] = new int[2];
EXPECTATIONS[395][0] = 31;
EXPECTATIONS[395][1] = 60;
EXPECTATIONS[396] = new int[2];
EXPECTATIONS[396][0] = 32;
EXPECTATIONS[396][1] = 60;
EXPECTATIONS[397] = new int[2];
EXPECTATIONS[397][0] = 33;
EXPECTATIONS[397][1] = 60;
EXPECTATIONS[398] = new int[2];
EXPECTATIONS[398][0] = 34;
EXPECTATIONS[398][1] = 60;
EXPECTATIONS[399] = new int[2];
EXPECTATIONS[399][0] = 35;
EXPECTATIONS[399][1] = 60;
EXPECTATIONS[400] = new int[2];
EXPECTATIONS[400][0] = 36;
EXPECTATIONS[400][1] = 60;
EXPECTATIONS[401] = new int[2];
EXPECTATIONS[401][0] = 37;
EXPECTATIONS[401][1] = 60;
EXPECTATIONS[402] = new int[2];
EXPECTATIONS[402][0] = 38;
EXPECTATIONS[402][1] = 60;
EXPECTATIONS[403] = new int[3];
EXPECTATIONS[403][0] = 19;
EXPECTATIONS[403][1] = 60;
EXPECTATIONS[403][2] = 57;
EXPECTATIONS[404] = new int[3];
EXPECTATIONS[404][0] = 20;
EXPECTATIONS[404][1] = 60;
EXPECTATIONS[404][2] = 58;
EXPECTATIONS[405] = new int[3];
EXPECTATIONS[405][0] = 49;
EXPECTATIONS[405][1] = 61;
EXPECTATIONS[405][2] = 59;
EXPECTATIONS[406] = new int[2];
EXPECTATIONS[406][0] = 52;
EXPECTATIONS[406][1] = 62;
EXPECTATIONS[407] = new int[2];
EXPECTATIONS[407][0] = 21;
EXPECTATIONS[407][1] = 62;
EXPECTATIONS[408] = new int[2];
EXPECTATIONS[408][0] = 22;
EXPECTATIONS[408][1] = 62;
EXPECTATIONS[409] = new int[2];
EXPECTATIONS[409][0] = 23;
EXPECTATIONS[409][1] = 62;
EXPECTATIONS[410] = new int[2];
EXPECTATIONS[410][0] = 24;
EXPECTATIONS[410][1] = 62;
EXPECTATIONS[411] = new int[2];
EXPECTATIONS[411][0] = 25;
EXPECTATIONS[411][1] = 62;
EXPECTATIONS[412] = new int[2];
EXPECTATIONS[412][0] = 26;
EXPECTATIONS[412][1] = 62;
EXPECTATIONS[413] = new int[2];
EXPECTATIONS[413][0] = 27;
EXPECTATIONS[413][1] = 62;
EXPECTATIONS[414] = new int[2];
EXPECTATIONS[414][0] = 28;
EXPECTATIONS[414][1] = 62;
EXPECTATIONS[415] = new int[2];
EXPECTATIONS[415][0] = 29;
EXPECTATIONS[415][1] = 62;
EXPECTATIONS[416] = new int[2];
EXPECTATIONS[416][0] = 30;
EXPECTATIONS[416][1] = 62;
EXPECTATIONS[417] = new int[2];
EXPECTATIONS[417][0] = 31;
EXPECTATIONS[417][1] = 62;
EXPECTATIONS[418] = new int[2];
EXPECTATIONS[418][0] = 32;
EXPECTATIONS[418][1] = 62;
EXPECTATIONS[419] = new int[2];
EXPECTATIONS[419][0] = 33;
EXPECTATIONS[419][1] = 62;
EXPECTATIONS[420] = new int[2];
EXPECTATIONS[420][0] = 34;
EXPECTATIONS[420][1] = 62;
EXPECTATIONS[421] = new int[2];
EXPECTATIONS[421][0] = 35;
EXPECTATIONS[421][1] = 62;
EXPECTATIONS[422] = new int[2];
EXPECTATIONS[422][0] = 36;
EXPECTATIONS[422][1] = 62;
EXPECTATIONS[423] = new int[2];
EXPECTATIONS[423][0] = 37;
EXPECTATIONS[423][1] = 62;
EXPECTATIONS[424] = new int[2];
EXPECTATIONS[424][0] = 38;
EXPECTATIONS[424][1] = 62;
EXPECTATIONS[425] = new int[3];
EXPECTATIONS[425][0] = 19;
EXPECTATIONS[425][1] = 62;
EXPECTATIONS[425][2] = 60;
EXPECTATIONS[426] = new int[3];
EXPECTATIONS[426][0] = 20;
EXPECTATIONS[426][1] = 62;
EXPECTATIONS[426][2] = 61;
EXPECTATIONS[427] = new int[2];
EXPECTATIONS[427][0] = 52;
EXPECTATIONS[427][1] = 63;
EXPECTATIONS[428] = new int[2];
EXPECTATIONS[428][0] = 21;
EXPECTATIONS[428][1] = 63;
EXPECTATIONS[429] = new int[2];
EXPECTATIONS[429][0] = 22;
EXPECTATIONS[429][1] = 63;
EXPECTATIONS[430] = new int[2];
EXPECTATIONS[430][0] = 23;
EXPECTATIONS[430][1] = 63;
EXPECTATIONS[431] = new int[2];
EXPECTATIONS[431][0] = 24;
EXPECTATIONS[431][1] = 63;
EXPECTATIONS[432] = new int[2];
EXPECTATIONS[432][0] = 25;
EXPECTATIONS[432][1] = 63;
EXPECTATIONS[433] = new int[2];
EXPECTATIONS[433][0] = 26;
EXPECTATIONS[433][1] = 63;
EXPECTATIONS[434] = new int[2];
EXPECTATIONS[434][0] = 27;
EXPECTATIONS[434][1] = 63;
EXPECTATIONS[435] = new int[2];
EXPECTATIONS[435][0] = 28;
EXPECTATIONS[435][1] = 63;
EXPECTATIONS[436] = new int[2];
EXPECTATIONS[436][0] = 29;
EXPECTATIONS[436][1] = 63;
EXPECTATIONS[437] = new int[2];
EXPECTATIONS[437][0] = 30;
EXPECTATIONS[437][1] = 63;
EXPECTATIONS[438] = new int[2];
EXPECTATIONS[438][0] = 31;
EXPECTATIONS[438][1] = 63;
EXPECTATIONS[439] = new int[2];
EXPECTATIONS[439][0] = 32;
EXPECTATIONS[439][1] = 63;
EXPECTATIONS[440] = new int[2];
EXPECTATIONS[440][0] = 33;
EXPECTATIONS[440][1] = 63;
EXPECTATIONS[441] = new int[2];
EXPECTATIONS[441][0] = 34;
EXPECTATIONS[441][1] = 63;
EXPECTATIONS[442] = new int[2];
EXPECTATIONS[442][0] = 35;
EXPECTATIONS[442][1] = 63;
EXPECTATIONS[443] = new int[2];
EXPECTATIONS[443][0] = 36;
EXPECTATIONS[443][1] = 63;
EXPECTATIONS[444] = new int[2];
EXPECTATIONS[444][0] = 37;
EXPECTATIONS[444][1] = 63;
EXPECTATIONS[445] = new int[2];
EXPECTATIONS[445][0] = 38;
EXPECTATIONS[445][1] = 63;
EXPECTATIONS[446] = new int[3];
EXPECTATIONS[446][0] = 19;
EXPECTATIONS[446][1] = 63;
EXPECTATIONS[446][2] = 62;
EXPECTATIONS[447] = new int[3];
EXPECTATIONS[447][0] = 20;
EXPECTATIONS[447][1] = 63;
EXPECTATIONS[447][2] = 63;
EXPECTATIONS[448] = new int[2];
EXPECTATIONS[448][0] = 21;
EXPECTATIONS[448][1] = 64;
EXPECTATIONS[449] = new int[2];
EXPECTATIONS[449][0] = 22;
EXPECTATIONS[449][1] = 64;
EXPECTATIONS[450] = new int[2];
EXPECTATIONS[450][0] = 23;
EXPECTATIONS[450][1] = 64;
EXPECTATIONS[451] = new int[2];
EXPECTATIONS[451][0] = 24;
EXPECTATIONS[451][1] = 64;
EXPECTATIONS[452] = new int[2];
EXPECTATIONS[452][0] = 25;
EXPECTATIONS[452][1] = 64;
EXPECTATIONS[453] = new int[2];
EXPECTATIONS[453][0] = 26;
EXPECTATIONS[453][1] = 64;
EXPECTATIONS[454] = new int[2];
EXPECTATIONS[454][0] = 27;
EXPECTATIONS[454][1] = 64;
EXPECTATIONS[455] = new int[2];
EXPECTATIONS[455][0] = 28;
EXPECTATIONS[455][1] = 64;
EXPECTATIONS[456] = new int[2];
EXPECTATIONS[456][0] = 29;
EXPECTATIONS[456][1] = 64;
EXPECTATIONS[457] = new int[2];
EXPECTATIONS[457][0] = 30;
EXPECTATIONS[457][1] = 64;
EXPECTATIONS[458] = new int[2];
EXPECTATIONS[458][0] = 31;
EXPECTATIONS[458][1] = 64;
EXPECTATIONS[459] = new int[2];
EXPECTATIONS[459][0] = 32;
EXPECTATIONS[459][1] = 64;
EXPECTATIONS[460] = new int[2];
EXPECTATIONS[460][0] = 33;
EXPECTATIONS[460][1] = 64;
EXPECTATIONS[461] = new int[2];
EXPECTATIONS[461][0] = 34;
EXPECTATIONS[461][1] = 64;
EXPECTATIONS[462] = new int[2];
EXPECTATIONS[462][0] = 35;
EXPECTATIONS[462][1] = 64;
EXPECTATIONS[463] = new int[2];
EXPECTATIONS[463][0] = 36;
EXPECTATIONS[463][1] = 64;
EXPECTATIONS[464] = new int[2];
EXPECTATIONS[464][0] = 37;
EXPECTATIONS[464][1] = 64;
EXPECTATIONS[465] = new int[2];
EXPECTATIONS[465][0] = 38;
EXPECTATIONS[465][1] = 64;
EXPECTATIONS[466] = new int[3];
EXPECTATIONS[466][0] = 19;
EXPECTATIONS[466][1] = 64;
EXPECTATIONS[466][2] = 64;
EXPECTATIONS[467] = new int[3];
EXPECTATIONS[467][0] = 20;
EXPECTATIONS[467][1] = 64;
EXPECTATIONS[467][2] = 65;
EXPECTATIONS[468] = new int[2];
EXPECTATIONS[468][0] = 53;
EXPECTATIONS[468][1] = 65;
EXPECTATIONS[469] = new int[2];
EXPECTATIONS[469][0] = 54;
EXPECTATIONS[469][1] = 66;
EXPECTATIONS[470] = new int[2];
EXPECTATIONS[470][0] = 21;
EXPECTATIONS[470][1] = 67;
EXPECTATIONS[471] = new int[2];
EXPECTATIONS[471][0] = 22;
EXPECTATIONS[471][1] = 67;
EXPECTATIONS[472] = new int[2];
EXPECTATIONS[472][0] = 23;
EXPECTATIONS[472][1] = 67;
EXPECTATIONS[473] = new int[2];
EXPECTATIONS[473][0] = 24;
EXPECTATIONS[473][1] = 67;
EXPECTATIONS[474] = new int[2];
EXPECTATIONS[474][0] = 25;
EXPECTATIONS[474][1] = 67;
EXPECTATIONS[475] = new int[2];
EXPECTATIONS[475][0] = 26;
EXPECTATIONS[475][1] = 67;
EXPECTATIONS[476] = new int[2];
EXPECTATIONS[476][0] = 27;
EXPECTATIONS[476][1] = 67;
EXPECTATIONS[477] = new int[2];
EXPECTATIONS[477][0] = 28;
EXPECTATIONS[477][1] = 67;
EXPECTATIONS[478] = new int[2];
EXPECTATIONS[478][0] = 29;
EXPECTATIONS[478][1] = 67;
EXPECTATIONS[479] = new int[2];
EXPECTATIONS[479][0] = 30;
EXPECTATIONS[479][1] = 67;
EXPECTATIONS[480] = new int[2];
EXPECTATIONS[480][0] = 31;
EXPECTATIONS[480][1] = 67;
EXPECTATIONS[481] = new int[2];
EXPECTATIONS[481][0] = 32;
EXPECTATIONS[481][1] = 67;
EXPECTATIONS[482] = new int[2];
EXPECTATIONS[482][0] = 33;
EXPECTATIONS[482][1] = 67;
EXPECTATIONS[483] = new int[2];
EXPECTATIONS[483][0] = 34;
EXPECTATIONS[483][1] = 67;
EXPECTATIONS[484] = new int[2];
EXPECTATIONS[484][0] = 35;
EXPECTATIONS[484][1] = 67;
EXPECTATIONS[485] = new int[2];
EXPECTATIONS[485][0] = 36;
EXPECTATIONS[485][1] = 67;
EXPECTATIONS[486] = new int[2];
EXPECTATIONS[486][0] = 37;
EXPECTATIONS[486][1] = 67;
EXPECTATIONS[487] = new int[2];
EXPECTATIONS[487][0] = 38;
EXPECTATIONS[487][1] = 67;
EXPECTATIONS[488] = new int[3];
EXPECTATIONS[488][0] = 19;
EXPECTATIONS[488][1] = 67;
EXPECTATIONS[488][2] = 66;
EXPECTATIONS[489] = new int[3];
EXPECTATIONS[489][0] = 20;
EXPECTATIONS[489][1] = 67;
EXPECTATIONS[489][2] = 67;
EXPECTATIONS[490] = new int[2];
EXPECTATIONS[490][0] = 21;
EXPECTATIONS[490][1] = 68;
EXPECTATIONS[491] = new int[2];
EXPECTATIONS[491][0] = 22;
EXPECTATIONS[491][1] = 68;
EXPECTATIONS[492] = new int[2];
EXPECTATIONS[492][0] = 23;
EXPECTATIONS[492][1] = 68;
EXPECTATIONS[493] = new int[2];
EXPECTATIONS[493][0] = 24;
EXPECTATIONS[493][1] = 68;
EXPECTATIONS[494] = new int[2];
EXPECTATIONS[494][0] = 25;
EXPECTATIONS[494][1] = 68;
EXPECTATIONS[495] = new int[2];
EXPECTATIONS[495][0] = 26;
EXPECTATIONS[495][1] = 68;
EXPECTATIONS[496] = new int[2];
EXPECTATIONS[496][0] = 27;
EXPECTATIONS[496][1] = 68;
EXPECTATIONS[497] = new int[2];
EXPECTATIONS[497][0] = 28;
EXPECTATIONS[497][1] = 68;
EXPECTATIONS[498] = new int[2];
EXPECTATIONS[498][0] = 29;
EXPECTATIONS[498][1] = 68;
EXPECTATIONS[499] = new int[2];
EXPECTATIONS[499][0] = 30;
EXPECTATIONS[499][1] = 68;
EXPECTATIONS[500] = new int[2];
EXPECTATIONS[500][0] = 31;
EXPECTATIONS[500][1] = 68;
EXPECTATIONS[501] = new int[2];
EXPECTATIONS[501][0] = 32;
EXPECTATIONS[501][1] = 68;
EXPECTATIONS[502] = new int[2];
EXPECTATIONS[502][0] = 33;
EXPECTATIONS[502][1] = 68;
EXPECTATIONS[503] = new int[2];
EXPECTATIONS[503][0] = 34;
EXPECTATIONS[503][1] = 68;
EXPECTATIONS[504] = new int[2];
EXPECTATIONS[504][0] = 35;
EXPECTATIONS[504][1] = 68;
EXPECTATIONS[505] = new int[2];
EXPECTATIONS[505][0] = 36;
EXPECTATIONS[505][1] = 68;
EXPECTATIONS[506] = new int[2];
EXPECTATIONS[506][0] = 37;
EXPECTATIONS[506][1] = 68;
EXPECTATIONS[507] = new int[2];
EXPECTATIONS[507][0] = 38;
EXPECTATIONS[507][1] = 68;
EXPECTATIONS[508] = new int[3];
EXPECTATIONS[508][0] = 19;
EXPECTATIONS[508][1] = 68;
EXPECTATIONS[508][2] = 68;
EXPECTATIONS[509] = new int[3];
EXPECTATIONS[509][0] = 20;
EXPECTATIONS[509][1] = 68;
EXPECTATIONS[509][2] = 69;
EXPECTATIONS[510] = new int[2];
EXPECTATIONS[510][0] = 55;
EXPECTATIONS[510][1] = 69;
EXPECTATIONS[511] = new int[2];
EXPECTATIONS[511][0] = 56;
EXPECTATIONS[511][1] = 70;
EXPECTATIONS[512] = new int[2];
EXPECTATIONS[512][0] = 21;
EXPECTATIONS[512][1] = 71;
EXPECTATIONS[513] = new int[2];
EXPECTATIONS[513][0] = 22;
EXPECTATIONS[513][1] = 71;
EXPECTATIONS[514] = new int[2];
EXPECTATIONS[514][0] = 23;
EXPECTATIONS[514][1] = 71;
EXPECTATIONS[515] = new int[2];
EXPECTATIONS[515][0] = 24;
EXPECTATIONS[515][1] = 71;
EXPECTATIONS[516] = new int[2];
EXPECTATIONS[516][0] = 25;
EXPECTATIONS[516][1] = 71;
EXPECTATIONS[517] = new int[2];
EXPECTATIONS[517][0] = 26;
EXPECTATIONS[517][1] = 71;
EXPECTATIONS[518] = new int[2];
EXPECTATIONS[518][0] = 27;
EXPECTATIONS[518][1] = 71;
EXPECTATIONS[519] = new int[2];
EXPECTATIONS[519][0] = 28;
EXPECTATIONS[519][1] = 71;
EXPECTATIONS[520] = new int[2];
EXPECTATIONS[520][0] = 29;
EXPECTATIONS[520][1] = 71;
EXPECTATIONS[521] = new int[2];
EXPECTATIONS[521][0] = 30;
EXPECTATIONS[521][1] = 71;
EXPECTATIONS[522] = new int[2];
EXPECTATIONS[522][0] = 31;
EXPECTATIONS[522][1] = 71;
EXPECTATIONS[523] = new int[2];
EXPECTATIONS[523][0] = 32;
EXPECTATIONS[523][1] = 71;
EXPECTATIONS[524] = new int[2];
EXPECTATIONS[524][0] = 33;
EXPECTATIONS[524][1] = 71;
EXPECTATIONS[525] = new int[2];
EXPECTATIONS[525][0] = 34;
EXPECTATIONS[525][1] = 71;
EXPECTATIONS[526] = new int[2];
EXPECTATIONS[526][0] = 35;
EXPECTATIONS[526][1] = 71;
EXPECTATIONS[527] = new int[2];
EXPECTATIONS[527][0] = 36;
EXPECTATIONS[527][1] = 71;
EXPECTATIONS[528] = new int[2];
EXPECTATIONS[528][0] = 37;
EXPECTATIONS[528][1] = 71;
EXPECTATIONS[529] = new int[2];
EXPECTATIONS[529][0] = 38;
EXPECTATIONS[529][1] = 71;
EXPECTATIONS[530] = new int[3];
EXPECTATIONS[530][0] = 19;
EXPECTATIONS[530][1] = 71;
EXPECTATIONS[530][2] = 70;
EXPECTATIONS[531] = new int[3];
EXPECTATIONS[531][0] = 20;
EXPECTATIONS[531][1] = 71;
EXPECTATIONS[531][2] = 71;
EXPECTATIONS[532] = new int[2];
EXPECTATIONS[532][0] = 21;
EXPECTATIONS[532][1] = 72;
EXPECTATIONS[533] = new int[2];
EXPECTATIONS[533][0] = 22;
EXPECTATIONS[533][1] = 72;
EXPECTATIONS[534] = new int[2];
EXPECTATIONS[534][0] = 23;
EXPECTATIONS[534][1] = 72;
EXPECTATIONS[535] = new int[2];
EXPECTATIONS[535][0] = 24;
EXPECTATIONS[535][1] = 72;
EXPECTATIONS[536] = new int[2];
EXPECTATIONS[536][0] = 25;
EXPECTATIONS[536][1] = 72;
EXPECTATIONS[537] = new int[2];
EXPECTATIONS[537][0] = 26;
EXPECTATIONS[537][1] = 72;
EXPECTATIONS[538] = new int[2];
EXPECTATIONS[538][0] = 27;
EXPECTATIONS[538][1] = 72;
EXPECTATIONS[539] = new int[2];
EXPECTATIONS[539][0] = 28;
EXPECTATIONS[539][1] = 72;
EXPECTATIONS[540] = new int[2];
EXPECTATIONS[540][0] = 29;
EXPECTATIONS[540][1] = 72;
EXPECTATIONS[541] = new int[2];
EXPECTATIONS[541][0] = 30;
EXPECTATIONS[541][1] = 72;
EXPECTATIONS[542] = new int[2];
EXPECTATIONS[542][0] = 31;
EXPECTATIONS[542][1] = 72;
EXPECTATIONS[543] = new int[2];
EXPECTATIONS[543][0] = 32;
EXPECTATIONS[543][1] = 72;
EXPECTATIONS[544] = new int[2];
EXPECTATIONS[544][0] = 33;
EXPECTATIONS[544][1] = 72;
EXPECTATIONS[545] = new int[2];
EXPECTATIONS[545][0] = 34;
EXPECTATIONS[545][1] = 72;
EXPECTATIONS[546] = new int[2];
EXPECTATIONS[546][0] = 35;
EXPECTATIONS[546][1] = 72;
EXPECTATIONS[547] = new int[2];
EXPECTATIONS[547][0] = 36;
EXPECTATIONS[547][1] = 72;
EXPECTATIONS[548] = new int[2];
EXPECTATIONS[548][0] = 37;
EXPECTATIONS[548][1] = 72;
EXPECTATIONS[549] = new int[2];
EXPECTATIONS[549][0] = 38;
EXPECTATIONS[549][1] = 72;
EXPECTATIONS[550] = new int[3];
EXPECTATIONS[550][0] = 19;
EXPECTATIONS[550][1] = 72;
EXPECTATIONS[550][2] = 72;
EXPECTATIONS[551] = new int[3];
EXPECTATIONS[551][0] = 20;
EXPECTATIONS[551][1] = 72;
EXPECTATIONS[551][2] = 73;
EXPECTATIONS[552] = new int[2];
EXPECTATIONS[552][0] = 57;
EXPECTATIONS[552][1] = 73;
EXPECTATIONS[553] = new int[3];
EXPECTATIONS[553][0] = 49;
EXPECTATIONS[553][1] = 74;
EXPECTATIONS[553][2] = 74;
EXPECTATIONS[554] = new int[2];
EXPECTATIONS[554][0] = 58;
EXPECTATIONS[554][1] = 75;
EXPECTATIONS[555] = new int[2];
EXPECTATIONS[555][0] = 21;
EXPECTATIONS[555][1] = 75;
EXPECTATIONS[556] = new int[2];
EXPECTATIONS[556][0] = 22;
EXPECTATIONS[556][1] = 75;
EXPECTATIONS[557] = new int[2];
EXPECTATIONS[557][0] = 23;
EXPECTATIONS[557][1] = 75;
EXPECTATIONS[558] = new int[2];
EXPECTATIONS[558][0] = 24;
EXPECTATIONS[558][1] = 75;
EXPECTATIONS[559] = new int[2];
EXPECTATIONS[559][0] = 25;
EXPECTATIONS[559][1] = 75;
EXPECTATIONS[560] = new int[2];
EXPECTATIONS[560][0] = 26;
EXPECTATIONS[560][1] = 75;
EXPECTATIONS[561] = new int[2];
EXPECTATIONS[561][0] = 27;
EXPECTATIONS[561][1] = 75;
EXPECTATIONS[562] = new int[2];
EXPECTATIONS[562][0] = 28;
EXPECTATIONS[562][1] = 75;
EXPECTATIONS[563] = new int[2];
EXPECTATIONS[563][0] = 29;
EXPECTATIONS[563][1] = 75;
EXPECTATIONS[564] = new int[2];
EXPECTATIONS[564][0] = 30;
EXPECTATIONS[564][1] = 75;
EXPECTATIONS[565] = new int[2];
EXPECTATIONS[565][0] = 31;
EXPECTATIONS[565][1] = 75;
EXPECTATIONS[566] = new int[2];
EXPECTATIONS[566][0] = 32;
EXPECTATIONS[566][1] = 75;
EXPECTATIONS[567] = new int[2];
EXPECTATIONS[567][0] = 33;
EXPECTATIONS[567][1] = 75;
EXPECTATIONS[568] = new int[2];
EXPECTATIONS[568][0] = 34;
EXPECTATIONS[568][1] = 75;
EXPECTATIONS[569] = new int[2];
EXPECTATIONS[569][0] = 35;
EXPECTATIONS[569][1] = 75;
EXPECTATIONS[570] = new int[2];
EXPECTATIONS[570][0] = 36;
EXPECTATIONS[570][1] = 75;
EXPECTATIONS[571] = new int[2];
EXPECTATIONS[571][0] = 37;
EXPECTATIONS[571][1] = 75;
EXPECTATIONS[572] = new int[2];
EXPECTATIONS[572][0] = 38;
EXPECTATIONS[572][1] = 75;
EXPECTATIONS[573] = new int[3];
EXPECTATIONS[573][0] = 19;
EXPECTATIONS[573][1] = 75;
EXPECTATIONS[573][2] = 75;
EXPECTATIONS[574] = new int[3];
EXPECTATIONS[574][0] = 20;
EXPECTATIONS[574][1] = 75;
EXPECTATIONS[574][2] = 76;
EXPECTATIONS[575] = new int[3];
EXPECTATIONS[575][0] = 49;
EXPECTATIONS[575][1] = 76;
EXPECTATIONS[575][2] = 77;
EXPECTATIONS[576] = new int[2];
EXPECTATIONS[576][0] = 58;
EXPECTATIONS[576][1] = 77;
EXPECTATIONS[577] = new int[2];
EXPECTATIONS[577][0] = 21;
EXPECTATIONS[577][1] = 77;
EXPECTATIONS[578] = new int[2];
EXPECTATIONS[578][0] = 22;
EXPECTATIONS[578][1] = 77;
EXPECTATIONS[579] = new int[2];
EXPECTATIONS[579][0] = 23;
EXPECTATIONS[579][1] = 77;
EXPECTATIONS[580] = new int[2];
EXPECTATIONS[580][0] = 24;
EXPECTATIONS[580][1] = 77;
EXPECTATIONS[581] = new int[2];
EXPECTATIONS[581][0] = 25;
EXPECTATIONS[581][1] = 77;
EXPECTATIONS[582] = new int[2];
EXPECTATIONS[582][0] = 26;
EXPECTATIONS[582][1] = 77;
EXPECTATIONS[583] = new int[2];
EXPECTATIONS[583][0] = 27;
EXPECTATIONS[583][1] = 77;
EXPECTATIONS[584] = new int[2];
EXPECTATIONS[584][0] = 28;
EXPECTATIONS[584][1] = 77;
EXPECTATIONS[585] = new int[2];
EXPECTATIONS[585][0] = 29;
EXPECTATIONS[585][1] = 77;
EXPECTATIONS[586] = new int[2];
EXPECTATIONS[586][0] = 30;
EXPECTATIONS[586][1] = 77;
EXPECTATIONS[587] = new int[2];
EXPECTATIONS[587][0] = 31;
EXPECTATIONS[587][1] = 77;
EXPECTATIONS[588] = new int[2];
EXPECTATIONS[588][0] = 32;
EXPECTATIONS[588][1] = 77;
EXPECTATIONS[589] = new int[2];
EXPECTATIONS[589][0] = 33;
EXPECTATIONS[589][1] = 77;
EXPECTATIONS[590] = new int[2];
EXPECTATIONS[590][0] = 34;
EXPECTATIONS[590][1] = 77;
EXPECTATIONS[591] = new int[2];
EXPECTATIONS[591][0] = 35;
EXPECTATIONS[591][1] = 77;
EXPECTATIONS[592] = new int[2];
EXPECTATIONS[592][0] = 36;
EXPECTATIONS[592][1] = 77;
EXPECTATIONS[593] = new int[2];
EXPECTATIONS[593][0] = 37;
EXPECTATIONS[593][1] = 77;
EXPECTATIONS[594] = new int[2];
EXPECTATIONS[594][0] = 38;
EXPECTATIONS[594][1] = 77;
EXPECTATIONS[595] = new int[3];
EXPECTATIONS[595][0] = 19;
EXPECTATIONS[595][1] = 77;
EXPECTATIONS[595][2] = 78;
EXPECTATIONS[596] = new int[3];
EXPECTATIONS[596][0] = 20;
EXPECTATIONS[596][1] = 77;
EXPECTATIONS[596][2] = 79;
EXPECTATIONS[597] = new int[2];
EXPECTATIONS[597][0] = 58;
EXPECTATIONS[597][1] = 78;
EXPECTATIONS[598] = new int[2];
EXPECTATIONS[598][0] = 21;
EXPECTATIONS[598][1] = 78;
EXPECTATIONS[599] = new int[2];
EXPECTATIONS[599][0] = 22;
EXPECTATIONS[599][1] = 78;
EXPECTATIONS[600] = new int[2];
EXPECTATIONS[600][0] = 23;
EXPECTATIONS[600][1] = 78;
EXPECTATIONS[601] = new int[2];
EXPECTATIONS[601][0] = 24;
EXPECTATIONS[601][1] = 78;
EXPECTATIONS[602] = new int[2];
EXPECTATIONS[602][0] = 25;
EXPECTATIONS[602][1] = 78;
EXPECTATIONS[603] = new int[2];
EXPECTATIONS[603][0] = 26;
EXPECTATIONS[603][1] = 78;
EXPECTATIONS[604] = new int[2];
EXPECTATIONS[604][0] = 27;
EXPECTATIONS[604][1] = 78;
EXPECTATIONS[605] = new int[2];
EXPECTATIONS[605][0] = 28;
EXPECTATIONS[605][1] = 78;
EXPECTATIONS[606] = new int[2];
EXPECTATIONS[606][0] = 29;
EXPECTATIONS[606][1] = 78;
EXPECTATIONS[607] = new int[2];
EXPECTATIONS[607][0] = 30;
EXPECTATIONS[607][1] = 78;
EXPECTATIONS[608] = new int[2];
EXPECTATIONS[608][0] = 31;
EXPECTATIONS[608][1] = 78;
EXPECTATIONS[609] = new int[2];
EXPECTATIONS[609][0] = 32;
EXPECTATIONS[609][1] = 78;
EXPECTATIONS[610] = new int[2];
EXPECTATIONS[610][0] = 33;
EXPECTATIONS[610][1] = 78;
EXPECTATIONS[611] = new int[2];
EXPECTATIONS[611][0] = 34;
EXPECTATIONS[611][1] = 78;
EXPECTATIONS[612] = new int[2];
EXPECTATIONS[612][0] = 35;
EXPECTATIONS[612][1] = 78;
EXPECTATIONS[613] = new int[2];
EXPECTATIONS[613][0] = 36;
EXPECTATIONS[613][1] = 78;
EXPECTATIONS[614] = new int[2];
EXPECTATIONS[614][0] = 37;
EXPECTATIONS[614][1] = 78;
EXPECTATIONS[615] = new int[2];
EXPECTATIONS[615][0] = 38;
EXPECTATIONS[615][1] = 78;
EXPECTATIONS[616] = new int[3];
EXPECTATIONS[616][0] = 19;
EXPECTATIONS[616][1] = 78;
EXPECTATIONS[616][2] = 80;
EXPECTATIONS[617] = new int[3];
EXPECTATIONS[617][0] = 20;
EXPECTATIONS[617][1] = 78;
EXPECTATIONS[617][2] = 81;
EXPECTATIONS[618] = new int[2];
EXPECTATIONS[618][0] = 21;
EXPECTATIONS[618][1] = 79;
EXPECTATIONS[619] = new int[2];
EXPECTATIONS[619][0] = 22;
EXPECTATIONS[619][1] = 79;
EXPECTATIONS[620] = new int[2];
EXPECTATIONS[620][0] = 23;
EXPECTATIONS[620][1] = 79;
EXPECTATIONS[621] = new int[2];
EXPECTATIONS[621][0] = 24;
EXPECTATIONS[621][1] = 79;
EXPECTATIONS[622] = new int[2];
EXPECTATIONS[622][0] = 25;
EXPECTATIONS[622][1] = 79;
EXPECTATIONS[623] = new int[2];
EXPECTATIONS[623][0] = 26;
EXPECTATIONS[623][1] = 79;
EXPECTATIONS[624] = new int[2];
EXPECTATIONS[624][0] = 27;
EXPECTATIONS[624][1] = 79;
EXPECTATIONS[625] = new int[2];
EXPECTATIONS[625][0] = 28;
EXPECTATIONS[625][1] = 79;
EXPECTATIONS[626] = new int[2];
EXPECTATIONS[626][0] = 29;
EXPECTATIONS[626][1] = 79;
EXPECTATIONS[627] = new int[2];
EXPECTATIONS[627][0] = 30;
EXPECTATIONS[627][1] = 79;
EXPECTATIONS[628] = new int[2];
EXPECTATIONS[628][0] = 31;
EXPECTATIONS[628][1] = 79;
EXPECTATIONS[629] = new int[2];
EXPECTATIONS[629][0] = 32;
EXPECTATIONS[629][1] = 79;
EXPECTATIONS[630] = new int[2];
EXPECTATIONS[630][0] = 33;
EXPECTATIONS[630][1] = 79;
EXPECTATIONS[631] = new int[2];
EXPECTATIONS[631][0] = 34;
EXPECTATIONS[631][1] = 79;
EXPECTATIONS[632] = new int[2];
EXPECTATIONS[632][0] = 35;
EXPECTATIONS[632][1] = 79;
EXPECTATIONS[633] = new int[2];
EXPECTATIONS[633][0] = 36;
EXPECTATIONS[633][1] = 79;
EXPECTATIONS[634] = new int[2];
EXPECTATIONS[634][0] = 37;
EXPECTATIONS[634][1] = 79;
EXPECTATIONS[635] = new int[2];
EXPECTATIONS[635][0] = 38;
EXPECTATIONS[635][1] = 79;
EXPECTATIONS[636] = new int[3];
EXPECTATIONS[636][0] = 19;
EXPECTATIONS[636][1] = 79;
EXPECTATIONS[636][2] = 82;
EXPECTATIONS[637] = new int[3];
EXPECTATIONS[637][0] = 20;
EXPECTATIONS[637][1] = 79;
EXPECTATIONS[637][2] = 83;
EXPECTATIONS[638] = new int[2];
EXPECTATIONS[638][0] = 59;
EXPECTATIONS[638][1] = 80;
EXPECTATIONS[639] = new int[2];
EXPECTATIONS[639][0] = 60;
EXPECTATIONS[639][1] = 81;
EXPECTATIONS[640] = new int[2];
EXPECTATIONS[640][0] = 21;
EXPECTATIONS[640][1] = 82;
EXPECTATIONS[641] = new int[2];
EXPECTATIONS[641][0] = 22;
EXPECTATIONS[641][1] = 82;
EXPECTATIONS[642] = new int[2];
EXPECTATIONS[642][0] = 23;
EXPECTATIONS[642][1] = 82;
EXPECTATIONS[643] = new int[2];
EXPECTATIONS[643][0] = 24;
EXPECTATIONS[643][1] = 82;
EXPECTATIONS[644] = new int[2];
EXPECTATIONS[644][0] = 25;
EXPECTATIONS[644][1] = 82;
EXPECTATIONS[645] = new int[2];
EXPECTATIONS[645][0] = 26;
EXPECTATIONS[645][1] = 82;
EXPECTATIONS[646] = new int[2];
EXPECTATIONS[646][0] = 27;
EXPECTATIONS[646][1] = 82;
EXPECTATIONS[647] = new int[2];
EXPECTATIONS[647][0] = 28;
EXPECTATIONS[647][1] = 82;
EXPECTATIONS[648] = new int[2];
EXPECTATIONS[648][0] = 29;
EXPECTATIONS[648][1] = 82;
EXPECTATIONS[649] = new int[2];
EXPECTATIONS[649][0] = 30;
EXPECTATIONS[649][1] = 82;
EXPECTATIONS[650] = new int[2];
EXPECTATIONS[650][0] = 31;
EXPECTATIONS[650][1] = 82;
EXPECTATIONS[651] = new int[2];
EXPECTATIONS[651][0] = 32;
EXPECTATIONS[651][1] = 82;
EXPECTATIONS[652] = new int[2];
EXPECTATIONS[652][0] = 33;
EXPECTATIONS[652][1] = 82;
EXPECTATIONS[653] = new int[2];
EXPECTATIONS[653][0] = 34;
EXPECTATIONS[653][1] = 82;
EXPECTATIONS[654] = new int[2];
EXPECTATIONS[654][0] = 35;
EXPECTATIONS[654][1] = 82;
EXPECTATIONS[655] = new int[2];
EXPECTATIONS[655][0] = 36;
EXPECTATIONS[655][1] = 82;
EXPECTATIONS[656] = new int[2];
EXPECTATIONS[656][0] = 37;
EXPECTATIONS[656][1] = 82;
EXPECTATIONS[657] = new int[2];
EXPECTATIONS[657][0] = 38;
EXPECTATIONS[657][1] = 82;
EXPECTATIONS[658] = new int[3];
EXPECTATIONS[658][0] = 19;
EXPECTATIONS[658][1] = 82;
EXPECTATIONS[658][2] = 84;
EXPECTATIONS[659] = new int[3];
EXPECTATIONS[659][0] = 20;
EXPECTATIONS[659][1] = 82;
EXPECTATIONS[659][2] = 85;
EXPECTATIONS[660] = new int[2];
EXPECTATIONS[660][0] = 21;
EXPECTATIONS[660][1] = 83;
EXPECTATIONS[661] = new int[2];
EXPECTATIONS[661][0] = 22;
EXPECTATIONS[661][1] = 83;
EXPECTATIONS[662] = new int[2];
EXPECTATIONS[662][0] = 23;
EXPECTATIONS[662][1] = 83;
EXPECTATIONS[663] = new int[2];
EXPECTATIONS[663][0] = 24;
EXPECTATIONS[663][1] = 83;
EXPECTATIONS[664] = new int[2];
EXPECTATIONS[664][0] = 25;
EXPECTATIONS[664][1] = 83;
EXPECTATIONS[665] = new int[2];
EXPECTATIONS[665][0] = 26;
EXPECTATIONS[665][1] = 83;
EXPECTATIONS[666] = new int[2];
EXPECTATIONS[666][0] = 27;
EXPECTATIONS[666][1] = 83;
EXPECTATIONS[667] = new int[2];
EXPECTATIONS[667][0] = 28;
EXPECTATIONS[667][1] = 83;
EXPECTATIONS[668] = new int[2];
EXPECTATIONS[668][0] = 29;
EXPECTATIONS[668][1] = 83;
EXPECTATIONS[669] = new int[2];
EXPECTATIONS[669][0] = 30;
EXPECTATIONS[669][1] = 83;
EXPECTATIONS[670] = new int[2];
EXPECTATIONS[670][0] = 31;
EXPECTATIONS[670][1] = 83;
EXPECTATIONS[671] = new int[2];
EXPECTATIONS[671][0] = 32;
EXPECTATIONS[671][1] = 83;
EXPECTATIONS[672] = new int[2];
EXPECTATIONS[672][0] = 33;
EXPECTATIONS[672][1] = 83;
EXPECTATIONS[673] = new int[2];
EXPECTATIONS[673][0] = 34;
EXPECTATIONS[673][1] = 83;
EXPECTATIONS[674] = new int[2];
EXPECTATIONS[674][0] = 35;
EXPECTATIONS[674][1] = 83;
EXPECTATIONS[675] = new int[2];
EXPECTATIONS[675][0] = 36;
EXPECTATIONS[675][1] = 83;
EXPECTATIONS[676] = new int[2];
EXPECTATIONS[676][0] = 37;
EXPECTATIONS[676][1] = 83;
EXPECTATIONS[677] = new int[2];
EXPECTATIONS[677][0] = 38;
EXPECTATIONS[677][1] = 83;
EXPECTATIONS[678] = new int[3];
EXPECTATIONS[678][0] = 19;
EXPECTATIONS[678][1] = 83;
EXPECTATIONS[678][2] = 86;
EXPECTATIONS[679] = new int[3];
EXPECTATIONS[679][0] = 20;
EXPECTATIONS[679][1] = 83;
EXPECTATIONS[679][2] = 87;
EXPECTATIONS[680] = new int[2];
EXPECTATIONS[680][0] = 61;
EXPECTATIONS[680][1] = 84;
EXPECTATIONS[681] = new int[2];
EXPECTATIONS[681][0] = 62;
EXPECTATIONS[681][1] = 85;
EXPECTATIONS[682] = new int[2];
EXPECTATIONS[682][0] = 21;
EXPECTATIONS[682][1] = 86;
EXPECTATIONS[683] = new int[2];
EXPECTATIONS[683][0] = 22;
EXPECTATIONS[683][1] = 86;
EXPECTATIONS[684] = new int[2];
EXPECTATIONS[684][0] = 23;
EXPECTATIONS[684][1] = 86;
EXPECTATIONS[685] = new int[2];
EXPECTATIONS[685][0] = 24;
EXPECTATIONS[685][1] = 86;
EXPECTATIONS[686] = new int[2];
EXPECTATIONS[686][0] = 25;
EXPECTATIONS[686][1] = 86;
EXPECTATIONS[687] = new int[2];
EXPECTATIONS[687][0] = 26;
EXPECTATIONS[687][1] = 86;
EXPECTATIONS[688] = new int[2];
EXPECTATIONS[688][0] = 27;
EXPECTATIONS[688][1] = 86;
EXPECTATIONS[689] = new int[2];
EXPECTATIONS[689][0] = 28;
EXPECTATIONS[689][1] = 86;
EXPECTATIONS[690] = new int[2];
EXPECTATIONS[690][0] = 29;
EXPECTATIONS[690][1] = 86;
EXPECTATIONS[691] = new int[2];
EXPECTATIONS[691][0] = 30;
EXPECTATIONS[691][1] = 86;
EXPECTATIONS[692] = new int[2];
EXPECTATIONS[692][0] = 31;
EXPECTATIONS[692][1] = 86;
EXPECTATIONS[693] = new int[2];
EXPECTATIONS[693][0] = 32;
EXPECTATIONS[693][1] = 86;
EXPECTATIONS[694] = new int[2];
EXPECTATIONS[694][0] = 33;
EXPECTATIONS[694][1] = 86;
EXPECTATIONS[695] = new int[2];
EXPECTATIONS[695][0] = 34;
EXPECTATIONS[695][1] = 86;
EXPECTATIONS[696] = new int[2];
EXPECTATIONS[696][0] = 35;
EXPECTATIONS[696][1] = 86;
EXPECTATIONS[697] = new int[2];
EXPECTATIONS[697][0] = 36;
EXPECTATIONS[697][1] = 86;
EXPECTATIONS[698] = new int[2];
EXPECTATIONS[698][0] = 37;
EXPECTATIONS[698][1] = 86;
EXPECTATIONS[699] = new int[2];
EXPECTATIONS[699][0] = 38;
EXPECTATIONS[699][1] = 86;
EXPECTATIONS[700] = new int[3];
EXPECTATIONS[700][0] = 19;
EXPECTATIONS[700][1] = 86;
EXPECTATIONS[700][2] = 88;
EXPECTATIONS[701] = new int[3];
EXPECTATIONS[701][0] = 20;
EXPECTATIONS[701][1] = 86;
EXPECTATIONS[701][2] = 89;
EXPECTATIONS[702] = new int[2];
EXPECTATIONS[702][0] = 21;
EXPECTATIONS[702][1] = 87;
EXPECTATIONS[703] = new int[2];
EXPECTATIONS[703][0] = 22;
EXPECTATIONS[703][1] = 87;
EXPECTATIONS[704] = new int[2];
EXPECTATIONS[704][0] = 23;
EXPECTATIONS[704][1] = 87;
EXPECTATIONS[705] = new int[2];
EXPECTATIONS[705][0] = 24;
EXPECTATIONS[705][1] = 87;
EXPECTATIONS[706] = new int[2];
EXPECTATIONS[706][0] = 25;
EXPECTATIONS[706][1] = 87;
EXPECTATIONS[707] = new int[2];
EXPECTATIONS[707][0] = 26;
EXPECTATIONS[707][1] = 87;
EXPECTATIONS[708] = new int[2];
EXPECTATIONS[708][0] = 27;
EXPECTATIONS[708][1] = 87;
EXPECTATIONS[709] = new int[2];
EXPECTATIONS[709][0] = 28;
EXPECTATIONS[709][1] = 87;
EXPECTATIONS[710] = new int[2];
EXPECTATIONS[710][0] = 29;
EXPECTATIONS[710][1] = 87;
EXPECTATIONS[711] = new int[2];
EXPECTATIONS[711][0] = 30;
EXPECTATIONS[711][1] = 87;
EXPECTATIONS[712] = new int[2];
EXPECTATIONS[712][0] = 31;
EXPECTATIONS[712][1] = 87;
EXPECTATIONS[713] = new int[2];
EXPECTATIONS[713][0] = 32;
EXPECTATIONS[713][1] = 87;
EXPECTATIONS[714] = new int[2];
EXPECTATIONS[714][0] = 33;
EXPECTATIONS[714][1] = 87;
EXPECTATIONS[715] = new int[2];
EXPECTATIONS[715][0] = 34;
EXPECTATIONS[715][1] = 87;
EXPECTATIONS[716] = new int[2];
EXPECTATIONS[716][0] = 35;
EXPECTATIONS[716][1] = 87;
EXPECTATIONS[717] = new int[2];
EXPECTATIONS[717][0] = 36;
EXPECTATIONS[717][1] = 87;
EXPECTATIONS[718] = new int[2];
EXPECTATIONS[718][0] = 37;
EXPECTATIONS[718][1] = 87;
EXPECTATIONS[719] = new int[2];
EXPECTATIONS[719][0] = 38;
EXPECTATIONS[719][1] = 87;
EXPECTATIONS[720] = new int[3];
EXPECTATIONS[720][0] = 19;
EXPECTATIONS[720][1] = 87;
EXPECTATIONS[720][2] = 90;
EXPECTATIONS[721] = new int[3];
EXPECTATIONS[721][0] = 20;
EXPECTATIONS[721][1] = 87;
EXPECTATIONS[721][2] = 91;
EXPECTATIONS[722] = new int[2];
EXPECTATIONS[722][0] = 63;
EXPECTATIONS[722][1] = 88;
EXPECTATIONS[723] = new int[2];
EXPECTATIONS[723][0] = 64;
EXPECTATIONS[723][1] = 89;
EXPECTATIONS[724] = new int[2];
EXPECTATIONS[724][0] = 21;
EXPECTATIONS[724][1] = 90;
EXPECTATIONS[725] = new int[2];
EXPECTATIONS[725][0] = 22;
EXPECTATIONS[725][1] = 90;
EXPECTATIONS[726] = new int[2];
EXPECTATIONS[726][0] = 23;
EXPECTATIONS[726][1] = 90;
EXPECTATIONS[727] = new int[2];
EXPECTATIONS[727][0] = 24;
EXPECTATIONS[727][1] = 90;
EXPECTATIONS[728] = new int[2];
EXPECTATIONS[728][0] = 25;
EXPECTATIONS[728][1] = 90;
EXPECTATIONS[729] = new int[2];
EXPECTATIONS[729][0] = 26;
EXPECTATIONS[729][1] = 90;
EXPECTATIONS[730] = new int[2];
EXPECTATIONS[730][0] = 27;
EXPECTATIONS[730][1] = 90;
EXPECTATIONS[731] = new int[2];
EXPECTATIONS[731][0] = 28;
EXPECTATIONS[731][1] = 90;
EXPECTATIONS[732] = new int[2];
EXPECTATIONS[732][0] = 29;
EXPECTATIONS[732][1] = 90;
EXPECTATIONS[733] = new int[2];
EXPECTATIONS[733][0] = 30;
EXPECTATIONS[733][1] = 90;
EXPECTATIONS[734] = new int[2];
EXPECTATIONS[734][0] = 31;
EXPECTATIONS[734][1] = 90;
EXPECTATIONS[735] = new int[2];
EXPECTATIONS[735][0] = 32;
EXPECTATIONS[735][1] = 90;
EXPECTATIONS[736] = new int[2];
EXPECTATIONS[736][0] = 33;
EXPECTATIONS[736][1] = 90;
EXPECTATIONS[737] = new int[2];
EXPECTATIONS[737][0] = 34;
EXPECTATIONS[737][1] = 90;
EXPECTATIONS[738] = new int[2];
EXPECTATIONS[738][0] = 35;
EXPECTATIONS[738][1] = 90;
EXPECTATIONS[739] = new int[2];
EXPECTATIONS[739][0] = 36;
EXPECTATIONS[739][1] = 90;
EXPECTATIONS[740] = new int[2];
EXPECTATIONS[740][0] = 37;
EXPECTATIONS[740][1] = 90;
EXPECTATIONS[741] = new int[2];
EXPECTATIONS[741][0] = 38;
EXPECTATIONS[741][1] = 90;
EXPECTATIONS[742] = new int[3];
EXPECTATIONS[742][0] = 19;
EXPECTATIONS[742][1] = 90;
EXPECTATIONS[742][2] = 92;
EXPECTATIONS[743] = new int[3];
EXPECTATIONS[743][0] = 20;
EXPECTATIONS[743][1] = 90;
EXPECTATIONS[743][2] = 93;
EXPECTATIONS[744] = new int[2];
EXPECTATIONS[744][0] = 21;
EXPECTATIONS[744][1] = 91;
EXPECTATIONS[745] = new int[2];
EXPECTATIONS[745][0] = 22;
EXPECTATIONS[745][1] = 91;
EXPECTATIONS[746] = new int[2];
EXPECTATIONS[746][0] = 23;
EXPECTATIONS[746][1] = 91;
EXPECTATIONS[747] = new int[2];
EXPECTATIONS[747][0] = 24;
EXPECTATIONS[747][1] = 91;
EXPECTATIONS[748] = new int[2];
EXPECTATIONS[748][0] = 25;
EXPECTATIONS[748][1] = 91;
EXPECTATIONS[749] = new int[2];
EXPECTATIONS[749][0] = 26;
EXPECTATIONS[749][1] = 91;
EXPECTATIONS[750] = new int[2];
EXPECTATIONS[750][0] = 27;
EXPECTATIONS[750][1] = 91;
EXPECTATIONS[751] = new int[2];
EXPECTATIONS[751][0] = 28;
EXPECTATIONS[751][1] = 91;
EXPECTATIONS[752] = new int[2];
EXPECTATIONS[752][0] = 29;
EXPECTATIONS[752][1] = 91;
EXPECTATIONS[753] = new int[2];
EXPECTATIONS[753][0] = 30;
EXPECTATIONS[753][1] = 91;
EXPECTATIONS[754] = new int[2];
EXPECTATIONS[754][0] = 31;
EXPECTATIONS[754][1] = 91;
EXPECTATIONS[755] = new int[2];
EXPECTATIONS[755][0] = 32;
EXPECTATIONS[755][1] = 91;
EXPECTATIONS[756] = new int[2];
EXPECTATIONS[756][0] = 33;
EXPECTATIONS[756][1] = 91;
EXPECTATIONS[757] = new int[2];
EXPECTATIONS[757][0] = 34;
EXPECTATIONS[757][1] = 91;
EXPECTATIONS[758] = new int[2];
EXPECTATIONS[758][0] = 35;
EXPECTATIONS[758][1] = 91;
EXPECTATIONS[759] = new int[2];
EXPECTATIONS[759][0] = 36;
EXPECTATIONS[759][1] = 91;
EXPECTATIONS[760] = new int[2];
EXPECTATIONS[760][0] = 37;
EXPECTATIONS[760][1] = 91;
EXPECTATIONS[761] = new int[2];
EXPECTATIONS[761][0] = 38;
EXPECTATIONS[761][1] = 91;
EXPECTATIONS[762] = new int[3];
EXPECTATIONS[762][0] = 19;
EXPECTATIONS[762][1] = 91;
EXPECTATIONS[762][2] = 94;
EXPECTATIONS[763] = new int[3];
EXPECTATIONS[763][0] = 20;
EXPECTATIONS[763][1] = 91;
EXPECTATIONS[763][2] = 95;
EXPECTATIONS[764] = new int[2];
EXPECTATIONS[764][0] = 65;
EXPECTATIONS[764][1] = 92;
EXPECTATIONS[765] = new int[2];
EXPECTATIONS[765][0] = 66;
EXPECTATIONS[765][1] = 93;
EXPECTATIONS[766] = new int[2];
EXPECTATIONS[766][0] = 21;
EXPECTATIONS[766][1] = 94;
EXPECTATIONS[767] = new int[2];
EXPECTATIONS[767][0] = 22;
EXPECTATIONS[767][1] = 94;
EXPECTATIONS[768] = new int[2];
EXPECTATIONS[768][0] = 23;
EXPECTATIONS[768][1] = 94;
EXPECTATIONS[769] = new int[2];
EXPECTATIONS[769][0] = 24;
EXPECTATIONS[769][1] = 94;
EXPECTATIONS[770] = new int[2];
EXPECTATIONS[770][0] = 25;
EXPECTATIONS[770][1] = 94;
EXPECTATIONS[771] = new int[2];
EXPECTATIONS[771][0] = 26;
EXPECTATIONS[771][1] = 94;
EXPECTATIONS[772] = new int[2];
EXPECTATIONS[772][0] = 27;
EXPECTATIONS[772][1] = 94;
EXPECTATIONS[773] = new int[2];
EXPECTATIONS[773][0] = 28;
EXPECTATIONS[773][1] = 94;
EXPECTATIONS[774] = new int[2];
EXPECTATIONS[774][0] = 29;
EXPECTATIONS[774][1] = 94;
EXPECTATIONS[775] = new int[2];
EXPECTATIONS[775][0] = 30;
EXPECTATIONS[775][1] = 94;
EXPECTATIONS[776] = new int[2];
EXPECTATIONS[776][0] = 31;
EXPECTATIONS[776][1] = 94;
EXPECTATIONS[777] = new int[2];
EXPECTATIONS[777][0] = 32;
EXPECTATIONS[777][1] = 94;
EXPECTATIONS[778] = new int[2];
EXPECTATIONS[778][0] = 33;
EXPECTATIONS[778][1] = 94;
EXPECTATIONS[779] = new int[2];
EXPECTATIONS[779][0] = 34;
EXPECTATIONS[779][1] = 94;
EXPECTATIONS[780] = new int[2];
EXPECTATIONS[780][0] = 35;
EXPECTATIONS[780][1] = 94;
EXPECTATIONS[781] = new int[2];
EXPECTATIONS[781][0] = 36;
EXPECTATIONS[781][1] = 94;
EXPECTATIONS[782] = new int[2];
EXPECTATIONS[782][0] = 37;
EXPECTATIONS[782][1] = 94;
EXPECTATIONS[783] = new int[2];
EXPECTATIONS[783][0] = 38;
EXPECTATIONS[783][1] = 94;
EXPECTATIONS[784] = new int[3];
EXPECTATIONS[784][0] = 19;
EXPECTATIONS[784][1] = 94;
EXPECTATIONS[784][2] = 96;
EXPECTATIONS[785] = new int[3];
EXPECTATIONS[785][0] = 20;
EXPECTATIONS[785][1] = 94;
EXPECTATIONS[785][2] = 97;
EXPECTATIONS[786] = new int[2];
EXPECTATIONS[786][0] = 21;
EXPECTATIONS[786][1] = 95;
EXPECTATIONS[787] = new int[2];
EXPECTATIONS[787][0] = 22;
EXPECTATIONS[787][1] = 95;
EXPECTATIONS[788] = new int[2];
EXPECTATIONS[788][0] = 23;
EXPECTATIONS[788][1] = 95;
EXPECTATIONS[789] = new int[2];
EXPECTATIONS[789][0] = 24;
EXPECTATIONS[789][1] = 95;
EXPECTATIONS[790] = new int[2];
EXPECTATIONS[790][0] = 25;
EXPECTATIONS[790][1] = 95;
EXPECTATIONS[791] = new int[2];
EXPECTATIONS[791][0] = 26;
EXPECTATIONS[791][1] = 95;
EXPECTATIONS[792] = new int[2];
EXPECTATIONS[792][0] = 27;
EXPECTATIONS[792][1] = 95;
EXPECTATIONS[793] = new int[2];
EXPECTATIONS[793][0] = 28;
EXPECTATIONS[793][1] = 95;
EXPECTATIONS[794] = new int[2];
EXPECTATIONS[794][0] = 29;
EXPECTATIONS[794][1] = 95;
EXPECTATIONS[795] = new int[2];
EXPECTATIONS[795][0] = 30;
EXPECTATIONS[795][1] = 95;
EXPECTATIONS[796] = new int[2];
EXPECTATIONS[796][0] = 31;
EXPECTATIONS[796][1] = 95;
EXPECTATIONS[797] = new int[2];
EXPECTATIONS[797][0] = 32;
EXPECTATIONS[797][1] = 95;
EXPECTATIONS[798] = new int[2];
EXPECTATIONS[798][0] = 33;
EXPECTATIONS[798][1] = 95;
EXPECTATIONS[799] = new int[2];
EXPECTATIONS[799][0] = 34;
EXPECTATIONS[799][1] = 95;
EXPECTATIONS[800] = new int[2];
EXPECTATIONS[800][0] = 35;
EXPECTATIONS[800][1] = 95;
EXPECTATIONS[801] = new int[2];
EXPECTATIONS[801][0] = 36;
EXPECTATIONS[801][1] = 95;
EXPECTATIONS[802] = new int[2];
EXPECTATIONS[802][0] = 37;
EXPECTATIONS[802][1] = 95;
EXPECTATIONS[803] = new int[2];
EXPECTATIONS[803][0] = 38;
EXPECTATIONS[803][1] = 95;
EXPECTATIONS[804] = new int[3];
EXPECTATIONS[804][0] = 19;
EXPECTATIONS[804][1] = 95;
EXPECTATIONS[804][2] = 98;
EXPECTATIONS[805] = new int[3];
EXPECTATIONS[805][0] = 20;
EXPECTATIONS[805][1] = 95;
EXPECTATIONS[805][2] = 99;
EXPECTATIONS[806] = new int[2];
EXPECTATIONS[806][0] = 67;
EXPECTATIONS[806][1] = 96;
EXPECTATIONS[807] = new int[2];
EXPECTATIONS[807][0] = 68;
EXPECTATIONS[807][1] = 97;
EXPECTATIONS[808] = new int[2];
EXPECTATIONS[808][0] = 21;
EXPECTATIONS[808][1] = 98;
EXPECTATIONS[809] = new int[2];
EXPECTATIONS[809][0] = 22;
EXPECTATIONS[809][1] = 98;
EXPECTATIONS[810] = new int[2];
EXPECTATIONS[810][0] = 23;
EXPECTATIONS[810][1] = 98;
EXPECTATIONS[811] = new int[2];
EXPECTATIONS[811][0] = 24;
EXPECTATIONS[811][1] = 98;
EXPECTATIONS[812] = new int[2];
EXPECTATIONS[812][0] = 25;
EXPECTATIONS[812][1] = 98;
EXPECTATIONS[813] = new int[2];
EXPECTATIONS[813][0] = 26;
EXPECTATIONS[813][1] = 98;
EXPECTATIONS[814] = new int[2];
EXPECTATIONS[814][0] = 27;
EXPECTATIONS[814][1] = 98;
EXPECTATIONS[815] = new int[2];
EXPECTATIONS[815][0] = 28;
EXPECTATIONS[815][1] = 98;
EXPECTATIONS[816] = new int[2];
EXPECTATIONS[816][0] = 29;
EXPECTATIONS[816][1] = 98;
EXPECTATIONS[817] = new int[2];
EXPECTATIONS[817][0] = 30;
EXPECTATIONS[817][1] = 98;
EXPECTATIONS[818] = new int[2];
EXPECTATIONS[818][0] = 31;
EXPECTATIONS[818][1] = 98;
EXPECTATIONS[819] = new int[2];
EXPECTATIONS[819][0] = 32;
EXPECTATIONS[819][1] = 98;
EXPECTATIONS[820] = new int[2];
EXPECTATIONS[820][0] = 33;
EXPECTATIONS[820][1] = 98;
EXPECTATIONS[821] = new int[2];
EXPECTATIONS[821][0] = 34;
EXPECTATIONS[821][1] = 98;
EXPECTATIONS[822] = new int[2];
EXPECTATIONS[822][0] = 35;
EXPECTATIONS[822][1] = 98;
EXPECTATIONS[823] = new int[2];
EXPECTATIONS[823][0] = 36;
EXPECTATIONS[823][1] = 98;
EXPECTATIONS[824] = new int[2];
EXPECTATIONS[824][0] = 37;
EXPECTATIONS[824][1] = 98;
EXPECTATIONS[825] = new int[2];
EXPECTATIONS[825][0] = 38;
EXPECTATIONS[825][1] = 98;
EXPECTATIONS[826] = new int[3];
EXPECTATIONS[826][0] = 19;
EXPECTATIONS[826][1] = 98;
EXPECTATIONS[826][2] = 100;
EXPECTATIONS[827] = new int[3];
EXPECTATIONS[827][0] = 20;
EXPECTATIONS[827][1] = 98;
EXPECTATIONS[827][2] = 101;
EXPECTATIONS[828] = new int[2];
EXPECTATIONS[828][0] = 21;
EXPECTATIONS[828][1] = 99;
EXPECTATIONS[829] = new int[2];
EXPECTATIONS[829][0] = 22;
EXPECTATIONS[829][1] = 99;
EXPECTATIONS[830] = new int[2];
EXPECTATIONS[830][0] = 23;
EXPECTATIONS[830][1] = 99;
EXPECTATIONS[831] = new int[2];
EXPECTATIONS[831][0] = 24;
EXPECTATIONS[831][1] = 99;
EXPECTATIONS[832] = new int[2];
EXPECTATIONS[832][0] = 25;
EXPECTATIONS[832][1] = 99;
EXPECTATIONS[833] = new int[2];
EXPECTATIONS[833][0] = 26;
EXPECTATIONS[833][1] = 99;
EXPECTATIONS[834] = new int[2];
EXPECTATIONS[834][0] = 27;
EXPECTATIONS[834][1] = 99;
EXPECTATIONS[835] = new int[2];
EXPECTATIONS[835][0] = 28;
EXPECTATIONS[835][1] = 99;
EXPECTATIONS[836] = new int[2];
EXPECTATIONS[836][0] = 29;
EXPECTATIONS[836][1] = 99;
EXPECTATIONS[837] = new int[2];
EXPECTATIONS[837][0] = 30;
EXPECTATIONS[837][1] = 99;
EXPECTATIONS[838] = new int[2];
EXPECTATIONS[838][0] = 31;
EXPECTATIONS[838][1] = 99;
EXPECTATIONS[839] = new int[2];
EXPECTATIONS[839][0] = 32;
EXPECTATIONS[839][1] = 99;
EXPECTATIONS[840] = new int[2];
EXPECTATIONS[840][0] = 33;
EXPECTATIONS[840][1] = 99;
EXPECTATIONS[841] = new int[2];
EXPECTATIONS[841][0] = 34;
EXPECTATIONS[841][1] = 99;
EXPECTATIONS[842] = new int[2];
EXPECTATIONS[842][0] = 35;
EXPECTATIONS[842][1] = 99;
EXPECTATIONS[843] = new int[2];
EXPECTATIONS[843][0] = 36;
EXPECTATIONS[843][1] = 99;
EXPECTATIONS[844] = new int[2];
EXPECTATIONS[844][0] = 37;
EXPECTATIONS[844][1] = 99;
EXPECTATIONS[845] = new int[2];
EXPECTATIONS[845][0] = 38;
EXPECTATIONS[845][1] = 99;
EXPECTATIONS[846] = new int[3];
EXPECTATIONS[846][0] = 19;
EXPECTATIONS[846][1] = 99;
EXPECTATIONS[846][2] = 102;
EXPECTATIONS[847] = new int[3];
EXPECTATIONS[847][0] = 20;
EXPECTATIONS[847][1] = 99;
EXPECTATIONS[847][2] = 103;
EXPECTATIONS[848] = new int[2];
EXPECTATIONS[848][0] = 69;
EXPECTATIONS[848][1] = 100;
EXPECTATIONS[849] = new int[2];
EXPECTATIONS[849][0] = 70;
EXPECTATIONS[849][1] = 101;
EXPECTATIONS[850] = new int[2];
EXPECTATIONS[850][0] = 21;
EXPECTATIONS[850][1] = 102;
EXPECTATIONS[851] = new int[2];
EXPECTATIONS[851][0] = 22;
EXPECTATIONS[851][1] = 102;
EXPECTATIONS[852] = new int[2];
EXPECTATIONS[852][0] = 23;
EXPECTATIONS[852][1] = 102;
EXPECTATIONS[853] = new int[2];
EXPECTATIONS[853][0] = 24;
EXPECTATIONS[853][1] = 102;
EXPECTATIONS[854] = new int[2];
EXPECTATIONS[854][0] = 25;
EXPECTATIONS[854][1] = 102;
EXPECTATIONS[855] = new int[2];
EXPECTATIONS[855][0] = 26;
EXPECTATIONS[855][1] = 102;
EXPECTATIONS[856] = new int[2];
EXPECTATIONS[856][0] = 27;
EXPECTATIONS[856][1] = 102;
EXPECTATIONS[857] = new int[2];
EXPECTATIONS[857][0] = 28;
EXPECTATIONS[857][1] = 102;
EXPECTATIONS[858] = new int[2];
EXPECTATIONS[858][0] = 29;
EXPECTATIONS[858][1] = 102;
EXPECTATIONS[859] = new int[2];
EXPECTATIONS[859][0] = 30;
EXPECTATIONS[859][1] = 102;
EXPECTATIONS[860] = new int[2];
EXPECTATIONS[860][0] = 31;
EXPECTATIONS[860][1] = 102;
EXPECTATIONS[861] = new int[2];
EXPECTATIONS[861][0] = 32;
EXPECTATIONS[861][1] = 102;
EXPECTATIONS[862] = new int[2];
EXPECTATIONS[862][0] = 33;
EXPECTATIONS[862][1] = 102;
EXPECTATIONS[863] = new int[2];
EXPECTATIONS[863][0] = 34;
EXPECTATIONS[863][1] = 102;
EXPECTATIONS[864] = new int[2];
EXPECTATIONS[864][0] = 35;
EXPECTATIONS[864][1] = 102;
EXPECTATIONS[865] = new int[2];
EXPECTATIONS[865][0] = 36;
EXPECTATIONS[865][1] = 102;
EXPECTATIONS[866] = new int[2];
EXPECTATIONS[866][0] = 37;
EXPECTATIONS[866][1] = 102;
EXPECTATIONS[867] = new int[2];
EXPECTATIONS[867][0] = 38;
EXPECTATIONS[867][1] = 102;
EXPECTATIONS[868] = new int[3];
EXPECTATIONS[868][0] = 19;
EXPECTATIONS[868][1] = 102;
EXPECTATIONS[868][2] = 104;
EXPECTATIONS[869] = new int[3];
EXPECTATIONS[869][0] = 20;
EXPECTATIONS[869][1] = 102;
EXPECTATIONS[869][2] = 105;
EXPECTATIONS[870] = new int[2];
EXPECTATIONS[870][0] = 21;
EXPECTATIONS[870][1] = 103;
EXPECTATIONS[871] = new int[2];
EXPECTATIONS[871][0] = 22;
EXPECTATIONS[871][1] = 103;
EXPECTATIONS[872] = new int[2];
EXPECTATIONS[872][0] = 23;
EXPECTATIONS[872][1] = 103;
EXPECTATIONS[873] = new int[2];
EXPECTATIONS[873][0] = 24;
EXPECTATIONS[873][1] = 103;
EXPECTATIONS[874] = new int[2];
EXPECTATIONS[874][0] = 25;
EXPECTATIONS[874][1] = 103;
EXPECTATIONS[875] = new int[2];
EXPECTATIONS[875][0] = 26;
EXPECTATIONS[875][1] = 103;
EXPECTATIONS[876] = new int[2];
EXPECTATIONS[876][0] = 27;
EXPECTATIONS[876][1] = 103;
EXPECTATIONS[877] = new int[2];
EXPECTATIONS[877][0] = 28;
EXPECTATIONS[877][1] = 103;
EXPECTATIONS[878] = new int[2];
EXPECTATIONS[878][0] = 29;
EXPECTATIONS[878][1] = 103;
EXPECTATIONS[879] = new int[2];
EXPECTATIONS[879][0] = 30;
EXPECTATIONS[879][1] = 103;
EXPECTATIONS[880] = new int[2];
EXPECTATIONS[880][0] = 31;
EXPECTATIONS[880][1] = 103;
EXPECTATIONS[881] = new int[2];
EXPECTATIONS[881][0] = 32;
EXPECTATIONS[881][1] = 103;
EXPECTATIONS[882] = new int[2];
EXPECTATIONS[882][0] = 33;
EXPECTATIONS[882][1] = 103;
EXPECTATIONS[883] = new int[2];
EXPECTATIONS[883][0] = 34;
EXPECTATIONS[883][1] = 103;
EXPECTATIONS[884] = new int[2];
EXPECTATIONS[884][0] = 35;
EXPECTATIONS[884][1] = 103;
EXPECTATIONS[885] = new int[2];
EXPECTATIONS[885][0] = 36;
EXPECTATIONS[885][1] = 103;
EXPECTATIONS[886] = new int[2];
EXPECTATIONS[886][0] = 37;
EXPECTATIONS[886][1] = 103;
EXPECTATIONS[887] = new int[2];
EXPECTATIONS[887][0] = 38;
EXPECTATIONS[887][1] = 103;
EXPECTATIONS[888] = new int[3];
EXPECTATIONS[888][0] = 19;
EXPECTATIONS[888][1] = 103;
EXPECTATIONS[888][2] = 106;
EXPECTATIONS[889] = new int[3];
EXPECTATIONS[889][0] = 20;
EXPECTATIONS[889][1] = 103;
EXPECTATIONS[889][2] = 107;
EXPECTATIONS[890] = new int[2];
EXPECTATIONS[890][0] = 71;
EXPECTATIONS[890][1] = 104;
EXPECTATIONS[891] = new int[2];
EXPECTATIONS[891][0] = 72;
EXPECTATIONS[891][1] = 105;
EXPECTATIONS[892] = new int[2];
EXPECTATIONS[892][0] = 21;
EXPECTATIONS[892][1] = 106;
EXPECTATIONS[893] = new int[2];
EXPECTATIONS[893][0] = 22;
EXPECTATIONS[893][1] = 106;
EXPECTATIONS[894] = new int[2];
EXPECTATIONS[894][0] = 23;
EXPECTATIONS[894][1] = 106;
EXPECTATIONS[895] = new int[2];
EXPECTATIONS[895][0] = 24;
EXPECTATIONS[895][1] = 106;
EXPECTATIONS[896] = new int[2];
EXPECTATIONS[896][0] = 25;
EXPECTATIONS[896][1] = 106;
EXPECTATIONS[897] = new int[2];
EXPECTATIONS[897][0] = 26;
EXPECTATIONS[897][1] = 106;
EXPECTATIONS[898] = new int[2];
EXPECTATIONS[898][0] = 27;
EXPECTATIONS[898][1] = 106;
EXPECTATIONS[899] = new int[2];
EXPECTATIONS[899][0] = 28;
EXPECTATIONS[899][1] = 106;
EXPECTATIONS[900] = new int[2];
EXPECTATIONS[900][0] = 29;
EXPECTATIONS[900][1] = 106;
EXPECTATIONS[901] = new int[2];
EXPECTATIONS[901][0] = 30;
EXPECTATIONS[901][1] = 106;
EXPECTATIONS[902] = new int[2];
EXPECTATIONS[902][0] = 31;
EXPECTATIONS[902][1] = 106;
EXPECTATIONS[903] = new int[2];
EXPECTATIONS[903][0] = 32;
EXPECTATIONS[903][1] = 106;
EXPECTATIONS[904] = new int[2];
EXPECTATIONS[904][0] = 33;
EXPECTATIONS[904][1] = 106;
EXPECTATIONS[905] = new int[2];
EXPECTATIONS[905][0] = 34;
EXPECTATIONS[905][1] = 106;
EXPECTATIONS[906] = new int[2];
EXPECTATIONS[906][0] = 35;
EXPECTATIONS[906][1] = 106;
EXPECTATIONS[907] = new int[2];
EXPECTATIONS[907][0] = 36;
EXPECTATIONS[907][1] = 106;
EXPECTATIONS[908] = new int[2];
EXPECTATIONS[908][0] = 37;
EXPECTATIONS[908][1] = 106;
EXPECTATIONS[909] = new int[2];
EXPECTATIONS[909][0] = 38;
EXPECTATIONS[909][1] = 106;
EXPECTATIONS[910] = new int[3];
EXPECTATIONS[910][0] = 19;
EXPECTATIONS[910][1] = 106;
EXPECTATIONS[910][2] = 108;
EXPECTATIONS[911] = new int[3];
EXPECTATIONS[911][0] = 20;
EXPECTATIONS[911][1] = 106;
EXPECTATIONS[911][2] = 109;
EXPECTATIONS[912] = new int[2];
EXPECTATIONS[912][0] = 21;
EXPECTATIONS[912][1] = 107;
EXPECTATIONS[913] = new int[2];
EXPECTATIONS[913][0] = 22;
EXPECTATIONS[913][1] = 107;
EXPECTATIONS[914] = new int[2];
EXPECTATIONS[914][0] = 23;
EXPECTATIONS[914][1] = 107;
EXPECTATIONS[915] = new int[2];
EXPECTATIONS[915][0] = 24;
EXPECTATIONS[915][1] = 107;
EXPECTATIONS[916] = new int[2];
EXPECTATIONS[916][0] = 25;
EXPECTATIONS[916][1] = 107;
EXPECTATIONS[917] = new int[2];
EXPECTATIONS[917][0] = 26;
EXPECTATIONS[917][1] = 107;
EXPECTATIONS[918] = new int[2];
EXPECTATIONS[918][0] = 27;
EXPECTATIONS[918][1] = 107;
EXPECTATIONS[919] = new int[2];
EXPECTATIONS[919][0] = 28;
EXPECTATIONS[919][1] = 107;
EXPECTATIONS[920] = new int[2];
EXPECTATIONS[920][0] = 29;
EXPECTATIONS[920][1] = 107;
EXPECTATIONS[921] = new int[2];
EXPECTATIONS[921][0] = 30;
EXPECTATIONS[921][1] = 107;
EXPECTATIONS[922] = new int[2];
EXPECTATIONS[922][0] = 31;
EXPECTATIONS[922][1] = 107;
EXPECTATIONS[923] = new int[2];
EXPECTATIONS[923][0] = 32;
EXPECTATIONS[923][1] = 107;
EXPECTATIONS[924] = new int[2];
EXPECTATIONS[924][0] = 33;
EXPECTATIONS[924][1] = 107;
EXPECTATIONS[925] = new int[2];
EXPECTATIONS[925][0] = 34;
EXPECTATIONS[925][1] = 107;
EXPECTATIONS[926] = new int[2];
EXPECTATIONS[926][0] = 35;
EXPECTATIONS[926][1] = 107;
EXPECTATIONS[927] = new int[2];
EXPECTATIONS[927][0] = 36;
EXPECTATIONS[927][1] = 107;
EXPECTATIONS[928] = new int[2];
EXPECTATIONS[928][0] = 37;
EXPECTATIONS[928][1] = 107;
EXPECTATIONS[929] = new int[2];
EXPECTATIONS[929][0] = 38;
EXPECTATIONS[929][1] = 107;
EXPECTATIONS[930] = new int[3];
EXPECTATIONS[930][0] = 19;
EXPECTATIONS[930][1] = 107;
EXPECTATIONS[930][2] = 110;
EXPECTATIONS[931] = new int[3];
EXPECTATIONS[931][0] = 20;
EXPECTATIONS[931][1] = 107;
EXPECTATIONS[931][2] = 111;
EXPECTATIONS[932] = new int[2];
EXPECTATIONS[932][0] = 73;
EXPECTATIONS[932][1] = 108;
EXPECTATIONS[933] = new int[2];
EXPECTATIONS[933][0] = 74;
EXPECTATIONS[933][1] = 109;
EXPECTATIONS[934] = new int[2];
EXPECTATIONS[934][0] = 21;
EXPECTATIONS[934][1] = 110;
EXPECTATIONS[935] = new int[2];
EXPECTATIONS[935][0] = 22;
EXPECTATIONS[935][1] = 110;
EXPECTATIONS[936] = new int[2];
EXPECTATIONS[936][0] = 23;
EXPECTATIONS[936][1] = 110;
EXPECTATIONS[937] = new int[2];
EXPECTATIONS[937][0] = 24;
EXPECTATIONS[937][1] = 110;
EXPECTATIONS[938] = new int[2];
EXPECTATIONS[938][0] = 25;
EXPECTATIONS[938][1] = 110;
EXPECTATIONS[939] = new int[2];
EXPECTATIONS[939][0] = 26;
EXPECTATIONS[939][1] = 110;
EXPECTATIONS[940] = new int[2];
EXPECTATIONS[940][0] = 27;
EXPECTATIONS[940][1] = 110;
EXPECTATIONS[941] = new int[2];
EXPECTATIONS[941][0] = 28;
EXPECTATIONS[941][1] = 110;
EXPECTATIONS[942] = new int[2];
EXPECTATIONS[942][0] = 29;
EXPECTATIONS[942][1] = 110;
EXPECTATIONS[943] = new int[2];
EXPECTATIONS[943][0] = 30;
EXPECTATIONS[943][1] = 110;
EXPECTATIONS[944] = new int[2];
EXPECTATIONS[944][0] = 31;
EXPECTATIONS[944][1] = 110;
EXPECTATIONS[945] = new int[2];
EXPECTATIONS[945][0] = 32;
EXPECTATIONS[945][1] = 110;
EXPECTATIONS[946] = new int[2];
EXPECTATIONS[946][0] = 33;
EXPECTATIONS[946][1] = 110;
EXPECTATIONS[947] = new int[2];
EXPECTATIONS[947][0] = 34;
EXPECTATIONS[947][1] = 110;
EXPECTATIONS[948] = new int[2];
EXPECTATIONS[948][0] = 35;
EXPECTATIONS[948][1] = 110;
EXPECTATIONS[949] = new int[2];
EXPECTATIONS[949][0] = 36;
EXPECTATIONS[949][1] = 110;
EXPECTATIONS[950] = new int[2];
EXPECTATIONS[950][0] = 37;
EXPECTATIONS[950][1] = 110;
EXPECTATIONS[951] = new int[2];
EXPECTATIONS[951][0] = 38;
EXPECTATIONS[951][1] = 110;
EXPECTATIONS[952] = new int[3];
EXPECTATIONS[952][0] = 19;
EXPECTATIONS[952][1] = 110;
EXPECTATIONS[952][2] = 112;
EXPECTATIONS[953] = new int[3];
EXPECTATIONS[953][0] = 20;
EXPECTATIONS[953][1] = 110;
EXPECTATIONS[953][2] = 113;
EXPECTATIONS[954] = new int[2];
EXPECTATIONS[954][0] = 21;
EXPECTATIONS[954][1] = 111;
EXPECTATIONS[955] = new int[2];
EXPECTATIONS[955][0] = 22;
EXPECTATIONS[955][1] = 111;
EXPECTATIONS[956] = new int[2];
EXPECTATIONS[956][0] = 23;
EXPECTATIONS[956][1] = 111;
EXPECTATIONS[957] = new int[2];
EXPECTATIONS[957][0] = 24;
EXPECTATIONS[957][1] = 111;
EXPECTATIONS[958] = new int[2];
EXPECTATIONS[958][0] = 25;
EXPECTATIONS[958][1] = 111;
EXPECTATIONS[959] = new int[2];
EXPECTATIONS[959][0] = 26;
EXPECTATIONS[959][1] = 111;
EXPECTATIONS[960] = new int[2];
EXPECTATIONS[960][0] = 27;
EXPECTATIONS[960][1] = 111;
EXPECTATIONS[961] = new int[2];
EXPECTATIONS[961][0] = 28;
EXPECTATIONS[961][1] = 111;
EXPECTATIONS[962] = new int[2];
EXPECTATIONS[962][0] = 29;
EXPECTATIONS[962][1] = 111;
EXPECTATIONS[963] = new int[2];
EXPECTATIONS[963][0] = 30;
EXPECTATIONS[963][1] = 111;
EXPECTATIONS[964] = new int[2];
EXPECTATIONS[964][0] = 31;
EXPECTATIONS[964][1] = 111;
EXPECTATIONS[965] = new int[2];
EXPECTATIONS[965][0] = 32;
EXPECTATIONS[965][1] = 111;
EXPECTATIONS[966] = new int[2];
EXPECTATIONS[966][0] = 33;
EXPECTATIONS[966][1] = 111;
EXPECTATIONS[967] = new int[2];
EXPECTATIONS[967][0] = 34;
EXPECTATIONS[967][1] = 111;
EXPECTATIONS[968] = new int[2];
EXPECTATIONS[968][0] = 35;
EXPECTATIONS[968][1] = 111;
EXPECTATIONS[969] = new int[2];
EXPECTATIONS[969][0] = 36;
EXPECTATIONS[969][1] = 111;
EXPECTATIONS[970] = new int[2];
EXPECTATIONS[970][0] = 37;
EXPECTATIONS[970][1] = 111;
EXPECTATIONS[971] = new int[2];
EXPECTATIONS[971][0] = 38;
EXPECTATIONS[971][1] = 111;
EXPECTATIONS[972] = new int[3];
EXPECTATIONS[972][0] = 19;
EXPECTATIONS[972][1] = 111;
EXPECTATIONS[972][2] = 114;
EXPECTATIONS[973] = new int[3];
EXPECTATIONS[973][0] = 20;
EXPECTATIONS[973][1] = 111;
EXPECTATIONS[973][2] = 115;
EXPECTATIONS[974] = new int[2];
EXPECTATIONS[974][0] = 21;
EXPECTATIONS[974][1] = 112;
EXPECTATIONS[975] = new int[2];
EXPECTATIONS[975][0] = 22;
EXPECTATIONS[975][1] = 112;
EXPECTATIONS[976] = new int[2];
EXPECTATIONS[976][0] = 23;
EXPECTATIONS[976][1] = 112;
EXPECTATIONS[977] = new int[2];
EXPECTATIONS[977][0] = 24;
EXPECTATIONS[977][1] = 112;
EXPECTATIONS[978] = new int[2];
EXPECTATIONS[978][0] = 25;
EXPECTATIONS[978][1] = 112;
EXPECTATIONS[979] = new int[2];
EXPECTATIONS[979][0] = 26;
EXPECTATIONS[979][1] = 112;
EXPECTATIONS[980] = new int[2];
EXPECTATIONS[980][0] = 27;
EXPECTATIONS[980][1] = 112;
EXPECTATIONS[981] = new int[2];
EXPECTATIONS[981][0] = 28;
EXPECTATIONS[981][1] = 112;
EXPECTATIONS[982] = new int[2];
EXPECTATIONS[982][0] = 29;
EXPECTATIONS[982][1] = 112;
EXPECTATIONS[983] = new int[2];
EXPECTATIONS[983][0] = 30;
EXPECTATIONS[983][1] = 112;
EXPECTATIONS[984] = new int[2];
EXPECTATIONS[984][0] = 31;
EXPECTATIONS[984][1] = 112;
EXPECTATIONS[985] = new int[2];
EXPECTATIONS[985][0] = 32;
EXPECTATIONS[985][1] = 112;
EXPECTATIONS[986] = new int[2];
EXPECTATIONS[986][0] = 33;
EXPECTATIONS[986][1] = 112;
EXPECTATIONS[987] = new int[2];
EXPECTATIONS[987][0] = 34;
EXPECTATIONS[987][1] = 112;
EXPECTATIONS[988] = new int[2];
EXPECTATIONS[988][0] = 35;
EXPECTATIONS[988][1] = 112;
EXPECTATIONS[989] = new int[2];
EXPECTATIONS[989][0] = 36;
EXPECTATIONS[989][1] = 112;
EXPECTATIONS[990] = new int[2];
EXPECTATIONS[990][0] = 37;
EXPECTATIONS[990][1] = 112;
EXPECTATIONS[991] = new int[2];
EXPECTATIONS[991][0] = 38;
EXPECTATIONS[991][1] = 112;
EXPECTATIONS[992] = new int[3];
EXPECTATIONS[992][0] = 19;
EXPECTATIONS[992][1] = 112;
EXPECTATIONS[992][2] = 116;
EXPECTATIONS[993] = new int[3];
EXPECTATIONS[993][0] = 20;
EXPECTATIONS[993][1] = 112;
EXPECTATIONS[993][2] = 117;
EXPECTATIONS[994] = new int[2];
EXPECTATIONS[994][0] = 75;
EXPECTATIONS[994][1] = 113;
EXPECTATIONS[995] = new int[2];
EXPECTATIONS[995][0] = 76;
EXPECTATIONS[995][1] = 114;
EXPECTATIONS[996] = new int[2];
EXPECTATIONS[996][0] = 77;
EXPECTATIONS[996][1] = 114;
EXPECTATIONS[997] = new int[2];
EXPECTATIONS[997][0] = 78;
EXPECTATIONS[997][1] = 114;
EXPECTATIONS[998] = new int[2];
EXPECTATIONS[998][0] = 79;
EXPECTATIONS[998][1] = 114;
EXPECTATIONS[999] = new int[2];
EXPECTATIONS[999][0] = 80;
EXPECTATIONS[999][1] = 114;
EXPECTATIONS[1000] = new int[2];
EXPECTATIONS[1000][0] = 81;
EXPECTATIONS[1000][1] = 114;
EXPECTATIONS[1001] = new int[2];
EXPECTATIONS[1001][0] = 82;
EXPECTATIONS[1001][1] = 114;
EXPECTATIONS[1002] = new int[2];
EXPECTATIONS[1002][0] = 83;
EXPECTATIONS[1002][1] = 114;
EXPECTATIONS[1003] = new int[2];
EXPECTATIONS[1003][0] = 84;
EXPECTATIONS[1003][1] = 114;
EXPECTATIONS[1004] = new int[3];
EXPECTATIONS[1004][0] = 19;
EXPECTATIONS[1004][1] = 114;
EXPECTATIONS[1004][2] = 118;
EXPECTATIONS[1005] = new int[3];
EXPECTATIONS[1005][0] = 20;
EXPECTATIONS[1005][1] = 114;
EXPECTATIONS[1005][2] = 119;
EXPECTATIONS[1006] = new int[2];
EXPECTATIONS[1006][0] = 85;
EXPECTATIONS[1006][1] = 115;
EXPECTATIONS[1007] = new int[2];
EXPECTATIONS[1007][0] = 86;
EXPECTATIONS[1007][1] = 116;
EXPECTATIONS[1008] = new int[2];
EXPECTATIONS[1008][0] = 76;
EXPECTATIONS[1008][1] = 117;
EXPECTATIONS[1009] = new int[2];
EXPECTATIONS[1009][0] = 77;
EXPECTATIONS[1009][1] = 117;
EXPECTATIONS[1010] = new int[2];
EXPECTATIONS[1010][0] = 78;
EXPECTATIONS[1010][1] = 117;
EXPECTATIONS[1011] = new int[2];
EXPECTATIONS[1011][0] = 79;
EXPECTATIONS[1011][1] = 117;
EXPECTATIONS[1012] = new int[2];
EXPECTATIONS[1012][0] = 80;
EXPECTATIONS[1012][1] = 117;
EXPECTATIONS[1013] = new int[2];
EXPECTATIONS[1013][0] = 81;
EXPECTATIONS[1013][1] = 117;
EXPECTATIONS[1014] = new int[2];
EXPECTATIONS[1014][0] = 82;
EXPECTATIONS[1014][1] = 117;
EXPECTATIONS[1015] = new int[2];
EXPECTATIONS[1015][0] = 83;
EXPECTATIONS[1015][1] = 117;
EXPECTATIONS[1016] = new int[2];
EXPECTATIONS[1016][0] = 84;
EXPECTATIONS[1016][1] = 117;
EXPECTATIONS[1017] = new int[3];
EXPECTATIONS[1017][0] = 19;
EXPECTATIONS[1017][1] = 117;
EXPECTATIONS[1017][2] = 120;
EXPECTATIONS[1018] = new int[3];
EXPECTATIONS[1018][0] = 20;
EXPECTATIONS[1018][1] = 117;
EXPECTATIONS[1018][2] = 121;
EXPECTATIONS[1019] = new int[2];
EXPECTATIONS[1019][0] = 76;
EXPECTATIONS[1019][1] = 118;
EXPECTATIONS[1020] = new int[2];
EXPECTATIONS[1020][0] = 77;
EXPECTATIONS[1020][1] = 118;
EXPECTATIONS[1021] = new int[2];
EXPECTATIONS[1021][0] = 78;
EXPECTATIONS[1021][1] = 118;
EXPECTATIONS[1022] = new int[2];
EXPECTATIONS[1022][0] = 79;
EXPECTATIONS[1022][1] = 118;
EXPECTATIONS[1023] = new int[2];
EXPECTATIONS[1023][0] = 80;
EXPECTATIONS[1023][1] = 118;
EXPECTATIONS[1024] = new int[2];
EXPECTATIONS[1024][0] = 81;
EXPECTATIONS[1024][1] = 118;
EXPECTATIONS[1025] = new int[2];
EXPECTATIONS[1025][0] = 82;
EXPECTATIONS[1025][1] = 118;
EXPECTATIONS[1026] = new int[2];
EXPECTATIONS[1026][0] = 83;
EXPECTATIONS[1026][1] = 118;
EXPECTATIONS[1027] = new int[2];
EXPECTATIONS[1027][0] = 84;
EXPECTATIONS[1027][1] = 118;
EXPECTATIONS[1028] = new int[3];
EXPECTATIONS[1028][0] = 19;
EXPECTATIONS[1028][1] = 118;
EXPECTATIONS[1028][2] = 122;
EXPECTATIONS[1029] = new int[3];
EXPECTATIONS[1029][0] = 20;
EXPECTATIONS[1029][1] = 118;
EXPECTATIONS[1029][2] = 123;
EXPECTATIONS[1030] = new int[2];
EXPECTATIONS[1030][0] = 87;
EXPECTATIONS[1030][1] = 119;
EXPECTATIONS[1031] = new int[2];
EXPECTATIONS[1031][0] = 88;
EXPECTATIONS[1031][1] = 120;
EXPECTATIONS[1032] = new int[2];
EXPECTATIONS[1032][0] = 76;
EXPECTATIONS[1032][1] = 121;
EXPECTATIONS[1033] = new int[2];
EXPECTATIONS[1033][0] = 77;
EXPECTATIONS[1033][1] = 121;
}
public static void initialize1() {
EXPECTATIONS[1034] = new int[2];
EXPECTATIONS[1034][0] = 78;
EXPECTATIONS[1034][1] = 121;
EXPECTATIONS[1035] = new int[2];
EXPECTATIONS[1035][0] = 79;
EXPECTATIONS[1035][1] = 121;
EXPECTATIONS[1036] = new int[2];
EXPECTATIONS[1036][0] = 80;
EXPECTATIONS[1036][1] = 121;
EXPECTATIONS[1037] = new int[2];
EXPECTATIONS[1037][0] = 81;
EXPECTATIONS[1037][1] = 121;
EXPECTATIONS[1038] = new int[2];
EXPECTATIONS[1038][0] = 82;
EXPECTATIONS[1038][1] = 121;
EXPECTATIONS[1039] = new int[2];
EXPECTATIONS[1039][0] = 83;
EXPECTATIONS[1039][1] = 121;
EXPECTATIONS[1040] = new int[2];
EXPECTATIONS[1040][0] = 84;
EXPECTATIONS[1040][1] = 121;
EXPECTATIONS[1041] = new int[3];
EXPECTATIONS[1041][0] = 19;
EXPECTATIONS[1041][1] = 121;
EXPECTATIONS[1041][2] = 124;
EXPECTATIONS[1042] = new int[3];
EXPECTATIONS[1042][0] = 20;
EXPECTATIONS[1042][1] = 121;
EXPECTATIONS[1042][2] = 125;
EXPECTATIONS[1043] = new int[2];
EXPECTATIONS[1043][0] = 76;
EXPECTATIONS[1043][1] = 122;
EXPECTATIONS[1044] = new int[2];
EXPECTATIONS[1044][0] = 77;
EXPECTATIONS[1044][1] = 122;
EXPECTATIONS[1045] = new int[2];
EXPECTATIONS[1045][0] = 78;
EXPECTATIONS[1045][1] = 122;
EXPECTATIONS[1046] = new int[2];
EXPECTATIONS[1046][0] = 79;
EXPECTATIONS[1046][1] = 122;
EXPECTATIONS[1047] = new int[2];
EXPECTATIONS[1047][0] = 80;
EXPECTATIONS[1047][1] = 122;
EXPECTATIONS[1048] = new int[2];
EXPECTATIONS[1048][0] = 81;
EXPECTATIONS[1048][1] = 122;
EXPECTATIONS[1049] = new int[2];
EXPECTATIONS[1049][0] = 82;
EXPECTATIONS[1049][1] = 122;
EXPECTATIONS[1050] = new int[2];
EXPECTATIONS[1050][0] = 83;
EXPECTATIONS[1050][1] = 122;
EXPECTATIONS[1051] = new int[2];
EXPECTATIONS[1051][0] = 84;
EXPECTATIONS[1051][1] = 122;
EXPECTATIONS[1052] = new int[3];
EXPECTATIONS[1052][0] = 19;
EXPECTATIONS[1052][1] = 122;
EXPECTATIONS[1052][2] = 126;
EXPECTATIONS[1053] = new int[3];
EXPECTATIONS[1053][0] = 20;
EXPECTATIONS[1053][1] = 122;
EXPECTATIONS[1053][2] = 127;
EXPECTATIONS[1054] = new int[2];
EXPECTATIONS[1054][0] = 89;
EXPECTATIONS[1054][1] = 123;
EXPECTATIONS[1055] = new int[2];
EXPECTATIONS[1055][0] = 90;
EXPECTATIONS[1055][1] = 124;
EXPECTATIONS[1056] = new int[2];
EXPECTATIONS[1056][0] = 76;
EXPECTATIONS[1056][1] = 125;
EXPECTATIONS[1057] = new int[2];
EXPECTATIONS[1057][0] = 77;
EXPECTATIONS[1057][1] = 125;
EXPECTATIONS[1058] = new int[2];
EXPECTATIONS[1058][0] = 78;
EXPECTATIONS[1058][1] = 125;
EXPECTATIONS[1059] = new int[2];
EXPECTATIONS[1059][0] = 79;
EXPECTATIONS[1059][1] = 125;
EXPECTATIONS[1060] = new int[2];
EXPECTATIONS[1060][0] = 80;
EXPECTATIONS[1060][1] = 125;
EXPECTATIONS[1061] = new int[2];
EXPECTATIONS[1061][0] = 81;
EXPECTATIONS[1061][1] = 125;
EXPECTATIONS[1062] = new int[2];
EXPECTATIONS[1062][0] = 82;
EXPECTATIONS[1062][1] = 125;
EXPECTATIONS[1063] = new int[2];
EXPECTATIONS[1063][0] = 83;
EXPECTATIONS[1063][1] = 125;
EXPECTATIONS[1064] = new int[2];
EXPECTATIONS[1064][0] = 84;
EXPECTATIONS[1064][1] = 125;
EXPECTATIONS[1065] = new int[3];
EXPECTATIONS[1065][0] = 19;
EXPECTATIONS[1065][1] = 125;
EXPECTATIONS[1065][2] = 128;
EXPECTATIONS[1066] = new int[3];
EXPECTATIONS[1066][0] = 20;
EXPECTATIONS[1066][1] = 125;
EXPECTATIONS[1066][2] = 129;
EXPECTATIONS[1067] = new int[2];
EXPECTATIONS[1067][0] = 76;
EXPECTATIONS[1067][1] = 126;
EXPECTATIONS[1068] = new int[2];
EXPECTATIONS[1068][0] = 77;
EXPECTATIONS[1068][1] = 126;
EXPECTATIONS[1069] = new int[2];
EXPECTATIONS[1069][0] = 78;
EXPECTATIONS[1069][1] = 126;
EXPECTATIONS[1070] = new int[2];
EXPECTATIONS[1070][0] = 79;
EXPECTATIONS[1070][1] = 126;
EXPECTATIONS[1071] = new int[2];
EXPECTATIONS[1071][0] = 80;
EXPECTATIONS[1071][1] = 126;
EXPECTATIONS[1072] = new int[2];
EXPECTATIONS[1072][0] = 81;
EXPECTATIONS[1072][1] = 126;
EXPECTATIONS[1073] = new int[2];
EXPECTATIONS[1073][0] = 82;
EXPECTATIONS[1073][1] = 126;
EXPECTATIONS[1074] = new int[2];
EXPECTATIONS[1074][0] = 83;
EXPECTATIONS[1074][1] = 126;
EXPECTATIONS[1075] = new int[2];
EXPECTATIONS[1075][0] = 84;
EXPECTATIONS[1075][1] = 126;
EXPECTATIONS[1076] = new int[3];
EXPECTATIONS[1076][0] = 19;
EXPECTATIONS[1076][1] = 126;
EXPECTATIONS[1076][2] = 130;
EXPECTATIONS[1077] = new int[3];
EXPECTATIONS[1077][0] = 20;
EXPECTATIONS[1077][1] = 126;
EXPECTATIONS[1077][2] = 131;
EXPECTATIONS[1078] = new int[2];
EXPECTATIONS[1078][0] = 91;
EXPECTATIONS[1078][1] = 127;
EXPECTATIONS[1079] = new int[2];
EXPECTATIONS[1079][0] = 92;
EXPECTATIONS[1079][1] = 128;
EXPECTATIONS[1080] = new int[2];
EXPECTATIONS[1080][0] = 76;
EXPECTATIONS[1080][1] = 129;
EXPECTATIONS[1081] = new int[2];
EXPECTATIONS[1081][0] = 77;
EXPECTATIONS[1081][1] = 129;
EXPECTATIONS[1082] = new int[2];
EXPECTATIONS[1082][0] = 78;
EXPECTATIONS[1082][1] = 129;
EXPECTATIONS[1083] = new int[2];
EXPECTATIONS[1083][0] = 79;
EXPECTATIONS[1083][1] = 129;
EXPECTATIONS[1084] = new int[2];
EXPECTATIONS[1084][0] = 80;
EXPECTATIONS[1084][1] = 129;
EXPECTATIONS[1085] = new int[2];
EXPECTATIONS[1085][0] = 81;
EXPECTATIONS[1085][1] = 129;
EXPECTATIONS[1086] = new int[2];
EXPECTATIONS[1086][0] = 82;
EXPECTATIONS[1086][1] = 129;
EXPECTATIONS[1087] = new int[2];
EXPECTATIONS[1087][0] = 83;
EXPECTATIONS[1087][1] = 129;
EXPECTATIONS[1088] = new int[2];
EXPECTATIONS[1088][0] = 84;
EXPECTATIONS[1088][1] = 129;
EXPECTATIONS[1089] = new int[3];
EXPECTATIONS[1089][0] = 19;
EXPECTATIONS[1089][1] = 129;
EXPECTATIONS[1089][2] = 132;
EXPECTATIONS[1090] = new int[3];
EXPECTATIONS[1090][0] = 20;
EXPECTATIONS[1090][1] = 129;
EXPECTATIONS[1090][2] = 133;
EXPECTATIONS[1091] = new int[2];
EXPECTATIONS[1091][0] = 76;
EXPECTATIONS[1091][1] = 130;
EXPECTATIONS[1092] = new int[2];
EXPECTATIONS[1092][0] = 77;
EXPECTATIONS[1092][1] = 130;
EXPECTATIONS[1093] = new int[2];
EXPECTATIONS[1093][0] = 78;
EXPECTATIONS[1093][1] = 130;
EXPECTATIONS[1094] = new int[2];
EXPECTATIONS[1094][0] = 79;
EXPECTATIONS[1094][1] = 130;
EXPECTATIONS[1095] = new int[2];
EXPECTATIONS[1095][0] = 80;
EXPECTATIONS[1095][1] = 130;
EXPECTATIONS[1096] = new int[2];
EXPECTATIONS[1096][0] = 81;
EXPECTATIONS[1096][1] = 130;
EXPECTATIONS[1097] = new int[2];
EXPECTATIONS[1097][0] = 82;
EXPECTATIONS[1097][1] = 130;
EXPECTATIONS[1098] = new int[2];
EXPECTATIONS[1098][0] = 83;
EXPECTATIONS[1098][1] = 130;
EXPECTATIONS[1099] = new int[2];
EXPECTATIONS[1099][0] = 84;
EXPECTATIONS[1099][1] = 130;
EXPECTATIONS[1100] = new int[3];
EXPECTATIONS[1100][0] = 19;
EXPECTATIONS[1100][1] = 130;
EXPECTATIONS[1100][2] = 134;
EXPECTATIONS[1101] = new int[3];
EXPECTATIONS[1101][0] = 20;
EXPECTATIONS[1101][1] = 130;
EXPECTATIONS[1101][2] = 135;
EXPECTATIONS[1102] = new int[2];
EXPECTATIONS[1102][0] = 93;
EXPECTATIONS[1102][1] = 131;
EXPECTATIONS[1103] = new int[2];
EXPECTATIONS[1103][0] = 94;
EXPECTATIONS[1103][1] = 132;
EXPECTATIONS[1104] = new int[2];
EXPECTATIONS[1104][0] = 76;
EXPECTATIONS[1104][1] = 133;
EXPECTATIONS[1105] = new int[2];
EXPECTATIONS[1105][0] = 77;
EXPECTATIONS[1105][1] = 133;
EXPECTATIONS[1106] = new int[2];
EXPECTATIONS[1106][0] = 78;
EXPECTATIONS[1106][1] = 133;
EXPECTATIONS[1107] = new int[2];
EXPECTATIONS[1107][0] = 79;
EXPECTATIONS[1107][1] = 133;
EXPECTATIONS[1108] = new int[2];
EXPECTATIONS[1108][0] = 80;
EXPECTATIONS[1108][1] = 133;
EXPECTATIONS[1109] = new int[2];
EXPECTATIONS[1109][0] = 81;
EXPECTATIONS[1109][1] = 133;
EXPECTATIONS[1110] = new int[2];
EXPECTATIONS[1110][0] = 82;
EXPECTATIONS[1110][1] = 133;
EXPECTATIONS[1111] = new int[2];
EXPECTATIONS[1111][0] = 83;
EXPECTATIONS[1111][1] = 133;
EXPECTATIONS[1112] = new int[2];
EXPECTATIONS[1112][0] = 84;
EXPECTATIONS[1112][1] = 133;
EXPECTATIONS[1113] = new int[3];
EXPECTATIONS[1113][0] = 19;
EXPECTATIONS[1113][1] = 133;
EXPECTATIONS[1113][2] = 136;
EXPECTATIONS[1114] = new int[3];
EXPECTATIONS[1114][0] = 20;
EXPECTATIONS[1114][1] = 133;
EXPECTATIONS[1114][2] = 137;
EXPECTATIONS[1115] = new int[2];
EXPECTATIONS[1115][0] = 76;
EXPECTATIONS[1115][1] = 134;
EXPECTATIONS[1116] = new int[2];
EXPECTATIONS[1116][0] = 77;
EXPECTATIONS[1116][1] = 134;
EXPECTATIONS[1117] = new int[2];
EXPECTATIONS[1117][0] = 78;
EXPECTATIONS[1117][1] = 134;
EXPECTATIONS[1118] = new int[2];
EXPECTATIONS[1118][0] = 79;
EXPECTATIONS[1118][1] = 134;
EXPECTATIONS[1119] = new int[2];
EXPECTATIONS[1119][0] = 80;
EXPECTATIONS[1119][1] = 134;
EXPECTATIONS[1120] = new int[2];
EXPECTATIONS[1120][0] = 81;
EXPECTATIONS[1120][1] = 134;
EXPECTATIONS[1121] = new int[2];
EXPECTATIONS[1121][0] = 82;
EXPECTATIONS[1121][1] = 134;
EXPECTATIONS[1122] = new int[2];
EXPECTATIONS[1122][0] = 83;
EXPECTATIONS[1122][1] = 134;
EXPECTATIONS[1123] = new int[2];
EXPECTATIONS[1123][0] = 84;
EXPECTATIONS[1123][1] = 134;
EXPECTATIONS[1124] = new int[3];
EXPECTATIONS[1124][0] = 19;
EXPECTATIONS[1124][1] = 134;
EXPECTATIONS[1124][2] = 138;
EXPECTATIONS[1125] = new int[3];
EXPECTATIONS[1125][0] = 20;
EXPECTATIONS[1125][1] = 134;
EXPECTATIONS[1125][2] = 139;
EXPECTATIONS[1126] = new int[2];
EXPECTATIONS[1126][0] = 95;
EXPECTATIONS[1126][1] = 135;
EXPECTATIONS[1127] = new int[3];
EXPECTATIONS[1127][0] = 49;
EXPECTATIONS[1127][1] = 136;
EXPECTATIONS[1127][2] = 140;
EXPECTATIONS[1128] = new int[2];
EXPECTATIONS[1128][0] = 96;
EXPECTATIONS[1128][1] = 137;
EXPECTATIONS[1129] = new int[2];
EXPECTATIONS[1129][0] = 76;
EXPECTATIONS[1129][1] = 137;
EXPECTATIONS[1130] = new int[2];
EXPECTATIONS[1130][0] = 77;
EXPECTATIONS[1130][1] = 137;
EXPECTATIONS[1131] = new int[2];
EXPECTATIONS[1131][0] = 78;
EXPECTATIONS[1131][1] = 137;
EXPECTATIONS[1132] = new int[2];
EXPECTATIONS[1132][0] = 79;
EXPECTATIONS[1132][1] = 137;
EXPECTATIONS[1133] = new int[2];
EXPECTATIONS[1133][0] = 80;
EXPECTATIONS[1133][1] = 137;
EXPECTATIONS[1134] = new int[2];
EXPECTATIONS[1134][0] = 81;
EXPECTATIONS[1134][1] = 137;
EXPECTATIONS[1135] = new int[2];
EXPECTATIONS[1135][0] = 82;
EXPECTATIONS[1135][1] = 137;
EXPECTATIONS[1136] = new int[2];
EXPECTATIONS[1136][0] = 83;
EXPECTATIONS[1136][1] = 137;
EXPECTATIONS[1137] = new int[2];
EXPECTATIONS[1137][0] = 84;
EXPECTATIONS[1137][1] = 137;
EXPECTATIONS[1138] = new int[3];
EXPECTATIONS[1138][0] = 19;
EXPECTATIONS[1138][1] = 137;
EXPECTATIONS[1138][2] = 141;
EXPECTATIONS[1139] = new int[3];
EXPECTATIONS[1139][0] = 20;
EXPECTATIONS[1139][1] = 137;
EXPECTATIONS[1139][2] = 142;
EXPECTATIONS[1140] = new int[3];
EXPECTATIONS[1140][0] = 49;
EXPECTATIONS[1140][1] = 138;
EXPECTATIONS[1140][2] = 143;
EXPECTATIONS[1141] = new int[2];
EXPECTATIONS[1141][0] = 96;
EXPECTATIONS[1141][1] = 139;
EXPECTATIONS[1142] = new int[2];
EXPECTATIONS[1142][0] = 76;
EXPECTATIONS[1142][1] = 139;
EXPECTATIONS[1143] = new int[2];
EXPECTATIONS[1143][0] = 77;
EXPECTATIONS[1143][1] = 139;
EXPECTATIONS[1144] = new int[2];
EXPECTATIONS[1144][0] = 78;
EXPECTATIONS[1144][1] = 139;
EXPECTATIONS[1145] = new int[2];
EXPECTATIONS[1145][0] = 79;
EXPECTATIONS[1145][1] = 139;
EXPECTATIONS[1146] = new int[2];
EXPECTATIONS[1146][0] = 80;
EXPECTATIONS[1146][1] = 139;
EXPECTATIONS[1147] = new int[2];
EXPECTATIONS[1147][0] = 81;
EXPECTATIONS[1147][1] = 139;
EXPECTATIONS[1148] = new int[2];
EXPECTATIONS[1148][0] = 82;
EXPECTATIONS[1148][1] = 139;
EXPECTATIONS[1149] = new int[2];
EXPECTATIONS[1149][0] = 83;
EXPECTATIONS[1149][1] = 139;
EXPECTATIONS[1150] = new int[2];
EXPECTATIONS[1150][0] = 84;
EXPECTATIONS[1150][1] = 139;
EXPECTATIONS[1151] = new int[3];
EXPECTATIONS[1151][0] = 19;
EXPECTATIONS[1151][1] = 139;
EXPECTATIONS[1151][2] = 144;
EXPECTATIONS[1152] = new int[3];
EXPECTATIONS[1152][0] = 20;
EXPECTATIONS[1152][1] = 139;
EXPECTATIONS[1152][2] = 145;
EXPECTATIONS[1153] = new int[2];
EXPECTATIONS[1153][0] = 96;
EXPECTATIONS[1153][1] = 140;
EXPECTATIONS[1154] = new int[2];
EXPECTATIONS[1154][0] = 76;
EXPECTATIONS[1154][1] = 140;
EXPECTATIONS[1155] = new int[2];
EXPECTATIONS[1155][0] = 77;
EXPECTATIONS[1155][1] = 140;
EXPECTATIONS[1156] = new int[2];
EXPECTATIONS[1156][0] = 78;
EXPECTATIONS[1156][1] = 140;
EXPECTATIONS[1157] = new int[2];
EXPECTATIONS[1157][0] = 79;
EXPECTATIONS[1157][1] = 140;
EXPECTATIONS[1158] = new int[2];
EXPECTATIONS[1158][0] = 80;
EXPECTATIONS[1158][1] = 140;
EXPECTATIONS[1159] = new int[2];
EXPECTATIONS[1159][0] = 81;
EXPECTATIONS[1159][1] = 140;
EXPECTATIONS[1160] = new int[2];
EXPECTATIONS[1160][0] = 82;
EXPECTATIONS[1160][1] = 140;
EXPECTATIONS[1161] = new int[2];
EXPECTATIONS[1161][0] = 83;
EXPECTATIONS[1161][1] = 140;
EXPECTATIONS[1162] = new int[2];
EXPECTATIONS[1162][0] = 84;
EXPECTATIONS[1162][1] = 140;
EXPECTATIONS[1163] = new int[3];
EXPECTATIONS[1163][0] = 19;
EXPECTATIONS[1163][1] = 140;
EXPECTATIONS[1163][2] = 146;
EXPECTATIONS[1164] = new int[3];
EXPECTATIONS[1164][0] = 20;
EXPECTATIONS[1164][1] = 140;
EXPECTATIONS[1164][2] = 147;
EXPECTATIONS[1165] = new int[2];
EXPECTATIONS[1165][0] = 76;
EXPECTATIONS[1165][1] = 141;
EXPECTATIONS[1166] = new int[2];
EXPECTATIONS[1166][0] = 77;
EXPECTATIONS[1166][1] = 141;
EXPECTATIONS[1167] = new int[2];
EXPECTATIONS[1167][0] = 78;
EXPECTATIONS[1167][1] = 141;
EXPECTATIONS[1168] = new int[2];
EXPECTATIONS[1168][0] = 79;
EXPECTATIONS[1168][1] = 141;
EXPECTATIONS[1169] = new int[2];
EXPECTATIONS[1169][0] = 80;
EXPECTATIONS[1169][1] = 141;
EXPECTATIONS[1170] = new int[2];
EXPECTATIONS[1170][0] = 81;
EXPECTATIONS[1170][1] = 141;
EXPECTATIONS[1171] = new int[2];
EXPECTATIONS[1171][0] = 82;
EXPECTATIONS[1171][1] = 141;
EXPECTATIONS[1172] = new int[2];
EXPECTATIONS[1172][0] = 83;
EXPECTATIONS[1172][1] = 141;
EXPECTATIONS[1173] = new int[2];
EXPECTATIONS[1173][0] = 84;
EXPECTATIONS[1173][1] = 141;
EXPECTATIONS[1174] = new int[3];
EXPECTATIONS[1174][0] = 19;
EXPECTATIONS[1174][1] = 141;
EXPECTATIONS[1174][2] = 148;
EXPECTATIONS[1175] = new int[3];
EXPECTATIONS[1175][0] = 20;
EXPECTATIONS[1175][1] = 141;
EXPECTATIONS[1175][2] = 149;
EXPECTATIONS[1176] = new int[2];
EXPECTATIONS[1176][0] = 97;
EXPECTATIONS[1176][1] = 142;
EXPECTATIONS[1177] = new int[3];
EXPECTATIONS[1177][0] = 49;
EXPECTATIONS[1177][1] = 143;
EXPECTATIONS[1177][2] = 150;
EXPECTATIONS[1178] = new int[2];
EXPECTATIONS[1178][0] = 98;
EXPECTATIONS[1178][1] = 144;
EXPECTATIONS[1179] = new int[2];
EXPECTATIONS[1179][0] = 76;
EXPECTATIONS[1179][1] = 144;
EXPECTATIONS[1180] = new int[2];
EXPECTATIONS[1180][0] = 77;
EXPECTATIONS[1180][1] = 144;
EXPECTATIONS[1181] = new int[2];
EXPECTATIONS[1181][0] = 78;
EXPECTATIONS[1181][1] = 144;
EXPECTATIONS[1182] = new int[2];
EXPECTATIONS[1182][0] = 79;
EXPECTATIONS[1182][1] = 144;
EXPECTATIONS[1183] = new int[2];
EXPECTATIONS[1183][0] = 80;
EXPECTATIONS[1183][1] = 144;
EXPECTATIONS[1184] = new int[2];
EXPECTATIONS[1184][0] = 81;
EXPECTATIONS[1184][1] = 144;
EXPECTATIONS[1185] = new int[2];
EXPECTATIONS[1185][0] = 82;
EXPECTATIONS[1185][1] = 144;
EXPECTATIONS[1186] = new int[2];
EXPECTATIONS[1186][0] = 83;
EXPECTATIONS[1186][1] = 144;
EXPECTATIONS[1187] = new int[2];
EXPECTATIONS[1187][0] = 84;
EXPECTATIONS[1187][1] = 144;
EXPECTATIONS[1188] = new int[3];
EXPECTATIONS[1188][0] = 19;
EXPECTATIONS[1188][1] = 144;
EXPECTATIONS[1188][2] = 151;
EXPECTATIONS[1189] = new int[3];
EXPECTATIONS[1189][0] = 20;
EXPECTATIONS[1189][1] = 144;
EXPECTATIONS[1189][2] = 152;
EXPECTATIONS[1190] = new int[3];
EXPECTATIONS[1190][0] = 49;
EXPECTATIONS[1190][1] = 145;
EXPECTATIONS[1190][2] = 153;
EXPECTATIONS[1191] = new int[2];
EXPECTATIONS[1191][0] = 98;
EXPECTATIONS[1191][1] = 146;
EXPECTATIONS[1192] = new int[2];
EXPECTATIONS[1192][0] = 76;
EXPECTATIONS[1192][1] = 146;
EXPECTATIONS[1193] = new int[2];
EXPECTATIONS[1193][0] = 77;
EXPECTATIONS[1193][1] = 146;
EXPECTATIONS[1194] = new int[2];
EXPECTATIONS[1194][0] = 78;
EXPECTATIONS[1194][1] = 146;
EXPECTATIONS[1195] = new int[2];
EXPECTATIONS[1195][0] = 79;
EXPECTATIONS[1195][1] = 146;
EXPECTATIONS[1196] = new int[2];
EXPECTATIONS[1196][0] = 80;
EXPECTATIONS[1196][1] = 146;
EXPECTATIONS[1197] = new int[2];
EXPECTATIONS[1197][0] = 81;
EXPECTATIONS[1197][1] = 146;
EXPECTATIONS[1198] = new int[2];
EXPECTATIONS[1198][0] = 82;
EXPECTATIONS[1198][1] = 146;
EXPECTATIONS[1199] = new int[2];
EXPECTATIONS[1199][0] = 83;
EXPECTATIONS[1199][1] = 146;
EXPECTATIONS[1200] = new int[2];
EXPECTATIONS[1200][0] = 84;
EXPECTATIONS[1200][1] = 146;
EXPECTATIONS[1201] = new int[3];
EXPECTATIONS[1201][0] = 19;
EXPECTATIONS[1201][1] = 146;
EXPECTATIONS[1201][2] = 154;
EXPECTATIONS[1202] = new int[3];
EXPECTATIONS[1202][0] = 20;
EXPECTATIONS[1202][1] = 146;
EXPECTATIONS[1202][2] = 155;
EXPECTATIONS[1203] = new int[2];
EXPECTATIONS[1203][0] = 98;
EXPECTATIONS[1203][1] = 147;
EXPECTATIONS[1204] = new int[2];
EXPECTATIONS[1204][0] = 76;
EXPECTATIONS[1204][1] = 147;
EXPECTATIONS[1205] = new int[2];
EXPECTATIONS[1205][0] = 77;
EXPECTATIONS[1205][1] = 147;
EXPECTATIONS[1206] = new int[2];
EXPECTATIONS[1206][0] = 78;
EXPECTATIONS[1206][1] = 147;
EXPECTATIONS[1207] = new int[2];
EXPECTATIONS[1207][0] = 79;
EXPECTATIONS[1207][1] = 147;
EXPECTATIONS[1208] = new int[2];
EXPECTATIONS[1208][0] = 80;
EXPECTATIONS[1208][1] = 147;
EXPECTATIONS[1209] = new int[2];
EXPECTATIONS[1209][0] = 81;
EXPECTATIONS[1209][1] = 147;
EXPECTATIONS[1210] = new int[2];
EXPECTATIONS[1210][0] = 82;
EXPECTATIONS[1210][1] = 147;
EXPECTATIONS[1211] = new int[2];
EXPECTATIONS[1211][0] = 83;
EXPECTATIONS[1211][1] = 147;
EXPECTATIONS[1212] = new int[2];
EXPECTATIONS[1212][0] = 84;
EXPECTATIONS[1212][1] = 147;
EXPECTATIONS[1213] = new int[3];
EXPECTATIONS[1213][0] = 19;
EXPECTATIONS[1213][1] = 147;
EXPECTATIONS[1213][2] = 156;
EXPECTATIONS[1214] = new int[3];
EXPECTATIONS[1214][0] = 20;
EXPECTATIONS[1214][1] = 147;
EXPECTATIONS[1214][2] = 157;
EXPECTATIONS[1215] = new int[2];
EXPECTATIONS[1215][0] = 76;
EXPECTATIONS[1215][1] = 148;
EXPECTATIONS[1216] = new int[2];
EXPECTATIONS[1216][0] = 77;
EXPECTATIONS[1216][1] = 148;
EXPECTATIONS[1217] = new int[2];
EXPECTATIONS[1217][0] = 78;
EXPECTATIONS[1217][1] = 148;
EXPECTATIONS[1218] = new int[2];
EXPECTATIONS[1218][0] = 79;
EXPECTATIONS[1218][1] = 148;
EXPECTATIONS[1219] = new int[2];
EXPECTATIONS[1219][0] = 80;
EXPECTATIONS[1219][1] = 148;
EXPECTATIONS[1220] = new int[2];
EXPECTATIONS[1220][0] = 81;
EXPECTATIONS[1220][1] = 148;
EXPECTATIONS[1221] = new int[2];
EXPECTATIONS[1221][0] = 82;
EXPECTATIONS[1221][1] = 148;
EXPECTATIONS[1222] = new int[2];
EXPECTATIONS[1222][0] = 83;
EXPECTATIONS[1222][1] = 148;
EXPECTATIONS[1223] = new int[2];
EXPECTATIONS[1223][0] = 84;
EXPECTATIONS[1223][1] = 148;
EXPECTATIONS[1224] = new int[3];
EXPECTATIONS[1224][0] = 19;
EXPECTATIONS[1224][1] = 148;
EXPECTATIONS[1224][2] = 158;
EXPECTATIONS[1225] = new int[3];
EXPECTATIONS[1225][0] = 20;
EXPECTATIONS[1225][1] = 148;
EXPECTATIONS[1225][2] = 159;
EXPECTATIONS[1226] = new int[2];
EXPECTATIONS[1226][0] = 99;
EXPECTATIONS[1226][1] = 149;
EXPECTATIONS[1227] = new int[3];
EXPECTATIONS[1227][0] = 49;
EXPECTATIONS[1227][1] = 150;
EXPECTATIONS[1227][2] = 160;
EXPECTATIONS[1228] = new int[2];
EXPECTATIONS[1228][0] = 100;
EXPECTATIONS[1228][1] = 151;
EXPECTATIONS[1229] = new int[2];
EXPECTATIONS[1229][0] = 76;
EXPECTATIONS[1229][1] = 151;
EXPECTATIONS[1230] = new int[2];
EXPECTATIONS[1230][0] = 77;
EXPECTATIONS[1230][1] = 151;
EXPECTATIONS[1231] = new int[2];
EXPECTATIONS[1231][0] = 78;
EXPECTATIONS[1231][1] = 151;
EXPECTATIONS[1232] = new int[2];
EXPECTATIONS[1232][0] = 79;
EXPECTATIONS[1232][1] = 151;
EXPECTATIONS[1233] = new int[2];
EXPECTATIONS[1233][0] = 80;
EXPECTATIONS[1233][1] = 151;
EXPECTATIONS[1234] = new int[2];
EXPECTATIONS[1234][0] = 81;
EXPECTATIONS[1234][1] = 151;
EXPECTATIONS[1235] = new int[2];
EXPECTATIONS[1235][0] = 82;
EXPECTATIONS[1235][1] = 151;
EXPECTATIONS[1236] = new int[2];
EXPECTATIONS[1236][0] = 83;
EXPECTATIONS[1236][1] = 151;
EXPECTATIONS[1237] = new int[2];
EXPECTATIONS[1237][0] = 84;
EXPECTATIONS[1237][1] = 151;
EXPECTATIONS[1238] = new int[3];
EXPECTATIONS[1238][0] = 19;
EXPECTATIONS[1238][1] = 151;
EXPECTATIONS[1238][2] = 161;
EXPECTATIONS[1239] = new int[3];
EXPECTATIONS[1239][0] = 20;
EXPECTATIONS[1239][1] = 151;
EXPECTATIONS[1239][2] = 162;
EXPECTATIONS[1240] = new int[3];
EXPECTATIONS[1240][0] = 49;
EXPECTATIONS[1240][1] = 152;
EXPECTATIONS[1240][2] = 163;
EXPECTATIONS[1241] = new int[2];
EXPECTATIONS[1241][0] = 100;
EXPECTATIONS[1241][1] = 153;
EXPECTATIONS[1242] = new int[2];
EXPECTATIONS[1242][0] = 76;
EXPECTATIONS[1242][1] = 153;
EXPECTATIONS[1243] = new int[2];
EXPECTATIONS[1243][0] = 77;
EXPECTATIONS[1243][1] = 153;
EXPECTATIONS[1244] = new int[2];
EXPECTATIONS[1244][0] = 78;
EXPECTATIONS[1244][1] = 153;
EXPECTATIONS[1245] = new int[2];
EXPECTATIONS[1245][0] = 79;
EXPECTATIONS[1245][1] = 153;
EXPECTATIONS[1246] = new int[2];
EXPECTATIONS[1246][0] = 80;
EXPECTATIONS[1246][1] = 153;
EXPECTATIONS[1247] = new int[2];
EXPECTATIONS[1247][0] = 81;
EXPECTATIONS[1247][1] = 153;
EXPECTATIONS[1248] = new int[2];
EXPECTATIONS[1248][0] = 82;
EXPECTATIONS[1248][1] = 153;
EXPECTATIONS[1249] = new int[2];
EXPECTATIONS[1249][0] = 83;
EXPECTATIONS[1249][1] = 153;
EXPECTATIONS[1250] = new int[2];
EXPECTATIONS[1250][0] = 84;
EXPECTATIONS[1250][1] = 153;
EXPECTATIONS[1251] = new int[3];
EXPECTATIONS[1251][0] = 19;
EXPECTATIONS[1251][1] = 153;
EXPECTATIONS[1251][2] = 164;
EXPECTATIONS[1252] = new int[3];
EXPECTATIONS[1252][0] = 20;
EXPECTATIONS[1252][1] = 153;
EXPECTATIONS[1252][2] = 165;
EXPECTATIONS[1253] = new int[2];
EXPECTATIONS[1253][0] = 100;
EXPECTATIONS[1253][1] = 154;
EXPECTATIONS[1254] = new int[2];
EXPECTATIONS[1254][0] = 76;
EXPECTATIONS[1254][1] = 154;
EXPECTATIONS[1255] = new int[2];
EXPECTATIONS[1255][0] = 77;
EXPECTATIONS[1255][1] = 154;
EXPECTATIONS[1256] = new int[2];
EXPECTATIONS[1256][0] = 78;
EXPECTATIONS[1256][1] = 154;
EXPECTATIONS[1257] = new int[2];
EXPECTATIONS[1257][0] = 79;
EXPECTATIONS[1257][1] = 154;
EXPECTATIONS[1258] = new int[2];
EXPECTATIONS[1258][0] = 80;
EXPECTATIONS[1258][1] = 154;
EXPECTATIONS[1259] = new int[2];
EXPECTATIONS[1259][0] = 81;
EXPECTATIONS[1259][1] = 154;
EXPECTATIONS[1260] = new int[2];
EXPECTATIONS[1260][0] = 82;
EXPECTATIONS[1260][1] = 154;
EXPECTATIONS[1261] = new int[2];
EXPECTATIONS[1261][0] = 83;
EXPECTATIONS[1261][1] = 154;
EXPECTATIONS[1262] = new int[2];
EXPECTATIONS[1262][0] = 84;
EXPECTATIONS[1262][1] = 154;
EXPECTATIONS[1263] = new int[3];
EXPECTATIONS[1263][0] = 19;
EXPECTATIONS[1263][1] = 154;
EXPECTATIONS[1263][2] = 166;
EXPECTATIONS[1264] = new int[3];
EXPECTATIONS[1264][0] = 20;
EXPECTATIONS[1264][1] = 154;
EXPECTATIONS[1264][2] = 167;
EXPECTATIONS[1265] = new int[2];
EXPECTATIONS[1265][0] = 76;
EXPECTATIONS[1265][1] = 155;
EXPECTATIONS[1266] = new int[2];
EXPECTATIONS[1266][0] = 77;
EXPECTATIONS[1266][1] = 155;
EXPECTATIONS[1267] = new int[2];
EXPECTATIONS[1267][0] = 78;
EXPECTATIONS[1267][1] = 155;
EXPECTATIONS[1268] = new int[2];
EXPECTATIONS[1268][0] = 79;
EXPECTATIONS[1268][1] = 155;
EXPECTATIONS[1269] = new int[2];
EXPECTATIONS[1269][0] = 80;
EXPECTATIONS[1269][1] = 155;
EXPECTATIONS[1270] = new int[2];
EXPECTATIONS[1270][0] = 81;
EXPECTATIONS[1270][1] = 155;
EXPECTATIONS[1271] = new int[2];
EXPECTATIONS[1271][0] = 82;
EXPECTATIONS[1271][1] = 155;
EXPECTATIONS[1272] = new int[2];
EXPECTATIONS[1272][0] = 83;
EXPECTATIONS[1272][1] = 155;
EXPECTATIONS[1273] = new int[2];
EXPECTATIONS[1273][0] = 84;
EXPECTATIONS[1273][1] = 155;
EXPECTATIONS[1274] = new int[3];
EXPECTATIONS[1274][0] = 19;
EXPECTATIONS[1274][1] = 155;
EXPECTATIONS[1274][2] = 168;
EXPECTATIONS[1275] = new int[3];
EXPECTATIONS[1275][0] = 20;
EXPECTATIONS[1275][1] = 155;
EXPECTATIONS[1275][2] = 169;
EXPECTATIONS[1276] = new int[2];
EXPECTATIONS[1276][0] = 101;
EXPECTATIONS[1276][1] = 156;
EXPECTATIONS[1277] = new int[3];
EXPECTATIONS[1277][0] = 49;
EXPECTATIONS[1277][1] = 157;
EXPECTATIONS[1277][2] = 170;
EXPECTATIONS[1278] = new int[2];
EXPECTATIONS[1278][0] = 102;
EXPECTATIONS[1278][1] = 158;
EXPECTATIONS[1279] = new int[2];
EXPECTATIONS[1279][0] = 76;
EXPECTATIONS[1279][1] = 158;
EXPECTATIONS[1280] = new int[2];
EXPECTATIONS[1280][0] = 77;
EXPECTATIONS[1280][1] = 158;
EXPECTATIONS[1281] = new int[2];
EXPECTATIONS[1281][0] = 78;
EXPECTATIONS[1281][1] = 158;
EXPECTATIONS[1282] = new int[2];
EXPECTATIONS[1282][0] = 79;
EXPECTATIONS[1282][1] = 158;
EXPECTATIONS[1283] = new int[2];
EXPECTATIONS[1283][0] = 80;
EXPECTATIONS[1283][1] = 158;
EXPECTATIONS[1284] = new int[2];
EXPECTATIONS[1284][0] = 81;
EXPECTATIONS[1284][1] = 158;
EXPECTATIONS[1285] = new int[2];
EXPECTATIONS[1285][0] = 82;
EXPECTATIONS[1285][1] = 158;
EXPECTATIONS[1286] = new int[2];
EXPECTATIONS[1286][0] = 83;
EXPECTATIONS[1286][1] = 158;
EXPECTATIONS[1287] = new int[2];
EXPECTATIONS[1287][0] = 84;
EXPECTATIONS[1287][1] = 158;
EXPECTATIONS[1288] = new int[3];
EXPECTATIONS[1288][0] = 19;
EXPECTATIONS[1288][1] = 158;
EXPECTATIONS[1288][2] = 171;
EXPECTATIONS[1289] = new int[3];
EXPECTATIONS[1289][0] = 20;
EXPECTATIONS[1289][1] = 158;
EXPECTATIONS[1289][2] = 172;
EXPECTATIONS[1290] = new int[3];
EXPECTATIONS[1290][0] = 49;
EXPECTATIONS[1290][1] = 159;
EXPECTATIONS[1290][2] = 173;
EXPECTATIONS[1291] = new int[2];
EXPECTATIONS[1291][0] = 102;
EXPECTATIONS[1291][1] = 160;
EXPECTATIONS[1292] = new int[2];
EXPECTATIONS[1292][0] = 76;
EXPECTATIONS[1292][1] = 160;
EXPECTATIONS[1293] = new int[2];
EXPECTATIONS[1293][0] = 77;
EXPECTATIONS[1293][1] = 160;
EXPECTATIONS[1294] = new int[2];
EXPECTATIONS[1294][0] = 78;
EXPECTATIONS[1294][1] = 160;
EXPECTATIONS[1295] = new int[2];
EXPECTATIONS[1295][0] = 79;
EXPECTATIONS[1295][1] = 160;
EXPECTATIONS[1296] = new int[2];
EXPECTATIONS[1296][0] = 80;
EXPECTATIONS[1296][1] = 160;
EXPECTATIONS[1297] = new int[2];
EXPECTATIONS[1297][0] = 81;
EXPECTATIONS[1297][1] = 160;
EXPECTATIONS[1298] = new int[2];
EXPECTATIONS[1298][0] = 82;
EXPECTATIONS[1298][1] = 160;
EXPECTATIONS[1299] = new int[2];
EXPECTATIONS[1299][0] = 83;
EXPECTATIONS[1299][1] = 160;
EXPECTATIONS[1300] = new int[2];
EXPECTATIONS[1300][0] = 84;
EXPECTATIONS[1300][1] = 160;
EXPECTATIONS[1301] = new int[3];
EXPECTATIONS[1301][0] = 19;
EXPECTATIONS[1301][1] = 160;
EXPECTATIONS[1301][2] = 174;
EXPECTATIONS[1302] = new int[3];
EXPECTATIONS[1302][0] = 20;
EXPECTATIONS[1302][1] = 160;
EXPECTATIONS[1302][2] = 175;
EXPECTATIONS[1303] = new int[2];
EXPECTATIONS[1303][0] = 102;
EXPECTATIONS[1303][1] = 161;
EXPECTATIONS[1304] = new int[2];
EXPECTATIONS[1304][0] = 76;
EXPECTATIONS[1304][1] = 161;
EXPECTATIONS[1305] = new int[2];
EXPECTATIONS[1305][0] = 77;
EXPECTATIONS[1305][1] = 161;
EXPECTATIONS[1306] = new int[2];
EXPECTATIONS[1306][0] = 78;
EXPECTATIONS[1306][1] = 161;
EXPECTATIONS[1307] = new int[2];
EXPECTATIONS[1307][0] = 79;
EXPECTATIONS[1307][1] = 161;
EXPECTATIONS[1308] = new int[2];
EXPECTATIONS[1308][0] = 80;
EXPECTATIONS[1308][1] = 161;
EXPECTATIONS[1309] = new int[2];
EXPECTATIONS[1309][0] = 81;
EXPECTATIONS[1309][1] = 161;
EXPECTATIONS[1310] = new int[2];
EXPECTATIONS[1310][0] = 82;
EXPECTATIONS[1310][1] = 161;
EXPECTATIONS[1311] = new int[2];
EXPECTATIONS[1311][0] = 83;
EXPECTATIONS[1311][1] = 161;
EXPECTATIONS[1312] = new int[2];
EXPECTATIONS[1312][0] = 84;
EXPECTATIONS[1312][1] = 161;
EXPECTATIONS[1313] = new int[3];
EXPECTATIONS[1313][0] = 19;
EXPECTATIONS[1313][1] = 161;
EXPECTATIONS[1313][2] = 176;
EXPECTATIONS[1314] = new int[3];
EXPECTATIONS[1314][0] = 20;
EXPECTATIONS[1314][1] = 161;
EXPECTATIONS[1314][2] = 177;
EXPECTATIONS[1315] = new int[2];
EXPECTATIONS[1315][0] = 76;
EXPECTATIONS[1315][1] = 162;
EXPECTATIONS[1316] = new int[2];
EXPECTATIONS[1316][0] = 77;
EXPECTATIONS[1316][1] = 162;
EXPECTATIONS[1317] = new int[2];
EXPECTATIONS[1317][0] = 78;
EXPECTATIONS[1317][1] = 162;
EXPECTATIONS[1318] = new int[2];
EXPECTATIONS[1318][0] = 79;
EXPECTATIONS[1318][1] = 162;
EXPECTATIONS[1319] = new int[2];
EXPECTATIONS[1319][0] = 80;
EXPECTATIONS[1319][1] = 162;
EXPECTATIONS[1320] = new int[2];
EXPECTATIONS[1320][0] = 81;
EXPECTATIONS[1320][1] = 162;
EXPECTATIONS[1321] = new int[2];
EXPECTATIONS[1321][0] = 82;
EXPECTATIONS[1321][1] = 162;
EXPECTATIONS[1322] = new int[2];
EXPECTATIONS[1322][0] = 83;
EXPECTATIONS[1322][1] = 162;
EXPECTATIONS[1323] = new int[2];
EXPECTATIONS[1323][0] = 84;
EXPECTATIONS[1323][1] = 162;
EXPECTATIONS[1324] = new int[3];
EXPECTATIONS[1324][0] = 19;
EXPECTATIONS[1324][1] = 162;
EXPECTATIONS[1324][2] = 178;
EXPECTATIONS[1325] = new int[3];
EXPECTATIONS[1325][0] = 20;
EXPECTATIONS[1325][1] = 162;
EXPECTATIONS[1325][2] = 179;
EXPECTATIONS[1326] = new int[2];
EXPECTATIONS[1326][0] = 76;
EXPECTATIONS[1326][1] = 163;
EXPECTATIONS[1327] = new int[2];
EXPECTATIONS[1327][0] = 77;
EXPECTATIONS[1327][1] = 163;
EXPECTATIONS[1328] = new int[2];
EXPECTATIONS[1328][0] = 78;
EXPECTATIONS[1328][1] = 163;
EXPECTATIONS[1329] = new int[2];
EXPECTATIONS[1329][0] = 79;
EXPECTATIONS[1329][1] = 163;
EXPECTATIONS[1330] = new int[2];
EXPECTATIONS[1330][0] = 80;
EXPECTATIONS[1330][1] = 163;
EXPECTATIONS[1331] = new int[2];
EXPECTATIONS[1331][0] = 81;
EXPECTATIONS[1331][1] = 163;
EXPECTATIONS[1332] = new int[2];
EXPECTATIONS[1332][0] = 82;
EXPECTATIONS[1332][1] = 163;
EXPECTATIONS[1333] = new int[2];
EXPECTATIONS[1333][0] = 83;
EXPECTATIONS[1333][1] = 163;
EXPECTATIONS[1334] = new int[2];
EXPECTATIONS[1334][0] = 84;
EXPECTATIONS[1334][1] = 163;
EXPECTATIONS[1335] = new int[3];
EXPECTATIONS[1335][0] = 19;
EXPECTATIONS[1335][1] = 163;
EXPECTATIONS[1335][2] = 180;
EXPECTATIONS[1336] = new int[3];
EXPECTATIONS[1336][0] = 20;
EXPECTATIONS[1336][1] = 163;
EXPECTATIONS[1336][2] = 181;
EXPECTATIONS[1337] = new int[2];
EXPECTATIONS[1337][0] = 103;
EXPECTATIONS[1337][1] = 164;
EXPECTATIONS[1338] = new int[3];
EXPECTATIONS[1338][0] = 104;
EXPECTATIONS[1338][1] = 164;
EXPECTATIONS[1338][2] = 182;
EXPECTATIONS[1339] = new int[3];
EXPECTATIONS[1339][0] = 105;
EXPECTATIONS[1339][1] = 164;
EXPECTATIONS[1339][2] = 183;
EXPECTATIONS[1340] = new int[2];
EXPECTATIONS[1340][0] = 106;
EXPECTATIONS[1340][1] = 165;
EXPECTATIONS[1341] = new int[2];
EXPECTATIONS[1341][0] = 107;
EXPECTATIONS[1341][1] = 166;
EXPECTATIONS[1342] = new int[3];
EXPECTATIONS[1342][0] = 104;
EXPECTATIONS[1342][1] = 167;
EXPECTATIONS[1342][2] = 184;
EXPECTATIONS[1343] = new int[3];
EXPECTATIONS[1343][0] = 105;
EXPECTATIONS[1343][1] = 167;
EXPECTATIONS[1343][2] = 185;
EXPECTATIONS[1344] = new int[3];
EXPECTATIONS[1344][0] = 104;
EXPECTATIONS[1344][1] = 168;
EXPECTATIONS[1344][2] = 186;
EXPECTATIONS[1345] = new int[3];
EXPECTATIONS[1345][0] = 105;
EXPECTATIONS[1345][1] = 168;
EXPECTATIONS[1345][2] = 187;
EXPECTATIONS[1346] = new int[3];
EXPECTATIONS[1346][0] = 104;
EXPECTATIONS[1346][1] = 169;
EXPECTATIONS[1346][2] = 188;
EXPECTATIONS[1347] = new int[3];
EXPECTATIONS[1347][0] = 105;
EXPECTATIONS[1347][1] = 169;
EXPECTATIONS[1347][2] = 189;
EXPECTATIONS[1348] = new int[3];
EXPECTATIONS[1348][0] = 19;
EXPECTATIONS[1348][1] = 169;
EXPECTATIONS[1348][2] = 190;
EXPECTATIONS[1349] = new int[3];
EXPECTATIONS[1349][0] = 20;
EXPECTATIONS[1349][1] = 169;
EXPECTATIONS[1349][2] = 191;
EXPECTATIONS[1350] = new int[2];
EXPECTATIONS[1350][0] = 108;
EXPECTATIONS[1350][1] = 170;
EXPECTATIONS[1351] = new int[2];
EXPECTATIONS[1351][0] = 109;
EXPECTATIONS[1351][1] = 171;
EXPECTATIONS[1352] = new int[3];
EXPECTATIONS[1352][0] = 49;
EXPECTATIONS[1352][1] = 172;
EXPECTATIONS[1352][2] = 192;
EXPECTATIONS[1353] = new int[2];
EXPECTATIONS[1353][0] = 110;
EXPECTATIONS[1353][1] = 173;
EXPECTATIONS[1354] = new int[4];
EXPECTATIONS[1354][0] = 49;
EXPECTATIONS[1354][1] = 173;
EXPECTATIONS[1354][2] = 193;
EXPECTATIONS[1354][3] = 194;
EXPECTATIONS[1355] = new int[3];
EXPECTATIONS[1355][0] = 111;
EXPECTATIONS[1355][1] = 173;
EXPECTATIONS[1355][2] = 195;
EXPECTATIONS[1356] = new int[4];
EXPECTATIONS[1356][0] = 18;
EXPECTATIONS[1356][1] = 173;
EXPECTATIONS[1356][2] = 196;
EXPECTATIONS[1356][3] = 197;
EXPECTATIONS[1357] = new int[3];
EXPECTATIONS[1357][0] = 49;
EXPECTATIONS[1357][1] = 174;
EXPECTATIONS[1357][2] = 198;
EXPECTATIONS[1358] = new int[2];
EXPECTATIONS[1358][0] = 110;
EXPECTATIONS[1358][1] = 175;
EXPECTATIONS[1359] = new int[4];
EXPECTATIONS[1359][0] = 49;
EXPECTATIONS[1359][1] = 175;
EXPECTATIONS[1359][2] = 199;
EXPECTATIONS[1359][3] = 200;
EXPECTATIONS[1360] = new int[3];
EXPECTATIONS[1360][0] = 111;
EXPECTATIONS[1360][1] = 175;
EXPECTATIONS[1360][2] = 201;
EXPECTATIONS[1361] = new int[4];
EXPECTATIONS[1361][0] = 18;
EXPECTATIONS[1361][1] = 175;
EXPECTATIONS[1361][2] = 202;
EXPECTATIONS[1361][3] = 203;
EXPECTATIONS[1362] = new int[2];
EXPECTATIONS[1362][0] = 110;
EXPECTATIONS[1362][1] = 176;
EXPECTATIONS[1363] = new int[4];
EXPECTATIONS[1363][0] = 49;
EXPECTATIONS[1363][1] = 176;
EXPECTATIONS[1363][2] = 204;
EXPECTATIONS[1363][3] = 205;
EXPECTATIONS[1364] = new int[3];
EXPECTATIONS[1364][0] = 111;
EXPECTATIONS[1364][1] = 176;
EXPECTATIONS[1364][2] = 206;
EXPECTATIONS[1365] = new int[4];
EXPECTATIONS[1365][0] = 18;
EXPECTATIONS[1365][1] = 176;
EXPECTATIONS[1365][2] = 207;
EXPECTATIONS[1365][3] = 208;
EXPECTATIONS[1366] = new int[4];
EXPECTATIONS[1366][0] = 49;
EXPECTATIONS[1366][1] = 177;
EXPECTATIONS[1366][2] = 209;
EXPECTATIONS[1366][3] = 210;
EXPECTATIONS[1367] = new int[3];
EXPECTATIONS[1367][0] = 111;
EXPECTATIONS[1367][1] = 177;
EXPECTATIONS[1367][2] = 211;
EXPECTATIONS[1368] = new int[4];
EXPECTATIONS[1368][0] = 18;
EXPECTATIONS[1368][1] = 177;
EXPECTATIONS[1368][2] = 212;
EXPECTATIONS[1368][3] = 213;
EXPECTATIONS[1369] = new int[3];
EXPECTATIONS[1369][0] = 104;
EXPECTATIONS[1369][1] = 177;
EXPECTATIONS[1369][2] = 214;
EXPECTATIONS[1370] = new int[3];
EXPECTATIONS[1370][0] = 105;
EXPECTATIONS[1370][1] = 177;
EXPECTATIONS[1370][2] = 215;
EXPECTATIONS[1371] = new int[3];
EXPECTATIONS[1371][0] = 19;
EXPECTATIONS[1371][1] = 177;
EXPECTATIONS[1371][2] = 216;
EXPECTATIONS[1372] = new int[3];
EXPECTATIONS[1372][0] = 20;
EXPECTATIONS[1372][1] = 177;
EXPECTATIONS[1372][2] = 217;
EXPECTATIONS[1373] = new int[4];
EXPECTATIONS[1373][0] = 49;
EXPECTATIONS[1373][1] = 178;
EXPECTATIONS[1373][2] = 218;
EXPECTATIONS[1373][3] = 219;
EXPECTATIONS[1374] = new int[3];
EXPECTATIONS[1374][0] = 111;
EXPECTATIONS[1374][1] = 178;
EXPECTATIONS[1374][2] = 220;
EXPECTATIONS[1375] = new int[4];
EXPECTATIONS[1375][0] = 18;
EXPECTATIONS[1375][1] = 178;
EXPECTATIONS[1375][2] = 221;
EXPECTATIONS[1375][3] = 222;
EXPECTATIONS[1376] = new int[3];
EXPECTATIONS[1376][0] = 104;
EXPECTATIONS[1376][1] = 178;
EXPECTATIONS[1376][2] = 223;
EXPECTATIONS[1377] = new int[3];
EXPECTATIONS[1377][0] = 105;
EXPECTATIONS[1377][1] = 178;
EXPECTATIONS[1377][2] = 224;
EXPECTATIONS[1378] = new int[3];
EXPECTATIONS[1378][0] = 19;
EXPECTATIONS[1378][1] = 178;
EXPECTATIONS[1378][2] = 225;
EXPECTATIONS[1379] = new int[3];
EXPECTATIONS[1379][0] = 20;
EXPECTATIONS[1379][1] = 178;
EXPECTATIONS[1379][2] = 226;
EXPECTATIONS[1380] = new int[2];
EXPECTATIONS[1380][0] = 112;
EXPECTATIONS[1380][1] = 179;
EXPECTATIONS[1381] = new int[2];
EXPECTATIONS[1381][0] = 113;
EXPECTATIONS[1381][1] = 180;
EXPECTATIONS[1382] = new int[3];
EXPECTATIONS[1382][0] = 49;
EXPECTATIONS[1382][1] = 181;
EXPECTATIONS[1382][2] = 227;
EXPECTATIONS[1383] = new int[2];
EXPECTATIONS[1383][0] = 114;
EXPECTATIONS[1383][1] = 182;
EXPECTATIONS[1384] = new int[4];
EXPECTATIONS[1384][0] = 49;
EXPECTATIONS[1384][1] = 182;
EXPECTATIONS[1384][2] = 228;
EXPECTATIONS[1384][3] = 229;
EXPECTATIONS[1385] = new int[3];
EXPECTATIONS[1385][0] = 111;
EXPECTATIONS[1385][1] = 182;
EXPECTATIONS[1385][2] = 230;
EXPECTATIONS[1386] = new int[4];
EXPECTATIONS[1386][0] = 18;
EXPECTATIONS[1386][1] = 182;
EXPECTATIONS[1386][2] = 231;
EXPECTATIONS[1386][3] = 232;
EXPECTATIONS[1387] = new int[3];
EXPECTATIONS[1387][0] = 49;
EXPECTATIONS[1387][1] = 183;
EXPECTATIONS[1387][2] = 233;
EXPECTATIONS[1388] = new int[2];
EXPECTATIONS[1388][0] = 114;
EXPECTATIONS[1388][1] = 184;
EXPECTATIONS[1389] = new int[4];
EXPECTATIONS[1389][0] = 49;
EXPECTATIONS[1389][1] = 184;
EXPECTATIONS[1389][2] = 234;
EXPECTATIONS[1389][3] = 235;
EXPECTATIONS[1390] = new int[3];
EXPECTATIONS[1390][0] = 111;
EXPECTATIONS[1390][1] = 184;
EXPECTATIONS[1390][2] = 236;
EXPECTATIONS[1391] = new int[4];
EXPECTATIONS[1391][0] = 18;
EXPECTATIONS[1391][1] = 184;
EXPECTATIONS[1391][2] = 237;
EXPECTATIONS[1391][3] = 238;
EXPECTATIONS[1392] = new int[2];
EXPECTATIONS[1392][0] = 114;
EXPECTATIONS[1392][1] = 185;
EXPECTATIONS[1393] = new int[4];
EXPECTATIONS[1393][0] = 49;
EXPECTATIONS[1393][1] = 185;
EXPECTATIONS[1393][2] = 239;
EXPECTATIONS[1393][3] = 240;
EXPECTATIONS[1394] = new int[3];
EXPECTATIONS[1394][0] = 111;
EXPECTATIONS[1394][1] = 185;
EXPECTATIONS[1394][2] = 241;
EXPECTATIONS[1395] = new int[4];
EXPECTATIONS[1395][0] = 18;
EXPECTATIONS[1395][1] = 185;
EXPECTATIONS[1395][2] = 242;
EXPECTATIONS[1395][3] = 243;
EXPECTATIONS[1396] = new int[4];
EXPECTATIONS[1396][0] = 49;
EXPECTATIONS[1396][1] = 186;
EXPECTATIONS[1396][2] = 244;
EXPECTATIONS[1396][3] = 245;
EXPECTATIONS[1397] = new int[3];
EXPECTATIONS[1397][0] = 111;
EXPECTATIONS[1397][1] = 186;
EXPECTATIONS[1397][2] = 246;
EXPECTATIONS[1398] = new int[4];
EXPECTATIONS[1398][0] = 18;
EXPECTATIONS[1398][1] = 186;
EXPECTATIONS[1398][2] = 247;
EXPECTATIONS[1398][3] = 248;
EXPECTATIONS[1399] = new int[3];
EXPECTATIONS[1399][0] = 104;
EXPECTATIONS[1399][1] = 186;
EXPECTATIONS[1399][2] = 249;
EXPECTATIONS[1400] = new int[3];
EXPECTATIONS[1400][0] = 105;
EXPECTATIONS[1400][1] = 186;
EXPECTATIONS[1400][2] = 250;
EXPECTATIONS[1401] = new int[3];
EXPECTATIONS[1401][0] = 19;
EXPECTATIONS[1401][1] = 186;
EXPECTATIONS[1401][2] = 251;
EXPECTATIONS[1402] = new int[3];
EXPECTATIONS[1402][0] = 20;
EXPECTATIONS[1402][1] = 186;
EXPECTATIONS[1402][2] = 252;
EXPECTATIONS[1403] = new int[4];
EXPECTATIONS[1403][0] = 49;
EXPECTATIONS[1403][1] = 187;
EXPECTATIONS[1403][2] = 253;
EXPECTATIONS[1403][3] = 254;
EXPECTATIONS[1404] = new int[3];
EXPECTATIONS[1404][0] = 111;
EXPECTATIONS[1404][1] = 187;
EXPECTATIONS[1404][2] = 255;
EXPECTATIONS[1405] = new int[4];
EXPECTATIONS[1405][0] = 18;
EXPECTATIONS[1405][1] = 187;
EXPECTATIONS[1405][2] = 256;
EXPECTATIONS[1405][3] = 257;
EXPECTATIONS[1406] = new int[3];
EXPECTATIONS[1406][0] = 104;
EXPECTATIONS[1406][1] = 187;
EXPECTATIONS[1406][2] = 258;
EXPECTATIONS[1407] = new int[3];
EXPECTATIONS[1407][0] = 105;
EXPECTATIONS[1407][1] = 187;
EXPECTATIONS[1407][2] = 259;
EXPECTATIONS[1408] = new int[3];
EXPECTATIONS[1408][0] = 19;
EXPECTATIONS[1408][1] = 187;
EXPECTATIONS[1408][2] = 260;
EXPECTATIONS[1409] = new int[3];
EXPECTATIONS[1409][0] = 20;
EXPECTATIONS[1409][1] = 187;
EXPECTATIONS[1409][2] = 261;
EXPECTATIONS[1410] = new int[2];
EXPECTATIONS[1410][0] = 115;
EXPECTATIONS[1410][1] = 188;
EXPECTATIONS[1411] = new int[2];
EXPECTATIONS[1411][0] = 111;
EXPECTATIONS[1411][1] = 188;
EXPECTATIONS[1412] = new int[2];
EXPECTATIONS[1412][0] = 115;
EXPECTATIONS[1412][1] = 189;
EXPECTATIONS[1413] = new int[2];
EXPECTATIONS[1413][0] = 111;
EXPECTATIONS[1413][1] = 189;
EXPECTATIONS[1414] = new int[3];
EXPECTATIONS[1414][0] = 49;
EXPECTATIONS[1414][1] = 190;
EXPECTATIONS[1414][2] = 262;
EXPECTATIONS[1415] = new int[2];
EXPECTATIONS[1415][0] = 115;
EXPECTATIONS[1415][1] = 191;
EXPECTATIONS[1416] = new int[2];
EXPECTATIONS[1416][0] = 111;
EXPECTATIONS[1416][1] = 191;
EXPECTATIONS[1417] = new int[2];
EXPECTATIONS[1417][0] = 115;
EXPECTATIONS[1417][1] = 192;
EXPECTATIONS[1418] = new int[2];
EXPECTATIONS[1418][0] = 111;
EXPECTATIONS[1418][1] = 192;
EXPECTATIONS[1419] = new int[2];
EXPECTATIONS[1419][0] = 111;
EXPECTATIONS[1419][1] = 193;
EXPECTATIONS[1420] = new int[3];
EXPECTATIONS[1420][0] = 49;
EXPECTATIONS[1420][1] = 194;
EXPECTATIONS[1420][2] = 263;
EXPECTATIONS[1421] = new int[2];
EXPECTATIONS[1421][0] = 116;
EXPECTATIONS[1421][1] = 195;
EXPECTATIONS[1422] = new int[4];
EXPECTATIONS[1422][0] = 49;
EXPECTATIONS[1422][1] = 195;
EXPECTATIONS[1422][2] = 264;
EXPECTATIONS[1422][3] = 265;
EXPECTATIONS[1423] = new int[3];
EXPECTATIONS[1423][0] = 111;
EXPECTATIONS[1423][1] = 195;
EXPECTATIONS[1423][2] = 266;
EXPECTATIONS[1424] = new int[4];
EXPECTATIONS[1424][0] = 18;
EXPECTATIONS[1424][1] = 195;
EXPECTATIONS[1424][2] = 267;
EXPECTATIONS[1424][3] = 268;
EXPECTATIONS[1425] = new int[3];
EXPECTATIONS[1425][0] = 104;
EXPECTATIONS[1425][1] = 195;
EXPECTATIONS[1425][2] = 269;
EXPECTATIONS[1426] = new int[3];
EXPECTATIONS[1426][0] = 105;
EXPECTATIONS[1426][1] = 195;
EXPECTATIONS[1426][2] = 270;
EXPECTATIONS[1427] = new int[3];
EXPECTATIONS[1427][0] = 19;
EXPECTATIONS[1427][1] = 195;
EXPECTATIONS[1427][2] = 271;
EXPECTATIONS[1428] = new int[3];
EXPECTATIONS[1428][0] = 20;
EXPECTATIONS[1428][1] = 195;
EXPECTATIONS[1428][2] = 272;
EXPECTATIONS[1429] = new int[3];
EXPECTATIONS[1429][0] = 49;
EXPECTATIONS[1429][1] = 196;
EXPECTATIONS[1429][2] = 273;
EXPECTATIONS[1430] = new int[2];
EXPECTATIONS[1430][0] = 116;
EXPECTATIONS[1430][1] = 197;
EXPECTATIONS[1431] = new int[4];
EXPECTATIONS[1431][0] = 49;
EXPECTATIONS[1431][1] = 197;
EXPECTATIONS[1431][2] = 274;
EXPECTATIONS[1431][3] = 275;
EXPECTATIONS[1432] = new int[3];
EXPECTATIONS[1432][0] = 111;
EXPECTATIONS[1432][1] = 197;
EXPECTATIONS[1432][2] = 276;
EXPECTATIONS[1433] = new int[4];
EXPECTATIONS[1433][0] = 18;
EXPECTATIONS[1433][1] = 197;
EXPECTATIONS[1433][2] = 277;
EXPECTATIONS[1433][3] = 278;
EXPECTATIONS[1434] = new int[3];
EXPECTATIONS[1434][0] = 104;
EXPECTATIONS[1434][1] = 197;
EXPECTATIONS[1434][2] = 279;
EXPECTATIONS[1435] = new int[3];
EXPECTATIONS[1435][0] = 105;
EXPECTATIONS[1435][1] = 197;
EXPECTATIONS[1435][2] = 280;
EXPECTATIONS[1436] = new int[3];
EXPECTATIONS[1436][0] = 19;
EXPECTATIONS[1436][1] = 197;
EXPECTATIONS[1436][2] = 281;
EXPECTATIONS[1437] = new int[3];
EXPECTATIONS[1437][0] = 20;
EXPECTATIONS[1437][1] = 197;
EXPECTATIONS[1437][2] = 282;
EXPECTATIONS[1438] = new int[2];
EXPECTATIONS[1438][0] = 116;
EXPECTATIONS[1438][1] = 198;
EXPECTATIONS[1439] = new int[4];
EXPECTATIONS[1439][0] = 49;
EXPECTATIONS[1439][1] = 198;
EXPECTATIONS[1439][2] = 283;
EXPECTATIONS[1439][3] = 284;
EXPECTATIONS[1440] = new int[3];
EXPECTATIONS[1440][0] = 111;
EXPECTATIONS[1440][1] = 198;
EXPECTATIONS[1440][2] = 285;
EXPECTATIONS[1441] = new int[4];
EXPECTATIONS[1441][0] = 18;
EXPECTATIONS[1441][1] = 198;
EXPECTATIONS[1441][2] = 286;
EXPECTATIONS[1441][3] = 287;
EXPECTATIONS[1442] = new int[3];
EXPECTATIONS[1442][0] = 104;
EXPECTATIONS[1442][1] = 198;
EXPECTATIONS[1442][2] = 288;
EXPECTATIONS[1443] = new int[3];
EXPECTATIONS[1443][0] = 105;
EXPECTATIONS[1443][1] = 198;
EXPECTATIONS[1443][2] = 289;
EXPECTATIONS[1444] = new int[3];
EXPECTATIONS[1444][0] = 19;
EXPECTATIONS[1444][1] = 198;
EXPECTATIONS[1444][2] = 290;
EXPECTATIONS[1445] = new int[3];
EXPECTATIONS[1445][0] = 20;
EXPECTATIONS[1445][1] = 198;
EXPECTATIONS[1445][2] = 291;
EXPECTATIONS[1446] = new int[2];
EXPECTATIONS[1446][0] = 117;
EXPECTATIONS[1446][1] = 199;
EXPECTATIONS[1447] = new int[2];
EXPECTATIONS[1447][0] = 118;
EXPECTATIONS[1447][1] = 199;
EXPECTATIONS[1448] = new int[3];
EXPECTATIONS[1448][0] = 18;
EXPECTATIONS[1448][1] = 200;
EXPECTATIONS[1448][2] = 292;
EXPECTATIONS[1449] = new int[2];
EXPECTATIONS[1449][0] = 118;
EXPECTATIONS[1449][1] = 201;
EXPECTATIONS[1450] = new int[2];
EXPECTATIONS[1450][0] = 118;
EXPECTATIONS[1450][1] = 202;
EXPECTATIONS[1451] = new int[3];
EXPECTATIONS[1451][0] = 49;
EXPECTATIONS[1451][1] = 203;
EXPECTATIONS[1451][2] = 293;
EXPECTATIONS[1452] = new int[2];
EXPECTATIONS[1452][0] = 119;
EXPECTATIONS[1452][1] = 204;
EXPECTATIONS[1453] = new int[4];
EXPECTATIONS[1453][0] = 49;
EXPECTATIONS[1453][1] = 204;
EXPECTATIONS[1453][2] = 294;
EXPECTATIONS[1453][3] = 295;
EXPECTATIONS[1454] = new int[3];
EXPECTATIONS[1454][0] = 111;
EXPECTATIONS[1454][1] = 204;
EXPECTATIONS[1454][2] = 296;
EXPECTATIONS[1455] = new int[4];
EXPECTATIONS[1455][0] = 18;
EXPECTATIONS[1455][1] = 204;
EXPECTATIONS[1455][2] = 297;
EXPECTATIONS[1455][3] = 298;
EXPECTATIONS[1456] = new int[3];
EXPECTATIONS[1456][0] = 104;
EXPECTATIONS[1456][1] = 204;
EXPECTATIONS[1456][2] = 299;
EXPECTATIONS[1457] = new int[3];
EXPECTATIONS[1457][0] = 105;
EXPECTATIONS[1457][1] = 204;
EXPECTATIONS[1457][2] = 300;
EXPECTATIONS[1458] = new int[3];
EXPECTATIONS[1458][0] = 19;
EXPECTATIONS[1458][1] = 204;
EXPECTATIONS[1458][2] = 301;
EXPECTATIONS[1459] = new int[3];
EXPECTATIONS[1459][0] = 20;
EXPECTATIONS[1459][1] = 204;
EXPECTATIONS[1459][2] = 302;
EXPECTATIONS[1460] = new int[3];
EXPECTATIONS[1460][0] = 49;
EXPECTATIONS[1460][1] = 205;
EXPECTATIONS[1460][2] = 303;
EXPECTATIONS[1461] = new int[2];
EXPECTATIONS[1461][0] = 119;
EXPECTATIONS[1461][1] = 206;
EXPECTATIONS[1462] = new int[4];
EXPECTATIONS[1462][0] = 49;
EXPECTATIONS[1462][1] = 206;
EXPECTATIONS[1462][2] = 304;
EXPECTATIONS[1462][3] = 305;
EXPECTATIONS[1463] = new int[3];
EXPECTATIONS[1463][0] = 111;
EXPECTATIONS[1463][1] = 206;
EXPECTATIONS[1463][2] = 306;
EXPECTATIONS[1464] = new int[4];
EXPECTATIONS[1464][0] = 18;
EXPECTATIONS[1464][1] = 206;
EXPECTATIONS[1464][2] = 307;
EXPECTATIONS[1464][3] = 308;
EXPECTATIONS[1465] = new int[3];
EXPECTATIONS[1465][0] = 104;
EXPECTATIONS[1465][1] = 206;
EXPECTATIONS[1465][2] = 309;
EXPECTATIONS[1466] = new int[3];
EXPECTATIONS[1466][0] = 105;
EXPECTATIONS[1466][1] = 206;
EXPECTATIONS[1466][2] = 310;
EXPECTATIONS[1467] = new int[3];
EXPECTATIONS[1467][0] = 19;
EXPECTATIONS[1467][1] = 206;
EXPECTATIONS[1467][2] = 311;
EXPECTATIONS[1468] = new int[3];
EXPECTATIONS[1468][0] = 20;
EXPECTATIONS[1468][1] = 206;
EXPECTATIONS[1468][2] = 312;
EXPECTATIONS[1469] = new int[2];
EXPECTATIONS[1469][0] = 119;
EXPECTATIONS[1469][1] = 207;
EXPECTATIONS[1470] = new int[4];
EXPECTATIONS[1470][0] = 49;
EXPECTATIONS[1470][1] = 207;
EXPECTATIONS[1470][2] = 313;
EXPECTATIONS[1470][3] = 314;
EXPECTATIONS[1471] = new int[3];
EXPECTATIONS[1471][0] = 111;
EXPECTATIONS[1471][1] = 207;
EXPECTATIONS[1471][2] = 315;
EXPECTATIONS[1472] = new int[4];
EXPECTATIONS[1472][0] = 18;
EXPECTATIONS[1472][1] = 207;
EXPECTATIONS[1472][2] = 316;
EXPECTATIONS[1472][3] = 317;
EXPECTATIONS[1473] = new int[3];
EXPECTATIONS[1473][0] = 104;
EXPECTATIONS[1473][1] = 207;
EXPECTATIONS[1473][2] = 318;
EXPECTATIONS[1474] = new int[3];
EXPECTATIONS[1474][0] = 105;
EXPECTATIONS[1474][1] = 207;
EXPECTATIONS[1474][2] = 319;
EXPECTATIONS[1475] = new int[3];
EXPECTATIONS[1475][0] = 19;
EXPECTATIONS[1475][1] = 207;
EXPECTATIONS[1475][2] = 320;
EXPECTATIONS[1476] = new int[3];
EXPECTATIONS[1476][0] = 20;
EXPECTATIONS[1476][1] = 207;
EXPECTATIONS[1476][2] = 321;
EXPECTATIONS[1477] = new int[2];
EXPECTATIONS[1477][0] = 120;
EXPECTATIONS[1477][1] = 208;
EXPECTATIONS[1478] = new int[2];
EXPECTATIONS[1478][0] = 121;
EXPECTATIONS[1478][1] = 209;
EXPECTATIONS[1479] = new int[2];
EXPECTATIONS[1479][0] = 122;
EXPECTATIONS[1479][1] = 210;
EXPECTATIONS[1480] = new int[3];
EXPECTATIONS[1480][0] = 9;
EXPECTATIONS[1480][1] = 210;
EXPECTATIONS[1480][2] = 322;
EXPECTATIONS[1481] = new int[2];
EXPECTATIONS[1481][0] = 21;
EXPECTATIONS[1481][1] = 210;
EXPECTATIONS[1482] = new int[2];
EXPECTATIONS[1482][0] = 22;
EXPECTATIONS[1482][1] = 210;
EXPECTATIONS[1483] = new int[2];
EXPECTATIONS[1483][0] = 23;
EXPECTATIONS[1483][1] = 210;
EXPECTATIONS[1484] = new int[2];
EXPECTATIONS[1484][0] = 24;
EXPECTATIONS[1484][1] = 210;
EXPECTATIONS[1485] = new int[2];
EXPECTATIONS[1485][0] = 25;
EXPECTATIONS[1485][1] = 210;
EXPECTATIONS[1486] = new int[2];
EXPECTATIONS[1486][0] = 26;
EXPECTATIONS[1486][1] = 210;
EXPECTATIONS[1487] = new int[2];
EXPECTATIONS[1487][0] = 27;
EXPECTATIONS[1487][1] = 210;
EXPECTATIONS[1488] = new int[2];
EXPECTATIONS[1488][0] = 28;
EXPECTATIONS[1488][1] = 210;
EXPECTATIONS[1489] = new int[2];
EXPECTATIONS[1489][0] = 29;
EXPECTATIONS[1489][1] = 210;
EXPECTATIONS[1490] = new int[2];
EXPECTATIONS[1490][0] = 30;
EXPECTATIONS[1490][1] = 210;
EXPECTATIONS[1491] = new int[2];
EXPECTATIONS[1491][0] = 31;
EXPECTATIONS[1491][1] = 210;
EXPECTATIONS[1492] = new int[2];
EXPECTATIONS[1492][0] = 32;
EXPECTATIONS[1492][1] = 210;
EXPECTATIONS[1493] = new int[2];
EXPECTATIONS[1493][0] = 33;
EXPECTATIONS[1493][1] = 210;
EXPECTATIONS[1494] = new int[2];
EXPECTATIONS[1494][0] = 34;
EXPECTATIONS[1494][1] = 210;
EXPECTATIONS[1495] = new int[2];
EXPECTATIONS[1495][0] = 35;
EXPECTATIONS[1495][1] = 210;
EXPECTATIONS[1496] = new int[2];
EXPECTATIONS[1496][0] = 36;
EXPECTATIONS[1496][1] = 210;
EXPECTATIONS[1497] = new int[2];
EXPECTATIONS[1497][0] = 37;
EXPECTATIONS[1497][1] = 210;
EXPECTATIONS[1498] = new int[2];
EXPECTATIONS[1498][0] = 38;
EXPECTATIONS[1498][1] = 210;
EXPECTATIONS[1499] = new int[2];
EXPECTATIONS[1499][0] = 117;
EXPECTATIONS[1499][1] = 210;
EXPECTATIONS[1500] = new int[2];
EXPECTATIONS[1500][0] = 118;
EXPECTATIONS[1500][1] = 210;
EXPECTATIONS[1501] = new int[2];
EXPECTATIONS[1501][0] = 123;
EXPECTATIONS[1501][1] = 211;
EXPECTATIONS[1502] = new int[3];
EXPECTATIONS[1502][0] = 9;
EXPECTATIONS[1502][1] = 212;
EXPECTATIONS[1502][2] = 323;
EXPECTATIONS[1503] = new int[2];
EXPECTATIONS[1503][0] = 21;
EXPECTATIONS[1503][1] = 212;
EXPECTATIONS[1504] = new int[2];
EXPECTATIONS[1504][0] = 22;
EXPECTATIONS[1504][1] = 212;
EXPECTATIONS[1505] = new int[2];
EXPECTATIONS[1505][0] = 23;
EXPECTATIONS[1505][1] = 212;
EXPECTATIONS[1506] = new int[2];
EXPECTATIONS[1506][0] = 24;
EXPECTATIONS[1506][1] = 212;
EXPECTATIONS[1507] = new int[2];
EXPECTATIONS[1507][0] = 25;
EXPECTATIONS[1507][1] = 212;
EXPECTATIONS[1508] = new int[2];
EXPECTATIONS[1508][0] = 26;
EXPECTATIONS[1508][1] = 212;
EXPECTATIONS[1509] = new int[2];
EXPECTATIONS[1509][0] = 27;
EXPECTATIONS[1509][1] = 212;
EXPECTATIONS[1510] = new int[2];
EXPECTATIONS[1510][0] = 28;
EXPECTATIONS[1510][1] = 212;
EXPECTATIONS[1511] = new int[2];
EXPECTATIONS[1511][0] = 29;
EXPECTATIONS[1511][1] = 212;
EXPECTATIONS[1512] = new int[2];
EXPECTATIONS[1512][0] = 30;
EXPECTATIONS[1512][1] = 212;
EXPECTATIONS[1513] = new int[2];
EXPECTATIONS[1513][0] = 31;
EXPECTATIONS[1513][1] = 212;
EXPECTATIONS[1514] = new int[2];
EXPECTATIONS[1514][0] = 32;
EXPECTATIONS[1514][1] = 212;
EXPECTATIONS[1515] = new int[2];
EXPECTATIONS[1515][0] = 33;
EXPECTATIONS[1515][1] = 212;
EXPECTATIONS[1516] = new int[2];
EXPECTATIONS[1516][0] = 34;
EXPECTATIONS[1516][1] = 212;
EXPECTATIONS[1517] = new int[2];
EXPECTATIONS[1517][0] = 35;
EXPECTATIONS[1517][1] = 212;
EXPECTATIONS[1518] = new int[2];
EXPECTATIONS[1518][0] = 36;
EXPECTATIONS[1518][1] = 212;
EXPECTATIONS[1519] = new int[2];
EXPECTATIONS[1519][0] = 37;
EXPECTATIONS[1519][1] = 212;
EXPECTATIONS[1520] = new int[2];
EXPECTATIONS[1520][0] = 38;
EXPECTATIONS[1520][1] = 212;
EXPECTATIONS[1521] = new int[2];
EXPECTATIONS[1521][0] = 117;
EXPECTATIONS[1521][1] = 212;
EXPECTATIONS[1522] = new int[2];
EXPECTATIONS[1522][0] = 118;
EXPECTATIONS[1522][1] = 212;
EXPECTATIONS[1523] = new int[3];
EXPECTATIONS[1523][0] = 9;
EXPECTATIONS[1523][1] = 213;
EXPECTATIONS[1523][2] = 324;
EXPECTATIONS[1524] = new int[2];
EXPECTATIONS[1524][0] = 21;
EXPECTATIONS[1524][1] = 213;
EXPECTATIONS[1525] = new int[2];
EXPECTATIONS[1525][0] = 22;
EXPECTATIONS[1525][1] = 213;
EXPECTATIONS[1526] = new int[2];
EXPECTATIONS[1526][0] = 23;
EXPECTATIONS[1526][1] = 213;
EXPECTATIONS[1527] = new int[2];
EXPECTATIONS[1527][0] = 24;
EXPECTATIONS[1527][1] = 213;
EXPECTATIONS[1528] = new int[2];
EXPECTATIONS[1528][0] = 25;
EXPECTATIONS[1528][1] = 213;
EXPECTATIONS[1529] = new int[2];
EXPECTATIONS[1529][0] = 26;
EXPECTATIONS[1529][1] = 213;
EXPECTATIONS[1530] = new int[2];
EXPECTATIONS[1530][0] = 27;
EXPECTATIONS[1530][1] = 213;
EXPECTATIONS[1531] = new int[2];
EXPECTATIONS[1531][0] = 28;
EXPECTATIONS[1531][1] = 213;
EXPECTATIONS[1532] = new int[2];
EXPECTATIONS[1532][0] = 29;
EXPECTATIONS[1532][1] = 213;
EXPECTATIONS[1533] = new int[2];
EXPECTATIONS[1533][0] = 30;
EXPECTATIONS[1533][1] = 213;
EXPECTATIONS[1534] = new int[2];
EXPECTATIONS[1534][0] = 31;
EXPECTATIONS[1534][1] = 213;
EXPECTATIONS[1535] = new int[2];
EXPECTATIONS[1535][0] = 32;
EXPECTATIONS[1535][1] = 213;
EXPECTATIONS[1536] = new int[2];
EXPECTATIONS[1536][0] = 33;
EXPECTATIONS[1536][1] = 213;
EXPECTATIONS[1537] = new int[2];
EXPECTATIONS[1537][0] = 34;
EXPECTATIONS[1537][1] = 213;
EXPECTATIONS[1538] = new int[2];
EXPECTATIONS[1538][0] = 35;
EXPECTATIONS[1538][1] = 213;
EXPECTATIONS[1539] = new int[2];
EXPECTATIONS[1539][0] = 36;
EXPECTATIONS[1539][1] = 213;
EXPECTATIONS[1540] = new int[2];
EXPECTATIONS[1540][0] = 37;
EXPECTATIONS[1540][1] = 213;
EXPECTATIONS[1541] = new int[2];
EXPECTATIONS[1541][0] = 38;
EXPECTATIONS[1541][1] = 213;
EXPECTATIONS[1542] = new int[2];
EXPECTATIONS[1542][0] = 117;
EXPECTATIONS[1542][1] = 213;
EXPECTATIONS[1543] = new int[2];
EXPECTATIONS[1543][0] = 118;
EXPECTATIONS[1543][1] = 213;
EXPECTATIONS[1544] = new int[3];
EXPECTATIONS[1544][0] = 124;
EXPECTATIONS[1544][1] = 214;
EXPECTATIONS[1544][2] = 325;
EXPECTATIONS[1545] = new int[2];
EXPECTATIONS[1545][0] = 50;
EXPECTATIONS[1545][1] = 215;
EXPECTATIONS[1546] = new int[2];
EXPECTATIONS[1546][0] = 21;
EXPECTATIONS[1546][1] = 215;
EXPECTATIONS[1547] = new int[2];
EXPECTATIONS[1547][0] = 22;
EXPECTATIONS[1547][1] = 215;
EXPECTATIONS[1548] = new int[2];
EXPECTATIONS[1548][0] = 23;
EXPECTATIONS[1548][1] = 215;
EXPECTATIONS[1549] = new int[2];
EXPECTATIONS[1549][0] = 24;
EXPECTATIONS[1549][1] = 215;
EXPECTATIONS[1550] = new int[2];
EXPECTATIONS[1550][0] = 25;
EXPECTATIONS[1550][1] = 215;
EXPECTATIONS[1551] = new int[2];
EXPECTATIONS[1551][0] = 26;
EXPECTATIONS[1551][1] = 215;
EXPECTATIONS[1552] = new int[2];
EXPECTATIONS[1552][0] = 27;
EXPECTATIONS[1552][1] = 215;
EXPECTATIONS[1553] = new int[2];
EXPECTATIONS[1553][0] = 28;
EXPECTATIONS[1553][1] = 215;
EXPECTATIONS[1554] = new int[2];
EXPECTATIONS[1554][0] = 29;
EXPECTATIONS[1554][1] = 215;
EXPECTATIONS[1555] = new int[2];
EXPECTATIONS[1555][0] = 30;
EXPECTATIONS[1555][1] = 215;
EXPECTATIONS[1556] = new int[2];
EXPECTATIONS[1556][0] = 31;
EXPECTATIONS[1556][1] = 215;
EXPECTATIONS[1557] = new int[2];
EXPECTATIONS[1557][0] = 32;
EXPECTATIONS[1557][1] = 215;
EXPECTATIONS[1558] = new int[2];
EXPECTATIONS[1558][0] = 33;
EXPECTATIONS[1558][1] = 215;
EXPECTATIONS[1559] = new int[2];
EXPECTATIONS[1559][0] = 34;
EXPECTATIONS[1559][1] = 215;
EXPECTATIONS[1560] = new int[2];
EXPECTATIONS[1560][0] = 35;
EXPECTATIONS[1560][1] = 215;
EXPECTATIONS[1561] = new int[2];
EXPECTATIONS[1561][0] = 36;
EXPECTATIONS[1561][1] = 215;
EXPECTATIONS[1562] = new int[2];
EXPECTATIONS[1562][0] = 37;
EXPECTATIONS[1562][1] = 215;
EXPECTATIONS[1563] = new int[2];
EXPECTATIONS[1563][0] = 38;
EXPECTATIONS[1563][1] = 215;
EXPECTATIONS[1564] = new int[3];
EXPECTATIONS[1564][0] = 19;
EXPECTATIONS[1564][1] = 215;
EXPECTATIONS[1564][2] = 326;
EXPECTATIONS[1565] = new int[3];
EXPECTATIONS[1565][0] = 20;
EXPECTATIONS[1565][1] = 215;
EXPECTATIONS[1565][2] = 327;
EXPECTATIONS[1566] = new int[2];
EXPECTATIONS[1566][0] = 96;
EXPECTATIONS[1566][1] = 215;
EXPECTATIONS[1567] = new int[2];
EXPECTATIONS[1567][0] = 76;
EXPECTATIONS[1567][1] = 215;
EXPECTATIONS[1568] = new int[2];
EXPECTATIONS[1568][0] = 77;
EXPECTATIONS[1568][1] = 215;
EXPECTATIONS[1569] = new int[2];
EXPECTATIONS[1569][0] = 78;
EXPECTATIONS[1569][1] = 215;
EXPECTATIONS[1570] = new int[2];
EXPECTATIONS[1570][0] = 79;
EXPECTATIONS[1570][1] = 215;
EXPECTATIONS[1571] = new int[2];
EXPECTATIONS[1571][0] = 80;
EXPECTATIONS[1571][1] = 215;
EXPECTATIONS[1572] = new int[2];
EXPECTATIONS[1572][0] = 81;
EXPECTATIONS[1572][1] = 215;
EXPECTATIONS[1573] = new int[2];
EXPECTATIONS[1573][0] = 82;
EXPECTATIONS[1573][1] = 215;
EXPECTATIONS[1574] = new int[2];
EXPECTATIONS[1574][0] = 83;
EXPECTATIONS[1574][1] = 215;
EXPECTATIONS[1575] = new int[2];
EXPECTATIONS[1575][0] = 84;
EXPECTATIONS[1575][1] = 215;
EXPECTATIONS[1576] = new int[2];
EXPECTATIONS[1576][0] = 110;
EXPECTATIONS[1576][1] = 215;
EXPECTATIONS[1577] = new int[4];
EXPECTATIONS[1577][0] = 49;
EXPECTATIONS[1577][1] = 215;
EXPECTATIONS[1577][2] = 328;
EXPECTATIONS[1577][3] = 329;
EXPECTATIONS[1578] = new int[3];
EXPECTATIONS[1578][0] = 111;
EXPECTATIONS[1578][1] = 215;
EXPECTATIONS[1578][2] = 330;
EXPECTATIONS[1579] = new int[4];
EXPECTATIONS[1579][0] = 18;
EXPECTATIONS[1579][1] = 215;
EXPECTATIONS[1579][2] = 331;
EXPECTATIONS[1579][3] = 332;
EXPECTATIONS[1580] = new int[2];
EXPECTATIONS[1580][0] = 114;
EXPECTATIONS[1580][1] = 215;
EXPECTATIONS[1581] = new int[2];
EXPECTATIONS[1581][0] = 115;
EXPECTATIONS[1581][1] = 215;
EXPECTATIONS[1582] = new int[2];
EXPECTATIONS[1582][0] = 111;
EXPECTATIONS[1582][1] = 215;
EXPECTATIONS[1583] = new int[2];
EXPECTATIONS[1583][0] = 119;
EXPECTATIONS[1583][1] = 215;
EXPECTATIONS[1584] = new int[2];
EXPECTATIONS[1584][0] = 50;
EXPECTATIONS[1584][1] = 216;
EXPECTATIONS[1585] = new int[2];
EXPECTATIONS[1585][0] = 21;
EXPECTATIONS[1585][1] = 216;
EXPECTATIONS[1586] = new int[2];
EXPECTATIONS[1586][0] = 22;
EXPECTATIONS[1586][1] = 216;
EXPECTATIONS[1587] = new int[2];
EXPECTATIONS[1587][0] = 23;
EXPECTATIONS[1587][1] = 216;
EXPECTATIONS[1588] = new int[2];
EXPECTATIONS[1588][0] = 24;
EXPECTATIONS[1588][1] = 216;
EXPECTATIONS[1589] = new int[2];
EXPECTATIONS[1589][0] = 25;
EXPECTATIONS[1589][1] = 216;
EXPECTATIONS[1590] = new int[2];
EXPECTATIONS[1590][0] = 26;
EXPECTATIONS[1590][1] = 216;
EXPECTATIONS[1591] = new int[2];
EXPECTATIONS[1591][0] = 27;
EXPECTATIONS[1591][1] = 216;
EXPECTATIONS[1592] = new int[2];
EXPECTATIONS[1592][0] = 28;
EXPECTATIONS[1592][1] = 216;
EXPECTATIONS[1593] = new int[2];
EXPECTATIONS[1593][0] = 29;
EXPECTATIONS[1593][1] = 216;
EXPECTATIONS[1594] = new int[2];
EXPECTATIONS[1594][0] = 30;
EXPECTATIONS[1594][1] = 216;
EXPECTATIONS[1595] = new int[2];
EXPECTATIONS[1595][0] = 31;
EXPECTATIONS[1595][1] = 216;
EXPECTATIONS[1596] = new int[2];
EXPECTATIONS[1596][0] = 32;
EXPECTATIONS[1596][1] = 216;
EXPECTATIONS[1597] = new int[2];
EXPECTATIONS[1597][0] = 33;
EXPECTATIONS[1597][1] = 216;
EXPECTATIONS[1598] = new int[2];
EXPECTATIONS[1598][0] = 34;
EXPECTATIONS[1598][1] = 216;
EXPECTATIONS[1599] = new int[2];
EXPECTATIONS[1599][0] = 35;
EXPECTATIONS[1599][1] = 216;
EXPECTATIONS[1600] = new int[2];
EXPECTATIONS[1600][0] = 36;
EXPECTATIONS[1600][1] = 216;
EXPECTATIONS[1601] = new int[2];
EXPECTATIONS[1601][0] = 37;
EXPECTATIONS[1601][1] = 216;
EXPECTATIONS[1602] = new int[2];
EXPECTATIONS[1602][0] = 38;
EXPECTATIONS[1602][1] = 216;
EXPECTATIONS[1603] = new int[3];
EXPECTATIONS[1603][0] = 19;
EXPECTATIONS[1603][1] = 216;
EXPECTATIONS[1603][2] = 333;
EXPECTATIONS[1604] = new int[3];
EXPECTATIONS[1604][0] = 20;
EXPECTATIONS[1604][1] = 216;
EXPECTATIONS[1604][2] = 334;
EXPECTATIONS[1605] = new int[2];
EXPECTATIONS[1605][0] = 96;
EXPECTATIONS[1605][1] = 216;
EXPECTATIONS[1606] = new int[2];
EXPECTATIONS[1606][0] = 76;
EXPECTATIONS[1606][1] = 216;
EXPECTATIONS[1607] = new int[2];
EXPECTATIONS[1607][0] = 77;
EXPECTATIONS[1607][1] = 216;
EXPECTATIONS[1608] = new int[2];
EXPECTATIONS[1608][0] = 78;
EXPECTATIONS[1608][1] = 216;
EXPECTATIONS[1609] = new int[2];
EXPECTATIONS[1609][0] = 79;
EXPECTATIONS[1609][1] = 216;
EXPECTATIONS[1610] = new int[2];
EXPECTATIONS[1610][0] = 80;
EXPECTATIONS[1610][1] = 216;
EXPECTATIONS[1611] = new int[2];
EXPECTATIONS[1611][0] = 81;
EXPECTATIONS[1611][1] = 216;
EXPECTATIONS[1612] = new int[2];
EXPECTATIONS[1612][0] = 82;
EXPECTATIONS[1612][1] = 216;
EXPECTATIONS[1613] = new int[2];
EXPECTATIONS[1613][0] = 83;
EXPECTATIONS[1613][1] = 216;
EXPECTATIONS[1614] = new int[2];
EXPECTATIONS[1614][0] = 84;
EXPECTATIONS[1614][1] = 216;
EXPECTATIONS[1615] = new int[2];
EXPECTATIONS[1615][0] = 110;
EXPECTATIONS[1615][1] = 216;
EXPECTATIONS[1616] = new int[4];
EXPECTATIONS[1616][0] = 49;
EXPECTATIONS[1616][1] = 216;
EXPECTATIONS[1616][2] = 335;
EXPECTATIONS[1616][3] = 336;
EXPECTATIONS[1617] = new int[3];
EXPECTATIONS[1617][0] = 111;
EXPECTATIONS[1617][1] = 216;
EXPECTATIONS[1617][2] = 337;
EXPECTATIONS[1618] = new int[4];
EXPECTATIONS[1618][0] = 18;
EXPECTATIONS[1618][1] = 216;
EXPECTATIONS[1618][2] = 338;
EXPECTATIONS[1618][3] = 339;
EXPECTATIONS[1619] = new int[2];
EXPECTATIONS[1619][0] = 114;
EXPECTATIONS[1619][1] = 216;
EXPECTATIONS[1620] = new int[2];
EXPECTATIONS[1620][0] = 115;
EXPECTATIONS[1620][1] = 216;
EXPECTATIONS[1621] = new int[2];
EXPECTATIONS[1621][0] = 111;
EXPECTATIONS[1621][1] = 216;
EXPECTATIONS[1622] = new int[2];
EXPECTATIONS[1622][0] = 119;
EXPECTATIONS[1622][1] = 216;
}
public static void initialize() {
initialize0();
initialize1();
}
static {
initialize();
}
}
| [
"david.wille@ewetel.net"
] | david.wille@ewetel.net |
a07cc64c317743aa27e3401a00bfd417b79f2edf | 080a68868c483e3e55b915c6a4a3df3a140ce34f | /jOOQ/src/main/java/org/jooq/WithAsStep17.java | c52718eeb7f293a8eb859214ec297e9a71719dd1 | [
"Apache-2.0"
] | permissive | gh0ztbuster/jOOQ | ab89cd5088d085e07734c368c9f3754a8c88e21d | 33dfa611d4d3fa523b72a07ff5cbe3a4158f25ec | refs/heads/master | 2020-03-19T19:01:44.579062 | 2018-06-08T12:21:59 | 2018-06-08T12:21:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,112 | java | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* Other licenses:
* -----------------------------------------------------------------------------
* Commercial licenses for this work are available. These replace the above
* ASL 2.0 and offer limited warranties, support, maintenance, and commercial
* database integrations.
*
* For more information, please visit: http://www.jooq.org/licenses
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package org.jooq;
// ...
// ...
import static org.jooq.SQLDialect.FIREBIRD;
import static org.jooq.SQLDialect.H2;
import static org.jooq.SQLDialect.HSQLDB;
import static org.jooq.SQLDialect.MARIADB;
import static org.jooq.SQLDialect.MYSQL_8_0;
// ...
import static org.jooq.SQLDialect.POSTGRES;
// ...
// ...
// ...
import javax.annotation.Generated;
/**
* This type is part of the jOOQ DSL to create {@link Select}, {@link Insert},
* {@link Update}, {@link Delete}, {@link Merge} statements prefixed with a
* <code>WITH</code> clause and with {@link CommonTableExpression}s.
* <p>
* Example:
* <code><pre>
* DSL.with("table", "col1", "col2")
* .as(
* select(one(), two())
* )
* .select()
* .from("table")
* </pre></code>
*
* @author Lukas Eder
*/
@Generated("This class was generated using jOOQ-tools")
public interface WithAsStep17 {
/**
* Associate a subselect with a common table expression's table and column names.
*/
@Support({ FIREBIRD, H2, HSQLDB, MARIADB, MYSQL_8_0, POSTGRES })
WithStep as(Select<? extends Record17<?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?>> select);
}
| [
"lukas.eder@gmail.com"
] | lukas.eder@gmail.com |
b5ea5403547619dd16b46d3ee256c2138886980b | fa91450deb625cda070e82d5c31770be5ca1dec6 | /Diff-Raw-Data/1/1_d4ced07d6cccab769714daa37772892e8c5044e0/ResourceDescriptorImpl/1_d4ced07d6cccab769714daa37772892e8c5044e0_ResourceDescriptorImpl_t.java | a41cd9d5bd3d1aea5acd712a44b45080306df93f | [] | no_license | zhongxingyu/Seer | 48e7e5197624d7afa94d23f849f8ea2075bcaec0 | c11a3109fdfca9be337e509ecb2c085b60076213 | refs/heads/master | 2023-07-06T12:48:55.516692 | 2023-06-22T07:55:56 | 2023-06-22T07:55:56 | 259,613,157 | 6 | 2 | null | 2023-06-22T07:55:57 | 2020-04-28T11:07:49 | null | UTF-8 | Java | false | false | 2,441 | java | /*******************************************************************************
* Copyright (c) 2009 itemis AG (http://www.itemis.eu) and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*******************************************************************************/
package org.eclipse.emf.index.impl;
import java.io.Serializable;
import java.io.Serializable;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import org.eclipse.emf.index.ResourceDescriptor;
/**
* @author Jan Khnlein - Initial contribution and API
*/
public class ResourceDescriptorImpl implements ResourceDescriptor, Serializable {
private static final long serialVersionUID = 4559062618979870492L;
protected long indexingDate;
protected String uri;
protected Map<String, Serializable> userData;
public ResourceDescriptorImpl(String uri, long indexingDate, Map<String, Serializable> userData) {
this.uri = uri;
this.indexingDate = indexingDate;
if (userData != null)
this.userData = Collections.unmodifiableMap(userData);
}
public long getIndexingDate() {
return indexingDate;
}
public String getURI() {
return uri;
}
public Map<String, Serializable> getUserData() {
return userData;
}
public Serializable getUserData(String key) {
return (userData == null) ? null : userData.get(key);
}
@Override
public String toString() {
return uri;
}
@Override
public boolean equals(Object obj) {
if (obj instanceof ResourceDescriptor) {
ResourceDescriptor resourceDescriptor = (ResourceDescriptor) obj;
return hashCode() == resourceDescriptor.hashCode() && uri.equals(resourceDescriptor.getURI());
}
return false;
}
@Override
public int hashCode() {
return uri.hashCode();
}
public boolean copyDetails(ResourceDescriptor resourceDesc) {
Map<String, Serializable> newUserData = resourceDesc.getUserData();
if (newUserData != null) {
if (!newUserData.equals(userData)) {
userData = Collections.unmodifiableMap(new HashMap<String, Serializable>(newUserData));
return true;
}
}
else if (userData != null) {
userData = null;
return true;
}
return false;
}
}
| [
"yuzhongxing88@gmail.com"
] | yuzhongxing88@gmail.com |
65ab2ccea91604f2f2ec292b82aadd79466a272a | d114dc5e9f5326675a6d3aecd13c7778a9985840 | /src/main/java/local/Screening.java | 6f91205bb802f3db4e9ca1029871f83ecedb9965 | [] | no_license | byounghoonmoon/ScreeningManage | 5cb5327033900cf87fed07c7dc21ccb9c9945c50 | 97b41b946ea20c7306f1e2b6028dd719e02891e9 | refs/heads/master | 2022-12-09T00:43:14.041651 | 2020-09-03T04:45:24 | 2020-09-03T04:45:24 | 291,697,637 | 0 | 3 | null | null | null | null | UTF-8 | Java | false | false | 2,846 | java | package local;
import javax.persistence.*;
import org.springframework.beans.BeanUtils;
@Entity
@Table(name="Screening_table")
public class Screening {
@Id
@GeneratedValue(strategy=GenerationType.AUTO)
private Long id;
private Long hospitalId;
private String chkDate;
private String custNm;
private String status;
private String hospitalNm;
@PostPersist
public void onPostPersist(){;
// 검진 요청함 ( Req / Res : 동기 방식 호출)
local.external.Hospital hospital = new local.external.Hospital();
hospital.setHospitalId(getHospitalId());
// mappings goes here
ScreeningManageApplication.applicationContext.getBean(local.external.HospitalService.class)
.screeningRequest(hospital.getHospitalId(),hospital);
Requested requested = new Requested();
BeanUtils.copyProperties(this, requested);
requested.publishAfterCommit();
}
@PostUpdate
public void onPostUpdate(){
System.out.println("#### onPostUpdate :" + this.toString());
if("CANCELED".equals(this.getStatus())) {
Canceled canceled = new Canceled();
BeanUtils.copyProperties(this, canceled);
canceled.publishAfterCommit();
}
else if("FORCE_CANCELED".equals(getStatus())){
ForceCanceled forceCanceled = new ForceCanceled();
BeanUtils.copyProperties(this, forceCanceled);
forceCanceled.publishAfterCommit();
}
else if("REQUEST_COMPLETED".equals(getStatus())){
System.out.println(getStatus());
System.out.println("## REQ Info : " + this.getHospitalId());
System.out.println("## REQ Info : " + this.getHospitalId());
RequestCompleted requestCompleted = new RequestCompleted();
BeanUtils.copyProperties(this, requestCompleted);
requestCompleted.publishAfterCommit();
}
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Long getHospitalId() {
return hospitalId;
}
public void setHospitalId(Long hospitalId) {
this.hospitalId = hospitalId;
}
public String getChkDate() {
return chkDate;
}
public void setChkDate(String chkDate) {
this.chkDate = chkDate;
}
public String getCustNm() {
return custNm;
}
public void setCustNm(String custNm) {
this.custNm = custNm;
}
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
public String getHospitalNm() {
return hospitalNm;
}
public void setHospitalNm(String hospitalNm) {
this.hospitalNm = hospitalNm;
}
}
| [
"passion.mbh@gmail.com"
] | passion.mbh@gmail.com |
ee5745a526c2d4470f0d52b666ca81e9f6271497 | fc4b18a86da1115a21d02c3b23f5e0bb31af4833 | /SecureStudentListUser/StudentListUser/src/main/java/fi/haagahelia/course/web/UserDetailServiceImpl.java | e10c58d1fa94b94262d300145a88e28684b443c9 | [] | no_license | ArttuKesanto/thymeleaf_practice | b80df08ef450a6ab84b59c7431f8224c1dd692db | e1b4e61411ae45e15b32f47cb878fc17821965bd | refs/heads/master | 2020-12-26T13:35:41.935933 | 2020-04-06T01:41:33 | 2020-04-06T01:41:33 | 237,525,850 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,270 | java | package fi.haagahelia.course.web;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.authority.AuthorityUtils;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.security.core.userdetails.UsernameNotFoundException;
import org.springframework.stereotype.Service;
import fi.haagahelia.course.domain.User;
import fi.haagahelia.course.domain.UserRepository;
/**
* This class is used by spring security to authenticate and authorize user
**/
@Service
public class UserDetailServiceImpl implements UserDetailsService {
private final UserRepository repository;
@Autowired
public UserDetailServiceImpl(UserRepository userRepository) {
this.repository = userRepository;
}
@Override
public UserDetails loadUserByUsername(String username) throws UsernameNotFoundException
{
User curruser = repository.findByUsername(username);
UserDetails user = new org.springframework.security.core.userdetails.User(username, curruser.getPasswordHash(),
AuthorityUtils.createAuthorityList(curruser.getRole()));
return user;
}
} | [
"arttu.kesanto@gmail.com"
] | arttu.kesanto@gmail.com |
347521620ddf6f0dd96d43fe6c8b4a4e4e31dbbc | 6baf1fe00541560788e78de5244ae17a7a2b375a | /hollywood/com.oculus.browser-base/sources/defpackage/Kw1.java | 07a17bd957417da09986c34dc3cc3114777fbb5a | [] | no_license | phwd/quest-tracker | 286e605644fc05f00f4904e51f73d77444a78003 | 3d46fbb467ba11bee5827f7cae7dfeabeb1fd2ba | refs/heads/main | 2023-03-29T20:33:10.959529 | 2021-04-10T22:14:11 | 2021-04-10T22:14:11 | 357,185,040 | 4 | 2 | null | 2021-04-12T12:28:09 | 2021-04-12T12:28:08 | null | UTF-8 | Java | false | false | 3,584 | java | package defpackage;
import android.content.Intent;
import android.text.TextUtils;
import java.util.List;
import java.util.Map;
import org.chromium.chrome.browser.ShortcutHelper;
/* renamed from: Kw1 reason: default package */
/* compiled from: chromium-OculusBrowser.apk-stable-281887347 */
public abstract class Kw1 {
/* JADX WARNING: Removed duplicated region for block: B:104:0x01db A[SYNTHETIC, Splitter:B:104:0x01db] */
/* JADX WARNING: Removed duplicated region for block: B:112:0x0206 */
/* JADX WARNING: Removed duplicated region for block: B:138:0x026f A[SYNTHETIC, Splitter:B:138:0x026f] */
/* JADX WARNING: Removed duplicated region for block: B:158:0x02bd */
/* JADX WARNING: Removed duplicated region for block: B:164:0x02d8 */
/* JADX WARNING: Removed duplicated region for block: B:172:0x031b */
/* JADX WARNING: Removed duplicated region for block: B:177:0x032a */
/* JADX WARNING: Removed duplicated region for block: B:188:0x0360 */
/* JADX WARNING: Removed duplicated region for block: B:189:0x0363 */
/* JADX WARNING: Removed duplicated region for block: B:192:0x0379 */
/* JADX WARNING: Removed duplicated region for block: B:193:0x0380 */
/* JADX WARNING: Removed duplicated region for block: B:228:0x0305 A[SYNTHETIC] */
/* JADX WARNING: Removed duplicated region for block: B:34:0x0097 */
/* JADX WARNING: Removed duplicated region for block: B:62:0x0109 */
/* JADX WARNING: Removed duplicated region for block: B:63:0x0115 */
/* JADX WARNING: Removed duplicated region for block: B:66:0x013e */
/* JADX WARNING: Removed duplicated region for block: B:67:0x0144 */
/* JADX WARNING: Removed duplicated region for block: B:77:0x0181 */
/* JADX WARNING: Removed duplicated region for block: B:84:0x0198 */
/* JADX WARNING: Removed duplicated region for block: B:98:0x01c1 */
/* Code decompiled incorrectly, please refer to instructions dump. */
public static defpackage.AbstractC3767mk a(android.content.Intent r51, java.lang.String r52, java.lang.String r53, int r54, boolean r55, boolean r56, defpackage.C5938zT0 r57, java.lang.String r58) {
/*
// Method dump skipped, instructions count: 1106
*/
throw new UnsupportedOperationException("Method not decompiled: defpackage.Kw1.a(android.content.Intent, java.lang.String, java.lang.String, int, boolean, boolean, zT0, java.lang.String):mk");
}
public static AbstractC3767mk b(Intent intent, String str, String str2, Zx1 zx1, Zx1 zx12, String str3, String str4, int i, int i2, int i3, long j, long j2, int i4, boolean z, boolean z2, String str5, int i5, String str6, String str7, int i6, Map map, C1758ax1 ax1, boolean z3, boolean z4, C5938zT0 zt0, List list, int i7) {
Integer num = null;
if (str7 == null || str5 == null) {
AbstractC1220Ua0.a("WebApkInfo", "Incomplete data provided: " + str7 + ", " + str5, new Object[0]);
return null;
}
String str8 = TextUtils.isEmpty(str) ? str7 : str;
String d = TextUtils.isEmpty(str2) ? ShortcutHelper.d(str7) : str2;
String a2 = AbstractC2103cy1.a(str5);
if (AbstractC2103cy1.b(j2)) {
num = Integer.valueOf((int) j2);
}
Yx1 yx1 = new Yx1(a2, str8, d, zx1, str3, str4, i, i2, i3, num, i4, false, z, z3);
Ew1 ew1 = new Ew1(str5, zx12, z2, i5, str6, str7, i6, map, ax1, z4, list, i7);
boolean b = AbstractC2103cy1.b(j);
return new C1932by1(intent, b ? (int) j : -1, b, zt0, yx1, ew1);
}
}
| [
"cyuubiapps@gmail.com"
] | cyuubiapps@gmail.com |
8273b0ceb82c462bd3f31535d5b18d562d80dcf6 | 797662760376118f495b0744345f42fade8339cf | /app/src/main/java/hu/bme/yjzygk/voyagerrecord40/intro/IntroActivity.java | 60db17f47f98365fdbe15f2423e82027ecc5267f | [] | no_license | KicsiMonkey/voyager-record-40 | a4c05724d84d23c1efa22f0bf0fcf2956c3d040f | 555f45e3baf51cf1c735a52b26c0b2c09029e934 | refs/heads/master | 2020-07-04T22:25:20.939720 | 2019-08-14T23:30:11 | 2019-08-14T23:30:11 | 202,440,280 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 4,354 | java | package hu.bme.yjzygk.voyagerrecord40.intro;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.view.ViewPager;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import android.widget.LinearLayout;
import android.widget.TextView;
import hu.bme.yjzygk.voyagerrecord40.MainActivity;
import hu.bme.yjzygk.voyagerrecord40.R;
import hu.bme.yjzygk.voyagerrecord40.util.FirstLaunchSharedPrefManager;
import hu.bme.yjzygk.voyagerrecord40.util.ImmersiveModeSwitcher;
public class IntroActivity extends AppCompatActivity {
private FirstLaunchSharedPrefManager firstLaunchSharedPrefManager;
private ViewPager viewPager;
private IntroPagerAdapter introPagerAdapter;
private LinearLayout dotsLayout;
private TextView[] dots;
private Button btnSkip, btnNext;
private int currentPageIdx;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
ImmersiveModeSwitcher.set(this);
firstLaunchSharedPrefManager = new FirstLaunchSharedPrefManager(this);
if (!firstLaunchSharedPrefManager.isFirstLaunch()) {
startMainActivity();
}
setContentView(R.layout.activity_intro);
viewPager = (ViewPager) findViewById(R.id.vpIntro);
introPagerAdapter = new IntroPagerAdapter(getSupportFragmentManager());
viewPager.setAdapter(introPagerAdapter);
viewPager.addOnPageChangeListener(new ViewPager.OnPageChangeListener() {
@Override
public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) {
}
@Override
public void onPageSelected(int position) {
refreshDots(position);
if (position == introPagerAdapter.getCount()-1) {
btnNext.setText(getString(R.string.start));
btnSkip.setVisibility(View.GONE);
} else {
btnNext.setText(getString(R.string.next));
btnSkip.setVisibility(View.VISIBLE);
}
}
@Override
public void onPageScrollStateChanged(int state) {
}
});
dotsLayout = (LinearLayout) findViewById(R.id.layoutDots);
btnSkip = (Button) findViewById(R.id.btn_skip);
btnSkip.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
startMainActivity();
}
});
btnNext = (Button) findViewById(R.id.btn_next);
btnNext.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
if (currentPageIdx == introPagerAdapter.getCount()-1) {
startMainActivity();
} else {
viewPager.setCurrentItem(currentPageIdx+1);
}
}
});
refreshDots(0);
}
@Override
protected void onStart() {
super.onStart();
ImmersiveModeSwitcher.set(this);
}
@Override
protected void onResume() {
super.onResume();
ImmersiveModeSwitcher.set(this);
}
@Override
protected void onPause() {
super.onPause();
ImmersiveModeSwitcher.set(this);
}
private void startMainActivity() {
firstLaunchSharedPrefManager.setFirstLaunch(false);
Intent intent = new Intent(IntroActivity.this, MainActivity.class);
startActivity(intent);
finish();
}
private void refreshDots(int newCurrentPageIdx) {
currentPageIdx = newCurrentPageIdx;
dots = new TextView[introPagerAdapter.getCount()];
int colorActive = getResources().getIntArray(R.array.array_dot_active)[newCurrentPageIdx];
int colorInactive = getResources().getIntArray(R.array.array_dot_inactive)[newCurrentPageIdx];
dotsLayout.removeAllViews();
for (int i = 0; i < dots.length; ++i) {
dots[i] = new TextView(this);
dots[i].setText("•");
dots[i].setTextSize(35);
dots[i].setTextColor( newCurrentPageIdx==i ? colorActive : colorInactive);
dotsLayout.addView(dots[i]);
}
}
}
| [
"geri.szarvas@gmail.com"
] | geri.szarvas@gmail.com |
2e8e16022360dcbbae09888d091abcba929ff298 | 8cfba8bdb08e5d71ac2ab9ab82d78ceb32dfe574 | /vlls-back/src/main/java/com/vlls/web/MailController.java | 97189dd4ba6b6f1307b08c86ec02ac05dd5609c9 | [
"Apache-2.0"
] | permissive | hiepha/vls | 0a8d259da17cf332850cef5b56d5c0d70a67781f | 6adb808d2e489d4da1e70942991507b23d261b2b | refs/heads/master | 2020-12-25T21:44:30.393562 | 2015-08-28T15:20:49 | 2015-08-28T15:20:50 | 34,941,523 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,008 | java | //package com.vlls.web;
//
//import com.vlls.exception.UnauthenticatedException;
//import com.vlls.service.MailService;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.core.env.PropertyResolver;
//import org.springframework.stereotype.Controller;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.servlet.ModelAndView;
//
//import javax.annotation.Resource;
//import javax.mail.MessagingException;
//import java.io.IOException;
//
///**
// * Created by Dell on 1/9/2015.
// */
//@Controller
//public class MailController {
//
// @Autowired
// private MailService mailService;
//
// @Resource(name = "vllsPropertyResolver")
// protected PropertyResolver vllsProperties;
//
// @RequestMapping(value = "/sendMail")
// public ModelAndView sendMail() throws IOException, MessagingException, UnauthenticatedException {
// mailService.sendUserReviseItemList();
// return null;
// }
//}
| [
"hiep.ha.se@gmail.com"
] | hiep.ha.se@gmail.com |
977b75105192ae9d292e653b2783807388e0d711 | 28f5932d01bfec24559a74c698150e7d52d39b00 | /src/main/java/com/github/muxfe/contrib/kdniao/KdniaoException.java | 4dd051431fffa62e003c76ff70f8ca57d8d1f70f | [
"MIT"
] | permissive | muxfe/kdniao-sdk | 1aac03f0fad02c0fa00e395761ba4b52514c1a14 | fe6067c1cebd85ae0a0f8db067635de150472d39 | refs/heads/develop | 2022-11-26T09:27:11.589225 | 2019-04-30T20:55:11 | 2019-04-30T20:55:11 | 180,269,405 | 0 | 1 | MIT | 2022-11-16T11:45:24 | 2019-04-09T02:30:52 | Java | UTF-8 | Java | false | false | 247 | java | package com.github.muxfe.contrib.kdniao;
public class KdniaoException extends RuntimeException {
KdniaoException(String message) {
super(message);
}
KdniaoException(String message, Throwable cause) {
super(message, cause);
}
}
| [
"airtial@gmail.com"
] | airtial@gmail.com |
9d392a06edbe776fd9c8098dd0a82a68a516b178 | 1af7473505a6be4360bd8049fce80573ee95b67e | /src/com/git/TestGitDemo2.java | c82358ee04b115294a1e66091c1d46d07ae5ebc1 | [] | no_license | panxinxiu/testgit | 2629d2a982cb50a382344399189e3dc73da00ce2 | ddbdc4aa1f0cb8302d243cfd1898a905a53e0ff4 | refs/heads/master | 2023-05-01T18:36:13.053180 | 2021-05-16T01:52:52 | 2021-05-16T01:52:52 | 367,763,851 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 190 | java | package com.git;
public class TestGitDemo2 {
public static void main(String[] args) {
System.out.println("这是TestGitDemo2");
System.out.println("修改了");
}
}
| [
"2811394260@qq.com"
] | 2811394260@qq.com |
123aa6f28c870693f40e29b56013f6681cf92764 | fd1841e3cf7324ccc8cd22c14bd4fbf1e5119d29 | /Assignment/managers/ExtentManager.java | 94d10a70f884286c9e0be18c0584d638b825ac21 | [] | no_license | vijaykumar457/Assignment | bc6bd713f24390ec937a7f5f3c62b9ed44696be3 | f3d3e3278dbe8f28cff17380753669a5ece2a6f7 | refs/heads/master | 2023-06-02T20:57:00.534374 | 2021-06-22T10:55:47 | 2021-06-22T10:55:47 | 379,234,849 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,412 | java | package com.managers;
import java.io.File;
import com.aventstack.extentreports.ExtentReports;
import com.aventstack.extentreports.reporter.ExtentHtmlReporter;
import com.aventstack.extentreports.reporter.configuration.Theme;
public class ExtentManager {
private static ExtentReports extent;
private static String reportFileName = "Test-Automaton-Report"+".html";
private static String fileSeperator = System.getProperty("file.separator");
private static String reportFilepath = System.getProperty("user.dir") +fileSeperator+ "TestReport";
private static String reportFileLocation = reportFilepath +fileSeperator+ reportFileName;
public static ExtentReports getInstance() {
if (extent == null)
createInstance();
return extent;
}
//Create an extent report instance
public static ExtentReports createInstance() {
String fileName = getReportPath(reportFilepath);
ExtentHtmlReporter htmlReporter = new ExtentHtmlReporter(fileName);
// htmlReporter.config().setTestViewChartLocation(ChartLocation.BOTTOM);
// htmlReporter.config().setChartVisibilityOnOpen(true);
htmlReporter.config().setTheme(Theme.STANDARD);
htmlReporter.config().setDocumentTitle(reportFileName);
htmlReporter.config().setEncoding("utf-8");
htmlReporter.config().setReportName(reportFileName);
htmlReporter.config().setTimeStampFormat("EEEE, MMMM dd, yyyy, hh:mm a '('zzz')'");
extent = new ExtentReports();
extent.attachReporter(htmlReporter);
//Set environment details
extent.setSystemInfo("OS", "Windows");
extent.setSystemInfo("AUT", "QA");
return extent;
}
//Create the report path
private static String getReportPath (String path) {
File testDirectory = new File(path);
if (!testDirectory.exists()) {
if (testDirectory.mkdir()) {
System.out.println("Directory: " + path + " is created!" );
return reportFileLocation;
} else {
System.out.println("Failed to create directory: " + path);
return System.getProperty("user.dir");
}
} else {
System.out.println("Directory already exists: " + path);
}
return reportFileLocation;
}
} | [
"User1@NEWLENOVO"
] | User1@NEWLENOVO |
7a01d51a5e87a2612cb6431fc99ebff60f449d36 | fa8cd7c0b05e03567299a9c5a6bf19e11903b928 | /src/robert/model/StaticStructure.java | 5f36aa7f4f0da278e28d780029dfbd0b2652dd51 | [] | no_license | robson021/Conways-Game-of-Life | 892218c55afeaf79e46c4b033efc9b83fa57338c | 613068a1dedbc50b6056c9d9c3182b452e6ab4f9 | refs/heads/master | 2021-01-17T23:37:05.169051 | 2016-05-08T17:38:15 | 2016-05-08T17:38:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 787 | java | package robert.model;
import robert.gui.CellPane;
import java.awt.*;
import java.util.List;
/**
* Created by robert on 25.04.16.
*/
public class StaticStructure extends AbstractStructure {
/*private static final Color[] colors = new Color[]{Color.YELLOW, Color.ORANGE,
Color.CYAN, Color.PINK.darker(), Color.WHITE, Color.MAGENTA};*/
public static final int SIZE = 3;
public StaticStructure(List<CellPane> cells) {
super(cells, StructureType.STATIC);
}
@Override
public void move() {
//System.out.println("Static structure can not move.");
for (CellPane c : this.myCells) {
//c.changeColor(colors[random.nextInt(colors.length)]);
c.changeColor(Color.MAGENTA.darker().darker());
}
}
}
| [
"nowak021@gmail.com"
] | nowak021@gmail.com |
0103a9079ab881d2f2b9ad7040e4dd47a48d3342 | a3e9de23131f569c1632c40e215c78e55a78289a | /alipay/alipay_sdk/src/main/java/com/alipay/api/request/ZhimaCreditPeContractSignpageInitializeRequest.java | 8a66c6d607f7c0eaa6c8afc5050953d5c514ba25 | [] | no_license | P79N6A/java_practice | 80886700ffd7c33c2e9f4b202af7bb29931bf03d | 4c7abb4cde75262a60e7b6d270206ee42bb57888 | refs/heads/master | 2020-04-14T19:55:52.365544 | 2019-01-04T07:39:40 | 2019-01-04T07:39:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,074 | java | package com.alipay.api.request;
import com.alipay.api.domain.ZhimaCreditPeContractSignpageInitializeModel;
import java.util.Map;
import com.alipay.api.AlipayRequest;
import com.alipay.api.internal.util.AlipayHashMap;
import com.alipay.api.response.ZhimaCreditPeContractSignpageInitializeResponse;
import com.alipay.api.AlipayObject;
/**
* ALIPAY API: zhima.credit.pe.contract.signpage.initialize request
*
* @author auto create
* @since 1.0, 2018-07-27 18:15:00
*/
public class ZhimaCreditPeContractSignpageInitializeRequest implements AlipayRequest<ZhimaCreditPeContractSignpageInitializeResponse> {
private AlipayHashMap udfParams; // add user-defined text parameters
private String apiVersion="1.0";
/**
* 获取签约页面
*/
private String bizContent;
public void setBizContent(String bizContent) {
this.bizContent = bizContent;
}
public String getBizContent() {
return this.bizContent;
}
private String terminalType;
private String terminalInfo;
private String prodCode;
private String notifyUrl;
private String returnUrl;
private boolean needEncrypt=false;
private AlipayObject bizModel=null;
public String getNotifyUrl() {
return this.notifyUrl;
}
public void setNotifyUrl(String notifyUrl) {
this.notifyUrl = notifyUrl;
}
public String getReturnUrl() {
return this.returnUrl;
}
public void setReturnUrl(String returnUrl) {
this.returnUrl = returnUrl;
}
public String getApiVersion() {
return this.apiVersion;
}
public void setApiVersion(String apiVersion) {
this.apiVersion = apiVersion;
}
public void setTerminalType(String terminalType){
this.terminalType=terminalType;
}
public String getTerminalType(){
return this.terminalType;
}
public void setTerminalInfo(String terminalInfo){
this.terminalInfo=terminalInfo;
}
public String getTerminalInfo(){
return this.terminalInfo;
}
public void setProdCode(String prodCode) {
this.prodCode=prodCode;
}
public String getProdCode() {
return this.prodCode;
}
public String getApiMethodName() {
return "zhima.credit.pe.contract.signpage.initialize";
}
public Map<String, String> getTextParams() {
AlipayHashMap txtParams = new AlipayHashMap();
txtParams.put("biz_content", this.bizContent);
if(udfParams != null) {
txtParams.putAll(this.udfParams);
}
return txtParams;
}
public void putOtherTextParam(String key, String value) {
if(this.udfParams == null) {
this.udfParams = new AlipayHashMap();
}
this.udfParams.put(key, value);
}
public Class<ZhimaCreditPeContractSignpageInitializeResponse> getResponseClass() {
return ZhimaCreditPeContractSignpageInitializeResponse.class;
}
public boolean isNeedEncrypt() {
return this.needEncrypt;
}
public void setNeedEncrypt(boolean needEncrypt) {
this.needEncrypt=needEncrypt;
}
public AlipayObject getBizModel() {
return this.bizModel;
}
public void setBizModel(AlipayObject bizModel) {
this.bizModel=bizModel;
}
}
| [
"jiaojianjun1991@gmail.com"
] | jiaojianjun1991@gmail.com |
1447368f75457edee74f4fddf6eab8243645ac16 | 4cc844e111d9ed0d35b35f785560dcd80adfe842 | /src/main/java/com/marekmaj/learn/flink/kafka/PopularPlace.java | 9d254fd583936dc598c50c46892f1924b1578225 | [] | no_license | MarekMaj/playing-with-flink | dda2bd5360c7684097aaf4c88f70ae7c7f70f785 | 053af33a73d5a7c2ac1d43283acf7d4331944730 | refs/heads/master | 2021-01-10T22:41:11.490020 | 2016-10-09T02:02:29 | 2016-10-09T02:02:29 | 70,368,065 | 2 | 1 | null | null | null | null | UTF-8 | Java | false | false | 2,168 | java | package com.marekmaj.learn.flink.kafka;
import org.apache.flink.api.java.tuple.Tuple5;
import java.time.Instant;
import java.time.LocalDateTime;
import java.time.ZoneId;
import java.time.ZonedDateTime;
import java.util.Objects;
public class PopularPlace {
private static final ZoneId ZONE_ID = ZoneId.systemDefault();
public Float longitude;
public Float latitude;
public Boolean isStart;
public LocalDateTime processTime;
public Integer count;
public PopularPlace() {
}
public PopularPlace(Float longitude, Float latitude, Boolean isStart, LocalDateTime processTime, Integer count) {
this.longitude = longitude;
this.latitude = latitude;
this.isStart = isStart;
this.processTime = processTime;
this.count = count;
}
public static PopularPlace from(Tuple5<Float, Float, Long, Boolean, Integer> tuple) {
Instant instant = Instant.ofEpochMilli(tuple.f2);
LocalDateTime dateTime = LocalDateTime.ofInstant(instant, ZONE_ID);
return new PopularPlace(tuple.f0, tuple.f1, tuple.f3, dateTime, tuple.f4);
}
// TODO pewnie to mogloby byc lepsze...
@Override
public String toString() {
return "PopularPlace{" +
"longitude=" + longitude +
", latitude=" + latitude +
", isStart=" + isStart +
", processTime=" + ZonedDateTime.of(processTime, ZONE_ID).toInstant().getEpochSecond() +
", count=" + count +
'}';
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
PopularPlace that = (PopularPlace) o;
return Objects.equals(longitude, that.longitude) &&
Objects.equals(latitude, that.latitude) &&
Objects.equals(isStart, that.isStart) &&
Objects.equals(processTime, that.processTime) &&
Objects.equals(count, that.count);
}
@Override
public int hashCode() {
return Objects.hash(longitude, latitude, isStart, processTime, count);
}
}
| [
"marekmaj2@gmail.com"
] | marekmaj2@gmail.com |
21fea570a9e2afac01276da721278dd870b16d5c | 44ab727e179f0ff85a54a97be9206a4bc3337d3c | /build/flutter_beacon/generated/source/r/debug/androidx/legacy/coreui/R.java | 4a9a61553bc7fdab22e29c1d5ca537fc62d13dba | [] | no_license | here-here/joshApp2.0 | cdc2259dcff27e4ee0764c5a81e4183ffa622642 | f39f2a8650da50ef53e7ede0565c682752bf0ef5 | refs/heads/master | 2020-09-14T06:18:39.635962 | 2019-12-02T23:47:14 | 2019-12-02T23:47:14 | 223,045,646 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 11,345 | java | /* AUTO-GENERATED FILE. DO NOT MODIFY.
*
* This class was automatically generated by the
* gradle plugin from the resource data it found. It
* should not be modified by hand.
*/
package androidx.legacy.coreui;
public final class R {
public static final class attr {
public static int alpha = 0x7f040001;
public static int coordinatorLayoutStyle = 0x7f040002;
public static int font = 0x7f040003;
public static int fontProviderAuthority = 0x7f040004;
public static int fontProviderCerts = 0x7f040005;
public static int fontProviderFetchStrategy = 0x7f040006;
public static int fontProviderFetchTimeout = 0x7f040007;
public static int fontProviderPackage = 0x7f040008;
public static int fontProviderQuery = 0x7f040009;
public static int fontStyle = 0x7f04000a;
public static int fontVariationSettings = 0x7f04000b;
public static int fontWeight = 0x7f04000c;
public static int keylines = 0x7f04000d;
public static int layout_anchor = 0x7f04000e;
public static int layout_anchorGravity = 0x7f04000f;
public static int layout_behavior = 0x7f040010;
public static int layout_dodgeInsetEdges = 0x7f040011;
public static int layout_insetEdge = 0x7f040012;
public static int layout_keyline = 0x7f040013;
public static int statusBarBackground = 0x7f040014;
public static int ttcIndex = 0x7f040015;
}
public static final class color {
public static int notification_action_color_filter = 0x7f060001;
public static int notification_icon_bg_color = 0x7f060002;
public static int ripple_material_light = 0x7f060005;
public static int secondary_text_default_material_light = 0x7f060007;
}
public static final class dimen {
public static int compat_button_inset_horizontal_material = 0x7f080001;
public static int compat_button_inset_vertical_material = 0x7f080002;
public static int compat_button_padding_horizontal_material = 0x7f080003;
public static int compat_button_padding_vertical_material = 0x7f080004;
public static int compat_control_corner_material = 0x7f080005;
public static int compat_notification_large_icon_max_height = 0x7f080006;
public static int compat_notification_large_icon_max_width = 0x7f080007;
public static int notification_action_icon_size = 0x7f080008;
public static int notification_action_text_size = 0x7f080009;
public static int notification_big_circle_margin = 0x7f08000a;
public static int notification_content_margin_start = 0x7f08000b;
public static int notification_large_icon_height = 0x7f08000c;
public static int notification_large_icon_width = 0x7f08000d;
public static int notification_main_column_padding_top = 0x7f08000e;
public static int notification_media_narrow_margin = 0x7f08000f;
public static int notification_right_icon_size = 0x7f080010;
public static int notification_right_side_padding_top = 0x7f080011;
public static int notification_small_icon_background_padding = 0x7f080012;
public static int notification_small_icon_size_as_large = 0x7f080013;
public static int notification_subtext_size = 0x7f080014;
public static int notification_top_pad = 0x7f080015;
public static int notification_top_pad_large_text = 0x7f080016;
}
public static final class drawable {
public static int notification_action_background = 0x7f090001;
public static int notification_bg = 0x7f090002;
public static int notification_bg_low = 0x7f090003;
public static int notification_bg_low_normal = 0x7f090004;
public static int notification_bg_low_pressed = 0x7f090005;
public static int notification_bg_normal = 0x7f090006;
public static int notification_bg_normal_pressed = 0x7f090007;
public static int notification_icon_background = 0x7f090008;
public static int notification_template_icon_bg = 0x7f090009;
public static int notification_template_icon_low_bg = 0x7f09000a;
public static int notification_tile_bg = 0x7f09000b;
public static int notify_panel_notification_icon_bg = 0x7f09000c;
}
public static final class id {
public static int action_container = 0x7f0c0002;
public static int action_divider = 0x7f0c0003;
public static int action_image = 0x7f0c0004;
public static int action_text = 0x7f0c0005;
public static int actions = 0x7f0c0006;
public static int async = 0x7f0c0007;
public static int blocking = 0x7f0c0008;
public static int bottom = 0x7f0c0009;
public static int chronometer = 0x7f0c000b;
public static int end = 0x7f0c000c;
public static int forever = 0x7f0c000e;
public static int icon = 0x7f0c000f;
public static int icon_group = 0x7f0c0010;
public static int info = 0x7f0c0011;
public static int italic = 0x7f0c0012;
public static int left = 0x7f0c0013;
public static int line1 = 0x7f0c0014;
public static int line3 = 0x7f0c0015;
public static int none = 0x7f0c0017;
public static int normal = 0x7f0c0018;
public static int notification_background = 0x7f0c0019;
public static int notification_main_column = 0x7f0c001a;
public static int notification_main_column_container = 0x7f0c001b;
public static int right = 0x7f0c001c;
public static int right_icon = 0x7f0c001d;
public static int right_side = 0x7f0c001e;
public static int start = 0x7f0c001f;
public static int tag_transition_group = 0x7f0c0021;
public static int tag_unhandled_key_event_manager = 0x7f0c0022;
public static int tag_unhandled_key_listeners = 0x7f0c0023;
public static int text = 0x7f0c0024;
public static int text2 = 0x7f0c0025;
public static int time = 0x7f0c0026;
public static int title = 0x7f0c0027;
public static int top = 0x7f0c0028;
}
public static final class integer {
public static int status_bar_notification_info_maxnum = 0x7f0d0002;
}
public static final class layout {
public static int notification_action = 0x7f0f0001;
public static int notification_action_tombstone = 0x7f0f0002;
public static int notification_template_custom_big = 0x7f0f0009;
public static int notification_template_icon_group = 0x7f0f000a;
public static int notification_template_part_chronometer = 0x7f0f000e;
public static int notification_template_part_time = 0x7f0f000f;
}
public static final class string {
public static int status_bar_notification_info_overflow = 0x7f150001;
}
public static final class style {
public static int TextAppearance_Compat_Notification = 0x7f160001;
public static int TextAppearance_Compat_Notification_Info = 0x7f160002;
public static int TextAppearance_Compat_Notification_Line2 = 0x7f160004;
public static int TextAppearance_Compat_Notification_Time = 0x7f160007;
public static int TextAppearance_Compat_Notification_Title = 0x7f160009;
public static int Widget_Compat_NotificationActionContainer = 0x7f16000b;
public static int Widget_Compat_NotificationActionText = 0x7f16000c;
public static int Widget_Support_CoordinatorLayout = 0x7f16000d;
}
public static final class styleable {
public static int[] ColorStateListItem = { 0x7f040001, 0x0101031f, 0x010101a5 };
public static int ColorStateListItem_alpha = 0;
public static int ColorStateListItem_android_alpha = 1;
public static int ColorStateListItem_android_color = 2;
public static int[] CoordinatorLayout = { 0x7f04000d, 0x7f040014 };
public static int CoordinatorLayout_keylines = 0;
public static int CoordinatorLayout_statusBarBackground = 1;
public static int[] CoordinatorLayout_Layout = { 0x010100b3, 0x7f04000e, 0x7f04000f, 0x7f040010, 0x7f040011, 0x7f040012, 0x7f040013 };
public static int CoordinatorLayout_Layout_android_layout_gravity = 0;
public static int CoordinatorLayout_Layout_layout_anchor = 1;
public static int CoordinatorLayout_Layout_layout_anchorGravity = 2;
public static int CoordinatorLayout_Layout_layout_behavior = 3;
public static int CoordinatorLayout_Layout_layout_dodgeInsetEdges = 4;
public static int CoordinatorLayout_Layout_layout_insetEdge = 5;
public static int CoordinatorLayout_Layout_layout_keyline = 6;
public static int[] FontFamily = { 0x7f040004, 0x7f040005, 0x7f040006, 0x7f040007, 0x7f040008, 0x7f040009 };
public static int FontFamily_fontProviderAuthority = 0;
public static int FontFamily_fontProviderCerts = 1;
public static int FontFamily_fontProviderFetchStrategy = 2;
public static int FontFamily_fontProviderFetchTimeout = 3;
public static int FontFamily_fontProviderPackage = 4;
public static int FontFamily_fontProviderQuery = 5;
public static int[] FontFamilyFont = { 0x01010532, 0x0101053f, 0x01010570, 0x01010533, 0x0101056f, 0x7f040003, 0x7f04000a, 0x7f04000b, 0x7f04000c, 0x7f040015 };
public static int FontFamilyFont_android_font = 0;
public static int FontFamilyFont_android_fontStyle = 1;
public static int FontFamilyFont_android_fontVariationSettings = 2;
public static int FontFamilyFont_android_fontWeight = 3;
public static int FontFamilyFont_android_ttcIndex = 4;
public static int FontFamilyFont_font = 5;
public static int FontFamilyFont_fontStyle = 6;
public static int FontFamilyFont_fontVariationSettings = 7;
public static int FontFamilyFont_fontWeight = 8;
public static int FontFamilyFont_ttcIndex = 9;
public static int[] GradientColor = { 0x0101020b, 0x010101a2, 0x010101a3, 0x0101019e, 0x01010512, 0x01010513, 0x010101a4, 0x0101019d, 0x01010510, 0x01010511, 0x01010201, 0x010101a1 };
public static int GradientColor_android_centerColor = 0;
public static int GradientColor_android_centerX = 1;
public static int GradientColor_android_centerY = 2;
public static int GradientColor_android_endColor = 3;
public static int GradientColor_android_endX = 4;
public static int GradientColor_android_endY = 5;
public static int GradientColor_android_gradientRadius = 6;
public static int GradientColor_android_startColor = 7;
public static int GradientColor_android_startX = 8;
public static int GradientColor_android_startY = 9;
public static int GradientColor_android_tileMode = 10;
public static int GradientColor_android_type = 11;
public static int[] GradientColorItem = { 0x010101a5, 0x01010514 };
public static int GradientColorItem_android_color = 0;
public static int GradientColorItem_android_offset = 1;
}
}
| [
"stevenmlittle@knights.ucf.edu"
] | stevenmlittle@knights.ucf.edu |
7f387e4e1d67f8d2f673bcc035417ee5e0778e56 | ad402915f7fc651328a5c21e98b3dc796602fa8d | /test-app/fabric-gateway-java/src/test/java/org/hyperledger/fabric/gateway/impl/GatewayTest.java | ec3398225668595a05c26ffd6f65da78ee980b45 | [] | no_license | stan336/fabric-test-example | 46e56c5a105628bd1fa69c4f5320e5f31b4e5e33 | 9d5bb87f081dad09f4de63877b9bb9330db2b7c4 | refs/heads/master | 2022-11-22T16:50:57.622576 | 2020-08-01T17:41:47 | 2020-08-01T17:41:47 | 284,486,937 | 1 | 0 | null | 2020-08-02T15:18:47 | 2020-08-02T15:18:46 | null | UTF-8 | Java | false | false | 3,123 | java | /*
* Copyright 2019 IBM All Rights Reserved.
*
* SPDX-License-Identifier: Apache-2.0
*/
package org.hyperledger.fabric.gateway.impl;
import org.hyperledger.fabric.gateway.Gateway;
import org.hyperledger.fabric.gateway.GatewayException;
import org.hyperledger.fabric.gateway.Network;
import org.hyperledger.fabric.gateway.TestUtils;
import org.hyperledger.fabric.sdk.Channel;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.assertThatThrownBy;
/**
* 用于检测fabric网络是否正常
*/
public class GatewayTest {
private static final TestUtils testUtils = TestUtils.getInstance();
private Gateway.Builder builder = null;
@BeforeEach
public void beforeEach() throws Exception {
builder = testUtils.newGatewayBuilder();
}
/**
* 类似NetworkTest.java中,测试channel是否存在
* 输入正确的channel
*/
@Test
public void testGetNetworkFromConfig() {
try (Gateway gateway = builder.connect()) {
Network network = gateway.getNetwork("mychannel");
assertThat(network.getChannel().getName()).isEqualTo("mychannel");
}
}
/**
* 类似NetworkTest.java中,测试channel是否存在,同上
*/
@Test
public void testGetMychannelNetwork() {
try (Gateway gateway = builder.connect()) {
Network network = gateway.getNetwork("mychannel");
assertThat(network.getChannel().getName()).isEqualTo("mychannel");
}
}
/**
* 两次读取mychannel,第二次是内存中读取
*/
@Test
public void testGetCachedNetwork() {
try (Gateway gateway = builder.connect()) {
Network network = gateway.getNetwork("mychannel");
Network network2 = gateway.getNetwork("mychannel");
assertThat(network).isSameAs(network2);
}
}
/**
* 输入“”字符串,看是否读取channel正常
*/
@Test
public void testGetNetworkEmptyString() {
try (Gateway gateway = builder.connect()) {
assertThatThrownBy(() -> gateway.getNetwork(""))
.isInstanceOf(IllegalArgumentException.class)
.hasMessage("Channel name must be a non-empty string");
}
}
/**
* 输入null字符串,看是否读取channel正常
*/
@Test
public void testGetNetworkNullString() {
try (Gateway gateway = builder.connect()) {
assertThatThrownBy(() -> gateway.getNetwork(null))
.isInstanceOf(IllegalArgumentException.class)
.hasMessage("Channel name must be a non-empty string");
}
}
/**
* 测试能否正常关闭网络连接
*/
@Test
public void testCloseGatewayClosesNetworks() {
Gateway gateway = builder.connect();
Channel channel = gateway.getNetwork("assumed").getChannel();
gateway.close();
assertThat(channel.isShutdown()).isTrue();
}
}
| [
"a9h8b4a9h8b4"
] | a9h8b4a9h8b4 |
56f1e8eb6b347d8d36092fb3378bf7d089c8325c | 5120f6a7701a29f8e2eb61f384b436514087fd42 | /org/apache/catalina/core/AprStatus.java | 36b9c3005b6a092a581fe3721413b11eb1a97776 | [] | no_license | joellobo/tomcat-embed-core-10.0.6 | 4dbb1c4ed9b88921e7248ee2ee78542f9a80c7d3 | 7b95a7a0b0f719d7bb65b252b1153b43d6c3d198 | refs/heads/main | 2023-05-02T16:23:20.804573 | 2021-05-21T12:47:21 | 2021-05-21T12:47:21 | 369,532,705 | 1 | 1 | null | null | null | null | UTF-8 | Java | false | false | 2,039 | java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.catalina.core;
/**
* Holds APR status without the need to load other classes.
*/
public class AprStatus {
private static volatile boolean aprInitialized = false;
private static volatile boolean aprAvailable = false;
private static volatile boolean useOpenSSL = true;
private static volatile boolean instanceCreated = false;
public static boolean isAprInitialized() {
return aprInitialized;
}
public static boolean isAprAvailable() {
return aprAvailable;
}
public static boolean getUseOpenSSL() {
return useOpenSSL;
}
public static boolean isInstanceCreated() {
return instanceCreated;
}
public static void setAprInitialized(boolean aprInitialized) {
AprStatus.aprInitialized = aprInitialized;
}
public static void setAprAvailable(boolean aprAvailable) {
AprStatus.aprAvailable = aprAvailable;
}
public static void setUseOpenSSL(boolean useOpenSSL) {
AprStatus.useOpenSSL = useOpenSSL;
}
public static void setInstanceCreated(boolean instanceCreated) {
AprStatus.instanceCreated = instanceCreated;
}
}
| [
"joel.brito-neto@serpro.gov.br"
] | joel.brito-neto@serpro.gov.br |
e4b58e096f02f51a8ebc4e9c00c89397541bf4cd | db33daeeac18e038cf0820e01ffba9d675ab036f | /src/main/java/anacom/shared/exceptions/phone/invalidState/InvalidStateMakeVideo.java | dd9a1ef944aa714d1f373071f672be9eed6f1a0f | [] | no_license | alex-quiterio/quoruns-protocol | 46a57e3683b34ff0f06d6b796d2b4cb35555710f | f8047bdc3150c059b6ff0934247402f1fa2aa87b | refs/heads/master | 2020-03-28T18:57:52.645005 | 2013-02-13T23:13:32 | 2013-02-13T23:13:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 499 | java | package anacom.shared.exceptions.phone.invalidState;
public class InvalidStateMakeVideo extends InvalidState {
private static final long serialVersionUID = 1L;
public InvalidStateMakeVideo() {}
/**
* Constructor
* @param number the number of the Phone that made the video call
* @param state a String representation of the state the Phone was in
* when he tried to make the call
*/
public InvalidStateMakeVideo(String number, String state) {
super(number, state);
}
}
| [
"quiterio7@gmail.com"
] | quiterio7@gmail.com |
20036bc8186edec9c6a7dfcbc40f01c41804bd29 | 4b5b8de63e3d2bef4833a830440885a6045a9306 | /movieapp-api/target/generated-sources/upgrad/movieapp/api/model/TheatreShowType.java | 49db4088f6652ebf95631e51656668306255c1fc | [] | no_license | somijaiswal23/Moviepp-Backend | 2283c21b022f62edca8f2c37be037fb82b369d53 | eb089d5062d1eae1682c160d3d8dbf6eb653aa6a | refs/heads/master | 2020-04-24T07:38:41.742411 | 2018-08-30T07:14:50 | 2018-08-30T07:14:50 | 171,804,644 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 5,827 | java | package upgrad.movieapp.api.model;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.UUID;
import upgrad.movieapp.api.model.LanguageType;
import upgrad.movieapp.api.model.MovieSummaryType;
import org.springframework.validation.annotation.Validated;
import javax.validation.Valid;
import javax.validation.constraints.*;
/**
* TheatreShowType
*/
@Validated
@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2018-08-29T15:54:02.515+05:30")
public class TheatreShowType {
@JsonProperty("id")
private UUID id = null;
@JsonProperty("movie")
private MovieSummaryType movie = null;
@JsonProperty("show_timing")
private String showTiming = null;
@JsonProperty("language")
private LanguageType language = null;
@JsonProperty("unit_price")
private Float unitPrice = null;
@JsonProperty("total_seats")
private Integer totalSeats = null;
@JsonProperty("available_seats")
private Integer availableSeats = null;
public TheatreShowType id(UUID id) {
this.id = id;
return this;
}
/**
* Unique identifier of the show in a standard UUID format
* @return id
**/
@ApiModelProperty(value = "Unique identifier of the show in a standard UUID format")
@Valid
public UUID getId() {
return id;
}
public void setId(UUID id) {
this.id = id;
}
public TheatreShowType movie(MovieSummaryType movie) {
this.movie = movie;
return this;
}
/**
* Get movie
* @return movie
**/
@ApiModelProperty(value = "")
@Valid
public MovieSummaryType getMovie() {
return movie;
}
public void setMovie(MovieSummaryType movie) {
this.movie = movie;
}
public TheatreShowType showTiming(String showTiming) {
this.showTiming = showTiming;
return this;
}
/**
* Show timing in yyyy-MM-ddTHH:MM format
* @return showTiming
**/
@ApiModelProperty(value = "Show timing in yyyy-MM-ddTHH:MM format")
public String getShowTiming() {
return showTiming;
}
public void setShowTiming(String showTiming) {
this.showTiming = showTiming;
}
public TheatreShowType language(LanguageType language) {
this.language = language;
return this;
}
/**
* Get language
* @return language
**/
@ApiModelProperty(value = "")
@Valid
public LanguageType getLanguage() {
return language;
}
public void setLanguage(LanguageType language) {
this.language = language;
}
public TheatreShowType unitPrice(Float unitPrice) {
this.unitPrice = unitPrice;
return this;
}
/**
* Unit price of the movie (for e.g. 200.00)
* @return unitPrice
**/
@ApiModelProperty(value = "Unit price of the movie (for e.g. 200.00)")
public Float getUnitPrice() {
return unitPrice;
}
public void setUnitPrice(Float unitPrice) {
this.unitPrice = unitPrice;
}
public TheatreShowType totalSeats(Integer totalSeats) {
this.totalSeats = totalSeats;
return this;
}
/**
* Total number that this show can host
* @return totalSeats
**/
@ApiModelProperty(value = "Total number that this show can host")
public Integer getTotalSeats() {
return totalSeats;
}
public void setTotalSeats(Integer totalSeats) {
this.totalSeats = totalSeats;
}
public TheatreShowType availableSeats(Integer availableSeats) {
this.availableSeats = availableSeats;
return this;
}
/**
* Total available seats that this show still has
* @return availableSeats
**/
@ApiModelProperty(value = "Total available seats that this show still has")
public Integer getAvailableSeats() {
return availableSeats;
}
public void setAvailableSeats(Integer availableSeats) {
this.availableSeats = availableSeats;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
TheatreShowType theatreShowType = (TheatreShowType) o;
return Objects.equals(this.id, theatreShowType.id) &&
Objects.equals(this.movie, theatreShowType.movie) &&
Objects.equals(this.showTiming, theatreShowType.showTiming) &&
Objects.equals(this.language, theatreShowType.language) &&
Objects.equals(this.unitPrice, theatreShowType.unitPrice) &&
Objects.equals(this.totalSeats, theatreShowType.totalSeats) &&
Objects.equals(this.availableSeats, theatreShowType.availableSeats);
}
@Override
public int hashCode() {
return Objects.hash(id, movie, showTiming, language, unitPrice, totalSeats, availableSeats);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class TheatreShowType {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" movie: ").append(toIndentedString(movie)).append("\n");
sb.append(" showTiming: ").append(toIndentedString(showTiming)).append("\n");
sb.append(" language: ").append(toIndentedString(language)).append("\n");
sb.append(" unitPrice: ").append(toIndentedString(unitPrice)).append("\n");
sb.append(" totalSeats: ").append(toIndentedString(totalSeats)).append("\n");
sb.append(" availableSeats: ").append(toIndentedString(availableSeats)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
| [
"versioncontrol@upgrad.com"
] | versioncontrol@upgrad.com |
fdfe268580583530e2909bc6520f300f29c30cc6 | 028524dee876858dbc1b136488c5561dbcdd8b97 | /src/main/java/com/sonveer/cab/sharing/controller/Controller.java | d88da0947528bc17931bfb2b64ca81e208304481 | [] | no_license | sonveer2012/cab-booking | 3abf7df62fb1ff62964c64fea3fa2855ff22e258 | 7175dc7ecbd7406ec7fad5a2e958de39aea0d4c3 | refs/heads/main | 2023-07-15T22:14:34.809296 | 2021-08-18T17:32:59 | 2021-08-18T17:32:59 | 397,605,953 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 5,820 | java | package com.sonveer.cab.sharing.controller;
import com.sonveer.cab.sharing.entity.request.OfferedRide;
import com.sonveer.cab.sharing.entity.request.RequestRide;
import com.sonveer.cab.sharing.entity.request.RequestVehicleObject;
import com.sonveer.cab.sharing.entity.request.User;
import com.sonveer.cab.sharing.entity.request.UserStats;
import com.sonveer.cab.sharing.entity.response.ResponseMessage;
import com.sonveer.cab.sharing.entity.response.SelectResponse;
import com.sonveer.cab.sharing.entity.response.SelectedVehicleInfo;
import com.sonveer.cab.sharing.errors.BadRequest;
import com.sonveer.cab.sharing.errors.AlreadyInActiveBookingException;
import com.sonveer.cab.sharing.errors.ResourceAlreadyExistException;
import com.sonveer.cab.sharing.errors.ResourceNotFoundException;
import com.sonveer.cab.sharing.services.ResourceService;
import com.sonveer.cab.sharing.services.RideService;
import com.sonveer.cab.sharing.services.StatService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
import java.util.Map;
import javax.validation.Valid;
import javax.websocket.server.PathParam;
@RestController
@RequestMapping("/api/v1")
public class Controller {
@Autowired
private StatService statService;
@Autowired
private ResourceService resourceService;
@Autowired
private RideService rideService;
@PutMapping("/add-user")
public ResponseEntity<ResponseMessage> addUser(@Valid @RequestBody User user) {
ResponseMessage responseMessage;
int statusCode;
String message;
try {
resourceService.addUser(user);
message = "User has been added";
statusCode = 201;
}
catch (ResourceAlreadyExistException resourceAlreadyExistException) {
message = resourceAlreadyExistException.getMessage();
statusCode = 405;
}
return ResponseEntity.status(statusCode).body(new ResponseMessage(message));
}
@PutMapping("/add-vehicle")
public ResponseEntity<ResponseMessage> addVehicle(@Valid @RequestBody RequestVehicleObject vehicle) {
ResponseMessage responseMessage;
int statusCode;
String message;
try {
resourceService.addVehicle(vehicle);
statusCode = 201;
message = "Vehicle has been added";
}
catch (ResourceAlreadyExistException resourceAlreadyExistException) {
statusCode = 405;
message = resourceAlreadyExistException.getMessage();
}
return ResponseEntity.status(statusCode).body(new ResponseMessage(message));
}
@PostMapping("/offer-ride")
public ResponseEntity<ResponseMessage> offerRide(@Valid @RequestBody OfferedRide OfferedRide) {
String message;
int statusCode;
try {
rideService.offerRide(OfferedRide);
message = "Status has been updated to offered";
statusCode = 201;
}
catch (AlreadyInActiveBookingException e) {
message = "Vehicle is already in booking/offered status";
statusCode = 405;
}
catch (ResourceNotFoundException e) {
message = "Vehicle is not registered";
statusCode = 404;
}
return ResponseEntity.status(statusCode).body(new ResponseMessage(message));
}
@PostMapping("/select-ride")
public ResponseEntity<SelectResponse> selectRide(@Valid @RequestBody RequestRide requestRide) {
String message;
SelectResponse selectResponse;
List<SelectedVehicleInfo> selectedVehicleInfoList = null;
int statusCode;
try {
selectedVehicleInfoList = rideService.selectRide(requestRide);
if (selectedVehicleInfoList == null || selectedVehicleInfoList.isEmpty()) {
message = "OOPS! No vehicle avaible for the locations";
statusCode = 200;
}
else {
message = "Bingo :)First Vehicle has been booked for your request";
statusCode = 200;
}
}
catch (BadRequest badRequest) {
message = "Invalid request necessary field not present";
statusCode = 400;
}
catch (AlreadyInActiveBookingException e) {
message = e.getMessage();
statusCode = 400;
}
selectResponse = new SelectResponse(message, selectedVehicleInfoList);
return ResponseEntity.status(statusCode).body(selectResponse);
}
@DeleteMapping("/end-ride/{userName}")
public ResponseEntity<ResponseMessage> endRide(@PathVariable String userName) {
String message;
int statusCode;
try {
rideService.endRide(userName);
message = "have ended the ride";
statusCode = 202;
}
catch (ResourceNotFoundException e) {
message = "No booking assigned to user";
statusCode = 405;
}
return ResponseEntity.status(statusCode).body(new ResponseMessage(message));
}
@GetMapping("/ride-stats")
public ResponseEntity<Map<String, UserStats>> getRideStats() {
return ResponseEntity.ok(statService.getUserStatsMap());
}
}
| [
"snarwaria@groupon.com"
] | snarwaria@groupon.com |
89c4eac12a88420509a7bb1b528fe43ce046020d | 85338bb20f9b49fc8f29b867992f7723ceac9676 | /Demov5/src/main/java/com/openkm/frontend/client/widget/filebrowser/menu/CategoriesMenu.java | bfcc327b311a0509f3902a222db1f7ca221362b9 | [] | no_license | vissu67/Knowledgevault | e2a2c6fd87afee535a6a0396da10e0a23525c6f4 | 4e452ac3b0eebea139eca7d3762ca8862a0cf977 | refs/heads/master | 2020-05-27T08:42:00.121059 | 2012-05-22T09:16:14 | 2012-05-22T09:16:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 12,876 | java | /**
* OpenKM, Open Document Management System (http://www.openkm.com)
* Copyright (c) 2006-2011 Paco Avila & Josep Llort
*
* No bytes were intentionally harmed during the development of this application.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
package com.openkm.frontend.client.widget.filebrowser.menu;
import java.util.ArrayList;
import java.util.Arrays;
import com.google.gwt.user.client.Command;
import com.google.gwt.user.client.ui.FileUpload;
import com.google.gwt.user.client.ui.MenuBar;
import com.google.gwt.user.client.ui.MenuItem;
import com.openkm.frontend.client.Main;
import com.openkm.frontend.client.bean.FileToUpload;
import com.openkm.frontend.client.bean.GWTAvailableOption;
import com.openkm.frontend.client.bean.GWTDocument;
import com.openkm.frontend.client.bean.GWTFolder;
import com.openkm.frontend.client.bean.GWTMail;
import com.openkm.frontend.client.bean.GWTPermission;
import com.openkm.frontend.client.contants.ui.UIFileUploadConstants;
import com.openkm.frontend.client.util.CommonUI;
import com.openkm.frontend.client.util.Util;
import com.openkm.frontend.client.widget.MenuBase;
/**
* CategoryMenu menu
*
* @author jllort
*
*/
public class CategoriesMenu extends MenuBase {
private boolean checkoutOption = false;
private boolean checkinOption = false;
private boolean deleteOption = false;
private boolean renameOption = false;
private boolean cancelCheckoutOption = false;
private boolean downloadOption = false;
private boolean lockOption = false;
private boolean unlockOption = false;
private boolean addPropertyGroupOption = false;
private boolean goOption = false;
private MenuBar dirMenu;
private MenuItem checkout;
private MenuItem checkin;
private MenuItem cancelCheckout;
private MenuItem delete;
private MenuItem rename;
private MenuItem download;
private MenuItem lock;
private MenuItem unlock;
private MenuItem go;
/**
* Category menu
*/
public CategoriesMenu() {
// The item selected must be called on style.css : .okm-MenuBar .gwt-MenuItem-selected
// First initialize language values
dirMenu = new MenuBar(true);
download = new MenuItem(Util.menuHTML("img/icon/actions/download.gif", Main.i18n("filebrowser.menu.download")), true, downloadFile);
download.addStyleName("okm-MenuItem-strike");
dirMenu.addItem(download);
checkout = new MenuItem(Util.menuHTML("img/icon/actions/checkout.gif", Main.i18n("filebrowser.menu.checkout")), true, checkoutFile);
checkout.addStyleName("okm-MenuItem-strike");
dirMenu.addItem(checkout);
checkin = new MenuItem(Util.menuHTML("img/icon/actions/checkin.gif", Main.i18n("filebrowser.menu.checkin")), true, checkinFile);
checkin.addStyleName("okm-MenuItem-strike");
dirMenu.addItem(checkin);
cancelCheckout = new MenuItem(Util.menuHTML("img/icon/actions/cancel_checkout.gif", Main.i18n("filebrowser.menu.checkout.cancel")), true, cancelCheckinFile);
cancelCheckout.addStyleName("okm-MenuItem-strike");
dirMenu.addItem(cancelCheckout);
lock = new MenuItem(Util.menuHTML("img/icon/actions/lock.gif", Main.i18n("filebrowser.menu.lock")), true, lockFile);
lock.addStyleName("okm-MenuItem-strike");
dirMenu.addItem(lock);
unlock = new MenuItem(Util.menuHTML("img/icon/actions/unlock.gif", Main.i18n("filebrowser.menu.unlock")), true, unlockFile);
unlock.addStyleName("okm-MenuItem-strike");
dirMenu.addItem(unlock);
delete = new MenuItem(Util.menuHTML("img/icon/actions/delete.gif", Main.i18n("filebrowser.menu.delete")), true, deleteFile);
delete.addStyleName("okm-MenuItem-strike");
dirMenu.addItem(delete);
rename = new MenuItem(Util.menuHTML("img/icon/actions/rename.gif", Main.i18n("filebrowser.menu.rename")), true, renameFile);
rename.addStyleName("okm-MenuItem-strike");
dirMenu.addItem(rename);
go = new MenuItem(Util.menuHTML("img/icon/actions/goto_folder.gif", Main.i18n("search.result.menu.go.folder")), true, goDirectory);
go.addStyleName("okm-MenuItem-strike");
dirMenu.addItem(go);
dirMenu.setStyleName("okm-MenuBar");
initWidget(dirMenu);
}
// Command menu to download file
Command downloadFile = new Command() {
public void execute() {
if (downloadOption) {
Main.get().mainPanel.desktop.browser.fileBrowser.table.downloadDocument(false);
hide();
}
}
};
// Command menu to checkout file
Command checkoutFile = new Command() {
public void execute() {
if (checkoutOption) {
Main.get().mainPanel.desktop.browser.fileBrowser.checkout();
hide();
}
}
};
// Command menu to checkin file
Command checkinFile = new Command() {
public void execute() {
if (checkinOption) {
FileToUpload fileToUpload = new FileToUpload();
fileToUpload.setFileUpload(new FileUpload());
fileToUpload.setPath(Main.get().mainPanel.desktop.browser.fileBrowser.getPath());
fileToUpload.setAction(UIFileUploadConstants.ACTION_UPDATE);
fileToUpload.setEnableAddButton(false);
fileToUpload.setEnableImport(false);
Main.get().fileUpload.enqueueFileToUpload(new ArrayList<FileToUpload>(Arrays.asList(fileToUpload)));
hide();
}
}
};
// Command menu to cancel checkin file
Command cancelCheckinFile = new Command() {
public void execute() {
if (cancelCheckoutOption) {
Main.get().mainPanel.desktop.browser.fileBrowser.cancelCheckout();
hide();
}
}
};
// Command menu to lock file
Command lockFile = new Command() {
public void execute() {
if (lockOption) {
Main.get().mainPanel.desktop.browser.fileBrowser.lock();
hide();
}
}
};
// Command menu to unlock file
Command unlockFile = new Command() {
public void execute() {
if (unlockOption) {
Main.get().mainPanel.desktop.browser.fileBrowser.unlock();
hide();
}
}
};
// Command menu to lock file
Command deleteFile = new Command() {
public void execute() {
if (deleteOption) {
Main.get().mainPanel.desktop.browser.fileBrowser.confirmDelete();
hide();
}
}
};
// Command menu to rename file
Command renameFile = new Command() {
public void execute() {
if (renameOption) {
Main.get().mainPanel.desktop.browser.fileBrowser.rename();
hide();
}
}
};
// Command menu to rename file
Command addPropertyGroup = new Command() {
public void execute() {
if (addPropertyGroupOption) {
Main.get().propertyGroupPopup.show();
hide();
}
}
};
// Command menu to go directory file
Command goDirectory = new Command() {
public void execute() {
if (goOption) {
String docPath = "";
String path = "";
if (Main.get().mainPanel.desktop.browser.fileBrowser.isDocumentSelected()) {
docPath = Main.get().mainPanel.desktop.browser.fileBrowser.getDocument().getPath();
path = docPath.substring(0,docPath.lastIndexOf("/"));
}
CommonUI.openAllFolderPath(path, docPath);
hide();
}
}
};
/**
* Refresh language values
*/
public void langRefresh() {
checkout.setHTML(Util.menuHTML("img/icon/actions/checkout.gif", Main.i18n("filebrowser.menu.checkout")));
checkin.setHTML(Util.menuHTML("img/icon/actions/checkin.gif", Main.i18n("filebrowser.menu.checkin")));
delete.setHTML(Util.menuHTML("img/icon/actions/delete.gif", Main.i18n("filebrowser.menu.delete")));
rename.setHTML(Util.menuHTML("img/icon/actions/rename.gif", Main.i18n("filebrowser.menu.rename")));
cancelCheckout.setHTML(Util.menuHTML("img/icon/actions/cancel_checkout.gif", Main.i18n("filebrowser.menu.checkout.cancel")));
lock.setHTML(Util.menuHTML("img/icon/actions/lock.gif", Main.i18n("filebrowser.menu.lock")));
unlock.setHTML(Util.menuHTML("img/icon/actions/unlock.gif", Main.i18n("filebrowser.menu.unlock")));
download.setHTML(Util.menuHTML("img/icon/actions/download.gif", Main.i18n("filebrowser.menu.download")));
go.setHTML(Util.menuHTML("img/icon/actions/goto_folder.gif", Main.i18n("search.result.menu.go.folder")));
}
/**
* Checks permissions associated to folder and menu options enabled actions
*
* @param folder The folder
*/
public void checkMenuOptionPermissions(GWTFolder folder, GWTFolder folderParent) {
}
/**
* Checks permissions associated to document and menu options enabled actions
*
* @param doc The document
*/
public void checkMenuOptionPermissions(GWTDocument doc, GWTFolder folder) {
String user = Main.get().workspaceUserProperties.getUser();
downloadOption = true;
checkinOption = false;
cancelCheckoutOption = false;
unlockOption = false;
goOption = true;
if ( (doc.getPermissions() & GWTPermission.WRITE) == GWTPermission.WRITE) {
lockOption = true;
checkoutOption = true;
if ( (folder.getPermissions() & GWTPermission.WRITE) == GWTPermission.WRITE) {
renameOption = true;
deleteOption = true;
addPropertyGroupOption = true;
} else {
renameOption = false;
deleteOption = false;
addPropertyGroupOption = false;
}
} else {
lockOption = false;
deleteOption = false;
renameOption = false;
checkoutOption = false;
addPropertyGroupOption = false;
}
if (doc.isCheckedOut()){
lockOption = false;
unlockOption = false;
checkoutOption = false;
if (doc.getLockInfo().getOwner().equals(user)) {
checkinOption = true;
cancelCheckoutOption = true;
addPropertyGroupOption = true;
} else {
checkinOption = false;
cancelCheckoutOption = false;
addPropertyGroupOption = false;
}
deleteOption = false;
renameOption = false;
} else if (doc.isLocked()){
lockOption = false;
if (doc.getLockInfo().getOwner().equals(user)) {
unlockOption = true;
} else {
unlockOption = false;
}
checkoutOption = false;
checkinOption = false;
cancelCheckoutOption = false;
deleteOption = false;
renameOption = false;
addPropertyGroupOption = false;
} else {
unlockOption = false;
checkinOption = false;
cancelCheckoutOption = false;
}
}
/**
* Checks permissions associated to mail and menu options enabled actions
*
* @param mail The mail
*/
public void checkMenuOptionPermissions(GWTMail mail, GWTFolder folder) {
}
/**
* Disables all menu options
*/
public void disableAllMenuOption() {
downloadOption = false;
deleteOption = false;
renameOption = false;
checkoutOption = false;
checkinOption = false;
cancelCheckoutOption = false;
lockOption = false;
unlockOption = false;
addPropertyGroupOption = false;
goOption = false;
}
/**
* Evaluates menu options
*/
public void evaluateMenuOptions(){
if (downloadOption){enable(download);} else {disable(download);}
if (deleteOption){enable(delete);} else {disable(delete);}
if (renameOption){enable(rename);} else {disable(rename);}
if (checkoutOption){enable(checkout);} else {disable(checkout);}
if (checkinOption){enable(checkin);} else {disable(checkin);}
if (cancelCheckoutOption){enable(cancelCheckout);} else {disable(cancelCheckout);}
if (lockOption){enable(lock);} else {disable(lock);}
if (unlockOption){enable(unlock);} else {disable(unlock);}
if (goOption){enable(go);} else {disable(go);}
}
@Override
public void setAvailableOption(GWTAvailableOption option) {
download.setVisible(option.isDownloadOption());
delete.setVisible(option.isDeleteOption());
rename.setVisible(option.isRenameOption());
checkout.setVisible(option.isCheckoutOption());
checkin.setVisible(option.isCheckinOption());
cancelCheckout.setVisible(option.cancelCheckoutOption);
lock.setVisible(option.isLockOption());
unlock.setVisible(option.isUnLockOption());
go.setVisible(option.isGotoFolderOption());
}
/**
* Hide popup menu
*/
public void hide() {
Main.get().mainPanel.desktop.browser.fileBrowser.thesaurusMenuPopup.hide();
}
/* (non-Javadoc)
* @see com.openkm.frontend.client.widget.MenuBase#enableAllMenuOptions()
*/
public void enableAllMenuOptions(){
}
/* (non-Javadoc)
* @see com.openkm.frontend.client.widget.MenuBase#enableRootMenuOptions()
*/
public void enableRootMenuOptions(){
}
} | [
"viswanadh.sripada@realution.in"
] | viswanadh.sripada@realution.in |
da167e996eb5c66e405ec7ea5df576be42e4d0a0 | fa91450deb625cda070e82d5c31770be5ca1dec6 | /Diff-Raw-Data/21/21_6e10ce3441f2b64afa72b1d730984c00a9fdc60c/TableModel/21_6e10ce3441f2b64afa72b1d730984c00a9fdc60c_TableModel_t.java | d347ee027d4ccd33b7b2462041f89e64f23f4689 | [] | no_license | zhongxingyu/Seer | 48e7e5197624d7afa94d23f849f8ea2075bcaec0 | c11a3109fdfca9be337e509ecb2c085b60076213 | refs/heads/master | 2023-07-06T12:48:55.516692 | 2023-06-22T07:55:56 | 2023-06-22T07:55:56 | 259,613,157 | 6 | 2 | null | 2023-06-22T07:55:57 | 2020-04-28T11:07:49 | null | UTF-8 | Java | false | false | 1,265 | java | package scenegraph;
import java.io.File;
import java.io.IOException;
import javax.media.opengl.GL;
import javax.media.opengl.GLAutoDrawable;
import javax.media.opengl.GLException;
import com.sun.opengl.cg.CgGL;
import com.sun.opengl.util.texture.Texture;
import com.sun.opengl.util.texture.TextureIO;
public class TableModel extends SceneGraphNode {
private GlassModel glass = null;
private EiffelModel eiffel = null;
private Texture tex = null;
public TableModel(GLAutoDrawable drawable, float scale) {
super(drawable, "models/table", scale);
glass = new GlassModel(drawable, scale);
// glass.setTranslation(0.8f, 0.832f, 0);
this.addChild(glass);
eiffel = new EiffelModel(drawable, scale);
this.addChild(eiffel);
this.init(drawable);
this.setVertexShaderEnabled(false);
this.setFragShaderEnabled(false);
}
@Override
public void init(GLAutoDrawable drawable) {}
@Override
public void bindParameters() {
// TODO Auto-generated method stub
}
@Override
public void animate(GLAutoDrawable drawable) {
// TODO Auto-generated method stub
}
@Override
public void draw(GLAutoDrawable drawable) {
drawable.getGL().glCallList(this.getObjectList());
}
}
| [
"yuzhongxing88@gmail.com"
] | yuzhongxing88@gmail.com |
b3eb3a356871477a5ed50e4c7c440e5b110434af | e4882100ad88085452b23891912f2b34c0a3c250 | /ginaconn/src/at/chipkarte/client/base/soap/exceptions/CardExceptionContent.java | 0dacf315db3548ec3d50519a85e4ac1c250817a7 | [] | no_license | MarkovicPredrag2/ecard-selbstanmeldung | 465ea7eac0092b0b7e6f947e3ecc1412529f80c6 | 71faba712dcb1bf5834a0e3d2c5564e4c29b67f7 | refs/heads/master | 2021-09-16T21:55:12.238931 | 2018-06-25T12:47:07 | 2018-06-25T12:47:07 | 106,206,524 | 2 | 1 | null | 2018-01-10T17:35:44 | 2017-10-08T20:11:41 | Java | UTF-8 | Java | false | false | 3,062 | java | /**
* CardExceptionContent.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
*/
package at.chipkarte.client.base.soap.exceptions;
public class CardExceptionContent extends at.chipkarte.client.base.soap.exceptions.BaseExceptionContent implements java.io.Serializable {
public CardExceptionContent() {
}
public CardExceptionContent(
java.lang.String code,
java.lang.Integer errorCode,
java.lang.String message1) {
super(
code,
errorCode,
message1);
}
private java.lang.Object __equalsCalc = null;
public synchronized boolean equals(java.lang.Object obj) {
if (!(obj instanceof CardExceptionContent)) return false;
CardExceptionContent other = (CardExceptionContent) obj;
if (obj == null) return false;
if (this == obj) return true;
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = super.equals(obj);
__equalsCalc = null;
return _equals;
}
private boolean __hashCodeCalc = false;
public synchronized int hashCode() {
if (__hashCodeCalc) {
return 0;
}
__hashCodeCalc = true;
int _hashCode = super.hashCode();
__hashCodeCalc = false;
return _hashCode;
}
// Type metadata
private static org.apache.axis.description.TypeDesc typeDesc =
new org.apache.axis.description.TypeDesc(CardExceptionContent.class, true);
static {
typeDesc.setXmlType(new javax.xml.namespace.QName("http://exceptions.soap.base.client.chipkarte.at", "cardExceptionContent"));
}
/**
* Return type metadata object
*/
public static org.apache.axis.description.TypeDesc getTypeDesc() {
return typeDesc;
}
/**
* Get Custom Serializer
*/
public static org.apache.axis.encoding.Serializer getSerializer(
java.lang.String mechType,
java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanSerializer(
_javaType, _xmlType, typeDesc);
}
/**
* Get Custom Deserializer
*/
public static org.apache.axis.encoding.Deserializer getDeserializer(
java.lang.String mechType,
java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanDeserializer(
_javaType, _xmlType, typeDesc);
}
/**
* Writes the exception data to the faultDetails
*/
public void writeDetails(javax.xml.namespace.QName qname, org.apache.axis.encoding.SerializationContext context) throws java.io.IOException {
context.serialize(qname, null, this);
}
}
| [
"markovic.predrag.gs@gmail.com"
] | markovic.predrag.gs@gmail.com |
592908cb37025fd48b9ff9a561fb8bbecc4a26e7 | 10294e36832e897be5205024d429dcee7914d092 | /impala/impala-core/src/org/impalaframework/config/LocationModificationStateHolder.java | 231414fe338c36456b7b70c4144620b2d328d7d4 | [] | no_license | realtimedespatch/impala | 8c9241b038e3c0b57eabc0dbaadfbc48647fed08 | 85c05dbffa47efec6d95ee8565245497d95ffb2e | refs/heads/master | 2022-05-16T08:29:22.430871 | 2022-03-21T16:35:56 | 2022-03-21T16:35:56 | 48,985,384 | 2 | 2 | null | 2016-01-04T08:54:47 | 2016-01-04T08:54:46 | null | UTF-8 | Java | false | false | 3,193 | java | /*
* Copyright 2007-2010 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
package org.impalaframework.config;
import java.io.File;
import java.io.IOException;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.core.io.Resource;
import org.springframework.util.Assert;
/**
* Class with the responsibility for tracking whether a set of resources have been modified
* @author Phil Zoio
*/
public class LocationModificationStateHolder {
private Log log = LogFactory.getLog(LocationModificationStateHolder.class);
private Resource[] locations;
private long lastModified = 0L;
private boolean returnOnFirstCheck = false;
public boolean isModifiedSinceLastCheck() {
Assert.notNull(locations, "locations cannot be null");
boolean load = false;
long newLastModified = 0L;
for (Resource resource : locations) {
try {
File file = resource.getFile();
long fileLastModified = file.lastModified();
newLastModified = Math.max(newLastModified, fileLastModified);
if (log.isDebugEnabled()) log.debug("Last modified for resource " + file + ": " + fileLastModified);
} catch (IOException e) {
System.out.println("Unable to get last modified for resource " + resource);
}
}
long oldLastModified = this.lastModified;
long diff = newLastModified - oldLastModified;
if (diff > 0) {
if (oldLastModified == 0L) {
load = returnOnFirstCheck;
} else {
load = true;
}
if (log.isDebugEnabled())
log.debug("File has been updated more recently - reloading. Old: " + oldLastModified + ", new: " + newLastModified);
}
this.lastModified = newLastModified;
return load;
}
public void setLocation(Resource resourceLocation) {
setLocations(new Resource[] { resourceLocation });
}
public void setLocations(Resource[] resourceLocations) {
this.locations = resourceLocations;
}
public void setLastModified(long lastModified) {
this.lastModified = lastModified;
}
public void setReturnOnFirstCheck(boolean returnOnFirstCheck) {
this.returnOnFirstCheck = returnOnFirstCheck;
}
public Resource[] getLocations() {
return locations;
}
public long getLastModified() {
return lastModified;
}
}
| [
"philzoio@realsolve.co.uk"
] | philzoio@realsolve.co.uk |
031995b50c07563f76a2a299c6da695c03d9e043 | a741d82fb5ee0203161455353587ffcc902ef351 | /aylson-admin/src/main/java/com/aylson/dc/partner/controller/CouponApplyController.java | 9ef0283254e826bb261d2474c820e6181fb3afd6 | [] | no_license | xiaofeifei321/aylson-parent | b48121272d5e92a1acc4b671ab7af63aa6c06b0b | 3749a0f1ef45851b4aa513b324ef23a04e4421d3 | refs/heads/master | 2022-12-23T20:15:51.598455 | 2019-08-29T11:30:13 | 2019-08-29T11:30:13 | 204,696,341 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,002 | java | package com.aylson.dc.partner.controller;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import com.aylson.core.frame.base.Page;
import com.aylson.core.frame.controller.BaseController;
import com.aylson.core.frame.domain.Result;
import com.aylson.core.frame.domain.ResultCode;
import com.aylson.dc.partner.search.CouponApplySearch;
import com.aylson.dc.partner.service.CouponApplyService;
import com.aylson.dc.partner.vo.CouponApplyVo;
/**
* 优惠券配置管理
* @author wwx
* @since 2017-01
* @version v1.0
*
*/
@Controller
@RequestMapping("/partner/couponApply")
public class CouponApplyController extends BaseController {
@Autowired
private CouponApplyService couponApplyService; //优惠券配置服务
/**
* 获取列表(分页)
* @param couponApplySearch
* @return
*/
@ResponseBody
@RequestMapping(value = "/getPage", method = RequestMethod.GET)
public Result getPage(CouponApplySearch couponApplySearch) {
Result result = new Result();
Page<CouponApplyVo> page = this.couponApplyService.getPage(couponApplySearch);
result.setOK(ResultCode.CODE_STATE_200, "操作成功", page);
return result;
}
/**
* 获取列表(不分页)
* @param couponApplySearch
* @return
*/
@ResponseBody
@RequestMapping(value = "/getList", method = RequestMethod.GET)
public Result getList(CouponApplySearch couponApplySearch) {
Result result = new Result();
List<CouponApplyVo> list = this.couponApplyService.getList(couponApplySearch);
result.setOK(ResultCode.CODE_STATE_200, "操作成功", list);
return result;
}
/**
* 获取列表(不分页)
* @param couponApplySearch
* @return
*/
@ResponseBody
@RequestMapping(value = "/getById", method = RequestMethod.GET)
public Result getById(Integer id) {
Result result = new Result();
if(id == null){
result.setError(ResultCode.CODE_STATE_4006, "获取id失败,请稍后再试或者联系管理员!");
return result;
}
CouponApplyVo couponApplyVo = this.couponApplyService.getById(id);
if(couponApplyVo == null){
result.setError(ResultCode.CODE_STATE_4006, "获取信息失败,请稍后再试或者联系管理员!");
}else{
result.setOK(ResultCode.CODE_STATE_200, "操作成功", couponApplyVo);
}
return result;
}
/**
* 审核
* @param id
* @param isPass
* @return
*/
@RequestMapping(value = "/verify", method = RequestMethod.POST)
@ResponseBody
public Result verify(Integer id, Boolean isPass) {
Result result = null;
try {
result = this.couponApplyService.verify(id, isPass);
} catch (Exception e) {
e.printStackTrace();
result.setError(ResultCode.CODE_STATE_500, e.getMessage());
}
return result;
}
}
| [
"874189630@qq.com"
] | 874189630@qq.com |
a9d0d4e602f376e60dd340c916514e70d04788df | 3e524d00cd3af6f1d8dc4cbc24c2363d000b3b00 | /src/Cap3/SearchingArrays.java | 4080b9742fad46d0a5c1c4109feb0fdfd04839ea | [] | no_license | cavasdandora/oca | 808a2d8b5d8df94bc9b2650310fca5d33893f71d | 650f3a2bd042f670063eb15cf726f1312ead2a56 | refs/heads/master | 2020-03-29T02:12:06.282598 | 2018-12-04T12:55:43 | 2018-12-04T12:55:43 | 149,424,812 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 752 | java | package Cap3;
import java.util.Arrays;
public class SearchingArrays {
public static void main(String[] args) {
//------------------ if not found negate and substract 1 /
int[] numbers = {2, 4, 6, 8};
// System.out.println(Arrays.binarySearch(numbers, 2)); // 0
// System.out.println(Arrays.binarySearch(numbers, 4)); // 1
// System.out.println(Arrays.binarySearch(numbers, 1)); // -1
// System.out.println(Arrays.binarySearch(numbers, 3)); // -2
// System.out.println(Arrays.binarySearch(numbers, 9)); // -5
//
// int numbers2 = new int[] {3,2,1};
// System.out.println(Arrays.binarySearch(numbers2, 2));
// System.out.println(Arrays.binarySearch(numbers2, 3));
}
}
| [
"dora.cavasdan@gmail.com"
] | dora.cavasdan@gmail.com |
3a171c0b8d0d8a282ac9c40381c0f64952216cef | ea7de228633110fa660e057b695feacb0b899c2b | /src/main/java/com/healthoverflow/healthOverflow/web/currentUser.java | bbf8336b7e8b894e5b6440fd7aa5a4cc8f5ea2bc | [] | no_license | Health-Overflow/healthOverflow | dff5ebc78dac5018cc8047a32d65236bce875b32 | 1bc5e768d16f6cc3739f4f6bb7eeb56fd195b193 | refs/heads/main | 2023-06-27T16:55:25.040391 | 2021-08-05T07:48:39 | 2021-08-05T07:48:39 | 390,737,699 | 1 | 1 | null | 2021-08-04T15:33:18 | 2021-07-29T13:44:24 | HTML | UTF-8 | Java | false | false | 1,172 | java | package com.healthoverflow.healthOverflow.web;
import com.healthoverflow.healthOverflow.domain.ApplicationUser;
import com.healthoverflow.healthOverflow.infrastructure.ApplicationUserRepo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
@RestController
public class currentUser {
@Autowired
private ApplicationUserRepo applicationUserRepo;
@GetMapping("/senduser")
@ResponseBody
public String getCurrentUser(){
UserDetails userDetails = (UserDetails) SecurityContextHolder.getContext().getAuthentication().getPrincipal();
ApplicationUser currentUser = applicationUserRepo.findApplicationUserByUsername(userDetails.getUsername());
return "{" +"\"fullName\"" + ":\""+currentUser.getFullName() +"\"," + "\"userImage\"" + ":\"" + currentUser.getImage() +"\"}";
}
}
| [
"mahmoud.saadeh998@gmail.com"
] | mahmoud.saadeh998@gmail.com |
ea4bb0312ee23cf8a77edf8c6cac090f63463f35 | df621d54ab449363d1fb8edf9a7fa8a877138b66 | /app/src/main/java/ru/mydomain/raspisanieusatu/fragment/HistoryFragment.java | 2a48326533ce692e06a8082a99941cf56c5018ab | [] | no_license | MrAlltin/Raspisanie | fd4e6fa7dc95765130fa0746e6d974bab2ae0422 | 79a28cd0c0b686600ea75d4505c4562bea6b62d1 | refs/heads/master | 2021-01-17T19:00:51.035582 | 2016-07-13T22:28:04 | 2016-07-13T22:28:04 | 63,097,254 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,843 | java | package ru.mydomain.raspisanieusatu.fragment;
import android.content.Context;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import java.util.ArrayList;
import java.util.List;
import ru.mydomain.raspisanieusatu.FilesOpen.Basic_Open;
import ru.mydomain.raspisanieusatu.FilesOpen.Open_Files;
import ru.mydomain.raspisanieusatu.MainActivity;
import ru.mydomain.raspisanieusatu.R;
import ru.mydomain.raspisanieusatu.adapter.RemindListAdapter;
import ru.mydomain.raspisanieusatu.dto.RemindDTO;
public class HistoryFragment extends AbstractTabFragment{
private static final int LAYOUT = R.layout.fragment_history;
private int t;
private String FileText;
boolean wtf = true;
public static HistoryFragment getInstanse(Context context){
Bundle args = new Bundle();
HistoryFragment fragment = new HistoryFragment();
fragment.setArguments(args);
fragment.setContext(context);
fragment.setTitle(context.getString(R.string.tab_item_history));
return fragment;
}
@Nullable
@Override
public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
view = inflater.inflate(LAYOUT,container,false);
RecyclerView rv = (RecyclerView) view.findViewById(R.id.recycleView);
rv.setLayoutManager(new LinearLayoutManager(context));
rv.setAdapter(new RemindListAdapter(creatMockRemindListData()));
return view;
}
private List<RemindDTO> creatMockRemindListData() {
String group;
int GroupID;
Open_Files opn = new Open_Files();
MainActivity ma = new MainActivity();
Basic_Open bo = new Basic_Open();
group = bo.getStringFromRawFile( getActivity() );
bo.setGroup( group );
GroupID = bo.getGroupID();
FileText = opn.getStringFromRawFile(getActivity(), GroupID);
opn.setFileText(FileText);
opn.openFile(GroupID);
t = opn.getN();
System.out.println(t);
opn.Name(FileText);
List<RemindDTO> data = new ArrayList<>();
String[] names = opn.getFinalname();
String[] rooms = opn.getRooms();
String[] prepods = opn.getPrepods();
if(names.length==0){
System.out.println("names пуст!");
}
for (int i =0;i<t;i++) {
data.add( new RemindDTO( names[i].toString(), rooms[i].toString(), prepods[i].toString() ) );
}
return data;
}
public void setContext(Context context) {
this.context = context;
}
}
| [
"amillboy@yandex.ru"
] | amillboy@yandex.ru |
a0750ce6bf0987e0c771bf5631bd3c85af3b848f | 043bd24f8849f49b983f8260fd60d92da24dd6a5 | /chapter_001/src/test/java/ru/job4j/condition/package-info.java | 7e61c373a6e43c4724f4a55b3911ae4d435d3fa1 | [
"Apache-2.0"
] | permissive | filonich-vlad/job4j | a695a0f02135d44d88a5e0e298a92c50d2bd4022 | 1884ea5db25cbbe3e27e7da37a2fdf6955156b8b | refs/heads/master | 2021-06-27T15:34:51.503395 | 2019-08-01T16:24:11 | 2019-08-01T16:24:11 | 160,426,326 | 0 | 0 | Apache-2.0 | 2020-10-13T11:17:40 | 2018-12-04T22:22:14 | Java | UTF-8 | Java | false | false | 87 | java | /**
* @author Filonich Vladislav
* @since 27.12.2018
*/
package ru.job4j.condition; | [
"filonich.v@mail.ru"
] | filonich.v@mail.ru |
90f84ec245e51b9dbceabc57186c8c7b04386c12 | 8b95040a8066232957cdbf812f488e34076b82ed | /atf-wiremock/src/main/java/ru/bsc/test/at/mock/application/MockApplication.java | 154d4f469846a2b60992975848db62ea95709037 | [
"Apache-2.0"
] | permissive | iustinov/AuTe-Framework | 35ea3069a3238111e2b5a8884d766281a57c44b3 | 4870f92893510316a72f3b69376b454df75f0ee9 | refs/heads/master | 2020-03-28T23:00:39.229731 | 2018-09-06T05:14:30 | 2018-09-06T07:02:33 | 149,270,837 | 0 | 0 | Apache-2.0 | 2018-09-18T10:33:56 | 2018-09-18T10:33:55 | null | UTF-8 | Java | false | false | 6,102 | java | /*
* Copyright 2018 BSC Msc, LLC
*
* This file is part of the AuTe Framework project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package ru.bsc.test.at.mock.application;
import com.fasterxml.classmate.TypeResolver;
import com.github.tomakehurst.wiremock.common.Notifier;
import com.github.tomakehurst.wiremock.common.Slf4jNotifier;
import com.github.tomakehurst.wiremock.core.WireMockApp;
import com.github.tomakehurst.wiremock.http.AdminRequestHandler;
import com.github.tomakehurst.wiremock.http.StubRequestHandler;
import com.github.tomakehurst.wiremock.servlet.NotImplementedContainer;
import com.github.tomakehurst.wiremock.servlet.WireMockHandlerDispatchingServlet;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.FilterRegistrationBean;
import org.springframework.boot.web.servlet.ServletRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.context.request.async.DeferredResult;
import ru.bsc.test.at.mock.filter.CorsFilter;
import ru.bsc.test.at.mock.wiremock.webcontextlistener.configuration.CustomWarConfiguration;
import springfox.documentation.builders.PathSelectors;
import springfox.documentation.builders.RequestHandlerSelectors;
import springfox.documentation.builders.ResponseMessageBuilder;
import springfox.documentation.schema.WildcardType;
import springfox.documentation.spi.DocumentationType;
import springfox.documentation.spring.web.plugins.Docket;
import springfox.documentation.swagger2.annotations.EnableSwagger2;
import javax.servlet.Servlet;
import javax.servlet.ServletContext;
import java.time.LocalDate;
import static com.google.common.collect.Lists.newArrayList;
import static springfox.documentation.schema.AlternateTypeRules.newRule;
@Controller
@EnableAutoConfiguration
@SpringBootApplication
@EnableSwagger2
@ComponentScan("ru.bsc.test.at.mock")
@Slf4j
public class MockApplication {
private static final String APP_CONTEXT_KEY = "WireMockApp";
private final TypeResolver typeResolver;
private final ServletContext context;
@Autowired
public MockApplication(TypeResolver typeResolver, ServletContext context) {
this.typeResolver = typeResolver;
this.context = context;
}
public static void main(String[] args) {
SpringApplication.run(new Class[]{MockApplication.class, SpringWebConfig.class}, args);
}
@Bean
public FilterRegistrationBean corsFilter() {
FilterRegistrationBean filter = new FilterRegistrationBean(new CorsFilter());
filter.addUrlPatterns("/*");
return filter;
}
@Bean
public WireMockApp wireMockApp() {
WireMockApp wireMockApp = new WireMockApp(new CustomWarConfiguration(context, "."), new NotImplementedContainer());
context.setAttribute(APP_CONTEXT_KEY, wireMockApp);
context.setAttribute(StubRequestHandler.class.getName(), wireMockApp.buildStubRequestHandler());
context.setAttribute(AdminRequestHandler.class.getName(), wireMockApp.buildAdminRequestHandler());
context.setAttribute(Notifier.KEY, new Slf4jNotifier(false));
return wireMockApp;
}
@Bean
public ServletRegistrationBean wiremockAdminHandlerBean() {
ServletRegistrationBean bean = new ServletRegistrationBean(new WireMockHandlerDispatchingServlet(),"/__admin/*");
bean.addInitParameter("RequestHandlerClass", AdminRequestHandler.class.getName());
bean.setLoadOnStartup(1);
bean.setName("wiremockAdmin");
return bean;
}
@Bean
public ServletRegistrationBean wiremockMockHandlerBean() {
Servlet servlet = new WireMockHandlerDispatchingServlet();
ServletRegistrationBean bean = new ServletRegistrationBean(servlet, "/bsc-wire-mock/*");
bean.addInitParameter("RequestHandlerClass", StubRequestHandler.class.getName());
bean.addInitParameter(WireMockHandlerDispatchingServlet.MAPPED_UNDER_KEY, "/bsc-wire-mock/");
bean.setLoadOnStartup(1);
bean.setName("wiremockStub");
return bean;
}
@Bean
public Docket wiremockApi() {
return new Docket(DocumentationType.SWAGGER_2)
.select()
.apis(RequestHandlerSelectors.any())
.paths(PathSelectors.regex(".*__admin.*"))
.build()
.pathMapping("/")
.directModelSubstitute(LocalDate.class,
String.class)
.alternateTypeRules(
newRule(typeResolver.resolve(DeferredResult.class,
typeResolver.resolve(ResponseEntity.class, WildcardType.class)),
typeResolver.resolve(WildcardType.class)))
.useDefaultResponseMessages(false)
.globalResponseMessage(RequestMethod.GET,
newArrayList(new ResponseMessageBuilder()
.code(500)
.message("Http error 500")
.build()))
.enableUrlTemplating(true);
}
}
| [
"Pavel.Golovkin@bsc-ideas.com"
] | Pavel.Golovkin@bsc-ideas.com |
bbcd0e725c240086b8d73c4aed4aa9cc6f699aa0 | 44da6761da6b60dbb99b7020aa4e788d7df0c865 | /Android/day0328/Dog.java | 4ad7e9f74f590a8f11c0bac8b086902c2862cb1b | [] | no_license | nainainainai1/web | 6a7fe8cb4db71755b79770c7e0c1e2862b6c11a0 | 087f756102b819b861563524942cf024cbcda06e | refs/heads/master | 2020-04-13T04:40:40.222277 | 2019-07-29T04:51:14 | 2019-07-29T04:51:14 | 162,968,053 | 1 | 0 | null | 2019-10-30T23:52:27 | 2018-12-24T08:22:17 | HTML | UTF-8 | Java | false | false | 59 | java | package day0328;
public class Dog extends Anmial {
}
| [
"824978607@qq.com"
] | 824978607@qq.com |
d9a913c0825abc7ae1e614a7b5c445a2a399f39e | 7a2cd374f93c0e206f0acf74b181fdf6b38924df | /src/ja1/JA1.java | cfe41104900a31cc35531e1348a5814998d574e4 | [] | no_license | zouxiaohui/IntAlk1 | eed54604bba70c8bcf2cfbff8846576124ccdc08 | b84be302cd89107648cdaaabc6747d3cdf1953e1 | refs/heads/master | 2021-06-30T03:13:05.525386 | 2017-09-14T09:14:08 | 2017-09-14T09:14:08 | 103,511,924 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,087 | java | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package ja1;
/**
*
* @author a1brly
*/
public class JA1 {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
// TODO code application logic here
double hom =5;
ia.TemperatureUnit honnan = ia.TemperatureUnit.DEGREE_CELSIUS;
ia.TemperatureUnit hova = ia.TemperatureUnit.DEGREE_FAHRENHEIT;
double eredmeny =convertTemp(hom,honnan,hova);
System.out.println(
"A " + hom + " C=" +eredmeny+ " F");
}
private static double convertTemp(double temperature, ia.TemperatureUnit fromUnit, ia.TemperatureUnit toUnit) {
ia.ConvertTemperature service = new ia.ConvertTemperature();
ia.ConvertTemperatureSoap port = service.getConvertTemperatureSoap();
return port.convertTemp(temperature, fromUnit, toUnit);
}
}
| [
"a1brly@SZA0019073.BKAE.hu"
] | a1brly@SZA0019073.BKAE.hu |
1a8ade731007e2a70607887744b0cf30ea900acf | 9dbea1d4adceac10c4dbc46fc095ab496f6148f3 | /app/src/main/java/namlxuit/socialnetworkgamers/UI/RegisterAccount/Interactor/RegisterOps.java | 6f36ac57b43546a651c5d4a7904d0381b95eaa6f | [] | no_license | namlxuit056/SocialNetworkGamers | a78fdc9e78e29473bfd33ee089b667151725b1e0 | bbc340c59c83e427d5936812704ccff5778de444 | refs/heads/master | 2020-04-10T23:41:44.505938 | 2016-09-12T13:25:37 | 2016-09-12T13:25:37 | 68,010,161 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 342 | java | package namlxuit.socialnetworkgamers.UI.RegisterAccount.Interactor;
import java.util.Map;
import java.util.Objects;
/**
* Created by namlxuit on 25/08/2016.
*/
public interface RegisterOps {
public void receiveRegisterRequest(String email, String password);
public Map<String,Objects> createUser(String email,String password);
}
| [
"namlxuit@gmail.com"
] | namlxuit@gmail.com |
68b6188e051d5ae0a7ee939ef65e38adcb99023a | 0299f20e8777aa69fd33b64bf2658d693aebbaa7 | /src/main/java/com/ds/algos/coding/patterns/slidingwindow/LongestSubstringKDistinct.java | 80d2fdf0c1f1f1afdb9f1340d16a43befe320db4 | [] | no_license | sandeepn623/ds_algos | 395a8d8b254d931812cf21f5f75b7bcab9931c6b | 3bb9fe978d005fc53f4fdbd0f79b08adb51adb4b | refs/heads/master | 2023-01-29T15:55:19.842481 | 2020-12-09T07:41:42 | 2020-12-09T07:42:19 | 297,739,030 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,907 | java | package com.ds.algos.coding.patterns.slidingwindow;
import java.util.HashMap;
import java.util.Map;
/**
*
* Given a string, find the length of the longest substring in it with no more than K distinct characters.
* Example String="araaci", K=2
* Result - 4
*
*/
public class LongestSubstringKDistinct {
/**
* Time complexity O(N)
* Space Complextiy O(K)
*/
public int findLengthSmallestWindow(String str, int k) {
//didn't consider the edge case
//No need to convet to char array
//char[] originalChars = str.toCharArray();
//int N = originalChars.length;
int N = str.length();
int longestSubstringCount = Integer.MIN_VALUE, windowStart=0;
Map<Character, Integer> charFrequencyMap = new HashMap<>();
long start = System.currentTimeMillis();
for(int windowEnd=0; windowEnd < N; windowEnd++) { //Time Complexity O(N)
char rightChar = str.charAt(windowEnd);
charFrequencyMap.put(rightChar, charFrequencyMap.getOrDefault(rightChar, 0) + 1);
while(charFrequencyMap.size() > k) {
char leftChar = str.charAt(windowStart);
charFrequencyMap.put(leftChar, charFrequencyMap.get(leftChar) - 1);
if(charFrequencyMap.get(leftChar) == 0) {
charFrequencyMap.remove(leftChar);
}
windowStart++;
}
longestSubstringCount = Math.max(longestSubstringCount, windowEnd-windowStart+1);
}
long end = System.currentTimeMillis();
System.out.println(end-start);
return longestSubstringCount;
}
public int findMaxLength(String str, int k) {
if (str == null || str.length() == 0 || str.length() < k)
throw new IllegalArgumentException();
int windowStart = 0, maxLength = 0;
Map<Character, Integer> charFrequencyMap = new HashMap<>();
// in the following loop we'll try to extend the range [windowStart, windowEnd]
for (int windowEnd = 0; windowEnd < str.length(); windowEnd++) {
char rightChar = str.charAt(windowEnd);
charFrequencyMap.put(rightChar, charFrequencyMap.getOrDefault(rightChar, 0) + 1);
// shrink the sliding window, until we are left with 'k' distinct characters in the frequency map
while (charFrequencyMap.size() > k) {
char leftChar = str.charAt(windowStart);
charFrequencyMap.put(leftChar, charFrequencyMap.get(leftChar) - 1);
if (charFrequencyMap.get(leftChar) == 0) {
charFrequencyMap.remove(leftChar);
}
windowStart++; // shrink the window
}
maxLength = Math.max(maxLength, windowEnd - windowStart + 1); // remember the maximum length so far
}
return maxLength;
}
}
| [
"sandeepn623@gmail.com"
] | sandeepn623@gmail.com |
fbe5645843de68511028e82c6f60a3884b020e7e | 14c7ff43334ce264d23eab91fd8b6208289f451c | /android/app/src/main/java/com/instagram_rn/MainApplication.java | 85cf5f5a63847ea92731fa6d06430b4576439208 | [] | no_license | tanriyo-code/tugas-kuliah-mobile | 1e17ea479df0c1c1c1b23c00c826e2f3421433ba | 862fef62c15a4227948dd17308cbd2dc0e82ddff | refs/heads/master | 2023-02-22T01:12:46.654444 | 2021-01-29T09:15:28 | 2021-01-29T09:15:28 | 334,092,693 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,607 | java | package com.instagram_rn;
import android.app.Application;
import android.content.Context;
import com.facebook.react.PackageList;
import com.facebook.react.ReactApplication;
import com.facebook.react.ReactInstanceManager;
import com.facebook.react.ReactNativeHost;
import com.facebook.react.ReactPackage;
import com.facebook.soloader.SoLoader;
import java.lang.reflect.InvocationTargetException;
import java.util.List;
public class MainApplication extends Application implements ReactApplication {
private final ReactNativeHost mReactNativeHost =
new ReactNativeHost(this) {
@Override
public boolean getUseDeveloperSupport() {
return BuildConfig.DEBUG;
}
@Override
protected List<ReactPackage> getPackages() {
@SuppressWarnings("UnnecessaryLocalVariable")
List<ReactPackage> packages = new PackageList(this).getPackages();
// Packages that cannot be autolinked yet can be added manually here, for example:
// packages.add(new MyReactNativePackage());
return packages;
}
@Override
protected String getJSMainModuleName() {
return "index";
}
};
@Override
public ReactNativeHost getReactNativeHost() {
return mReactNativeHost;
}
@Override
public void onCreate() {
super.onCreate();
SoLoader.init(this, /* native exopackage */ false);
initializeFlipper(this, getReactNativeHost().getReactInstanceManager());
}
/**
* Loads Flipper in React Native templates. Call this in the onCreate method with something like
* initializeFlipper(this, getReactNativeHost().getReactInstanceManager());
*
* @param context
* @param reactInstanceManager
*/
private static void initializeFlipper(
Context context, ReactInstanceManager reactInstanceManager) {
if (BuildConfig.DEBUG) {
try {
/*
We use reflection here to pick up the class that initializes Flipper,
since Flipper library is not available in release mode
*/
Class<?> aClass = Class.forName("com.instagram_rn.ReactNativeFlipper");
aClass
.getMethod("initializeFlipper", Context.class, ReactInstanceManager.class)
.invoke(null, context, reactInstanceManager);
} catch (ClassNotFoundException e) {
e.printStackTrace();
} catch (NoSuchMethodException e) {
e.printStackTrace();
} catch (IllegalAccessException e) {
e.printStackTrace();
} catch (InvocationTargetException e) {
e.printStackTrace();
}
}
}
}
| [
"rianiregho@gmail.com"
] | rianiregho@gmail.com |
a2f3616886f1a26dba38b8e22e5159838050b582 | 305caa35adb658e004b887da6272d992eabc2322 | /src/main/java/com/sergiomartinrubio/javaeewebsocketxmppclient/domain/MessageType.java | 09fc0ece53853beebeb5498813b58f846f20c65e | [] | no_license | smartinrub/javaee-websocket-xmpp-client | 087333592de4706d4690588e9ef324e0da725ba1 | a5fde2346cc1f4fb0bed3deedfcf17a08bfdf0fc | refs/heads/master | 2020-12-03T20:02:02.870734 | 2020-01-18T12:33:53 | 2020-01-18T12:33:53 | 231,466,729 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 122 | java | package com.sergiomartinrubio.javaeewebsocketxmppclient.domain;
public enum MessageType {
CHAT, JOIN, LEAVE, ERROR
}
| [
"econsergio@gmail.com"
] | econsergio@gmail.com |
deb4ee7592995123ac9d41e33f1af87bfa08b48d | 9f61aeb5c3049f7c4a705c290c6fce708a179742 | /springboot-service-pokeapi/src/main/java/com/alea/springboot/app/pokeapi/entity/resource/NamedAPIResource.java | 85a0195e4235eb744584060b4dc9ccedcedcb750 | [] | no_license | lordzuzen/pokeapi | 96739c133b82362a0d8320b6f68e15bde185b539 | 9d8be7b0a9d8d99cc0f0c51d153db5158ec78f3a | refs/heads/master | 2022-06-12T00:29:24.539344 | 2019-07-21T18:41:22 | 2019-07-21T18:41:22 | 197,946,720 | 0 | 0 | null | 2022-05-20T21:03:18 | 2019-07-20T15:13:47 | Java | UTF-8 | Java | false | false | 370 | java | package com.alea.springboot.app.pokeapi.entity.resource;
import java.io.Serializable;
import lombok.Data;
@Data
public class NamedAPIResource implements Serializable {
// The name of the referenced resource.
private String name;
// The URL of the referenced resource.
private String url;
private static final long serialVersionUID = 8375569723311021346L;
}
| [
"lordzuzen@gmail.com"
] | lordzuzen@gmail.com |
96ed7a80d88a09c6e96e1c28411b809d8b628fc3 | 49f3dc2e4c5f4df08c394c76398b82ae68312b6b | /06/app/src/main/java/com/example/sixthactivity/util/FileUtil.java | 432ff29617589b51e0a37e151c677be0f5893992 | [] | no_license | zhoushihao18990087/- | dde8f21bcf89db9866a885c0d0153b455dd2663d | 995ac70023a4cf210b0058e58151ef30ee0fe62d | refs/heads/master | 2023-02-04T07:54:01.744855 | 2020-12-18T11:49:06 | 2020-12-18T11:49:06 | 305,123,039 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 4,766 | java | package com.example.sixthactivity.util;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.FilenameFilter;
import java.util.ArrayList;
import java.util.Locale;
public class FileUtil {
// 把字符串保存到指定路径的文本文件
public static void saveText(String path, String txt) {
try {
// 根据指定文件路径构建文件输出流对象
FileOutputStream fos = new FileOutputStream(path);
// 把字符串写入文件输出流
fos.write(txt.getBytes());
// 关闭文件输出流
fos.close();
} catch (Exception e) {
e.printStackTrace();
}
}
// 从指定路径的文本文件中读取内容字符串
public static String openText(String path) {
String readStr = "";
try {
// 根据指定文件路径构建文件输入流对象
FileInputStream fis = new FileInputStream(path);
byte[] b = new byte[fis.available()];
// 从文件输入流读取字节数组
fis.read(b);
// 把字节数组转换为字符串
readStr = new String(b);
// 关闭文件输入流
fis.close();
} catch (Exception e) {
e.printStackTrace();
}
// 返回文本文件中的文本字符串
return readStr;
}
// 把位图数据保存到指定路径的图片文件
public static void saveImage(String path, Bitmap bitmap) {
try {
// 根据指定文件路径构建缓存输出流对象
BufferedOutputStream bos = new BufferedOutputStream(new FileOutputStream(path));
// 把位图数据压缩到缓存输出流中
bitmap.compress(Bitmap.CompressFormat.JPEG, 80, bos);
// 完成缓存输出流的写入动作
bos.flush();
// 关闭缓存输出流
bos.close();
} catch (Exception e) {
e.printStackTrace();
}
}
// 从指定路径的图片文件中读取位图数据
public static Bitmap openImage(String path) {
Bitmap bitmap = null;
try {
// 根据指定文件路径构建缓存输入流对象
BufferedInputStream bis = new BufferedInputStream(new FileInputStream(path));
// 从缓存输入流中解码位图数据
bitmap = BitmapFactory.decodeStream(bis);
bis.close(); // 关闭缓存输入流
} catch (Exception e) {
e.printStackTrace();
}
// 返回图片文件中的位图数据
return bitmap;
}
public static ArrayList<File> getFileList(String path, String[] extendArray) {
ArrayList<File> displayedContent = new ArrayList<File>();
File[] files = null;
File directory = new File(path);
if (extendArray != null && extendArray.length > 0) {
FilenameFilter fileFilter = getTypeFilter(extendArray);
files = directory.listFiles(fileFilter);
} else {
files = directory.listFiles();
}
if (files != null) {
for (File f : files) {
if (!f.isDirectory() && !f.isHidden()) {
displayedContent.add(f);
}
}
}
return displayedContent;
}
public static FilenameFilter getTypeFilter(String[] extendArray) {
final ArrayList<String> fileExtensions = new ArrayList<String>();
for (int i = 0; i < extendArray.length; i++) {
fileExtensions.add(extendArray[i]);
}
FilenameFilter fileNameFilter = new FilenameFilter() {
@Override
public boolean accept(File directory, String fileName) {
boolean matched = false;
File f = new File(String.format("%s/%s",
directory.getAbsolutePath(), fileName));
matched = f.isDirectory();
if (!matched) {
for (String s : fileExtensions) {
s = String.format(".{0,}\\%s$", s);
s = s.toUpperCase(Locale.getDefault());
fileName = fileName.toUpperCase(Locale.getDefault());
matched = fileName.matches(s);
if (matched) {
break;
}
}
}
return matched;
}
};
return fileNameFilter;
}
}
| [
"1732796645@qq.com"
] | 1732796645@qq.com |
b0aa12820d5e1b16b9f81710f84da5467c1f9970 | 2b2d7efc6ddd0bc6175c68c4d839e23da3278714 | /src/main/java/com/mozss/basic/patterns/behavior/iteratior/whitebox_demo/CreateIterator.java | 7bf87ae3042e14d036805696e6288ab636b23f54 | [] | no_license | mozss/notes-java | 440bac316bba57888cb1265ed87273b77f7dfc86 | 0f4e1e5b7e77fd9c72d7dc0925ba29c19fa17880 | refs/heads/master | 2023-01-07T10:37:00.001220 | 2020-11-08T14:55:56 | 2020-11-08T14:55:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 978 | java | package com.mozss.basic.patterns.behavior.iteratior.whitebox_demo;
/**
* @author mozss
* @create 2019-10-28 13:43
*/
public class CreateIterator implements Iterator {
private final ConcreteAggregate agg;
private int index = 0;
private int size = 0;
/*
* 构造函数
* */
public CreateIterator(ConcreteAggregate agg) {
this.agg = agg;
size = agg.size();
index = 0;
}
/*
* 移动到第一个元素
* */
@Override
public void first() {
index = 0;
}
/*
* 移动到下一个元素
* */
@Override
public void next() {
if (index < size) {
index++;
}
}
/*
* 是否为最后一个元素
* */
@Override
public boolean isDone() {
return (index >= size);
}
/*
* 返回当前元素
* */
@Override
public Object currentIterator() {
return agg.getElement(index);
}
}
| [
"mozss1024@gmail.com"
] | mozss1024@gmail.com |
3141a6341d667124ef9d484d829736cfba26d178 | 2b51f9dee4b34216bdd0010c828acf231a325856 | /src/com/reckitBekinser/activity/main/transaksiKeluar/GantiJumlahSparepartKeluarViewImpl.java | 356abb0ea4ffb63b29683e7f2614adfc6c413cf8 | [] | no_license | dikawardani24/Sistem-informasi-Sparepart | 7edbbb5ae9e0ba8ff458dea782857396a22bc78a | 5e2a19e7304af02ba22087d6ba6babe9fc447eb5 | refs/heads/master | 2020-03-19T12:27:04.768877 | 2018-06-19T14:32:05 | 2018-06-19T14:32:05 | 136,517,758 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 7,680 | java | /*
* Copyright (c) 2018 dika.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* dika - initial API and implementation and/or initial documentation
*/
package com.reckitBekinser.activity.main.transaksiKeluar;
import com.dika.view.component.Button;
import com.dika.view.component.Dialog;
import com.dika.view.component.Label;
import com.dika.view.component.TextField;
import com.dika.view.component.custom.DecimalFormattedTextField;
/**
*
* @author dika
*/
public class GantiJumlahSparepartKeluarViewImpl extends Dialog implements GantiJumlahSparepartKeluarView {
/**
* Creates new form GantiJumlahSparepartKeluarViewImpl
*/
public GantiJumlahSparepartKeluarViewImpl() {
super();
initComponents();
}
/**
* This method is called from within the constructor to initialize the form.
* WARNING: Do NOT modify this code. The content of this method is always
* regenerated by the Form Editor.
*/
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
com.dika.view.component.Panel panel1 = new com.dika.view.component.Panel();
com.dika.view.component.custom.HeaderLabel headerLabel1 = new com.dika.view.component.custom.HeaderLabel();
jmlMaksLabel = new com.dika.view.component.Label();
com.dika.view.component.Label label2 = new com.dika.view.component.Label();
jumlahKeluarField = new com.dika.view.component.custom.RequireDecimalFormattedTextField();
saveButton1 = new com.dika.view.component.custom.SaveButton();
cancelButton1 = new com.dika.view.component.custom.CancelButton();
headerLabel1.setText("Ganti Jumlah Keluar");
jmlMaksLabel.setText("Jumlah Maksimum : ");
label2.setText("Masukkan Jumlah ");
javax.swing.GroupLayout panel1Layout = new javax.swing.GroupLayout(panel1);
panel1.setLayout(panel1Layout);
panel1Layout.setHorizontalGroup(
panel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(panel1Layout.createSequentialGroup()
.addContainerGap()
.addGroup(panel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(panel1Layout.createSequentialGroup()
.addComponent(headerLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 33, Short.MAX_VALUE)
.addComponent(jmlMaksLabel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(panel1Layout.createSequentialGroup()
.addComponent(label2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(0, 0, Short.MAX_VALUE))
.addComponent(jumlahKeluarField, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, panel1Layout.createSequentialGroup()
.addGap(0, 0, Short.MAX_VALUE)
.addComponent(cancelButton1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(saveButton1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addContainerGap())
);
panel1Layout.setVerticalGroup(
panel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(panel1Layout.createSequentialGroup()
.addContainerGap()
.addGroup(panel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(headerLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jmlMaksLabel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(label2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jumlahKeluarField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addGroup(panel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(saveButton1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(cancelButton1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addContainerGap())
);
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addComponent(panel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addContainerGap())
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addComponent(panel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addContainerGap())
);
pack();
}// </editor-fold>//GEN-END:initComponents
// Variables declaration - do not modify//GEN-BEGIN:variables
private com.dika.view.component.custom.CancelButton cancelButton1;
private com.dika.view.component.Label jmlMaksLabel;
private com.dika.view.component.custom.RequireDecimalFormattedTextField jumlahKeluarField;
private com.dika.view.component.custom.SaveButton saveButton1;
// End of variables declaration//GEN-END:variables
@Override
public Label getJmlMaxLabel() {
return jmlMaksLabel;
}
@Override
public DecimalFormattedTextField getJumlahField() {
return jumlahKeluarField;
}
@Override
public Button getSaveButton() {
return saveButton1;
}
@Override
public Button getCancelButton() {
return cancelButton1;
}
@Override
public Dialog getRoot() {
return this;
}
}
| [
"dikawardani24@gmail.com"
] | dikawardani24@gmail.com |
683c9a01f28dc1f9fdf564fe2bd3686ef08f1a2c | da5b6897f82d222e05fa5fb07103dc0a14b05bbb | /src/data/Tarjan/48657_Tarjan_1575104153599/src.backup/test/java/net/mooctest/DenseWeightedGraphTest.java | 38c985cbca6a95ee45516c79dd192ada8e33ef7c | [] | no_license | DingDuan/SimAnalysisWS | a227de5ad0aa4d05515aa07f90855100f0713504 | 36428ea585922a1d6739de5f525e2d582a590be2 | refs/heads/master | 2022-11-23T12:42:14.076709 | 2020-04-30T10:57:49 | 2020-04-30T10:57:49 | 218,675,392 | 0 | 0 | null | 2022-11-16T10:22:29 | 2019-10-31T03:17:13 | Java | UTF-8 | Java | false | false | 4,524 | java | package net.mooctest;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import java.util.ArrayList;
import java.util.Collection;
import java.util.EnumSet;
import java.util.Locale;
import org.junit.Test;
public class DenseWeightedGraphTest {
public void test() {
double[][] doubleArray0 = new double[7][6];
DenseWeightedGraph<Integer> denseWeightedGraph0 = DenseWeightedGraph.from(doubleArray0);
Integer integer0 = new Integer(0);
Collection<Weighted<Edge<Integer>>> collection0 = denseWeightedGraph0.getIncomingEdges(integer0);
assertNotNull(collection0);
}
@Test
public void test01() {
double[][] doubleArray0 = new double[9][1];
DenseWeightedGraph<Integer> denseWeightedGraph0 = DenseWeightedGraph.from(doubleArray0);
Integer integer0 = new Integer(0);
Integer integer1 = new Integer(0);
double double0 = denseWeightedGraph0.getWeightOf(integer0, integer1);
assertEquals(0.0, double0, 0.01);
}
@Test
public void test02() {
double[][] doubleArray0 = new double[9][1];
double[] doubleArray1 = new double[7];
doubleArray1[1] = 0.5;
doubleArray0[1] = doubleArray1;
DenseWeightedGraph<Integer> denseWeightedGraph0 = DenseWeightedGraph.from(doubleArray0);
Integer integer0 = new Integer(1);
double double0 = denseWeightedGraph0.getWeightOf(integer0, integer0);
assertEquals(0.5, double0, 0.01);
}
@Test
public void test03() {
ArrayList<Edge<Object>> arrayList0 = new ArrayList<Edge<Object>>();
double[][] doubleArray0 = new double[2][5];
double[] doubleArray1 = new double[5];
Edge<Object> edge0 = new Edge<Object>(doubleArray1, arrayList0);
arrayList0.add(edge0);
arrayList0.add(edge0);
// Undeclared exception!
try {
DenseWeightedGraph.from((Iterable<Edge<Object>>) arrayList0, doubleArray0);
fail("Expecting exception: StackOverflowError");
} catch(StackOverflowError e) {
}
}
@Test
public void test04() {
double[][] doubleArray0 = new double[5][9];
// Undeclared exception!
try {
DenseWeightedGraph.from((Iterable<Weighted<Locale.Category>>) null, doubleArray0);
fail("Expecting exception: NullPointerException");
} catch(NullPointerException e) {
}
}
@Test
public void test05() {
Locale.Category locale_Category0 = Locale.Category.DISPLAY;
EnumSet<Locale.Category> enumSet0 = EnumSet.of(locale_Category0);
double[][] doubleArray0 = new double[1][5];
DenseWeightedGraph<Locale.Category> denseWeightedGraph0 = DenseWeightedGraph.from((Iterable<Locale.Category>) enumSet0, doubleArray0);
double double0 = denseWeightedGraph0.getWeightOf(locale_Category0, (Locale.Category) null);
assertEquals(Double.NEGATIVE_INFINITY, double0, 0.01);
}
@Test
public void test06() {
Locale.Category locale_Category0 = Locale.Category.DISPLAY;
EnumSet<Locale.Category> enumSet0 = EnumSet.of(locale_Category0);
double[][] doubleArray0 = new double[1][5];
DenseWeightedGraph<Locale.Category> denseWeightedGraph0 = DenseWeightedGraph.from((Iterable<Locale.Category>) enumSet0, doubleArray0);
Locale.Category locale_Category1 = Locale.Category.FORMAT;
double double0 = denseWeightedGraph0.getWeightOf(locale_Category1, locale_Category0);
assertEquals(Double.NEGATIVE_INFINITY, double0, 0.01);
}
@Test
public void test07() {
Locale.Category locale_Category0 = Locale.Category.DISPLAY;
EnumSet<Locale.Category> enumSet0 = EnumSet.of(locale_Category0);
double[][] doubleArray0 = new double[1][5];
DenseWeightedGraph<Locale.Category> denseWeightedGraph0 = DenseWeightedGraph.from((Iterable<Locale.Category>) enumSet0, doubleArray0);
Collection<Locale.Category> collection0 = denseWeightedGraph0.getNodes();
assertTrue(collection0.contains(locale_Category0));
}
@Test
public void test08() {
double[][] doubleArray0 = new double[1][5];
DenseWeightedGraph<Integer> denseWeightedGraph0 = DenseWeightedGraph.from(doubleArray0);
Integer integer0 = new Integer(1);
Collection<Weighted<Edge<Integer>>> collection0 = denseWeightedGraph0.getIncomingEdges(integer0);
assertNotNull(collection0);
}
}
| [
"983117808@qq.com"
] | 983117808@qq.com |
7d04dda933d68fff6ff7fa1c217a39deb3df3d7f | f8014702e57347bbc3762d443b29de4c5ce36479 | /tuikit/src/main/java/com/tencent/qcloud/tim/uikit/utils/SharedPreferenceUtils.java | 201852fa944380697638022d90ca9ef301809bff | [] | no_license | hyc956944953/IM_4.4.627-2019.06.27 | bfa72bf906287f475d0e23d38901a5b15b4222be | e60aa043f6e144c397cf270ff7e259b075ddacf3 | refs/heads/master | 2020-06-13T05:10:28.655880 | 2019-06-30T17:40:01 | 2019-06-30T17:40:01 | 194,543,092 | 3 | 0 | null | null | null | null | UTF-8 | Java | false | false | 6,024 | java | package com.tencent.qcloud.tim.uikit.utils;
import android.content.SharedPreferences;
import com.google.gson.Gson;
import com.google.gson.JsonArray;
import com.google.gson.JsonElement;
import com.google.gson.JsonParser;
import java.util.LinkedList;
public class SharedPreferenceUtils {
/**
* 保存数据到SharedPreferences
*
* @param key 键
* @param value 需要保存的数据
* @return 保存结果
*/
public static boolean putData(SharedPreferences sp, String key, Object value) {
boolean result;
SharedPreferences.Editor editor = sp.edit();
String type = value.getClass().getSimpleName();
try {
switch (type) {
case "Boolean":
editor.putBoolean(key, (Boolean) value);
break;
case "Long":
editor.putLong(key, (Long) value);
break;
case "Float":
editor.putFloat(key, (Float) value);
break;
case "String":
editor.putString(key, (String) value);
break;
case "Integer":
editor.putInt(key, (Integer) value);
break;
default:
Gson gson = new Gson();
String json = gson.toJson(value);
editor.putString(key, json);
break;
}
result = true;
} catch (Exception e) {
result = false;
e.printStackTrace();
}
editor.apply();
return result;
}
/**
* 获取SharedPreferences中保存的数据
*
* @param key 键
* @param defaultValue 获取失败默认值
* @return 从SharedPreferences读取的数据
*/
public static Object getData(SharedPreferences sp, String key, Object defaultValue) {
Object result;
String type = defaultValue.getClass().getSimpleName();
try {
switch (type) {
case "Boolean":
result = sp.getBoolean(key, (Boolean) defaultValue);
break;
case "Long":
result = sp.getLong(key, (Long) defaultValue);
break;
case "Float":
result = sp.getFloat(key, (Float) defaultValue);
break;
case "String":
result = sp.getString(key, (String) defaultValue);
break;
case "Integer":
result = sp.getInt(key, (Integer) defaultValue);
break;
default:
Gson gson = new Gson();
String json = sp.getString(key, "");
if (!json.equals("") && json.length() > 0) {
result = gson.fromJson(json, defaultValue.getClass());
} else {
result = defaultValue;
}
break;
}
} catch (Exception e) {
result = null;
e.printStackTrace();
}
return result;
}
/**
* 用于保存集合
*
* @param key key
* @param list 集合数据
* @return 保存结果
*/
public static <T> boolean putListData(SharedPreferences sp, String key, LinkedList<T> list) {
boolean result;
SharedPreferences.Editor editor = sp.edit();
JsonArray array = new JsonArray();
if (list.size() <= 0) {
editor.putString(key, array.toString());
editor.apply();
return false;
}
String type = list.get(0).getClass().getSimpleName();
try {
switch (type) {
case "Boolean":
for (int i = 0; i < list.size(); i++) {
array.add((Boolean) list.get(i));
}
break;
case "Long":
for (int i = 0; i < list.size(); i++) {
array.add((Long) list.get(i));
}
break;
case "Float":
for (int i = 0; i < list.size(); i++) {
array.add((Float) list.get(i));
}
break;
case "String":
for (int i = 0; i < list.size(); i++) {
array.add((String) list.get(i));
}
break;
case "Integer":
for (int i = 0; i < list.size(); i++) {
array.add((Integer) list.get(i));
}
break;
default:
Gson gson = new Gson();
for (int i = 0; i < list.size(); i++) {
JsonElement obj = gson.toJsonTree(list.get(i));
array.add(obj);
}
break;
}
editor.putString(key, array.toString());
result = true;
} catch (Exception e) {
result = false;
e.printStackTrace();
}
editor.apply();
return result;
}
/**
* 获取保存的List
*
* @param key key
* @return 对应的Lis集合
*/
public static <T> LinkedList<T> getListData(SharedPreferences sp, String key, Class<T> cls) {
LinkedList<T> list = new LinkedList<>();
String json = sp.getString(key, "");
if (!json.equals("") && json.length() > 0) {
Gson gson = new Gson();
JsonArray array = new JsonParser().parse(json).getAsJsonArray();
for (JsonElement elem : array) {
list.add(gson.fromJson(elem, cls));
}
}
return list;
}
}
| [
"956944953@qq.com"
] | 956944953@qq.com |
6a9d1e93ccb6b7f6f4aedc8e6583716136f81cc3 | 47763d2dfc7884e53fa80abddfbeb7e60bfcd6dd | /app/src/main/java/br/com/rdev/hmtimeturner/dao/PatternDAO.java | b5f181957047b9672f363e05ab30e7319b695bf3 | [] | no_license | rsl50/HM_TimeTurner | 46852c206d07b47f6b1e60b8f8713bcb5e81a39d | e1479bbb5e3808501abcb11f4c14e73d4fcad223 | refs/heads/master | 2022-12-28T19:41:38.380518 | 2020-10-12T20:52:51 | 2020-10-12T20:52:51 | 267,747,250 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 868 | java | package br.com.rdev.hmtimeturner.dao;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import br.com.rdev.hmtimeturner.model.Pattern;
public class PatternDAO {
private final static ArrayList<Pattern> results = new ArrayList<>();
public List<Pattern> todos() {
return (List<Pattern>) results.clone();
}
public void insere(Pattern... patterns) {
PatternDAO.results.addAll(Arrays.asList(patterns));
}
public void altera(int posicao, Pattern result) {
results.set(posicao, result);
}
public void remove(int posicao) {
results.remove(posicao);
}
public void troca(int posicaoInicio, int posicaoFim) {
Collections.swap(results, posicaoInicio, posicaoFim);
}
public void removeTodos() {
results.clear();
}
}
| [
"rsl.robson@gmail.com"
] | rsl.robson@gmail.com |
1867b3560c7674ea918069f6854ef96d26f87d94 | a4a2fe3efe8672cd1437cc06d10e570febe00097 | /app/src/androidTest/java/com/jackin/messengerdemo/ExampleInstrumentedTest.java | 43c302d7cf5be59087a9cbe0a628f58d8a0cf704 | [] | no_license | LiuJQ/MessengerDemo | 67437dba51c894c5522c78e74b0aca7e38b4da66 | 2f993d1e697ded851b6ce469cb06f133833f27ea | refs/heads/master | 2020-03-10T00:21:25.532655 | 2018-04-19T08:27:02 | 2018-04-19T08:27:02 | 129,079,999 | 0 | 0 | null | 2018-04-19T07:16:36 | 2018-04-11T10:59:18 | Java | UTF-8 | Java | false | false | 732 | java | package com.jackin.messengerdemo;
import android.content.Context;
import android.support.test.InstrumentationRegistry;
import android.support.test.runner.AndroidJUnit4;
import org.junit.Test;
import org.junit.runner.RunWith;
import static org.junit.Assert.*;
/**
* Instrumented test, which will execute on an Android device.
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
@RunWith(AndroidJUnit4.class)
public class ExampleInstrumentedTest {
@Test
public void useAppContext() {
// Context of the app under test.
Context appContext = InstrumentationRegistry.getTargetContext();
assertEquals("com.jackin.messengerdemo", appContext.getPackageName());
}
}
| [
"liujianqiao@meizu.com"
] | liujianqiao@meizu.com |
4899610237a0bb089e095730009282ad1a1605b5 | 40951f7e3de12d69f3116116cbe5010cf7678792 | /src/main/java/cn/sibu/codegen/interfaces/ColumnMetaService.java | d54e07dec8c5540503519160e79477e306bdab48 | [] | no_license | liuqi007/CodeGen | 4bdccc56e1c55ca6540921180620e08c095cab88 | 50a4d4a63cc6e724c67ed8cff12c34a30439632d | refs/heads/master | 2021-01-10T08:12:41.290751 | 2015-11-04T09:17:10 | 2015-11-04T09:17:10 | 43,069,934 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 256 | java | package cn.sibu.codegen.interfaces;
import java.util.List;
import cn.sibu.codegen.vo.ColumnMeta;
/**
* 数据库表描述接口
* @author liuqi
*
*/
public interface ColumnMetaService {
public List<ColumnMeta> getAllColumnName(String tableName);
}
| [
"liuqi_it@163.com"
] | liuqi_it@163.com |
74d047d72948a1095f4a0d384694ad771f859f1d | 5d4fc6b8081950a540250e6575a3b9c7c4c1e8ca | /src/main/java/model/Definition.java | 005c856146e7df41defbfddaa63c69091c3a98a7 | [] | no_license | aminmansour/pushdown-automata | cf12fce8fdf624f05ecb167c7ccf54589e7d7485 | 2fb6d63ee334cf4b7d65d138150485ca63e74dad | refs/heads/master | 2020-03-27T11:52:04.656352 | 2018-08-28T21:12:59 | 2018-08-28T21:12:59 | 146,510,948 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,031 | java | package model;
import java.util.ArrayList;
/**
* Definition is the item specification which is loaded into the PDAMachine instance. It describes
* the structure of the PDA and holds all the transitions which are possible.
*/
public class Definition {
private String identifier;
private ArrayList<ControlState> states;
private boolean isAcceptByFinalState;
private ArrayList<Transition> transitions;
private ControlState initialState;
private String exampleHint;
/**
* An in-depth constructor for a Definition object
*
* @param identifier the id assigned to definition (for saving purposes)
* @param states the control states
* @param initialState the initial state
* @param transitions the transitions which the PDA will be able to make
* @param isAcceptByFinalState the accepting criterion of the PDA
*/
public Definition(String identifier, ArrayList<ControlState> states, ControlState initialState, ArrayList<Transition> transitions, boolean isAcceptByFinalState) {
this.identifier = identifier;
this.states = states;
this.isAcceptByFinalState = isAcceptByFinalState;
this.transitions = transitions;
this.initialState = initialState;
initialState.markAsInitial();
}
/**
* A empty Definition constructor
*/
public Definition() { }
public void setStates(ArrayList<ControlState> states) {
this.states = states;
}
public boolean isAcceptByFinalState() {
return isAcceptByFinalState;
}
public String getIdentifier() {
return identifier;
}
public void setIdentifier(String identifier) {
this.identifier = identifier;
}
public ArrayList<ControlState> getStates() {
return states;
}
public ArrayList<Transition> getTransitions() {
return transitions;
}
public ControlState getInitialState() {
return initialState;
}
public void setInitialState(ControlState initialState) {
this.initialState = initialState;
}
public void setAcceptByFinalState(boolean acceptByFinalState) {
isAcceptByFinalState = acceptByFinalState;
}
public void setTransitions(ArrayList<Transition> transitions) {
this.transitions = transitions;
}
@Override
public boolean equals(Object obj) {
return identifier.equals(((Definition) obj).identifier);
}
/**
* A method which adds a transition to the already existing transitions
* @param newTransition the new transition to add
*/
public void addTransition(Transition newTransition) {
transitions.add(newTransition);
}
public String getExampleHint() {
return exampleHint;
}
public void setExampleHint(String exampleHint) {
this.exampleHint = exampleHint;
}
}
| [
"amin.mansour@kcl.ac.uk"
] | amin.mansour@kcl.ac.uk |
d74155e7be6bb3b3774a6583ca7f1ec975dd1935 | 7c8d57da8958a38711000228751cf23203406be0 | /app/src/main/java/com/kodman/mynotifications/Adapters/MyFragmetnPagerAdapter.java | 14dce47c3a873b1733720c53cb449959b55599bb | [] | no_license | CodmanD/MyNotifications | 1b29355bb6c0b583f4771271d1081ad0b43b32dd | 5de11c71182106eef873fd263bcad859551b92b6 | refs/heads/master | 2020-03-19T12:04:05.546706 | 2018-06-07T14:59:51 | 2018-06-07T14:59:51 | 136,493,287 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,333 | java | package com.kodman.mynotifications.Adapters;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.view.PagerAdapter;
import android.support.v4.app.FragmentPagerAdapter;
import com.kodman.mynotifications.Fragments.PageFragment;
import java.util.ArrayList;
public class MyFragmentPagerAdapter extends FragmentPagerAdapter {
private long baseId = 0;
private ArrayList<String> listFragments;
public MyFragmentPagerAdapter(FragmentManager fm) {
super(fm);
}
@Override
public Fragment getItem(int position) {
Fragment f = PageFragment.newInstance(position);
Bundle b = new Bundle();
//b.putParcelable("sd", selectedDate);
//f.getArguments().putParcelable("sd", selectedDate);
return f;
}
@Override
public int getCount() {
return listFragments.size();
}
@Override
public int getItemPosition(Object object) {
return PagerAdapter.POSITION_NONE;
}
@Override
public long getItemId(int position) {
return baseId + position;
}
public void notifyChangeInPosition(int n) {
baseId += getCount() + n;
//Log.d(TAG, "baseId = " + baseId + " n = " + n + " getCount" + getCount());
}
}
| [
"korovin.dmitry.1977@gmail.com"
] | korovin.dmitry.1977@gmail.com |
369afe44857dbfd90f966df14229039af535668a | 52fc4d9ac6233b60ca70e59152b5a3b0b755e8d4 | /src/test/java/com/imooc/ioc/aop/AspectBizTest.java | ef47c15419d07c4c0e8f6d1f09e537454c192d4d | [] | no_license | huxiaolei1997/Spring | 94ed033ee7172feeef79b2baeffa29676f0ca562 | b039ec689750d0d0b99c8bec7bf1d6bacf02a40f | refs/heads/master | 2022-12-22T05:03:05.589915 | 2021-03-21T02:46:19 | 2021-03-21T02:46:19 | 127,395,112 | 0 | 0 | null | 2022-12-16T03:20:14 | 2018-03-30T07:14:51 | Java | UTF-8 | Java | false | false | 1,308 | java | package com.imooc.ioc.aop;
import com.imooc.ioc.aop.biz.AspectBiz;
import org.junit.Test;
import org.springframework.context.support.AbstractApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
public class AspectBizTest {
@Test
public void testBiz() {
String springXmlPath = "classpath*:spring/spring-aop-schema-advice.xml";
// 非web应用使用AbstractApplicationContext初始化bean容器
// 在非Web应用中,手工加载Spring IoC容器,不能用ApplicationContext,
// 要用AbstractApplicationContext。用完以后要记得调用ctx.close()关闭容器。
// 如果不记得关闭容器,最典型的问题就是数据库连接不能释放。
AbstractApplicationContext abstractApplicationContext = new ClassPathXmlApplicationContext(springXmlPath);
abstractApplicationContext.start();
AspectBiz biz = abstractApplicationContext.getBean("aspectBiz", AspectBiz.class);
//JsrService jsrService = abstractApplicationContext.getBean("jsrService", JsrService.class);
//jsrService.save();
//biz.biz();
biz.init("moocService", 3);
//System.out.println(myDriverManager.getClass().getName());
abstractApplicationContext.close();
}
} | [
"huxiaolei1997@gmail.com"
] | huxiaolei1997@gmail.com |
fa35d703561686746899140e59f1424b6bc1d7d8 | 33a72f79863bf17d83fd8421f8ba92ed297d601b | /src/test/java/model/F6factory/method/BenzCar.java | d576a425ad08001a095ae4e67c8b602a4244b917 | [] | no_license | xiaobiao123/spring-mongodb-redis | 8ed530f22078e8567365ef2ea850f6aa1bca6e1d | b597a0a046374b28610d9f4fa1ae9fa181a93f87 | refs/heads/master | 2022-12-26T15:51:53.043064 | 2019-08-29T07:42:40 | 2019-08-29T07:42:40 | 84,541,404 | 1 | 0 | null | 2022-12-16T10:32:08 | 2017-03-10T09:11:09 | Java | UTF-8 | Java | false | false | 152 | java | package model.F6factory.method;
//奔驰车
class BenzCar implements ICar{
public void run(){
System.out.println("Benz car run");
}
} | [
"605678755@qq.com"
] | 605678755@qq.com |
2645e83c8f026bea4e41dbe78ab9e23f7c82d4cd | 1ee736ca765d7b70726c54b9c69be7b9b0a4a57b | /src/main/java/com/restservice/restService/RestServiceApplication.java | ac6bffdb6acf4808036c408b4cc1887cf1076558 | [] | no_license | kevinliangsgithub/restService | 245e7bce572b1853afd27751748c87b8a643533e | 357b8612794f53930e2afa7140fd47843db31965 | refs/heads/master | 2020-05-18T05:22:22.515129 | 2019-05-06T05:56:48 | 2019-05-06T05:56:48 | 184,204,150 | 0 | 0 | null | 2019-05-06T05:56:49 | 2019-04-30T06:24:53 | Java | UTF-8 | Java | false | false | 330 | java | package com.restservice.restService;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class RestServiceApplication {
public static void main(String[] args) {
SpringApplication.run(RestServiceApplication.class, args);
}
}
| [
"490466922@qq.com"
] | 490466922@qq.com |
d2a0aabbd75bb25907037dbe75d01294cad91e84 | b4167a982e98df7d8a9fc6df56296c0b4ae59118 | /src/mapper/Schoolroom.java | 5bf48aff6a52a5845b7c8aec6e3f799eaf64c52b | [] | no_license | Tan-zhong-sheng/SSMStuSystem | f8f553c2f0a77046f29257c5d48a75ee59238595 | 13929944361ab8d96cf9b58ab51edacea3bdbe47 | refs/heads/main | 2023-04-27T05:25:22.560192 | 2021-05-11T12:56:35 | 2021-05-11T12:56:35 | 366,259,655 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 348 | java | package mapper;
import java.util.List;
import pojo.SchoolRoom;
public interface Schoolroom {
public void Scinsert(SchoolRoom sc);
public List<SchoolRoom> SelectSchoolRoom(Integer start,Integer end);
public Integer Count();
public void DeleteSchoolRoom(Integer Scid);
public Void UpdateSchoolRoom(Integer Scid,String Management);
}
| [
"“2371331494@qq.com”"
] | “2371331494@qq.com” |
176bcfce2b6ed4c0fd03b72e033aca88b8635672 | 447520f40e82a060368a0802a391697bc00be96f | /apks/malware/app81/source/com/tencent/android/tpush/service/channel/b/i.java | b978dbe1e83ecc680805c754bf4eb32a1e25b784 | [
"Apache-2.0"
] | permissive | iantal/AndroidPermissions | 7f3343a9c29d82dbcd4ecd98b3a50ddf8d179465 | d623b732734243590b5f004d167e542e2e2ae249 | refs/heads/master | 2023-07-19T01:29:26.689186 | 2019-09-30T19:01:42 | 2019-09-30T19:01:42 | 107,239,248 | 0 | 0 | Apache-2.0 | 2023-07-16T07:41:38 | 2017-10-17T08:22:57 | null | UTF-8 | Java | false | false | 1,242 | java | package com.tencent.android.tpush.service.channel.b;
public abstract class i
extends f
{
protected short d;
protected int e;
protected long f;
protected long g;
protected short h;
protected short i;
protected short k;
protected short l;
protected short m;
protected byte[] n = new byte[0];
static
{
if (!i.class.desiredAssertionStatus()) {}
for (boolean bool = true;; bool = false)
{
o = bool;
return;
}
}
public i() {}
public void a(short paramShort)
{
this.h = paramShort;
}
public void a(byte[] paramArrayOfByte)
{
this.n = paramArrayOfByte;
}
public void b(short paramShort)
{
this.k = paramShort;
}
public boolean e()
{
return (this.h & 0x80) != 0;
}
public short f()
{
return this.h;
}
public int g()
{
return this.e;
}
public short h()
{
return this.k;
}
public byte[] i()
{
return this.n;
}
public short j()
{
return this.m;
}
public String toString()
{
return getClass().getSimpleName() + "(p:" + this.k + "|v:" + this.l + "|r:" + this.g + "|s:" + this.e + "|c:" + Integer.toHexString(this.h) + "|r:" + this.m + "|l:" + this.f + ")";
}
}
| [
"antal.micky@yahoo.com"
] | antal.micky@yahoo.com |
4e188c3b01bbf1a5085c5dfdec00066b9cb40320 | ef8f74b2e9437cf61c8f9b8de8a422d2a0b7f507 | /src/main/java/com/wojciech/gaudnik/spock_test/SpockTestApplication.java | 8f5054c460dc7d789a84ca744c157c5414f850ab | [] | no_license | wojciechGaudnik/spock_test | 4eabe0d69a4e72a227596dcb542cd96de3fb0d89 | 6e6556333a7a73024cc7933dc56b18d2f4ef07a6 | refs/heads/master | 2022-12-23T12:47:24.617269 | 2020-10-04T20:24:37 | 2020-10-04T20:24:37 | 294,956,109 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 405 | java | package com.wojciech.gaudnik.spock_test;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
@SpringBootApplication
@EnableCaching
public class SpockTestApplication {
public static void main(String[] args) {
SpringApplication.run(SpockTestApplication.class, args);
}
}
| [
"wojciech.gaudnik@gmail.com"
] | wojciech.gaudnik@gmail.com |
a4a5ed157849b795a03acb525ad58dfbd679ca02 | 4233f03e208311212ca4c7003b37b72b4c3bcce4 | /src/test/java/guru/springframework/services/UnitOfMeasureServiceImplTest.java | db5f5e2e2c4cbb5c4ba01a41a2249855e7488e6f | [] | no_license | dpetan/spring5-recipe-app | a774f75db87b7da8fe1848f92da23a36f0d14b91 | 0b2094f2a69c9237a806f56cf13b9c1e216a7ed9 | refs/heads/master | 2020-06-19T23:28:38.178826 | 2019-08-17T15:10:20 | 2019-08-17T15:10:20 | 196,912,327 | 0 | 0 | null | 2019-07-15T02:48:27 | 2019-07-15T02:48:27 | null | UTF-8 | Java | false | false | 1,670 | java | package guru.springframework.services;
import static org.junit.Assert.assertEquals;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;
import java.util.HashSet;
import java.util.Set;
import guru.springframework.commands.UnitOfMeasureCommand;
import guru.springframework.converters.UnitOfMeasureToUnitOfMeasureCommand;
import guru.springframework.domain.UnitOfMeasure;
import guru.springframework.repositories.UnitOfMeasureRepository;
import org.junit.Before;
import org.junit.Test;
import org.mockito.Mock;
import org.mockito.MockitoAnnotations;
public class UnitOfMeasureServiceImplTest {
@Mock
UnitOfMeasureRepository unitOfMeasureRepository;
UnitOfMeasureToUnitOfMeasureCommand unitOfMeasureToUnitOfMeasureCommand = new UnitOfMeasureToUnitOfMeasureCommand();
UnitOfMeasureService service;
@Before
public void setUp() throws Exception {
MockitoAnnotations.initMocks(this);
service = new UnitOfMeasureServiceImpl(unitOfMeasureRepository, unitOfMeasureToUnitOfMeasureCommand);
}
@Test
public void listAllUoms() {
//given
Set<UnitOfMeasure> unitOfMeasures = new HashSet<>();
UnitOfMeasure uom1 = new UnitOfMeasure();
uom1.setId(1L);
unitOfMeasures.add(uom1);
UnitOfMeasure uom2 = new UnitOfMeasure();
uom2.setId(2L);
unitOfMeasures.add(uom2);
when(unitOfMeasureRepository.findAll()).thenReturn(unitOfMeasures);
//when
Set<UnitOfMeasureCommand> uoms = service.listAllUoms();
//then
assertEquals(2, uoms.size());
verify(unitOfMeasureRepository).findAll();
}
}
| [
"danijel.petanovic@ericsson.com"
] | danijel.petanovic@ericsson.com |
7e8b8f6ed75e0787593f2dd5aa1582b877499c3b | 5ec9fb408734f9df5056cb90e4ee5a35c04aa3f7 | /app/src/main/java/com/example/pupquiz/Question8FragmentBreed.java | c963c79045a334b51e136d0b714c31299d3b5529 | [] | no_license | cb4kas17/PupQuizAndroidApp | 8bcd3c07ccadd4e163356632ac6573dc4df3933b | b4e140c54782fddc5d5435d4cc6c02a67bac4048 | refs/heads/master | 2023-01-22T19:18:13.731699 | 2020-12-04T15:07:32 | 2020-12-04T15:07:32 | 306,853,498 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 6,617 | java | package com.example.pupquiz;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager;
import androidx.fragment.app.FragmentTransaction;
public class Question8FragmentBreed extends Fragment {
Button btn1, btn2, btn3, btn4;
String ans = "Siberian Husky";
public static int scorePerc;
public static int score;
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
View view = inflater.inflate(R.layout.fragment_question8_breed, container, false);
perform(view);
QuizPageBreed.next.setEnabled(false);
QuizPageBreed.next.setVisibility(View.INVISIBLE);
return view;
}
public void perform(View view){
btn1 = view.findViewById(R.id.choice1BreedBtn8);
btn2 = view.findViewById(R.id.choice2BreedBtn8);
btn3 = view.findViewById(R.id.choice3BreedBtn8);
btn4 = view.findViewById(R.id.choice4BreedBtn8);
btn1.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
btn1.setSelected(!btn1.isSelected());
QuizPageBreed.next.setVisibility(View.VISIBLE);
QuizPageBreed.next.setEnabled(true);
if(btn1.isSelected()){
if(btn1.getText().toString().equals(ans)){
scorePerc = 10;
score = 1;
btn1.setBackgroundResource(R.color.rightAns);
btn1.setEnabled(false);
Fragment fragmentCorrect = new CorrectFragment();
transit(fragmentCorrect);
}
else{
scorePerc = 0;
score = 0;
btn1.setBackgroundResource(R.color.wrongAns);
btn1.setEnabled(false);
Fragment fragmentWrong = new WrongFragment();
transit(fragmentWrong);
}
btn2.setEnabled(false);
btn3.setEnabled(false);
btn4.setEnabled(false);
}
}
});
btn2.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
btn2.setSelected(!btn2.isSelected());
QuizPageBreed.next.setVisibility(View.VISIBLE);
QuizPageBreed.next.setEnabled(true);
if(btn2.isSelected()){
if(btn2.getText().toString().equals(ans)){
scorePerc = 10;
score = 1;
btn2.setBackgroundResource(R.color.rightAns);
btn2.setEnabled(false);
Fragment fragmentCorrect = new CorrectFragment();
transit(fragmentCorrect);
}
else{
scorePerc = 0;
score = 0;
btn2.setBackgroundResource(R.color.wrongAns);
btn2.setEnabled(false);
Fragment fragmentWrong = new WrongFragment();
transit(fragmentWrong);
}
btn1.setEnabled(false);
btn3.setEnabled(false);
btn4.setEnabled(false);
}
}
});
btn3.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
btn3.setSelected(!btn3.isSelected());
QuizPageBreed.next.setVisibility(View.VISIBLE);
QuizPageBreed.next.setEnabled(true);
if(btn3.isSelected()){
if(btn3.getText().toString().equals(ans)){
scorePerc = 10;
score = 1;
btn3.setBackgroundResource(R.color.rightAns);
btn3.setEnabled(false);
Fragment fragmentCorrect = new CorrectFragment();
transit(fragmentCorrect);
}
else{
scorePerc = 0;
score = 0;
btn3.setBackgroundResource(R.color.wrongAns);
btn3.setEnabled(false);
Fragment fragmentWrong = new WrongFragment();
transit(fragmentWrong);
}
btn1.setEnabled(false);
btn2.setEnabled(false);
btn4.setEnabled(false);
}
}
});
btn4.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
btn4.setSelected(!btn4.isSelected());
QuizPageBreed.next.setVisibility(View.VISIBLE);
QuizPageBreed.next.setEnabled(true);
if(btn4.isSelected()){
if(btn4.getText().toString().equals(ans)){
scorePerc = 10;
score = 1;
btn4.setBackgroundResource(R.color.rightAns);
btn4.setEnabled(false);
Fragment fragmentCorrect = new CorrectFragment();
transit(fragmentCorrect);
}
else{
scorePerc = 0;
score = 0;
btn4.setBackgroundResource(R.color.wrongAns);
btn4.setEnabled(false);
Fragment fragmentWrong = new WrongFragment();
transit(fragmentWrong);
}
btn1.setEnabled(false);
btn2.setEnabled(false);
btn3.setEnabled(false);
}
}
});
}
void transit(Fragment fragment) {
FragmentManager manager = getFragmentManager();
FragmentTransaction transaction = manager.beginTransaction()
.setCustomAnimations(R.anim.animate_fade_enter, R.anim.animate_fade_exit);
transaction.replace(R.id.statusLayout, fragment);
transaction.commit();
}
} | [
"christianbryneportugal@yahoo.com"
] | christianbryneportugal@yahoo.com |
f918e922b893cd83fd6da22708760882306a2379 | d13b5669fd94e6498a1cb40492c26c38f80a1620 | /code/src/main/java/org/thekiddos/faith/repositories/ProjectRepository.java | fb3b6f3c91cd314fb7198da6281c4eac10088728 | [
"MIT"
] | permissive | ibrahimalia/faith | b434f5674cd0055433d18e854610311725c5ff21 | 0d0b12958313f45284349e37eeedd2c2b9a7d787 | refs/heads/main | 2023-03-25T06:09:22.417918 | 2021-03-14T20:09:20 | 2021-03-14T20:09:20 | 348,053,050 | 1 | 0 | MIT | 2021-03-15T16:56:21 | 2021-03-15T16:56:21 | null | UTF-8 | Java | false | false | 285 | java | package org.thekiddos.faith.repositories;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
import org.thekiddos.faith.models.Project;
@Repository
public interface ProjectRepository extends CrudRepository<Project, Long> {
}
| [
"mp4-12cs5@hotmail.com"
] | mp4-12cs5@hotmail.com |
83ae45be4487a31c768f9268874278772f1d4037 | 71505060050f0a9f4e6478e1755280c2bbaccac9 | /greenLight/src/main/java/com/suidifu/mq/producer/simple/SimpleTopicProducer.java | 17b8c301d39a1e5e9b547522e3466743bad966c6 | [] | no_license | soldiers1989/comsui | 1f73003e7345946ef51af7d73ee3da593f6151ed | 6f5c8a28fb1f58e0afc979a1dd5f2e43cbfa09cc | refs/heads/master | 2020-03-27T19:25:33.560060 | 2018-07-06T06:21:05 | 2018-07-06T06:21:05 | 146,988,141 | 0 | 1 | null | 2018-09-01T10:11:31 | 2018-09-01T10:11:31 | null | UTF-8 | Java | false | false | 548 | java | package com.suidifu.mq.producer.simple;
import java.util.List;
import com.suidifu.mq.config.RabbitMqQueueConfig;
import com.suidifu.mq.producer.producerworker.TopicProducer;
/**
* 例serviceName=table1.*,table2.*|table2.*,table4.*会产生2个队列,
* topicProducer.rpc().routingKey("table2.update").sendAsync..会同时往2个队列发数据
*
* @author lisf
*
*/
public abstract class SimpleTopicProducer extends TopicProducer {
@Override
protected List<RabbitMqQueueConfig> topicConfigList() {
return getTopicConfigList();
}
}
| [
"mwf5310@163.com"
] | mwf5310@163.com |
551dc6ab223e743ba487b59c4dc3bd3df0fa8850 | 8e7f3961baee776120f363aaf8d42bf92f70cd45 | /src/main/java/com/crtf/ssm/util/constant/ConstantQuantity.java | 4a467b403dd5a56de6540183f5330c4f0366dd48 | [] | no_license | RedEarListeningWind/SSM | 10117b645db831258660db4e020510438e4fdfdb | 8468177f41a948a034b38375f833321a2bd6fed2 | refs/heads/main | 2023-05-29T13:59:43.454765 | 2021-06-14T10:55:24 | 2021-06-14T10:55:24 | 376,763,665 | 1 | 1 | null | 2021-06-14T10:55:25 | 2021-06-14T09:05:00 | Java | UTF-8 | Java | false | false | 685 | java | package com.crtf.ssm.util.constant;
/**
* @author crtf
* @version V1.0
* @className ConstantQuantity
* @description 常量
* @date 21.6.14 0:13
*/
public class ConstantQuantity {
/**
* session 中存储的用户信息key SESSION_USER
*/
public static final String SESSION_USER = "SESSION_USER";
/**
* session 中存储的登录验证码key SESSION_LOGIN_CODE
*/
public static final String SESSION_LOGIN_CODE = "SESSION_LOGIN_CODE";
/**
* session 中存储的注册验证码key SESSION_REGISTER_CODE
*/
public static final String SESSION_REGISTER_CODE = "SESSION_REGISTER_CODE";
private ConstantQuantity() {
}
}
| [
"362819113@qq.com"
] | 362819113@qq.com |
b527caa713e0bf5cc5c733bdcc210a767c0466a5 | 41c5cd5ed190396285401ac43c6bf098cb3b9e2c | /src/gra.java | 474001ca033fa40129e2b65daf2d0a21aeee3760 | [] | no_license | Wilkkor/AGH-Badania_operacyjne3 | 46b64a6d9d45de0fa2684fba2a0f14c7965ce18c | f5b9a241c9236687f64ef9c8ef698825befaf245 | refs/heads/master | 2020-03-18T07:11:15.924561 | 2018-05-27T21:36:49 | 2018-05-27T21:36:49 | 134,437,946 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 14,286 | java | import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.BlockingQueue;
public class gra{
static int wymiar=30;
static BlockingQueue<Punkt_z_wartoscia> results = new ArrayBlockingQueue<>(wymiar *wymiar );
private int plansza[]=new int[wymiar*wymiar];
private int glebokosc_minimax=2;
static char moj_znak='x';
static char znak_przeciwnika='o';
static class MinMax extends Thread{
int [] plansza_teraz;
int glebokosc;
boolean czy_moj_ruch;
int x,y;
MinMax(int [] kopia_planszy,int glebokosc_minimax,boolean czy_moj_ruch,int x,int y){
plansza_teraz=kopia_planszy;
glebokosc=glebokosc_minimax;
this.czy_moj_ruch=czy_moj_ruch;
this.x=x;
this.y=y;
}
public void run(){
try {
Punkt_z_wartoscia punkt=new Punkt_z_wartoscia(minimax(plansza_teraz,glebokosc,czy_moj_ruch),x,y);
results.put(punkt);
} catch (InterruptedException e) {
e.printStackTrace();
}
}
int minimax(int [] plansza_teraz,int glebokosc,boolean czy_moj_ruch){
if(glebokosc>0){
int maxlubmin=czy_moj_ruch?-2147483648:2147483647,wartosc;
int []plansza_kopia;
boolean r;
for (int i=0;i<wymiar;i++){
for (int j=0;j<wymiar;j++){
r=false;
r = sprawdz_otoczenie(plansza_teraz,r, i, j);
if(r){
plansza_kopia=plansza_teraz.clone();
plansza_kopia[i*wymiar+j]=czy_moj_ruch?moj_znak:znak_przeciwnika;
wartosc=minimax(plansza_kopia,glebokosc-1,!czy_moj_ruch);// start wątków
if(czy_moj_ruch&&wartosc>maxlubmin){
maxlubmin=wartosc;
}
if (!czy_moj_ruch&&wartosc<maxlubmin){
maxlubmin=wartosc;
}
}
}
}
return maxlubmin;
}
else{
return ocen_planszę(plansza_teraz,czy_moj_ruch);
}
}
}
private void wyswietl(){
System.out.printf(" ");
for (int i=0;i<wymiar;i++){
System.out.printf("%2d|",i);
}
System.out.println();
for(int i=0;i<wymiar;i++){
System.out.printf("%2d",i);
for (int j=0;j<wymiar;j++){
System.out.printf(" %c|",plansza[i*wymiar+j]);
}
System.out.println();
}
}
private int decyzja() throws InterruptedException {
boolean r;
List <MinMax> threads=new ArrayList<MinMax>();
//Punkt punkt=new Punkt();
int [] kopia_planszy;
//int max=-2147483648;
Punkt_z_wartoscia punkt_z_wartoscia,max_z_wartoscia=new Punkt_z_wartoscia(-2147483648,-1,-1);
for (int i=0;i<wymiar;i++){
for (int j=0;j<wymiar;j++){
//r=false;
r = sprawdz_otoczenie(plansza,false, i, j);
if(r){
kopia_planszy=plansza.clone();
kopia_planszy[i*wymiar+j]=moj_znak;////////////////////////////////nie tak, mie na tej samej strukturze, tu wątki ??? oraz tylko po liście znanych elementów
threads.add(new MinMax(kopia_planszy,glebokosc_minimax,false,i,j));
// wartosc=minimax(kopia_planszy,glebokosc_minimax,false);
// if(wartosc>max){
// max=wartosc;
// punkt.x=i;
// punkt.y=j;
// System.out.printf("nadalem punktowi %d %d \n",i,j);
// }
}
}
}
for(int j=0;j<threads.size();j++){
threads.get(j).start();
}
for(int j=0;j<threads.size();j++){
punkt_z_wartoscia=results.take();
if(max_z_wartoscia.wartosc<punkt_z_wartoscia.wartosc){
max_z_wartoscia=punkt_z_wartoscia;
}
}
System.out.printf("Postawilem na %d %d \n",max_z_wartoscia.x,max_z_wartoscia.y);
plansza[max_z_wartoscia.x*wymiar+max_z_wartoscia.y]=moj_znak;
return max_z_wartoscia.wartosc;
}
private static int ocen_planszę(int [] plansza_teraz,boolean czy_moj_ruch) {
int miara=0;
int il_moich=0,il_przeciwnika=0;
boolean czy_bylo_puste=false;
int jii=0,i_0=0,j_0=0;
// xxx max xx 2 oooo min ooo -2 oo -1
for (int przejscie=0;przejscie<6;przejscie++){
switch (przejscie){
case 0:i_0=0;j_0=0;break;
case 1:i_0=0;j_0=0;break;
case 2:i_0=0;j_0=0;break;
case 3:i_0=0;j_0=0;break;
case 4:i_0=0;j_0=0;break;
case 5:i_0=wymiar-1;j_0=0;break;
}
boolean r=true;
while (i_0<wymiar&&j_0<wymiar&&i_0>=0&&j_0>=0){
int i=i_0;
int j=j_0;
while(i<wymiar&&j<wymiar&&i>=0&&j>=0){
// if(il_przeciwnika==5){
// return -2147483647;
// }
// else if (il_moich==5){
// miara+=60;
// }
if(plansza_teraz[i*wymiar+j]==' '&&!czy_bylo_puste&&(il_moich>1||il_przeciwnika>1)) {
if(il_przeciwnika==5){
return -2147483647;
}
else if (il_moich==5){
miara+=60;
}
}
else if(plansza_teraz[i*wymiar+j]==' '&&czy_bylo_puste&&(il_moich>1||il_przeciwnika>1)){
if(il_przeciwnika==5){
return -2147483647;
}
else if (il_moich==5){
miara+=60;
}
if(il_moich>0){
if(czy_moj_ruch){
if(il_moich==2){
miara+=2;
}
else if(il_moich==3){
miara+=4;
}
else if (il_moich==4){
miara+=60;
}
}
else {
if(il_moich==2){
miara+=1;
}
else if(il_moich==3){
miara+=5;
}
else if (il_moich==4){
miara+=40;
}
}
}
else {
if(czy_moj_ruch){
if(il_przeciwnika==2){
miara-=2;
}
else if(il_przeciwnika==3){
miara-=30;
}
else if (il_przeciwnika==4){
return -21474836;
}
}
else {
if(il_przeciwnika==2){
miara-=2;
}
else if(il_przeciwnika==3){
miara-=20;
}
else if(il_przeciwnika==4){
return -21474836;
}
}
}
il_moich=0;
il_przeciwnika=0;
czy_bylo_puste=true;
}
else if(plansza_teraz[i*wymiar+j]==moj_znak&&il_przeciwnika>0){
if(il_przeciwnika==5){
return -2147483647;
}
czy_bylo_puste=false;
il_przeciwnika=0;
il_moich++;
}
else if(plansza_teraz[i*wymiar+j]==znak_przeciwnika&&il_moich>0){
if (il_moich==5){
miara+=60;
}
czy_bylo_puste=false;
il_moich=0;
il_przeciwnika++;
}
else if(plansza_teraz[i*wymiar+j]==' '){
czy_bylo_puste=true;
il_moich=0;
il_przeciwnika=0;
}
else if(plansza_teraz[i*wymiar+j]==znak_przeciwnika)il_przeciwnika++;
else if(plansza_teraz[i*wymiar+j]==moj_znak)il_moich++;
switch (przejscie){
case 0:i++;break;
case 1:j++;break;
case 2:i++;j++;break;
case 3:i++;j++;break;
case 4:i--;j++;break;
case 5:i--;j++;break;
}
}
switch (przejscie){
case 0:j_0++;break;
case 1:i_0++;break;
case 2:j_0++;break;
case 3:i_0++;break;
case 4:i_0++;break;
case 5:j_0++;break;
}
il_moich=0;
il_przeciwnika=0;
czy_bylo_puste=false;
}
}
return miara;
}
private static boolean sprawdz_otoczenie(int [] plansza_teraz,boolean r, int i, int j) {// to nie bedzie chyba potrzebne
if(plansza_teraz[i*wymiar+j]==' '){
for (int k=-1;k<2;k++){
for (int l=-1;l<2;l++){
if(i+k>=0&&j+l>=0&&i+k<wymiar&&j+l<wymiar&&plansza_teraz[(i+k)*wymiar+j+l]!=' '){
r=true;
break;
}
}
if(r){
break;
}
}
}
return r;
}
public static void main(String[] args) throws InterruptedException {
int x,y;
Scanner in=new Scanner(System.in);
gra kolkoikrzyzyk=new gra();
for(int i=0;i<gra.wymiar;i++){
for (int j=0;j<gra.wymiar;j++){
kolkoikrzyzyk.plansza[i*gra.wymiar+j]=' ';
}
}
while(true){
kolkoikrzyzyk.wyswietl();
do {
System.out.println("podaj wolne pole na które chcesz postawić o ");
x = in.nextInt();
y = in.nextInt();
}while (kolkoikrzyzyk.plansza[x*gra.wymiar+y]!=' ');
kolkoikrzyzyk.plansza[x*gra.wymiar+y]=gra.znak_przeciwnika;
if(gra.ocen_planszę(kolkoikrzyzyk.plansza,true)==-2147483647)
{
System.out.println("wygrales");
return;
}
kolkoikrzyzyk.wyswietl();
//kolkoikrzyzyk.wyswietl();
if(kolkoikrzyzyk.decyzja()==-2147483647){
kolkoikrzyzyk.wyswietl();
System.out.println("Ech, wygrales, musiałem coś przeoczyć, ale następnym razem cię ogram !!!");
return;
}
int il_moich=0;
int jii=0,i_0=0,j_0=0;
if(sprawdz_czy_nie_wygralem(kolkoikrzyzyk)){
kolkoikrzyzyk.wyswietl();
System.out.println("wygralem uchachacha");
return;
}
}
}
private static boolean sprawdz_czy_nie_wygralem(gra kolkoikrzyzyk) {
int i_0,j_0,il_moich=0;
for (int przejscie=0;przejscie<6;przejscie++){
switch (przejscie){
case 0:i_0=0;j_0=0;break;
case 1:i_0=0;j_0=0;break;
case 2:i_0=0;j_0=0;break;
case 3:i_0=0;j_0=0;break;
case 4:i_0=0;j_0=0;break;
case 5:i_0=wymiar-1;j_0=0;break;
default:i_0=0;j_0=0;
}
boolean r=true;
while (i_0<wymiar&&j_0<wymiar&&i_0>=0&&j_0>=0){
int i=i_0;
int j=j_0;
while(i<wymiar&&j<wymiar&&i>=0&&j>=0){
if(kolkoikrzyzyk.plansza[i*wymiar+j]==' '&&il_moich>1){
if(il_moich==5)
return true;
il_moich=0;
}
else if(kolkoikrzyzyk.plansza[i*wymiar+j]==znak_przeciwnika){if(il_moich==5){return true;}il_moich=0;}
else if(kolkoikrzyzyk.plansza[i*wymiar+j]==moj_znak)il_moich++;
switch (przejscie){
case 0:i++;break;
case 1:j++;break;
case 2:i++;j++;break;
case 3:i++;j++;break;
case 4:i--;j++;break;
case 5:i--;j++;break;
}
}
switch (przejscie){
case 0:j_0++;break;
case 1:i_0++;break;
case 2:j_0++;break;
case 3:i_0++;break;
case 4:i_0++;break;
case 5:j_0++;break;
}
il_moich=0;
}
}
return false;
}
} | [
"kornelwil@gmail.com"
] | kornelwil@gmail.com |
088a9ab9882de4f0705350670e75fbf8583a7fdc | 6c4b0ed178e4da50adaf906f630e6af65c6f948d | /app/src/main/java/com/mingmay/bulan/ui/ChatListpage.java | 34c72dab99aa68b4db799bb917becbd35ffec298 | [] | no_license | zah5897/BuLan | af97737b23567ca196151a5706a60b76e28bfde4 | c170c3c3533d25b87ad8b3fe277433a3c7b79fa0 | refs/heads/master | 2021-01-21T17:29:30.571105 | 2016-12-17T10:15:40 | 2016-12-17T10:15:40 | 73,704,552 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,890 | java | package com.mingmay.bulan.ui;
import java.util.ArrayList;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.ImageView;
import android.widget.ListView;
import com.mingmay.bulan.R;
import com.mingmay.bulan.adapter.FriendAdapter;
import com.mingmay.bulan.model.User;
import com.mingmay.bulan.task.LatestChatFriendTask;
public class ChatListpage extends Activity implements OnClickListener {
private ListView mListView;
// private ArrayList<User> mData;
private FriendAdapter adapter;
@Override
public void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
super.onCreate(savedInstanceState);
setContentView(R.layout.layout_latest_chat);
initView();
loadData();
}
private void initView() {
ImageView back = (ImageView) findViewById(R.id.left_btn);
back.setImageResource(R.drawable.back_selector);
back.setOnClickListener(this);
mListView = (ListView) findViewById(R.id.list_view);
if (adapter != null) {
mListView.setAdapter(adapter);
}
}
private void loadData() {
LatestChatFriendTask task = new LatestChatFriendTask(this);
task.execute();
}
public void loadDataBallBack(ArrayList<User> data) {
if (adapter == null && data != null) {
adapter = new FriendAdapter(this, data);
mListView.setAdapter(adapter);
mListView.setOnItemClickListener(new OnItemClickListener() {
@Override
public void onItemClick(AdapterView<?> arg0, View arg1,
int arg2, long arg3) {
// TODO Auto-generated method stub
User f = adapter.getItem(arg2);
toChat(f);
}
});
} else if (adapter != null) {
adapter.clear();
}
if (adapter != null && adapter.getCount() > 0) {
findViewById(R.id.loading).setVisibility(View.GONE);
} else {
findViewById(R.id.loading).setVisibility(View.VISIBLE);
}
}
public void toChat(final User friend) {
// final String USERID = CCApplication.loginUser.loginName;
// final String PWD = CCApplication.loginUser.ccukey;
// Thread t = new Thread(new Runnable() {
// public void run() {
// try {
// XmppTool.getConnection().login(USERID, PWD);
// // Log.i("XMPPClient", "Logged in as " +
// // XmppTool.getConnection().getUser());
// Presence presence = new Presence(Presence.Type.available);
// XmppTool.getConnection().sendPacket(presence);
//
// Intent intent = new Intent();
// intent.setClass(ChatListpage.this, FormClient.class);
// intent.putExtra("USERID", USERID);
// intent.putExtra("friend", friend);
// startActivity(intent);
// } catch (XMPPException e) {
// XmppTool.closeConnection();
// }
// }
// });
// t.start();
}
@Override
public void onClick(View v) {
switch (v.getId()) {
default:
break;
}
}
}
| [
"zah5897@gmail.com"
] | zah5897@gmail.com |
3e91edd4cc7a7e3009d11441c1adc2c2e0e37a83 | 2a19b2f3eb1ed8a5393676724c77b4f03206dad8 | /src/main/java/org/acord/standards/life/_2/SecurityCredentialType.java | 432aee5f47edae8ad0e4caf5327a1c8953345266 | [] | no_license | SamratChatterjee/xsdTowsdl | 489777c2d7d66e8e5379fec49dffe15a19cb5650 | 807f1c948490f2c021dd401ff9dd5937688a24b2 | refs/heads/master | 2021-05-15T03:45:56.250598 | 2017-11-15T10:55:24 | 2017-11-15T10:55:24 | 110,820,957 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 24,117 | java | //
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.7
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2017.11.13 at 07:49:02 PM IST
//
package org.acord.standards.life._2;
import java.math.BigInteger;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlID;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import javax.xml.datatype.XMLGregorianCalendar;
/**
* <p>Java class for SecurityCredential_Type complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="SecurityCredential_Type">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element ref="{http://ACORD.org/Standards/Life/2}SecurityCredentialKey" minOccurs="0"/>
* <element ref="{http://ACORD.org/Standards/Life/2}SecurityCredentialSysKey" maxOccurs="unbounded" minOccurs="0"/>
* <element ref="{http://ACORD.org/Standards/Life/2}UserLoginName" minOccurs="0"/>
* <element ref="{http://ACORD.org/Standards/Life/2}UserDomain" minOccurs="0"/>
* <element ref="{http://ACORD.org/Standards/Life/2}Description" minOccurs="0"/>
* <element ref="{http://ACORD.org/Standards/Life/2}Comments" minOccurs="0"/>
* <element ref="{http://ACORD.org/Standards/Life/2}ActivationDate" minOccurs="0"/>
* <element ref="{http://ACORD.org/Standards/Life/2}ActivationTime" minOccurs="0"/>
* <element ref="{http://ACORD.org/Standards/Life/2}SecCredStatus" minOccurs="0"/>
* <element ref="{http://ACORD.org/Standards/Life/2}SecCredStatusReason" minOccurs="0"/>
* <element ref="{http://ACORD.org/Standards/Life/2}StatusDesc" minOccurs="0"/>
* <element ref="{http://ACORD.org/Standards/Life/2}SecurityAccessLevel" minOccurs="0"/>
* <element ref="{http://ACORD.org/Standards/Life/2}SecurityAccessLevelDesc" minOccurs="0"/>
* <element ref="{http://ACORD.org/Standards/Life/2}ExpDate" minOccurs="0"/>
* <element ref="{http://ACORD.org/Standards/Life/2}CreationDate" minOccurs="0"/>
* <element ref="{http://ACORD.org/Standards/Life/2}CreationTime" minOccurs="0"/>
* <element ref="{http://ACORD.org/Standards/Life/2}LastUpdate" minOccurs="0"/>
* <element ref="{http://ACORD.org/Standards/Life/2}LastUpdateTime" minOccurs="0"/>
* <element ref="{http://ACORD.org/Standards/Life/2}DaysToExpiration" minOccurs="0"/>
* <element ref="{http://ACORD.org/Standards/Life/2}LastSignInDate" minOccurs="0"/>
* <element ref="{http://ACORD.org/Standards/Life/2}LastSignInTime" minOccurs="0"/>
* <element ref="{http://ACORD.org/Standards/Life/2}LastSignInDayOfWeekTC" minOccurs="0"/>
* <element ref="{http://ACORD.org/Standards/Life/2}InvalidSignOnCount" minOccurs="0"/>
* <element ref="{http://ACORD.org/Standards/Life/2}UserCode" minOccurs="0"/>
* <element ref="{http://ACORD.org/Standards/Life/2}UserPswd" minOccurs="0"/>
* <element ref="{http://ACORD.org/Standards/Life/2}UserAuthentication" maxOccurs="unbounded" minOccurs="0"/>
* <element ref="{http://ACORD.org/Standards/Life/2}OLifEExtension" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" />
* <attribute name="DataRep" type="{http://ACORD.org/Standards/Life/2}DATAREP_TYPES" />
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "SecurityCredential_Type", propOrder = {
"securityCredentialKey",
"securityCredentialSysKey",
"userLoginName",
"userDomain",
"description",
"comments",
"activationDate",
"activationTime",
"secCredStatus",
"secCredStatusReason",
"statusDesc",
"securityAccessLevel",
"securityAccessLevelDesc",
"expDate",
"creationDate",
"creationTime",
"lastUpdate",
"lastUpdateTime",
"daysToExpiration",
"lastSignInDate",
"lastSignInTime",
"lastSignInDayOfWeekTC",
"invalidSignOnCount",
"userCode",
"userPswd",
"userAuthentication",
"oLifEExtension"
})
public class SecurityCredentialType {
@XmlElement(name = "SecurityCredentialKey")
protected PERSISTKEY securityCredentialKey;
@XmlElement(name = "SecurityCredentialSysKey")
protected List<SYSKEY> securityCredentialSysKey;
@XmlElement(name = "UserLoginName")
protected String userLoginName;
@XmlElement(name = "UserDomain")
protected String userDomain;
@XmlElement(name = "Description")
protected String description;
@XmlElement(name = "Comments")
protected String comments;
@XmlElement(name = "ActivationDate")
@XmlSchemaType(name = "date")
protected XMLGregorianCalendar activationDate;
@XmlElement(name = "ActivationTime")
@XmlSchemaType(name = "time")
protected XMLGregorianCalendar activationTime;
@XmlElement(name = "SecCredStatus")
protected OLILUSECCREDSTAT secCredStatus;
@XmlElement(name = "SecCredStatusReason")
protected OLILUSECCREDSTATREASON secCredStatusReason;
@XmlElement(name = "StatusDesc")
protected String statusDesc;
@XmlElement(name = "SecurityAccessLevel")
protected String securityAccessLevel;
@XmlElement(name = "SecurityAccessLevelDesc")
protected String securityAccessLevelDesc;
@XmlElement(name = "ExpDate")
@XmlSchemaType(name = "date")
protected XMLGregorianCalendar expDate;
@XmlElement(name = "CreationDate")
@XmlSchemaType(name = "date")
protected XMLGregorianCalendar creationDate;
@XmlElement(name = "CreationTime")
@XmlSchemaType(name = "time")
protected XMLGregorianCalendar creationTime;
@XmlElement(name = "LastUpdate")
@XmlSchemaType(name = "date")
protected XMLGregorianCalendar lastUpdate;
@XmlElement(name = "LastUpdateTime")
@XmlSchemaType(name = "time")
protected XMLGregorianCalendar lastUpdateTime;
@XmlElement(name = "DaysToExpiration")
protected BigInteger daysToExpiration;
@XmlElement(name = "LastSignInDate")
@XmlSchemaType(name = "date")
protected XMLGregorianCalendar lastSignInDate;
@XmlElement(name = "LastSignInTime")
@XmlSchemaType(name = "time")
protected XMLGregorianCalendar lastSignInTime;
@XmlElement(name = "LastSignInDayOfWeekTC")
protected OLILUDAY lastSignInDayOfWeekTC;
@XmlElement(name = "InvalidSignOnCount")
protected BigInteger invalidSignOnCount;
@XmlElement(name = "UserCode")
protected String userCode;
@XmlElement(name = "UserPswd")
protected UserPswdType userPswd;
@XmlElement(name = "UserAuthentication")
protected List<UserAuthenticationType> userAuthentication;
@XmlElement(name = "OLifEExtension")
protected List<OLifEExtensionType> oLifEExtension;
@XmlAttribute(name = "id")
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
@XmlID
@XmlSchemaType(name = "ID")
protected String id;
@XmlAttribute(name = "DataRep")
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
protected String dataRep;
/**
* Gets the value of the securityCredentialKey property.
*
* @return
* possible object is
* {@link PERSISTKEY }
*
*/
public PERSISTKEY getSecurityCredentialKey() {
return securityCredentialKey;
}
/**
* Sets the value of the securityCredentialKey property.
*
* @param value
* allowed object is
* {@link PERSISTKEY }
*
*/
public void setSecurityCredentialKey(PERSISTKEY value) {
this.securityCredentialKey = value;
}
/**
* Gets the value of the securityCredentialSysKey property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the securityCredentialSysKey property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getSecurityCredentialSysKey().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link SYSKEY }
*
*
*/
public List<SYSKEY> getSecurityCredentialSysKey() {
if (securityCredentialSysKey == null) {
securityCredentialSysKey = new ArrayList<SYSKEY>();
}
return this.securityCredentialSysKey;
}
/**
* Gets the value of the userLoginName property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getUserLoginName() {
return userLoginName;
}
/**
* Sets the value of the userLoginName property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setUserLoginName(String value) {
this.userLoginName = value;
}
/**
* Gets the value of the userDomain property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getUserDomain() {
return userDomain;
}
/**
* Sets the value of the userDomain property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setUserDomain(String value) {
this.userDomain = value;
}
/**
* Gets the value of the description property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getDescription() {
return description;
}
/**
* Sets the value of the description property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setDescription(String value) {
this.description = value;
}
/**
* Gets the value of the comments property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getComments() {
return comments;
}
/**
* Sets the value of the comments property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setComments(String value) {
this.comments = value;
}
/**
* Gets the value of the activationDate property.
*
* @return
* possible object is
* {@link XMLGregorianCalendar }
*
*/
public XMLGregorianCalendar getActivationDate() {
return activationDate;
}
/**
* Sets the value of the activationDate property.
*
* @param value
* allowed object is
* {@link XMLGregorianCalendar }
*
*/
public void setActivationDate(XMLGregorianCalendar value) {
this.activationDate = value;
}
/**
* Gets the value of the activationTime property.
*
* @return
* possible object is
* {@link XMLGregorianCalendar }
*
*/
public XMLGregorianCalendar getActivationTime() {
return activationTime;
}
/**
* Sets the value of the activationTime property.
*
* @param value
* allowed object is
* {@link XMLGregorianCalendar }
*
*/
public void setActivationTime(XMLGregorianCalendar value) {
this.activationTime = value;
}
/**
* Gets the value of the secCredStatus property.
*
* @return
* possible object is
* {@link OLILUSECCREDSTAT }
*
*/
public OLILUSECCREDSTAT getSecCredStatus() {
return secCredStatus;
}
/**
* Sets the value of the secCredStatus property.
*
* @param value
* allowed object is
* {@link OLILUSECCREDSTAT }
*
*/
public void setSecCredStatus(OLILUSECCREDSTAT value) {
this.secCredStatus = value;
}
/**
* Gets the value of the secCredStatusReason property.
*
* @return
* possible object is
* {@link OLILUSECCREDSTATREASON }
*
*/
public OLILUSECCREDSTATREASON getSecCredStatusReason() {
return secCredStatusReason;
}
/**
* Sets the value of the secCredStatusReason property.
*
* @param value
* allowed object is
* {@link OLILUSECCREDSTATREASON }
*
*/
public void setSecCredStatusReason(OLILUSECCREDSTATREASON value) {
this.secCredStatusReason = value;
}
/**
* Gets the value of the statusDesc property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getStatusDesc() {
return statusDesc;
}
/**
* Sets the value of the statusDesc property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setStatusDesc(String value) {
this.statusDesc = value;
}
/**
* Gets the value of the securityAccessLevel property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getSecurityAccessLevel() {
return securityAccessLevel;
}
/**
* Sets the value of the securityAccessLevel property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setSecurityAccessLevel(String value) {
this.securityAccessLevel = value;
}
/**
* Gets the value of the securityAccessLevelDesc property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getSecurityAccessLevelDesc() {
return securityAccessLevelDesc;
}
/**
* Sets the value of the securityAccessLevelDesc property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setSecurityAccessLevelDesc(String value) {
this.securityAccessLevelDesc = value;
}
/**
* Gets the value of the expDate property.
*
* @return
* possible object is
* {@link XMLGregorianCalendar }
*
*/
public XMLGregorianCalendar getExpDate() {
return expDate;
}
/**
* Sets the value of the expDate property.
*
* @param value
* allowed object is
* {@link XMLGregorianCalendar }
*
*/
public void setExpDate(XMLGregorianCalendar value) {
this.expDate = value;
}
/**
* Gets the value of the creationDate property.
*
* @return
* possible object is
* {@link XMLGregorianCalendar }
*
*/
public XMLGregorianCalendar getCreationDate() {
return creationDate;
}
/**
* Sets the value of the creationDate property.
*
* @param value
* allowed object is
* {@link XMLGregorianCalendar }
*
*/
public void setCreationDate(XMLGregorianCalendar value) {
this.creationDate = value;
}
/**
* Gets the value of the creationTime property.
*
* @return
* possible object is
* {@link XMLGregorianCalendar }
*
*/
public XMLGregorianCalendar getCreationTime() {
return creationTime;
}
/**
* Sets the value of the creationTime property.
*
* @param value
* allowed object is
* {@link XMLGregorianCalendar }
*
*/
public void setCreationTime(XMLGregorianCalendar value) {
this.creationTime = value;
}
/**
* Gets the value of the lastUpdate property.
*
* @return
* possible object is
* {@link XMLGregorianCalendar }
*
*/
public XMLGregorianCalendar getLastUpdate() {
return lastUpdate;
}
/**
* Sets the value of the lastUpdate property.
*
* @param value
* allowed object is
* {@link XMLGregorianCalendar }
*
*/
public void setLastUpdate(XMLGregorianCalendar value) {
this.lastUpdate = value;
}
/**
* Gets the value of the lastUpdateTime property.
*
* @return
* possible object is
* {@link XMLGregorianCalendar }
*
*/
public XMLGregorianCalendar getLastUpdateTime() {
return lastUpdateTime;
}
/**
* Sets the value of the lastUpdateTime property.
*
* @param value
* allowed object is
* {@link XMLGregorianCalendar }
*
*/
public void setLastUpdateTime(XMLGregorianCalendar value) {
this.lastUpdateTime = value;
}
/**
* Gets the value of the daysToExpiration property.
*
* @return
* possible object is
* {@link BigInteger }
*
*/
public BigInteger getDaysToExpiration() {
return daysToExpiration;
}
/**
* Sets the value of the daysToExpiration property.
*
* @param value
* allowed object is
* {@link BigInteger }
*
*/
public void setDaysToExpiration(BigInteger value) {
this.daysToExpiration = value;
}
/**
* Gets the value of the lastSignInDate property.
*
* @return
* possible object is
* {@link XMLGregorianCalendar }
*
*/
public XMLGregorianCalendar getLastSignInDate() {
return lastSignInDate;
}
/**
* Sets the value of the lastSignInDate property.
*
* @param value
* allowed object is
* {@link XMLGregorianCalendar }
*
*/
public void setLastSignInDate(XMLGregorianCalendar value) {
this.lastSignInDate = value;
}
/**
* Gets the value of the lastSignInTime property.
*
* @return
* possible object is
* {@link XMLGregorianCalendar }
*
*/
public XMLGregorianCalendar getLastSignInTime() {
return lastSignInTime;
}
/**
* Sets the value of the lastSignInTime property.
*
* @param value
* allowed object is
* {@link XMLGregorianCalendar }
*
*/
public void setLastSignInTime(XMLGregorianCalendar value) {
this.lastSignInTime = value;
}
/**
* Gets the value of the lastSignInDayOfWeekTC property.
*
* @return
* possible object is
* {@link OLILUDAY }
*
*/
public OLILUDAY getLastSignInDayOfWeekTC() {
return lastSignInDayOfWeekTC;
}
/**
* Sets the value of the lastSignInDayOfWeekTC property.
*
* @param value
* allowed object is
* {@link OLILUDAY }
*
*/
public void setLastSignInDayOfWeekTC(OLILUDAY value) {
this.lastSignInDayOfWeekTC = value;
}
/**
* Gets the value of the invalidSignOnCount property.
*
* @return
* possible object is
* {@link BigInteger }
*
*/
public BigInteger getInvalidSignOnCount() {
return invalidSignOnCount;
}
/**
* Sets the value of the invalidSignOnCount property.
*
* @param value
* allowed object is
* {@link BigInteger }
*
*/
public void setInvalidSignOnCount(BigInteger value) {
this.invalidSignOnCount = value;
}
/**
* Gets the value of the userCode property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getUserCode() {
return userCode;
}
/**
* Sets the value of the userCode property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setUserCode(String value) {
this.userCode = value;
}
/**
* Gets the value of the userPswd property.
*
* @return
* possible object is
* {@link UserPswdType }
*
*/
public UserPswdType getUserPswd() {
return userPswd;
}
/**
* Sets the value of the userPswd property.
*
* @param value
* allowed object is
* {@link UserPswdType }
*
*/
public void setUserPswd(UserPswdType value) {
this.userPswd = value;
}
/**
* Gets the value of the userAuthentication property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the userAuthentication property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getUserAuthentication().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link UserAuthenticationType }
*
*
*/
public List<UserAuthenticationType> getUserAuthentication() {
if (userAuthentication == null) {
userAuthentication = new ArrayList<UserAuthenticationType>();
}
return this.userAuthentication;
}
/**
* Gets the value of the oLifEExtension property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the oLifEExtension property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getOLifEExtension().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link OLifEExtensionType }
*
*
*/
public List<OLifEExtensionType> getOLifEExtension() {
if (oLifEExtension == null) {
oLifEExtension = new ArrayList<OLifEExtensionType>();
}
return this.oLifEExtension;
}
/**
* Gets the value of the id property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getId() {
return id;
}
/**
* Sets the value of the id property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setId(String value) {
this.id = value;
}
/**
* Gets the value of the dataRep property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getDataRep() {
return dataRep;
}
/**
* Sets the value of the dataRep property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setDataRep(String value) {
this.dataRep = value;
}
}
| [
"33487722+SamratChatterjee@users.noreply.github.com"
] | 33487722+SamratChatterjee@users.noreply.github.com |
96d963f7c81a2c3c9d35527f5903c47ee8da1877 | 2cc29bd12a271859ba9f9d4de80f093a611c2ba8 | /src/shapes/CircleApp.java | 527764c0a8d74d8e9ed42b599d92aee77609dd31 | [] | no_license | anthonyvri/codeup-java-exercises | 417725d79f324906721ab8c40c40e327a7b3dd69 | 056b676a291642ad134350818f5cf0d43f906cc7 | refs/heads/main | 2023-06-12T00:54:27.421495 | 2021-07-07T01:06:51 | 2021-07-07T01:06:51 | 317,649,191 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 918 | java | package shapes;
import util.Input;
public class CircleApp {
public static void main(String[] args) {
Input input = new Input();
boolean answer = true;
do{
double radius = input.getDouble(1,100);
Circle circle1 = new Circle(radius);
System.out.println("Circumference: " + circle1.getCircumference());
System.out.println("Area: " + circle1.getArea());
answer = input.yesNo("Would you like to create another circle?");
}while(answer);
System.out.println("You've created " + Circle.getCircleCount() + " circles!");
// System.out.println("Enter circle radius");
// double radius1 = input.getDouble();
//
// Circle circle1 = new Circle(radius1);
// System.out.println("Circumference: " + circle1.getCircumference());
// System.out.println("Area: " + circle1.getArea());
}
}
| [
"avidaurri4@gmail.com"
] | avidaurri4@gmail.com |
023e06ca22e47fd89678425996fb82b4f8cf10d0 | 6d7f20fb5f69570b2c69d618eeb940519ef6351f | /learnWeb/src/com/sxt/service/impl/NewsInformationServiceImpl.java | 97480769a1adbde166c36a20c69a2069b82a3981 | [
"Apache-2.0"
] | permissive | ZYongF/web | 083f654e30ee624020d26361013e62b2ada9509c | f2d015faf2a2d2f712d9f0abb22b3808beefd8f3 | refs/heads/master | 2021-01-18T21:31:32.720986 | 2016-10-29T10:43:51 | 2016-10-29T10:43:51 | 72,278,717 | 0 | 0 | null | 2016-10-29T10:43:53 | 2016-10-29T10:32:19 | Java | UTF-8 | Java | false | false | 883 | java | package com.sxt.service.impl;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.sxt.inter.INewsInformation;
import com.sxt.models.NewsInformation;
import com.sxt.service.NewsInformationService;
@Service
public class NewsInformationServiceImpl implements NewsInformationService
{
@Autowired
private INewsInformation iNewsInformation;
public List<NewsInformation> fqueryinformation()
{
return iNewsInformation.fqueryinformation();
}
public NewsInformation fqueryinfocontent(int newsid)
{
return iNewsInformation.fqueryinfocontent(newsid);
}
public List<NewsInformation> fqueryallinfo(Map<String,Object> map)
{
return iNewsInformation.fqueryallinfo(map);
}
public Integer queryAllInfoCount() {
return iNewsInformation.queryAllInfoCount();
}
}
| [
"jinglei@ldasset.com"
] | jinglei@ldasset.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.