blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 7 332 | content_id stringlengths 40 40 | detected_licenses listlengths 0 50 | license_type stringclasses 2 values | repo_name stringlengths 7 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 557 values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 5.85k 684M ⌀ | star_events_count int64 0 77.7k | fork_events_count int64 0 48k | gha_license_id stringclasses 17 values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 82 values | src_encoding stringclasses 28 values | language stringclasses 1 value | is_vendor bool 1 class | is_generated bool 2 classes | length_bytes int64 7 5.41M | extension stringclasses 11 values | content stringlengths 7 5.41M | authors listlengths 1 1 | author stringlengths 0 161 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f055281bca290615317ef7d395df527a8793605d | 6dd403d7af48eac6fe4ba35de01b6dfae72e59f7 | /src/main/java/org/rest/webapp/Rest/UserInfoRest.java | a0d2cdc9a5585827b307e58f9a0c6f2f2886ed14 | [] | no_license | vaano94/Stishki-back | f53507e67e8afe9372df0feb02e58147c8cbc115 | 4017b1e96d7f34c23a7a3ad8fcb9e951d9d1ed88 | refs/heads/master | 2021-01-18T01:50:18.170677 | 2016-05-31T20:54:17 | 2016-05-31T20:54:17 | 44,069,320 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 4,192 | java | package org.rest.webapp.Rest;
import org.codehaus.jettison.json.JSONArray;
import org.codehaus.jettison.json.JSONException;
import org.codehaus.jettison.json.JSONObject;
import org.rest.webapp.Entity.User;
import org.rest.webapp.Services.EncryptionService;
import org.rest.webapp.Services.UserService;
import javax.ws.rs.Consumes;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import java.util.ArrayList;
/**
* Created by Ivan on 5/20/2016.
*/
@Path("/userdata")
public class UserInfoRest {
@POST
@Path("/checkpass")
@Consumes(MediaType.APPLICATION_JSON)
@Produces(MediaType.APPLICATION_JSON)
public String checkPassword(String data) {
JSONObject response = new JSONObject();
try {
UserService userService = new UserService();
JSONObject userData = new JSONObject(data);
String token = userData.getString("token");
User user = userService.getByToken(token);
if (user!=null) {
String pass = userData.getString("password");
if (EncryptionService.generatePassHash(pass)
.equals(user.getPassword())){
response.put("result","OK");
return response.toString();
}
else {
response.put("result", "Wrong Pass");
return response.toString();
}
}
else {
response.put("result", "User not found");
return response.toString();
}
} catch (JSONException e) {
try {
response.put("result", "Wrong Pass");
return response.toString();
} catch (JSONException e1) {
e1.printStackTrace();
}
}
return "Пшелнах";
}
@POST
@Path("/changepass")
@Consumes(MediaType.APPLICATION_JSON)
@Produces(MediaType.APPLICATION_JSON)
public String changePass(String data) {
JSONObject result = new JSONObject();
try {
UserService userService = new UserService();
JSONObject userData = new JSONObject(data);
result.put("result", "BAD");
String token = userData.getString("token");
User user = userService.getByToken(token);
if (user!=null) {
String password = userData.getString("password");
user.setPassword(EncryptionService.generatePassHash(password));
userService.update(user);
result.put("result", "OK");
return result.toString();
} else {
return result.toString();
}
} catch (JSONException e) {
e.printStackTrace();
}
return result.toString();
}
@POST
@Path("/changeinfo")
@Consumes(MediaType.APPLICATION_JSON)
@Produces(MediaType.APPLICATION_JSON)
public String changeInfo(String data) {
JSONObject result = new JSONObject();
try {
UserService userService = new UserService();
JSONObject userData = new JSONObject(data);
result.put("result", "BAD");
String token = userData.getString("token");
User user = userService.getByToken(token);
if (user != null) {
String nickname = userData.getString("nickname");
String email = userData.getString("email");
JSONArray tags = userData.getJSONArray("genres");
ArrayList<String> tagsArr = new ArrayList<String>();
for (int i=0;i<tags.length();i++) {
tagsArr.add((String)tags.get(i));
}
user.setGenres(tagsArr);
user.setNickName(nickname);
user.setEmail(email);
userService.update(user);
result.put("result", "OK");
return result.toString();
}
} catch (JSONException e) {
e.printStackTrace();
}
return result.toString();
}
}
| [
"parusheva95@inbox.lv"
] | parusheva95@inbox.lv |
1c35aca9d892f6600d1691b410d12fcda3c1a5b2 | 48ed49dddf7f63227b30df44e43954dd31df85f8 | /corejava/experiments/src/com/cg/basics/collectionsdemo/SetEx1.java | 9b4ac7ae1c82e1004799792edd5712e25f25a48e | [] | no_license | vineetsemwal/cgcloudimmersive21 | 6fbd5593196fafadd6ffc5239e27c2f7b39aabc2 | 9569317a17d75560a1b04365969d767e38e22204 | refs/heads/master | 2023-06-09T12:29:55.332926 | 2021-06-28T10:45:56 | 2021-06-28T10:45:56 | 366,244,105 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 716 | java | package com.cg.basics.collectionsdemo;
import java.util.*;
public class SetEx1 {
/*
add(element)
remove(element)
contains(element)
size()
iterator()
*/
public static void main(String args[]){
Comparator<String>comparator=new StringComparator();
Set<String>set=new TreeSet<>(comparator);
String element1="one";
String element2="zero";
String element3="two";
set.add(element1);
set.add(element2);
set.add(element3);
set.add(element2);
int size=set.size();
System.out.println("size="+size);
for(String element:set){
System.out.println(element);
}
}
}
| [
"vineetsemwal82@gmail.com"
] | vineetsemwal82@gmail.com |
b07e378982371326394432199513785ad6a88b9b | f0568343ecd32379a6a2d598bda93fa419847584 | /modules/adwords_appengine/src/main/java/com/google/api/ads/adwords/jaxws/v201402/cm/OfflineConversionFeedServiceInterfacemutateResponse.java | 5b91efa62003546e5a4c8034929b592098150090 | [
"Apache-2.0"
] | permissive | frankzwang/googleads-java-lib | bd098b7b61622bd50352ccca815c4de15c45a545 | 0cf942d2558754589a12b4d9daa5902d7499e43f | refs/heads/master | 2021-01-20T23:20:53.380875 | 2014-07-02T19:14:30 | 2014-07-02T19:14:30 | 21,526,492 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,689 | java |
package com.google.api.ads.adwords.jaxws.v201402.cm;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for mutateResponse element declaration.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <element name="mutateResponse">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="rval" type="{https://adwords.google.com/api/adwords/cm/v201402}OfflineConversionFeedReturnValue" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"rval"
})
@XmlRootElement(name = "mutateResponse")
public class OfflineConversionFeedServiceInterfacemutateResponse {
protected OfflineConversionFeedReturnValue rval;
/**
* Gets the value of the rval property.
*
* @return
* possible object is
* {@link OfflineConversionFeedReturnValue }
*
*/
public OfflineConversionFeedReturnValue getRval() {
return rval;
}
/**
* Sets the value of the rval property.
*
* @param value
* allowed object is
* {@link OfflineConversionFeedReturnValue }
*
*/
public void setRval(OfflineConversionFeedReturnValue value) {
this.rval = value;
}
}
| [
"jradcliff@google.com"
] | jradcliff@google.com |
be7d5594dab68ca5baf9e7481eaf4457d4a9f048 | 4e1c17e236762fae12c23fd500b60e7d5d8aff4a | /src/com/BankingManagementSystem/frameDesign/Search.java | ab6a64955e5d3208a6bcf03a87a91f3f36f917b1 | [] | no_license | pravat1898/Banking-Management-System | 2cc74c2403e457911ca2c777a916d409cf80e429 | 60b1bcf1ef0141444a23175cdc2e96ea17e67e7d | refs/heads/master | 2021-01-11T14:53:22.762166 | 2017-04-01T18:29:52 | 2017-04-01T18:29:52 | 86,931,963 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 652 | java | package com.BankingManagementSystem.frameDesign;
import java.util.ArrayList;
import com.BankingManagementSystem.FileHandling.CustomerDetailsFile;
import com.BankingManagementSystem.Pojo.CustomerDetails;
public class Search
{
public static int searchId(String strId)
{
//System.out.println(strId);
ArrayList<CustomerDetails> cList;
int f = -1;
try
{
cList=CustomerDetailsFile.readDataFromFile();
for(int p=0; p<cList.size(); p++)
{
if(strId.equals(cList.get(p).getAccountNo()))
{
f = p;
break;
}
}
return(f);
}catch(Exception e)
{
System.out.println(e);
return(-2);
}
}
}
| [
"noreply@github.com"
] | noreply@github.com |
f73ead76cf4b1bcf7981cfd99efe3fcc7f178017 | fa91450deb625cda070e82d5c31770be5ca1dec6 | /Diff-Raw-Data/14/14_57c92d2246eb58caaa83649372cce387a3c66ee3/BundleTest/14_57c92d2246eb58caaa83649372cce387a3c66ee3_BundleTest_s.java | 14e0d55f55ecdb1362780105eed6c14d9078c477 | [] | 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 | 12,733 | java | package com.xtremelabs.robolectric.shadows;
import android.os.Build;
import android.os.Bundle;
import android.os.Parcelable;
import com.xtremelabs.robolectric.Robolectric;
import com.xtremelabs.robolectric.WithTestDefaultsRunner;
import junit.framework.AssertionFailedError;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import java.util.ArrayList;
import static org.junit.Assert.*;
@RunWith(WithTestDefaultsRunner.class)
public class BundleTest {
private Bundle bundle;
@Before public void setUp() throws Exception {
bundle = new Bundle();
}
@Test
public void testContainsKey() throws Exception {
assertFalse(bundle.containsKey("foo"));
bundle.putString("foo", "bar");
assertTrue(bundle.containsKey("foo"));
}
@Test
public void testInt() {
bundle.putInt("foo", 5);
assertEquals(5,bundle.getInt("foo"));
assertEquals(0,bundle.getInt("bar"));
assertEquals(7, bundle.getInt("bar", 7));
}
@Test
public void testSize() {
assertEquals(0, bundle.size());
bundle.putInt("foo", 5);
assertEquals(1, bundle.size());
bundle.putInt("bar", 5);
assertEquals(2, bundle.size());
}
@Test
public void testLong() {
bundle.putLong("foo", 5);
assertEquals(5, bundle.getLong("foo"));
assertEquals(0,bundle.getLong("bar"));
assertEquals(7, bundle.getLong("bar", 7));
}
@Test
public void testDouble() {
bundle.putDouble("foo", 5);
assertEquals(Double.valueOf(5), Double.valueOf(bundle.getDouble("foo")));
assertEquals(Double.valueOf(0),Double.valueOf(bundle.getDouble("bar")));
assertEquals(Double.valueOf(7), Double.valueOf(bundle.getDouble("bar", 7)));
}
@Test
public void testBoolean() {
bundle.putBoolean("foo", true);
assertEquals(true, bundle.getBoolean("foo"));
assertEquals(false, bundle.getBoolean("bar"));
assertEquals(true, bundle.getBoolean("bar", true));
}
@Test
public void testFloat() {
bundle.putFloat("foo", 5f);
assertEquals(Float.valueOf(5), Float.valueOf(bundle.getFloat("foo")));
assertEquals(Float.valueOf(0),Float.valueOf(bundle.getFloat("bar")));
assertEquals(Float.valueOf(7), Float.valueOf(bundle.getFloat("bar", 7)));
}
@Test
public void testStringHasValue() {
bundle.putString("key", "value");
assertEquals("value", bundle.getString("key"));
}
@Test
public void testStringDoesNotHaveValue() {
assertNull(bundle.getString("key"));
}
@Test
public void testStringNullKey() {
bundle.putString(null, "value");
assertEquals("value", bundle.getString(null));
}
@Test
public void testStringNullValue() {
bundle.putString("key", null);
assertNull(bundle.getString("key"));
}
@Test
public void testStringApi1() {
int previousApiLevel = Build.VERSION.SDK_INT;
Robolectric.Reflection.setFinalStaticField(Build.VERSION.class, "SDK_INT",
Build.VERSION_CODES.BASE);
try {
bundle.getString("value", "defaultValue");
fail();
} catch (RuntimeException e) {
// Expected
} finally {
Robolectric.Reflection.setFinalStaticField(Build.VERSION.class, "SDK_INT",
previousApiLevel);
}
}
@Test
public void testStringApi12HasKey() {
int previousApiLevel = Build.VERSION.SDK_INT;
Robolectric.Reflection.setFinalStaticField(Build.VERSION.class, "SDK_INT",
Build.VERSION_CODES.HONEYCOMB_MR1);
try {
bundle.putString("key", "value");
assertEquals("value", bundle.getString("key", "defaultValue"));
} finally {
Robolectric.Reflection.setFinalStaticField(Build.VERSION.class, "SDK_INT",
previousApiLevel);
}
}
@Test
public void testStringApi12DoesNotHaveKey() {
int previousApiLevel = Build.VERSION.SDK_INT;
Robolectric.Reflection.setFinalStaticField(Build.VERSION.class, "SDK_INT",
Build.VERSION_CODES.HONEYCOMB_MR1);
try {
bundle.putString("key", "value");
assertEquals("defaultValue", bundle.getString("foo", "defaultValue"));
} finally {
Robolectric.Reflection.setFinalStaticField(Build.VERSION.class, "SDK_INT",
previousApiLevel);
}
}
@Test
public void testStringApi12NullKey() {
int previousApiLevel = Build.VERSION.SDK_INT;
Robolectric.Reflection.setFinalStaticField(Build.VERSION.class, "SDK_INT",
Build.VERSION_CODES.HONEYCOMB_MR1);
try {
bundle.putString(null, "value");
assertEquals("value", bundle.getString(null, "defaultValue"));
} finally {
Robolectric.Reflection.setFinalStaticField(Build.VERSION.class, "SDK_INT",
previousApiLevel);
}
}
@Test
public void testStringApi12NullValue() {
int previousApiLevel = Build.VERSION.SDK_INT;
Robolectric.Reflection.setFinalStaticField(Build.VERSION.class, "SDK_INT",
Build.VERSION_CODES.HONEYCOMB_MR1);
try {
bundle.putString("key", null);
assertNull(bundle.getString("key", "defaultValue"));
} finally {
Robolectric.Reflection.setFinalStaticField(Build.VERSION.class, "SDK_INT",
previousApiLevel);
}
}
@Test
public void testGetOfWrongType() {
bundle.putFloat("foo", 5f);
assertEquals(0, bundle.getChar("foo"));
assertEquals(null, bundle.getCharArray("foo"));
assertEquals(0, bundle.getInt("foo"));
assertEquals(null, bundle.getIntArray("foo"));
assertEquals(null, bundle.getIntegerArrayList("foo"));
assertEquals(0, bundle.getShort("foo"));
assertEquals(null, bundle.getShortArray("foo"));
assertEquals(false, bundle.getBoolean("foo"));
assertEquals(null, bundle.getBooleanArray("foo"));
assertEquals(0, bundle.getLong("foo"));
assertEquals(null, bundle.getLongArray("foo"));
assertEquals(null, bundle.getFloatArray("foo"));
assertEquals(0, bundle.getDouble("foo"), 0.005);
assertEquals(null, bundle.getDoubleArray("foo"));
assertEquals(null, bundle.getString("foo"));
assertEquals(null, bundle.getStringArray("foo"));
assertEquals(null, bundle.getStringArrayList("foo"));
assertEquals(null, bundle.getBundle("foo"));
assertEquals(null, bundle.getParcelable("foo"));
assertEquals(null, bundle.getParcelableArray("foo"));
assertEquals(null, bundle.getParcelableArrayList("foo"));
bundle.putInt("foo", 1);
assertEquals(0, bundle.getFloat("foo"), 0.005f);
}
@Test
public void testRemove() {
bundle.putFloat("foo", 5f);
bundle.putFloat("foo2", 5f);
bundle.remove("foo");
assertFalse(bundle.containsKey("foo"));
assertTrue(bundle.containsKey("foo2"));
}
@Test
public void testClear() {
bundle.putFloat("foo", 5f);
bundle.clear();
assertEquals(0, bundle.size());
}
@Test
public void testIsEmpty() {
assertTrue(bundle.isEmpty());
bundle.putBoolean("foo", true);
assertFalse(bundle.isEmpty());
}
@Test
public void testStringArray() {
bundle.putStringArray("foo", new String[] { "a" });
Assert.assertArrayEquals(new String[] { "a" }, bundle.getStringArray("foo"));
assertNull(bundle.getStringArray("bar"));
}
@Test
public void testStringArrayList() {
ArrayList<String> list = new ArrayList<String>();
list.add("a");
bundle.putStringArrayList("foo", new ArrayList<String>(list));
Assert.assertEquals(list, bundle.getStringArrayList("foo"));
assertNull(bundle.getStringArrayList("bar"));
}
@Test
public void testIntegerArrayList() {
ArrayList<Integer> list = new ArrayList<Integer>();
list.add(100);
bundle.putIntegerArrayList("foo", new ArrayList<Integer>(list));
Assert.assertEquals(list, bundle.getIntegerArrayList("foo"));
assertNull(bundle.getIntegerArrayList("bar"));
}
@Test
public void testBundle() {
Bundle innerBundle = new Bundle();
innerBundle.putInt("int", 7);
bundle.putBundle("bundle", innerBundle);
assertEquals(innerBundle, bundle.getBundle("bundle"));
assertNull(bundle.getBundle("bar"));
}
@Test
public void testBooleanArray() {
boolean [] arr = new boolean[] { false, true };
bundle.putBooleanArray("foo", arr);
assertArrayEquals(arr, bundle.getBooleanArray("foo"));
assertNull(bundle.getBooleanArray("bar"));
}
@Test
public void testByteArray() {
byte [] arr = new byte[] { 12, 24 };
bundle.putByteArray("foo", arr);
Assert.assertArrayEquals(arr, bundle.getByteArray("foo"));
assertNull(bundle.getByteArray("bar"));
}
@Test
public void testCharArray() {
char [] arr = new char[] { 'c', 'j' };
bundle.putCharArray("foo", arr);
Assert.assertArrayEquals(arr, bundle.getCharArray("foo"));
assertNull(bundle.getCharArray("bar"));
}
@Test
public void testDoubleArray() {
double [] arr = new double[] { 1.2, 3.4 };
bundle.putDoubleArray("foo", arr);
assertArrayEquals(arr, bundle.getDoubleArray("foo"));
assertNull(bundle.getDoubleArray("bar"));
}
@Test
public void testIntArray() {
int [] arr = new int[] { 87, 65 };
bundle.putIntArray("foo", arr);
Assert.assertArrayEquals(arr, bundle.getIntArray("foo"));
assertNull(bundle.getIntArray("bar"));
}
@Test
public void testLongArray() {
long [] arr = new long[] { 23, 11 };
bundle.putLongArray("foo", arr);
Assert.assertArrayEquals(arr, bundle.getLongArray("foo"));
assertNull(bundle.getLongArray("bar"));
}
@Test
public void testShortArray() {
short [] arr = new short[] { 89, 37 };
bundle.putShortArray("foo", arr);
Assert.assertArrayEquals(arr, bundle.getShortArray("foo"));
assertNull(bundle.getShortArray("bar"));
}
@Test
public void testParcelableArray() {
Bundle innerBundle = new Bundle();
innerBundle.putInt("value", 1);
Parcelable[] arr = new Parcelable[] { innerBundle };
bundle.putParcelableArray("foo", arr);
Assert.assertArrayEquals(arr, bundle.getParcelableArray("foo"));
assertNull(bundle.getParcelableArray("bar"));
}
@Test
public void testCopyConstructor() {
bundle.putInt("value", 1);
Bundle copiedBundle = new Bundle(bundle);
Assert.assertEquals(copiedBundle, bundle);
}
private void assertArrayEquals(double[] expected, double[] actual) {
if (expected != null && actual == null) {
throw new AssertionFailedError();
} else if (expected == null && actual != null) {
throw new AssertionFailedError();
} else {
for (int i = 0; i < expected.length; i++) {
if (expected[i] != actual[i])
throw new AssertionFailedError();
}
if (expected.length != actual.length)
throw new AssertionFailedError();
}
}
private void assertArrayEquals(boolean[] expected, boolean[] actual) {
if (expected != null && actual == null) {
throw new AssertionFailedError();
} else if (expected == null && actual != null) {
throw new AssertionFailedError();
} else {
for (int i = 0; i < expected.length; i++) {
if (expected[i] != actual[i])
throw new AssertionFailedError();
}
if (expected.length != actual.length)
throw new AssertionFailedError();
}
}
}
| [
"yuzhongxing88@gmail.com"
] | yuzhongxing88@gmail.com |
0e029ee728153c10430a6df689595825b6321644 | 0af8b92686a58eb0b64e319b22411432aca7a8f3 | /single-large-project/src/test/java/org/gradle/test/performancenull_353/Testnull_35237.java | 90f7dcaa81b8dbb420b379c580bd5c6dad8526f6 | [] | no_license | gradle/performance-comparisons | b0d38db37c326e0ce271abebdb3c91769b860799 | e53dc7182fafcf9fedf07920cbbea8b40ee4eef4 | refs/heads/master | 2023-08-14T19:24:39.164276 | 2022-11-24T05:18:33 | 2022-11-24T05:18:33 | 80,121,268 | 17 | 15 | null | 2022-09-30T08:04:35 | 2017-01-26T14:25:33 | null | UTF-8 | Java | false | false | 308 | java | package org.gradle.test.performancenull_353;
import static org.junit.Assert.*;
public class Testnull_35237 {
private final Productionnull_35237 production = new Productionnull_35237("value");
@org.junit.Test
public void test() {
assertEquals(production.getProperty(), "value");
}
} | [
"cedric.champeau@gmail.com"
] | cedric.champeau@gmail.com |
fb73d74ef035ae4858492cb1413bb740df9120b4 | 4627d514d6664526f58fbe3cac830a54679749cd | /results/evosuite5/math-org.apache.commons.math.transform.FastFourierTransformer-9/org/apache/commons/math/transform/FastFourierTransformer_ESTest.java | cfec3e8898f4f73197516b553e3c33449ef894a0 | [] | no_license | STAMP-project/Cling-application | c624175a4aa24bb9b29b53f9b84c42a0f18631bd | 0ff4d7652b434cbfd9be8d8bb38cfc8d8eaa51b5 | refs/heads/master | 2022-07-27T09:30:16.423362 | 2022-07-19T12:01:46 | 2022-07-19T12:01:46 | 254,310,667 | 2 | 2 | null | 2021-07-12T12:29:50 | 2020-04-09T08:11:35 | null | UTF-8 | Java | false | false | 8,701 | java | /*
* This file was automatically generated by EvoSuite
* Thu Aug 22 11:33:48 GMT 2019
*/
package org.apache.commons.math.transform;
import org.junit.Test;
import static org.junit.Assert.*;
import static org.evosuite.runtime.EvoAssertions.*;
import org.apache.commons.math.analysis.PolynomialFunction;
import org.apache.commons.math.analysis.UnivariateRealFunction;
import org.apache.commons.math.complex.Complex;
import org.apache.commons.math.transform.FastFourierTransformer;
import org.evosuite.runtime.EvoRunner;
import org.evosuite.runtime.EvoRunnerParameters;
import org.junit.runner.RunWith;
@RunWith(EvoRunner.class) @EvoRunnerParameters(mockJVMNonDeterminism = true, useVFS = true, useVNET = true, resetStaticState = true, separateClassLoader = false, useJEE = true)
public class FastFourierTransformer_ESTest extends FastFourierTransformer_ESTest_scaffolding {
@Test(timeout = 4000)
public void test00() throws Throwable {
double[] doubleArray0 = new double[7];
double[] doubleArray1 = FastFourierTransformer.scaleArray(doubleArray0, 0.0);
assertArrayEquals(new double[] {0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, doubleArray1, 0.01);
}
@Test(timeout = 4000)
public void test01() throws Throwable {
FastFourierTransformer fastFourierTransformer0 = new FastFourierTransformer();
double[] doubleArray0 = new double[8];
Complex[] complexArray0 = fastFourierTransformer0.inversetransform2(doubleArray0);
fastFourierTransformer0.transform2(doubleArray0);
Complex[] complexArray1 = fastFourierTransformer0.inversetransform(complexArray0);
assertEquals(8, complexArray1.length);
}
@Test(timeout = 4000)
public void test02() throws Throwable {
FastFourierTransformer fastFourierTransformer0 = new FastFourierTransformer();
fastFourierTransformer0.computeOmega((-136));
fastFourierTransformer0.computeOmega((-136));
}
@Test(timeout = 4000)
public void test03() throws Throwable {
FastFourierTransformer fastFourierTransformer0 = new FastFourierTransformer();
Complex[] complexArray0 = new Complex[2];
// Undeclared exception!
try {
fastFourierTransformer0.transform(complexArray0);
fail("Expecting exception: NullPointerException");
} catch(NullPointerException e) {
//
// no message in exception (getMessage() returned null)
//
verifyException("org.apache.commons.math.transform.FastFourierTransformer", e);
}
}
@Test(timeout = 4000)
public void test04() throws Throwable {
double[] doubleArray0 = new double[1];
FastFourierTransformer fastFourierTransformer0 = new FastFourierTransformer();
Complex[] complexArray0 = fastFourierTransformer0.transform(doubleArray0);
assertEquals(1, complexArray0.length);
}
@Test(timeout = 4000)
public void test05() throws Throwable {
FastFourierTransformer fastFourierTransformer0 = new FastFourierTransformer();
Complex[] complexArray0 = new Complex[0];
try {
fastFourierTransformer0.transform2(complexArray0);
fail("Expecting exception: IllegalArgumentException");
} catch(IllegalArgumentException e) {
//
// Cannot compute 0-th root of unity, indefinite result.
//
verifyException("org.apache.commons.math.transform.FastFourierTransformer", e);
}
}
@Test(timeout = 4000)
public void test06() throws Throwable {
FastFourierTransformer fastFourierTransformer0 = new FastFourierTransformer();
double[] doubleArray0 = new double[7];
try {
fastFourierTransformer0.inversetransform2(doubleArray0);
fail("Expecting exception: IllegalArgumentException");
} catch(IllegalArgumentException e) {
//
// Number of samples not power of 2, consider padding for fix.
//
verifyException("org.apache.commons.math.transform.FastFourierTransformer", e);
}
}
@Test(timeout = 4000)
public void test07() throws Throwable {
FastFourierTransformer fastFourierTransformer0 = new FastFourierTransformer();
double[] doubleArray0 = new double[6];
PolynomialFunction polynomialFunction0 = new PolynomialFunction(doubleArray0);
try {
fastFourierTransformer0.transform((UnivariateRealFunction) polynomialFunction0, 3232.934, (-1873.4532230847815), 4);
fail("Expecting exception: IllegalArgumentException");
} catch(IllegalArgumentException e) {
//
// Endpoints do not specify an interval: [3232.934, -1873.4532230847815]
//
verifyException("org.apache.commons.math.transform.FastFourierTransformer", e);
}
}
@Test(timeout = 4000)
public void test08() throws Throwable {
FastFourierTransformer fastFourierTransformer0 = new FastFourierTransformer();
double[] doubleArray0 = new double[2];
PolynomialFunction polynomialFunction0 = new PolynomialFunction(doubleArray0);
try {
fastFourierTransformer0.transform2((UnivariateRealFunction) polynomialFunction0, (-1992.101046690593), 1.0, 1976);
fail("Expecting exception: IllegalArgumentException");
} catch(IllegalArgumentException e) {
//
// Number of samples not power of 2, consider padding for fix.
//
verifyException("org.apache.commons.math.transform.FastFourierTransformer", e);
}
}
@Test(timeout = 4000)
public void test09() throws Throwable {
FastFourierTransformer fastFourierTransformer0 = new FastFourierTransformer();
Complex[] complexArray0 = new Complex[9];
try {
fastFourierTransformer0.inversetransform2(complexArray0);
fail("Expecting exception: IllegalArgumentException");
} catch(IllegalArgumentException e) {
//
// Number of samples not power of 2, consider padding for fix.
//
verifyException("org.apache.commons.math.transform.FastFourierTransformer", e);
}
}
@Test(timeout = 4000)
public void test10() throws Throwable {
FastFourierTransformer fastFourierTransformer0 = new FastFourierTransformer();
double[] doubleArray0 = new double[0];
try {
fastFourierTransformer0.inversetransform(doubleArray0);
fail("Expecting exception: IllegalArgumentException");
} catch(IllegalArgumentException e) {
//
// Number of samples not power of 2, consider padding for fix.
//
verifyException("org.apache.commons.math.transform.FastFourierTransformer", e);
}
}
@Test(timeout = 4000)
public void test11() throws Throwable {
FastFourierTransformer fastFourierTransformer0 = new FastFourierTransformer();
Complex[] complexArray0 = new Complex[1];
// Undeclared exception!
try {
fastFourierTransformer0.inversetransform(complexArray0);
fail("Expecting exception: NullPointerException");
} catch(NullPointerException e) {
//
// no message in exception (getMessage() returned null)
//
verifyException("org.apache.commons.math.transform.FastFourierTransformer", e);
}
}
@Test(timeout = 4000)
public void test12() throws Throwable {
FastFourierTransformer fastFourierTransformer0 = new FastFourierTransformer();
double[] doubleArray0 = new double[3];
PolynomialFunction polynomialFunction0 = new PolynomialFunction(doubleArray0);
try {
fastFourierTransformer0.inversetransform((UnivariateRealFunction) polynomialFunction0, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY, 0);
fail("Expecting exception: IllegalArgumentException");
} catch(IllegalArgumentException e) {
//
// Number of samples not positive.
//
verifyException("org.apache.commons.math.transform.FastFourierTransformer", e);
}
}
@Test(timeout = 4000)
public void test13() throws Throwable {
FastFourierTransformer fastFourierTransformer0 = new FastFourierTransformer();
double[] doubleArray0 = new double[9];
PolynomialFunction polynomialFunction0 = new PolynomialFunction(doubleArray0);
try {
fastFourierTransformer0.inversetransform2((UnivariateRealFunction) polynomialFunction0, 0.0, 0.0, (-1));
fail("Expecting exception: IllegalArgumentException");
} catch(IllegalArgumentException e) {
//
// Number of samples not positive.
//
verifyException("org.apache.commons.math.transform.FastFourierTransformer", e);
}
}
}
| [
"pouria.derakhshanfar@gmail.com"
] | pouria.derakhshanfar@gmail.com |
c96dc2f530e8cf86e008b1c7896ea1a7874236c2 | 2b43f5613ceb041dd548dcffd6027310ed7828b8 | /src/main/java/com/example/demo/repository/TransactionRepository.java | d91bd18f1c44e63b4b34ec4ea49f3f8eead12c63 | [] | no_license | yohei-sato0720/VitalizeSchool | d46431b5621922e6f758ae48443e9062710b900d | 33c65ea03dc1f4a2400360fee3fcb859416c1e5a | refs/heads/master | 2022-11-07T18:28:37.502512 | 2020-06-24T01:51:33 | 2020-06-24T01:51:33 | 261,937,687 | 0 | 8 | null | 2020-06-24T01:51:35 | 2020-05-07T03:13:16 | CSS | UTF-8 | Java | false | false | 549 | java | package com.example.demo.repository;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import org.springframework.beans.factory.annotation.Autowired;
import com.example.demo.entity.Transaction;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
/**
* 取引履歴情報 Repository
*/
@Repository
public interface TransactionRepository extends JpaRepository<Transaction, Long> {
public Page<Transaction> findAll(Pageable pageable);
}
| [
"okawataihei@ookawataiheinoMacBook-puro.local"
] | okawataihei@ookawataiheinoMacBook-puro.local |
494adee9d3d87103298aeb7a557754c83690a19f | b7d017afd6fc442cab9758587218ccd7030c432c | /java-practices/src/main/java/kurahashi/ex3_1/PetBottle.java | fb1b045854a9b4da8822185734703e6b27c86580 | [] | no_license | kitamurakei/ojt | 45c9fd385cfd5190943e7f757fbe24778e822941 | 5ecec0e4b2d9cd1d99e1273d89db9bc4ab09ea71 | refs/heads/master | 2016-09-06T01:17:04.904589 | 2013-09-05T06:40:54 | 2013-09-05T06:40:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,321 | java | package kurahashi.ex3_1;
public class PetBottle {
/** 名前 */
private String name;
/** 残量 */
private int remaining;
/** 容量 */
private int capacity;
/**
* 名前と残量と容量を指定するコンストラクタ
*
* @param name 名前
* @param remaining 残量
* @param capacity 容量
*/
public PetBottle(String name, int remaining, int capacity) {
this.name = name;
this.remaining = remaining;
this.capacity = capacity;
}
/**
* 内容物を飲む
*
* @param amout 飲む量
*/
public void drink(int amount) {
if (remaining < amount) {
this.remaining = 0;
} else {
remaining = remaining - amount;
}
}
/**
* 内容物を補充する
*
* @param amout 補充する量
*/
public void supplementation(int amout) {
remaining = remaining + amout;
if (capacity < remaining) {
remaining = capacity;
}
}
/**
* 名前を取得する
*
* @return 名前
*/
public String getName() {
return this.name;
}
/**
* 名前を設定する
*
* @param name 名前
*/
public void setName(String name) {
this.name = name;
}
/**
* 残量を取得する
*
* @return 残量
*/
public int getRemaining() {
return this.remaining;
}
} | [
"k0512kay@gmail.com"
] | k0512kay@gmail.com |
250acf9ccfbdb5fb297fdea33170ba757892afa5 | 54f352a242a8ad6ff5516703e91da61e08d9a9e6 | /Source Codes/CodeJamData/10/33/0.java | e678dc73908b521eee5189bc1309716cc474f396 | [] | no_license | Kawser-nerd/CLCDSA | 5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb | aee32551795763b54acb26856ab239370cac4e75 | refs/heads/master | 2022-02-09T11:08:56.588303 | 2022-01-26T18:53:40 | 2022-01-26T18:53:40 | 211,783,197 | 23 | 9 | null | null | null | null | UTF-8 | Java | false | false | 2,636 | java | import java.io.*;
import java.util.*;
public class C {
private static String fileName = C.class.getSimpleName().replaceFirst("_.*", "");
private static String inputFileName = fileName + ".in";
private static String outputFileName = fileName + ".out";
private static Scanner in;
private static PrintWriter out;
private void solve() {
int hei = in.nextInt();
int wid = in.nextInt();
boolean[][] a = new boolean[hei][wid];
boolean[][] used = new boolean[hei][wid];
boolean[][] ok = new boolean[hei][wid];
for (int i = 0; i < hei; i++) {
String s = in.next();
for (int j = 0; j < wid / 4; j++) {
int t = Integer.parseInt(s.substring(j, j + 1), 16);
for (int k = 0; k < 4; k++) {
a[i][4 * j + k] = (t & (1 << (3 - k))) > 0;
}
}
}
for (int i = hei - 1; i >= 0; i--) {
for (int j = wid - 1; j >= 0; j--) {
if (i + 1 == hei || j + 1 == wid) {
continue;
}
if ((a[i][j + 1] != a[i][j]) && (a[i + 1][j] != a[i][j]) && (a[i + 1][j + 1] == a[i][j])) {
ok[i][j] = true;
}
}
}
int[][] max = new int[hei][wid];
int ans = 0;
StringBuilder answer = new StringBuilder();
for (int size = Math.min(hei, wid); size >= 1; size--) {
for (int i = hei - 1; i >= 0; i--) {
for (int j = wid - 1; j >= 0; j--) {
if (used[i][j]) {
max[i][j] = 0;
continue;
}
if (ok[i][j]) {
max[i][j] = 1 + Math.min(max[i + 1][j], Math.min(max[i][j + 1], max[i + 1][j + 1]));
} else {
max[i][j] = 1;
}
}
}
int count = 0;
for (int i = 0; i < hei; i++) {
for (int j = 0; j < wid; j++) {
if (max[i][j] >= size) {
count++;
for (int ii = 0; ii < size; ii++) {
for (int jj = 0; jj < size; jj++) {
used[i + ii][j + jj] = true;
}
}
for (int ii = 0; ii < size; ii++) {
for (int jj = Math.max(1 - size, -j); jj < size; jj++) {
max[i + ii][j + jj] = 0;
}
}
}
}
}
if (count > 0) {
ans++;
answer.append(size + " " + count + "\n");
}
}
out.println(ans);
out.print(answer);
}
public static void main(String[] args) throws IOException {
Locale.setDefault(Locale.US);
if (args.length >= 2) {
inputFileName = args[0];
outputFileName = args[1];
}
in = new Scanner(new FileReader(inputFileName));
out = new PrintWriter(outputFileName);
int tests = in.nextInt();
in.nextLine();
for (int t = 1; t <= tests; t++) {
out.print("Case #" + t + ": ");
new C().solve();
}
in.close();
out.close();
}
}
| [
"kwnafi@yahoo.com"
] | kwnafi@yahoo.com |
33562ab68b74cf7d0aaa523369a67f468154cf61 | 52860bd70bf07fdc515a7a1e0b627533ec082ff9 | /src/main/java/com/personel/io/model/School.java | e8fa67160df65463c9bd84a806649beed3c41484 | [] | no_license | aliemrahpekesen/springboot-mongo-restrepository | f4caf8802390d701bf2b03d2bbfe4f79f5f344f4 | b52a8069943c2057b3b3b5d169e680c49f2a48e3 | refs/heads/master | 2021-01-12T04:03:11.557619 | 2016-12-27T22:40:01 | 2016-12-27T22:40:01 | 77,486,558 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 185 | java | package com.personel.io.model;
import lombok.Data;
@Data
public class School {
private String code;
private String name;
private boolean funding;
private PostalAddress address;
}
| [
"emrah.pekesen@amadeus.com"
] | emrah.pekesen@amadeus.com |
aa0f2f8d2f02a7e78a6a762697622219d743425b | 5fcb5ad6611cf01cac41ac6c380cea51a4d4a675 | /20191/project/test/game/test-socket-udp/Client.java | f8424d321ae3040ce0063897051da9ea1c0b324e | [] | no_license | meomeoo/mydocuments | 8d6063c5a37d34d615b628837589f7148e58e89b | e6b33b3ccf0b8f1a34992c424ac15b71cc0e2384 | refs/heads/master | 2022-12-23T18:06:42.071598 | 2020-06-12T08:37:49 | 2020-06-12T08:37:49 | 183,804,684 | 3 | 1 | null | 2022-12-16T06:56:56 | 2019-04-27T17:51:04 | Jupyter Notebook | UTF-8 | Java | false | false | 1,752 | java | import java.io.IOException;
import java.net.DatagramPacket;
import java.net.DatagramSocket;
import java.net.InetAddress;
import java.util.Arrays;
public class Client {
public final static String SERVER_IP = "127.0.0.1";
public final static int SERVER_PORT = 7; // Cổng mặc định của Echo Server
public final static byte[] BUFFER = new byte[4096]; // Vùng đệm chứa dữ liệu cho gói tin nhận
public static void main(String[] args) {
DatagramSocket ds = null;
try {
ds = new DatagramSocket(); // Tạo DatagramSocket
System.out.println("Client started ");
InetAddress server = InetAddress.getByName(SERVER_IP);
while (true) {
int a[] = { 1 };
String mes = Arrays.toString(a);
System.out.println(mes);
byte[] data = mes.getBytes(); // Đổi chuỗi ra mảng bytes
// Tạo gói tin gởi
DatagramPacket dp = new DatagramPacket(data, data.length, server, SERVER_PORT);
ds.send(dp); // Send gói tin sang Echo Server
// Gói tin nhận
DatagramPacket incoming = new DatagramPacket(BUFFER, BUFFER.length);
ds.receive(incoming); // Chờ nhận dữ liệu từ EchoServer gởi về
// Đổi dữ liệu nhận được dạng mảng bytes ra chuỗi và in ra màn hình
System.out.println("Received: " + new String(incoming.getData(), 0, incoming.getLength()));
}
} catch (IOException e) {
System.err.println(e);
} finally {
if (ds != null) {
ds.close();
}
}
}
} | [
"dinhngockhanh69@gmail.com"
] | dinhngockhanh69@gmail.com |
7aa178770446f62f0f0417381c6cc6584e4a7150 | 7b8742ddb828ee49ca45b22a267375fdb9956ba7 | /src/com/ankit/Array_Problems/StreamDemo.java | 5830caa5ee1fdd65653c4a3420cee8c294cb5d1a | [] | no_license | Ankitkansal2510/Practise_Problem | 81b9e05fabaa73a5ec080b323961905d08f82c12 | 473b279d62ede12e7cecd9a5537b97f94ce4d7eb | refs/heads/master | 2020-04-30T07:25:10.509731 | 2019-04-25T09:04:41 | 2019-04-25T09:04:41 | 176,683,614 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,231 | java | package com.ankit.Array_Problems;
import java.util.ArrayList;
import java.util.List;
import java.util.OptionalDouble;
import java.util.OptionalInt;
import java.util.stream.Collectors;
public class StreamDemo {
public static void main(String[] args) {
List<Integer> list=new ArrayList<>();
list.add(0);
list.add(10);
list.add(5);
list.add(20);
System.out.println(list);
List<Integer> list1=list.stream().filter(i->i%2!=0).collect(Collectors.toList());
List<Integer> list2=list.stream().map(i->i*2).collect(Collectors.toList());
OptionalDouble list5=list.stream().mapToInt(i->i).average();
List<Integer> list3=list.stream().sorted((i1,i2)->-i1.compareTo(i2)).collect(Collectors.toList());
Long count=list.stream().filter(i->i%2==0).count();
OptionalInt min=list.stream().mapToInt(v->v).min();
int minValue=list.stream().min((i1,i2)->i1.compareTo(i2)).get();
Integer[] array=list.stream().toArray(Integer[]::new);//Copying elements of list into array
System.out.println(list1);
System.out.println(list2 + " " + count + " " +min);
System.out.println(list3 + " MinValue is : " + minValue + " Average : " + list5.getAsDouble());
for(Integer i:array)
{
System.out.println(i);
}
}
}
| [
"kansal920@gmail.com"
] | kansal920@gmail.com |
bebc953a40d645d437c30ba8dfe531db73cf1196 | 1e3a50e0db1c5202944146cd1a977cee296749fc | /AlgorithmStudy/src/boj_20210105_BFS/BeadEscape_13459.java | f98a112b1c7bc0e4d5c0b921f6b0cc40b55421cd | [] | no_license | Sn-Hn/AlgorithmStudy | 3ca5b8009cdb0782347fb0bedf58e568d0f01f38 | 06d6307f0fb3090ca6654f9b505a404ac86829d8 | refs/heads/main | 2023-08-02T18:08:29.523934 | 2021-09-26T14:28:41 | 2021-09-26T14:28:41 | 322,285,904 | 0 | 6 | null | 2021-08-08T08:11:27 | 2020-12-17T12:18:35 | Java | UTF-8 | Java | false | false | 8,434 | java | package boj_20210105_BFS;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;
import java.util.Queue;
import java.util.StringTokenizer;
/*
구슬 탈출 분류
시간 제한 메모리 제한 제출 정답 맞은 사람 정답 비율
2 초 512 MB 4553 1441 1028 32.511%
문제
스타트링크에서 판매하는 어린이용 장난감 중에서 가장 인기가 많은 제품은 구슬 탈출이다.
구슬 탈출은 직사각형 보드에 빨간 구슬과 파란 구슬을 하나씩 넣은 다음, 빨간 구슬을 구멍을 통해 빼내는 게임이다.
보드의 세로 크기는 N, 가로 크기는 M이고, 편의상 1×1크기의 칸으로 나누어져 있다.
가장 바깥 행과 열은 모두 막혀져 있고, 보드에는 구멍이 하나 있다.
빨간 구슬과 파란 구슬의 크기는 보드에서 1×1크기의 칸을 가득 채우는 사이즈이고, 각각 하나씩 들어가 있다.
게임의 목표는 빨간 구슬을 구멍을 통해서 빼내는 것이다. 이때, 파란 구슬이 구멍에 들어가면 안 된다.
이때, 구슬을 손으로 건드릴 수는 없고, 중력을 이용해서 이리 저리 굴려야 한다.
왼쪽으로 기울이기, 오른쪽으로 기울이기, 위쪽으로 기울이기, 아래쪽으로 기울이기와 같은 네 가지 동작이 가능하다.
각각의 동작에서 공은 동시에 움직인다.
빨간 구슬이 구멍에 빠지면 성공이지만, 파란 구슬이 구멍에 빠지면 실패이다.
빨간 구슬과 파란 구슬이 동시에 구멍에 빠져도 실패이다.
빨간 구슬과 파란 구슬은 동시에 같은 칸에 있을 수 없다.
또, 빨간 구슬과 파란 구슬의 크기는 한 칸을 모두 차지한다. 기울이는 동작을 그만하는 것은 더 이상 구슬이 움직이지 않을 때 까지이다.
보드의 상태가 주어졌을 때, 10번 이하로 빨간 구슬을 구멍을 통해 빼낼 수 있는지 구하는 프로그램을 작성하시오.
입력
첫 번째 줄에는 보드의 세로, 가로 크기를 의미하는 두 정수 N, M (3 ≤ N, M ≤ 10)이 주어진다.
다음 N개의 줄에 보드의 모양을 나타내는 길이 M의 문자열이 주어진다.
이 문자열은 '.', '#', 'O', 'R', 'B' 로 이루어져 있다.
'.'은 빈 칸을 의미하고, '#'은 공이 이동할 수 없는 장애물 또는 벽을 의미하며, 'O'는 구멍의 위치를 의미한다.
'R'은 빨간 구슬의 위치, 'B'는 파란 구슬의 위치이다.
입력되는 모든 보드의 가장자리에는 모두 '#'이 있다. 구멍의 개수는 한 개 이며, 빨간 구슬과 파란 구슬은 항상 1개가 주어진다.
출력
파란 구슬을 구멍에 넣지 않으면서 빨간 구슬을 10번 이하로 움직여서 빼낼 수 있으면 1을 없으면 0을 출력한다.
예제 입력 1
5 5
#####
#..B#
#.#.#
#RO.#
#####
예제 출력 1
1
예제 입력 2
7 7
#######
#...RB#
#.#####
#.....#
#####.#
#O....#
#######
예제 출력 2
1
예제 입력 3
7 7
#######
#..R#B#
#.#####
#.....#
#####.#
#O....#
#######
예제 출력 3
1
예제 입력 4
10 10
##########
#R#...##B#
#...#.##.#
#####.##.#
#......#.#
#.######.#
#.#....#.#
#.#.#.#..#
#...#.O#.#
##########
예제 출력 4
0
예제 입력 5
3 7
#######
#R.O.B#
#######
예제 출력 5
1
예제 입력 6
10 10
##########
#R#...##B#
#...#.##.#
#####.##.#
#......#.#
#.######.#
#.#....#.#
#.#.##...#
#O..#....#
##########
예제 출력 6
1
예제 입력 7
3 10
##########
#O.....BR#
##########
예제 출력 7
0
6 7
#######
#R....#
#.###.#
#....##
#..#BO#
#######
5 7
#######
#######
###.###
#O.BR##
#######
5 7
#######
#######
#######
##ORB##
#######
*/
// 100% 에서 틀림
public class BeadEscape_13459 {
private static int N, M;
private static char map[][];
private static boolean visited[][][][];
private static int redBead[] = new int[2];
private static int blueBead[] = new int[2];
private static int hole[] = new int[2];
private static int result = 0;
private static Pair beadList;
// 동 서 남 북
private static int dx[] = { 0, 0, 1, -1 };
private static int dy[] = { 1, -1, 0, 0 };
private static class Pair {
int redX, redY, blueX, blueY, count;
public Pair(int redX, int redY, int blueX, int blueY, int count) {
this.redX = redX;
this.redY = redY;
this.blueX = blueX;
this.blueY = blueY;
this.count = count;
}
}
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
StringTokenizer st = new StringTokenizer(br.readLine());
N = Integer.parseInt(st.nextToken());
M = Integer.parseInt(st.nextToken());
map = new char[N][M];
visited = new boolean[N][M][N][M];
for (int i = 0; i < N; i++) {
String str = br.readLine();
for (int j = 0; j < M; j++) {
map[i][j] = str.charAt(j);
if (map[i][j] == 'R') {
redBead[0] = i;
redBead[1] = j;
} else if (map[i][j] == 'B') {
blueBead[0] = i;
blueBead[1] = j;
} else if (map[i][j] == 'O') {
hole[0] = i;
hole[1] = j;
}
}
}
beadList = new Pair(redBead[0], redBead[1], blueBead[0], blueBead[1], 0);
escapeBead();
System.out.println(result);
br.close();
}
private static void escapeBead() {
Queue<Pair> q = new LinkedList<Pair>();
boolean flag = false;
q.add(beadList);
visited[redBead[0]][redBead[1]][blueBead[0]][blueBead[1]] = true;
while (!q.isEmpty()) {
Pair bead = q.poll();
int redX, redY, blueX, blueY;
int count = bead.count;
// 10번 넘게 움직였으므로 실패
if (count >= 10) {
break;
}
/*
* 5 7 ####### ####### ####### ##ORB## ####### 위의 예제를 처리할 때 아래 if문이 없으면 1이 출력
*
*/
if (bead.redX == hole[0] && bead.redY == hole[1]) {
continue;
}
// 빨간 공과 파란 공의 위치에 따라 달라짐...
for (int i = 0; i < 4; i++) {
// 회전을 할때마다 기존의 구슬 값을 받아옴
redX = bead.redX;
redY = bead.redY;
blueX = bead.blueX;
blueY = bead.blueY;
// 기울여지기 시작
// while이 끝나면 구슬들이 한쪽으로 쏠림
while (true) {
int rx = redX + dx[i];
int ry = redY + dy[i];
int bx = blueX + dx[i];
int by = blueY + dy[i];
// 한쪽으로 기울여질때 빨간구슬과 파란구슬이 동시에 들어오는 것을 구분하기 위해 flag를 사용
if (redX == hole[0] && redY == hole[1]) {
flag = true;
}
if (blueX == hole[0] && blueY == hole[1]) {
flag = false;
break;
}
// 다음에 전진할 빨간 구슬의 위치가 벽이 아니라면
if (map[rx][ry] != '#') {
redX += dx[i];
redY += dy[i];
}
// 다음에 전진할 파란 구슬의 위치가 벽이 아니라면
if (map[bx][by] != '#') {
blueX += dx[i];
blueY += dy[i];
}
// 빨간 구슬 파란 구슬의 다음 위치가 둘다 벽이라면 while 종료
if (map[rx][ry] == '#' && map[bx][by] == '#') {
break;
}
}
if (flag) {
result = 1;
break;
}
// 빨간 구슬과 파란 구슬이 겹쳤을 때
if (redX == blueX && redY == blueY) {
// 기존의 빨간구슬의 X인덱스가 파란구슬의 X인덱스보다 크다면
if (bead.redX > bead.blueX) {
// 아래로 기울였을 때
if (i == 2) {
// blueX의 전 위치를 의미
blueX -= dx[i];
// 위로 기울였을 때
} else if (i == 3) {
redX -= dx[i];
}
} else {
if (i == 2) {
redX -= dx[i];
} else if (i == 3) {
blueX -= dx[i];
}
}
// 기존의 빨간구슬의 Y인덱스가 파란구슬의 Y인덱스보다 크다면
if (bead.redY > bead.blueY) {
// 오른쪽으로 기울였을 때
if (i == 0) {
blueY -= dy[i];
// 왼쪽으로 기울였을 때
} else if (i == 1) {
redY -= dy[i];
}
} else {
if (i == 0) {
redY -= dy[i];
} else if (i == 1) {
blueY -= dy[i];
}
}
}
// 방문처리
if (!visited[redX][redY][blueX][blueY]) {
visited[redX][redY][blueX][blueY] = true;
q.add(new Pair(redX, redY, blueX, blueY, count + 1));
}
}
}
}
}
| [
"tlsgks8668@naver.com"
] | tlsgks8668@naver.com |
2ee700fc9f005fcc593a5aae5f362761721a35bf | c43f5b1a4642a05539c74fbb58ca90d8c891af8a | /DesignPattern/src/cc/pp/command/remote/CeilingFanOffCommand.java | ccce3e9afe028988d464e4ab19918566efa04979 | [] | no_license | wgybzbrobot/bookcodes | 33eabeedd863f630901df51ed28e5471c6c21312 | c9bc0f2e3375834ff696444e57b9e853dd767251 | refs/heads/master | 2022-11-30T04:49:15.462214 | 2014-01-23T04:35:01 | 2014-01-23T04:35:01 | 15,858,734 | 1 | 3 | null | 2022-11-24T02:20:59 | 2014-01-13T05:17:19 | Java | UTF-8 | Java | false | false | 261 | java | package cc.pp.command.remote;
public class CeilingFanOffCommand implements Command {
CeilingFan ceilingFan;
public CeilingFanOffCommand(CeilingFan ceilingFan) {
this.ceilingFan = ceilingFan;
}
@Override
public void execute() {
ceilingFan.off();
}
}
| [
"wanggang@pp.cc"
] | wanggang@pp.cc |
d5bba1fd0ea7668957baa85e87881cd3eefab945 | 71939f28b20bbc2f741e6245057494e9b9ef2e42 | /dj-common/src/main/java/cn/dlbdata/dj/common/core/util/FileUtil.java | 4e5004e2c93f51aaca094d0213319adc991498d2 | [] | no_license | jamesxiao2016/jlyz-parent | 801d213e013723459881067025e5c5b3a8ccd81f | 60d2b0a9faa04d45ab2d342f2fac82ad1c1ad849 | refs/heads/master | 2020-03-17T17:11:52.811523 | 2018-07-05T02:18:40 | 2018-07-05T02:19:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,135 | java | package cn.dlbdata.dj.common.core.util;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.FileWriter;
import java.io.IOException;
import java.math.BigInteger;
import java.nio.ByteBuffer;
import java.nio.CharBuffer;
import java.nio.MappedByteBuffer;
import java.nio.channels.FileChannel;
import java.nio.charset.Charset;
import java.nio.charset.CharsetDecoder;
import java.nio.charset.CharsetEncoder;
import java.security.MessageDigest;
public class FileUtil {
/**
* 写入文件(文件有读写和可执行的权限)
*
* @param path
* 文件路径
* @param content
* 写入的内容
*/
public static void writeToFile(String dirPath, String fileName, String content) {
FileWriter fw = null;
try {
File parent = new File(dirPath);
if (!parent.exists()) {
parent.mkdirs();
parent.setWritable(true, false);
}
File file = new File(dirPath, fileName);
if (!file.exists()) {
file.createNewFile();
file.setWritable(true, false);
file.setExecutable(true, false);
} else {
if (!file.canWrite()) {
file.setWritable(true, false);
}
if (!file.canExecute()) {
file.setExecutable(true, false);
}
}
fw = new FileWriter(file.getCanonicalPath());
fw.write(content);
} catch (IOException e) {
e.printStackTrace();
} finally {
if (fw != null) {
try {
fw.close();
} catch (IOException e) {
}
}
}
}
/**
* 获取文件md5
*
* @param file
* @return
*/
public static String getFileMd5Value(File file) {
String value = null;
FileInputStream in = null;
try {
in = new FileInputStream(file);
MappedByteBuffer byteBuffer = in.getChannel().map(FileChannel.MapMode.READ_ONLY, 0, file.length());
MessageDigest md5 = MessageDigest.getInstance("MD5");
md5.update(byteBuffer);
BigInteger bi = new BigInteger(1, md5.digest());
value = bi.toString(16);
} catch (Exception e) {
e.printStackTrace();
} finally {
if (in != null) {
try {
in.close();
} catch (IOException e) {
e.printStackTrace();
}
}
}
return value;
}
public static final int BUFSIZE = 1024 * 8;
@SuppressWarnings("resource")
public static void mergeFiles(String outFile, String[] files) throws Exception {
FileChannel outChannel = null;
try {
outChannel = new FileOutputStream(outFile).getChannel();
for (String f : files) {
Charset charset = Charset.forName("utf-8");
CharsetDecoder chdecoder = charset.newDecoder();
CharsetEncoder chencoder = charset.newEncoder();
FileChannel fc = new FileInputStream(f).getChannel();
ByteBuffer bb = ByteBuffer.allocate(BUFSIZE);
CharBuffer charBuffer = chdecoder.decode(bb);
ByteBuffer nbuBuffer = chencoder.encode(charBuffer);
while (fc.read(nbuBuffer) != -1) {
bb.flip();
nbuBuffer.flip();
outChannel.write(nbuBuffer);
bb.clear();
nbuBuffer.clear();
}
fc.close();
}
} finally {
try {
if (outChannel != null) {
outChannel.close();
}
} catch (IOException ignore) {
}
}
}
}
| [
"james112496@163.com"
] | james112496@163.com |
85193e52487a49f67a8d3bbfc30611e7f731c367 | 3d4cb2da85b2bd7b2f2c85f000905cf666296fd9 | /src/main/java/com/sea_emperor/exception/ErrorCodes.java | 17bf3b7542bc8cd26f04bbcdfa41f61590e6135e | [] | no_license | Muthu64/RestaurantSimulator-master | 322d9502e420b0b98b3a9510b198dd2ff34e5132 | 2317fc53c7c3b2abc4b29d3ab3c30c35b8f117ec | refs/heads/master | 2021-07-05T04:11:05.944234 | 2021-02-06T20:45:48 | 2021-02-06T20:45:48 | 225,273,248 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 655 | java | package com.sea_emperor.exception;
import org.springframework.http.HttpStatus;
public enum ErrorCodes
{
INVALID_REQUEST( HttpStatus.BAD_REQUEST ),
NOT_FOUND( HttpStatus.NOT_FOUND );
public enum ContextKeys
{
ITEM_NAME_NULL,
ITEM_QUANTITY_NULL,
ITEM_CATEGORY_NULL,
INVALID_ITEM_ID,
INVALID_ITEM_REQUEST,
NO_REQUEST,
ITEM_NOT_AVAILABLE,
ITEM_ALREADY_AVAILABLE;
}
private HttpStatus httpStatus;
ErrorCodes( HttpStatus httpStatus )
{
this.httpStatus = httpStatus;
}
public HttpStatus getHttpStatus()
{
return httpStatus;
}
}
| [
"muthu7kumar@gmail.com"
] | muthu7kumar@gmail.com |
8243edfc1bcfaaf2623f424bdeb21421b6c278e3 | 8da9ce7dfb74fb3de8724282d34e0e459d8f3171 | /Androi2_NopBai_Sevice/app/src/test/java/com/example/serviceboundmusic/ExampleUnitTest.java | 3504560aec626ece65ee9b9d17e4d05933b5335b | [] | no_license | haphuong1203/Androi2_NopBai | 1a825adfd09d239be3e0bd32694c6129c803a27f | fb2999eee0bec2d8819c3e55d26ee07140798efe | refs/heads/master | 2023-08-19T16:10:28.338294 | 2021-10-26T08:13:45 | 2021-10-26T08:13:45 | 409,430,816 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 390 | java | package com.example.serviceboundmusic;
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);
}
} | [
"haphuongminyoongi@gmail.com"
] | haphuongminyoongi@gmail.com |
c42a36a91300a85524c3dff1779fdca8d6875326 | d7a303fe76620b00882f4e76b06ff12421249b4e | /grammar_induction/jAOG/src/aog/Pattern.java | 750c469774652b6fddcd2e89869221c3846e84b0 | [
"MIT"
] | permissive | xiaozhuchacha/OpenBottle | f2135e7a824f82e3a32aa4f7241fb81dfa7fa74b | 1a73998bb508eb506ff0917e54cd2c01667add65 | refs/heads/master | 2021-03-27T11:59:40.479104 | 2019-06-27T22:59:30 | 2019-06-27T22:59:30 | 81,894,449 | 12 | 3 | null | null | null | null | UTF-8 | Java | false | false | 337 | java | package aog;
import java.util.ArrayList;
/**
* Either a basic or a composite pattern
*
* @author Kewei Tu
*
*/
public abstract class Pattern {
public int id;
private static int idCounter = 0;
public Pattern() {
id = idCounter++;
}
public ArrayList<Pattern> parents = new ArrayList<Pattern>();
}
| [
"mark@mjedmonds.com"
] | mark@mjedmonds.com |
9d27fb17da01302860b0aa1e1b9e162bd185a78d | 46786b383a16fff9c5d57b6b197b905e56a40dba | /xcloud/xcloud-vijava/src/main/java/com/vmware/vim25/HostFeatureCapability.java | e27dec0608c84f10cfefd1767b15bd59be16f185 | [] | no_license | yiguotang/x-cloud | feeb9c6288e01a45fca82648153238ed85d4069e | 2b255249961efb99d48a0557f7d74ce3586918fe | refs/heads/master | 2020-04-05T06:18:30.750373 | 2016-08-03T06:48:35 | 2016-08-03T06:48:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,291 | java | /*================================================================================
Copyright (c) 2013 Steve Jin. 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 VMware, Inc. 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 HOLDERS AND CONTRIBUTORS "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 VMWARE, INC. OR CONTRIBUTORS 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.
================================================================================*/
package com.vmware.vim25;
/**
* @author Steve Jin (http://www.doublecloud.org)
* @version 5.1
*/
@SuppressWarnings("all")
public class HostFeatureCapability extends DynamicData {
public String key;
public String featureName;
public String value;
public String getKey() {
return this.key;
}
public String getFeatureName() {
return this.featureName;
}
public String getValue() {
return this.value;
}
public void setKey(String key) {
this.key=key;
}
public void setFeatureName(String featureName) {
this.featureName=featureName;
}
public void setValue(String value) {
this.value=value;
}
}
| [
"waddy87@gmail.com"
] | waddy87@gmail.com |
708458682e25a8f44ae6b258151394997ad14df4 | 69bfd232c54ccc4b3ba55df23ba9b4d35784a65b | /Bishi_Algorithm/src/_8_minReverse/MinReverse.java | ecef1da194db9d11ecfa7d491f6c46e42c769a98 | [] | no_license | yan456jie/java_algorithm | 0897076160aa0679ea26aad9681364982097b3ed | f3539581d6830f384cca10e4570a688da6946a2a | refs/heads/master | 2020-07-04T09:33:48.787972 | 2016-10-18T13:07:41 | 2016-10-18T13:07:41 | 67,917,509 | 0 | 0 | null | null | null | null | GB18030 | Java | false | false | 1,222 | java | package _8_minReverse;
/**
* 找到旋转数组的最小值
* @author yanjie
*
*/
public class MinReverse {
static int[] data = {5,6,7,8,9,1,2,3,4};
//static int[] data = {1,0,1,1,1};//
public static void main(String[] args) {
// TODO Auto-generated method stub
int min = search(data);
System.out.println(min);
}
public static int search(int[] data){
int index1 = 0;
int index2 = data.length-1;
int indexMid = index1;
while(data[index1]>data[index2]){
if(index2-index1==1){
indexMid = index2;
break;
}
//System.out.println("index1:"+index1+" mid:"+indexMid+" index2:"+index2);
indexMid = (index1+index2)/2;
//若index1,index2,indexMid指向数字相等,只能顺序查找
if(data[index1]>=data[index2] && data[indexMid]==data[index2]){
}
if(data[indexMid]>=data[index1]){
index1 = indexMid;
}else if(data[indexMid]<=data[index2]){
index2 = indexMid;
}
}
return data[indexMid];
}
public static int minOrder(int[] data, int index1, int index2){
int result = data[index1];
for(int i=index1+1; i<=index2; i++){
if(result>data[i]){
result = data[i];
}
}
return result;
}
}
| [
"yan456jie@163.com"
] | yan456jie@163.com |
f15e5371d8951b301e0dab6f38701d6f82e4602c | 19e8e1dd59e96cc7d505b67e0096bb225ed4378c | /app/src/main/java/com/samsoft/xpendify/graph/communication/IOnBarClickedListener.java | 468de30a5d045a687906aa280d75b2fe4f80e4bd | [] | no_license | NTRsolutions/Xpendify | e64b0da43ab7ca4a3e911da7d0dc69d9207defc5 | aeb8aac3a3991d75a82c4eeead746c04fd12ad27 | refs/heads/master | 2020-03-27T18:27:22.223064 | 2017-05-28T22:34:48 | 2017-05-28T22:34:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 790 | java | /**
*
* Copyright (C) 2014 Paul Cech
*
* 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.samsoft.xpendify.graph.communication;
/**
* Created by paul on 28.07.14.
*/
public interface IOnBarClickedListener {
void onBarClicked(int _Position);
}
| [
"churchillmerediths@yahoo.com"
] | churchillmerediths@yahoo.com |
671a891be08ca952e99ce9de22e37cb388bb08b4 | 3ba29c6bb89c240adbabf535f5bade5608738b67 | /messenger-client-gui/src/github/mjksabit/LogOutResponse.java | 9e77f8ed33488c5f1527e1c4b4d2194e31fafbc6 | [] | no_license | MJKSabit/java-messenger | 0a683f976ac44a2ee01a1068a1ba42ed8aa8b551 | 2cccc34a2351b46e16b5b41872d4a44655d4456d | refs/heads/master | 2022-07-07T22:55:04.344524 | 2020-05-05T10:55:21 | 2020-05-05T10:55:21 | 255,046,632 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 442 | java | package github.mjksabit;
import org.json.JSONException;
import org.json.JSONObject;
public class LogOutResponse extends Response{
@Override
void ADDED_TO_THE_FACTORY() {
// true
}
@Override
public String executeWithNextCommand() throws JSONException {
JSONObject jsonObject = new JSONObject(arg);
sout(jsonObject.getString("username") + " logged Out successfully");
return null;
}
}
| [
"sabit.jehadul.karim@gmail.com"
] | sabit.jehadul.karim@gmail.com |
16f4dfd8118064c7c32a17181cca6f23bf2cf3ab | a53db3c73fb641ba079ea03797987d8dc052e1dc | /src/main/java/com/pn/hiraeth/SpringBootHiraethApplication.java | 17cb71a3e51164648d2d1bf7b4d6af6d04cbb129 | [] | no_license | tingdaodi/spring-boot-hiraeth | 05ed5b8fe7900cf84aeedd51be8cef1e583c883a | 65ecc5bfe1124632669bed408a508a7029e71f69 | refs/heads/master | 2020-03-25T03:00:25.696735 | 2018-08-02T16:17:43 | 2018-08-02T16:17:43 | 143,317,969 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 340 | java | package com.pn.hiraeth;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class SpringBootHiraethApplication {
public static void main(String[] args) {
SpringApplication.run(SpringBootHiraethApplication.class, args);
}
}
| [
"noreply@github.com"
] | noreply@github.com |
be946b8fef5abfbc6683f771babed62d7894b4fe | 468810227a95f4a95b77aa099c3a98df260a85a3 | /ros/src/kinova-ros/matlab_gen/build/rosjava_build/kinova_msgs/build/generated-src/kinova_msgs/ArmPoseFeedback.java | 1a56bfb33ca13629c8b9d38071daa486837acc50 | [
"BSD-3-Clause"
] | permissive | Jerryxiaoyu/pararl | 9dca25304a4bd46c7fa5f0dba73502c7133d54de | a85bec369faee3035c47fcf9a3df5d761553733e | refs/heads/master | 2020-06-28T19:43:50.112475 | 2019-09-11T02:38:07 | 2019-09-11T02:38:09 | 200,322,973 | 1 | 0 | null | 2019-08-03T02:39:24 | 2019-08-03T02:39:23 | null | UTF-8 | Java | false | false | 445 | java | package kinova_msgs;
public interface ArmPoseFeedback extends org.ros.internal.message.Message {
static final java.lang.String _TYPE = "kinova_msgs/ArmPoseFeedback";
static final java.lang.String _DEFINITION = "# Feedback message\ngeometry_msgs/PoseStamped pose";
static final boolean _IS_SERVICE = false;
static final boolean _IS_ACTION = true;
geometry_msgs.PoseStamped getPose();
void setPose(geometry_msgs.PoseStamped value);
}
| [
"wjywangjiay@163.com"
] | wjywangjiay@163.com |
5d2863cceeb2f3004262c4662d14632e5cf31fcf | 1578eeb9d0161e4b664eee37df19c058bb8be2ef | /app/src/main/java/com/example/im/mylovepet/Pet_TypeActivity.java | 12dd981152c7b36ed7c0b7772d07c5bcc2a38354 | [] | no_license | sgzgithub/MyLovePet | f3dd33bed792df725d459e9e4bd9eeb12030786a | ec9e6d2400f73dc4e416e6b5a75f700cf67a9608 | refs/heads/master | 2021-04-15T09:40:23.516819 | 2018-04-03T08:38:29 | 2018-04-03T08:38:29 | 126,905,538 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,490 | java | package com.example.im.mylovepet;
import android.os.Bundle;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentTransaction;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.ImageView;
import android.widget.RadioButton;
import com.example.im.mylovepet.fragemnt.pet_type_fragment.Pet_Type_CatFragment;
import com.example.im.mylovepet.fragemnt.pet_type_fragment.Pet_Type_DogFragment;
import com.example.im.mylovepet.fragemnt.pet_type_fragment.Pet_Type_RestsFragment;
import butterknife.Bind;
import butterknife.ButterKnife;
import butterknife.OnClick;
public class Pet_TypeActivity extends AppCompatActivity {
@Bind(R.id.Pet_Type_exit)
ImageView PetTypeExit;
@Bind(R.id.Pet_Type_Rb_Dog)
RadioButton PetTypeRbDog;
@Bind(R.id.Pet_Type_Rb_Cat)
RadioButton PetTypeRbCat;
@Bind(R.id.Pet_Type_Rb_Rests)
RadioButton PetTypeRbRests;
private FragmentManager manager;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_pet__type);
ButterKnife.bind(this);
manager = getSupportFragmentManager();
FragmentTransaction transaction = manager.beginTransaction();
transaction.add(R.id.Pet_Tyoe_Frame, new Pet_Type_DogFragment()).commit();
}
@OnClick({R.id.Pet_Type_exit, R.id.Pet_Type_Rb_Dog, R.id.Pet_Type_Rb_Cat, R.id.Pet_Type_Rb_Rests})
public void onClick(View view) {
switch (view.getId()) {
case R.id.Pet_Type_exit:
finish();
break;
case R.id.Pet_Type_Rb_Dog:
FragmentTransaction transaction = manager.beginTransaction();
transaction.replace(R.id.Pet_Tyoe_Frame, new Pet_Type_DogFragment()).commit();
break;
case R.id.Pet_Type_Rb_Cat:
FragmentTransaction transaction1 = manager.beginTransaction();
transaction1.replace(R.id.Pet_Tyoe_Frame, new Pet_Type_CatFragment()).commit();
break;
case R.id.Pet_Type_Rb_Rests:
FragmentTransaction transaction2 = manager.beginTransaction();
transaction2.replace(R.id.Pet_Tyoe_Frame, new Pet_Type_RestsFragment()).commit();
break;
}
}
@Override
protected void onDestroy() {
super.onDestroy();
ButterKnife.unbind(this);
}
}
| [
"934154367@qq.com"
] | 934154367@qq.com |
6461f36500b073cd7b81acae3e296e6130e0d4b3 | 5e765be27281ad91e8dce29833703ff9d8dcbcd0 | /MDM-Akka-POI/RuleInstImportExportController.java | 3be42b8318be98a5ee0b46cb8bd25e1c7aa5ffa3 | [] | no_license | ashutoshmuni/ashuproj | e004ad655335eb90c8ab42fed8b20a9542ccc89c | 453746f80e9b6971b7e774bd1774623783383bf8 | refs/heads/master | 2021-01-21T21:54:31.750485 | 2016-04-25T07:43:58 | 2016-04-25T07:43:58 | 30,350,361 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 25,569 | java | /**
* Copyright (C) Citi Group, Inc - All Rights Reserved
* Unauthorized copying of this file, via any medium is strictly prohibited
* Proprietary and confidential.
*
*/
package com.citi.rulefabricator.controllers;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.OutputStream;
import java.util.Arrays;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import org.codehaus.jackson.map.ObjectMapper;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.multipart.MultipartFile;
import com.citi.rulefabricator.dto.ExportResponseDTO;
import com.citi.rulefabricator.dto.ImportExportResponseDTO;
import com.citi.rulefabricator.dto.MapDefDTO;
import com.citi.rulefabricator.dto.PageDTO;
import com.citi.rulefabricator.dto.RequestAuthorityDTO;
import com.citi.rulefabricator.dto.RequestDTO;
import com.citi.rulefabricator.dto.ResponseDTO;
import com.citi.rulefabricator.dto.RuleDefDTO;
import com.citi.rulefabricator.dto.SearchDTO;
import com.citi.rulefabricator.dto.TaskDTO;
import com.citi.rulefabricator.dto.TaskStatusDisplayDTO;
import com.citi.rulefabricator.dto.UserDTO;
import com.citi.rulefabricator.dto.ValidationFailsDTO;
import com.citi.rulefabricator.enums.ApplicationConstants;
import com.citi.rulefabricator.services.MapDefService;
import com.citi.rulefabricator.services.MyRequestsService;
import com.citi.rulefabricator.services.RuleInstImportExportService;
import com.citi.rulefabricator.services.TaskService;
import com.citi.rulefabricator.services.ValidationFailsService;
import com.citi.rulefabricator.util.CommonUtils;
/**
* The Class RuleInstImportExportController.
*/
@Controller
@RequestMapping(value = "/ruleInstImportExport")
public class RuleInstImportExportController {
/** The Constant LOGGER. */
private static final Logger LOGGER = LoggerFactory.getLogger(RuleInstImportExportController.class);
/** Size of a byte buffer to read/write file. */
private static final int BUFFER_SIZE = 4096;
/** The rule inst import export service impl. */
@Autowired
private RuleInstImportExportService ruleInstImportExportServiceImpl;
/** The map def service. */
@Autowired
private MapDefService mapDefService;
/** The task service. */
@Autowired
private TaskService taskService;
/** The validation fails service. */
@Autowired
private ValidationFailsService validationFailsService;
/** The my requests service. */
@Autowired
private MyRequestsService myRequestsService;
/**
* Import map data.
*
* @param mapId the map id
* @param ruleDefId the rule def id
* @param masterChangeRequestId the master change request id
* @param taskId the task id
* @param session the session
* @return the string
*/
@RequestMapping(value = "/startImport/{mapId}", method = RequestMethod.GET)
@ResponseBody
public ImportExportResponseDTO startImport(@PathVariable Long mapId, @RequestParam("ruleDefId") Long ruleDefId,
@RequestParam("masterChangeRequestId") String masterChangeRequestId, @RequestParam("taskId") Long taskId, HttpSession session) {
ImportExportResponseDTO response = new ImportExportResponseDTO();
response.setMessage(ApplicationConstants.MSG_FILE_IMPORT_SUCCESSFUL);
response.setSuccess(true);
if (taskId == null || taskId.longValue() <= 0) {
response.setMessage(ApplicationConstants.MSG_NO_FILE_RECEIVED);
response.setSuccess(false);
return response;
}
MapDefDTO mapDefDTO = null;
Long masterId = CommonUtils.convertStringToLong(masterChangeRequestId);
try {
final UserDTO user = (UserDTO) session.getAttribute(ApplicationConstants.USERBEAN);
RequestAuthorityDTO authDetails = myRequestsService.authorizeRequest(masterId, user);
if (!authDetails.isError()) {
// Search Map based on MapId
mapDefDTO = mapDefService.findExistingOrNewlyCreatedMap(masterId, mapId);
if (mapDefDTO == null) {
response.setMessage(ApplicationConstants.MSG_IMPORT_FAILURE_INVALID_MAPID);
response.setSuccess(false);
return response;
} else {
ruleInstImportExportServiceImpl.importMapData(mapId, masterId, ruleDefId, user, authDetails, taskId);
}
response.setMessage(ApplicationConstants.MSG_FILE_IMPORT_SUCCESSFUL);
response.setSuccess(true);
} else {
response.setMessage(authDetails.getMessage());
response.setSuccess(false);
}
return response;
} catch (Exception e) {
LOGGER.error("RuleInstImportExportController::startImport - Exception ", e);
return response;
}
}
/**
* View task status.
*
* @param taskType the task type
* @param taskCategory the task category
* @param taskCategoryId the task category id
* @param pageSize the page size
* @param pageNo the page no
* @param session the session
* @return the response dto
*/
@RequestMapping(value = "/viewTaskStatus/{taskType}/{taskCategory}/{taskCategoryId}/{pageSize}/{pageNo}", method = RequestMethod.GET)
@ResponseBody
public ResponseDTO<TaskStatusDisplayDTO> viewTaskStatus(@PathVariable String taskType, @PathVariable String taskCategory,
@PathVariable Long taskCategoryId, @PathVariable("pageSize") String pageSize, @PathVariable("pageNo") String pageNo, HttpSession session) {
List<TaskStatusDisplayDTO> listOfTaskStatus = null;
ResponseDTO<TaskStatusDisplayDTO> response = new ResponseDTO<TaskStatusDisplayDTO>();
PageDTO page = new PageDTO();
final UserDTO user = (UserDTO) session.getAttribute(ApplicationConstants.USERBEAN);
if (!CommonUtils.isBlank(pageNo)) {
page.setNumber(Integer.parseInt(pageNo));
}
if (!CommonUtils.isBlank(pageSize)) {
page.setSize(Integer.parseInt(pageSize));
}
SearchDTO search = new SearchDTO();
try {
listOfTaskStatus = taskService.findAllTasks(taskType, taskCategory, taskCategoryId, page, user);
search.setPage(page);
response.setSearch(search);
response.setData(listOfTaskStatus);
} catch (Exception e) {
LOGGER.error("RuleInstImportExportController::viewTaskStatus - Error IOException ", e);
}
return response;
}
/**
* View failed imports.
*
* @param taskId
* the task id
* @param pageSize
* the page size
* @param pageNo
* the page no
* @return the response dto
*/
@RequestMapping(value = "/viewFailedImports/{taskId}/{pageSize}/{pageNo}", method = RequestMethod.GET)
@ResponseBody
public ResponseDTO<ValidationFailsDTO> viewFailedImports(@PathVariable("taskId") String taskId, @PathVariable("pageSize") String pageSize,
@PathVariable("pageNo") String pageNo) {
List<ValidationFailsDTO> validationFailsList = null;
ResponseDTO<ValidationFailsDTO> response = new ResponseDTO<ValidationFailsDTO>();
if (!CommonUtils.isBlank(taskId)) {
PageDTO pageDTO = new PageDTO();
if (!CommonUtils.isBlank(pageNo)) {
pageDTO.setNumber(Integer.valueOf(pageNo));
}
if (!CommonUtils.isBlank(pageSize)) {
pageDTO.setSize(Integer.valueOf(pageSize));
}
validationFailsList = validationFailsService.getValidationFails(Long.valueOf(taskId), pageDTO);
pageDTO.setTotalRecords(validationFailsService.getTotalValidationFails(Long.valueOf(taskId)));
response.setSearch(new SearchDTO());
response.getSearch().setPage(pageDTO);
response.setData(validationFailsList);
} else {
response.setMessages(Arrays.asList(ApplicationConstants.MSG_NO_TASK_ID));
}
return response;
}
/**
* Export rule inst data.
*
* @param request the request
* @param session the session
* @param mapDefId the map def id
* @param ruleDefId the rule def id
* @param newData the new data
* @return the import export response dto
*/
@RequestMapping(value = "/exportRuleInst/{mapDefId}/{ruleDefId}", method = RequestMethod.POST)
@ResponseBody
public ImportExportResponseDTO exportRuleInstData(@RequestBody RequestDTO<RuleDefDTO> request, HttpSession session,
@PathVariable String mapDefId, @PathVariable String ruleDefId, boolean newData) {
UserDTO user = (UserDTO) session.getAttribute(ApplicationConstants.USERBEAN);
ImportExportResponseDTO response = new ImportExportResponseDTO();
try {
RequestAuthorityDTO authDetails = myRequestsService.authorizeRequest(CommonUtils.convertStringToLong(request.getRequestId()), user);
if (!authDetails.isError()) {
Long mapId = CommonUtils.convertStringToLong(mapDefId);
Long ruleId = CommonUtils.convertStringToLong(ruleDefId);
MapDefDTO mapDefDTO = mapDefService.findOne(mapId, user);
if (mapDefDTO == null) {
response.setMessage(ApplicationConstants.MSG_EXPORT_FAILURE_INVALID_MAPID);
response.setSuccess(false);
} else {
response = ruleInstImportExportServiceImpl.exportRuleInstData(request, mapId, ruleId, newData, user, authDetails);
}
} else {
response.setSuccess(false);
response.setMessage(authDetails.getMessage());
}
} catch (Exception e) {
LOGGER.error("RuleInstImportExportController::exportRuleInstData - Exception ", e);
response.setMessage(ApplicationConstants.MSG_EXPORT_FAILURE);
response.setSuccess(false);
return response;
}
return response;
}
/**
* Export template.
*
* @param mapDefId the map def id
* @param ruleDefId the rule def id
* @param masterChangeRequestId the master change request id
* @param session the session
* @param request the request
* @param response the response
* @return the export response dto
*/
@RequestMapping(value = "/export/template/{mapDefId}/{ruleDefId}", method = RequestMethod.GET)
@ResponseBody
public ExportResponseDTO exportTemplate(@PathVariable Long mapDefId, @PathVariable Long ruleDefId,
@RequestParam(value = "masterChangeRequestId", defaultValue = "0") String masterChangeRequestId, HttpSession session,
HttpServletRequest request, HttpServletResponse response) {
UserDTO user = (UserDTO) session.getAttribute(ApplicationConstants.USERBEAN);
ExportResponseDTO result = new ExportResponseDTO();
OutputStream outStream = null;
FileInputStream inputStream = null;
try {
Long masterId = CommonUtils.convertStringToLong(masterChangeRequestId);
RequestAuthorityDTO authDetails = myRequestsService.authorizeRequest(masterId, user);
if (!authDetails.isError()) {
MapDefDTO mapDefDTO = mapDefService.findOne(mapDefId, user);
if (mapDefDTO == null) {
result.setMessage(ApplicationConstants.MSG_EXPORT_FAILURE_INVALID_MAPID);
result.setSuccess(false);
} else {
File templateFile = ruleInstImportExportServiceImpl.exportRuleInstTemplate(mapDefId, ruleDefId, masterId, user, authDetails);
inputStream = new FileInputStream(templateFile);
// get MIME type of the file
String mimeType = request.getSession().getServletContext().getMimeType(templateFile.getAbsolutePath());
if (mimeType == null) {
// set to binary type if MIME mapping not found
mimeType = ApplicationConstants.MIMETYPE;
}
// set content attributes for the response
response.setContentType(mimeType);
response.setContentLength((int) templateFile.length());
// set headers for the response
String headerKey = ApplicationConstants.HEADERKEY;
String headerValue = String.format(ApplicationConstants.HEADERVALUE, templateFile.getName());
response.setHeader(headerKey, headerValue);
// get output stream of the response
outStream = response.getOutputStream();
byte[] buffer = new byte[BUFFER_SIZE];
int bytesRead = -1;
// write bytes read from the input stream into the output
// stream
while ((bytesRead = inputStream.read(buffer)) != -1) {
outStream.write(buffer, 0, bytesRead);
}
}
} else {
result.setSuccess(false);
result.setMessage(authDetails.getMessage());
}
} catch (Exception e) {
LOGGER.error("RuleInstImportExportController::exportRuleInstData - Exception ", e);
result.setMessage(ApplicationConstants.MSG_EXPORT_FAILURE);
result.setSuccess(false);
return result;
} finally {
CommonUtils.closeResource(inputStream);
CommonUtils.closeResource(outStream);
}
return result;
}
/**
* Download file.
*
* @param request
* the request
* @param response
* the response
* @param taskId
* the task id
*/
@RequestMapping(value = "/downloadFile", method = RequestMethod.GET)
public void downloadFile(HttpServletRequest request, HttpServletResponse response, @RequestParam("taskId") Long taskId) {
TaskDTO taskDTO = taskService.findOne(taskId);
String filePath = taskDTO.getFilePath();
FileInputStream inputStream = null;
OutputStream outStream = null;
try {
// get absolute path of the application
// construct the complete absolute path of the file
// appPath + filePath
String fullPath = filePath;
File downloadFile = new File(fullPath);
inputStream = new FileInputStream(downloadFile);
// get MIME type of the file
String mimeType = request.getSession().getServletContext().getMimeType(fullPath);
if (mimeType == null) {
// set to binary type if MIME mapping not found
mimeType = "application/octet-stream";
}
// set content attributes for the response
response.setContentType(mimeType);
response.setContentLength((int) downloadFile.length());
// set headers for the response
String headerKey = "Content-Disposition";
String headerValue = String.format("attachment; filename=\"%s\"", downloadFile.getName());
response.setHeader(headerKey, headerValue);
// get output stream of the response
outStream = response.getOutputStream();
byte[] buffer = new byte[BUFFER_SIZE];
int bytesRead = -1;
// write bytes read from the input stream into the output stream
while ((bytesRead = inputStream.read(buffer)) != -1) {
outStream.write(buffer, 0, bytesRead);
}
} catch (FileNotFoundException e) {
LOGGER.error("RuleInstImportExportController::downloadFile - Error FileNotFoundException ", e);
} catch (IOException e) {
LOGGER.error("RuleInstImportExportController::downloadFile - Error IOException ", e);
} finally {
try {
if (null != inputStream) {
inputStream.close();
}
if (null != outStream) {
outStream.close();
}
} catch (IOException e) {
LOGGER.error("RuleInstImportExportController::downloadFile - Error IOException ", e);
}
}
}
/**
* Upload import file.
*
* @param mapId the map id
* @param ruleDefId the rule def id
* @param multiPartFile the multi part file
* @param masterChangeRequestId the master change request id
* @param session the session
* @param response the response
*/
@RequestMapping(value = "/uploadImportFile/{mapId}", method = RequestMethod.POST)
@ResponseBody
public void uploadImportFile(@PathVariable Long mapId, @RequestParam("ruleDefId") Long ruleDefId,
@RequestParam("file") MultipartFile multiPartFile, @RequestParam("masterChangeRequestId") String masterChangeRequestId,
HttpSession session, HttpServletResponse response) {
ObjectMapper mapper = new ObjectMapper();
ImportExportResponseDTO responseDTO = new ImportExportResponseDTO();
response.setContentType("text/html;charset=UTF-8");
String respJson = null;
responseDTO.setMessage(ApplicationConstants.MSG_FILE_UPLOAD_STARTED);
responseDTO.setSuccess(true);
final UserDTO user = (UserDTO) session.getAttribute(ApplicationConstants.USERBEAN);
MapDefDTO mapDefDTO = null;
Long masterId = CommonUtils.convertStringToLong(masterChangeRequestId);
try {
if (multiPartFile == null || multiPartFile.isEmpty()) {
responseDTO.setMessage(ApplicationConstants.MSG_NO_FILE_RECEIVED);
responseDTO.setSuccess(false);
respJson = mapper.writeValueAsString(responseDTO);
response.getWriter().write(respJson);
response.flushBuffer();
return;
}
RequestAuthorityDTO authDetails = myRequestsService.authorizeRequest(masterId, user);
if (!authDetails.isError()) {
// Search Map based on MapId
mapDefDTO = mapDefService.findExistingOrNewlyCreatedMap(masterId, mapId);
if (mapDefDTO == null) {
responseDTO.setMessage(ApplicationConstants.MSG_UPLOAD_FAILURE_INVALID_MAPID);
responseDTO.setSuccess(false);
} else {
ruleInstImportExportServiceImpl.uploadImportFile(multiPartFile, masterId, mapId, mapDefDTO.getName(), ruleDefId, user,
authDetails);
}
} else {
responseDTO.setMessage(authDetails.getMessage());
responseDTO.setSuccess(false);
}
respJson = mapper.writeValueAsString(responseDTO);
response.getWriter().write(respJson);
response.flushBuffer();
} catch (Exception e) {
LOGGER.error("RuleInstImportExportController::uploadImportFile - Error happend during file upload ", e);
responseDTO.setMessage(ApplicationConstants.MSG_NO_FILE_RECEIVED);
responseDTO.setSuccess(false);
try {
respJson = mapper.writeValueAsString(responseDTO);
response.getWriter().write(respJson);
response.flushBuffer();
} catch (Exception exc) {
LOGGER.error(exc.getMessage(), exc);
}
}
}
/**
* Cancel task.
*
* @param masterChangeRequestId the master change request id
* @param taskId the task id
* @param session the session
* @return the import export response dto
* @throws Exception the exception
*/
@RequestMapping(value = "/cancelTask/{taskId}", method = RequestMethod.DELETE)
@ResponseBody
public ImportExportResponseDTO cancelTask(@RequestParam final Long masterChangeRequestId, @PathVariable("taskId") Long taskId, HttpSession session)
throws Exception {
ImportExportResponseDTO response = new ImportExportResponseDTO();
if (taskId != null && taskId.longValue() > -1) {
final UserDTO user = (UserDTO) session.getAttribute(ApplicationConstants.USERBEAN);
RequestAuthorityDTO authDetails = myRequestsService.authorizeRequest(masterChangeRequestId, user);
if (!authDetails.isError()) {
boolean result = ruleInstImportExportServiceImpl.cancelTask(taskId);
if (result) {
response.setMessage(ApplicationConstants.CANCEL_SUCCESSFUL);
response.setSuccess(true);
} else {
response.setMessage(ApplicationConstants.CANCEL_FAILURE);
response.setSuccess(false);
}
} else {
response.setMessage(authDetails.getMessage());
response.setSuccess(false);
}
} else {
response.setMessage(ApplicationConstants.MSG_NO_TASK_ID);
response.setSuccess(false);
}
return response;
}
/**
* Export validation failure.
*
* @param id the id
* @param isTaskId the is task id
* @param session the session
* @param request the request
* @param response the response
* @return the export response dto
*/
@RequestMapping(value = "/exportValidationFailure/{id}", method = RequestMethod.GET)
@ResponseBody
public ExportResponseDTO exportValidationFailure(@PathVariable String id, @RequestParam Boolean isTaskId, HttpSession session,
HttpServletRequest request, HttpServletResponse response) {
ExportResponseDTO exportResponse = new ExportResponseDTO();
UserDTO user = (UserDTO) session.getAttribute(ApplicationConstants.USERBEAN);
exportResponse = validationFailsService.exportValidationFailures(CommonUtils.convertStringToLong(id), user, isTaskId);
CommonUtils.downloadExportFile(response, exportResponse, request);
return exportResponse;
}
/**
* Gets the import map data service impl.
*
* @return the import map data service impl
*/
public RuleInstImportExportService getImportMapDataServiceImpl() {
return ruleInstImportExportServiceImpl;
}
/**
* Sets the import map data service impl.
*
* @param importMapDataServiceImpl
* the new import map data service impl
*/
public void setImportMapDataServiceImpl(RuleInstImportExportService importMapDataServiceImpl) {
this.ruleInstImportExportServiceImpl = importMapDataServiceImpl;
}
/**
* Gets the map def service.
*
* @return the map def service
*/
public MapDefService getMapDefService() {
return mapDefService;
}
/**
* Sets the map def service.
*
* @param mapDefService
* the new map def service
*/
public void setMapDefService(MapDefService mapDefService) {
this.mapDefService = mapDefService;
}
/**
* Gets the task service.
*
* @return the task service
*/
public TaskService getTaskService() {
return taskService;
}
/**
* Sets the task service.
*
* @param taskService
* the new task service
*/
public void setTaskService(TaskService taskService) {
this.taskService = taskService;
}
/**
* Gets the validation fails service.
*
* @return the validation fails service
*/
public ValidationFailsService getValidationFailsService() {
return validationFailsService;
}
/**
* Sets the validation fails service.
*
* @param validationFailsService
* the new validation fails service
*/
public void setValidationFailsService(ValidationFailsService validationFailsService) {
this.validationFailsService = validationFailsService;
}
/**
* Gets the my requests service.
*
* @return the my requests service
*/
public MyRequestsService getMyRequestsService() {
return myRequestsService;
}
/**
* Sets the my requests service.
*
* @param myRequestsService the new my requests service
*/
public void setMyRequestsService(MyRequestsService myRequestsService) {
this.myRequestsService = myRequestsService;
}
}
| [
"anveesharma17@gmail.com"
] | anveesharma17@gmail.com |
12aa80e6a20b21d092c883e303b868d1471c1108 | 69a4f2d51ebeea36c4d8192e25cfb5f3f77bef5e | /methods/Method_17552.java | 6935f6c2a82211d5f9a2e4d7f12976b8cd069df5 | [] | no_license | P79N6A/icse_20_user_study | 5b9c42c6384502fdc9588430899f257761f1f506 | 8a3676bc96059ea2c4f6d209016f5088a5628f3c | refs/heads/master | 2020-06-24T08:25:22.606717 | 2019-07-25T15:31:16 | 2019-07-25T15:31:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 200 | java | /**
* Returns all variations of this policy based on the configuration parameters.
*/
public static Set<Policy> policies(Config config){
return ImmutableSet.of(new ExpiringMapPolicy(config));
}
| [
"sonnguyen@utdallas.edu"
] | sonnguyen@utdallas.edu |
27ebbd5602e18530abd4603d8ef5136c1ef396eb | 72a9288d84a47e0738d84b9108577df37688c0c1 | /POO_project/src/project/TAN/TAN.java | 6b3a32fbc4bca5fcaaf64e1ad8f8a0aee03079d4 | [] | no_license | jlmpt/POO_project | 329424df722bb76abcdf6f46d03d1719eaeb8c09 | 7e18d00dd5ebb273b1c52f39fd913d8f2a15db9e | refs/heads/master | 2020-08-07T06:04:55.383371 | 2014-05-21T08:18:45 | 2014-05-21T08:18:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 6,226 | java | package project.TAN;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Random;
import DataStructure.Count;
//import DataStructure.Graph;
import DataStructure.TrainDataSet;
import DataStructure.TreeNode;
import DataStructure.WeightedEdge;
import DataStructure.WeightedGraph;
public class TAN {
final double Nconst = 0.5;
TrainDataSet trainSet;
double[][] weights;
WeightedGraph graph;
public int RootIndex;
int[] ParentArray;
public int getParent(int idx) {
return ParentArray[idx];
}
public Map<Integer, HashSet<Integer>> ParentNodes = new HashMap<Integer, HashSet<Integer>>();
public Count[] counts;
public Count getCountForClassifier(int c) {
return counts[c];
}
public TAN(TrainDataSet trainSet, String score) {
this.trainSet = trainSet;
this.graph = new WeightedGraph();
// Random random= new Random();
int n = trainSet.getNbrOfVariables();
// RootIndex = random.nextInt(n);
for (int i = 0; i < n; i++) {
// if (i!=this.RootIndex) {
ParentNodes.put(i, new HashSet<Integer>());
for (int j = 0; j < n; j++) {
if (j!=i)
ParentNodes.get(i).add(j);
}
// }
}
/*
* Count the occurences of the possible values of variables
* matching with the specified classifier.
*/
counts = new Count[trainSet.getS()];
for (int c = 0; c < trainSet.getS(); c++) {
Count cnt = new Count(c, trainSet);
counts[c] = cnt;
}
weights = new double[n][n];
for (int i = 0; i < n-1; i++) {
for (int j = i+1; j < n; j++) {
weights[i][j] = calcWeightsLL(i, j);
WeightedEdge e=null;
if (score.equalsIgnoreCase("ll")) {
e = new WeightedEdge(i, j, calcWeightsLL(i, j));
} else
if (score.equalsIgnoreCase("mdl")) {
e = new WeightedEdge(i, j, calcWeightsMDL(i, j));
}
if (e==null) {
System.out.println("Please specify the score, it should be \"LL\" or \"MDL\".");
return;
}
//WeightedEdge e = new WeightedEdge(i, j, calcWeightsLL(i, j));
graph.addEdge(e);
//System.out.print(e.getWeight()+" ");
}
//System.out.println();
}
((WeightedGraph)graph).passWeightMatrix(weights);
//List<WeightedEdge> edges = graph.getSortedEdges();
//System.err.println("weights calculated");
List<WeightedEdge> spanningTree = graph.RunPrim();
// for (WeightedEdge edge:spanningTree) {
// System.err.println("("+ edge.getN1()+ ";" +edge.getN2()+"): "+ edge.getWeight());
//
//
// }
List<TreeNode> treeNodes = new ArrayList<TreeNode>();
for(int i = 0; i<trainSet.getNbrOfVariables(); i++) {
treeNodes.add(new TreeNode(i));
}
for(WeightedEdge e: spanningTree) {
int n1 = e.getN1();
int n2 = e.getN2();
for(TreeNode node: treeNodes) {
if (node.Id == n1) {
for(TreeNode node2: treeNodes) {
if (node2.Id==n2) {
node.AddNode(node2);
}
}
} else
if (node.Id == n2) {
for(TreeNode node2: treeNodes) {
if (node2.Id==n1) {
node.AddNode(node2);
}
}
}
}
}
Random rnd = new Random();
RootIndex = rnd.nextInt(trainSet.getNbrOfVariables());
//RootIndex = 6;
ParentArray = new int[trainSet.getNbrOfVariables()];
TreeNode treeNode = treeNodes.get(RootIndex);
treeNode.VisitNodes();
// direct graph
for(TreeNode node : treeNodes) {
ParentArray[node.Id]=node.getParent();
//System.err.print(node.getParent());
}
}
private double calcWeightsMDL(int a, int b) {
double LLScore = calcWeightsLL(a, b);
double numerador = trainSet.getS() * ((trainSet.getRi(a)-1)*(trainSet.getRi(b)-1));
double MDLScore = LLScore - ((double)numerador / 2) * Math.log(trainSet.getN());
return MDLScore;
}
/*
* Calculate the weight of the edge between node a and b
*/
private double calcWeightsLL(int a, int b) {
double sum=0;
int ri=trainSet.getRi(a);
int rii=trainSet.getRi(b);
for (int j = 0; j < trainSet.getRi(b); j++) {
for (int k = 0; k < trainSet.getRi(a); k++) {
for (int c = 0; c < trainSet.getS(); c++) {
int Nijkc = 0;
int NJikc = 0;
int NKijc = 0;
Count countForC = getCountForClassifier(c);
Nijkc = countForC.getNijkc(a, b, j, k);
int[] classifiers = trainSet.getClassifiers();
int Nc = getNc(c);
int[] XI = trainSet.getXi(a);
for (int i = 0; i < XI.length; i++) {
if (XI[i]==k && classifiers[i]==c)
NJikc++;
}
// for (int i = 0; i < rii; i++) {
// NJikc+=countForC.getNijkc(a, b, i, k);
// }
// for (int i = 0; i < ri; i++) {
// NKijc+=countForC.getNijkc(a, b, j, i);
// }
NKijc = countForC.getNKijc(a, b, j);
double multiplier = (double)Nijkc / trainSet.getN();
double numerador=Nijkc*Nc;
double denominator = NJikc*NKijc;
double multiplied = (double)(numerador)/(denominator);
double logarithm = Math.log(multiplied)/Math.log(2);
if (!(multiplier==0 || numerador==0 || denominator==0))
sum+=multiplier*logarithm;
}
}
}
return sum;
}
private int getNc(int c) {
int Nc=0;
int[] classifiers = trainSet.getClassifiers();
for (int i = 0; i < classifiers.length; i++) {
if (classifiers[i]==c) {
Nc++;
}
}
return Nc;
}
public double getThetaIJKC(int i, int parentId, int j, int k, int c) {
Count countForC = getCountForClassifier(c);
double nijkc;
double nKijc;
if (parentId==-1) {
nijkc = countForC.getNijkcForRoot(i, k);
nKijc = countForC.getNKijcForParent(i);
}
else {
//System.out.println(i+ " " + parentId + " "+ j+ " "+ k );
nijkc = countForC.getNijkc(i, parentId, j, k);
nKijc = countForC.getNKijc(i, parentId, j);
}
int ri = trainSet.getRi(i);
double numerador = nijkc + Nconst;
double denominador = nKijc + ri*Nconst;
return numerador/denominador;
}
public double getThetaC(int c) {
double numerador = getNc(c) + Nconst;
double denominador = trainSet.getN() + trainSet.getS()* Nconst;
return numerador/denominador;
}
}
| [
"szaboandras.x@gmail.com"
] | szaboandras.x@gmail.com |
69e37caf5bb6a22394ce836769dcc4f194e883a7 | 5f10a3733f1f3d79910dc6ff1db2f57ae46edcbb | /src/main/java/server/db/EncryptedDataSrc.java | 5c7f2ae9116087d8d2a5175ad50335e5e0ae72f2 | [
"MIT"
] | permissive | avilde/av-team-monitor | b5d05dc02b9002511531a814c195a85a432b96c6 | d9ed7f76f4c162fc59b15563b3c72d981abc0247 | refs/heads/master | 2022-03-09T12:36:45.852007 | 2020-07-05T16:06:55 | 2020-07-05T16:06:55 | 249,637,083 | 1 | 0 | MIT | 2022-03-02T07:53:04 | 2020-03-24T07:08:08 | TSQL | UTF-8 | Java | false | false | 2,272 | java | package server.db;
import org.apache.tomcat.dbcp.dbcp.BasicDataSource;
import server.sec.SecurityUtils;
import javax.crypto.BadPaddingException;
import javax.crypto.IllegalBlockSizeException;
import javax.crypto.NoSuchPaddingException;
import java.io.IOException;
import java.security.InvalidAlgorithmParameterException;
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;
import java.security.spec.InvalidKeySpecException;
@SuppressWarnings("ALL")
public class EncryptedDataSrc extends BasicDataSource {
@Override
public synchronized void setUsername(String encodedUser) {
SecurityUtils securityUtils = new SecurityUtils();
try {
super.setUsername(securityUtils.decrypt(encodedUser));
} catch (NoSuchAlgorithmException e) {
e.printStackTrace();
} catch (InvalidKeySpecException e) {
e.printStackTrace();
} catch (NoSuchPaddingException e) {
e.printStackTrace();
} catch (InvalidKeyException e) {
e.printStackTrace();
} catch (InvalidAlgorithmParameterException e) {
e.printStackTrace();
} catch (IllegalBlockSizeException e) {
e.printStackTrace();
} catch (BadPaddingException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
}
@Override
public synchronized void setPassword(String encodedPassword) {
SecurityUtils securityUtils = new SecurityUtils();
try {
super.setPassword(securityUtils.decrypt(encodedPassword));
} catch (NoSuchAlgorithmException e) {
e.printStackTrace();
} catch (InvalidKeySpecException e) {
e.printStackTrace();
} catch (NoSuchPaddingException e) {
e.printStackTrace();
} catch (InvalidKeyException e) {
e.printStackTrace();
} catch (InvalidAlgorithmParameterException e) {
e.printStackTrace();
} catch (IllegalBlockSizeException e) {
e.printStackTrace();
} catch (BadPaddingException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
}
}
| [
"vilde.andris@gmail.com"
] | vilde.andris@gmail.com |
ede53312cb938b51daca0d7b068e5d04dfb6e2ee | 59ff0d23ab35422e595162514f084c9fb0e8a345 | /app/src/main/java/com/appointmentcalendar/EventEditFragment.java | 3443869f6da172de0b64cb33b5e144014d2736cf | [] | no_license | Blacklotis/AppointmentCalendar | ccf90217def4086380f00eccc0ebc0f8a79feb32 | e53352fe11b3969b37ad4cbd9ba997392679e476 | refs/heads/master | 2021-01-21T21:39:23.876037 | 2015-12-14T03:33:47 | 2015-12-14T03:33:47 | 47,096,751 | 0 | 2 | null | null | null | null | UTF-8 | Java | false | false | 4,998 | java | package com.appointmentcalendar;
import android.app.Activity;
import android.content.Context;
import android.support.v4.app.Fragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.inputmethod.InputMethodManager;
import android.widget.Button;
import android.widget.EditText;
import com.calendar.Event;
import java.util.ArrayList;
import static android.widget.Toast.*;
public class EventEditFragment extends Fragment implements View.OnClickListener {
private EventEditFragmentListener activityCallback;
private ArrayList<Event> adapter;
private Event event;
private static final String TAG = "EVENT_EDIT_FRAG_TAG";
EditText eventTitle;
EditText eventOwner;
EditText eventLocation;
EditText eventStartTime;
EditText eventEndTime;
EditText eventDuration;
public interface EventEditFragmentListener {
void eventEdit_addEvent(Event event);
void eventEdit_editEvent(ArrayList<Event> event);
}
public void eventEdit_addEvent(Event event)
{
activityCallback.eventEdit_addEvent(event);
}
public void eventEdit_editEvent(ArrayList<Event> event)
{
activityCallback.eventEdit_editEvent(event);
}
public static EventEditFragment newInstance (ArrayList<Event> eventList){
EventEditFragment mf = new EventEditFragment();
Bundle bundle = new Bundle();
bundle.putParcelableArrayList(TAG, eventList);
mf.setArguments(bundle);
return mf;
}
public static void hideKeyboard(Context ctx) {
InputMethodManager inputManager = (InputMethodManager) ctx
.getSystemService(Context.INPUT_METHOD_SERVICE);
// check if no view has focus:
View v = ((Activity) ctx).getCurrentFocus();
if (v == null)
return;
inputManager.hideSoftInputFromWindow(v.getWindowToken(), 0);
}
@Override
public void onClick(View v) {
boolean correct = true;
if(eventTitle.getText().length() == 0)
{
eventTitle.setBackgroundColor(android.graphics.Color.RED);
correct = false;
}
if (eventOwner.getText().length() == 0) {
eventOwner.setBackgroundColor(android.graphics.Color.RED);
correct = false;
}
if(correct)
{
event.setTitle(eventTitle.getText().toString());
event.setOwner(eventOwner.getText().toString());
event.setLocation(eventLocation.getText().toString());
event.setStartTime(eventStartTime.getText().toString());
event.setEndTime(eventEndTime.getText().toString());
event.setDuration(eventDuration.getText().toString());
ArrayList<Event> stuff = new ArrayList<>();
stuff.add(event);
hideKeyboard(getActivity());
eventEdit_editEvent(stuff);
}
else
{
makeText(getActivity(), "FIX INVALID ENTRIES", LENGTH_SHORT).show();
}
}
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,Bundle savedInstanceState)
{
super.onCreateView(inflater, container, savedInstanceState);
View view = inflater.inflate(R.layout.event_edit_fragment,container, false);
eventTitle = (EditText)view.findViewById(R.id.event_title);
eventOwner = (EditText)view.findViewById(R.id.event_owner);
eventLocation = (EditText)view.findViewById(R.id.event_location);
eventStartTime = (EditText)view.findViewById(R.id.event_start_time);
eventEndTime = (EditText)view.findViewById(R.id.event_end_time);
eventDuration = (EditText)view.findViewById(R.id.event_duration);
eventTitle.setText(event.getTitle());
eventOwner.setText(event.getOwner());
eventLocation.setText(event.getLocation());
eventStartTime.setText(event.getStartTime());
eventEndTime.setText(event.getEndTime());
eventDuration.setText(event.getDuration());
Button submitButton = (Button)view.findViewById(R.id.event_button);
submitButton.setOnClickListener(this);
return view;
}
@Override
public void onAttach(Activity activity)
{
super.onAttach(activity);
Bundle b = this.getArguments();
if(b != null)
{
ArrayList<String> temp = new ArrayList<>();
adapter = b.getParcelableArrayList(TAG);
event = adapter.get(0);
}
else
{
event = new Event();
makeText(getActivity(), "FAILED TO ATTACH FRAGMENT", LENGTH_SHORT).show();
}
try
{
activityCallback = (EventEditFragmentListener) activity;
}
catch (ClassCastException e)
{
throw new ClassCastException(activity.toString() + " must implement ToolbarListener");
}
}
} | [
"mballin@csu.fullerton.edu"
] | mballin@csu.fullerton.edu |
3b18e467a3d60fded3cd4757c3277d5efa598c95 | d3d38b4d9fb71905f5f52ee89ae6f5b1c187f816 | /src/controleCaixa/PagarPromissoria.java | b79ce6ded8f261d4bbcde91b72a18595e1bb5e66 | [] | no_license | DOUGLASINFO07/SisConLojaI | da965af75d10328f361b5a5eb696a7e033f99a1e | 76c49f55a41cdbb1bee6c6afe0a1580d61185107 | refs/heads/master | 2020-07-07T05:38:51.166989 | 2019-08-20T00:17:25 | 2019-08-20T00:17:25 | 202,897,787 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 228,611 | java | package controleCaixa;
import sisconlojai.Caixa;
import java.awt.Image;
import java.awt.Toolkit;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.net.URL;
import java.text.DateFormat;
import java.util.Date;
import java.util.GregorianCalendar;
/**
*
* @author DouglasInfo07
*/
public class PagarPromissoria extends javax.swing.JFrame implements ActionListener {
private static final long serialVersionUID = 1L;
private javax.swing.Timer timer;
//Método para mostrar icone da pagina.
public void IconePagina() {
URL url = this.getClass().getResource("/imagens/logoDIMTech.png");
Image iconeTitulo = Toolkit.getDefaultToolkit().getImage(url);
this.setIconImage(iconeTitulo);
}
public PagarPromissoria() {
initComponents();
//Método para inicializar o relogio.
disparaRelogio();
//Método para inicializar a Data.
jLabelData.setText(DateFormat.getDateInstance(DateFormat.FULL).format(new Date()));
}
/**
* 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() {
jPanel1 = new javax.swing.JPanel();
jLabel2 = new javax.swing.JLabel();
jLabel32 = new javax.swing.JLabel();
jLabelData = new javax.swing.JLabel();
jLabelRelogio = new javax.swing.JLabel();
jPanel2 = new javax.swing.JPanel();
jLabel7 = new javax.swing.JLabel();
jTextField1 = new javax.swing.JTextField();
jLabel3 = new javax.swing.JLabel();
jButton1 = new javax.swing.JButton();
jLabel17 = new javax.swing.JLabel();
jLabel19 = new javax.swing.JLabel();
jLabel20 = new javax.swing.JLabel();
jComboBox5 = new javax.swing.JComboBox<>();
jLabel25 = new javax.swing.JLabel();
jTextField2 = new javax.swing.JTextField();
jButton2 = new javax.swing.JButton();
jTextField3 = new javax.swing.JTextField();
jLabel18 = new javax.swing.JLabel();
jTextField4 = new javax.swing.JTextField();
jLabel21 = new javax.swing.JLabel();
jTextField5 = new javax.swing.JTextField();
jPanel3 = new javax.swing.JPanel();
jLabel1 = new javax.swing.JLabel();
jLabel31 = new javax.swing.JLabel();
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
setBackground(new java.awt.Color(255, 255, 255));
jPanel1.setBackground(new java.awt.Color(0, 51, 102));
jLabel2.setFont(new java.awt.Font("Myanmar Text", 3, 48)); // NOI18N
jLabel2.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/logoExemplo.png"))); // NOI18N
jLabel2.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
jLabel32.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/logoTipoEmpresa.png"))); // NOI18N
javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
jPanel1.setLayout(jPanel1Layout);
jPanel1Layout.setHorizontalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jLabel2)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jLabel32)
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);
jPanel1Layout.setVerticalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addComponent(jLabel2)
.addGap(0, 0, Short.MAX_VALUE))
.addComponent(jLabel32, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
);
jLabelData.setBackground(new java.awt.Color(0, 51, 102));
jLabelData.setFont(new java.awt.Font("Tahoma", 3, 18)); // NOI18N
jLabelData.setForeground(new java.awt.Color(0, 51, 102));
jLabelData.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
jLabelData.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
jLabelRelogio.setBackground(new java.awt.Color(0, 51, 102));
jLabelRelogio.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N
jLabelRelogio.setForeground(new java.awt.Color(0, 51, 102));
jLabelRelogio.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
jLabelRelogio.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
jPanel2.setBackground(new java.awt.Color(0, 51, 102));
jPanel2.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
jLabel7.setFont(new java.awt.Font("Tahoma", 3, 36)); // NOI18N
jLabel7.setForeground(new java.awt.Color(255, 255, 255));
jLabel7.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
jLabel7.setText("Valor da venda");
jTextField1.setFont(new java.awt.Font("Tahoma", 1, 36)); // NOI18N
jTextField1.setForeground(new java.awt.Color(0, 51, 102));
jTextField1.setHorizontalAlignment(javax.swing.JTextField.CENTER);
jLabel3.setFont(new java.awt.Font("Tahoma", 3, 36)); // NOI18N
jLabel3.setForeground(new java.awt.Color(255, 255, 255));
jLabel3.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
jLabel3.setText("PAGAMENTO EM PROMISSÓRIA");
jButton1.setText("Imprimir Cupom");
jButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton1ActionPerformed(evt);
}
});
jLabel17.setFont(new java.awt.Font("Tahoma", 3, 24)); // NOI18N
jLabel17.setForeground(new java.awt.Color(255, 255, 255));
jLabel17.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
jLabel17.setText("Cliente");
jLabel19.setFont(new java.awt.Font("Tahoma", 3, 24)); // NOI18N
jLabel19.setForeground(new java.awt.Color(255, 255, 255));
jLabel19.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
jLabel19.setText("CPF");
jLabel20.setFont(new java.awt.Font("Tahoma", 3, 18)); // NOI18N
jLabel20.setForeground(new java.awt.Color(255, 255, 255));
jLabel20.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
jLabel20.setText("Dividir");
jComboBox5.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N
jComboBox5.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "Parcelas", "1 x", "2 X", "3 X", "4 X", "5 X", "6 X", "7 X", "8 X", "9 X", "10 X" }));
jLabel25.setBackground(new java.awt.Color(0, 51, 102));
jLabel25.setFont(new java.awt.Font("Tahoma", 3, 14)); // NOI18N
jLabel25.setForeground(new java.awt.Color(255, 255, 255));
jLabel25.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/voltar.png"))); // NOI18N
jLabel25.setText("Voltar ");
jLabel25.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
jLabel25.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
jLabel25MouseClicked(evt);
}
});
jTextField2.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N
jTextField2.setForeground(new java.awt.Color(0, 51, 102));
jTextField2.setHorizontalAlignment(javax.swing.JTextField.CENTER);
jButton2.setText("Buscar");
jTextField3.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N
jTextField3.setForeground(new java.awt.Color(0, 51, 102));
jTextField3.setHorizontalAlignment(javax.swing.JTextField.CENTER);
jLabel18.setFont(new java.awt.Font("Tahoma", 3, 18)); // NOI18N
jLabel18.setForeground(new java.awt.Color(255, 255, 255));
jLabel18.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
jLabel18.setText("Entrada");
jTextField4.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N
jTextField4.setForeground(new java.awt.Color(0, 51, 102));
jTextField4.setHorizontalAlignment(javax.swing.JTextField.CENTER);
jLabel21.setFont(new java.awt.Font("Tahoma", 3, 18)); // NOI18N
jLabel21.setForeground(new java.awt.Color(255, 255, 255));
jLabel21.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
jLabel21.setText("Vencimento");
jTextField5.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N
jTextField5.setForeground(new java.awt.Color(0, 51, 102));
jTextField5.setHorizontalAlignment(javax.swing.JTextField.CENTER);
javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
jPanel2.setLayout(jPanel2Layout);
jPanel2Layout.setHorizontalGroup(
jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel2Layout.createSequentialGroup()
.addContainerGap()
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel3, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 711, Short.MAX_VALUE)
.addComponent(jLabel7, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jTextField1)
.addGroup(jPanel2Layout.createSequentialGroup()
.addComponent(jLabel25, javax.swing.GroupLayout.PREFERRED_SIZE, 118, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 146, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(jPanel2Layout.createSequentialGroup()
.addComponent(jLabel19, javax.swing.GroupLayout.PREFERRED_SIZE, 71, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, 196, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jButton2)
.addGap(7, 7, 7)
.addComponent(jLabel17, javax.swing.GroupLayout.PREFERRED_SIZE, 107, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jTextField3))
.addGroup(jPanel2Layout.createSequentialGroup()
.addComponent(jLabel18, javax.swing.GroupLayout.PREFERRED_SIZE, 79, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jTextField4, javax.swing.GroupLayout.PREFERRED_SIZE, 128, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(18, 18, 18)
.addComponent(jLabel20, javax.swing.GroupLayout.PREFERRED_SIZE, 79, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jComboBox5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(jLabel21, javax.swing.GroupLayout.PREFERRED_SIZE, 122, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jTextField5)))
.addContainerGap())
);
jPanel2Layout.setVerticalGroup(
jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel2Layout.createSequentialGroup()
.addGap(10, 10, 10)
.addComponent(jLabel3)
.addGap(27, 27, 27)
.addComponent(jLabel7)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(18, 18, 18)
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel17, javax.swing.GroupLayout.DEFAULT_SIZE, 32, Short.MAX_VALUE)
.addComponent(jButton2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGroup(jPanel2Layout.createSequentialGroup()
.addComponent(jLabel19)
.addGap(0, 0, Short.MAX_VALUE))
.addComponent(jTextField3)
.addComponent(jTextField2, javax.swing.GroupLayout.Alignment.TRAILING))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel20, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jTextField4, javax.swing.GroupLayout.DEFAULT_SIZE, 31, Short.MAX_VALUE)
.addComponent(jLabel18, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jLabel21, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jComboBox5)
.addComponent(jTextField5))
.addGap(18, 18, 18)
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jButton1, javax.swing.GroupLayout.DEFAULT_SIZE, 54, Short.MAX_VALUE)
.addComponent(jLabel25))
.addContainerGap())
);
jPanel3.setBackground(new java.awt.Color(0, 51, 102));
jLabel1.setBackground(new java.awt.Color(0, 51, 102));
jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/logo.png"))); // NOI18N
jLabel31.setBackground(new java.awt.Color(0, 51, 102));
jLabel31.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/sisconbannerOficial.png"))); // NOI18N
jLabel31.setVerticalAlignment(javax.swing.SwingConstants.BOTTOM);
javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
jPanel3.setLayout(jPanel3Layout);
jPanel3Layout.setHorizontalGroup(
jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel3Layout.createSequentialGroup()
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jLabel1)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jLabel31)
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);
jPanel3Layout.setVerticalGroup(
jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel3Layout.createSequentialGroup()
.addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel31, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel1))
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jPanel1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGroup(layout.createSequentialGroup()
.addContainerGap(146, Short.MAX_VALUE)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
.addGroup(layout.createSequentialGroup()
.addComponent(jLabelData, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGap(18, 18, 18)
.addComponent(jLabelRelogio, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE))
.addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addContainerGap(372, Short.MAX_VALUE))
.addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 91, Short.MAX_VALUE)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(jLabelData, javax.swing.GroupLayout.DEFAULT_SIZE, 19, Short.MAX_VALUE)
.addComponent(jLabelRelogio, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 244, Short.MAX_VALUE)
.addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE))
);
pack();
}// </editor-fold>//GEN-END:initComponents
// INICIO DO RELOGIO
//Método que inicializa o relogio.
private void disparaRelogio() {
if (timer == null) {
timer = new javax.swing.Timer(1000, this);
timer.setInitialDelay(0);
timer.start();
} else if (!timer.isRunning()) {
timer.restart();
}
}
//Metodo para criar relogio
@Override
public void actionPerformed(ActionEvent ae) {
GregorianCalendar calendario = new GregorianCalendar();
int h = calendario.get(GregorianCalendar.HOUR_OF_DAY);
int m = calendario.get(GregorianCalendar.MINUTE);
int s = calendario.get(GregorianCalendar.SECOND);
String hora
= ((h < 10) ? "0" : "")
+ h
+ ":"
+ ((m < 10) ? "0" : "")
+ m
+ ":"
+ ((s < 10) ? "0" : "")
+ s;
//Local onde será exibido a Hora.
jLabelRelogio.setText(hora);
}
// TÉRMINO DO RELOGIO.
private void jLabel25MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel25MouseClicked
Caixa caixa = new Caixa();
caixa.ModoPagamento.setSelectedIndex(0);
this.dispose();
}//GEN-LAST:event_jLabel25MouseClicked
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
this.dispose();
}//GEN-LAST:event_jButton1ActionPerformed
/**
* @param args the command line arguments
*/
public static void main(String args[]) {
/* Set the Nimbus look and feel */
//<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
/* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
* For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
*/
try {
for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
if ("Nimbus".equals(info.getName())) {
javax.swing.UIManager.setLookAndFeel(info.getClassName());
break;
}
}
} catch (ClassNotFoundException | InstantiationException | IllegalAccessException | javax.swing.UnsupportedLookAndFeelException ex) {
java.util.logging.Logger.getLogger(PagarPromissoria.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
}
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
/* Create and display the form */
java.awt.EventQueue.invokeLater(() -> {
new PagarPromissoria().setVisible(true);
});
}
// Variables declaration - do not modify//GEN-BEGIN:variables
private javax.swing.JButton jButton1;
private javax.swing.JButton jButton2;
private javax.swing.JComboBox<String> jComboBox5;
private javax.swing.JLabel jLabel1;
private javax.swing.JLabel jLabel17;
private javax.swing.JLabel jLabel18;
private javax.swing.JLabel jLabel19;
private javax.swing.JLabel jLabel2;
private javax.swing.JLabel jLabel20;
private javax.swing.JLabel jLabel21;
private javax.swing.JLabel jLabel25;
private javax.swing.JLabel jLabel3;
private javax.swing.JLabel jLabel31;
private javax.swing.JLabel jLabel32;
private javax.swing.JLabel jLabel7;
private javax.swing.JLabel jLabelData;
private javax.swing.JLabel jLabelRelogio;
private javax.swing.JPanel jPanel1;
private javax.swing.JPanel jPanel2;
private javax.swing.JPanel jPanel3;
private javax.swing.JTextField jTextField1;
private javax.swing.JTextField jTextField2;
private javax.swing.JTextField jTextField3;
private javax.swing.JTextField jTextField4;
private javax.swing.JTextField jTextField5;
// End of variables declaration//GEN-END:variables
}
| [
"douglas.egidio@gmail.com"
] | douglas.egidio@gmail.com |
c771feb75727c28d486ab5d2842aadb5d013457a | e9ce7f937722aeb0c9b5fdd98ba4fc746e3a5ddb | /src/main/java/com/davidm/mykindlenews/generated/jooq/information_schema/tables/GlobalVariables.java | 3d39825d8cd364558b89046adcb748d782c2debd | [] | no_license | davidmotson/kindlenews | 5e3aa9079e7c301eee848505e356319672655761 | 9820473cb6de295f0420dc88b58d6c727acd8dcf | refs/heads/master | 2016-09-10T23:20:16.362015 | 2015-08-15T17:41:56 | 2015-08-15T17:41:56 | 40,692,575 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,421 | java | /**
* This class is generated by jOOQ
*/
package com.davidm.mykindlenews.generated.jooq.information_schema.tables;
/**
* This class is generated by jOOQ.
*/
@javax.annotation.Generated(
value = {
"http://www.jooq.org",
"jOOQ version:3.5.4"
},
comments = "This class is generated by jOOQ"
)
@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class GlobalVariables extends org.jooq.impl.TableImpl<com.davidm.mykindlenews.generated.jooq.information_schema.tables.records.GlobalVariablesRecord> {
private static final long serialVersionUID = 1834973586;
/**
* The reference instance of <code>information_schema.GLOBAL_VARIABLES</code>
*/
public static final com.davidm.mykindlenews.generated.jooq.information_schema.tables.GlobalVariables GLOBAL_VARIABLES = new com.davidm.mykindlenews.generated.jooq.information_schema.tables.GlobalVariables();
/**
* The class holding records for this type
*/
@Override
public java.lang.Class<com.davidm.mykindlenews.generated.jooq.information_schema.tables.records.GlobalVariablesRecord> getRecordType() {
return com.davidm.mykindlenews.generated.jooq.information_schema.tables.records.GlobalVariablesRecord.class;
}
/**
* The column <code>information_schema.GLOBAL_VARIABLES.VARIABLE_NAME</code>.
*/
public final org.jooq.TableField<com.davidm.mykindlenews.generated.jooq.information_schema.tables.records.GlobalVariablesRecord, java.lang.String> VARIABLE_NAME = createField("VARIABLE_NAME", org.jooq.impl.SQLDataType.VARCHAR.length(64).nullable(false).defaulted(true), this, "");
/**
* The column <code>information_schema.GLOBAL_VARIABLES.VARIABLE_VALUE</code>.
*/
public final org.jooq.TableField<com.davidm.mykindlenews.generated.jooq.information_schema.tables.records.GlobalVariablesRecord, java.lang.String> VARIABLE_VALUE = createField("VARIABLE_VALUE", org.jooq.impl.SQLDataType.VARCHAR.length(1024), this, "");
/**
* Create a <code>information_schema.GLOBAL_VARIABLES</code> table reference
*/
public GlobalVariables() {
this("GLOBAL_VARIABLES", null);
}
/**
* Create an aliased <code>information_schema.GLOBAL_VARIABLES</code> table reference
*/
public GlobalVariables(java.lang.String alias) {
this(alias, com.davidm.mykindlenews.generated.jooq.information_schema.tables.GlobalVariables.GLOBAL_VARIABLES);
}
private GlobalVariables(java.lang.String alias, org.jooq.Table<com.davidm.mykindlenews.generated.jooq.information_schema.tables.records.GlobalVariablesRecord> aliased) {
this(alias, aliased, null);
}
private GlobalVariables(java.lang.String alias, org.jooq.Table<com.davidm.mykindlenews.generated.jooq.information_schema.tables.records.GlobalVariablesRecord> aliased, org.jooq.Field<?>[] parameters) {
super(alias, com.davidm.mykindlenews.generated.jooq.information_schema.InformationSchema.INFORMATION_SCHEMA, aliased, parameters, "");
}
/**
* {@inheritDoc}
*/
@Override
public com.davidm.mykindlenews.generated.jooq.information_schema.tables.GlobalVariables as(java.lang.String alias) {
return new com.davidm.mykindlenews.generated.jooq.information_schema.tables.GlobalVariables(alias, this);
}
/**
* Rename this table
*/
public com.davidm.mykindlenews.generated.jooq.information_schema.tables.GlobalVariables rename(java.lang.String name) {
return new com.davidm.mykindlenews.generated.jooq.information_schema.tables.GlobalVariables(name, null);
}
}
| [
"davidmotson@gmail.com"
] | davidmotson@gmail.com |
2ec70f3a3ffa945c74ab43debf75082b56e19dc6 | 8fd837e2d6e4a0cdc6489966db9b079324b95f4d | /DLVideo/src/com/darly/dlvideo/widget/bubble/BubbleLinearLayout.java | fd58e0808bc2a6e891e522b8a3ce8c56e438d7a8 | [
"Apache-2.0"
] | permissive | darlyhellen/oto | 13a600de64c87610bc22e6f4c989d6cd6ff796a4 | 946be2da39ba591d29e2be8ef666b298b5c60b55 | refs/heads/master | 2020-12-29T00:30:07.755354 | 2016-09-22T03:38:30 | 2016-09-22T03:38:30 | 49,046,113 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,629 | java | package com.darly.dlvideo.widget.bubble;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.RectF;
import android.util.AttributeSet;
import android.widget.LinearLayout;
import com.darly.dlvideo.R;
/**
* @author zhangyh2 BubbleLinearLayout 下午3:20:33 TODO 带箭头的框架布局
*/
public class BubbleLinearLayout extends LinearLayout {
private BubbleDrawable bubbleDrawable;
private float mArrowWidth;
private float mAngle;
private float mArrowHeight;
private float mArrowPosition;
private BubbleDrawable.ArrowLocation mArrowLocation;
private int bubbleColor;
public BubbleLinearLayout(Context context) {
super(context);
initView(null);
}
public BubbleLinearLayout(Context context, AttributeSet attrs) {
super(context, attrs);
initView(attrs);
}
private void initView(AttributeSet attrs) {
if (attrs != null) {
TypedArray array = getContext().obtainStyledAttributes(attrs,
R.styleable.BubbleView);
mArrowWidth = array.getDimension(R.styleable.BubbleView_arrowWidth,
BubbleDrawable.Builder.DEFAULT_ARROW_WITH);
mArrowHeight = array.getDimension(
R.styleable.BubbleView_arrowHeight,
BubbleDrawable.Builder.DEFAULT_ARROW_HEIGHT);
mAngle = array.getDimension(R.styleable.BubbleView_angle,
BubbleDrawable.Builder.DEFAULT_ANGLE);
mArrowPosition = array.getDimension(
R.styleable.BubbleView_arrowPosition,
BubbleDrawable.Builder.DEFAULT_ARROW_POSITION);
bubbleColor = array.getColor(R.styleable.BubbleView_bubbleColor,
BubbleDrawable.Builder.DEFAULT_BUBBLE_COLOR);
int location = array
.getInt(R.styleable.BubbleView_arrowLocation, 0);
mArrowLocation = BubbleDrawable.ArrowLocation
.mapIntToValue(location);
array.recycle();
}
}
@Override
protected void onSizeChanged(int w, int h, int oldw, int oldh) {
super.onSizeChanged(w, h, oldw, oldh);
if (w > 0 && h > 0) {
setUp(w, h);
}
}
private void setUp(int left, int right, int top, int bottom) {
if (right < left || bottom < top)
return;
RectF rectF = new RectF(left, top, right, bottom);
bubbleDrawable = new BubbleDrawable.Builder().rect(rectF)
.arrowLocation(mArrowLocation)
.bubbleType(BubbleDrawable.BubbleType.COLOR).angle(mAngle)
.arrowHeight(mArrowHeight).arrowWidth(mArrowWidth)
.arrowPosition(mArrowPosition).bubbleColor(bubbleColor).build();
}
@SuppressWarnings("deprecation")
private void setUp(int width, int height) {
setUp(getPaddingLeft(), +width - getPaddingRight(), getPaddingTop(),
height - getPaddingBottom());
setBackgroundDrawable(bubbleDrawable);
}
}
| [
"darlyyuhui@hotmail.com"
] | darlyyuhui@hotmail.com |
d7a524a96dadcac95a963dfd62ac95ee3dae3ef0 | 516fb367430d4c1393f4cd726242618eca862bda | /sources/com/login/nativesso/a/u.java | aa22e1f1f9085a958c1624291cf60108aa7ea233 | [] | no_license | cmFodWx5YWRhdjEyMTA5/Gaana2 | 75d6d6788e2dac9302cff206a093870e1602921d | 8531673a5615bd9183c9a0466325d0270b8a8895 | refs/heads/master | 2020-07-22T15:46:54.149313 | 2019-06-19T16:11:11 | 2019-06-19T16:11:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 174 | java | package com.login.nativesso.a;
import in.til.core.integrations.c;
public interface u extends c {
void onFailure(com.login.nativesso.e.c cVar);
void onSuccess();
}
| [
"master@master.com"
] | master@master.com |
95c6663e8ea6a9bf332c6d7377d77e26402ed0e2 | 445479d53faa2e52b0a19af109b82b66a457979e | /core/src/main/java/org/cirdles/topsoil/chart/Chart.java | 76ee6782841c03606c01ec1df990bfd85ffd3c4b | [
"Apache-2.0"
] | permissive | MarcPoujol/Topsoil | ba699803cf39bccf93b4c2a04209a1fffe836791 | cf5bc1c6af9917f30691575a8c6811fd3cbb55ec | refs/heads/master | 2021-01-18T00:31:44.597182 | 2015-10-14T13:40:31 | 2015-10-14T13:40:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,525 | java | /*
* Copyright 2014 CIRDLES.
*
* 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.cirdles.topsoil.chart;
import java.util.List;
import java.util.Optional;
import org.cirdles.topsoil.chart.setting.SettingScope;
import org.cirdles.topsoil.dataset.Dataset;
/**
* A generalized chart that can express itself as a {@link javafx.scene.Node}.
*
* @author John Zeringue
*/
public interface Chart extends Displayable {
/**
* Returns an {@link Optional} that contains this {@link Chart}'s if it has
* been set and is empty otherwise.
*
* @return an {@link Optional} containing data of type <code>T</code>
*/
public Optional<Dataset> getDataset();
public Optional<VariableContext> getVariableContext();
/**
* Sets this {@link Chart}'s data to the object specified.
*
* @param variableContext
*/
public void setData(VariableContext variableContext);
public List<Variable> getVariables();
public SettingScope getSettingScope();
}
| [
"john.joseph.zeringue@gmail.com"
] | john.joseph.zeringue@gmail.com |
e66148e666c2649e2716df67d0a6fea97bb07a35 | b7073e49c82952ca2ac07e6725f80cd4db423ed0 | /BackupMPPConcurs/MPPConcursSpringRemoting/Client/src/main/java/concurs/client/Controllers/ConcursController.java | c535283e956440767b775a7a45da2a58c67ad815 | [] | no_license | liviu25/Projects | ddf8a46e2a4ba98164f95451a14221929d7e0400 | a54ee9f56cf72f3172648cab7d8ab04162a335c9 | refs/heads/master | 2022-07-17T23:09:22.710099 | 2019-07-25T17:39:27 | 2019-07-25T17:39:27 | 198,864,889 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 6,086 | java | package concurs.client.Controllers;
import concurs.model.Participant;
import concurs.model.Proba;
import concurs.model.User;
import concurs.service.ConcursException;
import concurs.service.IObserver;
import concurs.service.IServer;
import javafx.application.Platform;
import javafx.beans.property.SimpleObjectProperty;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.control.TableColumn;
import javafx.scene.control.TableView;
import javafx.scene.layout.Pane;
import javafx.stage.Stage;
import javafx.stage.WindowEvent;
import java.io.IOException;
import java.io.Serializable;
import java.rmi.RemoteException;
import java.rmi.server.RemoteObject;
import java.rmi.server.UnicastRemoteObject;
public class ConcursController extends UnicastRemoteObject implements IObserver, Serializable {
@FXML
public TableColumn<Proba, Integer> colID;
@FXML
public TableColumn<Proba, String> colTip;
@FXML
public TableColumn<Proba, Integer> colVarstaMin;
@FXML
public TableColumn<Proba, Integer> colVarstaMax;
@FXML
public TableColumn<Proba, Integer> colNrParticipanti;
@FXML
public TableColumn<Participant, Integer> colIdParticipant;
@FXML
public TableColumn<Participant, String> colNume;
@FXML
public TableColumn<Participant, String> colPrenume;
@FXML
public TableColumn<Participant, Integer> colVarsta;
@FXML
public Button addButton;
private IServer concursServer;
User user;
@FXML
TableView<Proba> probeTable;
@FXML
TableView<Participant> participantiTable;
Stage inscriereStage=new Stage();
ObservableList<Proba> probeObservableList = FXCollections.observableArrayList();
ObservableList<Participant> participantObservableList=FXCollections.observableArrayList();
protected ConcursController() throws RemoteException {
}
public void setConcursServer(IServer concursService) {
this.concursServer = concursService;
}
public void init() throws IOException, ConcursException {
LoadList();
User user1=new User("id","pass");
colID.setCellValueFactory(x->new SimpleObjectProperty<>( x.getValue().getID()));
colTip.setCellValueFactory(x->new SimpleObjectProperty<>(x.getValue().getTipProba().toString()));
colVarstaMin.setCellValueFactory(x->new SimpleObjectProperty<>(x.getValue().getVarstaMin()));
colVarstaMax.setCellValueFactory(x->new SimpleObjectProperty<>(x.getValue().getVarstaMax()));
colNrParticipanti.setCellValueFactory(x->new SimpleObjectProperty<>(x.getValue().getNrParticipanti()));
colIdParticipant.setCellValueFactory(x->new SimpleObjectProperty<>(x.getValue().getID()));
colNume.setCellValueFactory(x->new SimpleObjectProperty<>(x.getValue().getNume()));
colPrenume.setCellValueFactory(x->new SimpleObjectProperty<>(x.getValue().getPrenume()));
colVarsta.setCellValueFactory(x->new SimpleObjectProperty<>(x.getValue().getVarsta()));
probeTable.getSelectionModel().selectedIndexProperty().addListener(
(observable,oldvalue,newValue)-> {
try {
probaSelected();
} catch (ConcursException e) {
e.printStackTrace();
}
}
);
FXMLLoader loader=new FXMLLoader();
loader.setLocation(getClass().getResource("..\\..\\..\\View\\InscriereView.fxml"));
Pane myPane = (Pane)loader.load();
InscriereController inscriereController=loader.getController();
inscriereController.setConcursServer(concursServer);
inscriereController.init();
Scene myScene = new Scene(myPane);
inscriereStage.setScene(myScene);
}
private void LoadList() throws ConcursException {
Platform.runLater(new Runnable() {
@Override
public void run() {
try {
probeObservableList.clear();
for (Proba proba : concursServer.getProbeAndNrParticipanti()) {
probeObservableList.add(proba);
}
probeTable.setItems(probeObservableList);
} catch (ConcursException e) {
e.printStackTrace();
}
}
});
}
private void probaSelected() throws ConcursException {
Platform.runLater(new Runnable() {
@Override
public void run() {
if(!probeTable.getSelectionModel().isEmpty())
{
participantObservableList.clear();
Integer idProba = probeTable.getSelectionModel().getSelectedItem().getID();
try {
for (Participant participant : concursServer.getParticipantiByProba(idProba)) {
participantObservableList.add(participant);
}
} catch (ConcursException e) {
e.printStackTrace();
}
}
participantiTable.setItems(participantObservableList);
}
});
}
@FXML
private void exit()
{
logout();
Stage stage = (Stage) probeTable.getScene().getWindow();
stage.fireEvent(new WindowEvent(stage,WindowEvent.WINDOW_CLOSE_REQUEST));
stage.close();
}
public void openAdd() throws IOException {
inscriereStage.show();
}
public void setUser(User user) {
this.user = user;
}
void logout() {
try {
concursServer.logout(user, this);
} catch (ConcursException e) {
System.out.println("Logout error " + e);
}
}
@Override
public void probeUpdated() throws ConcursException {
LoadList();
}
}
| [
"liviu.bud@nexttech.ro"
] | liviu.bud@nexttech.ro |
f3e8636b8fd4ba1ab56c5f8422cdc3469a6a6cc0 | 09a00394429e4bad33d18299358a54fcd395423d | /gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1/src/resources/org/gradle/internal/resource/StringResource.java | 921d66bcdb4693bcd6f1ea0aa8644b9bf8cde562 | [
"Apache-2.0",
"LGPL-2.1-or-later",
"MIT",
"CPL-1.0",
"LGPL-2.1-only",
"BSD-2-Clause",
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | agneske-arter-walter-mostertruck-firetr/pushfish-android | 35001c81ade9bb0392fda2907779c1d10d4824c0 | 09157e1d5d2e33a57b3def177cd9077cd5870b24 | refs/heads/master | 2021-12-02T21:13:04.281907 | 2021-10-18T21:48:59 | 2021-10-18T21:48:59 | 215,611,384 | 0 | 0 | BSD-2-Clause | 2019-10-16T17:58:05 | 2019-10-16T17:58:05 | null | UTF-8 | Java | false | false | 1,298 | java | /*
* Copyright 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.gradle.internal.resource;
import java.io.File;
import java.net.URI;
public class StringResource implements Resource {
private final String displayName;
private final CharSequence contents;
public StringResource(String displayName, CharSequence contents) {
this.displayName = displayName;
this.contents = contents;
}
public String getDisplayName() {
return displayName;
}
public String getText() {
return contents.toString();
}
public File getFile() {
return null;
}
public URI getURI() {
return null;
}
public boolean getExists() {
return true;
}
}
| [
"mega@ioexception.at"
] | mega@ioexception.at |
0b1bf68c7b8926bfdc69c9f46f3d796fae1271da | 910848a8dc565ac94fd9fbded1ddb2d4b1324275 | /App/src/hotel/Piscina.java | fd390e0194a2a1690b9dfb303798eeb09cb0a8f2 | [] | no_license | smolpeceresd/Proyecto_App | f6b2850b74713868d28ce6af67c3480991701402 | 2ebc63d07e5480070eafd60fef371c516d828d4e | refs/heads/main | 2023-01-23T09:34:56.484639 | 2020-12-09T17:19:14 | 2020-12-09T17:19:14 | 306,131,671 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,135 | java | package hotel;
import traductor.Traductor;
/**
* @author Smolpeceresd
*
*/
public class Piscina {
//Atributos
private int dimensiones[] = new int [2];
private boolean climatizada;
private boolean servicioToallas;
private boolean barPiscina;
//Cosntructor
public Piscina(int [] dimensiones, boolean climatizada, boolean servicioToallas, boolean barPiscina) {
this.dimensiones=dimensiones;
this.climatizada=climatizada;
this.servicioToallas=servicioToallas;
this.barPiscina=barPiscina;
}// este constructor va a ser para la piscina general del hotel
public Piscina(int [] dimensiones , boolean climatizada) {
this.dimensiones=dimensiones;
this.climatizada=climatizada;
this.servicioToallas=false;
this.barPiscina=false;
}// este constructor es para las piscinas de la suit
//Metodos
public String toString(Traductor diccionario) {
String deVuelta="";
deVuelta+=("\n* "+diccionario.getTexto("DIMENSIONES_P_P")+this.getDimensiones()[0]+" x "+ this.getDimensiones()[1]);
if(this.isClimatizada()==true) {
deVuelta+=("\n\t* "+diccionario.getTexto("CLIMATIZADA_P_P")+diccionario.getTexto("Afirmacion"));
}else{ deVuelta+=("\n\t*"+diccionario.getTexto("CLIMATIZADA_P_P")+diccionario.getTexto("Afirmacion"));}
if(this.isServicioToallas()==true) {
deVuelta+=("\n\t*"+diccionario.getTexto("TOALLA_P_P")+diccionario.getTexto("Afirmacion"));
}else{
deVuelta+=("\n\t*"+diccionario.getTexto("TOALLAS_P_P")+diccionario.getTexto("Negacion"));
}
if(this.isBarPiscina()==true) {
deVuelta+=("\n\t*"+diccionario.getTexto("BAR_P_P")+diccionario.getTexto("Afirmacion"));
}else {
deVuelta+=("\n\t*"+diccionario.getTexto("BAR_P_P")+diccionario.getTexto("Negacion"));
}
return deVuelta;
}
public String toStringSuit(Traductor diccionario) {
String deVuelta="";
deVuelta+=("\n\n*"+diccionario.getTexto("DIMENSIONES_P_P") +this.getDimensiones()[0]+" x "+ this.getDimensiones()[1]);
if(this.isClimatizada()==true) {
deVuelta+=("\n\t* "+diccionario.getTexto("CLIMATIZADA_P_P")+diccionario.getTexto("Afirmacion"));
}else{ deVuelta+=("\n\t*"+diccionario.getTexto("CLIMATIZADA_P_P")+diccionario.getTexto("Afirmacion"));}
return deVuelta;
}
///////////////////////////////////////////////////
public int[] getDimensiones() {
return dimensiones;
}
public void setDimensiones(int[] dimesiones) {
this.dimensiones = dimesiones;
}
///////////////////////////////////////////////////
public boolean isClimatizada() {
return climatizada;
}
public void setClimatizada(boolean climatizada) {
this.climatizada = climatizada;
}
///////////////////////////////////////////////////
public boolean isServicioToallas() {
return servicioToallas;
}
public void setServicioToallas(boolean servicioToallas) {
this.servicioToallas = servicioToallas;
}
///////////////////////////////////////////////////
public boolean isBarPiscina() {
return barPiscina;
}
public void setBarPiscina(boolean barPiscina) {
this.barPiscina = barPiscina;
}
}
| [
"noreply@github.com"
] | noreply@github.com |
8f3a4efc46183d33637c22ef0f067a87dfd2f820 | ca7ebade12af5c82e5626fbdd320bd01c718f9e7 | /common-util/src/main/java/com/game/util/StackMessagePrint.java | e6ecf5634d39e9038cf7e3973a1d0a8143866da5 | [] | no_license | leesin-mks/game-framework | a81ec3cc123d8627ce4692c2949b3ca74ec2f755 | 42f900dc44ea25e961ed2094bef6dad864a655d7 | refs/heads/master | 2022-10-31T08:21:43.920939 | 2021-07-06T03:01:05 | 2021-07-06T03:01:05 | 244,306,886 | 3 | 0 | null | 2022-10-04T23:57:44 | 2020-03-02T07:27:07 | Java | UTF-8 | Java | false | false | 3,635 | java | /*
* Copyright 2016-2021 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 com.game.util;
import java.io.PrintWriter;
import java.io.StringWriter;
import org.slf4j.Logger;
/**
* @author leesin
*
*/
public class StackMessagePrint
{
/**
* 打印错误消息的堆栈
*
* @param error
* @return
*/
public static String printErrorTrace(Throwable error)
{
StringBuilder result = new StringBuilder();
String line = "***************************************************************************";
if (error != null)
{
result.append(line);
result.append(OutPutUtil.lineSeparator);
StringWriter writer = new StringWriter();
PrintWriter print = new PrintWriter(writer);
error.printStackTrace(print);
result.append(writer.toString());
result.append(line);
}
else
{
result.append("no exception!");
}
return result.toString();
}
/**
* 打印当前堆栈信息
*
*/
public static String printStackTrace()
{
StackTraceElement[] elements = (new Throwable()).getStackTrace();
StringBuilder buf = new StringBuilder();
for (StackTraceElement element : elements) {
buf.append(" ").append(element.getClassName()).append(".").append(
element.getMethodName()).append("(").append(element.getFileName()).append(":").append(
element.getLineNumber()).append(")").append("\n");
}
return buf.toString();
}
/**
* 获取当前调用线程的调用栈
*
* @return
*/
public static String captureStackTrace()
{
return captureStackTrace(Thread.currentThread(), "");
}
/**
* 获取当前线程的调用栈信息
*
* @param message
* 输出的头部提示信息
* @return stack message
*/
public static String captureStackTrace(Thread thread, String message)
{
StringBuilder stringBuilder = new StringBuilder(String.format(message,
Thread.currentThread().getName()));
StackTraceElement[] trace = thread.getStackTrace();
for (int i = 0; i < trace.length; i++)
{
stringBuilder.append(" " + trace[i] + OutPutUtil.lineSeparator);
}
stringBuilder.append("");
return stringBuilder.toString();
}
/**
* 打印异常日志
*
* @param logger
* @param exception
* @param stacks
*/
public static void printError(Logger logger, String exception,
StackTraceElement[] stacks)
{
String line = System.getProperty("line.separator");
String kong = " at ";
StringBuilder sb = new StringBuilder();
sb.append(exception).append(line);
for (StackTraceElement stack : stacks)
{
sb.append(kong).append(stack.toString()).append(line);
}
logger.error(sb.toString());
}
}
| [
"990152717@qq.com"
] | 990152717@qq.com |
3094acdea15509b5d94655cc959e5c65676beba5 | a88931780b8ef56fc109a4c385cd8fad0f0d96f0 | /Global/src/interfaces/DispatchInterface.java | 2cfb95ce4744e4480b1916f9f9a44b9357b7ef21 | [] | no_license | aaronhallaert/DS_Project | 3818545787d87c7c442b98f0214f3ff678817e88 | 12fbabb838ea1c969402951541f55ec157ba8982 | refs/heads/master | 2020-04-01T04:41:38.074828 | 2018-12-16T18:19:27 | 2018-12-16T18:19:27 | 152,873,694 | 3 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,135 | java | package interfaces;
import Classes.Game;
import java.rmi.Remote;
import java.rmi.RemoteException;
public interface DispatchInterface extends Remote {
/*---------- APPSERVER MANAGING ---------------------*/
void registerAppserver(int portNumber) throws RemoteException;
AppServerInterface giveAppserver() throws RemoteException;
void newGameCreated() throws RemoteException;
void gameFinished() throws RemoteException;
void unregisterAppserver(int appserverPoort) throws RemoteException;
/*----------- USER MANAGING --------------------------*/
boolean userNameExists(String username) throws RemoteException;
void insertUser(String username, String confirmPassword) throws RemoteException;
/*----------- OVERZETTEN VAN ... ---------------------*/
void changeGameServer(AppServerInterface appImpl, Game game) throws RemoteException;
AppServerInterface changeClientServer(int currentGameIdAttempt) throws RemoteException;
// verplaatsen naar appserver waar nog een game kan aangemaakt worden
AppServerInterface changeClientServer(boolean dummy) throws RemoteException;
}
| [
"aaronhallaert@hotmail.com"
] | aaronhallaert@hotmail.com |
e26b60d437d6e97d21333f27540cc8107220e6f9 | 9f5310a61901c2e4c5fce4c4bd6492ef19b065b2 | /src/main/java/iozip/names/EmployeeFileManager.java | a547ba46b9bf4a6f9a744da281369e6ac5313ee1 | [] | no_license | isstvaan/training-solutions | 36044fd5110554231a0b253cad6ab6921fe1dea1 | 9f33e23903cfc9af65c648c799b61bc0752e1725 | refs/heads/master | 2023-04-16T16:48:09.905130 | 2021-04-28T07:31:29 | 2021-04-28T07:31:29 | 308,278,752 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 978 | java | package iozip.names;
import java.io.BufferedOutputStream;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.List;
import java.util.zip.ZipEntry;
import java.util.zip.ZipOutputStream;
public class EmployeeFileManager {
public void saveEmployees(Path file, List<String> names) {
if (file == null) {
throw new IllegalArgumentException("File can't be null");
}
if (names == null) {
throw new IllegalArgumentException("Names can't be null");
}
try (ZipOutputStream zipOutputStream = new ZipOutputStream(new BufferedOutputStream(Files.newOutputStream(file)))) {
zipOutputStream.putNextEntry(new ZipEntry("names.dat"));
for (String item : names) {
zipOutputStream.write(item.getBytes());
}
} catch (IOException e) {
throw new IllegalStateException("Can't write file", e);
}
}
}
| [
"programozo_1@kvlcomp.hu"
] | programozo_1@kvlcomp.hu |
d57785cf4c11399316fa2c90b3e6927dcb03a391 | d2e0ed327d06f0280293fdd01459d2cfea4444e6 | /Back End/ProjectBusSpringBoot/src/main/java/com/lti/service/AdminService.java | ae610c120dda5a208ead2d0f940f7f96f738c135 | [] | no_license | Chandradipa98/LTI_Project_Gladiator_Safar | de5d57d0f5a2d5e021b896961a57f4e804821be3 | 343e438f53a1d59190ceb33f7da2516cb1ff75e8 | refs/heads/master | 2022-12-27T11:51:45.122047 | 2020-10-09T04:14:05 | 2020-10-09T04:14:05 | 295,494,165 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 202 | java | package com.lti.service;
import java.util.List;
import com.lti.model.Admin;
public interface AdminService {
public boolean addAdmin(Admin admin);
public List<Admin> findAllAdmin();
}
| [
"noreply@github.com"
] | noreply@github.com |
b22bf2f9ed9f3f3d35c4526d6980619b46b77608 | 75dfd7e6dcc45ee045f68ae456c08d7d2b3a3a77 | /app/src/main/java/com/example/architectureexample/activities/AddEditNoteActivity.java | 997dea479ef9cbffe32aa7dd7679c5fb3190d889 | [] | no_license | Fran0liveira/architecture-components-android | 853b6e7aa2b7eaabb7b759143036312d2a0da487 | f1205cb2849f1b0012b34de745c39bcbfae8f721 | refs/heads/master | 2021-03-02T23:19:35.469328 | 2020-03-09T01:08:45 | 2020-03-09T01:08:45 | 245,914,312 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,377 | java | package com.example.architectureexample.activities;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.widget.EditText;
import android.widget.NumberPicker;
import android.widget.Toast;
import com.example.architectureexample.R;
public class AddEditNoteActivity extends AppCompatActivity {
public static final String EXTRA_ID =
"com.example.architectureexample.activities.EXTRA_ID";
public static final String EXTRA_TITLE =
"com.example.architectureexample.activities.EXTRA_TITLE";
public static final String EXTRA_DESCRIPTION =
"com.example.architectureexample.activities.EXTRA_DESCRIPTION";
public static final String EXTRA_PRIORITY =
"com.example.architectureexample.activities.EXTRA_PRIORITY";
private EditText editTitle;
private EditText editDescription;
private NumberPicker numberPickerPriority;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_add_note);
initViews();
numberPickerPriority.setMinValue(1);
numberPickerPriority.setMaxValue(10);
getSupportActionBar().setHomeAsUpIndicator(R.drawable.ic_close_white_24dp);
Intent intent = getIntent();
if(intent.hasExtra(EXTRA_ID)){
setTitle("Edit note");
editTitle.setText(intent.getStringExtra(EXTRA_TITLE));
editDescription.setText(intent.getStringExtra(EXTRA_DESCRIPTION));
numberPickerPriority.setValue(intent.getIntExtra(EXTRA_PRIORITY, 0));
} else{
setTitle("Add note");
}
}
private void saveNote(){
String title = editTitle.getText().toString();
String description = editDescription.getText().toString();
int priority = numberPickerPriority.getValue();
if(title.trim().isEmpty() || description.trim().isEmpty()){
Toast.makeText(this, "Please, insert a title and description", Toast.LENGTH_SHORT).show();
return;
}
Intent data = new Intent();
data.putExtra(EXTRA_TITLE, title);
data.putExtra(EXTRA_DESCRIPTION, description);
data.putExtra(EXTRA_PRIORITY, priority);
int id = getIntent().getIntExtra(EXTRA_ID, -1);
if(id != -1){
data.putExtra(EXTRA_ID, id);
}
setResult(RESULT_OK, data);
finish();
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
MenuInflater menuInflater = getMenuInflater();
menuInflater.inflate(R.menu.add_note_menu, menu);
return true;
}
@Override
public boolean onOptionsItemSelected(@NonNull MenuItem item) {
switch(item.getItemId()){
case R.id.save_note:
saveNote();
return true;
default:
return super.onOptionsItemSelected(item);
}
}
private void initViews(){
editTitle = findViewById(R.id.edit_title);
editDescription = findViewById(R.id.edit_description);
numberPickerPriority = findViewById(R.id.number_picker_priority);
}
}
| [
"="
] | = |
fe270642e10a7515f6315162cb9c1011f9d2d985 | 315fffd337e156c64c8e7febedbb32bb9601dad3 | /employeeClass.java | d4858ef8c0c3dc342e1de100715110981c54d687 | [] | no_license | pravin-asp/Learning-Java | ec0d9aafda3b4094ad5842a0464c9378855a0427 | 0b1c482a032c3e01d9633e86fa7a64b18973b6a5 | refs/heads/master | 2023-06-28T02:40:09.258204 | 2021-08-01T06:00:39 | 2021-08-01T06:00:39 | 390,285,097 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 224 | java | public class employeeClass{
public static void main(String[] args){
Employee e1 = new Employee("Pravin", 22, 1000, "Tamil Nadu");
System.out.println(e1.raiseSalary());
System.out.println(Employee.employeeAge);
}
} | [
"pravin.cs17@bitsathy.ac.in"
] | pravin.cs17@bitsathy.ac.in |
b3476e60f45f8c51f7d048572102abca8723cd84 | e5481d341e7f0ef745ba546a5c5a6e17cb978ed7 | /ZooProject-copy/ZooProgram.java | 75c8b060b59faefb711fa761c2b7f368f75f4bba | [] | no_license | slohman0149/ZooProject-1 | 4b6ce019a56b78264d32b4093becbaddf608a619 | 4b16aa627f97ef60e63666981aabad94453b069f | refs/heads/master | 2022-12-20T19:55:31.338120 | 2020-09-15T14:30:59 | 2020-09-15T14:30:59 | 295,752,119 | 0 | 0 | null | 2020-09-15T14:21:37 | 2020-09-15T14:21:37 | null | UTF-8 | Java | false | false | 134 | java | public class ZooProgram{
public static void main(String args[]){
Axolotl Ali = new Axolotl();
Ali.eats();
}
}
| [
"noreply@github.com"
] | noreply@github.com |
c160f5b28c1c5f018ce88396c9561c2d3e895fba | 117d1740e561c9389fa29808571e7a39efd4464d | /src/test/java/my/company/ADDOperationsTestCase.java | 083ab76953cee69f4d71a031c51b88ecdcfde193 | [] | no_license | sapkumar24/AddCustomConnector | d3ce85a1c20fe88eb114db7b734ea8f3742a859a | 60165aa4b017841451426eefcf80c3be24acd157 | refs/heads/main | 2023-04-12T08:25:35.224993 | 2021-05-16T14:34:41 | 2021-05-16T14:34:41 | 367,903,385 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,315 | java | package my.company;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.core.Is.is;
import org.mule.functional.junit4.MuleArtifactFunctionalTestCase;
import org.junit.Test;
public class ADDOperationsTestCase extends MuleArtifactFunctionalTestCase {
/**
* Specifies the mule config xml with the flows that are going to be executed in the tests, this file lives in the test resources.
*/
@Override
protected String getConfigFile() {
return "test-mule-config.xml";
}
@Test
public void executeSayHiOperation() throws Exception {
String payloadValue = ((String) flowRunner("sayHiFlow").run()
.getMessage()
.getPayload()
.getValue());
assertThat(payloadValue, is("Hello Mariano Gonzalez!!!"));
}
@Test
public void executeRetrieveInfoOperation() throws Exception {
String payloadValue = ((String) flowRunner("retrieveInfoFlow")
.run()
.getMessage()
.getPayload()
.getValue());
assertThat(payloadValue, is("Using Configuration [configId] with Connection id [aValue:100]"));
}
}
| [
"pavankumar24101993@gmail.com"
] | pavankumar24101993@gmail.com |
95f8300b924bf6b89a55c32ab4390f24113d15a9 | 446c8e614bfc870aefe5b999c85c01aade9166b5 | /app/src/main/java/com/example/kartiksaraswat/textme/utility/TimeUtility.java | 426d9b1fae074a4550e9cbe6a9fa0980caabaa88 | [] | no_license | singhdnav/text-meapp | e5a95357eb782305e283e4fa13dd226c7566a868 | facf7726ac364ac23bfa946c5cc0eea40eafce3f | refs/heads/master | 2020-07-16T20:03:48.284844 | 2016-07-25T13:09:47 | 2016-07-25T13:09:47 | 73,941,500 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 135 | java | package com.example.kartiksaraswat.textme.utility;
/**
* Created by Kartik Saraswat on 20-07-2016.
*/
public class TimeUtility {
}
| [
"ksaraswatin@gmail.com"
] | ksaraswatin@gmail.com |
6184114fdceecfa474506df7eb6f5783b547caea | b13cdeb88d1614749e13be52a788539f10867654 | /mywebapp/src/main/java/com/technicalkeeda/service/User_Service.java | 6b092ca45daf7d50cdffd09dec56e95b0fd1723a | [] | no_license | anand853/AppsTechs_RockOn | e635d5e3ed843043e0d486d00882b8023bbbda2f | ee494e2236f74333275c53c3281f055b37c89406 | refs/heads/master | 2021-05-04T10:55:38.479163 | 2016-03-06T06:52:11 | 2016-03-06T06:52:11 | 51,329,295 | 0 | 1 | null | 2016-09-01T04:47:43 | 2016-02-08T21:42:11 | CSS | UTF-8 | Java | false | false | 495 | java | package com.technicalkeeda.service;
import java.util.List;
import com.technicalkeeda.bean.Depositmodel;
import com.technicalkeeda.bean.bank;
import com.technicalkeeda.dao.User_Dao;
public interface User_Service{
public int checkLogin(int accountnum,int pin);
public int deposit(int accountnum,int amount);
public int withDraw(int accountnum,int amount);
public int checkBalance(int accountnum);
public int Registration(int accountnum,int pin,int balance);
}
| [
"tejaswichirumalla@gmail.com"
] | tejaswichirumalla@gmail.com |
b75f0495a7b76344caa84a06c34f0977f3fd915b | c0acb93276ca4a8d1d676c50d0ae5b6dfad1f59c | /ontologize/src/main/java/edu/arizona/biosemantics/oto2/ontologize/client/event/CreateOntologyClassSubmissionEvent.java | 26c70a4aa7d75cc567d6616648c7eaa969a48cf2 | [] | no_license | biosemantics/oto2 | c71c7828311e6f04803cd485658cfa5f5c0c0a6e | 9f3629df0861120e117d2840e2e2e00da33d979f | refs/heads/master | 2021-01-24T09:58:20.013614 | 2019-04-24T23:34:12 | 2019-04-24T23:34:12 | 20,897,868 | 0 | 0 | null | 2017-09-26T21:25:16 | 2014-06-16T19:33:14 | Java | UTF-8 | Java | false | false | 1,205 | java | package edu.arizona.biosemantics.oto2.ontologize.client.event;
import java.util.LinkedList;
import java.util.List;
import com.google.gwt.event.shared.EventHandler;
import com.google.gwt.event.shared.GwtEvent;
import edu.arizona.biosemantics.oto2.ontologize.client.event.CreateOntologyClassSubmissionEvent.Handler;
import edu.arizona.biosemantics.oto2.ontologize.shared.model.Term;
import edu.arizona.biosemantics.oto2.ontologize.shared.model.toontology.OntologyClassSubmission;
public class CreateOntologyClassSubmissionEvent extends GwtEvent<Handler> {
public interface Handler extends EventHandler {
void onSubmission(CreateOntologyClassSubmissionEvent event);
}
public static Type<Handler> TYPE = new Type<Handler>();
private List<OntologyClassSubmission> classSubmissions;
public CreateOntologyClassSubmissionEvent(List<OntologyClassSubmission> classSubmissions) {
this.classSubmissions = classSubmissions;
}
@Override
public Type<Handler> getAssociatedType() {
return TYPE;
}
@Override
protected void dispatch(Handler handler) {
handler.onSubmission(this);
}
public List<OntologyClassSubmission> getClassSubmissions() {
return classSubmissions;
}
}
| [
"danveno@163.com"
] | danveno@163.com |
0414262820e348cbe594b4b830b16353fac2d173 | 556df12f63a13efc7d5167e9fd2184b0a5c0cafe | /src/main/java/com/job/siteapp/common/globality/BaseController.java | 1a6879a58d5c18a5095587537fa57763af3dcc91 | [] | no_license | lucoxlee/siteapp | 05c09177674ade07d0f19f3c64005c23490df4a5 | 5caedf6850d01f6e474c148e0e14a19c1fce30d7 | refs/heads/master | 2021-01-20T23:23:33.378463 | 2016-05-31T16:24:47 | 2016-05-31T16:24:47 | 60,094,429 | 1 | 0 | null | 2016-05-31T14:00:46 | 2016-05-31T14:00:46 | null | UTF-8 | Java | false | false | 216 | java | package com.job.siteapp.common.globality;
/**
* Controller全局对象,包含所有controller共同方法
*
* @author seanwg
* 2016-5-31 下午09:19:57
*/
public abstract class BaseController {
}
| [
"suchenwon@gmail.com"
] | suchenwon@gmail.com |
9f9de0d76383993024349e7ee44e64390fe04e93 | 4646bed9967cc7ef48de93f12e8937b61611c200 | /app/src/main/java/com/rkrzmail/oto/modules/komisi/KomisiJasaLain_Activity.java | 614bfed7ea38d75ec2ccf344b97a04d9321076c5 | [] | no_license | somadzakaria/OtomotivesProject | a9e744469375c3c268d7bd80af2b9a38ac918e5e | a0320681493c6a41daca9f6f2cb72dee59cecd48 | refs/heads/master | 2022-12-18T08:50:59.588620 | 2020-09-21T07:42:56 | 2020-09-21T07:42:56 | 297,379,676 | 1 | 0 | null | 2020-09-21T15:19:38 | 2020-09-21T15:19:37 | null | UTF-8 | Java | false | false | 6,508 | java | package com.rkrzmail.oto.modules.komisi;
import android.app.SearchManager;
import android.content.Context;
import android.content.Intent;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.design.widget.FloatingActionButton;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.support.v7.widget.SearchView;
import android.support.v7.widget.Toolbar;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.TextView;
import com.naa.data.Nson;
import com.naa.utils.InternetX;
import com.naa.utils.Messagebox;
import com.rkrzmail.oto.AppActivity;
import com.rkrzmail.oto.AppApplication;
import com.rkrzmail.oto.R;
import com.rkrzmail.srv.NikitaRecyclerAdapter;
import com.rkrzmail.srv.NikitaViewHolder;
import java.util.Map;
public class KomisiJasaLain_Activity extends AppActivity {
private RecyclerView recyclerView;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_list_basic_3);
initComponent();
}
private void initToolbar() {
Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
setSupportActionBar(toolbar);
getSupportActionBar().setTitle("Komisi Jasa Lain");
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
}
private void initComponent() {
initToolbar();
FloatingActionButton fab = findViewById(R.id.fab_tambah);
fab.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
startActivityForResult(new Intent(getActivity(), AturKomisiJasaLain_Activity.class), 10);
}
});
recyclerView = findViewById(R.id.recyclerView);
recyclerView.setLayoutManager(new LinearLayoutManager(getActivity()));
recyclerView.setAdapter(new NikitaRecyclerAdapter(nListArray, R.layout.item_komisi_jasa_lain) {
@Override
public void onBindViewHolder(@NonNull NikitaViewHolder viewHolder, int position) {
super.onBindViewHolder(viewHolder, position);
viewHolder.find(R.id.tv_posisi_komisiJasaLain, TextView.class).setText(nListArray.get(position).get("POSISI").asString());
viewHolder.find(R.id.tv_kategoriPart_komisiJasaLain, TextView.class).setText(nListArray.get(position).get("KATEGORI_PART").asString());
viewHolder.find(R.id.tv_aktifitas_komisiJasaLain, TextView.class).setText(nListArray.get(position).get("AKTIVITAS").asString());
viewHolder.find(R.id.tv_komisi_komisiJasaLain, TextView.class).setText(nListArray.get(position).get("KOMISI").asString());
}
}.setOnitemClickListener(new NikitaRecyclerAdapter.OnItemClickListener() {
@Override
public void onItemClick(Nson parent, View view, int position) {
Intent i = new Intent(getActivity(), AturKomisiJasaLain_Activity.class);
i.putExtra("data", nListArray.get(position).toJson());
startActivityForResult(i, 10);
}
})
);
catchData("");
}
private void catchData(final String cari) {
newProses(new Messagebox.DoubleRunnable() {
Nson result;
@Override
public void run() {
Map<String, String> args = AppApplication.getInstance().getArgsData();
args.put("action", "view");
args.put("search", cari);
result = Nson.readJson(InternetX.postHttpConnection(AppApplication.getBaseUrlV3("komisijasalain"), args));
}
@Override
public void runUI() {
if (result.get("status").asString().equalsIgnoreCase("OK")) {
nListArray.asArray().clear();
nListArray.asArray().addAll(result.get("data").asArray());
recyclerView.getAdapter().notifyDataSetChanged();
} else {
showInfo("Gagal memuat Aktifitas");
}
}
});
}
@Override
protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {
super.onActivityResult(requestCode, resultCode, data);
if (resultCode == RESULT_OK) {
if (requestCode == 10) {
catchData("");
}
}
}
SearchView mSearchView;
@Override
public boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(R.menu.menu_part, menu);
// Get the SearchView and set the searchable configuration
SearchManager searchManager = (SearchManager) getSystemService(Context.SEARCH_SERVICE);
mSearchView = new SearchView(getSupportActionBar().getThemedContext());
mSearchView.setQueryHint("Cari Part"); /// YOUR HINT MESSAGE
mSearchView.setMaxWidth(Integer.MAX_VALUE);
final MenuItem searchMenu = menu.findItem(R.id.action_search);
searchMenu.setActionView(mSearchView);
searchMenu.setShowAsAction(MenuItem.SHOW_AS_ACTION_IF_ROOM | MenuItem.SHOW_AS_ACTION_COLLAPSE_ACTION_VIEW);
//SearchView searchView = (SearchView) menu.findItem(R.id.action_search).setActionView(mSearchView);
// Assumes current activity is the searchable activity
mSearchView.setSearchableInfo(searchManager.getSearchableInfo(getComponentName()));
mSearchView.setIconifiedByDefault(false);// Do not iconify the widget; expand it by default
adapterSearchView(mSearchView, "search", "komisijasalain", "KOMISI");
SearchView.OnQueryTextListener queryTextListener = new SearchView.OnQueryTextListener() {
public boolean onQueryTextChange(String newText) {
return false;
}
public boolean onQueryTextSubmit(String query) {
searchMenu.collapseActionView();
//filter(null);
catchData(query);
return true;
}
};
mSearchView.setOnQueryTextListener(queryTextListener);
return true;
}
}
| [
"vandikalvandi@gmail.com"
] | vandikalvandi@gmail.com |
12b416e6c751e7a81fd67444b1879f0053059b11 | 5832d0013dd80fc6bc572433b5e7f03e744bbabb | /src/com/lihui/hibernate/double_n_1/Customer.java | e218721b7e69e5292bcb5661e7ae5f0c36244dab | [] | no_license | MicrophoneBen/HibernateRelationMapping | a67ae4c101f3365bae5802b679ce16e86043fe0a | cca916efeb53f9dcb65a9a7d656594e58d0c2862 | refs/heads/master | 2020-04-06T09:10:10.566969 | 2015-07-08T02:11:16 | 2015-07-08T02:11:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 675 | java | package com.lihui.hibernate.double_n_1;
import java.util.HashSet;
import java.util.Set;
public class Customer {
private Integer customerId;
private String customerName;
private Set<Order> orders = new HashSet<Order>();
public Set<Order> getOrders() {
return orders;
}
public void setOrders(Set<Order> orders) {
this.orders = orders;
}
public Integer getCustomerId() {
return customerId;
}
public void setCustomerId(Integer customerId) {
this.customerId = customerId;
}
public String getCustomerName() {
return customerName;
}
public void setCustomerName(String customerName) {
this.customerName = customerName;
}
}
| [
"793912329@qq.com"
] | 793912329@qq.com |
a819afb994884eac7fd822179eb8239991faf614 | 9d4427e04ba63a1df778b359dd5b76477ba270ce | /src/main/java/org/yx/db/event/ListEvent.java | 31612be8b5e74792a671f1c0061e0fe3b3d71b7a | [] | no_license | wanshijiain/sumk | be95ce37dc1daea256bc48c5c33ed51deed946b5 | ba71bf171d6666131e5e6f63af092580354f28e7 | refs/heads/master | 2021-01-11T08:35:55.363632 | 2016-09-08T13:38:17 | 2016-09-08T13:38:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 814 | java | package org.yx.db.event;
import java.util.Collection;
import org.yx.listener.DBEvent;
/**
* 用于根据某种id查询的类型.比如productImage,他是根据productID查询的
* @author Administrator
*
*/
public class ListEvent extends DBEvent{
/**
*
*/
private static final long serialVersionUID = 1L;
/**
* 外键id,非空.多个外键就用PkUtils组合起来使用
*/
private String foreignId;
public String getForeignId() {
return foreignId;
}
public ListEvent(Collection<?> list, String type, String foreignId) {
super(list, type, EventOperate.LISTByParent, null);
this.foreignId = foreignId;
}
@Override
public String toString() {
return "ListEvent [foreignId=" + foreignId + ", getType()=" + getType()
+ "]";
}
}
| [
"Administrator@youxia"
] | Administrator@youxia |
02ac3d3f5a98d4624d013e4daaddbb7348931968 | 8234c5531953ead7fd618106aa9910062a33db4f | /src/main/java/ci/jvision/admin201618033/web/ProductsApiController.java | 2136bf6c50766964f4ba9529b5560f66e2046911 | [] | no_license | mg02070/ShoppingMall | bd9bd4e78c93aceafd9ebc11cacd5db09665578c | f31a4d2f84651059707b50b39a6adfbd30afc4bc | refs/heads/master | 2023-01-31T08:58:08.210231 | 2020-12-14T06:02:04 | 2020-12-14T06:02:04 | 321,249,317 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 556 | java | package ci.jvision.admin201618033.web;
import ci.jvision.admin201618033.service.ProductsService;
import ci.jvision.admin201618033.web.dto.ProductsSaveRequestDto;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.*;
@RequiredArgsConstructor
@RestController
public class ProductsApiController {
private final ProductsService productsService;
@PostMapping("/api/v1/products")
public Long save(@RequestBody ProductsSaveRequestDto requestDto)
{
return productsService.save(requestDto);
}
}
| [
"mg02070@hub.com"
] | mg02070@hub.com |
65653adce588cbea0658b77de06191ed65593613 | 1bb10c50382370d54f8fb3dc76bf5fadccf89945 | /app/src/main/java/com/androidadvanced/petfinder/storage/FirebaseStore.java | 453decc552520117f2fc0ac32511596ad5b7f4c3 | [] | no_license | danielsantil/petfinder | e1213393f7102c7db99737df58935483d9312036 | fbdc606eedfa3310bdbd15e40c706ca71500f31e | refs/heads/master | 2020-04-04T14:45:51.206835 | 2019-06-29T20:31:26 | 2019-06-29T20:31:26 | 156,011,907 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,119 | java | package com.androidadvanced.petfinder.storage;
import android.net.Uri;
import com.google.firebase.storage.FirebaseStorage;
import com.google.firebase.storage.StorageReference;
import java.io.File;
public class FirebaseStore implements FileStore {
private final String folderName;
private final FirebaseStorage storage;
public FirebaseStore(String folderName) {
this.folderName = folderName;
this.storage = FirebaseStorage.getInstance();
}
@Override
public void save(File file, String fileName, StoreListener listener) {
Uri fileUri = Uri.fromFile(file);
save(fileUri, fileName, listener);
}
@Override
public void save(Uri fileUri, String fileName, StoreListener listener) {
StorageReference fileRef = this.storage.getReference(this.folderName + "/"
+ fileName);
fileRef.putFile(fileUri)
.continueWithTask(task -> fileRef.getDownloadUrl())
.addOnSuccessListener(listener::onStoreSuccess)
.addOnFailureListener(e -> listener.onStoreError(e.getMessage()));
}
}
| [
"daniel.shcf@gmail.com"
] | daniel.shcf@gmail.com |
f279a751514e91eee1fc3f839e34c42d99db0b01 | 8ec1aae2a516e8ee4bb3dde783785e145b4f2e53 | /app/src/main/java/com/traffic/pd/SaveStateDemoActivity.java | 38ebaab1e35ad5653076d0c75e41edb21c2d7ba9 | [] | no_license | sjp1151237/MapTrafficApplication | c604be77787da127831aeb98c0e63b12a478ea06 | d29d97800ad7edafc30ba54c65dcc97b52f42e83 | refs/heads/master | 2020-05-03T02:32:30.189961 | 2019-06-16T14:49:21 | 2019-06-16T14:49:21 | 178,372,809 | 0 | 1 | null | null | null | null | UTF-8 | Java | false | false | 8,028 | java | /*
* Copyright (C) 2012 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.traffic.pd;
import com.google.android.gms.maps.CameraUpdateFactory;
import com.google.android.gms.maps.GoogleMap;
import com.google.android.gms.maps.GoogleMap.OnMarkerClickListener;
import com.google.android.gms.maps.GoogleMap.OnMarkerDragListener;
import com.google.android.gms.maps.OnMapReadyCallback;
import com.google.android.gms.maps.SupportMapFragment;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import com.google.android.gms.maps.model.LatLng;
import com.google.android.gms.maps.model.Marker;
import com.google.android.gms.maps.model.MarkerOptions;
import android.os.Bundle;
import android.os.Parcel;
import android.os.Parcelable;
import android.support.v7.app.AppCompatActivity;
import java.util.Random;
/**
* This activity shows how to save the state of a MapFragment when the activity is recreated, like
* after rotation of the device.
*/
public class SaveStateDemoActivity extends AppCompatActivity {
/** Default marker position when the activity is first created. */
private static final LatLng DEFAULT_MARKER_POSITION = new LatLng(48.858179, 2.294576);
/** List of hues to use for the marker */
private static final float[] MARKER_HUES = new float[]{
BitmapDescriptorFactory.HUE_RED,
BitmapDescriptorFactory.HUE_ORANGE,
BitmapDescriptorFactory.HUE_YELLOW,
BitmapDescriptorFactory.HUE_GREEN,
BitmapDescriptorFactory.HUE_CYAN,
BitmapDescriptorFactory.HUE_AZURE,
BitmapDescriptorFactory.HUE_BLUE,
BitmapDescriptorFactory.HUE_VIOLET,
BitmapDescriptorFactory.HUE_MAGENTA,
BitmapDescriptorFactory.HUE_ROSE,
};
// Bundle keys.
private static final String OTHER_OPTIONS = "options";
private static final String MARKER_POSITION = "markerPosition";
private static final String MARKER_INFO = "markerInfo";
/**
* Extra info about a marker.
*/
static class MarkerInfo implements Parcelable {
public static final Parcelable.Creator<MarkerInfo> CREATOR =
new Parcelable.Creator<MarkerInfo>() {
@Override
public MarkerInfo createFromParcel(Parcel in) {
return new MarkerInfo(in);
}
@Override
public MarkerInfo[] newArray(int size) {
return new MarkerInfo[size];
}
};
float mHue;
public MarkerInfo(float color) {
mHue = color;
}
private MarkerInfo(Parcel in) {
mHue = in.readFloat();
}
@Override
public int describeContents() {
return 0;
}
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeFloat(mHue);
}
}
/**
* Example of a custom {@code MapFragment} showing how the position of a marker and other
* custom
* {@link Parcelable}s objects can be saved after rotation of the device.
* <p>
* Storing custom {@link Parcelable} objects directly in the {@link Bundle} provided by the
* {@link #onActivityCreated(Bundle)} method will throw a {@code ClassNotFoundException}. This
* is due to the fact that this Bundle is parceled (thus losing its ClassLoader attribute at
* this moment) and unparceled later in a different ClassLoader.
* <br>
* A workaround to store these objects is to wrap the custom {@link Parcelable} objects in a
* new
* {@link Bundle} object.
* <p>
* However, note that it is safe to store {@link Parcelable} objects from the Maps API (eg.
* MarkerOptions, LatLng, etc.) directly in the Bundle provided by the
* {@link #onActivityCreated(Bundle)} method.
*/
public static class SaveStateMapFragment extends SupportMapFragment
implements OnMarkerClickListener, OnMarkerDragListener, OnMapReadyCallback {
private LatLng mMarkerPosition;
private MarkerInfo mMarkerInfo;
private boolean mMoveCameraToMarker;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
if (savedInstanceState == null) {
// Activity created for the first time.
mMarkerPosition = DEFAULT_MARKER_POSITION;
mMarkerInfo = new MarkerInfo(BitmapDescriptorFactory.HUE_RED);
mMoveCameraToMarker = true;
} else {
// Extract the state of the MapFragment:
// - Objects from the API (eg. LatLng, MarkerOptions, etc.) were stored directly in
// the savedInsanceState Bundle.
// - Custom Parcelable objects were wrapped in another Bundle.
mMarkerPosition = savedInstanceState.getParcelable(MARKER_POSITION);
Bundle bundle = savedInstanceState.getBundle(OTHER_OPTIONS);
mMarkerInfo = bundle.getParcelable(MARKER_INFO);
mMoveCameraToMarker = false;
}
getMapAsync(this);
}
@Override
public void onSaveInstanceState(Bundle outState) {
super.onSaveInstanceState(outState);
// All Parcelable objects of the API (eg. LatLng, MarkerOptions, etc.) can be set
// directly in the given Bundle.
outState.putParcelable(MARKER_POSITION, mMarkerPosition);
// All other custom Parcelable objects must be wrapped in another Bundle. Indeed,
// failing to do so would throw a ClassNotFoundException. This is due to the fact that
// this Bundle is being parceled (losing its ClassLoader at this time) and unparceled
// later in a different ClassLoader.
Bundle bundle = new Bundle();
bundle.putParcelable(MARKER_INFO, mMarkerInfo);
outState.putBundle(OTHER_OPTIONS, bundle);
}
@Override
public boolean onMarkerClick(Marker marker) {
float newHue = MARKER_HUES[new Random().nextInt(MARKER_HUES.length)];
mMarkerInfo.mHue = newHue;
marker.setIcon(BitmapDescriptorFactory.defaultMarker(newHue));
return true;
}
@Override
public void onMapReady(GoogleMap map) {
MarkerOptions markerOptions = new MarkerOptions()
.position(mMarkerPosition)
.icon(BitmapDescriptorFactory.defaultMarker(mMarkerInfo.mHue))
.draggable(true);
map.addMarker(markerOptions);
map.setOnMarkerDragListener(this);
map.setOnMarkerClickListener(this);
if (mMoveCameraToMarker) {
map.animateCamera(CameraUpdateFactory.newLatLng(mMarkerPosition));
}
}
@Override
public void onMarkerDragStart(Marker marker) {
}
@Override
public void onMarkerDrag(Marker marker) {
}
@Override
public void onMarkerDragEnd(Marker marker) {
mMarkerPosition = marker.getPosition();
}
}
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.save_state_demo);
}
}
| [
"1150828904@qq.com"
] | 1150828904@qq.com |
2f56492bd38383d44d74526a8b523d71affdb472 | 058ce888b9bb57d5a9a03a47f45a613c1a26cf33 | /app/src/main/java/com/scatl/uestcbbs/module/post/adapter/PostDianPingAdapter.java | eac97aa6b97c4e22cd46e52acada15c67c9f921c | [
"Apache-2.0"
] | permissive | imaginesapce/UestcBBS-MVP | 267dfb4ed413c8d94ef6d6e40db0e30b7bc90d59 | 2132f7a5dce48bf41fbe039860bfdadc995d2c91 | refs/heads/master | 2022-11-21T19:42:29.085463 | 2020-07-24T10:39:12 | 2020-07-24T10:39:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,001 | java | package com.scatl.uestcbbs.module.post.adapter;
import android.util.Log;
import androidx.annotation.NonNull;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.scatl.uestcbbs.R;
import com.scatl.uestcbbs.entity.PostDianPingBean;
import com.scatl.uestcbbs.helper.glidehelper.GlideLoader4Common;
public class PostDianPingAdapter extends BaseQuickAdapter<PostDianPingBean, BaseViewHolder> {
public PostDianPingAdapter(int layoutResId) {
super(layoutResId);
}
@Override
protected void convert(@NonNull BaseViewHolder helper, PostDianPingBean item) {
helper.setText(R.id.item_post_detail_dianping_name, item.userName)
.setText(R.id.item_post_detail_dianping_comment, item.comment)
.setText(R.id.item_post_detail_dianping_date, item.date);
GlideLoader4Common.simpleLoad(mContext, item.userAvatar, helper.getView(R.id.item_post_detail_dianping_avatar));
}
}
| [
"sca_tl@foxmail.com"
] | sca_tl@foxmail.com |
21ec9f2e91880dcc94dd23bac3aebf557359f9f6 | a97ec435e53761f95170eadcabdfd533e031bb20 | /src/uh/ac/cr/shape/ShapePrinter.java | a0b4ff519586d94d97be3d7d482f9166355b2551 | [] | no_license | daniel-medrano/Shapes | abc56d2ab3258dbde9607160edc5ccf5a6315762 | dd6b2d0b4260bea6c1e1ea5273863422a840248b | refs/heads/master | 2023-06-08T05:40:26.709066 | 2021-06-13T20:03:48 | 2021-06-13T20:03:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 7,056 | java | package uh.ac.cr.shape;
import java.util.Scanner;
public class ShapePrinter {
int optionSelected = 0;
Scanner scanner = new Scanner(System.in);
public void selectOption() {
System.out.println("Select the number of the shape you would like to print: ");
System.out.println("""
1: Diamond
2: Square
3: Rectangle
4: Circle
5: Heart
6: Exit
Your answer:\s""");
optionSelected = scanner.nextInt();
}
public int getOption() {
return optionSelected;
}
public void printDiamond(int lengthDesired) {
//Creating a new line, just an visual printing.
System.out.println();
//Calculating number of rows that should be printed.
int rowsToPrint = lengthDesired / 2 + 1;
//For loop to print all the blanks required before printing the * on the next for loop.
for (int actualRow = 1; actualRow <= rowsToPrint; actualRow++) {
//Blank spaces to print
for (int blank = 1; blank <= rowsToPrint - actualRow; blank++) {
System.out.print(" ");
}
//Printing all the * required.
for (int symbol = 1; symbol <= (2 * actualRow) - 1; symbol++) {
System.out.print("*");
}
System.out.println("");
}
//Printing second half of the shape.
rowsToPrint--;
for (int actualRow = 1; actualRow <= rowsToPrint; actualRow++) {
//For loop to print all the blanks required before printing the * on the next for loop.
for (int blank = 1; blank <= actualRow; blank++) {
System.out.print(" ");
}
//Printing all the * required.
for (int symbol = 1; symbol <= (rowsToPrint - actualRow) * 2 + 1; symbol++) {
System.out.print("*");
}
System.out.println();
}
System.out.println("");
}
//1. Analyze this code and check why significant variable names and internal documentation are important.
//I can see that the code is more difficult to understand because of the lack of comments and good variable names. If it had had good documentation I would have been able to understand the code much better.
//2. What does variable x, y, z, dist1 and dist2 are doing in this code?
/*
x is used to go through each row.
y is each element of a row, either a space or a dot.
dist1 and dist2 are for the first part of the heart, to print the half circles. They determine if either a space or a dot is printed taking x and y into account.
*/
//3. Is it easier to understand the code when it has internal documentation?
//Yes, it definitely is
public void printHeart(int size) {
System.out.println();
//It prints the first part of the heart
for (int x = 0; x < size; x++) {
for (int y = 0; y <= 4 * size; y++) {
double dist1 = Math.sqrt(Math.pow(x - size, 2) + Math.pow(y - size, 2));
double dist2 = Math.sqrt(Math.pow(x - size, 2) + Math.pow(y - 3 * size, 2));
if (dist1 < size + 0.5 || dist2 < size + 0.5) {
System.out.print("*");
} else {
System.out.print(" ");
}
}
System.out.println("");
}
//It prints the rest of the heart, which is an upside down triangle.
for (int row = 1; row < 2 * size; row++) {
for (int y = 0; y < row; y++) {
System.out.print(" ");
}
for (int y = 0; y < 4 * size + 1 - 2 * row; y++) {
System.out.print("*");
}
System.out.println("");
}
}
public void printSquare(int size) {
System.out.println("");
//First for to print each row, the amount of dots are determined by the size.
for (int row = 0; row < size; row++) {
//Second for to print each dot of a row, the dots are also determined by the size.
for (int dot = 0; dot < size; dot++) {
if (dot == size - 1) {
System.out.print("*");
} else {
System.out.print("*_");
}
}
//Jumps to the line.
System.out.println("");
}
System.out.println("");
}
public void printRectangle(int height, int width) {
System.out.println("");
//First for to print each row, the rows are determined by the height.
for (int row = 0; row <= height - 1; row++) {
//Second for to print the dots of each row, the dots are determined by the width.
for (int dot = 0; dot <= width - 1; dot++) {
if (dot < width - 1) {
System.out.print("*_");
} else {
System.out.print("*");
}
}
//Once a row is printed, it is time to print the next one by jumping to the next line
System.out.println("");
}
System.out.println("");
}
//The circle method works with a radius as a parameter.
public void printCircle(int radius) {
int diameter = radius % 2 == 0 ? radius * 2 : radius * 2 + 1; //Diameter is calculated taking into account if the number is even or odd.
int amountOfDots = radius; //The initial amount of dots that is going to be printed in the first line is the same as the radius.
int counter = 0; //Counter to print the rows that are going to be of the same size or same amount of dots.
int dots = 2; //The amount of dots that are going to be added or subtracted per row.
System.out.println("");
for (int row = 0; row < diameter; row++) {
//Loop for to print the spaces before the dots.
for (int space = 0; space < (diameter - amountOfDots) / 2; space++) {
System.out.print(" ");
}
//The dots of a row are printed
for (int dot = 0; dot < amountOfDots; dot++) {
System.out.print("*");
}
System.out.println("");
amountOfDots += dots;
//Once the amount of dots reach the size of the diameter, 2 will stop being added to "amountOfDots".
if (amountOfDots == diameter) {
while (counter < radius - 1) {
for (int dot = 0; dot < amountOfDots; dot++) {
System.out.print("*");
}
System.out.println("");
row++;
counter++;
}
//When the rows of the same amount of dots are printed, it is time to reduce the dots. In order to do that "dots" becomes negative.
dots = -dots;
}
}
System.out.println("");
}
} | [
"jdmedrano555@gmail.com"
] | jdmedrano555@gmail.com |
5751ed4eb61f37ae5203de4668730fbc5b0897f6 | 27e46f7f1a9570f4f25b80d14105d6b65599b1e7 | /src/mk/ukim/finki/np/vezbanje1/ArrayEvenOddSumTest.java | 8e8d8ab1a9d959091c07c175362775075ec7987b | [] | no_license | Aleksandar1932/NP | a293d912eaee8b9f81f474b26a2cc2482a0054b0 | e584a088497cd36aeece2cdabcd3748485efd0aa | refs/heads/master | 2020-09-28T05:02:26.008022 | 2020-01-19T16:35:51 | 2020-01-19T16:35:51 | 226,694,885 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,854 | java | package mk.ukim.finki.np.vezbanje1;
/*
Да се направат функции за збир на парните и не парните елементи на низата, и резултатот да се отпечати на стандарден излез
со помош на Streams, а валидноста на резултатот да се провери со помош на итеративна метода.
*/
import java.util.Arrays;
import java.util.Scanner;
public class ArrayEvenOddSumTest {
public static int sumEvenStreams(int[] niza) {
int retValue = 0;
retValue = Arrays.stream(niza)
.filter(k -> k % 2 == 0).sum();
return retValue;
}
public static int sumEven(int[] niza) {
int retValue = 0;
for (int i = 0; i < niza.length; i++) {
if (niza[i] % 2 == 0) {
retValue += niza[i];
}
}
return retValue;
}
public static int sumOddStreams(int[] niza) {
int retValue = 0;
retValue = Arrays.stream(niza)
.filter(k -> k % 2 == 1)
.sum();
return retValue;
}
public static int sumOdd(int[] niza){
int retValue = 0;
for (int i = 0; i < niza.length; i++) {
if (niza[i] % 2 == 1) {
retValue += niza[i];
}
}
return retValue;
}
public static void main(String[] args) {
int[] niza = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
System.out.println("Iterative sum of even elements = " + sumEven(niza));
System.out.println("Streams sum of even elements = " + sumEvenStreams(niza));
System.out.println("Iterative sum of odd elements = " + sumOdd(niza));
System.out.println("Streams sum of odd elements = " + sumOddStreams(niza));
}
}
| [
"aleksandar.ivanovski123@gmail.com"
] | aleksandar.ivanovski123@gmail.com |
bdaa2ec9c35fcda811b6b7a88ab7e0a5cbacfcab | 3abd661e01f1acf86d4b6ad1262c2b146f7fdf7a | /shudailaoshi-util/src/main/java/com/shudailaoshi/utils/RSAUtil.java | d8f9cec303758d6c364b308eb3855cda1262f0a6 | [] | no_license | ephonsun/shudai | bb87b37f8fc880b4f7974983769f80576ff2be2c | adff9859ad8b8213f36e391d53c7a6305d7ea8dd | refs/heads/master | 2020-04-18T02:33:20.838759 | 2018-04-11T10:39:50 | 2018-04-11T10:39:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 9,641 | java | package com.shudailaoshi.utils;
import java.io.ByteArrayOutputStream;
import java.security.Key;
import java.security.KeyFactory;
import java.security.KeyPair;
import java.security.KeyPairGenerator;
import java.security.interfaces.RSAPrivateKey;
import java.security.interfaces.RSAPublicKey;
import java.security.spec.PKCS8EncodedKeySpec;
import java.security.spec.X509EncodedKeySpec;
import java.util.HashMap;
import java.util.Map;
import javax.crypto.Cipher;
import org.apache.commons.lang3.exception.ExceptionUtils;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.util.Base64Utils;
/**
* RSA公钥/私钥/签名工具包 罗纳德·李维斯特(Ron [R]ivest)、阿迪·萨莫尔(Adi [S]hamir)和伦纳德·阿德曼(Leonard
* [A]dleman) 字符串格式的密钥在未在特殊说明情况下都为BASE64编码格式 由于非对称加密速度极其缓慢,一般文件不使用它来加密而是使用对称加密
* 非对称加密算法可以用来对对称加密的密钥加密,这样保证密钥的安全也就保证了数据的安全
*
* @author Liaoyifan
*/
public class RSAUtil {
private static final Logger log = LogManager.getLogger(RSAUtil.class);
/**
* 加密算法RSA
*/
public static final String KEY_ALGORITHM = "RSA";
/**
* 获取公钥的key
*/
private static final String PUBLIC_KEY = "RSAPublicKey";
/**
* 获取私钥的key
*/
private static final String PRIVATE_KEY = "RSAPrivateKey";
/**
* RSA最大加密明文大小
*/
private static final int MAX_ENCRYPT_BLOCK = 117;
/**
* RSA最大解密密文大小
*/
private static final int MAX_DECRYPT_BLOCK = 128;
private RSAUtil() {
}
/**
* 生成密钥对(公钥和私钥)
*
* @return
* @throws Exception
*/
public static Map<String, Object> genKeyPair() {
try {
KeyPairGenerator keyPairGen = KeyPairGenerator.getInstance(KEY_ALGORITHM);
keyPairGen.initialize(1024);
KeyPair keyPair = keyPairGen.generateKeyPair();
RSAPublicKey publicKey = (RSAPublicKey) keyPair.getPublic();
RSAPrivateKey privateKey = (RSAPrivateKey) keyPair.getPrivate();
Map<String, Object> keyMap = new HashMap<String, Object>(2);
keyMap.put(PUBLIC_KEY, publicKey);
keyMap.put(PRIVATE_KEY, privateKey);
return keyMap;
} catch (Exception e) {
log.error(ExceptionUtils.getStackTrace(e));
throw new RuntimeException(e);
}
}
/**
* 私钥解密
*
* @param data
* 已加密数据
* @param privateKey
* 私钥(BASE64编码)
* @return
* @throws Exception
*/
public static byte[] decryptByPrivateKey(String data, String privateKey) {
try {
byte[] encryptedData = Base64Utils.decode(data.getBytes());
byte[] keyBytes = Base64Utils.decode(privateKey.getBytes());
PKCS8EncodedKeySpec pkcs8KeySpec = new PKCS8EncodedKeySpec(keyBytes);
KeyFactory keyFactory = KeyFactory.getInstance(KEY_ALGORITHM);
Key privateK = keyFactory.generatePrivate(pkcs8KeySpec);
Cipher cipher = Cipher.getInstance(keyFactory.getAlgorithm());
cipher.init(Cipher.DECRYPT_MODE, privateK);
int inputLen = encryptedData.length;
ByteArrayOutputStream out = new ByteArrayOutputStream();
int offSet = 0;
byte[] cache;
int i = 0;
// 对数据分段解密
while (inputLen - offSet > 0) {
if (inputLen - offSet > MAX_DECRYPT_BLOCK) {
cache = cipher.doFinal(encryptedData, offSet, MAX_DECRYPT_BLOCK);
} else {
cache = cipher.doFinal(encryptedData, offSet, inputLen - offSet);
}
out.write(cache, 0, cache.length);
i++;
offSet = i * MAX_DECRYPT_BLOCK;
}
byte[] decryptedData = out.toByteArray();
out.close();
return decryptedData;
} catch (Exception e) {
log.error(ExceptionUtils.getStackTrace(e));
throw new RuntimeException(e);
}
}
/**
* 公钥解密
*
* @param data
* 已加密数据
* @param publicKey
* 公钥(BASE64编码)
* @return
* @throws Exception
*/
public static byte[] decryptByPublicKey(String data, String publicKey) {
try {
byte[] encryptedData = Base64Utils.decode(data.getBytes());
byte[] keyBytes = Base64Utils.decode(publicKey.getBytes());
X509EncodedKeySpec x509KeySpec = new X509EncodedKeySpec(keyBytes);
KeyFactory keyFactory = KeyFactory.getInstance(KEY_ALGORITHM);
Key publicK = keyFactory.generatePublic(x509KeySpec);
Cipher cipher = Cipher.getInstance(keyFactory.getAlgorithm());
cipher.init(Cipher.DECRYPT_MODE, publicK);
int inputLen = encryptedData.length;
ByteArrayOutputStream out = new ByteArrayOutputStream();
int offSet = 0;
byte[] cache;
int i = 0;
// 对数据分段解密
while (inputLen - offSet > 0) {
if (inputLen - offSet > MAX_DECRYPT_BLOCK) {
cache = cipher.doFinal(encryptedData, offSet, MAX_DECRYPT_BLOCK);
} else {
cache = cipher.doFinal(encryptedData, offSet, inputLen - offSet);
}
out.write(cache, 0, cache.length);
i++;
offSet = i * MAX_DECRYPT_BLOCK;
}
byte[] decryptedData = out.toByteArray();
out.close();
return decryptedData;
} catch (Exception e) {
log.error(ExceptionUtils.getStackTrace(e));
throw new RuntimeException(e);
}
}
/**
* 公钥加密
*
* @param data
* 源数据
* @param publicKey
* 公钥(BASE64编码)
* @return
* @throws Exception
*/
public static String encryptByPublicKey(byte[] data, String publicKey) {
try {
byte[] keyBytes = Base64Utils.decode(publicKey.getBytes());
X509EncodedKeySpec x509KeySpec = new X509EncodedKeySpec(keyBytes);
KeyFactory keyFactory = KeyFactory.getInstance(KEY_ALGORITHM);
Key publicK = keyFactory.generatePublic(x509KeySpec);
// 对数据加密
Cipher cipher = Cipher.getInstance(keyFactory.getAlgorithm());
cipher.init(Cipher.ENCRYPT_MODE, publicK);
int inputLen = data.length;
ByteArrayOutputStream out = new ByteArrayOutputStream();
int offSet = 0;
byte[] cache;
int i = 0;
// 对数据分段加密
while (inputLen - offSet > 0) {
if (inputLen - offSet > MAX_ENCRYPT_BLOCK) {
cache = cipher.doFinal(data, offSet, MAX_ENCRYPT_BLOCK);
} else {
cache = cipher.doFinal(data, offSet, inputLen - offSet);
}
out.write(cache, 0, cache.length);
i++;
offSet = i * MAX_ENCRYPT_BLOCK;
}
byte[] encryptedData = out.toByteArray();
out.close();
return Base64Utils.encodeToString(encryptedData);
} catch (Exception e) {
log.error(ExceptionUtils.getStackTrace(e));
throw new RuntimeException(e);
}
}
/**
* 私钥加密
*
* @param data
* 源数据
* @param privateKey
* 私钥(BASE64编码)
* @return
* @throws Exception
*/
public static String encryptByPrivateKey(byte[] data, String privateKey) {
try {
byte[] keyBytes = Base64Utils.decode(privateKey.getBytes());
PKCS8EncodedKeySpec pkcs8KeySpec = new PKCS8EncodedKeySpec(keyBytes);
KeyFactory keyFactory = KeyFactory.getInstance(KEY_ALGORITHM);
Key privateK = keyFactory.generatePrivate(pkcs8KeySpec);
Cipher cipher = Cipher.getInstance(keyFactory.getAlgorithm());
cipher.init(Cipher.ENCRYPT_MODE, privateK);
int inputLen = data.length;
ByteArrayOutputStream out = new ByteArrayOutputStream();
int offSet = 0;
byte[] cache;
int i = 0;
// 对数据分段加密
while (inputLen - offSet > 0) {
if (inputLen - offSet > MAX_ENCRYPT_BLOCK) {
cache = cipher.doFinal(data, offSet, MAX_ENCRYPT_BLOCK);
} else {
cache = cipher.doFinal(data, offSet, inputLen - offSet);
}
out.write(cache, 0, cache.length);
i++;
offSet = i * MAX_ENCRYPT_BLOCK;
}
byte[] encryptedData = out.toByteArray();
out.close();
return Base64Utils.encodeToString(encryptedData);
} catch (Exception e) {
log.error(ExceptionUtils.getStackTrace(e));
throw new RuntimeException(e);
}
}
/**
* 获取私钥
*
* @param keyMap
* 密钥对
* @return
* @throws Exception
*/
public static String getPrivateKey(Map<String, Object> keyMap) {
Key key = (Key) keyMap.get(PRIVATE_KEY);
return new String(Base64Utils.encode(key.getEncoded()));
}
/**
* 获取公钥
*
* @param keyMap
* 密钥对
* @return
* @throws Exception
*/
public static String getPublicKey(Map<String, Object> keyMap) {
Key key = (Key) keyMap.get(PUBLIC_KEY);
return new String(Base64Utils.encode(key.getEncoded()));
}
public static void main(String[] args) {
Map<String, Object> keyMap = RSAUtil.genKeyPair();
String publicKey = RSAUtil.getPublicKey(keyMap);
String privateKey = RSAUtil.getPrivateKey(keyMap);
System.out.println("公钥:\n\r" + publicKey);
System.out.println("私钥:\n\r" + privateKey);
System.out.println("【公钥加密——>私钥解密】");
String source = "123456789";
String encodedData = RSAUtil.encryptByPublicKey(source.getBytes(), publicKey);
System.out.println("加密后:\n\r" + encodedData);
byte[] decodedData = RSAUtil.decryptByPrivateKey(encodedData, privateKey);
System.out.println("解密后:\n\r" + new String(decodedData));
System.out.println("************************************************************************************");
System.out.println("【私钥加密——>公钥解密】");
String encodedData2 = RSAUtil.encryptByPrivateKey(source.getBytes(), privateKey);
System.out.println("加密后:\n\r" + encodedData2);
byte[] decodedData2 = RSAUtil.decryptByPublicKey(encodedData2, publicKey);
System.out.println("解密后:\n\r" + new String(decodedData2));
}
} | [
"chstz_365@163.com"
] | chstz_365@163.com |
f89948929817445f43353a44cdb5bc08b66a7b17 | 8fe036da0e8910e730c8d08004f40de9a9ef381c | /source/3/AndroidLearn/src/com/jingtuo/android/common/utils/ImageUtils.java | 0314d4416c8b7f4e032e19df671e2bfe9dd8e899 | [
"MIT"
] | permissive | liufeiit/itmarry | 6a16c879a6d442fae3b32e49a5f3bab978a5f073 | 9d48eac9ebf02d857658b3c9f70dab2321a3362b | refs/heads/master | 2021-01-23T17:19:02.717779 | 2014-07-19T10:32:31 | 2014-07-19T10:32:31 | 20,555,997 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 16,760 | java | package com.jingtuo.android.common.utils;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import android.content.ContentResolver;
import android.content.Context;
import android.database.Cursor;
import android.graphics.Bitmap;
import android.graphics.Bitmap.Config;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.LinearGradient;
import android.graphics.Matrix;
import android.graphics.Paint;
import android.graphics.PorterDuff.Mode;
import android.graphics.PorterDuffXfermode;
import android.graphics.Rect;
import android.graphics.RectF;
import android.graphics.Shader.TileMode;
import android.media.ExifInterface;
import android.provider.MediaStore;
import android.widget.ImageView;
/**
* 一个图片是有点阵和每一点上的颜色信息组成的
* ColorMatrix会将array转成5*4的矩阵与原来图片的每个颜色5*1的矩阵({RGBA1})进行相乘,
* 最后获得新图片的颜色,简单的理解就是处理图片的颜色.
* Matrix会将数组a转成3*3的矩阵与原来图片的点位置3*1的矩阵相乘,最后获得新图片的位置,
* 简单的理解就是处理图片的形状位置.如果布局文件中的长宽设置成固定值,移动了图片的位置之后,会有部分看不见.
* 更具体的话有待研究
* Matrix m = new Matrix();
float[] a = {
0, 0, 100,
2, 1, 120,
0, 0, 1};
m.setValues(a);
*/
public class ImageUtils {
/**
* 将图片的直角改成圆角,本方法是通过代码实现,
* 另一种方式:使用图片覆盖的原理,将一个中间透明四个直角不能是透明的图片盖在目标图片上面.
* @param bitmap
* @param roundRect
* @return
*/
public static Bitmap changeRightAngleToRoundedCorners(Bitmap bitmap, float roundRect) {
Bitmap output = Bitmap.createBitmap(bitmap.getWidth(), bitmap.getHeight(), Config.ARGB_8888);
Canvas canvas = new Canvas(output);
Paint paint = new Paint();
Rect src = new Rect(0, 0, bitmap.getWidth(), bitmap.getHeight());
Rect dst = new Rect(0, 0, bitmap.getWidth(), bitmap.getHeight());
RectF rectF = new RectF(dst);
paint.setAntiAlias(true);
canvas.drawARGB(0, 0, 0, 0);
paint.setColor(Color.YELLOW);
canvas.drawRoundRect(rectF, roundRect, roundRect, paint);
/**
* Mode的常量,以下所写只是在当前环境的效果
* SRC_IN:会将原图片的四个直角去掉
* SRC_OUT:会保留原图片的四个直角,与SRC_IN相反
* SRC:则不会对原图片做处理
* DST_IN:会用画笔paint的颜色(默认是黑色)绘制圆角矩形
* DST:同上
* MULTIPLY:也可以去掉四个直角,但是必须设置画笔paint的颜色,
* 这种方式是在已经形成圆角图形上面再用画笔的颜色绘制一层,如果不设置画笔的颜色,而默认是黑色的,结果就形成了一个黑色圆角矩形
* XOR与SRC_OUT一样
*/
paint.setXfermode(new PorterDuffXfermode(Mode.MULTIPLY));
canvas.drawBitmap(bitmap, src, dst, paint);
return output;
}
/**
* 获得图片的倒影图片
* @param bitmap
* @return
*/
public static Bitmap getReflectionBitmap(Bitmap bitmap) {
int reflectionGap = 4;
int width = bitmap.getWidth();
int height = bitmap.getHeight();
Matrix matrix = new Matrix();
matrix.preScale(3, -3);
Bitmap reflectionBitmap = Bitmap.createBitmap(bitmap, 0, 0,
width, height, matrix, false);
Bitmap bitmapWithReflection = Bitmap.createBitmap(width, (height + height/2), Config.ARGB_8888);
Canvas canvas = new Canvas(bitmapWithReflection);
canvas.drawBitmap(bitmap, 0, 0, null);
Paint deafalutPaint = new Paint();
canvas.drawRect(0, height, width, height + reflectionGap, deafalutPaint);
canvas.drawBitmap(reflectionBitmap, 0, height + reflectionGap, null);
Paint paint = new Paint();
LinearGradient shader = new LinearGradient(0, bitmap.getHeight(), 0,
bitmapWithReflection.getHeight() + reflectionGap, 0x70ffffff,
0x00ffffff, TileMode.CLAMP);
paint.setShader(shader);
// Set the Transfer mode to be porter duff and destination in
paint.setXfermode(new PorterDuffXfermode(Mode.DST_IN));
// Draw a rectangle using the paint with our linear gradient
canvas.drawRect(0, height, width, bitmapWithReflection.getHeight()
+ reflectionGap, paint);
return bitmapWithReflection;
}
/**
* {bucket_id=-1928128949, orientation=null, date_modified=1970-01-16 11:08:03,
* picasa_id=null, bucket_display_name=download, title=6176737036536355860,
* mini_thumb_magic=5227899009342766363, mime_type=image/jpeg, _id=10, isprivate=null,
* _display_name=6176737036536355860.jpg, date_added=1970-01-15 14:11:33,
* description=null, _size=84416, longitude=null, latitude=null,
* datetaken=2011-06-05 22:19:48, _data=/mnt/sdcard/download/6176737036536355860.jpg}
* @param context
* @return
*/
public static List<Map<String, String>> getLocalImage(Context context){
ContentResolver contentResolver = context.getContentResolver();
String selection = MediaStore.Images.Media.MIME_TYPE + "=?";
String[] selectionArgs = {"image/jpeg"};
Cursor cursor = contentResolver.query(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, null, selection, selectionArgs, null);
List<Map<String, String>> list = new ArrayList<Map<String,String>>();
Map<String, String> map = null;
if (cursor != null) {
cursor.moveToFirst();
while (cursor.getPosition() != cursor.getCount()) {
map = new HashMap<String, String>();
map.put(MediaStore.Images.Media._ID, cursor.getString(cursor.getColumnIndex(MediaStore.Images.Media._ID)));
map.put(MediaStore.Images.Media.BUCKET_DISPLAY_NAME, cursor.getString(cursor.getColumnIndex(MediaStore.Images.Media.BUCKET_DISPLAY_NAME)));
map.put(MediaStore.Images.Media.BUCKET_ID, cursor.getString(cursor.getColumnIndex(MediaStore.Images.Media.BUCKET_ID)));
map.put(MediaStore.Images.Media.DATA, cursor.getString(cursor.getColumnIndex(MediaStore.Images.Media.DATA)));
Long date_added = cursor.getLong(cursor.getColumnIndex(MediaStore.Images.Media.DATE_ADDED));
map.put(MediaStore.Images.Media.DATE_ADDED, DateTimeUtils.toString(new Date(date_added), null));
Long date_modified = cursor.getLong(cursor.getColumnIndex(MediaStore.Images.Media.DATE_MODIFIED));
map.put(MediaStore.Images.Media.DATE_MODIFIED, DateTimeUtils.toString(new Date(date_modified), null));
Long date_taken = cursor.getLong(cursor.getColumnIndex(MediaStore.Images.Media.DATE_TAKEN));
map.put(MediaStore.Images.Media.DATE_TAKEN, DateTimeUtils.toString(new Date(date_taken), null));
map.put(MediaStore.Images.Media.DESCRIPTION, cursor.getString(cursor.getColumnIndex(MediaStore.Images.Media.DESCRIPTION)));
map.put(MediaStore.Images.Media.DESCRIPTION, cursor.getString(cursor.getColumnIndex(MediaStore.Images.Media.DESCRIPTION)));
map.put(MediaStore.Images.Media.DISPLAY_NAME, cursor.getString(cursor.getColumnIndex(MediaStore.Images.Media.DISPLAY_NAME)));
map.put(MediaStore.Images.Media.IS_PRIVATE, cursor.getString(cursor.getColumnIndex(MediaStore.Images.Media.IS_PRIVATE)));
map.put(MediaStore.Images.Media.LATITUDE, cursor.getString(cursor.getColumnIndex(MediaStore.Images.Media.LATITUDE)));
map.put(MediaStore.Images.Media.LONGITUDE, cursor.getString(cursor.getColumnIndex(MediaStore.Images.Media.LONGITUDE)));
map.put(MediaStore.Images.Media.MIME_TYPE, cursor.getString(cursor.getColumnIndex(MediaStore.Images.Media.MIME_TYPE)));
map.put(MediaStore.Images.Media.MINI_THUMB_MAGIC, cursor.getString(cursor.getColumnIndex(MediaStore.Images.Media.MINI_THUMB_MAGIC)));
map.put(MediaStore.Images.Media.ORIENTATION, cursor.getString(cursor.getColumnIndex(MediaStore.Images.Media.ORIENTATION)));
map.put(MediaStore.Images.Media.PICASA_ID, cursor.getString(cursor.getColumnIndex(MediaStore.Images.Media.PICASA_ID)));
map.put(MediaStore.Images.Media.SIZE, cursor.getLong(cursor.getColumnIndex(MediaStore.Images.Media.SIZE)) + "");
map.put(MediaStore.Images.Media.TITLE, cursor.getString(cursor.getColumnIndex(MediaStore.Images.Media.TITLE)));
list.add(map);
cursor.moveToNext();
}
cursor.close();
}
return list;
}
/**
*
* @param bitmap
* @param maxsize 以KB为单位
* @return
*/
public static Bitmap compressAtQuality(Bitmap bitmap, int maxsize) {
ByteArrayOutputStream baos = new ByteArrayOutputStream();
int options = 100;
bitmap.compress(Bitmap.CompressFormat.JPEG, options, baos);
System.out.println("old size:" + baos.toByteArray().length);
while(true){
if(baos.toByteArray().length > maxsize){
if(options<=50){
break;
}
baos.reset();
options -= 10;// 每次都减少10
bitmap.compress(Bitmap.CompressFormat.JPEG, options, baos);
}else{
break;
}
}
System.out.println("new size:" + baos.toByteArray().length);
ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray());
bitmap = BitmapFactory.decodeStream(bais, null, null);
return bitmap;
}
/**
* 将彩色图转换为灰度图
*
* @param bitmap
* 位图
* @return 返回转换好的位图
*/
public static Bitmap convertGreyImg(Bitmap bitmap) {
int width = bitmap.getWidth(); // 获取位图的宽
int height = bitmap.getHeight(); // 获取位图的高
int[] pixels = new int[width * height]; // 通过位图的大小创建像素点数组
bitmap.getPixels(pixels, 0, width, 0, 0, width, height);
int alpha = 0xFF << 24;
for (int i = 0; i < height; i++) {
for (int j = 0; j < width; j++) {
int grey = pixels[width * i + j];
int red = ((grey & 0x00FF0000) >> 16);
int green = ((grey & 0x0000FF00) >> 8);
int blue = (grey & 0x000000FF);
grey = (int) ((float) red * 0.3 + (float) green * 0.59 + (float) blue * 0.11);
grey = alpha | (grey << 16) | (grey << 8) | grey;
pixels[width * i + j] = grey;
}
}
Bitmap result = Bitmap.createBitmap(width, height, Config.RGB_565);
result.setPixels(pixels, 0, width, 0, 0, width, height);
return result;
}
/**
* 通过url地址获取位图
* @param urlpath
* @return
*/
public Bitmap getBitmap(String urlpath) {
URL url = null;
Bitmap bitmap = null;
try {
url = new URL(urlpath);
HttpURLConnection conn = (HttpURLConnection) url
.openConnection();
conn.setDoInput(true);
conn.connect();
InputStream is = conn.getInputStream();
bitmap = BitmapFactory.decodeStream(is);
is.close();
} catch (Exception e) {
e.printStackTrace();
}
return bitmap;
}
/**
* 修改位图的宽度和高低
* @param bitmap
* @param newWidth 如果为0,缩放比例按照高度的缩放比例
* @param newHeight 如果为0,缩放比例按照宽度的缩放比例
* @return
*/
public static Bitmap modifyBitmap(Bitmap bitmap, int newWidth, int newHeight) {
int width = bitmap.getWidth();
int height = bitmap.getHeight();
float scaleWidth = 0;
float scaleHeight = 0;
if(newWidth==0){
scaleWidth = ((float) newHeight) / height;
}else{
scaleWidth = ((float) newWidth) / width;
}
if(newHeight==0){
scaleHeight = ((float) newWidth) / width;
}else{
scaleHeight = ((float) newHeight) / height;
}
Matrix matrix = new Matrix();
// resize the Bitmap
matrix.postScale(scaleWidth, scaleHeight);
// if you want to rotate the Bitmap
// matrix.postRotate(45);
Bitmap result = Bitmap.createBitmap(bitmap, 0, 0, width,
height, matrix, true);
return result;
}
/**
*
* @param imageView
* @param pathName
*/
public static void setImageView(ImageView imageView, String pathName) {
// Get the dimensions of the View
if(imageView==null||pathName==null||pathName.equals("")){
return ;
}
int targetW = imageView.getWidth();
int targetH = imageView.getHeight();
// Get the dimensions of the bitmap
BitmapFactory.Options bmOptions = new BitmapFactory.Options();
bmOptions.inJustDecodeBounds = true;
BitmapFactory.decodeFile(pathName, bmOptions);
int photoW = bmOptions.outWidth;
int photoH = bmOptions.outHeight;
// Determine how much to scale down the image
int scaleFactor = 1;
if(targetW!=0&&targetH!=0){
scaleFactor = Math.min(photoW/targetW, photoH/targetH);
}
// Decode the image file into a Bitmap sized to fill the View
bmOptions.inJustDecodeBounds = false;
bmOptions.inSampleSize = scaleFactor;
bmOptions.inPurgeable = true;
Bitmap bitmap = BitmapFactory.decodeFile(pathName, bmOptions);
imageView.setImageBitmap(bitmap);
}
/**
* 判断图片是横向还是纵向,返回接口参加ExifInterface.ORIENTATION_xxxxx
* @param pathName
* @return
*/
private static int getOrientation(String pathName){
int orientation = ExifInterface.ORIENTATION_NORMAL;
try {
ExifInterface exifInterface = new ExifInterface(pathName);
orientation = exifInterface.getAttributeInt(ExifInterface.TAG_ORIENTATION, ExifInterface.ORIENTATION_NORMAL);
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
return orientation;
}
/**
* 从文件路径读取图片,按照宽度比例进行缩小
* @param pathName
* @param dstWidth
* @param targetH
* @return
*/
public static Bitmap decodeFile(String pathName, int dstWidth){
if(pathName==null||pathName.equals("")){
return null;
}
//获取图片的水平还是垂直
int orientation = getOrientation(pathName);
// Get the dimensions of the bitmap
BitmapFactory.Options bmOptions = new BitmapFactory.Options();
bmOptions.inJustDecodeBounds = true;
BitmapFactory.decodeFile(pathName, bmOptions);
int photoW = bmOptions.outWidth;
int photoH = bmOptions.outHeight;
// Determine how much to scale down the image
int srcWidth;
int srcHeight;
if(orientation==ExifInterface.ORIENTATION_NORMAL||orientation==ExifInterface.ORIENTATION_ROTATE_180){//旋转180对缩放无影响
srcWidth = photoW;
srcHeight = photoH;
}else{
srcWidth = photoH;
srcHeight = photoW;
}
int inSampleSize = 1;
if (srcWidth > dstWidth) {
int halfWidth = srcWidth / 2;
// Calculate the largest inSampleSize value that is a power of 2 and keeps both
// height and width larger than the requested height and width.
while ((halfWidth / inSampleSize) > dstWidth) {
inSampleSize *= 2;
}
}
// Decode the image file into a Bitmap sized to fill the View
bmOptions.inJustDecodeBounds = false;
bmOptions.inSampleSize = inSampleSize;
bmOptions.inPurgeable = true;
Bitmap bitmap = BitmapFactory.decodeFile(pathName, bmOptions);
//进行旋转
Matrix m = new Matrix();
if(orientation==ExifInterface.ORIENTATION_NORMAL){
m.setRotate(0);
}else if(orientation==ExifInterface.ORIENTATION_ROTATE_90){
m.setRotate(90);
}else if(orientation==ExifInterface.ORIENTATION_ROTATE_180){
m.setRotate(180);
}else if(orientation==ExifInterface.ORIENTATION_ROTATE_270){
m.setRotate(270);
}
bitmap = Bitmap.createBitmap(bitmap, 0, 0, bitmap.getWidth(), bitmap.getHeight(), m, true);
int disHeight = srcHeight * dstWidth / srcWidth;
bitmap = Bitmap.createScaledBitmap(bitmap, dstWidth, disHeight, true);
return bitmap;
}
/**
* 获取bitmap的bytes
* @param bitmap
* @return
*/
public static int getBytes(Bitmap bitmap){
int size = 0;
if(bitmap!=null){
int width = bitmap.getWidth();
int height = bitmap.getHeight();
if(Bitmap.Config.ALPHA_8==bitmap.getConfig()){
size = width*height;
}else if(Bitmap.Config.ARGB_4444==bitmap.getConfig()){
size = width*height * 2;
}else if(Bitmap.Config.ARGB_8888==bitmap.getConfig()){
size = width*height * 4;
}else if(Bitmap.Config.RGB_565==bitmap.getConfig()){
size = width*height * 2;
}
}
return size;
}
}
| [
"liufei_it@126.com"
] | liufei_it@126.com |
0902b35deb8c788a4ddf54ff8f9f014d44cb1042 | b3119bcb3c020db280f923f348c0d9c910d17f34 | /src/main/java/dto/ProductDAO.java | 5a01c1ac8c7edddd4f47bbe04b8813b38d926b5c | [] | no_license | Yuta2049/09_WebBasic_Servlets | eb67be5cb69d3aae57e964281c0da36f3edc3e6a | 02664874b3e2d54898f6655a1d6b462a269c9b52 | refs/heads/master | 2020-04-13T05:34:45.019574 | 2018-12-29T08:46:26 | 2018-12-29T08:46:26 | 162,996,349 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,989 | java | package dto;
import model.Product;
import java.util.ArrayList;
import java.util.List;
public class ProductDAO {
public List<Product> findAll() {
List<Product> products = new ArrayList<>();
products.add(new Product(0, "Elysium (Pandorum)", 1,300000, "elysium_pandorum.jpg"));
products.add(new Product(1, "Death star (Star wars)", 1,300000, "death_star.jpg"));
products.add(new Product(2, "Ещё большой корабль", 1,300000, "elysium_pandorum.jpg"));
products.add(new Product(3, "Avalon (Passengers)", 1,300000, "axiom_wall_e.jpg"));
products.add(new Product(4, "Axiom (WALL-E)", 1,300000, "elysium_pandorum.jpg"));
products.add(new Product(5, "Tet (Oblivion)", 1,300000, "tet_oblivion.jpg"));
products.add(new Product(6, "Ещё большой корабль", 1,300000, "elysium_pandorum.jpg"));
products.add(new Product(7, "Ещё большой корабль", 1,300000, "elysium_pandorum.jpg"));
products.add(new Product(8, "Ещё большой корабль", 1,300000, "elysium_pandorum.jpg"));
products.add(new Product(9, "Alien ship (Prometheus)", 2,300000, "alien_prometheus.jpg"));
products.add(new Product(10, "Rocinante (Expanse)", 2,300000, "rocinante_expanse.jpg"));
products.add(new Product(11, "Alien ship (Prometheus)", 2,300000, "alien_prometheus.jpg"));
products.add(new Product(12, "Alien ship (Prometheus)", 2,300000, "alien_prometheus.jpg"));
products.add(new Product(13, "Восток-1 (Юрий Гагарин)", 3,300000, "vostok_1_gagarin.jpg"));
products.add(new Product(14, "Пепелац (Кин-Дза-Дза)", 3,300000, "pepelaz_kin_dza_dza.jpg"));
products.add(new Product(15, "BubbleShip (Oblivion)", 3,300000, "bubbleship_oblivion.jpg"));
products.add(new Product(16, "Пепелац (Кин-Дза-Дза)", 3,300000, "pepelaz_kin_dza_dza.jpg"));
return products;
}
}
| [
"vinci2049@gmail.com"
] | vinci2049@gmail.com |
6168cf66937b4e29d4fd602d245904af2b95953e | 242247576a71469c33b7a2db4e4095098899b95c | /app/src/main/java/com/wingjay/jayandroid/fastblur/RenderScriptBlur.java | 09895041484605b6457b96872265090a5c5b5d02 | [
"Apache-2.0"
] | permissive | wingjay/jayAndroid | d4286b63f06bf34fb22f02b5d8bcfc15a8cc2742 | b9dc51fe4a22bd89d5f5de2a929b5d6422ec0771 | refs/heads/master | 2021-01-10T02:19:24.425015 | 2018-06-04T06:48:48 | 2018-06-04T06:48:48 | 45,467,601 | 2 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,369 | java | package com.wingjay.jayandroid.fastblur;
import android.content.Context;
import android.graphics.Bitmap;
import android.renderscript.Allocation;
import android.renderscript.Element;
import android.renderscript.RenderScript;
import android.renderscript.ScriptIntrinsicBlur;
/**
* Created by jay on 11/19/15.
*/
public class RenderScriptBlur {
private static final int DEFAULT_BLUR_RADIUS = 10;
public static Bitmap apply(Context context, Bitmap sentBitmap) {
return apply(context, sentBitmap, DEFAULT_BLUR_RADIUS);
}
public static Bitmap apply(Context context, Bitmap sentBitmap, int radius) {
final Bitmap bitmap = sentBitmap.copy(sentBitmap.getConfig(), true);
final RenderScript rs = RenderScript.create(context);
final Allocation input = Allocation.createFromBitmap(rs, sentBitmap, Allocation.MipmapControl.MIPMAP_NONE, Allocation.USAGE_SCRIPT);
final Allocation output = Allocation.createTyped(rs, input.getType());
final ScriptIntrinsicBlur script = ScriptIntrinsicBlur.create(rs, Element.U8_4(rs));
script.setRadius(radius);
script.setInput(input);
script.forEach(output);
output.copyTo(bitmap);
sentBitmap.recycle();
rs.destroy();
input.destroy();
output.destroy();
script.destroy();
return bitmap;
}
}
| [
"wingjaysjtu@gmail.com"
] | wingjaysjtu@gmail.com |
ec5e47198c6621a1c0f17414073b16a0a0f3fd59 | 70ff442cb1e2fd9d13a6cd720a493c58b63d832c | /day6/Collections/src/com/hcl/project/StudentDao.java | 2b8f7bc7b973ceed991041000db73373c5450985 | [] | no_license | PendekantiNagendra/Java | 8aa8bf7cf78d1274c7e079ebf6eb49a84b140be9 | 06f50bf49c36019b97c79ac071033406795df3bd | refs/heads/master | 2022-12-30T09:11:52.123979 | 2019-09-10T09:24:48 | 2019-09-10T09:24:48 | 199,590,474 | 1 | 0 | null | 2022-12-15T23:30:18 | 2019-07-30T06:37:20 | JavaScript | UTF-8 | Java | false | false | 1,252 | java | package com.hcl.project;
import java.util.ArrayList;
import java.util.List;
public class StudentDao {
static List<Student> lstStudent = null;
static {
lstStudent = new ArrayList<Student>();
}
public String addStudent(Student student) {
lstStudent.add(student);
return "student Created Successfully...";
}
public Student searchStudentDAO(int sno) {
Student objStudent = null;
for (Student student : lstStudent) {
if (student.getSno() == sno) {
objStudent = student;
}
}
return objStudent;
}
public List<Student> showStudentDAO() {
return lstStudent;
}
public String updateStudentDAO(Student objStudent) {
Student student = searchStudentDAO(objStudent.getSno());
if (student != null) {
for (Student s : lstStudent) {
if (s.getSno() == objStudent.getSno()) {
s.setName(objStudent.getName());
s.setCity(objStudent.getCity());
s.setCgp(objStudent.getCgp());
}
}
return "Record Updated...";
} else {
return "Student No Not Found...";
}
}
public String deleteStudentDAO(int sno) {
Student student = searchStudentDAO(sno);
if (student != null) {
lstStudent.remove(student);
return "Student Removed...";
} else {
return "Student No Not Found...";
}
}
}
| [
"nagendra471info@gmail.com"
] | nagendra471info@gmail.com |
bdda4aaf23916a89bbffa1a8cc0ff89fd4fc3878 | f25233b221c9043cb13ac0dc35d03fcb9dd60e61 | /Arquivos/src/br/com/zed/sistema/ControladorDeArquivos.java | 10a8b97c17de4b7d49099df7599439cf9b814b60 | [] | no_license | Zeds2015/TrabalhoComArquivos | 240fa4fadaca28fbbe99230359ac41520dcfb51c | 61ec02c51df00326d64d4c14926bf18a17c5dffe | refs/heads/master | 2021-04-29T23:44:42.706026 | 2018-02-20T23:27:23 | 2018-02-20T23:27:23 | 121,562,286 | 0 | 0 | null | null | null | null | MacCentralEurope | Java | false | false | 4,059 | java | package br.com.zed.sistema;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.PrintStream;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.Date;
import java.util.GregorianCalendar;
import java.util.Scanner;
import br.com.zed.Arquivos.Arquivo;
import br.com.zed.Arquivos.ArquivoBat;
public class ControladorDeArquivos {
private File controlador;
private Arquivo arquivo;
private Date data;
public ControladorDeArquivos(Arquivo arquivo) {
data = new GregorianCalendar().getTime();
this.arquivo = arquivo;
controlador = new File(this.arquivo.GetNomeDoArquivo());
}
public void CriarArquivo() {
try {
controlador.createNewFile();
} catch (IOException erro) {
System.out.println("Erro: " + erro.getMessage());
}
}
public boolean ExisteArquivo(String nomeDoArquivo) {
nomeDoArquivo += arquivo.GetTipoDoArquivo();
File arquivo = new File(nomeDoArquivo);
return arquivo.exists();
}
public void CopiarArquivo(String nomeDoArquivo, boolean sobreescrever) {
nomeDoArquivo += arquivo.GetTipoDoArquivo();
if (!ExisteArquivo() || sobreescrever) {
try {
try (Scanner leitor = new Scanner(new FileInputStream(arquivo.GetNomeDoArquivo()))) {
try (PrintStream escritor = new PrintStream(nomeDoArquivo)) {
while (leitor.hasNextLine()) {
escritor.println(leitor.nextLine());
}
}
}
System.out.println("Arquivo copiado com sucesso!");
} catch (IOException erro) {
System.out.println("Erro: " + erro.getMessage());
}
} else
System.out.println("Infelizmente jŠ temos um arquivo com o mesmo nome!");
}
public void Renomear(String nomeDoArquivo) {
arquivo.Renomear(nomeDoArquivo, arquivo.GetTipoDoArquivo());
controlador.renameTo(new File(arquivo.GetNomeDoArquivo()));
}
public boolean ExisteArquivo() {
return controlador.exists();
}
public void DeletarArquivo() {
Path caminho = Paths.get(arquivo.GetNomeDoArquivo());
try {
Files.delete(caminho);
} catch (IOException erro) {
System.out.println("Erro: " + erro.getMessage());
}
}
public int QuantasVezesDigiteiTalPalavra(String palavra) {
int contador = 0;
String[] palavras = arquivo.GetTexto().split(" ");
for (int i = 0; i < palavras.length; i++) {
if (palavras[i].contains(palavra)) {
contador++;
}
}
return contador;
}
public void ConverterTipos(TipoArquivo seuTipo, boolean escolhaPadrao) {
String tipoAnteriorDoArquivo = arquivo.GetTipoDoArquivo();
if (seuTipo.equals(TipoArquivo.txt)) {
if (escolhaPadrao)
arquivo.TrocarDeTipo(TipoArquivo.rtf);
else
arquivo.TrocarDeTipo(TipoArquivo.bat);
} else if (seuTipo.equals(TipoArquivo.rtf)) {
if (escolhaPadrao)
arquivo.TrocarDeTipo(TipoArquivo.txt);
else
arquivo.TrocarDeTipo(TipoArquivo.bat);
} else {
if (escolhaPadrao)
arquivo.TrocarDeTipo(TipoArquivo.txt);
else
arquivo.TrocarDeTipo(TipoArquivo.rtf);
}
Renomear(arquivo.GetNomeDoArquivo().replace(tipoAnteriorDoArquivo, ""));
}
public void ListarDiretorios() {
File diretorio = new File(controlador.getAbsolutePath().replace(arquivo.GetNomeDoArquivo(), ""));
if (diretorio.isDirectory()) {
String[] arquivos = diretorio.list();
for (String arquivo : arquivos) {
System.out.println(arquivo);
}
} else
System.out.println("Erro!");
}
public void Executar() {
new ArquivoBat(arquivo.GetNomeDoArquivo().replace(arquivo.GetTipoDoArquivo(), "")).ExecutarArquivo();
}
public Arquivo GetArquivo() {
return arquivo;
}
@Override
public String toString() {
controlador = new File(arquivo.GetNomeDoArquivo());
StringBuilder texto = new StringBuilder(arquivo.toString());
texto.append("\n");
texto.append("Caminho do arquivo: " + controlador.getAbsolutePath());
texto.append("\n");
texto.append("Data: " + data);
return texto.toString();
}
}
| [
"noreply@github.com"
] | noreply@github.com |
d09e4c7ad9ecc467f0c8af0cbd0770c07af0c307 | 277366117f16ca1c1722dae73c5d5c38e438b055 | /src/main/java/com/atguigu/springboot/controller/LoginHandlerInterceptor.java | e32067d57f208b0724e3e713e43101abadea40d4 | [] | no_license | f-ke/spring-boot-04-web-restfulcrud | bb375bdb95d94bf65acc3d4b8b74ad4d63df152c | 09ef922081b58d6915940b7ce91ddb1d4727f9c4 | refs/heads/master | 2020-12-18T14:20:15.973559 | 2020-02-04T22:08:41 | 2020-02-04T22:08:41 | 238,311,612 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,172 | java | package com.atguigu.springboot.controller;
import org.springframework.web.servlet.HandlerInterceptor;
import org.springframework.web.servlet.ModelAndView;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
public class LoginHandlerInterceptor implements HandlerInterceptor {
@Override
public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {
Object user = request.getSession().getAttribute("loginuser");
if(user == null) {
//未登录,返回登录页面
request.setAttribute("msg","no right to access, please login ");
request.getRequestDispatcher("index.html").forward(request, response);
return false;
}else{
return true;
}
}
@Override
public void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler, ModelAndView modelAndView) throws Exception {
}
@Override
public void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex) throws Exception {
}
}
| [
"1945334800@qq.com"
] | 1945334800@qq.com |
87cdc7080cf70b183b8399674b4f666661a6c46c | 90055804feafb1cd7084d92687a86149d75f3aa2 | /src/com/ssm/service/impl/BillServiceImpl.java | 73668ceafacb4501744714a2105e37518b6a0431 | [] | no_license | null9012/SupermarketOrder | 396241fc3d56d43c321051778a3157edad62a7d3 | 5e2caaf747d1ccbd63432a92dde012474329282f | refs/heads/master | 2020-07-11T22:51:36.001153 | 2019-08-27T08:53:41 | 2019-08-27T08:53:41 | 204,660,774 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,265 | java | package com.ssm.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ssm.mapper.BillMapper;
import com.ssm.pojo.Bill;
import com.ssm.service.BillService;
@Service("billService")
public class BillServiceImpl implements BillService{
@Autowired
private BillMapper billMapper;
@Override
public List<Bill> selectByProviderId(int providerId) {
return this.billMapper.selectByProviderId(providerId);
}
@Override
public List<Bill> billList() {
return billMapper.billList();
}
@Override
public Bill selectBillById(String billCode) {
return billMapper.selectBillById(billCode);
}
@Override
public int createBill(Bill bill) {
return billMapper.createBill(bill);
}
@Override
public int updateBill(Bill bill) {
return billMapper.updateBill(bill);
}
@Override
public int deleteBill(Bill bill) {
return billMapper.deleteBill(bill);
}
@Override
public List<Bill> select(Bill bill) {
return billMapper.select(bill);
}
@Override
public Bill selectBillCode(String billCode) {
// TODO Auto-generated method stub
return billMapper.selectBillCode(billCode);
}
}
| [
"xcdn@DESKTOP-0AELOR1"
] | xcdn@DESKTOP-0AELOR1 |
3fbc4a827fa7b3bfe6336165885a5d00c484ee70 | 269012d57863cf20a2e9372a03017d2994a48b11 | /HashTable/GroupShiftedStrings.java | 4c5da8e9dfa264af0fe03780ee2058a938871e46 | [] | no_license | hyajue/Algorithm_Jill | ffeead77503ffaf26115105eb8cbdc8f00a6fb3e | 2975ccdd45f3058372d4827586e70d9731611c04 | refs/heads/master | 2021-07-21T17:47:48.498475 | 2018-03-06T19:22:20 | 2018-03-06T19:22:20 | 95,870,441 | 2 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,518 | java | package HashTable;
import java.util.HashMap;
import java.util.List;
/**
* Given a string, we can "shift" each of its letter to its successive letter, for example: "abc" -> "bcd". We can keep "shifting" which forms the sequence:
*
* "abc" -> "bcd" -> ... -> "xyz" Given a list of strings which contains only lowercase alphabets, group all strings that belong to the same shifting sequence.
*
* For example, given: ["abc", "bcd", "acef", "xyz", "az", "ba", "a", "z"], A solution is:
*
* [
* ["abc","bcd","xyz"],
* ["az","ba"],
* ["acef"],
* ["a","z"]
* ]
*/
/*
举例理解:
["eqdf", "qcpr"]
((‘q’ - 'e') + 26) % 26 = 12, ((‘d’ - 'q') + 26) % 26 = 13, ((‘f’ - 'd') + 26) % 26 = 2
((‘c’ - 'q') + 26) % 26 = 12, ((‘p’ - 'c') + 26) % 26 = 13, ((‘r’ - 'p') + 26) % 26 = 2
所以"eqdf"和"qcpr"是一组shifted strings
*/
public class GroupShiftedStrings {
public List<List<String>> groupStrings(String[] strings) {
List<List<String>> res = new ArrayList<List<String>>();
if(strings == null || strings.length == 0) reList<E> res;
HashMap<String, List<String>> map = new HashMap<String, List<String>>();
for(String str : strings){
String key = "";
for(int i = 1; i < str.length(); i++){
int offset = str.charAt(i) - str.charAt(i-1);
key += offset > 0 ? offset : (offset + 26);
}
if(!map.containsKey(key))
map.put(key, new ArrayList<Integer>());
map.get(key).add(str);
}
for(List<String> list : map.values())
res.add(list);
return res;
}
}
| [
"jillli@users.noreply.github.com"
] | jillli@users.noreply.github.com |
c64a4fd70937b7689edd1ee392028e4095fb53d6 | dd86a6b8e862a75218216480861e455f202ed34e | /app/src/main/java/com/reedoei/data/scraping/query/InvalidQueryException.java | 950475089f1ccc6bbd40d0e81bf8c559ec9c47a7 | [] | no_license | ReedOei/DataApp | 5ec7f9390de0e5c63e2ab203d38e821956130c10 | 2dac46522cc0b2f588f5c09f561500a045d8f703 | refs/heads/master | 2021-01-24T01:05:03.307335 | 2018-02-25T19:24:43 | 2018-02-25T19:24:43 | 122,796,975 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 219 | java | package com.reedoei.data.scraping.query;
/**
* Created by roei on 2/24/18.
*/
public class InvalidQueryException extends Exception {
public InvalidQueryException(String message) {
super(message);
}
}
| [
"oei.reed@gmail.com"
] | oei.reed@gmail.com |
ed206a2d84db1bd759e8ab9329780838552ce4d4 | 4e856508c5626f6513e9b8adaed631f0a0d7a84b | /app/src/main/java/com/turman/fb/example/http/GetData.java | be0fa80b273db375d67a43a34e5e0cdbd166d7cc | [] | no_license | buobao/FB | b7a09240c4d7becbba5e84bb2e1ce5ee1661e379 | b082ecfc71a3c1191c619bb090964c0171d61553 | refs/heads/master | 2016-08-11T19:09:26.604227 | 2016-04-12T23:36:39 | 2016-04-12T23:36:39 | 50,572,287 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,362 | java | package com.turman.fb.example.http;
import java.io.IOException;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.URL;
/**
* Created by dqf on 2016/2/26.
*/
public class GetData {
//定义一个网络获取图片的方法
public static byte[] getImage(String path) throws IOException {
URL url = new URL(path);
HttpURLConnection conn = (HttpURLConnection) url.openConnection();
conn.setConnectTimeout(5000);
conn.setRequestMethod("GET");
if (conn.getResponseCode() != 200){
throw new RuntimeException("请求url失败");
}
InputStream inputStream = conn.getInputStream();
byte[] bt = StreamTool.read(inputStream);
inputStream.close();
return bt;
}
//获取网页的html源代码
public static String getHtml(String path) throws IOException {
URL url = new URL(path);
HttpURLConnection conn = (HttpURLConnection) url.openConnection();
conn.setConnectTimeout(5000);
conn.setRequestMethod("GET");
if (conn.getResponseCode() == 200){
InputStream in = conn.getInputStream();
byte[] data = StreamTool.read(in);
String html = new String(data,"UTF-8");
return html;
}
return null;
}
}
| [
"1039163450@qq.com"
] | 1039163450@qq.com |
acb519274cea1dbd7d12deb9572176d1c46f61c9 | f0c76b285c34b771886753ac21acf382c34cec1b | /cpa/src/test/java/org/castor/cpa/persistence/sql/query/condition/TestCompare.java | 20892c0a0fbccb1b758c21d0314b2fbdf6426e7f | [] | no_license | thinkum-contrib/castor | 60048f9910a3ea5399aac586b632cf2a47773b7f | 26ac040bf40bf06c02f1c1a77ccfa9968372a459 | refs/heads/master | 2020-04-21T15:30:31.704288 | 2014-01-01T20:48:45 | 2014-01-01T20:48:45 | 169,671,509 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,579 | java | /*
* Copyright 2009 Ralf Joachim, Ahmad Hassan
*
* 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.castor.cpa.persistence.sql.query.condition;
import junit.framework.TestCase;
import org.castor.cpa.persistence.sql.query.expression.Column;
import org.castor.cpa.persistence.sql.query.expression.Expression;
/**
* Test if Compare works as expected.
*
* @author <a href="mailto:ahmad DOT hassan AT gmail DOT com">Ahmad Hassan</a>
* @author <a href="mailto:ralf DOT joachim AT syscon DOT eu">Ralf Joachim</a>
* @version $Revision$ $Date$
*/
public final class TestCompare extends TestCase {
public void testExtendsHierarchy() {
assertTrue(Condition.class.isAssignableFrom(Compare.class));
}
public void testConstructorName() {
Expression left = new Column("left");
Expression right = new Column("right");
Compare compare = null;
try {
compare = new Compare(null, CompareOperator.EQ, right);
fail("should throw NullPointerException");
} catch (NullPointerException ex) {
assertNull(compare);
} catch (Exception ex) {
fail("should throw NullPointerException");
}
try {
compare = new Compare(left, null, right);
fail("should throw NullPointerException");
} catch (NullPointerException ex) {
assertNull(compare);
} catch (Exception ex) {
fail("should throw NullPointerException");
}
try {
compare = new Compare(left, CompareOperator.EQ, null);
fail("should throw NullPointerException");
} catch (NullPointerException ex) {
assertNull(compare);
} catch (Exception ex) {
fail("should throw NullPointerException");
}
try {
compare = new Compare(left, CompareOperator.EQ, right);
assertEquals(left, compare.leftExpression());
assertEquals(right, compare.rightExpression());
assertEquals(CompareOperator.EQ, compare.operator());
assertEquals("left=right", compare.toString());
} catch (Exception ex) {
fail("should not throw exception");
}
}
public void testCompareNotFactory() {
Expression left = new Column("left");
Expression right = new Column("right");
Compare compare = new Compare(left, CompareOperator.EQ, right);
assertEquals(left, compare.leftExpression());
assertEquals(right, compare.rightExpression());
assertEquals(CompareOperator.EQ, compare.operator());
assertEquals("left=right", compare.toString());
Condition condition = compare.not();
assertTrue(compare == condition);
compare = (Compare) condition;
assertEquals(left, compare.leftExpression());
assertEquals(right, compare.rightExpression());
assertEquals(CompareOperator.NE, compare.operator());
assertEquals("left<>right", compare.toString());
}
}
| [
"rjoachim@b24b0d9a-6811-0410-802a-946fa971d308"
] | rjoachim@b24b0d9a-6811-0410-802a-946fa971d308 |
d05a5b2cfba02bb39a60bf5a8c2f788a85f3de7b | 805416c60c3d6e88ff6c04194047a7a7e13e0541 | /src/main/java/com/blogen/controllers/LoginController.java | 31e10ef333a0da3d9d60d53f4259561759fdc9c2 | [] | no_license | tejten/springboot-blogen | a4b696fe2d2fadafd00d11efccf370506c4eb604 | 15830495f21d48efc951498f438a6495a85ec9c2 | refs/heads/master | 2021-10-11T12:44:11.885115 | 2018-06-13T15:21:41 | 2018-06-13T15:21:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 589 | java | package com.blogen.controllers;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
/**
* Controller for displaying Login page and for managing login functionality
*
* @author Cliff
*/
@Slf4j
@Controller
public class LoginController {
@GetMapping("/login")
public String showLogin() {
log.debug( "showing login page" );
return "login";
}
}
| [
"strohs1@gmail.com"
] | strohs1@gmail.com |
b62a63bce8ef6630940df077d844c4b8a56d1568 | b4fd300b266e97384396cc1d2fe7a4334719f953 | /04MatricesExercises/_04SquaresInMatrix2x2.java | 1b19de2ad71e0a614830c06895baed3b50121dec | [] | no_license | zdergatchev/JavaAdvanced | ff93035ba820cf9e5404d4005a24ada43ddcc908 | 85e5ae2e7e0302db8d06f1eb11f9bfaab3dcd024 | refs/heads/master | 2021-01-11T20:00:44.587980 | 2017-02-17T16:24:14 | 2017-02-17T16:24:14 | 79,448,749 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,094 | java | import java.util.Scanner;
public class _04SquaresInMatrix2x2 {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
String[] dimension = input.nextLine().trim().split(" ");
int rows = Integer.parseInt(dimension[0]);
int cols = Integer.parseInt(dimension[1]);
char[][] matrix = new char[rows][cols];
for (int row = 0; row < rows; row++) {
String[] charsInput = input.nextLine().trim().split(" ");
for (int col = 0; col < matrix[row].length; col++) {
matrix[row][col] = charsInput[col].charAt(0);
}
}
int arrCounter = 0;
for (int row = 0; row < rows - 1; row++)
{
for (int col = 0; col < cols - 1; col++)
{
if (matrix[row][col] == matrix[row][col + 1] && matrix[row][col] == matrix[row + 1][col + 1] && matrix[row][col] == matrix[row + 1][col])
{
arrCounter++;
}
}
}
System.out.println(arrCounter);
}
}
| [
"limerix@mail.bg"
] | limerix@mail.bg |
4d61e68df11eee0a9955751497be079a87d42aa6 | d5e5129850e4332a8d4ccdcecef81c84220538d9 | /Courses/TestingXP_WMD_Test/src/com/wmd/server/db/TestDatabase.java | cdae7af58e176a4988ee7780fe103a69d11c6a3e | [] | no_license | ClickerMonkey/ship | e52da76735d6bf388668517c033e58846c6fe017 | 044430be32d4ec385e01deb17de919eda0389d5e | refs/heads/master | 2020-03-18T00:43:52.330132 | 2018-05-22T13:45:14 | 2018-05-22T13:45:14 | 134,109,816 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 4,336 | java | package com.wmd.server.db;
import static org.junit.Assert.*;
import java.sql.Connection;
import java.sql.DatabaseMetaData;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import org.junit.Before;
import org.junit.Test;
/**
* Verify the base functionality of the class that manages both databases (
* the one for testing and the production one)
*
* @author Merlin
*
* Created: Apr 1, 2010
*/
public class TestDatabase
{
/**
* Clear the db singleton
*/
@Before
public void setUp()
{
Database.reset();
}
/**
* Test the connection to the application database. Make sure it can
* retrieve the connection, its connected, and it can be successfully
* disconnected.
* @throws SQLException
*/
@Test
public void testApplicationConnection() throws SQLException
{
Database db = Database.get();
Connection link = db.getLink();
assertNotNull(link);
}
/**
* Test the connection to the testing database. Make sure it can retrieve
* the connection, its connected, and it can be successfully disconnected.
* @throws SQLException
*/
@Test
public void testTestingConnection() throws SQLException
{
Database.getSingleton().setTesting();
Database db = Database.get();
Connection link = db.getLink();
assertNotNull(link);
}
/**
* Make sure we can connect to the testing database
* @throws SQLException
*/
@Test
public void connectToTestVsReal() throws SQLException
{
Database dbm = Database.getSingleton();
Connection real = dbm.getConnection();
String realurl = real.getMetaData().getURL();
String expected = "wmd";
assertEquals(expected,realurl.substring(realurl.length()-expected.length()));
dbm.setTesting();
Connection testing = dbm.getConnection();
String testingurl = testing.getMetaData().getURL();
expected = "wmdTest";
assertEquals(expected,testingurl.substring(testingurl.length()-expected.length()));
}
/**
* Make sure that the structure of the test and real databases are the same
* @throws SQLException
*/
@Test
public void testAndRealHaveSameStructure() throws SQLException
{
Connection real = Database.get().getLink();
Database.getSingleton().setTesting();
Connection testing = Database.get().getLink();
assertNotSame(real, testing);
DatabaseMetaData realMetaData = real.getMetaData();
ResultSet realColumns = realMetaData.getColumns(null, null, "%", null);
DatabaseMetaData testingMetaData = testing.getMetaData();
ResultSet testingColumns = testingMetaData.getColumns(null, null, "%", null);
compare(realColumns, testingColumns);
compare(testingColumns, realColumns);
}
private void compare(ResultSet columns1, ResultSet columns2)
throws SQLException
{
columns1.first();
while (!columns1.isAfterLast())
{
String tableName = columns1.getString(3);
String columnName = columns1.getString(4);
moveToRowMatching(columns2, tableName, columnName);
assertEquals("Data type doesn't match: " + tableName + ":" + columnName, columns1.getInt(5), columns2.getInt(5));
assertEquals("Nullable doesn't match: " + tableName + ":" + columnName, columns1.getInt(11), columns2.getInt(11));
assertEquals("IsNullable doesn't match: " + tableName + ":" + columnName, columns1.getString(18), columns2.getString(18));
assertEquals("IsNullable doesn't match: " + tableName + ":" + columnName, columns1.getString(18), columns2.getString(18));
columns1.next();
}
}
private void moveToRowMatching(ResultSet rs, String tableName,
String columnName) throws SQLException
{
rs.first();
while (!rs.isAfterLast())
{
if ((rs.getString(3).equals(tableName) && (rs.getString(4).equals(columnName))))
return;
rs.next();
}
fail("column not found " + tableName + ":" + columnName );
}
/**
* @throws Exception
*
*/
@Test
public void testRollBack() throws Exception
{
Database dbm = Database.get();
dbm.setTesting();
AssignmentList h = new AssignmentList();
int before = h.getAssignments().size();
Connection con = dbm.getLink();
Statement stmt = con.createStatement();
String sql = "INSERT INTO assignment (name) VALUES ('StupidAssignment');";
stmt.executeUpdate(sql);
assertEquals(before+1, h.getAssignments().size());
dbm.rollBack();
assertEquals(before, h.getAssignments().size());
}
}
| [
"pdiffenderfer@gmail.com"
] | pdiffenderfer@gmail.com |
812bcf954ab1bf6de0e621273d1d0fd2d015e7d1 | 8ecea1326213ea9d9cfec10076bec498ea482b7d | /seam/Canvas.java | 3be9e0d1098b5e4b05c9608288d586c289ffeb8d | [] | no_license | congchan/algs4 | 95fa6a40fa343b0f55e55445af7916ae1b9b3839 | 3361319fcc9e6c90bd8c1b04c216dd083004d0f6 | refs/heads/master | 2021-06-19T11:30:44.992297 | 2021-01-02T06:49:32 | 2021-01-02T06:49:32 | 139,744,828 | 6 | 2 | null | null | null | null | UTF-8 | Java | false | false | 10,137 | java | /* *****************************************************************************
* Name:
* Date:
* Description: a picture with pixels forming a doward DAG, with edges from
* pixel (x, y) to pixels (x − 1, y + 1), (x, y + 1), and (x + 1, y + 1)
* There is special cases, see adj() for describestion.
**************************************************************************** */
import edu.princeton.cs.algs4.Picture;
import edu.princeton.cs.algs4.Queue;
public class Canvas {
// define the energy of a pixel at the border of the image to be 1000
private static final double BORDERENG = 1000;
private int height;
private int width;
private boolean isTransposed;
private double[][] energies;
private int[][] rgbs;
public Canvas(Picture picture) {
height = picture.height();
width = picture.width();
isTransposed = false;
energies = new double[height()][width()];
rgbs = new int[height()][width()];
for (int i = 0; i < height(); i++) {
for (int j = 0; j < width(); j++) {
rgbs[i][j] = picture.getRGB(j, i);
}
}
for (int i = 0; i < height(); i++) {
for (int j = 0; j < width(); j++) {
energies[i][j] = calEnergy(j, i);
}
}
}
/**
* transpose the Canvas
*/
public void transpose() {
energies = transpose(energies);
rgbs = transpose(rgbs);
// update dimension
int tmp = height();
height = width();
width = tmp;
isTransposed = !isTransposed;
}
private double[][] transpose(double[][] m) {
int dRow = m.length;
int dCol = m[0].length;
double[][] tM = new double[dCol][dRow];
for (int i = 0; i < dRow; i++) {
for (int j = 0; j < dCol; j++) {
tM[j][i] = m[i][j];
}
}
return tM;
}
private int[][] transpose(int[][] m) {
int dRow = m.length;
int dCol = m[0].length;
int[][] tM = new int[dCol][dRow];
for (int i = 0; i < dRow; i++) {
for (int j = 0; j < dCol; j++) {
tM[j][i] = m[i][j];
}
}
return tM;
}
public boolean isTransposed() {
return isTransposed;
}
/**
* Find sequence of indices for vertical seam, which means
* find a vertical seam of minimum total energy.
* 1. The weights are on the vertices instead of the edges.
* 2. the shortest path from any of the W pixels in the top row to
* any of the W pixels in the bottom row.
* 3. DAG, where there is a downward edge from pixel (x, y) to
* pixels (x − 1, y + 1), (x, y + 1), and (x + 1, y + 1),
* assuming that the coordinates are in the prescribed range.
* <p>
* Execute the topological sort algorithm directly on the pixels;
* Relax vertices in topological order
* <p>
* Returns:
* an array of length H such that entry y is the column number of
* the pixel to be removed from row y of the image.
* Example: { 3, 4, 3, 2, 2 } represent minimum energy vertical seam
* are (3, 0), (4, 1), (3, 2), (2, 3), and (2, 4).
*/
public int[] findVerticalSeam() {
int[] returnPath = new int[height()];
int beginCol = 0;
int beginRow = 0;
int endCol = 0;
int endRow = height() - 1;
TopologicalOrder tp = new TopologicalOrder(this);
tp.buildSingleSourceSP(beginCol, beginRow);
Iterable<Integer> path = tp.pathTo(endCol, endRow);
int row = 0;
for (int col : path) {
returnPath[row++] = col;
}
// retify the path head and tail
if (returnPath.length > 2) {
returnPath[0] = returnPath[1];
returnPath[returnPath.length - 1] = returnPath[returnPath.length - 2];
}
return returnPath;
}
/**
* remove vertical seam, including
* shift left energy matrix matrix,
* and replace picture with new pic without the seam
*/
public void removeVerticalSeam(int[] seam) {
shiftEnergy(seam);
shiftRGB(seam);
width--; // must before update energy as it determines the border
if (width > 0) {
updateEnergy(seam);
}
}
private void shiftEnergy(int[] seam) {
for (int i = 0; i < height(); i++) {
// shift energy
System.arraycopy(energies[i], seam[i] + 1, energies[i], seam[i],
width() - seam[i] - 1);
}
}
private void shiftRGB(int[] seam) {
for (int i = 0; i < height(); i++) {
// shift rgb
System.arraycopy(rgbs[i], seam[i] + 1, rgbs[i], seam[i],
width() - seam[i] - 1);
}
}
/**
* update the energy after the seam has been removed.
*/
public void updateEnergy(int[] seam) {
for (int i = 0; i < height(); i++) {
if (seam[i] < width())
energies[i][seam[i]] = calEnergy(seam[i], i);
if (seam[i] > 0)
energies[i][seam[i] - 1] = calEnergy(seam[i] - 1, i);
}
}
// width of current canvas
public int width() {
return width;
}
// height of current canvas
public int height() {
return height;
}
// energy of pixel at column x and row y
public double getEnergy(int x, int y) {
return energies[y][x];
}
// get the rgb at column x and row y
public int getRGB(int x, int y) {
return rgbs[y][x];
}
/**
* get the adjacent pixels of pixel at column x and row y
* which are pixels (x − 1, y + 1), (x, y + 1), and (x + 1, y + 1)
* Special cases:
* 1. consider the border pixels energy is fixed,
* relatve adj have only one pixel, which is the one exact below, (x, y + 1)
* 2. The upper borders pixels as a whole are considered as one pixel (0, 0)
* and could reach any pixels right next to them.
* 3. The lower borders pixels as a whole are considered as one pixel (height - 1, 0)
* and could be reached by any pixels right next to them.
*
* @param x column x
* @param y row y
* @return Iterable<Pixel>
*/
public Iterable<Pixel> adj(int x, int y) {
validateColumnIndex(x);
validateRowIndex(y);
Queue<Pixel> adjPixels = new Queue<Pixel>();
if (isValidRowIndex(y + 1)) {
if (y == 0) { // upper border
for (int i = 0; i < width(); i++) {
if (isValidColumnIndex(i))
adjPixels.enqueue(new Pixel(i, y + 1));
}
}
else if (y + 1 == height() - 1) { // next to lower border
adjPixels.enqueue(new Pixel(0, height() - 1));
}
else if (isBorder(x, y)) { // side borders
adjPixels.enqueue(new Pixel(x, y + 1));
}
else {
for (int i = x - 1; i <= x + 1; i++) {
if (isValidColumnIndex(i) && !isBorder(i, y + 1))
adjPixels.enqueue(new Pixel(i, y + 1));
}
}
}
return adjPixels;
}
/**
* energy of pixel at column x and row y
* use dual-gradient energy function
* The energy of pixel (x,y) is sqrt(Δ^2_x(x,y)+Δ^2_y(x,y))
*/
public double calEnergy(int x, int y) {
validateColumnIndex(x);
validateRowIndex(y);
if (isBorder(x, y))
return BORDERENG;
return Math.sqrt(squareGradX(x, y) + squareGradY(x, y));
}
/**
* the square of the x-gradient
* Δ^2_x(x,y)=R_x(x,y)^2 + G_x(x,y)^2 + B_x(x,y)^2,
* the central differences R_x(x,y), G_x(x,y), and B_x(x,y) are the
* differences in the red, green, and blue components between pixel
* (x + 1, y) and pixel (x − 1, y)
*/
private double squareGradX(int x, int y) {
int rgbL = getRGB(x + 1, y);
int rgbR = getRGB(x - 1, y);
return diffRGB(rgbL, rgbR);
}
/**
* the square of the y-gradient
* Δ^2_y(x,y)=R_y(x,y)^2 + G_y(x,y)^2 + B_y(x,y)^2,
* the central differences R_y(x,y), G_y(x,y), and B_y(x,y) are the
* differences in the red, green, and blue components between pixel
* (x, y + 1) and pixel (x, y − 1)
*/
private double squareGradY(int x, int y) {
int rgbU = getRGB(x, y + 1);
int rgbD = getRGB(x, y - 1);
return diffRGB(rgbU, rgbD);
}
private double diffRGB(int thisRGB, int thatRGB) {
double diffRed = getRed(thisRGB) - getRed(thatRGB);
double diffGreen = getGreen(thisRGB) - getGreen(thatRGB);
double diffBlue = getBlue(thisRGB) - getBlue(thatRGB);
return Math.pow(diffRed, 2) + Math.pow(diffGreen, 2) + Math.pow(diffBlue, 2);
}
private int getRed(int rgb) {
int r = (rgb >> 16) & 0xFF;
return r;
}
private int getGreen(int rgb) {
int g = (rgb >> 8) & 0xFF;
return g;
}
private int getBlue(int rgb) {
int b = rgb & 0xFF;
return b;
}
private void validateRowIndex(int row) {
if (!isValidRowIndex(row))
throw new IllegalArgumentException(
"row index must be between 0 and " + (height() - 1) + ": " + row);
}
private void validateColumnIndex(int col) {
if (!isValidColumnIndex(col))
throw new IllegalArgumentException(
"column index must be between 0 and " + (width() - 1) + ": " + col);
}
private boolean isValidRowIndex(int row) {
return (row >= 0 && row < height());
}
private boolean isValidColumnIndex(int col) {
return (col >= 0 && col < width());
}
private boolean isBorder(int col, int row) {
return (col == 0 || col == width() - 1 || row == 0 || row == height() - 1);
}
public static void main(String[] args) {
}
}
| [
"18083731+congchan@users.noreply.github.com"
] | 18083731+congchan@users.noreply.github.com |
74b58cdac5ea98618b2d89dea9a7b10855138cb1 | 87255486f950665ef2d43c2760bd1b21c85373d2 | /my-storm/src/main/java/storm/example/ning/TridentReach.java | 0219a8342dfcb958898fbcdba5fe72332c409c38 | [] | no_license | bingyuac/hadoop_projects | c755071a6e732466fa8184053731d442bc739d6a | 4d3b11393cb72079a64d17ed065b11fdee029934 | refs/heads/master | 2021-05-01T03:47:33.711518 | 2014-10-17T08:19:10 | 2014-10-17T08:19:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 4,686 | java | package storm.example.ning;
import backtype.storm.Config;
import backtype.storm.LocalCluster;
import backtype.storm.LocalDRPC;
import backtype.storm.generated.StormTopology;
import backtype.storm.task.IMetricsContext;
import backtype.storm.tuple.Fields;
import backtype.storm.tuple.Values;
import storm.trident.TridentState;
import storm.trident.TridentTopology;
import storm.trident.operation.BaseFunction;
import storm.trident.operation.CombinerAggregator;
import storm.trident.operation.TridentCollector;
import storm.trident.operation.builtin.MapGet;
import storm.trident.operation.builtin.Sum;
import storm.trident.state.ReadOnlyState;
import storm.trident.state.State;
import storm.trident.state.StateFactory;
import storm.trident.state.map.ReadOnlyMapState;
import storm.trident.tuple.TridentTuple;
import java.util.*;
public class TridentReach {
public static Map<String, List<String>> TWEETERS_DB = new HashMap<String, List<String>>() {{
put("foo.com/blog/1", Arrays.asList("sally", "bob", "tim", "george", "nathan"));
put("engineering.twitter.com/blog/5", Arrays.asList("adam", "david", "sally", "nathan"));
put("tech.backtype.com/blog/123", Arrays.asList("tim", "mike", "john"));
}};
public static Map<String, List<String>> FOLLOWERS_DB = new HashMap<String, List<String>>() {{
put("sally", Arrays.asList("bob", "tim", "alice", "adam", "jim", "chris", "jai"));
put("bob", Arrays.asList("sally", "nathan", "jim", "mary", "david", "vivian"));
put("tim", Arrays.asList("alex"));
put("nathan", Arrays.asList("sally", "bob", "adam", "harry", "chris", "vivian", "emily", "jordan"));
put("adam", Arrays.asList("david", "carissa"));
put("mike", Arrays.asList("john", "bob"));
put("john", Arrays.asList("alice", "nathan", "jim", "mike", "bob"));
}};
public static class StaticSingleKeyMapState extends ReadOnlyState implements ReadOnlyMapState<Object> {
public static class Factory implements StateFactory {
Map _map;
public Factory(Map map) {
_map = map;
}
@Override
public State makeState(Map conf, IMetricsContext metrics, int partitionIndex, int numPartitions) {
return new StaticSingleKeyMapState(_map);
}
}
Map _map;
public StaticSingleKeyMapState(Map map) {
_map = map;
}
@Override
public List<Object> multiGet(List<List<Object>> keys) {
List<Object> ret = new ArrayList();
for (List<Object> key : keys) {
Object singleKey = key.get(0);
ret.add(_map.get(singleKey));
}
return ret;
}
}
public static class One implements CombinerAggregator<Integer> {
@Override
public Integer init(TridentTuple tuple) {
return 1;
}
@Override
public Integer combine(Integer val1, Integer val2) {
return 1;
}
@Override
public Integer zero() {
return 1;
}
}
public static class ExpandList extends BaseFunction {
@Override
public void execute(TridentTuple tuple, TridentCollector collector) {
List l = (List) tuple.getValue(0);
if (l != null) {
for (Object o : l) {
collector.emit(new Values(o));
}
}
}
}
public static StormTopology buildTopology(LocalDRPC drpc) {
TridentTopology topology = new TridentTopology();
TridentState urlToTweeters = topology.newStaticState(new StaticSingleKeyMapState.Factory(TWEETERS_DB));
TridentState tweetersToFollowers = topology.newStaticState(new StaticSingleKeyMapState.Factory(FOLLOWERS_DB));
topology.newDRPCStream("reach", drpc).stateQuery(urlToTweeters, new Fields("args"), new MapGet(), new Fields(
"tweeters")).each(new Fields("tweeters"), new ExpandList(), new Fields("tweeter")).shuffle().stateQuery(
tweetersToFollowers, new Fields("tweeter"), new MapGet(), new Fields("followers")).each(new Fields("followers"),
new ExpandList(), new Fields("follower")).groupBy(new Fields("follower")).aggregate(new One(), new Fields(
"one")).aggregate(new Fields("one"), new Sum(), new Fields("reach"));
return topology.build();
}
public static void main(String[] args) throws Exception {
LocalDRPC drpc = new LocalDRPC();
Config conf = new Config();
LocalCluster cluster = new LocalCluster();
cluster.submitTopology("reach", conf, buildTopology(drpc));
Thread.sleep(2000);
System.out.println("REACH: " + drpc.execute("reach", "aaa"));
System.out.println("REACH: " + drpc.execute("reach", "foo.com/blog/1"));
System.out.println("REACH: " + drpc.execute("reach", "engineering.twitter.com/blog/5"));
cluster.shutdown();
drpc.shutdown();
}
}
| [
"xiaoningyb@gmail.com"
] | xiaoningyb@gmail.com |
534a9fd12c25529a16fde6b944970afc7cc5fa88 | 80d24fb051be90c1e5dbb3651b785cea9b303e66 | /app/src/test/java/woodward/owen/fitnessapplication/weight_tracking_package/AddEditMethodsTest.java | 831b86a26b5c5c2d84a3a160e68423cb134038d6 | [] | no_license | WoodwardTOwen/DissertationFitnessApplication | b74e1dc5d4252c7bde7df7190eafb5e8b50bf03f | 4d9a201b1878b0b222026f018e0fec9aaf3642fc | refs/heads/master | 2022-10-16T21:14:29.230435 | 2020-05-31T21:25:30 | 2020-05-31T21:25:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,194 | java | package woodward.owen.fitnessapplication.weight_tracking_package;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
public class AddEditMethodsTest {
@Test
public void incrementWeight() {
assertEquals(558, AddEditMethods.incrementWeight("555.5"), .1);
assertEquals(29.5, AddEditMethods.incrementWeight("27"), .1);
assertEquals(6.25, AddEditMethods.incrementWeight("3.75"), .1);
}
@Test
public void decrementWeight() {
assertEquals(272.75, AddEditMethods.decrementWeight("275.25"), .1);
assertEquals(12.5, AddEditMethods.decrementWeight("15"), .1);
assertEquals(123, AddEditMethods.decrementWeight("125.5"), .1);
}
@Test
public void VerifyExerciseInputs() {
//Letters not tested in inputs due to it been error checked before these methods
assertFalse(AddEditMethods.isVerified("","", ""));
assertFalse(AddEditMethods.isVerified(null, null, null));
assertFalse(AddEditMethods.isVerified("", null, "3"));
assertTrue(AddEditMethods.isVerified("65", "10", "8"));
}
} | [
"woodwardtowen@gmail.com"
] | woodwardtowen@gmail.com |
7d7fc84b5131f28c46eac681df510db4c3ce8f64 | 5045180ad1b2e3aa76a55a5979d243197a35d679 | /itrip-beans/src/main/java/com/xyh/mapper/ProductStoreMapper.java | e1c92b6312b5e1333f8c55f02dffe63a6ef3a405 | [] | no_license | Demo7781/itrip-project-demo | d948290c51bdb8baea7c662ec6c5cceaf121195c | a5abf25f9dc30dd747b6ef1c61501431d67167c9 | refs/heads/master | 2023-01-06T12:45:36.154567 | 2020-11-07T01:35:14 | 2020-11-07T01:35:14 | 310,743,762 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 286 | java | package com.xyh.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xyh.entity.ProductStore;
/**
* @Author xyh
* @Dare 2020/11/6 18:56
* @description: ${description}
* @Version 1.0
*/
public interface ProductStoreMapper extends BaseMapper<ProductStore> {
} | [
"7869362+singlexyh@user.noreply.gitee.com"
] | 7869362+singlexyh@user.noreply.gitee.com |
532bdcd7b05463cfdb20694559e8823b1d630cb7 | 5ab5eb1bab078782979cbbf10f5f485495ceae7e | /merchandise/merchandiseinitialdata/gensrc/org/training/initialdata/constants/GeneratedMerchandiseInitialDataConstants.java | 63d938e213e687ae5498d675ab71c325c57054c9 | [] | no_license | DivnaP/Hybris6 | e26b6ae95b9390612180655aacbca87cdc32ef55 | ddab2d733d5c3b33d052a77b30f980ce78df3fde | refs/heads/master | 2021-01-18T06:01:43.800405 | 2016-05-20T14:45:38 | 2016-05-20T14:45:38 | 57,112,839 | 0 | 1 | null | null | null | null | UTF-8 | Java | false | false | 660 | java | /*
* ----------------------------------------------------------------
* --- WARNING: THIS FILE IS GENERATED AND WILL BE OVERWRITTEN! ---
* --- Generated at May 20, 2016 2:17:47 PM ---
* ----------------------------------------------------------------
*/
package org.training.initialdata.constants;
/**
* @deprecated use constants in Model classes instead
*/
@Deprecated
@SuppressWarnings({"unused","cast","PMD"})
public class GeneratedMerchandiseInitialDataConstants
{
public static final String EXTENSIONNAME = "merchandiseinitialdata";
protected GeneratedMerchandiseInitialDataConstants()
{
// private constructor
}
}
| [
"divna_p@hotmail.com"
] | divna_p@hotmail.com |
103a6fede7cb1586ccdbb615d0da36edc20b333b | fd2a7db096857735c550e7a76d790d086e7edcdd | /12. Exam/Final Exam/src/main/java/org/softuni/exam/services/DocumentService.java | 91382752ac37a3e185e9c1d0fb5fe159ba8cae1a | [] | no_license | ivelin1936/SoftUni-Java-Web-Development-Basics-Jan-2019 | 2fe549289cdd30c8d53aa1ee0dab184529da84df | 045665d6de418def88c53bf7899ba7c43afdd075 | refs/heads/master | 2020-04-25T11:11:28.765892 | 2019-02-25T13:43:24 | 2019-02-25T13:43:24 | 172,736,290 | 0 | 1 | null | 2019-02-26T15:18:07 | 2019-02-26T15:18:06 | null | UTF-8 | Java | false | false | 370 | java | package org.softuni.exam.services;
import org.softuni.exam.domain.entities.Document;
import org.softuni.exam.domain.models.binding.document.DocumentScheduleBindingModel;
import java.util.Optional;
public interface DocumentService extends Service<Document, String> {
Optional<String> schedule(DocumentScheduleBindingModel model);
boolean print(String id);
}
| [
"MartinBG@abv.bg"
] | MartinBG@abv.bg |
db1cb59b62e3c33e7174b32a6de99849ab790e89 | 15881d19aa1565f76632d78bf165982b0ef43230 | /NodeInterface.java | f7a5d018d339d9194c524329ae22aedd9bebfd67 | [] | no_license | gmenti/p2p-java | d10fd3cb282e37cc3a5caf547a5febcdb48fbed2 | 15898a905f590b5e9ebd70f4f426ab0c1dc8603d | refs/heads/master | 2023-05-02T12:43:25.078613 | 2021-05-24T23:43:39 | 2021-05-24T23:43:39 | 370,512,690 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 135 | java |
import java.rmi.*;
public interface NodeInterface extends Remote {
public String getContent(String hash) throws RemoteException;
}
| [
"giuseppe.menti@southsystem.com.br"
] | giuseppe.menti@southsystem.com.br |
bc94d718223f6b412d7309a070c247028166402f | 78aaba56f28f8acd70713c86d66111673529432b | /src/main/java/com/cy/storejj/web/UserLoginController.java | f08f45a88020447beb3cd0aa45176215be354b22 | [] | no_license | ChengXYY/storejj | 49c52459feee0ad4ee5b34e3003abaa358693432 | c5621cf1cc1769dfb2e487de8ea548aced5a1238 | refs/heads/master | 2023-05-29T22:54:47.614919 | 2019-11-07T10:11:58 | 2019-11-07T10:11:58 | 194,580,986 | 0 | 0 | null | 2023-05-06T04:37:24 | 2019-07-01T01:41:46 | JavaScript | UTF-8 | Java | false | false | 1,562 | java | package com.cy.storejj.web;
import com.alibaba.fastjson.JSONObject;
import com.cy.storejj.config.WebConfig;
import com.cy.storejj.exception.JsonException;
import com.cy.storejj.service.UserService;
import com.cy.storejj.utils.CommonOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import javax.servlet.http.HttpSession;
@Controller
public class UserLoginController extends WebConfig {
@Autowired
private UserService userService;
@RequestMapping("/userlogin")
public String index(ModelMap model){
return webHtml+"login";
}
@ResponseBody
@RequestMapping(value = "/login/submit", method = RequestMethod.POST)
public JSONObject login(String account, String vercode, HttpSession session){
try {
userService.login(account,vercode, session);
return success("登录成功!");
}catch (JsonException e){
//result.put("code", e.getCode());
//result.put("msg", e.getMsg());
return e.toJson();
}
}
@RequestMapping("/sendcode")
@ResponseBody
public JSONObject sendCode(HttpSession session){
String code = "1234";
session.setAttribute(userVercode, code);
return success("短信已发送!");
}
}
| [
"chengya@saicmobility.com"
] | chengya@saicmobility.com |
a83671b0a2644009d48991850bc2a218b857b45d | 4d97a8ec832633b154a03049d17f8b58233cbc5d | /Math/6/Math/evosuite-branch/8/org/apache/commons/math3/optim/nonlinear/vector/jacobian/LevenbergMarquardtOptimizerEvoSuite_branch_Test_scaffolding.java | 1ab8de13d3e3d67fb85a7a8116003c6969f8aaaf | [] | no_license | 4open-science/evosuite-defects4j | be2d172a5ce11e0de5f1272a8d00d2e1a2e5f756 | ca7d316883a38177c9066e0290e6dcaa8b5ebd77 | refs/heads/master | 2021-06-16T18:43:29.227993 | 2017-06-07T10:37:26 | 2017-06-07T10:37:26 | 93,623,570 | 2 | 1 | null | null | null | null | UTF-8 | Java | false | false | 10,932 | java | /**
* Scaffolding file used to store all the setups needed to run
* tests automatically generated by EvoSuite
* Fri Dec 12 05:36:53 GMT 2014
*/
package org.apache.commons.math3.optim.nonlinear.vector.jacobian;
import org.junit.BeforeClass;
import org.junit.Before;
import org.junit.After;
import org.junit.AfterClass;
public class LevenbergMarquardtOptimizerEvoSuite_branch_Test_scaffolding {
@org.junit.Rule
public org.junit.rules.Timeout globalTimeout = new org.junit.rules.Timeout(6000);
private static final java.util.Properties defaultProperties = (java.util.Properties) java.lang.System.getProperties().clone();
private org.evosuite.runtime.thread.ThreadStopper threadStopper = new org.evosuite.runtime.thread.ThreadStopper (org.evosuite.runtime.thread.KillSwitchHandler.getInstance(), 5000);
@BeforeClass
public static void initEvoSuiteFramework() {
org.evosuite.runtime.GuiSupport.initialize();
org.evosuite.runtime.RuntimeSettings.maxNumberOfThreads = 100;
org.evosuite.runtime.RuntimeSettings.mockSystemIn = true;
initializeClasses();
org.evosuite.runtime.Runtime.getInstance().resetRuntime();
}
@AfterClass
public static void clearEvoSuiteFramework(){
java.lang.System.setProperties((java.util.Properties) defaultProperties.clone());
}
@Before
public void initTestCase(){
threadStopper.storeCurrentThreads();
threadStopper.startRecordingTime();
org.evosuite.runtime.jvm.ShutdownHookHandler.getInstance().initHandler();
setSystemProperties();
org.evosuite.runtime.GuiSupport.setHeadless();
org.evosuite.runtime.Runtime.getInstance().resetRuntime();
org.evosuite.runtime.agent.InstrumentingAgent.activate();
}
@After
public void doneWithTestCase(){
threadStopper.killAndJoinClientThreads();
org.evosuite.runtime.jvm.ShutdownHookHandler.getInstance().safeExecuteAddedHooks();
resetClasses();
org.evosuite.runtime.agent.InstrumentingAgent.deactivate();
org.evosuite.runtime.GuiSupport.restoreHeadlessMode();
}
public void setSystemProperties() {
java.lang.System.setProperties((java.util.Properties) defaultProperties.clone());
java.lang.System.setProperty("java.vm.vendor", "Oracle Corporation");
java.lang.System.setProperty("java.specification.version", "1.7");
java.lang.System.setProperty("java.home", "/usr/local/packages6/java/jdk1.7.0_55/jre");
java.lang.System.setProperty("user.dir", "/scratch/ac1gf/Math/6/8/run_evosuite.pl_88832_1418358328");
java.lang.System.setProperty("java.io.tmpdir", "/tmp");
java.lang.System.setProperty("awt.toolkit", "sun.awt.X11.XToolkit");
java.lang.System.setProperty("file.encoding", "UTF-8");
java.lang.System.setProperty("file.separator", "/");
java.lang.System.setProperty("java.awt.graphicsenv", "sun.awt.X11GraphicsEnvironment");
java.lang.System.setProperty("java.awt.headless", "true");
java.lang.System.setProperty("java.awt.printerjob", "sun.print.PSPrinterJob");
java.lang.System.setProperty("java.class.path", "/data/ac1gf/defects4j/framework/projects/lib/evosuite.jar:/scratch/ac1gf/Math/6/8/run_evosuite.pl_88832_1418358328/target/classes");
java.lang.System.setProperty("java.class.version", "51.0");
java.lang.System.setProperty("java.endorsed.dirs", "/usr/local/packages6/java/jdk1.7.0_55/jre/lib/endorsed");
java.lang.System.setProperty("java.ext.dirs", "/usr/local/packages6/java/jdk1.7.0_55/jre/lib/ext:/usr/java/packages/lib/ext");
java.lang.System.setProperty("java.library.path", "lib");
java.lang.System.setProperty("java.runtime.name", "Java(TM) SE Runtime Environment");
java.lang.System.setProperty("java.runtime.version", "1.7.0_55-b13");
java.lang.System.setProperty("java.specification.name", "Java Platform API Specification");
java.lang.System.setProperty("java.specification.vendor", "Oracle Corporation");
java.lang.System.setProperty("java.vendor", "Oracle Corporation");
java.lang.System.setProperty("java.vendor.url", "http://java.oracle.com/");
java.lang.System.setProperty("java.version", "1.7.0_55");
java.lang.System.setProperty("java.vm.info", "mixed mode");
java.lang.System.setProperty("java.vm.name", "Java HotSpot(TM) 64-Bit Server VM");
java.lang.System.setProperty("java.vm.specification.name", "Java Virtual Machine Specification");
java.lang.System.setProperty("java.vm.specification.vendor", "Oracle Corporation");
java.lang.System.setProperty("java.vm.specification.version", "1.7");
java.lang.System.setProperty("java.vm.version", "24.55-b03");
java.lang.System.setProperty("line.separator", "\n");
java.lang.System.setProperty("os.arch", "amd64");
java.lang.System.setProperty("os.name", "Linux");
java.lang.System.setProperty("os.version", "2.6.32-431.23.3.el6.x86_64");
java.lang.System.setProperty("path.separator", ":");
java.lang.System.setProperty("user.country", "GB");
java.lang.System.setProperty("user.home", "/home/ac1gf");
java.lang.System.setProperty("user.language", "en");
java.lang.System.setProperty("user.name", "ac1gf");
java.lang.System.setProperty("user.timezone", "GB");
}
private static void initializeClasses() {
org.evosuite.runtime.ClassStateSupport.initializeClasses(LevenbergMarquardtOptimizerEvoSuite_branch_Test_scaffolding.class.getClassLoader() ,
"org.apache.commons.math3.linear.AbstractRealMatrix",
"org.apache.commons.math3.linear.RealVector$2",
"org.apache.commons.math3.exception.util.ExceptionContextProvider",
"org.apache.commons.math3.optim.SimpleBounds",
"org.apache.commons.math3.util.Incrementor$MaxCountExceededCallback",
"org.apache.commons.math3.exception.OutOfRangeException",
"org.apache.commons.math3.exception.MathIllegalArgumentException",
"org.apache.commons.math3.optim.SimpleValueChecker",
"org.apache.commons.math3.exception.MaxCountExceededException",
"org.apache.commons.math3.optim.nonlinear.vector.Target",
"org.apache.commons.math3.exception.NumberIsTooLargeException",
"org.apache.commons.math3.exception.NotPositiveException",
"org.apache.commons.math3.exception.NullArgumentException",
"org.apache.commons.math3.optim.SimpleVectorValueChecker",
"org.apache.commons.math3.exception.ConvergenceException",
"org.apache.commons.math3.optim.nonlinear.vector.ModelFunction",
"org.apache.commons.math3.optim.BaseOptimizer$MaxIterCallback",
"org.apache.commons.math3.optim.nonlinear.vector.JacobianMultivariateVectorOptimizer",
"org.apache.commons.math3.exception.MathIllegalStateException",
"org.apache.commons.math3.optim.MaxEval",
"org.apache.commons.math3.optim.BaseOptimizer$1",
"org.apache.commons.math3.linear.RealVectorFormat",
"org.apache.commons.math3.linear.Array2DRowRealMatrix",
"org.apache.commons.math3.optim.BaseMultivariateOptimizer",
"org.apache.commons.math3.analysis.MultivariateVectorFunction",
"org.apache.commons.math3.optim.PointValuePair",
"org.apache.commons.math3.optim.SimplePointChecker",
"org.apache.commons.math3.optim.MaxIter",
"org.apache.commons.math3.linear.RealLinearOperator",
"org.apache.commons.math3.util.CompositeFormat",
"org.apache.commons.math3.util.Precision",
"org.apache.commons.math3.exception.MathArithmeticException",
"org.apache.commons.math3.linear.ArrayRealVector",
"org.apache.commons.math3.exception.MathIllegalNumberException",
"org.apache.commons.math3.optim.nonlinear.vector.MultivariateVectorOptimizer",
"org.apache.commons.math3.optim.BaseOptimizer$MaxEvalCallback",
"org.apache.commons.math3.optim.OptimizationData",
"org.apache.commons.math3.linear.RealVector",
"org.apache.commons.math3.exception.util.LocalizedFormats",
"org.apache.commons.math3.optim.AbstractConvergenceChecker",
"org.apache.commons.math3.optim.nonlinear.vector.Weight",
"org.apache.commons.math3.optim.PointVectorValuePair",
"org.apache.commons.math3.optim.nonlinear.vector.jacobian.LevenbergMarquardtOptimizer",
"org.apache.commons.math3.optim.InitialGuess",
"org.apache.commons.math3.linear.AnyMatrix",
"org.apache.commons.math3.exception.TooManyIterationsException",
"org.apache.commons.math3.linear.RealMatrix",
"org.apache.commons.math3.optim.nonlinear.vector.jacobian.AbstractLeastSquaresOptimizer",
"org.apache.commons.math3.exception.TooManyEvaluationsException",
"org.apache.commons.math3.optim.ConvergenceChecker",
"org.apache.commons.math3.exception.util.Localizable",
"org.apache.commons.math3.exception.DimensionMismatchException",
"org.apache.commons.math3.linear.OpenMapRealMatrix",
"org.apache.commons.math3.util.FastMath",
"org.apache.commons.math3.linear.SparseRealMatrix",
"org.apache.commons.math3.exception.NumberIsTooSmallException",
"org.apache.commons.math3.optim.BaseOptimizer",
"org.apache.commons.math3.exception.MathParseException",
"org.apache.commons.math3.analysis.MultivariateMatrixFunction",
"org.apache.commons.math3.analysis.BivariateFunction",
"org.apache.commons.math3.util.Incrementor",
"org.apache.commons.math3.exception.MathUnsupportedOperationException",
"org.apache.commons.math3.exception.NotStrictlyPositiveException",
"org.apache.commons.math3.util.Pair",
"org.apache.commons.math3.exception.util.ArgUtils",
"org.apache.commons.math3.exception.util.ExceptionContext"
);
}
private static void resetClasses() {
org.evosuite.runtime.reset.ClassResetter.getInstance().setClassLoader(LevenbergMarquardtOptimizerEvoSuite_branch_Test_scaffolding.class.getClassLoader());
org.evosuite.runtime.ClassStateSupport.resetClasses(
"org.apache.commons.math3.util.Precision",
"org.apache.commons.math3.exception.util.LocalizedFormats",
"org.apache.commons.math3.optim.SimplePointChecker",
"org.apache.commons.math3.exception.MathIllegalArgumentException",
"org.apache.commons.math3.exception.MathIllegalNumberException",
"org.apache.commons.math3.exception.NumberIsTooSmallException",
"org.apache.commons.math3.exception.NotStrictlyPositiveException",
"org.apache.commons.math3.exception.util.ExceptionContext",
"org.apache.commons.math3.optim.SimpleVectorValueChecker",
"org.apache.commons.math3.exception.DimensionMismatchException",
"org.apache.commons.math3.linear.RealVectorFormat",
"org.apache.commons.math3.linear.ArrayRealVector",
"org.apache.commons.math3.optim.PointVectorValuePair",
"org.apache.commons.math3.util.FastMath",
"org.apache.commons.math3.exception.NumberIsTooLargeException"
);
}
}
| [
"martin.monperrus@gnieh.org"
] | martin.monperrus@gnieh.org |
7c4be253e68bcf76b7c0d9d7dfec5d1941c5984a | 2f73f5b3c8cc2c7512b018d370ed8e51366dcd0e | /ocraft-s2client-bot/src/main/java/com/github/ocraft/s2client/bot/setting/PlayerSettings.java | 7bac55078184decf29ff332410c484f8142333e1 | [
"MIT"
] | permissive | lpalm/ocraft-s2client | 2268138df246361889b51867702aa7404d0c257a | 2ff2686ab269f896ba70ff724637cb0c1b8831eb | refs/heads/master | 2022-12-05T23:42:30.452838 | 2020-08-21T13:09:27 | 2020-08-21T13:09:27 | 262,029,917 | 0 | 0 | MIT | 2020-08-26T13:05:31 | 2020-05-07T11:19:08 | Java | UTF-8 | Java | false | false | 5,867 | java | package com.github.ocraft.s2client.bot.setting;
/*-
* #%L
* ocraft-s2client-bot
* %%
* Copyright (C) 2017 - 2018 Ocraft Project
* %%
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
* #L%
*/
import com.github.ocraft.s2client.bot.S2Agent;
import com.github.ocraft.s2client.protocol.game.*;
import java.util.Objects;
import static com.github.ocraft.s2client.protocol.Preconditions.require;
public final class PlayerSettings {
private final PlayerSetup playerSetup;
private final Race race;
private final Difficulty difficulty;
private final S2Agent agent;
private final String playerName;
private final AiBuild aiBuild;
private PlayerSettings(
PlayerSetup playerSetup, Race race, Difficulty difficulty, S2Agent agent, String playerName,
AiBuild aiBuild) {
this.playerSetup = playerSetup;
this.race = race;
this.difficulty = difficulty;
this.agent = agent;
this.playerName = playerName;
this.aiBuild = aiBuild;
}
public static PlayerSettings participant(Race race, S2Agent agent) {
require("race", race);
require("agent", agent);
return new PlayerSettings(PlayerSetup.participant(), race, null, agent, null, null);
}
public static PlayerSettings computer(Race race, Difficulty difficulty) {
require("race", race);
require("difficulty", difficulty);
return new PlayerSettings(ComputerPlayerSetup.computer(race, difficulty), race, difficulty, null, null, null);
}
public static PlayerSettings participant(Race race, S2Agent agent, String playerName) {
require("race", race);
require("agent", agent);
return new PlayerSettings(PlayerSetup.participant(), race, null, agent, playerName, null);
}
public static PlayerSettings computer(Race race, Difficulty difficulty, String playerName) {
require("race", race);
require("difficulty", difficulty);
return new PlayerSettings(
ComputerPlayerSetup.computer(race, difficulty, playerName),
race,
difficulty,
null,
playerName,
null);
}
public static PlayerSettings computer(Race race, Difficulty difficulty, String playerName, AiBuild aiBuild) {
require("race", race);
require("difficulty", difficulty);
return new PlayerSettings(
ComputerPlayerSetup.computer(race, difficulty, playerName, aiBuild),
race,
difficulty,
null,
playerName,
aiBuild);
}
public static PlayerSettings computer(Race race, Difficulty difficulty, AiBuild aiBuild) {
require("race", race);
require("difficulty", difficulty);
return new PlayerSettings(
ComputerPlayerSetup.computer(race, difficulty, null, aiBuild),
race,
difficulty,
null,
null,
aiBuild);
}
public PlayerSetup getPlayerSetup() {
return playerSetup;
}
public Race getRace() {
return race;
}
public Difficulty getDifficulty() {
return difficulty;
}
public S2Agent getAgent() {
return agent;
}
public String getPlayerName() {
return playerName;
}
public AiBuild getAiBuild() {
return aiBuild;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
PlayerSettings that = (PlayerSettings) o;
if (!playerSetup.equals(that.playerSetup)) return false;
if (race != that.race) return false;
if (difficulty != that.difficulty) return false;
if (!Objects.equals(agent, that.agent)) return false;
if (!Objects.equals(playerName, that.playerName)) return false;
return aiBuild == that.aiBuild;
}
@Override
public int hashCode() {
int result = playerSetup.hashCode();
result = 31 * result + race.hashCode();
result = 31 * result + difficulty.hashCode();
result = 31 * result + (agent != null ? agent.hashCode() : 0);
result = 31 * result + (playerName != null ? playerName.hashCode() : 0);
result = 31 * result + (aiBuild != null ? aiBuild.hashCode() : 0);
return result;
}
@Override
public String toString() {
return "PlayerSettings{" +
"playerSetup=" + playerSetup +
", race=" + race +
", difficulty=" + difficulty +
", agent=" + agent +
", playerName='" + playerName + '\'' +
", aiBuild=" + aiBuild +
'}';
}
}
| [
"ocraftproject@gmail.com"
] | ocraftproject@gmail.com |
de2013318a172fe2a4702af5f3e5c8affb4ad741 | 975e576f7245fed4d99be7e0e47f19639f6c0c3b | /lcworld-common/src/main/java/user/com/lcworld/dto/UserFrontRolesDTO.java | f364d23a63d6dc92b46e18fc569bb593836ade27 | [] | no_license | wangzf001/wangfangcm | 9998576aa479e91ed6e067985622ae2221055de0 | 02524ec099ca18015ead11d021e32201ccc002cc | refs/heads/master | 2021-05-11T22:54:40.000416 | 2018-06-11T11:57:49 | 2018-06-11T11:57:49 | 117,500,957 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 571 | java | package com.lcworld.dto;
public class UserFrontRolesDTO {
private Integer status ;
//id
private Integer id;
//角色名称
private String name;
public Integer getStatus() {
return status;
}
public void setStatus(Integer status) {
this.status = status;
}
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
}
| [
"wangzhenfang"
] | wangzhenfang |
ad424ce9e27ca1319073ea487959f02104315533 | 9ba8287c8f8864b904f07b79b6990b15571b4c38 | /源代码/WebRoot/Catalina/localhost/Esf/org/apache/jsp/guestbook_jsp.java | 92169497d9db95d06e86186daa70480a8c69c472 | [] | no_license | chankeh/java_web_managesys | 6a357a49df55707aa061da96df540d8309b79d5e | c2ed49d9084564a8448d11687d6c558d4c070237 | refs/heads/master | 2021-01-01T17:50:42.807717 | 2017-07-24T09:28:23 | 2017-07-24T09:28:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 34,837 | java | package org.apache.jsp;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.util.*;
import java.util.*;
import java.util.*;
public final class guestbook_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static java.util.Vector _jspx_dependants;
static {
_jspx_dependants = new java.util.Vector(2);
_jspx_dependants.add("/iframe/head.jsp");
_jspx_dependants.add("/iframe/foot.jsp");
}
public java.util.List getDependants() {
return _jspx_dependants;
}
public void _jspService(HttpServletRequest request, HttpServletResponse response)
throws java.io.IOException, ServletException {
JspFactory _jspxFactory = null;
PageContext pageContext = null;
HttpSession session = null;
ServletContext application = null;
ServletConfig config = null;
JspWriter out = null;
Object page = this;
JspWriter _jspx_out = null;
PageContext _jspx_page_context = null;
try {
_jspxFactory = JspFactory.getDefaultFactory();
response.setContentType("text/html;charset=gb2312");
pageContext = _jspxFactory.getPageContext(this, request, response,
null, true, 8192, true);
_jspx_page_context = pageContext;
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
_jspx_out = out;
out.write('\r');
out.write('\n');
out.write('\r');
out.write('\n');
com.bean.SystemBean sys = null;
synchronized (_jspx_page_context) {
sys = (com.bean.SystemBean) _jspx_page_context.getAttribute("sys", PageContext.PAGE_SCOPE);
if (sys == null){
sys = new com.bean.SystemBean();
_jspx_page_context.setAttribute("sys", sys, PageContext.PAGE_SCOPE);
}
}
out.write('\r');
out.write('\n');
com.bean.AfficheBean abc = null;
synchronized (_jspx_page_context) {
abc = (com.bean.AfficheBean) _jspx_page_context.getAttribute("abc", PageContext.PAGE_SCOPE);
if (abc == null){
abc = new com.bean.AfficheBean();
_jspx_page_context.setAttribute("abc", abc, PageContext.PAGE_SCOPE);
}
}
out.write('\r');
out.write('\n');
com.bean.NewsBean news = null;
synchronized (_jspx_page_context) {
news = (com.bean.NewsBean) _jspx_page_context.getAttribute("news", PageContext.PAGE_SCOPE);
if (news == null){
news = new com.bean.NewsBean();
_jspx_page_context.setAttribute("news", news, PageContext.PAGE_SCOPE);
}
}
out.write('\r');
out.write('\n');
com.bean.HouseBean hsb = null;
synchronized (_jspx_page_context) {
hsb = (com.bean.HouseBean) _jspx_page_context.getAttribute("hsb", PageContext.PAGE_SCOPE);
if (hsb == null){
hsb = new com.bean.HouseBean();
_jspx_page_context.setAttribute("hsb", hsb, PageContext.PAGE_SCOPE);
}
}
out.write('\r');
out.write('\n');
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
List sysList=sys.getSiteInfo();
List affList=abc.getAllAffiche();
List newsList=news.getIndexNews();
List AllnewsList=news.getAllNews();
out.write("\r\n");
out.write("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd\">\r\n");
out.write("<HTML xmlns=\"http://www.w3.org/1999/xhtml\">\r\n");
out.write("<HEAD>\r\n");
out.write("<TITLE>");
out.print(sysList.get(0).toString() );
out.write("</TITLE>\r\n");
out.write("<META http-equiv=Content-Language content=zh-cn>\r\n");
out.write("<META http-equiv=Content-Type content=\"text/html; charset=gb2312\">\r\n");
out.write("<META name=\"keywords\" content=\"");
out.print(sysList.get(2).toString() );
out.write("\" />\r\n");
out.write("<META name=\"description\" content=\"");
out.print(sysList.get(3).toString() );
out.write("\" />\r\n");
out.write("\r\n");
out.write("<META content=\"MSHTML 6.00.2900.3243\" name=GENERATOR>\r\n");
out.write("<LINK href=\"");
out.print(basePath );
out.write("images/css.css\" type=text/css rel=stylesheet>\r\n");
out.write("<LINK href=\"");
out.print(basePath );
out.write("images/default.css\" type=text/css rel=stylesheet>\r\n");
out.write("</HEAD>\r\n");
out.write("<SCRIPT language=JavaScript src=\"");
out.print(basePath );
out.write("images/Common.js\"></SCRIPT>\r\n");
out.write("<SCRIPT language=JavaScript src=\"");
out.print(basePath );
out.write("images/index.js\"></SCRIPT>\r\n");
out.write("<SCRIPT language=JavaScript src=\"");
out.print(basePath );
out.write("images/calendar.js\"></SCRIPT>\r\n");
if(sysList.get(5).toString().trim().equals("open")){
out.write("\r\n");
out.write("<SCRIPT language=JavaScript>\r\n");
out.write("<!--//屏蔽出错代码\r\n");
out.write("function killErr(){\r\n");
out.write("\treturn true;\r\n");
out.write("}\r\n");
out.write("window.onerror=killErr;\r\n");
out.write("//-->\r\n");
out.write("</SCRIPT>\r\n");
out.write("<SCRIPT language=JavaScript>\r\n");
out.write("<!--//处理大分类一行两个小分类\r\n");
out.write("function autoTable(div){\r\n");
out.write("\tfs=document.getElementById(div).getElementsByTagName(\"TABLE\");\r\n");
out.write("\tfor(var i=0;i<fs.length;i++){\r\n");
out.write("\t\tfs[i].style.width='49.5%';\r\n");
out.write("\t\tif(i%2==1){\r\n");
out.write("\t\t\tif (document.all) {\r\n");
out.write("\t\t\t\tfs[i].style.styleFloat=\"right\";\r\n");
out.write("\t\t\t}else{\r\n");
out.write("\t\t\t\tfs[i].style.cssFloat=\"right;\";\r\n");
out.write("\t\t\t}\r\n");
out.write("\t\t}else{\r\n");
out.write("\t\t\tif (document.all) {\r\n");
out.write("\t\t\t\tfs[i].style.styleFloat=\"left\";\r\n");
out.write("\t\t\t}else{\r\n");
out.write("\t\t\t\tfs[i].style.cssFloat=\"left;\";\r\n");
out.write("\t\t\t}\r\n");
out.write("\t\t}\r\n");
out.write("\t}\r\n");
out.write("}\r\n");
out.write("//-->\r\n");
out.write("</SCRIPT>\r\n");
out.write("<SCRIPT language=JavaScript src=\"images/inc.js\"></SCRIPT>\r\n");
out.write("<SCRIPT language=JavaScript src=\"images/default.js\"></SCRIPT>\r\n");
out.write("<SCRIPT language=JavaScript src=\"images/swfobject.js\"></SCRIPT>\r\n");
out.write("</HEAD>\r\n");
out.write("<BODY text=#000000 bgColor=#ffffff leftMargin=0 topMargin=0>\r\n");
out.write("<SCRIPT language=JavaScript>\r\n");
out.write("<!--//目的是为了做风格方便\r\n");
out.write("document.write('<div class=\"wrap\">');\r\n");
out.write("//-->\r\n");
out.write("</SCRIPT>\r\n");
out.write("<TABLE id=toplogin cellSpacing=0 cellPadding=0 width=\"100%\" align=center border=0>\r\n");
out.write(" <TBODY>\r\n");
out.write(" <TR>\r\n");
out.write(" <TD vAlign=center align=left>\r\n");
out.write(" <DIV class=jstime style=\"FLOAT: left; WIDTH: 25%\">\r\n");
out.write(" 【<a href=\"login.jsp\">会员登录</a>】【<a href=\"reg.jsp\">免费注册</a>】【<a href=\"lost.jsp\">忘记密码</a>】\r\n");
out.write(" </DIV>\r\n");
out.write(" <DIV class=jstime style=\"FLOAT: right; WIDTH: 45%; TEXT-ALIGN: right\">\r\n");
out.write("\t <!--****************时间日历开始****************-->\r\n");
out.write(" <SCRIPT>setInterval(\"clock.innerHTML=new Date().toLocaleString()+' 星期'+'日一二三四五六'.charAt(new Date().getDay());\",1000)</SCRIPT>\r\n");
out.write(" <SPAN id=clock></SPAN>\r\n");
out.write("\t <!--****************时间日历结束****************--> \r\n");
out.write(" <A href=\"javascript:javascript:window.external.AddFavorite('");
out.print(basePath );
out.write('\'');
out.write(',');
out.write('\'');
out.print(sysList.get(0).toString() );
out.write("');\">加入收藏</A> \r\n");
out.write(" <A onclick=\"this.style.behavior='url(#default#homepage)';this.setHomePage('");
out.print(basePath );
out.write("');\" href=\"http://localhost/#\">设为首页</A> \r\n");
out.write("\t <A href=\"");
out.print(basePath );
out.write("admin/login.jsp\">管理登录</A> \r\n");
out.write("\t </DIV>\r\n");
out.write("\t</TD>\r\n");
out.write(" </TR>\r\n");
out.write(" </TBODY>\r\n");
out.write("</TABLE>\r\n");
out.write("<TABLE id=header cellSpacing=0 cellPadding=0 width=\"100%\" align=center border=0>\r\n");
out.write("<TBODY>\r\n");
out.write(" <TR>\r\n");
out.write(" <TD>\r\n");
out.write(" <DIV class=logo>\r\n");
out.write("\t <img src=");
out.print(basePath );
out.write("images/ad.jpg width=950 height=90>\r\n");
out.write("\t </DIV>\r\n");
out.write("\t</TD>\r\n");
out.write(" </TR>\r\n");
out.write(" </TBODY>\r\n");
out.write("</TABLE>\r\n");
out.write("<TABLE id=guide cellSpacing=0 cellPadding=0 width=\"100%\" align=center border=0>\r\n");
out.write("<TBODY>\r\n");
out.write(" <TR>\r\n");
out.write(" <TD align=middle>\r\n");
out.write("\t<A href=\"index.jsp\" target=\"\">首 页</A> |\r\n");
out.write("\t\r\n");
out.write("\t<A href=\"news.jsp\" target=\"\">新闻中心</A> |\r\n");
out.write("\t\r\n");
out.write("\t<A href=\"out.jsp\" target=\"\">出租信息</A> |\r\n");
out.write("\t\r\n");
out.write("\t<A href=\"in.jsp\" target=\"\">求租信息</A> |\r\n");
out.write("\t\r\n");
out.write("\t<A href=\"sale.jsp\" target=\"\">出售信息</A> |\r\n");
out.write("\t\r\n");
out.write("\t<A href=\"buy.jsp\" target=\"\">求购信息</A> |\r\n");
out.write("\t\r\n");
out.write("\t<A href=\"search.jsp\" target=\"\">信息检索</A> |\r\n");
out.write("\t\r\n");
out.write("\t<A href=\"login.jsp\" target=\"\">会员中心</A> |\r\n");
out.write("\t\r\n");
out.write("\t<A href=\"guestbook.jsp\" target=\"\">留言板</A> \r\n");
out.write("\t</TD>\r\n");
out.write(" </TR>\r\n");
out.write("</TBODY>\r\n");
out.write("</TABLE>\r\n");
out.write('\r');
out.write('\n');
com.bean.GuestBookBean guestbean = null;
synchronized (_jspx_page_context) {
guestbean = (com.bean.GuestBookBean) _jspx_page_context.getAttribute("guestbean", PageContext.PAGE_SCOPE);
if (guestbean == null){
guestbean = new com.bean.GuestBookBean();
_jspx_page_context.setAttribute("guestbean", guestbean, PageContext.PAGE_SCOPE);
}
}
out.write("\r\n");
out.write("\r\n");
out.write("<script language=\"javascript\" >\r\n");
out.write("function top(){\r\n");
out.write(" \tform3.action=\"");
out.print(basePath);
out.write("guestbook.jsp?page=1\";\r\n");
out.write(" form3.submit();\r\n");
out.write("}\r\n");
out.write("function last(){\r\n");
out.write(" if(form3.pageCount.value==0){//如果总页数为0,那么最后一页为1,也就是第一页,而不是第0页\r\n");
out.write(" form3.action=\"");
out.print(basePath);
out.write("guestbook.jsp?page=1\";\r\n");
out.write(" form3.submit();\r\n");
out.write("\t}else{\r\n");
out.write("\tform3.action=\"");
out.print(basePath);
out.write("guestbook.jsp?page=\"+form3.pageCount.value;\r\n");
out.write(" \tform3.submit();\r\n");
out.write("\t}\r\n");
out.write("}\r\n");
out.write("function pre(){\r\n");
out.write(" var page=parseInt(form3.page.value);\r\n");
out.write(" if(page<=1){\r\n");
out.write(" alert(\"已至第一页\");\r\n");
out.write(" }else{\r\n");
out.write(" form3.action=\"");
out.print(basePath);
out.write("guestbook.jsp?page=\"+(page-1);\r\n");
out.write(" form3.submit();\r\n");
out.write(" }\r\n");
out.write("}\r\n");
out.write("\r\n");
out.write("function next(){\r\n");
out.write(" var page=parseInt(form3.page.value);\r\n");
out.write(" var pageCount=parseInt(form3.pageCount.value);\r\n");
out.write(" if(page>=pageCount){\r\n");
out.write(" alert(\"已至最后一页\");\r\n");
out.write(" }else{\r\n");
out.write(" form3.action=\"");
out.print(basePath);
out.write("guestbook.jsp?page=\"+(page+1);\r\n");
out.write(" form3.submit();\r\n");
out.write(" }\r\n");
out.write("}\r\n");
out.write("function bjump(){\r\n");
out.write(" \tvar pageCount=parseInt(form3.pageCount.value);\r\n");
out.write(" \tif( fIsNumber(form3.busjump.value,\"1234567890\")!=1 ){\r\n");
out.write("\t\talert(\"跳转文本框中只能输入数字!\");\r\n");
out.write("\t\tform3.busjump.select();\r\n");
out.write("\t\tform3.busjump.focus();\r\n");
out.write("\t\treturn false;\r\n");
out.write("\t}\r\n");
out.write("\tif(form3.busjump.value>pageCount){//如果跳转文本框中输入的页数超过最后一页的数,则跳到最后一页\r\n");
out.write("\t if(pageCount==0){\t\r\n");
out.write("\t form3.action=\"");
out.print(basePath);
out.write("guestbook.jsp?page=1\";\r\n");
out.write("\t form3.submit();\r\n");
out.write("\t}\r\n");
out.write("\telse{\r\n");
out.write("\t\tform3.action=\"");
out.print(basePath);
out.write("guestbook.jsp?page=\"+pageCount;\r\n");
out.write("\t\tform3.submit();\r\n");
out.write("\t}\r\n");
out.write("}\r\n");
out.write("else if(form3.busjump.value<=pageCount){\r\n");
out.write("var page=parseInt(form3.busjump.value);\r\n");
out.write(" if(page==0){\r\n");
out.write(" page=1;//如果你输入的是0,那么就让它等于1\r\n");
out.write(" form3.action=\"");
out.print(basePath);
out.write("guestbook.jsp?page=\"+page;\r\n");
out.write(" form3.submit();\r\n");
out.write(" }else{\r\n");
out.write(" form3.action=\"");
out.print(basePath);
out.write("guestbook.jsp?page=\"+page;\r\n");
out.write(" form3.submit();\r\n");
out.write(" }\r\n");
out.write("\r\n");
out.write("}\r\n");
out.write("\r\n");
out.write("}\r\n");
out.write("//****判断是否是Number.\r\n");
out.write("function fIsNumber (sV,sR){\r\n");
out.write("var sTmp;\r\n");
out.write("if(sV.length==0){ return (false);}\r\n");
out.write("for (var i=0; i < sV.length; i++){\r\n");
out.write("sTmp= sV.substring (i, i+1);\r\n");
out.write("if (sR.indexOf (sTmp, 0)==-1) {return (false);}\r\n");
out.write("}\r\n");
out.write("return (true);\r\n");
out.write("}\r\n");
out.write("</script>\r\n");
out.write("<SCRIPT language=JavaScript src=\"");
out.print(basePath );
out.write("images/css/Common.js\"></SCRIPT>\r\n");
String message = (String)request.getAttribute("message");
if(message == null){
message = "";
}
if (!message.trim().equals("")){
out.println("<script language='javascript'>");
out.println("alert('"+message+"');");
out.println("</script>");
}
request.removeAttribute("message");
out.write("\r\n");
out.write("<DIV align=center>\r\n");
out.write("<TABLE cellSpacing=0 cellPadding=0 width=\"100%\" border=0>\r\n");
out.write(" <TBODY>\r\n");
out.write(" <TR>\r\n");
out.write(" <TD >\r\n");
out.write("<TABLE class=dragTable height=28 cellSpacing=0 cellPadding=0 width=100% align=center background=");
out.print(basePath );
out.write("images/head1.gif border=0>\r\n");
out.write(" <TBODY>\r\n");
out.write(" <TR>\r\n");
out.write(" <TD align=left class=head><FONT color=#000000>您现在的位置:<SPAN \r\n");
out.write(" style=\"TEXT-DECORATION: none\">");
out.print(sysList.get(0).toString() );
out.write("</SPAN>>> 访客留言</FONT>\r\n");
out.write("\t</TD>\r\n");
out.write("\t</TR>\r\n");
out.write(" </TBODY>\r\n");
out.write("</TABLE></TD></TR>\r\n");
out.write(" <TR>\r\n");
out.write(" <TD class=middle><br>\r\n");
out.write("\t<!--循环开始==============================================================-->\r\n");
out.write("\t");
String member=(String)session.getAttribute("member");
if(member==null)member="游客";
guestbean.setEVERYPAGENUM(6);
int cou = guestbean.getMessageCount();//得到信息总数
String page1=request.getParameter("page");
if(page1==null){
page1="1";
}
session.setAttribute("busMessageCount", cou + "");
session.setAttribute("busPage", page1);
List pagelist1 = guestbean.getMessage(Integer.parseInt(page1)); //带进一个页数,并返回该页所要显示的信息
session.setAttribute("qqq", pagelist1);
int pageCount = guestbean.getPageCount(); //得到页数
session.setAttribute("busPageCount", pageCount + "");
List pagelist3=(ArrayList)session.getAttribute("qqq");
if(!pagelist3.isEmpty()){
for(int i=0;i<pagelist3.size();i++){
List pagelist2 =(ArrayList)pagelist3.get(i);
List replay=guestbean.getReplayInfo(Integer.parseInt(pagelist2.get(0).toString()));
out.write("\r\n");
out.write("\t<TABLE class=guestbook cellSpacing=0 cellPadding=0 width=\"100%\" \r\n");
out.write(" border=0>\r\n");
out.write(" <TBODY>\r\n");
out.write(" <TR>\r\n");
out.write(" <TD class=Ftd align=middle width=\"18%\" rowSpan=2>\r\n");
out.write(" <DIV class=icon><IMG height=80 src=\"");
out.print(basePath+pagelist2.get(2).toString() );
out.write("\" width=80 border=0></DIV>\r\n");
out.write(" <DIV class=name>");
out.print(pagelist2.get(1).toString() );
out.write("</DIV></TD>\r\n");
out.write(" <TD class=Ctd vAlign=top width=\"82%\" height=75>\r\n");
out.write(" <TABLE style=\"TABLE-LAYOUT: fixed; WORD-WRAP: break-word\" cellSpacing=0 cellPadding=0 width=\"80%\" border=0>\r\n");
out.write(" <TBODY>\r\n");
out.write(" <TR>\r\n");
out.write(" <TD class=content align=left>\r\n");
out.write("\t\t\t\t\t <IMG height=20 src=\"");
out.print(basePath+pagelist2.get(7).toString() );
out.write("\" width=20> \r\n");
out.write(" ");
out.print(pagelist2.get(8).toString() );
out.write("\r\n");
out.write(" ");
if(!replay.isEmpty()){
out.write("\r\n");
out.write(" <FIELDSET>\r\n");
out.write("\t\t\t\t\t\t<LEGEND>留言回复 </LEGEND>");
out.print(replay.get(0).toString() );
out.write(" \r\n");
out.write(" (署名: ");
out.print(replay.get(1).toString() );
out.write("/日期:");
out.print(replay.get(2).toString() );
out.write(")\r\n");
out.write("\t\t\t\t\t\t</FIELDSET>\r\n");
out.write("\t\t\t\t\t\t");
}
out.write("\r\n");
out.write("\t\t\t\t\t </TD>\r\n");
out.write("\t\t\t\t\t </TR>\r\n");
out.write("\t\t\t\t\t</TBODY>\r\n");
out.write("\t\t\t\t</TABLE>\r\n");
out.write("\t\t\t\t</TD>\r\n");
out.write("\t\t\t\t</TR>\r\n");
out.write(" <TR>\r\n");
out.write(" <TD class=Atd width=\"82%\">\r\n");
out.write(" 时间: ");
out.print(pagelist2.get(9).toString());
out.write(" \r\n");
out.write("\t\t\t\t<A title=\"QQ:");
out.print(pagelist2.get(4).toString());
out.write("\" href=\"tencent://message/?uin=");
out.print(pagelist2.get(4).toString());
out.write("&Site=网站名称&Menu=yes\"><IMG height=16 src=\"");
out.print(basePath );
out.write("images/face/qq.gif\" width=16 border=0></A> \r\n");
out.write("\t\t\t\t<A title=\"E_mail\" href=\"mailto:");
out.print(pagelist2.get(3).toString());
out.write("\"><IMG height=16 src=\"");
out.print(basePath );
out.write("images/face/email.gif\" width=16 border=0></A> \r\n");
out.write("\t\t\t\t<A title=网址 href=\"");
out.print(pagelist2.get(5).toString());
out.write("\" target=\"_blank\" ><IMG height=16 src=\"");
out.print(basePath );
out.write("images/face/ie.gif\" width=16 border=0></A> \t\t\t\t\r\n");
out.write("\t\t\t\t<A title=博客地址 href=\"");
out.print(pagelist2.get(6).toString());
out.write("\" target=\"_blank\" ><IMG height=16 src=\"");
out.print(basePath );
out.write("images/face/home.gif\" width=16 border=0></A> \r\n");
out.write("\t\t\t\t<A title=\"");
out.print(pagelist2.get(10).toString());
out.write("\" href=\"javascript:\"><IMG height=16 src=\"");
out.print(basePath );
out.write("images/face/ip.gif\" width=16 border=0></A> \r\n");
out.write("\t\t\t\t</TD>\r\n");
out.write("\t\t\t </TR>\r\n");
out.write("\t\t\t </TBODY>\r\n");
out.write("\t\t\t </TABLE>\r\n");
out.write("\t");
}}
out.write("\r\n");
out.write("\t<!--循环结束==================================================================--> \r\n");
out.write(" <br>\r\n");
out.write(" <TABLE cellSpacing=0 cellPadding=0 width=\"100%\" border=0>\r\n");
out.write(" <TBODY>\r\n");
out.write(" <TR>\r\n");
out.write(" <TD align=right>\r\n");
out.write(" <form action=\"\" method=\"post\" name=\"form3\">\t\r\n");
out.write("\t\t\t <input type=\"hidden\" name=\"pageCount\" value=\"");
out.print( session.getAttribute("busPageCount").toString());
out.write("\" /><!--//用于给上面javascript传值-->\r\n");
out.write("\t\t\t <input type=\"hidden\" name=\"page\" value=\"");
out.print(session.getAttribute("busPage").toString());
out.write("\" /><!--//用于给上面javascript传值--> \r\n");
out.write("\t\t\t<a href=\"#\" onClick=\"top()\"><img src=\"");
out.print(basePath );
out.write("images/first.gif\" border=\"0\" /></a> \r\n");
out.write("\t\t\t\t<a href=\"#\" onClick=\"pre()\"><img src=\"");
out.print(basePath );
out.write("images/pre.gif\" border=\"0\" /></a> \r\n");
out.write("\t\t\t\t 共");
out.print(session.getAttribute("busMessageCount").toString());
out.write("条记录,共计");
out.print(session.getAttribute("busPageCount").toString());
out.write("页,当前第");
out.print(session.getAttribute("busPage").toString());
out.write("页 \r\n");
out.write("\t\t\t\t<a href=\"#\" onClick=\"next()\"><img src=\"");
out.print(basePath );
out.write("images/next.gif\" border=\"0\" /></a> \r\n");
out.write("\t\t\t\t<a href=\"#\" onClick=\"last()\"><img src=\"");
out.print(basePath );
out.write("images/last.gif\" border=\"0\" /></a>\r\n");
out.write("\t\t\t 第<input name=\"busjump\" type=\"text\" size=\"3\" />页<a href=\"#\" onClick=\"bjump()\"><img src=\"");
out.print(basePath );
out.write("images/jump.gif\" border=\"0\" /></a> \r\n");
out.write("\t\t\t </form>\r\n");
out.write(" </TD>\r\n");
out.write(" </TR>\r\n");
out.write(" </TBODY>\r\n");
out.write(" </TABLE></TD></TR>\r\n");
out.write(" <TR>\r\n");
out.write(" <TD class=foot>\r\n");
out.write(" <H3 class=L></H3>\r\n");
out.write(" <H3 class=R></H3></TD></TR></TBODY></TABLE>\r\n");
out.write("<TABLE class=dragTable height=28 cellSpacing=0 cellPadding=0 width=100% align=center border=0>\r\n");
out.write(" <TBODY>\r\n");
out.write(" <TR>\r\n");
out.write(" <TD align=left class=head> 我要留言</TD></TR>\r\n");
out.write(" <TR>\r\n");
out.write(" <TD class=middle>\r\n");
out.write("<STYLE type=text/css>.selected {\r\n");
out.write("\tBORDER-RIGHT: #ff9900 1px solid; BORDER-TOP: #ff9900 1px solid; FILTER: Alpha(opacity=100); BORDER-LEFT: #ff9900 1px solid; BORDER-BOTTOM: #ff9900 1px solid\r\n");
out.write("}\r\n");
out.write(".unselected {\r\n");
out.write("\tBORDER-RIGHT: #edf8dd 1px solid; BORDER-TOP: #edf8dd 1px solid; FILTER: Alpha(opacity=50); BORDER-LEFT: #edf8dd 1px solid; BORDER-BOTTOM: #edf8dd 1px solid\r\n");
out.write("}\r\n");
out.write("</STYLE>\r\n");
out.write("\r\n");
out.write("<SCRIPT>\r\n");
out.write("var prevIcon;\r\n");
out.write("function icon(num){\r\n");
out.write("num.className=\"selected\";\r\n");
out.write("if(typeof(prevIcon)!=\"undefined\"){\r\n");
out.write("prevIcon.className=\"unselected\";\r\n");
out.write("}else{\r\n");
out.write("document.all.firstface.className=\"unselected\";\r\n");
out.write("}\r\n");
out.write("if(num.className==\"unselected\"){\r\n");
out.write("num.className=\"selected\";\r\n");
out.write("}\r\n");
out.write("prevIcon=num;\r\n");
out.write("document.all.face.value=num.childNodes(0).id ;\r\n");
out.write("}\r\n");
out.write("</SCRIPT>\r\n");
out.write("\r\n");
out.write(" <TABLE cellSpacing=0 cellPadding=0 width=\"100%\" border=0>\r\n");
out.write(" <FORM name=\"form1\" action=\"");
out.print(basePath);
out.write("GuestBook.shtml?method=add\" method=\"post\" onSubmit=\"return checkGUEST()\" >\r\n");
out.write(" <TBODY>\r\n");
out.write(" <TR>\r\n");
out.write(" <TD width=\"24%\" align=\"right\">昵 称: </TD>\r\n");
out.write(" <TD align=left><INPUT name=nikename maxlength=20 value=\"");
out.print(member );
out.write("\" readonly> 联系Email: \r\n");
out.write(" <INPUT name=email maxlength=20> QQ: <INPUT size=11 name=qq maxlength=11> \r\n");
out.write(" </TD></TR>\r\n");
out.write(" <TR>\r\n");
out.write(" <TD width=\"24%\" align=\"right\">网站网址:</TD>\r\n");
out.write(" <TD align=left><INPUT size=35 name=weburl maxlength=100> 个人BLOG网址: \r\n");
out.write(" <INPUT size=35 name=blogurl maxlength=100> </TD></TR>\r\n");
out.write(" <TR>\r\n");
out.write(" <TD width=\"24%\" align=\"right\">表 情:</TD>\r\n");
out.write(" <TD align=left>\r\n");
out.write(" <TABLE cellSpacing=0 cellPadding=0 border=0>\r\n");
out.write(" <TBODY>\r\n");
out.write(" <TR>\r\n");
out.write(" <TD class=selected id=firstface style=\"CURSOR: hand\" onclick=icon(this)>\r\n");
out.write(" <IMG id=1 height=20 src=\"");
out.print(basePath );
out.write("images/face/1.gif\" width=20></TD>\r\n");
out.write(" <TD class=unselected style=\"CURSOR: hand\" onclick=icon(this)>\r\n");
out.write(" <IMG id=2 height=20 src=\"");
out.print(basePath );
out.write("images/face/2.gif\" width=20></TD>\r\n");
out.write(" <TD class=unselected style=\"CURSOR: hand\" onclick=icon(this)>\r\n");
out.write(" <IMG id=3 height=20 src=\"");
out.print(basePath );
out.write("images/face/3.gif\" width=20></TD>\r\n");
out.write(" <TD class=unselected style=\"CURSOR: hand\" onclick=icon(this)>\r\n");
out.write(" <IMG id=4 height=20 src=\"");
out.print(basePath );
out.write("images/face/4.gif\" width=20></TD>\r\n");
out.write(" <TD class=unselected style=\"CURSOR: hand\" onclick=icon(this)>\r\n");
out.write(" <IMG id=5 height=20 src=\"");
out.print(basePath );
out.write("images/face/5.gif\" width=20></TD>\r\n");
out.write(" <TD class=unselected style=\"CURSOR: hand\" onclick=icon(this)>\r\n");
out.write(" <IMG id=6 height=20 src=\"");
out.print(basePath );
out.write("images/face/6.gif\" width=20></TD>\r\n");
out.write(" <TD class=unselected style=\"CURSOR: hand\" onclick=icon(this)>\r\n");
out.write(" <IMG id=7 height=20 src=\"");
out.print(basePath );
out.write("images/face/7.gif\" width=20></TD>\r\n");
out.write(" <TD class=unselected style=\"CURSOR: hand\" onclick=icon(this)>\r\n");
out.write(" <IMG id=8 height=20 src=\"");
out.print(basePath );
out.write("images/face/8.gif\" width=20></TD>\r\n");
out.write(" <TD class=unselected style=\"CURSOR: hand\" onclick=icon(this)>\r\n");
out.write(" <IMG id=9 height=20 src=\"");
out.print(basePath );
out.write("images/face/9.gif\" width=20></TD>\r\n");
out.write(" <TD class=unselected style=\"CURSOR: hand\" onclick=icon(this)>\r\n");
out.write(" <IMG id=10 height=20 src=\"");
out.print(basePath );
out.write("images/face/10.gif\" width=20></TD>\r\n");
out.write(" <TD class=unselected style=\"CURSOR: hand\" onclick=icon(this)>\r\n");
out.write(" <IMG id=11 height=20 src=\"");
out.print(basePath );
out.write("images/face/11.gif\" width=20></TD>\r\n");
out.write(" <TD class=unselected style=\"CURSOR: hand\" onclick=icon(this)>\r\n");
out.write(" <IMG id=12 height=20 src=\"");
out.print(basePath );
out.write("images/face/12.gif\" width=20></TD>\r\n");
out.write(" <TD class=unselected style=\"CURSOR: hand\" onclick=icon(this)>\r\n");
out.write(" <IMG id=13 height=20 src=\"");
out.print(basePath );
out.write("images/face/13.gif\" width=20></TD>\r\n");
out.write(" <TD class=unselected style=\"CURSOR: hand\" onclick=icon(this)>\r\n");
out.write(" <IMG id=14 height=20 src=\"");
out.print(basePath );
out.write("images/face/14.gif\" width=20></TD>\r\n");
out.write(" <TD vAlign=top align=middle><INPUT type=hidden value=1 name=face> </TD>\r\n");
out.write(" </TR>\r\n");
out.write(" </TBODY>\r\n");
out.write(" </TABLE>\r\n");
out.write(" </TD>\r\n");
out.write(" </TR>\r\n");
out.write(" <TR>\r\n");
out.write(" <TD width=\"24%\" align=\"right\">留言内容:</TD>\r\n");
out.write(" <TD align=left><TEXTAREA name=content rows=7 cols=80></TEXTAREA> \r\n");
out.write(" </TD></TR>\r\n");
out.write(" <TR>\r\n");
out.write(" <TD width=\"24%\"> </TD>\r\n");
out.write(" <TD align=left><INPUT type=submit value=\"提 交\" name=Submit> \r\n");
out.write(" </TD></TR></FORM></TBODY></TABLE></TD></TR>\r\n");
out.write(" <TR>\r\n");
out.write(" <TD >\r\n");
out.write(" <H3></H3>\r\n");
out.write(" <H3></H3></TD></TR></TBODY></TABLE>\r\n");
out.write("</DIV>\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("<TABLE id=footer cellSpacing=0 cellPadding=0 width=\"100%\" align=center border=0>\r\n");
out.write("<TBODY>\r\n");
out.write(" <TR>\r\n");
out.write(" <TD align=middle>\r\n");
out.write("\t<DIV align=center>\r\n");
out.write("\t 建议使用IE6.0或以上版本浏览 <br>\r\n");
out.write("\t ");
out.print(sysList.get(8).toString() );
out.write(" </DIV>\r\n");
out.write(" </TD>\r\n");
out.write(" </TR>\r\n");
out.write("</TBODY>\r\n");
out.write("</TABLE>\r\n");
out.write("<SCRIPT language=JavaScript>\r\n");
out.write("<!--//目的是为了做风格方便\r\n");
out.write("document.write('</div>');\r\n");
out.write("//-->\r\n");
out.write("</SCRIPT>\r\n");
out.write("\r\n");
out.write("<SCRIPT language=JavaScript>\r\n");
out.write("<!--\r\n");
out.write("clickEdit.init();\r\n");
out.write("//-->\r\n");
out.write("</SCRIPT>\r\n");
out.write("</BODY>\r\n");
}else{
out.write("\r\n");
out.write("<br><br><p align=center>");
out.print(sysList.get(6).toString() );
out.write('\r');
out.write('\n');
}
out.write("\r\n");
out.write("</HTML>\r\n");
} catch (Throwable t) {
if (!(t instanceof SkipPageException)){
out = _jspx_out;
if (out != null && out.getBufferSize() != 0)
out.clearBuffer();
if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
}
} finally {
if (_jspxFactory != null) _jspxFactory.releasePageContext(_jspx_page_context);
}
}
}
| [
"gechen1993@163.com"
] | gechen1993@163.com |
67c102aee9c7af90fc469b92564166c965e6cfdc | 5f82b8c51d4d1afccc6289c5e6ec495aabb12c7f | /EAM.java | 3fbb84e22060d59899ff016589f5d9f227b5cf1b | [] | no_license | codehacpj/Improved-EAM | fd2aff045aae88b4ba4c8526b7ec7c4a6d4ae6d9 | 0c15f5f6d487a27ffdf9765058ce09fd4ad83ca3 | refs/heads/master | 2020-04-23T21:51:41.564256 | 2019-02-19T13:56:22 | 2019-02-19T13:56:22 | 171,482,898 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 4,991 | java | package EAM;
import com.sun.jdi.DoubleValue;
import java.security.spec.ECPoint;
import java.util.Random;
/**
* Represents a swarm of particles from the Particle EAM Optimization algorithm.
*/
public class EAM {
private int numOfParticles, epochs;
private int dimension;
private int function; // The function to search.
private Particle[] oldPopulation;
private Particle[] newPopulation;
private static int bestParticle;
private static double f_average;
private static int worstParticle;
private static int debug = 1;
private static double old_best = Double.MAX_VALUE;
/**
* When Particles are created they are given a random position.
* The random position is selected from a specified range.
* If the begin range is 0 and the end range is 10 then the
* value will be between 0 (inclusive) and 10 (exclusive).
*/
private int beginRange, endRange;
private static final int DEFAULT_BEGIN_RANGE = -100;
private static final int DEFAULT_END_RANGE = 100;
/**
* Construct the EAM with custom values.
* @param particles the number of particles to create
* @param epochs the number of generations
*/
public EAM(int function, int dimension, int particles, int epochs) {
this.numOfParticles = particles;
this.epochs = epochs;
this.function = function;
this.dimension = dimension;
double infinity = Double.POSITIVE_INFINITY;
beginRange = DEFAULT_BEGIN_RANGE;
endRange = DEFAULT_END_RANGE;
}
/**
* Execute the algorithm.
*/
public void run () {
oldPopulation = initialize();
newPopulation = new Particle[numOfParticles];
for (int k = 0; k < epochs; k++) {
int best = 0, worst = 0;
double sum = 0;
for (int i = 0; i < oldPopulation.length; i++) {
double functionValue = oldPopulation[i].getBestEval();
if (oldPopulation[best].getBestEval() > functionValue) {
best = i;
} else if (oldPopulation[worst].getBestEval() < functionValue) {
worst = i;
}
sum += functionValue;
}
bestParticle = best;
worstParticle = worst;
double average = sum / numOfParticles;
f_average = average;
///
generateNewPopulation();
selection();
double cbest = getGlobalBest();
if(cbest < old_best && debug == 1) {
old_best = cbest;
System.out.println(String.format("Current Best %4d : %f", k+1, cbest));
}
}
}
private void generateNewPopulation()
{
Random r = new Random();
for (int i = 0; i < numOfParticles; i++) {
if(i == bestParticle)
continue;
newPopulation[i] = oldPopulation[i].clone();
// newPopulation[i].add(r.nextDouble() *
// (oldPopulation[bestParticle].getBestEval() - oldPopulation[worstParticle].getBestEval())
// );
newPopulation[i].adjustNonBest(r.nextDouble(), oldPopulation[bestParticle], oldPopulation[worstParticle]);
}
//for best particle
double c = oldPopulation[bestParticle].getBestEval() / f_average;
newPopulation[bestParticle] = oldPopulation[bestParticle].clone();
newPopulation[bestParticle].multiply(c);
newPopulation[bestParticle].add(r.nextDouble());
}
/**
* Create a set of particles, each with random starting positions.
* @return an array of particles
*/
private Particle[] initialize () {
Particle[] particles = new Particle[numOfParticles];
for (int i = 0; i < numOfParticles; i++) {
Particle particle = new Particle(function, beginRange, endRange, dimension);
particles[i] = particle;
}
return particles;
}
private void selection()
{
Particle[] combined = new Particle[2*numOfParticles];
for (int i = 0; i < numOfParticles; i++) {
combined[i] = oldPopulation[i];
combined[i+numOfParticles] = newPopulation[i];
}
for (int i = 0; i < numOfParticles +1; i++) {
int min_index = i;
for (int j = i+1; j < 2 * numOfParticles; j++) {
if(combined[j].getBestEval() < combined[min_index].getBestEval())
{
min_index = j;
}
}
//swap
Particle temp = combined[i];
combined[i] = combined[min_index];
combined[min_index] = temp;
}
for (int i = 0; i < numOfParticles; i++) {
oldPopulation[i] = combined[i];
}
}
public double getGlobalBest()
{
return oldPopulation[bestParticle].getBestEval();
}
}
| [
"prashant.pkj01@gmail.com"
] | prashant.pkj01@gmail.com |
9faea17584b72e83d8f663cf3e37468f98655c5e | f7d0f1595cac6114adfdd6887e3f633d5aa9bd80 | /src/main/java/chess/Coordinate.java | 162f89319e16b120abf941fc93d79af15b95a54d | [] | no_license | udvarid/hobbyProjektChess | 3827f6a67cc0700ea7c21a5864d687605b31aa1b | 5c0657d60c5f4cff287ac55f26016fca5961127f | refs/heads/master | 2020-04-07T20:10:54.032172 | 2019-12-17T14:35:21 | 2019-12-17T14:35:21 | 158,678,328 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 914 | java | package chess;
import java.util.Objects;
public class Coordinate {
private int x;
private int y;
public Coordinate(int x, int y) {
this.x = x;
this.y = y;
}
public int getX() {
return x;
}
public int getY() {
return y;
}
public void setX(int x) {
this.x = x;
}
public void setY(int y) {
this.y = y;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
Coordinate that = (Coordinate) o;
return x == that.x &&
y == that.y;
}
@Override
public int hashCode() {
return Objects.hash(x, y);
}
@Override
public String toString() {
return "Coordinate{" +
"x=" + x +
", y=" + y +
'}';
}
}
| [
"udvari.donat@gmail.com"
] | udvari.donat@gmail.com |
04917b27f59f731a52a5cc1f3811c142cdec8547 | f45c2611ebecaa7458bf453deb04392f4f9d591f | /lib/HTMLUnit/htmlunit-2.26-src/src/main/java/com/gargoylesoftware/htmlunit/html/HtmlContent.java | f4f11a8e39c08a1828b6715530088e3cdb07cca0 | [
"Apache-2.0"
] | permissive | abdallah-95/Arabic-News-Reader-Server | 92dc9db0323df0d5694b6c97febd1d04947c740d | ef986c40bc7ccff261e4c1c028ae423573ee4a74 | refs/heads/master | 2021-05-12T05:08:23.710984 | 2018-01-15T01:46:25 | 2018-01-15T01:46:25 | 117,183,791 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,590 | java | /*
* Copyright (c) 2002-2017 Gargoyle Software Inc.
*
* 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.gargoylesoftware.htmlunit.html;
import java.util.Map;
import com.gargoylesoftware.htmlunit.SgmlPage;
/**
* Wrapper for the HTML element "content".
*
* @author Ahmed Ashour
* @author Ronald Brill
*/
public class HtmlContent extends HtmlElement {
/** The HTML tag represented by this element. */
public static final String TAG_NAME = "content";
/**
* Creates a new instance.
*
* @param qualifiedName the qualified name of the element type to instantiate
* @param page the page that contains this element
* @param attributes the initial attributes
*/
HtmlContent(final String qualifiedName, final SgmlPage page,
final Map<String, DomAttr> attributes) {
super(qualifiedName, page, attributes);
}
/**
* {@inheritDoc}
*/
@Override
public DisplayStyle getDefaultStyleDisplay() {
return DisplayStyle.INLINE;
}
}
| [
"abdallah.x95@gmail.com"
] | abdallah.x95@gmail.com |
7dce7c7a2101d6e918bd7600446a44ddb54f5a0d | e35ee84e383c9826da54632fadf19c3fa268078d | /src/main/java/io/spotnext/jfly/ui/navigation/TreeView.java | 90fad395f86b73af9fe22a7ceeebc080c647ca73 | [
"MIT"
] | permissive | mojo2012/jfly | fd74f1464532ed2a3efa754c19d4b4be164f28b2 | c3bc55a2e324bc55b670714af2610617e9d5bcdf | refs/heads/develop | 2022-12-10T04:47:45.814136 | 2020-04-24T10:16:24 | 2020-04-24T10:16:24 | 80,616,325 | 2 | 1 | MIT | 2022-12-03T04:17:52 | 2017-02-01T12:05:59 | Java | UTF-8 | Java | false | false | 592 | java | package io.spotnext.jfly.ui.navigation;
import io.spotnext.jfly.ComponentHandler;
import io.spotnext.jfly.ui.base.AbstractContainerComponent;
public class TreeView extends AbstractContainerComponent<TreeNode> {
private boolean allowMultiExpand = true;
public TreeView(ComponentHandler handler) {
super(handler);
}
public enum NodeType {
SPLITTER, DEFAULT, SUB_HEADER
}
public boolean isAllowMultiExpand() {
return allowMultiExpand;
}
public void setAllowMultiExpand(boolean allowMultiExpand) {
this.allowMultiExpand = allowMultiExpand;
updateClientComponent();
}
}
| [
"meister.fuchs@gmail.com"
] | meister.fuchs@gmail.com |
ed8e6fd71df722c19e8754f100a10c379e9fac35 | 8603e812b87f7591c412135f3b49f24fa942bf09 | /Star/public/gatk-utils/src/main/java/org/broadinstitute/gatk/utils/jna/clibrary/JNAUtils.java | cebf5e4d669ced7259f24ae3a609b633887ce52a | [] | no_license | zhmz90/DebugMutect2 | 21617957e02a9adc216eb1eace06873874333568 | 53f39efaebd13efd21debc72c44fa5299ec338f4 | refs/heads/master | 2020-12-25T17:17:17.693506 | 2016-03-24T02:33:16 | 2016-03-24T02:33:16 | 53,378,698 | 1 | 1 | null | null | null | null | UTF-8 | Java | false | false | 1,996 | java | /*
* Copyright 2012-2015 Broad Institute, Inc.
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restriction, including without limitation the rights to use,
* copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following
* conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR
* THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
package org.broadinstitute.gatk.utils.jna.clibrary;
import com.sun.jna.Platform;
/**
* Collection of functions that are in the standard CLibrary but are associated with different headers on different platforms.
*/
public class JNAUtils {
/**
* Defined in different places on different systems, this is currently 256 on mac and 64 everywhere else.
*/
public static final int MAXHOSTNAMELEN;
/**
* Maximum path length.
*/
public static final int MAXPATHLEN = 1024;
static {
int maxhostnamelen = 64;
if (Platform.isMac())
maxhostnamelen = 256;
MAXHOSTNAMELEN = maxhostnamelen;
}
/**
* Converts a non-zero int to true, otherwise false.
* @param val int to check.
* @return true if val is non-zero.
*/
public static boolean toBoolean(int val) {
return val != 0;
}
}
| [
"zhmz90@gmail.com"
] | zhmz90@gmail.com |
a559c673fb83b6909c926b29142712851c060d39 | 5935c725e3ff781603c6022343512afc4f76c28e | /src/main/java/asia/laevatein/buka/util/BukaUtil.java | aa2b6f590e5cf8e634e7500010fc4cd0a203b867 | [] | no_license | dev-husky/buka-convertor | 2f4183d53f950de288bf35e8c5d6e9f79f730f6d | 1bd0738f27ea4088cfb6fdd634d4e0c6a67c64ca | refs/heads/master | 2021-01-01T19:11:20.227499 | 2015-01-30T09:23:44 | 2015-01-30T09:23:44 | 28,219,892 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,068 | java | package asia.laevatein.buka.util;
import java.io.File;
import java.io.IOException;
import java.util.Collection;
import asia.laevatein.buka.model.ChapOrder.Chap;
import asia.laevatein.buka.util.Config.Key;
public class BukaUtil {
public static void convert(Chap chap, File inputDir, File outputDir) throws IOException {
File bukaResource = new File(inputDir, chap.getCid() + ".buka");
if (!bukaResource.exists()) {
// chap不是buka文件,可能是文件夹
bukaResource = new File(inputDir, chap.getCid());
if (!bukaResource.exists() || !bukaResource.isDirectory()) {
// chap也不是文件夹
throw new RuntimeException("Buka resource file not found");
}
}
Log.info("[Chap " + chap.getCid() + "] Found resource : " + bukaResource.getAbsolutePath());
File bukaParserExe = new File(Config.get(Key.BUKA_PARSER_EXE_PATH));
File tmpDir = new File(outputDir, "tmp");
tmpDir.mkdirs();
String[] cmd = new String[]{
bukaParserExe.getAbsolutePath(),
bukaResource.getAbsolutePath(),
tmpDir.getAbsolutePath()
};
Command command = new Command(cmd);
command.exec();
Collection<File> pngFiles = FileUtil.listFiles(outputDir, new String[]{"png"}, true);
for (File pngFile : pngFiles) {
FileUtil.moveFileToDirectory(pngFile, outputDir, false);
}
for (File tmp : outputDir.listFiles()) {
if (tmp.isDirectory()) {
FileUtil.forceDelete(tmp);
}
}
Log.info("[Chap " + chap.getCid() + "] Got " + FileUtil.listFiles(outputDir, new String[]{"png"}, false).size() + " PNG files");
}
public static void png2jpg(Chap chap, File outputDir) throws IOException {
File bukaPng2jpgExe = new File(Config.get(Key.BUKA_PNG2JPG_EXE_PATH));
String[] cmd = new String[] {
bukaPng2jpgExe.getAbsolutePath(),
outputDir.getAbsolutePath()
};
Command command = new Command(cmd);
command.exec();
Log.info("[Chap " + chap.getCid() + "] Got " + FileUtil.listFiles(outputDir, new String[]{"jpg"}, false).size() + " JPG files");
}
}
| [
"developer.husky@gmail.com"
] | developer.husky@gmail.com |
34415570c15f70d3a2666453aba09e87fc9472f4 | 9a064f03b5d437ffbacf74ac3018626fbd1b1b0b | /src/main/java/com/learn/java/leetcode/lc1632/Main.java | 091012fc7047b3818b908734a2ee899b902b9b97 | [
"Apache-2.0"
] | permissive | philippzhang/leetcodeLearnJava | c2437785010b7bcf50d62eeab33853a744fa1e40 | ce39776b8278ce614f23f61faf28ca22bfa525e7 | refs/heads/master | 2022-12-21T21:43:46.677833 | 2021-07-12T08:13:37 | 2021-07-12T08:13:37 | 183,338,794 | 2 | 0 | Apache-2.0 | 2022-12-16T03:55:00 | 2019-04-25T02:12:20 | Java | UTF-8 | Java | false | false | 247 | java | package com.learn.java.leetcode.lc1632;
import com.learn.java.leetcode.base.CallBack;
import com.learn.java.leetcode.base.Utilitys;
public class Main extends CallBack {
public static void main(String[] args) {
Utilitys.test(Main.class);
}
}
| [
"philipp_zhang@163.com"
] | philipp_zhang@163.com |
3502e2a8dc7c64b50caab6a23040c5692429f263 | a71a080725bf9ca455e6a6e5740bb5f6f9ad0012 | /examples/0302/MyAndroidTutorial/src/net/macdidi/myandroidtutorial/ItemAdapter.java | 10871a0d3ea0e6ec2ccc1f273a6f455d5727c781 | [] | no_license | dragonlance3388/AndroidTutorial | 1a8cb9e60b5018b4e2c8ad4cb24484bb7fee28fe | 19a87a025ec4a8f260acde40473e7c9751c4d31f | refs/heads/master | 2021-01-16T00:47:03.204717 | 2015-01-24T15:06:10 | 2015-01-24T15:06:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,358 | java | package net.macdidi.myandroidtutorial;
import java.util.List;
import android.content.Context;
import android.graphics.drawable.GradientDrawable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;
public class ItemAdapter extends ArrayAdapter<Item> {
// 畫面資源編號
private int resource;
// 包裝的記事資料
private List<Item> items;
public ItemAdapter(Context context, int resource, List<Item> items) {
super(context, resource, items);
this.resource = resource;
this.items = items;
}
@Override
public View getView(int position, View convertView, ViewGroup parent) {
LinearLayout itemView;
// 讀取目前位置的記事物件
final Item item = getItem(position);
if (convertView == null) {
// 建立項目畫面元件
itemView = new LinearLayout(getContext());
String inflater = Context.LAYOUT_INFLATER_SERVICE;
LayoutInflater li = (LayoutInflater)
getContext().getSystemService(inflater);
li.inflate(resource, itemView, true);
}
else {
itemView = (LinearLayout) convertView;
}
// 讀取記事顏色、已選擇、標題與日期時間元件
RelativeLayout typeColor = (RelativeLayout) itemView.findViewById(R.id.type_color);
ImageView selectedItem = (ImageView) itemView.findViewById(R.id.selected_item);
TextView titleView = (TextView) itemView.findViewById(R.id.title_text);
TextView dateView = (TextView) itemView.findViewById(R.id.date_text);
// 設定記事顏色
GradientDrawable background = (GradientDrawable)typeColor.getBackground();
background.setColor(item.getColor().parseColor());
// 設定標題與日期時間
titleView.setText(item.getTitle());
dateView.setText(item.getLocaleDatetime());
// 設定是否已選擇
selectedItem.setVisibility(item.isSelected() ? View.VISIBLE : View.INVISIBLE);
return itemView;
}
// 設定指定編號的記事資料
public void set(int index, Item item) {
if (index >= 0 && index < items.size()) {
items.set(index, item);
notifyDataSetChanged();
}
}
// 讀取指定編號的記事資料
public Item get(int index) {
return items.get(index);
}
}
| [
"macdidi5@gmail.com"
] | macdidi5@gmail.com |
8b3517163adfdb8afe2c0b27ace078532d09f25f | b332525418cc82f9adca56885084546bc71ea218 | /app/src/androidTest/java/com/sdsmdg/cognizance2017/ExampleInstrumentedTest.java | e983798e1595edc31cfc5f8913c6d461a14e3f6b | [] | no_license | arihant-001/Cognizance17 | 064e132741ee4077ebef68f6164eec9f7dbf63b8 | 921699c51620d75408d679dedf8dcf4bfaef9534 | refs/heads/master | 2021-09-11T09:56:00.078421 | 2018-03-25T17:47:20 | 2018-03-25T17:47:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 754 | java | package com.sdsmdg.cognizance2017;
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.*;
/**
* Instrumentation 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() throws Exception {
// Context of the app under test.
Context appContext = InstrumentationRegistry.getTargetContext();
assertEquals("com.sdsmdg.cognizance2017", appContext.getPackageName());
}
}
| [
"brohan52@gmail.com"
] | brohan52@gmail.com |
fa7dc3107cec21d853b4443542db8cd4035e7cd3 | 8a0637c1e026f51d18f91ad76678bd73019903bf | /java/src/grade_b/PAT1049.java | 8ad0904be634202b902efe5e1476b187329b3f52 | [] | no_license | Amabel/PAT | c2d90887bbefa05aa09123d65fb1fcc32eda7e0a | f438d6ee019366264dc5331f3f5de06828d7950e | refs/heads/master | 2020-03-14T06:04:07.576564 | 2018-05-12T11:43:39 | 2018-05-12T11:43:39 | 131,476,597 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 434 | java | package grade_b;
import java.util.Scanner;
public class PAT1049 {
public static void main(String[] args) {
try (Scanner sc = new Scanner(System.in);) {
int n = sc.nextInt();
double sum = 0;
for (int i = 1; i <= n; i++) {
double a = sc.nextDouble();
sum += a * i * (n - i + 1);
}
System.out.printf("%.2f", sum);
}
}
}
| [
"luoweibinb@gmail.com"
] | luoweibinb@gmail.com |
08cdf3c306f140ef09c8ff96651f7658a0f3c4ec | 34b0affc8967d51acc6dae756766fa455c8b1953 | /javaProject/src/collections/StudentExample.java | 78c9401aece18fc2d7ae8c3e954d2842b6b54927 | [] | no_license | sdy2966/javaProject | 92c16b5e0fbe8e99958c404cec3e27ca892bcdb4 | fe25b61428046aa003b2f7f563e597c2da3f2a85 | refs/heads/master | 2023-04-07T04:15:01.455801 | 2021-04-14T06:02:27 | 2021-04-14T06:02:27 | 339,925,328 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 767 | java | package collections;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import java.util.Set;
public class StudentExample {
public static void main(String[] args) {
Map<Student, Integer> map= new HashMap<Student, Integer>();
map.put(new Student(1, "홍길동"), 90);//해쉬코드랑 이꼴이 엉ㅎ게정의되냐에 따라서 중복을 같은 객체라고
map.put(new Student(2, "김민수"), 85);
map.put(new Student(1, "홍길동"), 42);//key값은 중복으로 들어 올 수 없다//다 다른 인스턴스~
Set<Student> set = map.keySet();
Iterator<Student> iter = set.iterator();
while(iter.hasNext()) {
Student student = iter.next();
System.out.println(student.toString());
}
}
}
| [
"admin@YD01-05"
] | admin@YD01-05 |
bee5c93e32d45ea3700a696a78c12830ed58dc92 | 9c8e4cda15dd36fd879b9a8ed9584dae5f1741f2 | /src/test/java/org/zerock/persistence/DataSourceTests.java | 22489ea7eef5bcc9bf7ead8ef26a53a2e17f53f7 | [] | no_license | CEmmanuelP/spring_website | d4f2746479eb240134e6bd2ca7b98cea062ec01e | 26b4526fd4970fc76c8b8595d2593b6c0583ff36 | refs/heads/master | 2022-12-14T20:05:49.215630 | 2020-09-07T10:47:55 | 2020-09-07T10:47:55 | 292,812,907 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 872 | java | package org.zerock.persistence;
import static org.junit.Assert.fail;
import lombok.Setter;
import lombok.extern.log4j.Log4j;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import javax.sql.DataSource;
import java.sql.Connection;
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration("file:web/WEB-INF/applicationContext.xml")
@Log4j
public class DataSourceTests {
@Setter(onMethod_ = { @Autowired })
private DataSource dataSource;
@Test
public void testConnection(){
try(Connection con = dataSource.getConnection()){
log.info(con);
}catch (Exception e){
fail(e.getMessage());
}
}
}
| [
"chrisp3@daum.net"
] | chrisp3@daum.net |
3ca1356df223a066ee8e871aac4ae816c9ae903f | ebf1768d3b5e0bfbaefc7a74b60de035f33f455b | /2_injection/injector/src/dst3/depinj/annotations/Component.java | eead3fddd5da037a6718de1ac97853e57900c7bd | [] | no_license | aknoxx/xyz3 | ca1a195d6f4a8fcb6eb1f2f32cf897fe38c6685d | 2a7bb9fb5b45122640585ddf27f5dad60bc64dff | refs/heads/master | 2021-01-23T07:03:45.859794 | 2011-05-31T14:24:32 | 2011-05-31T14:24:32 | 1,756,688 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 180 | java | package dst3.depinj.annotations;
import java.lang.annotation.*;
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
public @interface Component {
ScopeType scope();
}
| [
"markus.claessens@gmx.at"
] | markus.claessens@gmx.at |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.