text
stringlengths 101
200k
| repo_name
stringlengths 5
73
| stars
stringlengths 3
6
| repo_language
stringlengths 1
24
| file_name
stringlengths 2
57
| mime_type
stringclasses 22
values | hash
int64 -9,223,369,786,400,666,000
9,223,339,290B
|
---|---|---|---|---|---|---|
package com.astamuse.asta4d.data.convertor;
import java.time.LocalDate;
import java.time.format.DateTimeFormatter;
public class String2Java8LocalDate extends AbstractString2Java8DateConvertor<LocalDate> implements DataValueConvertor<String, LocalDate> {
protected DateTimeFormatter[] availableFormatters() {
return String2Java8Instant.dtfs;
}
@Override
protected LocalDate convert2Target(DateTimeFormatter formatter, String obj) {
return formatter.parse(obj, LocalDate::from);
}
}
| astamuse/asta4d | 162 | Java | org.eclipse.core.resources.prefs | text/plain | -427,950,831,696,972,740 |
/*
* Copyright 2014 astamuse company,Ltd.
*
* 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.astamuse.asta4d.data.convertor;
import org.joda.time.LocalTime;
import org.joda.time.format.DateTimeFormat;
import org.joda.time.format.DateTimeFormatter;
import org.joda.time.format.ISODateTimeFormat;
public class String2JodaLocalTime extends AbstractString2DateConvertor<LocalTime> implements DataValueConvertor<String, LocalTime> {
//@formatter:off
static final DateTimeFormatter[] dtfs = new DateTimeFormatter[] {
ISODateTimeFormat.timeParser(),
ISODateTimeFormat.timeNoMillis(),
DateTimeFormat.forPattern("HHmmss.SSSZ"),
DateTimeFormat.forPattern("HHmmss.SSS"),
DateTimeFormat.forPattern("HHmmss"),
};
//@formatter:on
protected DateTimeFormatter[] availableFormatters() {
return dtfs;
}
@Override
protected LocalTime convert2Target(DateTimeFormatter formatter, String obj) {
return formatter.parseLocalTime(obj);
}
}
| astamuse/asta4d | 162 | Java | org.eclipse.core.resources.prefs | text/plain | 859,892,009,268,804,100 |
/*
* Copyright 2014 astamuse company,Ltd.
*
* 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.astamuse.asta4d.data.convertor;
import org.apache.commons.lang3.StringUtils;
/**
* convert string to enum
*
* @author e-ryu
*
*/
@SuppressWarnings("rawtypes")
public class String2Enum implements DataValueConvertorTargetTypeConvertable<String, Enum> {
@Override
public DataValueConvertor<String, Enum> convert(final Class<Enum> targetType) {
return new DataValueConvertor<String, Enum>() {
@SuppressWarnings("unchecked")
@Override
public Enum convert(String s) throws UnsupportedValueException {
if (StringUtils.isEmpty(s)) {
return null;
}
return Enum.valueOf(targetType, s);
}
};
}
}
| astamuse/asta4d | 162 | Java | org.eclipse.core.resources.prefs | text/plain | 4,087,914,741,105,007,000 |
/*
* Copyright 2012 astamuse company,Ltd.
*
* 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.astamuse.asta4d.data.convertor;
import org.apache.commons.lang3.StringUtils;
/**
* Convert String to Long
*
* @author e-ryu
*
*/
public class String2Long implements DataValueConvertor<String, Long> {
@Override
public Long convert(String s) throws UnsupportedValueException {
if (StringUtils.isEmpty(s)) {
return null;
}
try {
return Long.parseLong(s);
} catch (NumberFormatException nfe) {
throw new UnsupportedValueException();
}
}
}
| astamuse/asta4d | 162 | Java | org.eclipse.core.resources.prefs | text/plain | 4,462,681,820,765,040,000 |
/*
* Copyright 2012 astamuse company,Ltd.
*
* 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.astamuse.asta4d.data.convertor;
import com.astamuse.asta4d.data.InjectUtil;
/**
*
* This interface is used by {@link InjectUtil} to convert context data to the appropriate type automatically
*
* @author e-ryu
*
* @param <S>
* source type
* @param <T>
* target type
*/
public interface DataValueConvertor<S, T> {
/**
* convert a data from the original type to a certain type
*
* @param obj
* the data wanted to be converted
* @return converted result
*/
public T convert(S obj) throws UnsupportedValueException;
}
| astamuse/asta4d | 162 | Java | org.eclipse.core.resources.prefs | text/plain | 3,106,702,732,192,571,000 |
package com.astamuse.asta4d.data.convertor;
import java.time.DateTimeException;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.time.temporal.TemporalAccessor;
public class String2Java8LocalDateTime extends AbstractString2Java8DateConvertor<LocalDateTime> implements
DataValueConvertor<String, LocalDateTime> {
protected DateTimeFormatter[] availableFormatters() {
return String2Java8Instant.dtfs;
}
@Override
protected LocalDateTime convert2Target(DateTimeFormatter formatter, String obj) {
TemporalAccessor temporal = formatter.parse(obj);
try {
return LocalDateTime.from(temporal);
} catch (DateTimeException ex) {
// a local date only string
return LocalDate.from(temporal).atStartOfDay();
}
}
}
| astamuse/asta4d | 162 | Java | org.eclipse.core.resources.prefs | text/plain | 4,666,379,236,130,881,000 |
/*
* Copyright 2014 astamuse company,Ltd.
*
* 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.astamuse.asta4d.data.convertor;
import com.astamuse.asta4d.data.DataOperationException;
import com.astamuse.asta4d.data.DefaultDataTypeTransformer;
/**
*
* A {@link DataValueConvertor} would throw this exception to show that it cannot convert the given value even the type is matched. The
* {@link DefaultDataTypeTransformer} would ignore this exception and try the left convertors in the list.
*
* @author e-ryu
*
*/
public class UnsupportedValueException extends DataOperationException {
/**
*
*/
private static final long serialVersionUID = 1L;
public UnsupportedValueException() {
super("");
}
}
| astamuse/asta4d | 162 | Java | org.eclipse.core.resources.prefs | text/plain | -2,283,203,031,387,649,800 |
/*
* Copyright 2012 astamuse company,Ltd.
*
* 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.astamuse.asta4d.data.convertor;
import org.apache.commons.lang3.StringUtils;
/**
* Convert String to Integer
*
* @author e-ryu
*
*/
public class String2Int implements DataValueConvertor<String, Integer> {
@Override
public Integer convert(String s) throws UnsupportedValueException {
if (StringUtils.isEmpty(s)) {
return null;
}
try {
return Integer.parseInt(s);
} catch (NumberFormatException nfe) {
throw new UnsupportedValueException();
}
}
}
| astamuse/asta4d | 162 | Java | org.eclipse.core.resources.prefs | text/plain | 2,472,552,352,863,650,000 |
/*
* Copyright 2014 astamuse company,Ltd.
*
* 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.astamuse.asta4d.data.convertor;
/**
*
* Can be used to implement a convertor against parent type, such as enum.
*
* @see String2Enum
*
* @author e-ryu
*
* @param <S>
* @param <T>
*/
public interface DataValueConvertorTargetTypeConvertable<S, T> extends DataValueConvertor<Class<T>, DataValueConvertor<S, T>> {
public DataValueConvertor<S, T> convert(Class<T> targetType);
}
| astamuse/asta4d | 162 | Java | org.eclipse.core.resources.prefs | text/plain | 299,038,657,666,514,300 |
/*
* Copyright 2014 astamuse company,Ltd.
*
* 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.astamuse.asta4d.data.convertor;
import org.apache.commons.lang3.StringUtils;
import org.joda.time.format.DateTimeFormatter;
public abstract class AbstractString2DateConvertor<T> {
public T convert(String s) throws UnsupportedValueException {
if (StringUtils.isEmpty(s)) {
return null;
}
for (DateTimeFormatter formatter : availableFormatters()) {
try {
return convert2Target(formatter, s);
} catch (IllegalArgumentException e) {
continue;
}
}
throw new UnsupportedValueException();
}
protected abstract DateTimeFormatter[] availableFormatters();
protected abstract T convert2Target(DateTimeFormatter formatter, String obj);
}
| astamuse/asta4d | 162 | Java | org.eclipse.core.resources.prefs | text/plain | 6,499,329,445,393,881,000 |
package com.astamuse.asta4d.data.convertor;
import static java.time.temporal.ChronoField.INSTANT_SECONDS;
import static java.time.temporal.ChronoField.NANO_OF_SECOND;
import java.time.DateTimeException;
import java.time.Instant;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.ZoneId;
import java.time.ZonedDateTime;
import java.time.format.DateTimeFormatter;
import java.time.format.DateTimeFormatterBuilder;
import java.time.temporal.TemporalAccessor;
import java.util.Objects;
public class String2Java8Instant extends AbstractString2Java8DateConvertor<Instant> implements DataValueConvertor<String, Instant> {
//@formatter:off
private static final DateTimeFormatter ISO_DATE_TIME_ZONE_VARIANT = new DateTimeFormatterBuilder()
.append(DateTimeFormatter.ISO_LOCAL_DATE_TIME)
.optionalStart()
.appendOffset("+HHmm", "Z")
.optionalStart()
.appendLiteral('[')
.parseCaseSensitive()
.appendZoneRegionId()
.appendLiteral(']')
.toFormatter();
//@formatter:on
//@formatter:off
static final DateTimeFormatter[] dtfs = new DateTimeFormatter[] {
DateTimeFormatter.ofPattern("yyyyMMdd"),
DateTimeFormatter.ISO_INSTANT,
DateTimeFormatter.ISO_DATE_TIME,
ISO_DATE_TIME_ZONE_VARIANT,
DateTimeFormatter.ISO_LOCAL_DATE_TIME,
DateTimeFormatter.ISO_DATE,
DateTimeFormatter.ISO_LOCAL_DATE,
DateTimeFormatter.ofPattern("yyyyMMdd'T'HHmmss.SSSZ"),
DateTimeFormatter.ofPattern("yyyyMMdd'T'HHmmss.SSS"),
DateTimeFormatter.ofPattern("yyyyMMdd'T'HHmmss"),
};
//@formatter:on
protected DateTimeFormatter[] availableFormatters() {
return dtfs;
}
@Override
protected Instant convert2Target(DateTimeFormatter formatter, String obj) {
TemporalAccessor temporal = formatter.parse(obj);
if (temporal instanceof Instant) {
return (Instant) temporal;
}
Objects.requireNonNull(temporal, "temporal");
try {
long instantSecs = temporal.getLong(INSTANT_SECONDS);
int nanoOfSecond = temporal.get(NANO_OF_SECOND);
return Instant.ofEpochSecond(instantSecs, nanoOfSecond);
} catch (DateTimeException e) {
// which means it may be a local date time or local date only string
ZonedDateTime zdt;
try {
LocalDateTime ldt = LocalDateTime.from(temporal);
zdt = ZonedDateTime.of(ldt, ZoneId.systemDefault());
} catch (DateTimeException ex) {
// a local date only string
zdt = ZonedDateTime.of(LocalDate.from(temporal).atStartOfDay(), ZoneId.systemDefault());
}
return zdt.toInstant();
}
}
}
| astamuse/asta4d | 162 | Java | org.eclipse.core.resources.prefs | text/plain | -4,693,768,376,010,671,000 |
/*
* Copyright 2014 astamuse company,Ltd.
*
* 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.astamuse.asta4d.data.convertor;
import org.joda.time.DateTime;
import org.joda.time.format.DateTimeFormat;
import org.joda.time.format.DateTimeFormatter;
import org.joda.time.format.ISODateTimeFormat;
public class String2JodaDateTime extends AbstractString2DateConvertor<DateTime> implements DataValueConvertor<String, DateTime> {
//@formatter:off
static final DateTimeFormatter[] dtfs = new DateTimeFormatter[] {
DateTimeFormat.forPattern("yyyyMMdd"),
ISODateTimeFormat.dateOptionalTimeParser(),
DateTimeFormat.forPattern("yyyyMMdd'T'HHmmss.SSSZ"),
DateTimeFormat.forPattern("yyyyMMdd'T'HHmmss.SSS"),
DateTimeFormat.forPattern("yyyyMMdd'T'HHmmss"),
};
//@formatter:on
protected DateTimeFormatter[] availableFormatters() {
return dtfs;
}
@Override
protected DateTime convert2Target(DateTimeFormatter formatter, String obj) {
return formatter.parseDateTime(obj);
}
}
| astamuse/asta4d | 162 | Java | org.eclipse.core.resources.prefs | text/plain | 4,765,653,731,994,980,000 |
/*
* Copyright 2012 astamuse company,Ltd.
*
* 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.astamuse.asta4d.data.convertor;
import org.apache.commons.lang3.StringUtils;
/**
* Convert String to Boolean
*
* @author e-ryu
*
*/
public class String2Bool implements DataValueConvertor<String, Boolean> {
@Override
public Boolean convert(String s) throws UnsupportedValueException {
if (StringUtils.isEmpty(s)) {
return null;
} else {
return Boolean.parseBoolean(s);
}
}
}
| astamuse/asta4d | 162 | Java | org.eclipse.core.resources.prefs | text/plain | -3,582,282,978,031,233,000 |
/*
* Copyright 2014 astamuse company,Ltd.
*
* 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.astamuse.asta4d.data.convertor;
import java.util.Date;
import org.joda.time.format.DateTimeFormatter;
public class String2Date extends AbstractString2DateConvertor<Date> implements DataValueConvertor<String, Date> {
protected DateTimeFormatter[] availableFormatters() {
return String2JodaDateTime.dtfs;
}
@Override
protected Date convert2Target(DateTimeFormatter formatter, String obj) {
return formatter.parseDateTime(obj).toDate();
}
}
| astamuse/asta4d | 162 | Java | org.eclipse.core.resources.prefs | text/plain | -5,957,376,627,126,052,000 |
package com.astamuse.asta4d.data.convertor;
import java.time.YearMonth;
import java.time.format.DateTimeFormatter;
public class String2Java8YearMonth extends AbstractString2Java8DateConvertor<YearMonth> implements DataValueConvertor<String, YearMonth> {
//@formatter:off
static final DateTimeFormatter[] dtfs = new DateTimeFormatter[] {
DateTimeFormatter.ofPattern("yyyy-MM"),
DateTimeFormatter.ofPattern("yyyyMM"),
};
//@formatter:on
protected DateTimeFormatter[] availableFormatters() {
return dtfs;
}
@Override
protected YearMonth convert2Target(DateTimeFormatter formatter, String obj) {
return YearMonth.parse(obj, formatter);
}
}
| astamuse/asta4d | 162 | Java | org.eclipse.core.resources.prefs | text/plain | -2,927,145,517,991,920,600 |
package com.astamuse.asta4d.data.convertor;
import java.time.LocalTime;
import java.time.format.DateTimeFormatter;
import java.time.format.DateTimeFormatterBuilder;
public class String2Java8LocalTime extends AbstractString2Java8DateConvertor<LocalTime> implements DataValueConvertor<String, LocalTime> {
//@formatter:off
public static final DateTimeFormatter ISO_TIME_TIME_ZONE_VARIANT = new DateTimeFormatterBuilder()
.parseCaseInsensitive()
.append(DateTimeFormatter.ISO_LOCAL_TIME)
.optionalStart()
.appendOffset("+HHmm", "Z")
.toFormatter();
static final DateTimeFormatter[] dtfs = new DateTimeFormatter[] {
DateTimeFormatter.ISO_LOCAL_TIME,
DateTimeFormatter.ISO_TIME,
ISO_TIME_TIME_ZONE_VARIANT,
DateTimeFormatter.ofPattern("HHmmss.SSSZ"),
DateTimeFormatter.ofPattern("HHmmss.SSS"),
DateTimeFormatter.ofPattern("HHmmss"),
};
//@formatter:on
protected DateTimeFormatter[] availableFormatters() {
return dtfs;
}
@Override
protected LocalTime convert2Target(DateTimeFormatter formatter, String obj) {
return formatter.parse(obj, LocalTime::from);
}
}
| astamuse/asta4d | 162 | Java | org.eclipse.core.resources.prefs | text/plain | 8,345,363,721,265,092,000 |
package com.astamuse.asta4d.data.convertor;
import java.time.format.DateTimeFormatter;
import java.time.format.DateTimeParseException;
import org.apache.commons.lang3.StringUtils;
public abstract class AbstractString2Java8DateConvertor<T> {
public T convert(String s) throws UnsupportedValueException {
if (StringUtils.isEmpty(s)) {
return null;
}
for (DateTimeFormatter formatter : availableFormatters()) {
try {
T tt = convert2Target(formatter, s);
return tt;
} catch (DateTimeParseException e) {
System.out.println(formatter.toString());
e.printStackTrace();
continue;
}
}
throw new UnsupportedValueException();
}
protected abstract DateTimeFormatter[] availableFormatters();
protected abstract T convert2Target(DateTimeFormatter formatter, String obj);
}
| astamuse/asta4d | 162 | Java | org.eclipse.core.resources.prefs | text/plain | 4,711,974,013,917,127,000 |
/*
* Copyright 2014 astamuse company,Ltd.
*
* 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.astamuse.asta4d.data.convertor;
import org.joda.time.YearMonth;
import org.joda.time.format.DateTimeFormat;
import org.joda.time.format.DateTimeFormatter;
public class String2JodaYearMonth extends AbstractString2DateConvertor<YearMonth> implements DataValueConvertor<String, YearMonth> {
//@formatter:off
static final DateTimeFormatter[] dtfs = new DateTimeFormatter[] {
DateTimeFormat.forPattern("yyyy-MM"),
DateTimeFormat.forPattern("yyyyMM"),
};
//@formatter:on
protected DateTimeFormatter[] availableFormatters() {
return dtfs;
}
@Override
protected YearMonth convert2Target(DateTimeFormatter formatter, String obj) {
return YearMonth.parse(obj, formatter);
}
}
| astamuse/asta4d | 162 | Java | org.eclipse.core.resources.prefs | text/plain | -4,882,059,794,269,618,000 |
/*
* Copyright 2014 astamuse company,Ltd.
*
* 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.astamuse.asta4d.data.convertor;
import org.joda.time.LocalDateTime;
import org.joda.time.format.DateTimeFormatter;
public class String2JodaLocalDateTime extends AbstractString2DateConvertor<LocalDateTime> implements
DataValueConvertor<String, LocalDateTime> {
protected DateTimeFormatter[] availableFormatters() {
return String2JodaDateTime.dtfs;
}
@Override
protected LocalDateTime convert2Target(DateTimeFormatter formatter, String obj) {
return formatter.parseLocalDateTime(obj);
}
}
| astamuse/asta4d | 162 | Java | org.eclipse.core.resources.prefs | text/plain | -4,350,410,776,511,360,500 |
/*
* Copyright 2014 astamuse company,Ltd.
*
* 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.astamuse.asta4d.data.convertor;
import org.joda.time.LocalDate;
import org.joda.time.format.DateTimeFormatter;
public class String2JodaLocalDate extends AbstractString2DateConvertor<LocalDate> implements DataValueConvertor<String, LocalDate> {
protected DateTimeFormatter[] availableFormatters() {
return String2JodaDateTime.dtfs;
}
@Override
protected LocalDate convert2Target(DateTimeFormatter formatter, String obj) {
return formatter.parseLocalDate(obj);
}
}
| astamuse/asta4d | 162 | Java | org.eclipse.core.resources.prefs | text/plain | -7,774,274,990,433,704,000 |
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<!-- Appenders -->
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36}[%line] - %msg%n</pattern>
</encoder>
</appender>
<!-- Root Logger -->
<root level="debug">
<appender-ref ref="STDOUT" />
</root>
</configuration>
| astamuse/asta4d | 162 | Java | org.eclipse.core.resources.prefs | text/plain | -1,409,477,894,577,944,600 |
<html>
<head>
</head>
<body>
<div afd:render="RenderingTest$TestRender:addOperation">
<span id="s1"></span>
<span id="s2"></span>
<span id="s3"></span>
</div>
</body>
</html> | astamuse/asta4d | 162 | Java | org.eclipse.core.resources.prefs | text/plain | -4,162,909,777,386,426,000 |
<afd:extension parent="/TemplateWithExtension_Parent.html">
<afd:block append="myheadforappend">
<script src="appendscript">
aaa
</script>
</afd:block>
<afd:block insert="myheadforinsert">
<script src="insertscript">
iii
</script>
</afd:block>
<afd:block override=""/>
<afd:block override="mybody">
override body
</afd:block>
</afd:extension> | astamuse/asta4d | 162 | Java | org.eclipse.core.resources.prefs | text/plain | 7,155,566,437,839,438,000 |
<html>
<head>
</head>
<body>
<div afd:render="RenderingTest$TestRender:elementRendering">
<span>fei nu</span>
<div>xx</div>
</div>
</body>
</html> | astamuse/asta4d | 162 | Java | org.eclipse.core.resources.prefs | text/plain | -3,992,153,122,064,214,500 |
<html>
<head>
</head>
<body>
<afd:msg key="notexist-key" date="2014-01-29" weather="raining"><div date="{date}">weather is: {weather}</div></afd:msg><br/>
<afd:msg date="2014-01-30" weather="sunny"><div date="{date}">weather is: {weather}</div></afd:msg><br/>
<afd:msg date="2014-01-31" #weather="cloud"><div date="{date}">weather is: {weather}</div></afd:msg><br/>
<afd:msg date="2014-01-31" @weather="weatherreport2.weather"><div date="{date}">weather is: {weather}</div></afd:msg><br/>
</body>
</html> | astamuse/asta4d | 162 | Java | org.eclipse.core.resources.prefs | text/plain | 2,163,836,641,790,684,400 |
<html>
<head>
</head>
<body>
<div afd:render="RenderingTest$TestRender:normalAttrSetting">
<span id="testadd"></span>
<span id="testaddexisted" v="1"></span>
<span id="testremovebynull" v="1"></span>
<span id="testremovebyClear" v="1"></span>
<span id="testremovebyminus" v="1"></span>
<span id="testremovebyaddnull" v="1"></span>
<span id="testremovebyaddClear" v="1"></span>
<span id="testset" v="1"></span>
</div>
</body>
</html> | astamuse/asta4d | 162 | Java | org.eclipse.core.resources.prefs | text/plain | -5,626,216,289,490,732,000 |
<html>
<head>
</head>
<body>
<afd:snippet render="AdvancedSnippetTest$TestSnippet:deletedNestedSnippet_outer">
<div id="inner" afd:render="AdvancedSnippetTest$TestSnippet:nestedSnippet_inner">
</div>
</afd:snippet>
</body>
</html> | astamuse/asta4d | 162 | Java | org.eclipse.core.resources.prefs | text/plain | 7,069,411,097,634,525,000 |
<html>
<head>
<afd:comment>
this is a comment and would be removed at last rendering result.
<title>yyy</title>
comment too.
</afd:comment>
<title>xxx</title>
</head>
<body>
<afd:comment>
this is a comment and would be removed at last rendering result.
<afd:snippet render="com.astamuse.asta4d.test.render.TemplateExtractionTest$RenderException">
</afd:comment>
<afd:comment>
this is a comment and would be removed at last rendering result.
</afd:comment>
<div>OK</div>
</body>
</html> | astamuse/asta4d | 162 | Java | org.eclipse.core.resources.prefs | text/plain | 5,348,662,951,662,614,000 |
<afd:extension parent="/ThreeLevelExtension_Middle.html">
<afd:block override="headerCss">
<link rel="stylesheet" type="text/css" href="x.css">
</afd:block>
</afd:extension> | astamuse/asta4d | 162 | Java | org.eclipse.core.resources.prefs | text/plain | 4,880,425,045,353,566,000 |
<html>
<head>
</head>
<body>
<div>
<div afd:render="InjectTest$TestRender:methodTypeConvertor">
<span id="intvalue"></span>
<span id="longvalue"></span>
<span id="boolvalue"></span>
</div>
</div>
</body>
</html> | astamuse/asta4d | 162 | Java | org.eclipse.core.resources.prefs | text/plain | -2,649,195,860,075,762,700 |
<html>
<head>
</head>
<body>
<div afd:render="InjectTest$InstaneNameSearchRender">
<span id="cv-value"></span>
<span id="gv-value"></span>
</div>
</body>
</html> | astamuse/asta4d | 162 | Java | org.eclipse.core.resources.prefs | text/plain | 4,048,835,322,480,451,000 |
<html>
<head>
</head>
<body>
<afd:snippet render="ExternalizeMessageTest$TestSnippet:setWeatherreportInfo_NamedParamKey">
<afd:msg key="weatherreport1" date="date" weather="weather">dummy text</afd:msg><br/>
</afd:snippet>
<afd:msg key="weatherreport2" #date="date" #weather="weather">dummy text</afd:msg><br/>
<afd:msg key="weatherreport3" #date="date" #weather="weather" locale="ja_JP">dummy text</afd:msg><br/>
<afd:msg key="weatherreport2" @date="weatherreport2.date" @weather="weatherreport2.weather">dummy text</afd:msg><br/>
<afd:msg key="weatherreport3" @date="weatherreport3.date" @weather="weatherreport3.weather" locale="ja_JP">dummy text</afd:msg><br/>
<afd:msg key="textUrl">test<a href="https://www.test.com/">link</a>test</afd:msg><br/>
<afd:msg key="htmlUrl">test<a href="https://www.test.com/">link</a>test</afd:msg><br/>
<afd:msg key="escapeUrl">test<a href="https://www.test.com/">link</a>test</afd:msg><br/>
</body>
</html> | astamuse/asta4d | 162 | Java | org.eclipse.core.resources.prefs | text/plain | 2,059,202,957,722,300,000 |
<html>
<head>
</head>
<body>
<div afd:render="ContextBindDataTest$NonParallelRender"></div>
<div afd:render="ContextBindDataTest$NonParallelRender"></div>
</body>
</html> | astamuse/asta4d | 162 | Java | org.eclipse.core.resources.prefs | text/plain | 2,713,421,486,146,401,000 |
<html>
<head>
</head>
<body>
<div afd:clear>
<afd:snippet render="com.astamuse.asta4d.test.render.TemplateExtractionTest$RenderException">
</div>
<afd:group clear>xxx</afd:group>
</body>
</html> | astamuse/asta4d | 162 | Java | org.eclipse.core.resources.prefs | text/plain | 7,770,179,425,738,387,000 |
<html>
<head>
</head>
<body value="???">
<div class="component" afd:render="com.astamuse.asta4d.test.render.ComponentRenderingTest$Comp">
<a class="value">xx</a>
</div>
</body>
</html> | astamuse/asta4d | 162 | Java | org.eclipse.core.resources.prefs | text/plain | -947,687,401,611,989,100 |
<html>
<head>
</head>
<body>
<div afd:render="LambdaRenderingTest$TestRender:listRecursiveRendering">
<div id="test">
<span id="s1">aaa</span>
<span id="s2">bbb</span>
</div>
</div>
</body>
</html> | astamuse/asta4d | 162 | Java | org.eclipse.core.resources.prefs | text/plain | 1,849,982,106,912,299,300 |
<html>
<head>
</head>
<body>
<div afd:render="com.astamuse.asta4d.test.render.ComponentRenderingTest$Page" ctype="all">
<div><span>vv</span></div>
</div>
<div afd:render="com.astamuse.asta4d.test.render.ComponentRenderingTest$Page" ctype="vv">
<div><span>vv</span></div>
</div>
<div afd:render="com.astamuse.asta4d.test.render.ComponentRenderingTest$Page" ctype="hello">
<div><span>vv</span></div>
</div>
</body>
</html> | astamuse/asta4d | 162 | Java | org.eclipse.core.resources.prefs | text/plain | 5,669,712,358,686,854,000 |
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="Content-Script-Type" content="test/javascript" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta name="description" content="" />
<meta name="keywords" content="" />
<title></title>
<afd:block id="headerCss"></afd:block>
</head>
<body>
<afd:block id="body"></afd:block>
</body>
</html> | astamuse/asta4d | 162 | Java | org.eclipse.core.resources.prefs | text/plain | 1,202,019,802,606,989,800 |
<afd:extension parent="/TemplateWithExtension_Parent.html">
<afd:block append="myheadforappend">
<script src="appendscript">
aaa
</script>
</afd:block>
<afd:block insert="myheadforinsert">
<script src="insertscript">
iii
</script>
</afd:block>
<afd:block override="mybody">
override body
<afd:embed target="/TemplateWithExtensionAndEmbedMerge_Embed.html"></afd:embed>
</afd:block>
</afd:extension> | astamuse/asta4d | 162 | Java | org.eclipse.core.resources.prefs | text/plain | 1,485,862,566,831,901,000 |
<html>
<head>
</head>
<body>
<afd:embed target="/com/astamuse/asta4d/test/render/templates/myembedNotFound.html"></afd:embed>
</body>
</html> | astamuse/asta4d | 162 | Java | org.eclipse.core.resources.prefs | text/plain | 7,558,290,050,502,864,000 |
<html>
<head>
</head>
<body>
<afd:snippet render="ExternalizeMessageTest$TestSnippet:setWeatherreportInfo_NumberedParamKey">
<afd:msg key="weatherreport1" p0="date" p1="weather">dummy text</afd:msg><br/>
</afd:snippet>
<afd:msg key="weatherreport2" #p0="date" #p1="weather">dummy text</afd:msg><br/>
<afd:msg key="weatherreport3" #p0="date" #p1="weather" locale="ja_JP">dummy text</afd:msg><br/>
<afd:msg key="weatherreport2" @p0="weatherreport2.date" @p1="weatherreport2.weather">dummy text</afd:msg><br/>
<afd:msg key="weatherreport3" @p0="weatherreport3.date" @p1="weatherreport3.weather" locale="ja_JP">dummy text</afd:msg><br/>
<afd:msg key="textUrl">test<a href="https://www.test.com/">link</a>test</afd:msg><br/>
<afd:msg key="htmlUrl">test<a href="https://www.test.com/">link</a>test</afd:msg><br/>
<afd:msg key="escapeUrl">test<a href="https://www.test.com/">link</a>test</afd:msg><br/>
</body>
</html> | astamuse/asta4d | 162 | Java | org.eclipse.core.resources.prefs | text/plain | 3,867,402,424,162,639,000 |
<html>
<head>
</head>
<body>
<div afd:render="RenderingTest$TestRender:removeClassInListRendering">
<ul>
<li class="item">
<span class="x-num"></span>:
<span class="x-idx-1 x-remove">1</span><span class="x-idx-2 x-remove">2</span><span class="x-idx-3 x-remove">3</span>
</li>
</ul>
</div>
</body>
</html> | astamuse/asta4d | 162 | Java | org.eclipse.core.resources.prefs | text/plain | -8,451,592,169,035,310,000 |
<html>
<head>
</head>
<body>
<div>
<div afd:render="InjectTest$InstanceTypeConvertorRender">
<span id="intvalue"></span>
<span id="longvalue"></span>
<span id="boolvalue"></span>
</div>
</div>
</body>
</html> | astamuse/asta4d | 162 | Java | org.eclipse.core.resources.prefs | text/plain | 3,056,496,069,425,359,000 |
<html>
<head>
</head>
<body>
<div afd:render="RenderingTest$TestRender:listRecursiveRendering">
<div id="test">
<span id="s1">aaa</span>
<span id="s2">bbb</span>
</div>
</div>
</body>
</html> | astamuse/asta4d | 162 | Java | org.eclipse.core.resources.prefs | text/plain | -7,155,378,509,343,747,000 |
<html>
<head>
</head>
<body>
<div afd:render="InjectTest$TestRender:methodNameSearch" av="av-value" av-r="av-value for name replace">
<span id="av-value"></span>
<span id="cv-value"></span>
<span id="gv-value"></span>
</div>
</body>
</html> | astamuse/asta4d | 162 | Java | org.eclipse.core.resources.prefs | text/plain | 5,326,267,900,827,934,000 |
<html>
<head>
</head>
<body>
<div afd:render="RenderingTest$TestRender:renderableRendering">
<div id="test">xx</div>
</div>
</body>
</html> | astamuse/asta4d | 162 | Java | org.eclipse.core.resources.prefs | text/plain | 7,870,267,103,945,039,000 |
<html>
<head>
</head>
<body>
<div afd:render="RenderingTest$TestRender::textRendering">
<div id="test">xx</div>
<span id="testspace"></span>
<span id="testnbsp"></span>
<span id="testgreatermark"></span>
</div>
</body>
</html> | astamuse/asta4d | 162 | Java | org.eclipse.core.resources.prefs | text/plain | 1,138,258,013,403,131,600 |
<html>
<head>
</head>
<body>
<div pv="pv-value at parent" av="av-value at parent">
<div afd:render="InjectTest$TestRender:methodDefaultSearch" av="av-value at attr">
<span id="av-value"></span>
<span id="pv-value"></span>
<span id="cv-value"></span>
<span id="gv-value"></span>
</div>
</div>
</body>
</html> | astamuse/asta4d | 162 | Java | org.eclipse.core.resources.prefs | text/plain | -7,988,230,759,727,691,000 |
<html>
<head>
</head>
<body>
<afd:snippet render="com.astamuse.asta4d.test.render.SimpleSnippetRenderingTest$StaticEmbed">
<afd:embed target="/com/astamuse/asta4d/test/render/templates/myembed.html" static></afd:embed>
</afd:snippet>
</body>
</html> | astamuse/asta4d | 162 | Java | org.eclipse.core.resources.prefs | text/plain | 4,481,839,475,547,202,000 |
<html>
<head>
</head>
<body>
<afd:embed target="/com/astamuse/asta4d/test/render/templates/myembed.html"></afd:embed>
</body>
</html> | astamuse/asta4d | 162 | Java | org.eclipse.core.resources.prefs | text/plain | 2,996,196,542,351,191,600 |
<html>
<head>
</head>
<body>
<div afd:render="InjectTest$InstaneDefaultSearchRender">
<span id="cv-value"></span>
<span id="gv-value"></span>
</div>
</body>
</html> | astamuse/asta4d | 162 | Java | org.eclipse.core.resources.prefs | text/plain | 8,005,302,397,920,726,000 |
<html>
<head>
</head>
<body>
<div pv="pv-value at parent" av="av-value at parent">
<div afd:render="InjectTest$TestRender:methodScopeSearch" av="av-value at attr">
<span id="av-value"></span>
<span id="pv-value"></span>
<span id="cv-value"></span>
<span id="gv-value"></span>
</div>
</div>
</body>
</html> | astamuse/asta4d | 162 | Java | org.eclipse.core.resources.prefs | text/plain | -2,045,404,583,077,885,200 |
<html>
<head>
</head>
<body>
<div afd:render="AdvancedRenderingTest$TestRender:continualSelectAll">
<div id="d1">
<span>a</span>
<span>b</span>
</div>
<div id="d2">
<div id="d3">a</div>
<div>b</div>
</div>
</div>
</body>
</html> | astamuse/asta4d | 162 | Java | org.eclipse.core.resources.prefs | text/plain | 5,991,250,202,828,233,000 |
<html>
<head>
</head>
<body>
<div afd:render="RenderingTest$TestRender:listChildReplacing">
<div id="test">
<span>aaa</span>
fasdf
</div>
</div>
</body>
</html> | astamuse/asta4d | 162 | Java | org.eclipse.core.resources.prefs | text/plain | 6,516,816,158,295,940,000 |
<html>
<head>
</head>
<body>
<div afd:render="LambdaRenderingTest$TestRender:removeClassInListRendering">
<ul>
<li class="item">
<span class="x-num"></span>:
<span class="x-idx-1 x-remove">1</span><span class="x-idx-2 x-remove">2</span><span class="x-idx-3 x-remove">3</span>
</li>
</ul>
</div>
</body>
</html> | astamuse/asta4d | 162 | Java | org.eclipse.core.resources.prefs | text/plain | -8,713,953,531,399,212,000 |
<html>
<head>
</head>
<body>
<div afd:render="RenderingTest$TestRender:recursiveRendering">
<div id="d1">
<span id="s1">ff</span>
</div>
</div>
</body>
</html> | astamuse/asta4d | 162 | Java | org.eclipse.core.resources.prefs | text/plain | -7,070,787,567,643,264,000 |
<html>
<head>
</head>
<body>
<afd:snippet render="AdvancedSnippetTest$ChildSnippet">
<p></p>
</afd:snippet>
<afd:snippet render="AdvancedSnippetTest$ChildSnippet:rx">
<p></p>
</afd:snippet>
</body>
</html> | astamuse/asta4d | 162 | Java | org.eclipse.core.resources.prefs | text/plain | 4,524,979,634,044,553,000 |
<html>
<head>
</head>
<body>
<div afd:render="RenderingTest$TestRender:classAttrSetting">
<span id="testadd"></span>
<span id="testaddexisted" class="a"></span>
<span id="testremovebynull" class="a b c xabc"></span>
<span id="testremovebyminus" class="a b"></span>
<span id="testremovebyaddnull" class="a b"></span>
<span id="testset" class="a"></span>
</div>
</body>
</html> | astamuse/asta4d | 162 | Java | org.eclipse.core.resources.prefs | text/plain | 7,903,329,307,846,467,000 |
<afd:block append="myheadforappend">
<script src="embappendscript">
emb aaa
</script>
</afd:block>
<afd:block insert="myheadforinsert">
<script src="embinsertscript">
emb iii
</script>
</afd:block>
<div>only me should be included into body</div> | astamuse/asta4d | 162 | Java | org.eclipse.core.resources.prefs | text/plain | -1,070,805,483,056,329,500 |
<html>
<head>
</head>
<body>
<div afd:render="LambdaRenderingTest$TestRender:listElementRendering">
<div id="test">xx</div>
</div>
</body>
</html> | astamuse/asta4d | 162 | Java | org.eclipse.core.resources.prefs | text/plain | 4,609,296,903,094,607,400 |
<html>
<head>
</head>
<body>
<div id="outer" afd:render="AdvancedRenderingTest$TestRender:setAnyTypeOuter" count="3">
<div id="outerDiv">a</div>
<div id="inner" afd:render="AdvancedRenderingTest$TestRender:setAnyTypeInner" afd:dataref-exist="value" afd:dataref-outerList="value">
<ul id="innerList"><li>a</li></ul>
</div>
</div>
</body>
</html> | astamuse/asta4d | 162 | Java | org.eclipse.core.resources.prefs | text/plain | -3,064,256,880,810,291,000 |
<html>
<head>
</head>
<body>
<div afd:render="InjectTest$InstaneScopeSearchRender">
<span id="cv-value"></span>
<span id="gv-value"></span>
</div>
</body>
</html> | astamuse/asta4d | 162 | Java | org.eclipse.core.resources.prefs | text/plain | 3,110,338,395,265,779,700 |
<html>
<head>
</head>
<body>
<div afd:render="ContextBindDataTest$ParallelRender" afd:parallel></div>
<div afd:render="ContextBindDataTest$ParallelRender" afd:parallel></div>
</body>
</html> | astamuse/asta4d | 162 | Java | org.eclipse.core.resources.prefs | text/plain | 8,181,962,999,605,547,000 |
<html>
<head>
</head>
<body>
<div afd:render="ParallelTest$TestRender:listTextRenderingLambda">
<div id="test">xx</div>
</div>
</body>
</html> | astamuse/asta4d | 162 | Java | org.eclipse.core.resources.prefs | text/plain | -6,056,743,299,897,530,000 |
<html>
<head>
</head>
<body>
<div afd:render="ParallelTest$TestRender:snippetInDiv" afd:parallel>
<div id="test">xx</div>
</div>
<afd:snippet render="ParallelTest$TestRender:snippetReplaceDiv" parallel>
<div id="test">xx</div>
</afd:snippet>
<div afd:render="ParallelTest$TestRender:snippetNormal">
<div id="test">xx</div>
</div>
</body>
</html> | astamuse/asta4d | 162 | Java | org.eclipse.core.resources.prefs | text/plain | 8,736,559,651,905,588,000 |
<html>
<head>
</head>
<body>
<div afd:render="LambdaRenderingTest$TestRender:renderableRendering">
<div id="test">xx</div>
</div>
</body>
</html> | astamuse/asta4d | 162 | Java | org.eclipse.core.resources.prefs | text/plain | 8,055,650,162,927,105,000 |
<html>
<head>
</head>
<body>
<div afd:render="AdvancedRenderingTest$TestRender:pseudoRootRenderingOnFackedGroup">
xxx
</div>
<div afd:render="AdvancedRenderingTest$TestRender:pseudoRootRenderingWithElementNotFoundHandler">
yyy
</div>
<div afd:render="AdvancedRenderingTest$TestRender:pseudoRootRenderingWithNestedSnippet_outer">
<afd:snippet id="inner" render="AdvancedRenderingTest$TestRender:pseudoRootRenderingWithNestedSnippet_inner">
<div id="v"></div>
</afd:snippet>
</div>
</body>
</html> | astamuse/asta4d | 162 | Java | org.eclipse.core.resources.prefs | text/plain | -8,879,490,210,249,570,000 |
<html>
<head>
</head>
<body>
<div afd:render="LambdaRenderingTest$TestRender:listChildReplacing">
<div id="test">
<span>aaa</span>
fasdf
</div>
</div>
</body>
</html> | astamuse/asta4d | 162 | Java | org.eclipse.core.resources.prefs | text/plain | 6,713,783,054,977,146,000 |
<html>
<head>
</head>
<body>
<div afd:render="com.astamuse.asta4d.test.render.SimpleSnippetRenderingTest$AttrConflict:outer">
<afd:snippet render="com.astamuse.asta4d.test.render.SimpleSnippetRenderingTest$AttrConflict:inner">
<div id="x-status"></div>
</afd:snippet>
</div>
</body>
</html> | astamuse/asta4d | 162 | Java | org.eclipse.core.resources.prefs | text/plain | 7,398,112,250,129,214,000 |
<html>
<head>
</head>
<body>
<div afd:render="RenderingTest$TestRender:listTextRendering">
<div id="test-text">xx</div>
<div id="test-long">xx</div>
<div id="test-integer">xx</div>
<div id="test-boolean">xx</div>
</div>
</body>
</html> | astamuse/asta4d | 162 | Java | org.eclipse.core.resources.prefs | text/plain | 6,827,280,323,882,233,000 |
<html>
<head>
<title>xxx</title>
<script src="vv">
</script>
<afd:block id="myheadforappend">
<script src="zz">
mmm
</script>
</afd:block>
<afd:block id="myheadforinsert">
<script src="xx">
fee
</script>
</afd:block>
</head>
<body>
<afd:block id="mybody"></afd:block>
<afd:block id="myfoot"></afd:block>
</body>
</html> | astamuse/asta4d | 162 | Java | org.eclipse.core.resources.prefs | text/plain | 4,036,689,819,315,795,000 |
<html>
<head>
</head>
<body>
<afd:snippet render="AdvancedSnippetTest$InitializingFailedSnippet">
</afd:snippet>
</body>
</html> | astamuse/asta4d | 162 | Java | org.eclipse.core.resources.prefs | text/plain | 2,720,873,814,881,014,000 |
<html>
<head>
</head>
<body>
<div afd:render="RenderingTest$TestRender:listElementRendering">
<div id="test">xx</div>
</div>
</body>
</html> | astamuse/asta4d | 162 | Java | org.eclipse.core.resources.prefs | text/plain | -9,005,083,102,188,152,000 |
<html>
<head>
</head>
<body>
<div afd:render="RenderingTest$TestRender:clearNode">
<div id="byattr" afd:clear>aa</div>
<div id="byNullObj">bb</div>
<div id="byNullString">bb</div>
<div id="byClearRenderer">cc</div>
<div id="byClearRenderer2">cc</div>
<afd:group clear>aa</div>
</div>
</body>
</html> | astamuse/asta4d | 162 | Java | org.eclipse.core.resources.prefs | text/plain | -8,923,312,164,383,904,000 |
<html>
<head>
</head>
<body>
<div afd:render="LambdaRenderingTest$TestRender:listTextRendering">
<div id="test-text">xx</div>
<div id="test-long">xx</div>
<div id="test-integer">xx</div>
<div id="test-boolean">xx</div>
</div>
</body>
</html> | astamuse/asta4d | 162 | Java | org.eclipse.core.resources.prefs | text/plain | 129,864,810,621,461,090 |
<html>
<head>
</head>
<body>
<afd:snippet render="AdvancedSnippetTest$TestSnippet:nestedSnippet_outer">
<p id="pv"></p>
<afd:embed target="/AdvancedSnippet_nestedEmbed_include.html" value="3"/>
</afd:snippet>
</body>
</html> | astamuse/asta4d | 162 | Java | org.eclipse.core.resources.prefs | text/plain | -3,944,978,372,838,338,600 |
<html>
<head>
</head>
<body>
<afd:snippet render="AdvancedSnippetTest$TestSnippet:nestedSnippet_outer">
<p id="pv"></p>
<afd:snippet id="inner" render="AdvancedSnippetTest$TestSnippet:nestedSnippet_inner" value="123">
<div id="pv"></div>
</afd:snippet>
</afd:snippet>
</body>
</html> | astamuse/asta4d | 162 | Java | org.eclipse.core.resources.prefs | text/plain | 2,621,424,366,505,207,300 |
<html>
<head>
</head>
<body>
<div id="pseudo" afd:render="RenderingTest$TestRender:pseudoRootRendering">
<div id="test">xx</div>
<span id="testspace"></span>
<span id="testnbsp"></span>
<span id="testgreatermark"></span>
</div>
</body>
</html> | astamuse/asta4d | 162 | Java | org.eclipse.core.resources.prefs | text/plain | 7,307,924,751,291,851,000 |
<html>
<head>
</head>
<body>
<afd:snippet render="SimpleSnippetRenderingTest$TagEmbed" ctype="bb123">
<div>
<span>fei nu</span>
<div>xx</div>
</div>
</afd:snippet>
</body>
</html> | astamuse/asta4d | 162 | Java | org.eclipse.core.resources.prefs | text/plain | -36,303,025,268,265,944 |
<html>
<head>
<afd:msg>
<script>
xxx ff
</script>
</afd:msg>
<afd:comment>
this is a comment and would be removed at last rendering result.
<title>yyy</title>
comment too.
</afd:comment>
<afd:snippet render="com.astamuse.asta4d.test.render.TemplateExtractionTest$MetaRender">
<meta />
</afd:snippet>
<afd:embed target="/TemplateWithSpecialHeadTags_embed.html"></afd:embed>
<afd:group>
<title>xxx</title>
</afd:group>
</head>
<body>
<div>OK</div>
</body>
</html> | astamuse/asta4d | 162 | Java | org.eclipse.core.resources.prefs | text/plain | 9,096,517,881,173,161,000 |
<html>
<head>
</head>
<body>
<div afd:render="com.astamuse.asta4d.test.render.SimpleSnippetRenderingTest$TagEmbed" ctype="all">
<span>fei nu</span>
<div>xx</div>
</div>
</body>
</html> | astamuse/asta4d | 162 | Java | org.eclipse.core.resources.prefs | text/plain | -5,504,001,747,752,466,000 |
<!DOCTYPE html>
<html>
<head>
<afd:block id="headerCss"></afd:block>
</head>
<afd:extension parent="/ThreeLevelExtension_Parent.html">
<afd:block insert="body">
<div class="user">
<div>xxx</div>
</div>
</afd:block>
</afd:extension>
</html> | astamuse/asta4d | 162 | Java | org.eclipse.core.resources.prefs | text/plain | 1,172,395,996,567,283,700 |
<html>
<head>
</head>
<body>
<div afd:render="LambdaRenderingTest$TestRender:parallelStreamRenderingCorrectness">
<div id="test-text">xx</div>
</div>
</body>
</html> | astamuse/asta4d | 162 | Java | org.eclipse.core.resources.prefs | text/plain | -6,458,832,143,905,913,000 |
<html>
<head>
</head>
<body>
<afd:snippet render="com.astamuse.asta4d.test.render.SimpleSnippetRenderingTest$SnippetTag">
<div type="all">
<span>fei nu</span>
<div>xx</div>
</div>
</afd:snippet>
</body>
</html> | astamuse/asta4d | 162 | Java | org.eclipse.core.resources.prefs | text/plain | -3,057,227,460,281,464,300 |
<html>
<head>
</head>
<body>
<div afd:render="com.astamuse.asta4d.test.render.SimpleSnippetRenderingTest$InitSnippet:render_1">
<span class="value"></span>
<span class="count"></span>
</div>
<div afd:render="com.astamuse.asta4d.test.render.SimpleSnippetRenderingTest$InitSnippet:render_2">
<span class="value"></span>
<span class="count"></span>
</div>
</body>
</html> | astamuse/asta4d | 162 | Java | org.eclipse.core.resources.prefs | text/plain | -4,085,641,768,330,161,000 |
<html>
<head>
</head>
<body>
<div afd:render="LambdaRenderingTest$TestRender:parallelStreamRenderingTimeConsuming">
<div id="test-text">xx</div>
</div>
</body>
</html> | astamuse/asta4d | 162 | Java | org.eclipse.core.resources.prefs | text/plain | -895,798,374,493,749,100 |
<html>
<head>
</head>
<body>
<div afd:render="RenderingTest$TestRender:childReplacing">
<span>fei nu</span>
<div>xx</div>
</div>
</body>
</html> | astamuse/asta4d | 162 | Java | org.eclipse.core.resources.prefs | text/plain | 2,012,499,719,693,513,000 |
<html>
<head>
</head>
<body>
<div>
<span id="s1">r-1</span>
<span id="s2">r-2</span>
<span id="s3">r-3</span>
</div>
</body>
</html> | astamuse/asta4d | 162 | Java | org.eclipse.core.resources.prefs | text/plain | 1,851,544,504,586,526,200 |
<html>
<head>
<title>xxx</title>
<script src="vv">
</script>
<script src="zz">
mmm
</script>
<script src="appendscript">
aaa
</script>
<script src="insertscript">
iii
</script>
<script src="xx">
fee
</script>
</head>
<body> override body
</body>
</html> | astamuse/asta4d | 162 | Java | org.eclipse.core.resources.prefs | text/plain | 8,813,731,039,185,568,000 |
<html>
<head>
</head>
<body>
<div date="2014-01-29">
weather is: raining
</div>
<br>
<div date="2014-01-30">
weather is: sunny
</div>
<br>
<div date="2014-01-31">
weather is: cloud
</div>
<br>
<div date="2014-01-31">
weather is: cloudy
</div>
<br>
</body>
</html> | astamuse/asta4d | 162 | Java | org.eclipse.core.resources.prefs | text/plain | -374,042,368,489,918,460 |
<html>
<head>
</head>
<body>
<div>
<span id="testadd" v="2"></span>
<span id="testaddexisted" v="2"></span>
<span id="testremovebynull"></span>
<span id="testremovebyClear"></span>
<span id="testremovebyminus"></span>
<span id="testremovebyaddnull"></span>
<span id="testremovebyaddClear"></span>
<span id="testset" v="2"></span>
</div>
</body>
</html> | astamuse/asta4d | 162 | Java | org.eclipse.core.resources.prefs | text/plain | -7,205,348,948,662,435,000 |
<html>
<head>
<title>xxx</title>
</head>
<body>
<div>
OK
</div>
</body>
</html> | astamuse/asta4d | 162 | Java | org.eclipse.core.resources.prefs | text/plain | -7,279,243,382,485,779,000 |
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="Content-Script-Type" content="test/javascript">
<meta http-equiv="Content-Style-Type" content="text/css">
<meta name="description" content="">
<meta name="keywords" content="">
<title></title>
<link rel="stylesheet" type="text/css" href="x.css">
</head>
<body>
<div class="user">
<div>
xxx
</div>
</div>
</body>
</html> | astamuse/asta4d | 162 | Java | org.eclipse.core.resources.prefs | text/plain | 5,989,227,845,784,619,000 |
<html>
<head>
</head>
<body>
<div>
<div>
<span id="intvalue">222</span>
<span id="longvalue">333</span>
<span id="boolvalue">false</span>
</div>
</div>
</body>
</html> | astamuse/asta4d | 162 | Java | org.eclipse.core.resources.prefs | text/plain | -6,003,530,929,549,648,000 |
<html>
<head>
</head>
<body>
<div>
<span id="cv-value">cv-value for name replace</span>
<span id="gv-value">gv-value for name replace</span>
</div>
</body>
</html> | astamuse/asta4d | 162 | Java | org.eclipse.core.resources.prefs | text/plain | -1,988,026,075,695,016,400 |
<html>
<head>
</head>
<body>
<div>
<div id="test">
<span id="s1">aa-0</span>
<span id="s2">bb-0</span>
</div>
<div id="test">
<span id="s1">aa-1</span>
<span id="s2">bb-1</span>
</div>
<div id="test">
<span id="s1">aa-2</span>
<span id="s2">bb-2</span>
</div>
<div id="test">
<span id="s1">aa-3</span>
<span id="s2">bb-3</span>
</div>
</div>
</body>
</html> | astamuse/asta4d | 162 | Java | org.eclipse.core.resources.prefs | text/plain | -6,456,914,061,353,717,000 |
<html>
<head>
</head>
<body>
<div ctype="all">
<div>
<div class="component">
<a class="value">all</a>
</div>
</div>
</div>
<div ctype="vv">
<div>
<div class="component">
<a class="value">vv</a>
</div>
</div>
</div>
<div ctype="hello">
<div>
<div class="component">
<a class="value">hello</a>
</div>
</div>
</div>
</body>
</html> | astamuse/asta4d | 162 | Java | org.eclipse.core.resources.prefs | text/plain | -5,318,425,157,818,838,000 |
<html>
<head>
<title>xxx</title>
<script src="vv">
</script>
<script src="zz">
mmm
</script>
<script src="appendscript">
aaa
</script>
<script src="embappendscript">
emb aaa
</script>
<script src="embinsertscript">
emb iii
</script>
<script src="insertscript">
iii
</script>
<script src="xx">
fee
</script>
</head>
<body> override body
<div>
only me should be included into body
</div>
</body>
</html> | astamuse/asta4d | 162 | Java | org.eclipse.core.resources.prefs | text/plain | 8,426,469,538,509,048,000 |
<html>
<head>
</head>
<body>
<div>
<ul>
<li class="item"> <span class="x-num">1</span>: <span class="x-idx-2">2</span> </li>
<li class="item"> <span class="x-num">2</span>: <span class="x-idx-3">3</span> </li>
<li class="item"> <span class="x-num">3</span>: <span class="x-idx-1">1</span> </li>
<li class="item"> <span class="x-num">4</span>: <span class="x-idx-2">2</span> </li>
<li class="item"> <span class="x-num">5</span>: <span class="x-idx-3">3</span> </li>
<li class="item"> <span class="x-num">6</span>: <span class="x-idx-1">1</span> </li>
<li class="item"> <span class="x-num">7</span>: <span class="x-idx-2">2</span> </li>
<li class="item"> <span class="x-num">8</span>: <span class="x-idx-3">3</span> </li>
<li class="item"> <span class="x-num">9</span>: <span class="x-idx-1">1</span> </li>
<li class="item"> <span class="x-num">10</span>: <span class="x-idx-2">2</span> </li>
</ul>
</div>
</body>
</html> | astamuse/asta4d | 162 | Java | org.eclipse.core.resources.prefs | text/plain | 1,123,000,379,035,141,800 |
<html>
<head>
</head>
<body>
<div>
<div>
<span id="intvalue">111</span>
<span id="longvalue">555</span>
<span id="boolvalue">true</span>
</div>
</div>
</body>
</html> | astamuse/asta4d | 162 | Java | org.eclipse.core.resources.prefs | text/plain | 8,773,502,909,386,619,000 |